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
713 REPLACE_STDIO_WRITE_FUNCS
714 REPLACE_STDIO_READ_FUNCS
723 REPLACE_OBSTACK_PRINTF
748 HAVE_DECL_OBSTACK_PRINTF
754 GNULIB_VSPRINTF_POSIX
758 GNULIB_VFPRINTF_POSIX
765 GNULIB_STDIO_H_SIGPIPE
766 GNULIB_STDIO_H_NONBLOCKING
781 GNULIB_OBSTACK_PRINTF_POSIX
782 GNULIB_OBSTACK_PRINTF
975 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1010 LOCALCHARSET_TESTS_ENVIRONMENT
1012 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1014 UINT64_MAX_EQ_ULONG_MAX
1015 UINT32_MAX_LT_UINTMAX_MAX
1018 INT64_MAX_EQ_LONG_MAX
1019 INT32_MAX_LT_INTMAX_MAX
1030 GL_GENERATE_STDINT_H_FALSE
1031 GL_GENERATE_STDINT_H_TRUE
1040 HAVE_SIGNED_SIG_ATOMIC_T
1043 BITSIZEOF_SIG_ATOMIC_T
1046 APPLE_UNIVERSAL_BUILD
1050 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1055 HAVE_UNSIGNED_LONG_LONG_INT
1058 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1060 REPLACE_STRUCT_TIMEVAL
1061 REPLACE_GETTIMEOFDAY
1068 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1074 REPLACE_SIGNBIT_USING_GCC
1143 HAVE_DECL_REMAINDERL
1324 GL_GENERATE_FNMATCH_H_FALSE
1325 GL_GENERATE_FNMATCH_H_TRUE
1328 GL_GENERATE_FLOAT_H_FALSE
1329 GL_GENERATE_FLOAT_H_TRUE
1331 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1339 GL_GENERATE_ERRNO_H_FALSE
1340 GL_GENERATE_ERRNO_H_TRUE
1342 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1345 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1348 PRAGMA_SYSTEM_HEADER
1349 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1375 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1376 UNISTD_H_HAVE_WINSOCK2_H
1399 REPLACE_GETDTABLESIZE
1400 REPLACE_GETDOMAINNAME
1411 HAVE_DECL_SETHOSTNAME
1412 HAVE_DECL_GETUSERSHELL
1413 HAVE_DECL_GETPAGESIZE
1414 HAVE_DECL_GETLOGIN_R
1415 HAVE_DECL_GETDOMAINNAME
1454 GNULIB_UNISTD_H_SIGPIPE
1455 GNULIB_UNISTD_H_NONBLOCKING
1481 GNULIB_GETDTABLESIZE
1482 GNULIB_GETDOMAINNAME
1512 REPLACE_CANONICALIZE_FILE_NAME
1517 HAVE_STRUCT_RANDOM_DATA
1539 HAVE_DECL_GETLOADAVG
1540 HAVE_CANONICALIZE_FILE_NAME
1551 GNULIB_SECURE_GETENV
1554 GNULIB_REALLOC_POSIX
1572 GNULIB_CANONICALIZE_FILE_NAME
1576 GL_GENERATE_ALLOCA_H_FALSE
1577 GL_GENERATE_ALLOCA_H_TRUE
1580 GL_COND_LIBTOOL_FALSE
1581 GL_COND_LIBTOOL_TRUE
1608 MAINTAINER_MODE_FALSE
1609 MAINTAINER_MODE_TRUE
1637 program_transform_name
1650 enable_option_checking
1651 enable_maintainer_mode
1653 enable_dependency_tracking
1655 ac_precious_vars
='build_alias
1666 # Initialize some variables set by options.
1668 ac_init_version
=false
1669 ac_unrecognized_opts
=
1670 ac_unrecognized_sep
=
1671 # The variables have the same names as the options, with
1672 # dashes changed to underlines.
1673 cache_file
=/dev
/null
1680 program_transform_name
=s
,x
,x
,
1688 # Installation directory options.
1689 # These are left unexpanded so users can "make install exec_prefix=/foo"
1690 # and all the variables that are supposed to be based on exec_prefix
1691 # by default will actually change.
1692 # Use braces instead of parens because sh, perl, etc. also accept them.
1693 # (The list follows the same order as the GNU Coding Standards.)
1694 bindir
='${exec_prefix}/bin'
1695 sbindir
='${exec_prefix}/sbin'
1696 libexecdir
='${exec_prefix}/libexec'
1697 datarootdir
='${prefix}/share'
1698 datadir
='${datarootdir}'
1699 sysconfdir
='${prefix}/etc'
1700 sharedstatedir
='${prefix}/com'
1701 localstatedir
='${prefix}/var'
1702 includedir
='${prefix}/include'
1703 oldincludedir
='/usr/include'
1704 docdir
='${datarootdir}/doc/${PACKAGE}'
1705 infodir
='${datarootdir}/info'
1710 libdir
='${exec_prefix}/lib'
1711 localedir
='${datarootdir}/locale'
1712 mandir
='${datarootdir}/man'
1718 # If the previous option needs an argument, assign it.
1719 if test -n "$ac_prev"; then
1720 eval $ac_prev=\
$ac_option
1726 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1730 # Accept the important Cygnus configure options, so we can diagnose typos.
1732 case $ac_dashdash$ac_option in
1736 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1738 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1739 bindir
=$ac_optarg ;;
1741 -build |
--build |
--buil |
--bui |
--bu)
1742 ac_prev
=build_alias
;;
1743 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1744 build_alias
=$ac_optarg ;;
1746 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1747 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1748 ac_prev
=cache_file
;;
1749 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1750 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1751 cache_file
=$ac_optarg ;;
1753 --config-cache |
-C)
1754 cache_file
=config.cache
;;
1756 -datadir |
--datadir |
--datadi |
--datad)
1758 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1759 datadir
=$ac_optarg ;;
1761 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1762 |
--dataroo |
--dataro |
--datar)
1763 ac_prev
=datarootdir
;;
1764 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1765 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1766 datarootdir
=$ac_optarg ;;
1768 -disable-* |
--disable-*)
1769 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1770 # Reject names that are not valid shell variable names.
1771 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1772 as_fn_error
"invalid feature name: $ac_useropt"
1773 ac_useropt_orig
=$ac_useropt
1774 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1775 case $ac_user_opts in
1777 "enable_
$ac_useropt"
1779 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1780 ac_unrecognized_sep
=', ';;
1782 eval enable_
$ac_useropt=no
;;
1784 -docdir |
--docdir |
--docdi |
--doc |
--do)
1786 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1787 docdir
=$ac_optarg ;;
1789 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1791 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1792 dvidir
=$ac_optarg ;;
1794 -enable-* |
--enable-*)
1795 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1796 # Reject names that are not valid shell variable names.
1797 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1798 as_fn_error
"invalid feature name: $ac_useropt"
1799 ac_useropt_orig
=$ac_useropt
1800 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1801 case $ac_user_opts in
1803 "enable_
$ac_useropt"
1805 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1806 ac_unrecognized_sep
=', ';;
1808 eval enable_
$ac_useropt=\
$ac_optarg ;;
1810 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1811 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1812 |
--exec |
--exe |
--ex)
1813 ac_prev
=exec_prefix
;;
1814 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1815 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1816 |
--exec=* |
--exe=* |
--ex=*)
1817 exec_prefix
=$ac_optarg ;;
1819 -gas |
--gas |
--ga |
--g)
1820 # Obsolete; use --with-gas.
1823 -help |
--help |
--hel |
--he |
-h)
1824 ac_init_help
=long
;;
1825 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1826 ac_init_help
=recursive
;;
1827 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1828 ac_init_help
=short
;;
1830 -host |
--host |
--hos |
--ho)
1831 ac_prev
=host_alias
;;
1832 -host=* |
--host=* |
--hos=* |
--ho=*)
1833 host_alias
=$ac_optarg ;;
1835 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1837 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1839 htmldir
=$ac_optarg ;;
1841 -includedir |
--includedir |
--includedi |
--included |
--include \
1842 |
--includ |
--inclu |
--incl |
--inc)
1843 ac_prev
=includedir
;;
1844 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1845 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1846 includedir
=$ac_optarg ;;
1848 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1850 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1851 infodir
=$ac_optarg ;;
1853 -libdir |
--libdir |
--libdi |
--libd)
1855 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1856 libdir
=$ac_optarg ;;
1858 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1859 |
--libexe |
--libex |
--libe)
1860 ac_prev
=libexecdir
;;
1861 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1862 |
--libexe=* |
--libex=* |
--libe=*)
1863 libexecdir
=$ac_optarg ;;
1865 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1866 ac_prev
=localedir
;;
1867 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1868 localedir
=$ac_optarg ;;
1870 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1871 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1872 ac_prev
=localstatedir
;;
1873 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1874 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1875 localstatedir
=$ac_optarg ;;
1877 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1879 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1880 mandir
=$ac_optarg ;;
1882 -nfp |
--nfp |
--nf)
1883 # Obsolete; use --without-fp.
1886 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1887 |
--no-cr |
--no-c |
-n)
1890 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1891 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1894 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1895 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1896 |
--oldin |
--oldi |
--old |
--ol |
--o)
1897 ac_prev
=oldincludedir
;;
1898 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1899 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1900 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1901 oldincludedir
=$ac_optarg ;;
1903 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1905 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1906 prefix
=$ac_optarg ;;
1908 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1909 |
--program-pre |
--program-pr |
--program-p)
1910 ac_prev
=program_prefix
;;
1911 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1912 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1913 program_prefix
=$ac_optarg ;;
1915 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1916 |
--program-suf |
--program-su |
--program-s)
1917 ac_prev
=program_suffix
;;
1918 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1919 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1920 program_suffix
=$ac_optarg ;;
1922 -program-transform-name |
--program-transform-name \
1923 |
--program-transform-nam |
--program-transform-na \
1924 |
--program-transform-n |
--program-transform- \
1925 |
--program-transform |
--program-transfor \
1926 |
--program-transfo |
--program-transf \
1927 |
--program-trans |
--program-tran \
1928 |
--progr-tra |
--program-tr |
--program-t)
1929 ac_prev
=program_transform_name
;;
1930 -program-transform-name=* |
--program-transform-name=* \
1931 |
--program-transform-nam=* |
--program-transform-na=* \
1932 |
--program-transform-n=* |
--program-transform-=* \
1933 |
--program-transform=* |
--program-transfor=* \
1934 |
--program-transfo=* |
--program-transf=* \
1935 |
--program-trans=* |
--program-tran=* \
1936 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1937 program_transform_name
=$ac_optarg ;;
1939 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1941 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1942 pdfdir
=$ac_optarg ;;
1944 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1946 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1949 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1950 |
-silent |
--silent |
--silen |
--sile |
--sil)
1953 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1955 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1957 sbindir
=$ac_optarg ;;
1959 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1960 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1961 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1963 ac_prev
=sharedstatedir
;;
1964 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1965 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1966 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1968 sharedstatedir
=$ac_optarg ;;
1970 -site |
--site |
--sit)
1972 -site=* |
--site=* |
--sit=*)
1975 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1977 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1978 srcdir
=$ac_optarg ;;
1980 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1981 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1982 ac_prev
=sysconfdir
;;
1983 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1984 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1985 sysconfdir
=$ac_optarg ;;
1987 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1988 ac_prev
=target_alias
;;
1989 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1990 target_alias
=$ac_optarg ;;
1992 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1995 -version |
--version |
--versio |
--versi |
--vers |
-V)
1996 ac_init_version
=: ;;
1999 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2000 # Reject names that are not valid shell variable names.
2001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2002 as_fn_error
"invalid package name: $ac_useropt"
2003 ac_useropt_orig
=$ac_useropt
2004 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2005 case $ac_user_opts in
2009 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2010 ac_unrecognized_sep
=', ';;
2012 eval with_
$ac_useropt=\
$ac_optarg ;;
2014 -without-* |
--without-*)
2015 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2016 # Reject names that are not valid shell variable names.
2017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2018 as_fn_error
"invalid package name: $ac_useropt"
2019 ac_useropt_orig
=$ac_useropt
2020 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2021 case $ac_user_opts in
2025 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2026 ac_unrecognized_sep
=', ';;
2028 eval with_
$ac_useropt=no
;;
2031 # Obsolete; use --with-x.
2034 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2035 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2036 ac_prev
=x_includes
;;
2037 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2038 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2039 x_includes
=$ac_optarg ;;
2041 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2042 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2043 ac_prev
=x_libraries
;;
2044 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2045 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2046 x_libraries
=$ac_optarg ;;
2048 -*) as_fn_error
"unrecognized option: \`$ac_option'
2049 Try \`$0 --help' for more information."
2053 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2054 # Reject names that are not valid shell variable names.
2055 case $ac_envvar in #(
2056 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2057 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
2059 eval $ac_envvar=\
$ac_optarg
2060 export $ac_envvar ;;
2063 # FIXME: should be removed in autoconf 3.0.
2064 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2066 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2067 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2073 if test -n "$ac_prev"; then
2074 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2075 as_fn_error
"missing argument to $ac_option"
2078 if test -n "$ac_unrecognized_opts"; then
2079 case $enable_option_checking in
2081 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
2082 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2086 # Check all directory arguments for consistency.
2087 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2088 datadir sysconfdir sharedstatedir localstatedir includedir \
2089 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2090 libdir localedir mandir
2092 eval ac_val
=\$
$ac_var
2093 # Remove trailing slashes.
2096 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2097 eval $ac_var=\
$ac_val;;
2099 # Be sure to have absolute directory names.
2101 [\\/$
]* | ?
:[\\/]* ) continue;;
2102 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2104 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2107 # There might be people who depend on the old broken behavior: `$host'
2108 # used to hold the argument of --host etc.
2109 # FIXME: To remove some day.
2112 target
=$target_alias
2114 # FIXME: To remove some day.
2115 if test "x$host_alias" != x
; then
2116 if test "x$build_alias" = x
; then
2117 cross_compiling
=maybe
2118 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2119 If a cross compiler is detected then cross compile mode will be used." >&2
2120 elif test "x$build_alias" != "x$host_alias"; then
2126 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2128 test "$silent" = yes && exec 6>/dev
/null
2131 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2132 ac_ls_di
=`ls -di .` &&
2133 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2134 as_fn_error
"working directory cannot be determined"
2135 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2136 as_fn_error
"pwd does not report name of working directory"
2139 # Find the source files, if location was not specified.
2140 if test -z "$srcdir"; then
2141 ac_srcdir_defaulted
=yes
2142 # Try the directory containing this script, then the parent directory.
2143 ac_confdir
=`$as_dirname -- "$as_myself" ||
2144 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2145 X"$as_myself" : 'X\(//\)[^/]' \| \
2146 X"$as_myself" : 'X\(//\)$' \| \
2147 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2148 $as_echo X"$as_myself" |
2149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2167 if test ! -r "$srcdir/$ac_unique_file"; then
2171 ac_srcdir_defaulted
=no
2173 if test ! -r "$srcdir/$ac_unique_file"; then
2174 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2175 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2177 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2179 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2181 # When building in place, set srcdir=.
2182 if test "$ac_abs_confdir" = "$ac_pwd"; then
2185 # Remove unnecessary trailing slashes from srcdir.
2186 # Double slashes in file names in object file debugging info
2187 # mess up M-x gdb in Emacs.
2189 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2191 for ac_var
in $ac_precious_vars; do
2192 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2193 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2194 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2195 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2199 # Report the --help message.
2201 if test "$ac_init_help" = "long"; then
2202 # Omit some internal or obsolete options to make the list less imposing.
2203 # This message is too long to be a string in the A/UX 3.1 sh.
2205 \`configure' configures this package to adapt to many kinds of systems.
2207 Usage: $0 [OPTION]... [VAR=VALUE]...
2209 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2210 VAR=VALUE. See below for descriptions of some of the useful variables.
2212 Defaults for the options are specified in brackets.
2215 -h, --help display this help and exit
2216 --help=short display options specific to this package
2217 --help=recursive display the short help of all the included packages
2218 -V, --version display version information and exit
2219 -q, --quiet, --silent do not print \`checking...' messages
2220 --cache-file=FILE cache test results in FILE [disabled]
2221 -C, --config-cache alias for \`--cache-file=config.cache'
2222 -n, --no-create do not create output files
2223 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2225 Installation directories:
2226 --prefix=PREFIX install architecture-independent files in PREFIX
2227 [$ac_default_prefix]
2228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2231 By default, \`make install' will install all the files in
2232 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2233 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2234 for instance \`--prefix=\$HOME'.
2236 For better control, use the options below.
2238 Fine tuning of the installation directories:
2239 --bindir=DIR user executables [EPREFIX/bin]
2240 --sbindir=DIR system admin executables [EPREFIX/sbin]
2241 --libexecdir=DIR program executables [EPREFIX/libexec]
2242 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2243 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2244 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2245 --libdir=DIR object code libraries [EPREFIX/lib]
2246 --includedir=DIR C header files [PREFIX/include]
2247 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2248 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2249 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2250 --infodir=DIR info documentation [DATAROOTDIR/info]
2251 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2252 --mandir=DIR man documentation [DATAROOTDIR/man]
2253 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2254 --htmldir=DIR html documentation [DOCDIR]
2255 --dvidir=DIR dvi documentation [DOCDIR]
2256 --pdfdir=DIR pdf documentation [DOCDIR]
2257 --psdir=DIR ps documentation [DOCDIR]
2263 --program-prefix=PREFIX prepend PREFIX to installed program names
2264 --program-suffix=SUFFIX append SUFFIX to installed program names
2265 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2268 --build=BUILD configure
for building on BUILD
[guessed
]
2269 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2270 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2274 if test -n "$ac_init_help"; then
2279 --disable-option-checking ignore unrecognized
--enable/--with options
2280 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2281 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2282 --enable-maintainer-mode enable make rules and dependencies not useful
2283 (and sometimes confusing
) to the casual installer
2284 --disable-largefile omit support
for large files
2285 --disable-dependency-tracking speeds up one-time build
2286 --enable-dependency-tracking do not reject slow dependency extractors
2288 Some influential environment variables
:
2289 CC C compiler
command
2290 CFLAGS C compiler flags
2291 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2292 nonstandard directory
<lib dir
>
2293 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2294 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2295 you have headers
in a nonstandard directory
<include dir
>
2298 Use these variables to override the choices made by
`configure' or to help
2299 it to find libraries and programs with nonstandard names/locations.
2301 Report bugs to the package provider.
2306 if test "$ac_init_help" = "recursive"; then
2307 # If there are subdirs, report their specific --help.
2308 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2309 test -d "$ac_dir" ||
2310 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2317 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2318 # A ".." for each directory in $ac_dir_suffix.
2319 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2320 case $ac_top_builddir_sub in
2321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2325 ac_abs_top_builddir=$ac_pwd
2326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2327 # for backward compatibility:
2328 ac_top_builddir=$ac_top_build_prefix
2331 .) # We are building in place.
2333 ac_top_srcdir=$ac_top_builddir_sub
2334 ac_abs_top_srcdir=$ac_pwd ;;
2335 [\\/]* | ?:[\\/]* ) # Absolute name.
2336 ac_srcdir=$srcdir$ac_dir_suffix;
2337 ac_top_srcdir=$srcdir
2338 ac_abs_top_srcdir=$srcdir ;;
2340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2341 ac_top_srcdir=$ac_top_build_prefix$srcdir
2342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2346 cd "$ac_dir" || { ac_status=$?; continue; }
2347 # Check for guested configure.
2348 if test -f "$ac_srcdir/configure.gnu"; then
2350 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2351 elif test -f "$ac_srcdir/configure"; then
2353 $SHELL "$ac_srcdir/configure" --help=recursive
2355 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2357 cd "$ac_pwd" || { ac_status=$?; break; }
2361 test -n "$ac_init_help" && exit $ac_status
2362 if $ac_init_version; then
2365 generated by GNU Autoconf 2.64
2367 Copyright (C) 2009 Free Software Foundation, Inc.
2368 This configure script is free software; the Free Software Foundation
2369 gives unlimited permission to copy, distribute and modify it.
2374 ## ------------------------ ##
2375 ## Autoconf initialization. ##
2376 ## ------------------------ ##
2378 # ac_fn_c_try_compile LINENO
2379 # --------------------------
2380 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2381 ac_fn_c_try_compile ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext
2385 if { { ac_try="$ac_compile"
2387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2388 *) ac_try_echo
=$ac_try;;
2390 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_compile") 2>conftest.err
2394 if test -s conftest.err
; then
2395 grep -v '^ *+' conftest.err
>conftest.er1
2396 cat conftest.er1
>&5
2397 mv -f conftest.er1 conftest.err
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest.
$ac_objext; then :
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.
$ac_ext >&5
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2414 } # ac_fn_c_try_compile
2416 # ac_fn_c_try_cpp LINENO
2417 # ----------------------
2418 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2421 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2422 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428 $as_echo "$ac_try_echo"; } >&5
2429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2431 if test -s conftest.err; then
2432 grep -v '^ *+' conftest.err >conftest.er1
2433 cat conftest.er1 >&5
2434 mv -f conftest.er1 conftest.err
2436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437 test $ac_status = 0; } >/dev/null && {
2438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2439 test ! -s conftest.err
2443 $as_echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2453 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2454 # -------------------------------------------------------
2455 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2456 # the include files in INCLUDES and setting the cache variable VAR
2458 ac_fn_c_check_header_mongrel ()
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 $as_echo_n "(cached) " >&6
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2469 $as_echo "$ac_res" >&6; }
2471 # Is the header compilable?
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2473 $as_echo_n "checking $2 usability... " >&6; }
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480 ac_header_compiler=yes
2482 ac_header_compiler=no
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2486 $as_echo "$ac_header_compiler" >&6; }
2488 # Is the header present?
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2490 $as_echo_n "checking $2 presence... " >&6; }
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2495 if ac_fn_c_try_cpp "$LINENO"; then :
2496 ac_header_preproc=yes
2498 ac_header_preproc=no
2500 rm -f conftest.err conftest.$ac_ext
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2502 $as_echo "$ac_header_preproc" >&6; }
2504 # So? What about this header?
2505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2508 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2510 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2514 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2516 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2518 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2520 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2522 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526 $as_echo_n "checking for $2... " >&6; }
2527 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2528 $as_echo_n "(cached) " >&6
2530 eval "$3=\$ac_header_compiler"
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2534 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 } # ac_fn_c_check_header_mongrel
2540 # ac_fn_c_try_run LINENO
2541 # ----------------------
2542 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2543 # that executables *can* be run.
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 if { { ac_try="$ac_link"
2549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2550 *) ac_try_echo
=$ac_try;;
2552 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2553 $as_echo "$ac_try_echo"; } >&5
2554 (eval "$ac_link") 2>&5
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2558 { { case "(($ac_try" in
2559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563 $as_echo "$ac_try_echo"; } >&5
2564 (eval "$ac_try") 2>&5
2566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2567 test $ac_status = 0; }; }; then :
2570 $as_echo "$as_me: program exited with status $ac_status" >&5
2571 $as_echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2574 ac_retval=$ac_status
2576 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2583 # -------------------------------------------------------
2584 # Tests whether HEADER exists and can be compiled using the include files in
2585 # INCLUDES, setting the cache variable VAR accordingly.
2586 ac_fn_c_check_header_compile ()
2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2590 $as_echo_n "checking for $2... " >&6; }
2591 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2592 $as_echo_n "(cached) " >&6
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2599 if ac_fn_c_try_compile "$LINENO"; then :
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2611 } # ac_fn_c_check_header_compile
2613 # ac_fn_c_try_link LINENO
2614 # -----------------------
2615 # Try to link conftest.$ac_ext, and return whether this succeeded.
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 rm -f conftest.$ac_objext conftest$ac_exeext
2620 if { { ac_try="$ac_link"
2622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2623 *) ac_try_echo
=$ac_try;;
2625 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2626 $as_echo "$ac_try_echo"; } >&5
2627 (eval "$ac_link") 2>conftest.err
2629 if test -s conftest.err
; then
2630 grep -v '^ *+' conftest.err
>conftest.er1
2631 cat conftest.er1
>&5
2632 mv -f conftest.er1 conftest.err
2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635 test $ac_status = 0; } && {
2636 test -z "$ac_c_werror_flag" ||
2637 test ! -s conftest.err
2638 } && test -s conftest
$ac_exeext && {
2639 test "$cross_compiling" = yes ||
2640 $as_test_x conftest
$ac_exeext
2644 $as_echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.
$ac_ext >&5
2649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2651 # interfere with the next link command; also delete a directory that is
2652 # left behind by Apple's compiler. We do this before executing the actions.
2653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2654 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2657 } # ac_fn_c_try_link
2659 # ac_fn_c_check_func LINENO FUNC VAR
2660 # ----------------------------------
2661 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2662 ac_fn_c_check_func
()
2664 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2666 $as_echo_n "checking for $2... " >&6; }
2667 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2668 $as_echo_n "(cached) " >&6
2670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2672 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2674 #define $2 innocuous_$2
2676 /* System header to define __stub macros and hopefully few prototypes,
2677 which can conflict with char $2 (); below.
2678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2679 <limits.h> exists even on freestanding compilers. */
2682 # include <limits.h>
2684 # include <assert.h>
2689 /* Override any GCC internal prototype to avoid an error.
2690 Use char because int might match the return type of a GCC
2691 builtin and then its argument prototype would still apply. */
2696 /* The GNU C library defines this for functions which it implements
2697 to always fail with ENOSYS. Some functions are actually named
2698 something starting with __ and the normal name is an alias. */
2699 #if defined __stub_$2 || defined __stub___$2
2711 if ac_fn_c_try_link
"$LINENO"; then :
2716 rm -f core conftest.err conftest.
$ac_objext \
2717 conftest
$ac_exeext conftest.
$ac_ext
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2724 } # ac_fn_c_check_func
2726 # ac_fn_c_check_decl LINENO SYMBOL VAR
2727 # ------------------------------------
2728 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2729 ac_fn_c_check_decl
()
2731 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2733 $as_echo_n "checking whether $2 is declared... " >&6; }
2734 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2735 $as_echo_n "(cached) " >&6
2737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2751 if ac_fn_c_try_compile
"$LINENO"; then :
2756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2760 $as_echo "$ac_res" >&6; }
2761 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2763 } # ac_fn_c_check_decl
2765 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2766 # --------------------------------------------
2767 # Tries to find the compile-time value of EXPR in a program that includes
2768 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2770 ac_fn_c_compute_int
()
2772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2773 if test "$cross_compiling" = yes; then
2774 # Depending upon the size, compute the lo and hi bounds.
2775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2781 static int test_array [1 - 2 * !(($2) >= 0)];
2788 if ac_fn_c_try_compile
"$LINENO"; then :
2791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2792 /* end confdefs.h. */
2797 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2804 if ac_fn_c_try_compile
"$LINENO"; then :
2805 ac_hi
=$ac_mid; break
2807 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2808 if test $ac_lo -le $ac_mid; then
2812 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2823 static int test_array [1 - 2 * !(($2) < 0)];
2830 if ac_fn_c_try_compile
"$LINENO"; then :
2833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2839 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2846 if ac_fn_c_try_compile
"$LINENO"; then :
2847 ac_lo
=$ac_mid; break
2849 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2850 if test $ac_mid -le $ac_hi; then
2854 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2864 # Binary search between lo and hi bounds.
2865 while test "x$ac_lo" != "x$ac_hi"; do
2866 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2873 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2880 if ac_fn_c_try_compile
"$LINENO"; then :
2883 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2888 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2895 static long int longval () { return $2; }
2896 static unsigned long int ulongval () { return $2; }
2903 FILE *f = fopen ("conftest.val", "w");
2908 long int i = longval ();
2911 fprintf (f, "%ld", i);
2915 unsigned long int i = ulongval ();
2918 fprintf (f, "%lu", i);
2920 /* Do not output a trailing newline, as this causes \r\n confusion
2921 on some platforms. */
2922 return ferror (f) || fclose (f) != 0;
2928 if ac_fn_c_try_run
"$LINENO"; then :
2929 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2933 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2934 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2938 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2941 } # ac_fn_c_compute_int
2943 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2944 # -------------------------------------------
2945 # Tests whether TYPE exists after having included INCLUDES, setting cache
2946 # variable VAR accordingly.
2947 ac_fn_c_check_type
()
2949 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2951 $as_echo_n "checking for $2... " >&6; }
2952 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2953 $as_echo_n "(cached) " >&6
2956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2957 /* end confdefs.h. */
2968 if ac_fn_c_try_compile
"$LINENO"; then :
2969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2981 if ac_fn_c_try_compile
"$LINENO"; then :
2986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2992 $as_echo "$ac_res" >&6; }
2993 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2995 } # ac_fn_c_check_type
2996 cat >config.log
<<_ACEOF
2997 This file contains any messages produced by compilers while
2998 running configure, to aid debugging if configure makes a mistake.
3000 It was created by $as_me, which was
3001 generated by GNU Autoconf 2.64. Invocation command line was
3013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3025 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir
=.
3037 $as_echo "PATH: $as_dir"
3053 # Keep a trace of the command line.
3054 # Strip out --no-create and --no-recursion so they do not pile up.
3055 # Strip out --silent because we don't want to record it for future runs.
3056 # Also quote any args containing shell meta-characters.
3057 # Make two passes to allow for proper duplicate-argument suppression.
3061 ac_must_keep_next
=false
3067 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3068 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3069 |
-silent |
--silent |
--silen |
--sile |
--sil)
3072 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3075 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3077 as_fn_append ac_configure_args1
" '$ac_arg'"
3078 if test $ac_must_keep_next = true
; then
3079 ac_must_keep_next
=false
# Got value, back to normal.
3082 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3083 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3084 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3085 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3086 case "$ac_configure_args0 " in
3087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3090 -* ) ac_must_keep_next
=true
;;
3093 as_fn_append ac_configure_args
" '$ac_arg'"
3098 { ac_configure_args0
=; unset ac_configure_args0
;}
3099 { ac_configure_args1
=; unset ac_configure_args1
;}
3101 # When interrupted or exit'd, cleanup temporary files, and complete
3102 # config.log. We remove comments because anyway the quotes in there
3103 # would cause problems or look ugly.
3104 # WARNING: Use '\'' to represent an apostrophe within the trap.
3105 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3106 trap 'exit_status=$?
3107 # Save into config.log some information that might help in debugging.
3112 ## ---------------- ##
3113 ## Cache variables. ##
3114 ## ---------------- ##
3117 # The following way of writing the cache mishandles newlines in values,
3119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3120 eval ac_val=\$$ac_var
3124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3128 _ | IFS | as_nl) ;; #(
3129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3130 *) { eval $ac_var=; unset $ac_var;} ;;
3135 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3136 *${as_nl}ac_space=\ *)
3138 "s/'\''/'\''\\\\'\'''\''/g;
3139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3150 ## ----------------- ##
3151 ## Output variables. ##
3152 ## ----------------- ##
3155 for ac_var in $ac_subst_vars
3157 eval ac_val=\$$ac_var
3159 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3161 $as_echo "$ac_var='\''$ac_val'\''"
3165 if test -n "$ac_subst_files"; then
3167 ## ------------------- ##
3168 ## File substitutions. ##
3169 ## ------------------- ##
3172 for ac_var
in $ac_subst_files
3174 eval ac_val
=\$
$ac_var
3176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3178 $as_echo "$ac_var='\''$ac_val'\''"
3183 if test -s confdefs.h; then
3193 test "$ac_signal" != 0 &&
3194 $as_echo "$as_me: caught signal $ac_signal"
3195 $as_echo "$as_me: exit $exit_status"
3197 rm -f core *.core core.conftest.* &&
3198 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3201 for ac_signal
in 1 2 13 15; do
3202 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3206 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3207 rm -f -r conftest
* confdefs.h
3209 $as_echo "/* confdefs.h */" > confdefs.h
3211 # Predefined preprocessor variables.
3213 cat >>confdefs.h
<<_ACEOF
3214 #define PACKAGE_NAME "$PACKAGE_NAME"
3217 cat >>confdefs.h
<<_ACEOF
3218 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3221 cat >>confdefs.h
<<_ACEOF
3222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3225 cat >>confdefs.h
<<_ACEOF
3226 #define PACKAGE_STRING "$PACKAGE_STRING"
3229 cat >>confdefs.h
<<_ACEOF
3230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3233 cat >>confdefs.h
<<_ACEOF
3234 #define PACKAGE_URL "$PACKAGE_URL"
3238 # Let the site file select an alternate cache file if it wants to.
3239 # Prefer an explicitly selected file to automatically selected ones.
3242 if test -n "$CONFIG_SITE"; then
3243 ac_site_file1
=$CONFIG_SITE
3244 elif test "x$prefix" != xNONE
; then
3245 ac_site_file1
=$prefix/share
/config.site
3246 ac_site_file2
=$prefix/etc
/config.site
3248 ac_site_file1
=$ac_default_prefix/share
/config.site
3249 ac_site_file2
=$ac_default_prefix/etc
/config.site
3251 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3253 test "x$ac_site_file" = xNONE
&& continue
3254 if test -r "$ac_site_file"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3256 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3257 sed 's/^/| /' "$ac_site_file" >&5
3262 if test -r "$cache_file"; then
3263 # Some versions of bash will fail to source /dev/null (special
3264 # files actually), so we avoid doing that.
3265 if test -f "$cache_file"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3267 $as_echo "$as_me: loading cache $cache_file" >&6;}
3269 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3270 *) .
"./$cache_file";;
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3275 $as_echo "$as_me: creating cache $cache_file" >&6;}
3279 as_fn_append ac_func_list
" canonicalize_file_name"
3280 as_fn_append ac_func_list
" getcwd"
3281 as_fn_append ac_func_list
" readlink"
3282 as_fn_append ac_func_list
" realpath"
3283 as_fn_append ac_header_list
" sys/param.h"
3284 as_fn_append ac_header_list
" dirent.h"
3285 as_fn_append ac_func_list
" btowc"
3286 as_fn_append ac_func_list
" isblank"
3287 as_fn_append ac_func_list
" iswctype"
3288 as_fn_append ac_func_list
" mbsrtowcs"
3289 as_fn_append ac_func_list
" mempcpy"
3290 as_fn_append ac_func_list
" wmemchr"
3291 as_fn_append ac_func_list
" wmemcpy"
3292 as_fn_append ac_func_list
" wmempcpy"
3293 as_fn_append ac_header_list
" wctype.h"
3294 gl_fnmatch_required
=GNU
3295 as_fn_append ac_header_list
" sys/time.h"
3296 as_fn_append ac_header_list
" sys/socket.h"
3297 as_fn_append ac_func_list
" gettimeofday"
3298 as_fn_append ac_header_list
" wchar.h"
3299 as_fn_append ac_header_list
" stdint.h"
3300 as_fn_append ac_header_list
" inttypes.h"
3301 as_fn_append ac_header_list
" unistd.h"
3302 as_fn_append ac_func_list
" symlink"
3303 as_fn_append ac_func_list
" lstat"
3304 as_fn_append ac_header_list
" math.h"
3305 as_fn_append ac_func_list
" mbsinit"
3306 as_fn_append ac_func_list
" mbrtowc"
3307 as_fn_append ac_header_list
" sys/mman.h"
3308 as_fn_append ac_func_list
" mprotect"
3309 as_fn_append ac_func_list
" link"
3310 as_fn_append ac_header_list
" sys/stat.h"
3311 as_fn_append ac_header_list
" features.h"
3312 as_fn_append ac_func_list
" iswcntrl"
3313 # Check that the precious variables saved in the cache have kept the same
3315 ac_cache_corrupted
=false
3316 for ac_var
in $ac_precious_vars; do
3317 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3318 eval ac_new_set
=\
$ac_env_${ac_var}_set
3319 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3320 eval ac_new_val
=\
$ac_env_${ac_var}_value
3321 case $ac_old_set,$ac_new_set in
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3324 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3325 ac_cache_corrupted
=: ;;
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3328 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3329 ac_cache_corrupted
=: ;;
3332 if test "x$ac_old_val" != "x$ac_new_val"; then
3333 # differences in whitespace do not lead to failure.
3334 ac_old_val_w
=`echo x $ac_old_val`
3335 ac_new_val_w
=`echo x $ac_new_val`
3336 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3338 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3339 ac_cache_corrupted
=:
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3342 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3343 eval $ac_var=\
$ac_old_val
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3346 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3348 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3351 # Pass precious variables to config.status.
3352 if test "$ac_new_set" = set; then
3354 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3355 *) ac_arg
=$ac_var=$ac_new_val ;;
3357 case " $ac_configure_args " in
3358 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3359 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3363 if $ac_cache_corrupted; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3367 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3368 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3370 ## -------------------- ##
3371 ## Main body of script. ##
3372 ## -------------------- ##
3375 ac_cpp
='$CPP $CPPFLAGS'
3376 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3381 ac_config_headers
="$ac_config_headers config.h:config.in"
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3385 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3386 # Check whether --enable-maintainer-mode was given.
3387 if test "${enable_maintainer_mode+set}" = set; then :
3388 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3390 USE_MAINTAINER_MODE
=no
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3394 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3395 if test $USE_MAINTAINER_MODE = yes; then
3396 MAINTAINER_MODE_TRUE
=
3397 MAINTAINER_MODE_FALSE
='#'
3399 MAINTAINER_MODE_TRUE
='#'
3400 MAINTAINER_MODE_FALSE
=
3403 MAINT
=$MAINTAINER_MODE_TRUE
3408 ac_cpp
='$CPP $CPPFLAGS'
3409 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3414 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_CC+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC
="$CC" # Let the user override the test.
3423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir
=.
3428 for ac_exec_ext
in '' $ac_executable_extensions; do
3429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3451 if test -z "$ac_cv_prog_CC"; then
3453 # Extract the first word of "gcc", so it can be a program name with args.
3454 set dummy gcc
; ac_word
=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3460 if test -n "$ac_ct_CC"; then
3461 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir
=.
3468 for ac_exec_ext
in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_ac_ct_CC
="gcc"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3481 if test -n "$ac_ct_CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3483 $as_echo "$ac_ct_CC" >&6; }
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3489 if test "x$ac_ct_CC" = x
; then
3492 case $cross_compiling:$ac_tool_warned in
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned
=yes ;;
3504 if test -z "$CC"; then
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3507 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC
="$CC" # Let the user override the test.
3516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir
=.
3521 for ac_exec_ext
in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3545 if test -z "$CC"; then
3546 # Extract the first word of "cc", so it can be a program name with args.
3547 set dummy cc
; ac_word
=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC
="$CC" # Let the user override the test.
3557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir
=.
3562 for ac_exec_ext
in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3565 ac_prog_rejected
=yes
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 if test $ac_prog_rejected = yes; then
3577 # We found a bogon in the path, so make sure we never use it.
3578 set dummy
$ac_cv_prog_CC
3580 if test $# != 0; then
3581 # We chose a different compiler from the bogus one.
3582 # However, it has the same basename, so the bogon will be chosen
3583 # first if we set CC to just the basename; use the full file name.
3585 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3591 if test -n "$CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3593 $as_echo "$CC" >&6; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3601 if test -z "$CC"; then
3602 if test -n "$ac_tool_prefix"; then
3603 for ac_prog
in cl.exe
3605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC
="$CC" # Let the user override the test.
3615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3619 test -z "$as_dir" && as_dir
=.
3620 for ac_exec_ext
in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3642 test -n "$CC" && break
3645 if test -z "$CC"; then
3647 for ac_prog
in cl.exe
3649 # Extract the first word of "$ac_prog", so it can be a program name with args.
3650 set dummy
$ac_prog; ac_word
=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3656 if test -n "$ac_ct_CC"; then
3657 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir
=.
3664 for ac_exec_ext
in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_ac_ct_CC
="$ac_prog"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3677 if test -n "$ac_ct_CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3679 $as_echo "$ac_ct_CC" >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3686 test -n "$ac_ct_CC" && break
3689 if test "x$ac_ct_CC" = x
; then
3692 case $cross_compiling:$ac_tool_warned in
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696 ac_tool_warned
=yes ;;
3705 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error
"no acceptable C compiler found in \$PATH
3708 See \`config.log' for more details." "$LINENO" 5; }
3710 # Provide some information about the compiler.
3711 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3714 for ac_option
in --version -v -V -qversion; do
3715 { { ac_try
="$ac_compiler $ac_option >&5"
3717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3724 if test -s conftest.err; then
3726 ... rest of stderr output deleted ...
3727 10q' conftest.err >conftest.er1
3728 cat conftest.er1 >&5
3729 rm -f conftest.er1 conftest.err
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3741 FILE *f = fopen ("conftest.out", "w");
3742 return ferror (f) || fclose (f) != 0;
3748 ac_clean_files_save=$ac_clean_files
3749 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3750 # Try to create an executable without -o first, disregard a.out.
3751 # It will help us diagnose broken compilers, and finding out an intuition
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3754 $as_echo_n "checking for C compiler default output file name... " >&6; }
3755 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3757 # The possible output files:
3758 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3761 for ac_file in $ac_files
3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3765 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3770 if { { ac_try="$ac_link_default"
3772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3773 *) ac_try_echo
=$ac_try;;
3775 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_link_default") 2>&5
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }; then :
3781 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3782 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3783 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3784 # so that the user can short-circuit this test for compilers unknown to
3786 for ac_file
in $ac_files ''
3788 test -f "$ac_file" ||
continue
3790 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3793 # We found the default executable, but exeext='' is most
3797 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3799 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3801 # We set ac_cv_exeext here because the later test for it is not
3802 # safe: cross compilers may not add the suffix if given an `-o'
3803 # argument, so we may need to know it at that point already.
3804 # Even if this section looks crufty: it has the advantage of
3811 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3817 $as_echo "$ac_file" >&6; }
3818 if test -z "$ac_file"; then :
3819 $as_echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.
$ac_ext >&5
3822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824 { as_fn_set_status
77
3825 as_fn_error
"C compiler cannot create executables
3826 See \`config.log' for more details." "$LINENO" 5; }; }
3828 ac_exeext
=$ac_cv_exeext
3830 # Check that the compiler produces executables we can run. If not, either
3831 # the compiler is broken, or we cross compile.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3833 $as_echo_n "checking whether the C compiler works... " >&6; }
3834 # If not cross compiling, check that we can run a simple program.
3835 if test "$cross_compiling" != yes; then
3836 if { ac_try
='./$ac_file'
3837 { { case "(($ac_try" in
3838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_try") 2>&5
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; }; then
3849 if test "$cross_compiling" = maybe; then
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error "cannot run C compiled programs.
3855 If you meant to cross compile
, use \
`--host'.
3856 See \`config.log
' for more details." "$LINENO" 5; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3861 $as_echo "yes" >&6; }
3863 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3864 ac_clean_files=$ac_clean_files_save
3865 # Check that the compiler produces executables we can run. If not, either
3866 # the compiler is broken, or we cross compile.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3868 $as_echo_n "checking whether we are cross compiling... " >&6; }
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3870 $as_echo "$cross_compiling" >&6; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3873 $as_echo_n "checking for suffix of executables... " >&6; }
3874 if { { ac_try="$ac_link"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_link") 2>&5
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; then :
3885 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3886 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3887 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3889 for ac_file
in conftest.exe conftest conftest.
*; do
3890 test -f "$ac_file" ||
continue
3892 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3893 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3902 See \`config.log' for more details." "$LINENO" 5; }
3904 rm -f conftest
$ac_cv_exeext
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3906 $as_echo "$ac_cv_exeext" >&6; }
3908 rm -f conftest.
$ac_ext
3909 EXEEXT
=$ac_cv_exeext
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3912 $as_echo_n "checking for suffix of object files... " >&6; }
3913 if test "${ac_cv_objext+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3927 rm -f conftest.o conftest.obj
3928 if { { ac_try
="$ac_compile"
3930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_compile") 2>&5
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }; then :
3939 for ac_file in conftest.o conftest.obj conftest.*; do
3940 test -f "$ac_file" || continue;
3942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3948 $as_echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 as_fn_error "cannot compute suffix of object files
: cannot compile
3954 See \
`config.log' for more details." "$LINENO" 5; }
3956 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3959 $as_echo "$ac_cv_objext" >&6; }
3960 OBJEXT=$ac_cv_objext
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3963 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3964 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3981 if ac_fn_c_try_compile "$LINENO"; then :
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3992 if test $ac_compiler_gnu = yes; then
3997 ac_test_CFLAGS=${CFLAGS+set}
3998 ac_save_CFLAGS=$CFLAGS
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4001 if test "${ac_cv_prog_cc_g+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 ac_save_c_werror_flag=$ac_c_werror_flag
4005 ac_c_werror_flag=yes
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4019 if ac_fn_c_try_compile "$LINENO"; then :
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4034 if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_c_werror_flag=$ac_save_c_werror_flag
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 ac_c_werror_flag=$ac_save_c_werror_flag
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4061 $as_echo "$ac_cv_prog_cc_g" >&6; }
4062 if test "$ac_test_CFLAGS" = set; then
4063 CFLAGS=$ac_save_CFLAGS
4064 elif test $ac_cv_prog_cc_g = yes; then
4065 if test "$GCC" = yes; then
4071 if test "$GCC" = yes; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4078 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4079 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4082 ac_cv_prog_cc_c89=no
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 #include <sys/types.h>
4089 #include <sys/stat.h>
4090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4091 struct buf { int x; };
4092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4093 static char *e (p, i)
4099 static char *f (char * (*g) (char **, int), char **p, ...)
4104 s = g (p, va_arg (v,int));
4109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4110 function prototypes and stuff, but not '\xHH' hex character constants.
4111 These don't provoke an error unfortunately, instead are silently treated
4112 as 'x'. The following induces an error, until -std is added to get
4113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4114 array size at least. It's necessary to write '\x00'==0 to get something
4115 that's true only with -std. */
4116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4118 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4119 inside strings and character constants. */
4121 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4123 int test (int i, double x);
4124 struct s1 {int (*f) (int a);};
4125 struct s2 {int (*f) (double a);};
4126 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4137 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4138 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4140 CC="$ac_save_CC $ac_arg"
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_c89=$ac_arg
4144 rm -f core conftest.err conftest.$ac_objext
4145 test "x$ac_cv_prog_cc_c89" != "xno" && break
4147 rm -f conftest.$ac_ext
4152 case "x$ac_cv_prog_cc_c89" in
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155 $as_echo "none needed" >&6; } ;;
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;;
4160 CC="$CC $ac_cv_prog_cc_c89"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4162 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4164 if test "x$ac_cv_prog_cc_c89" != xno; then :
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4181 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4182 # On Suns, sometimes $CPP names a directory.
4183 if test -n "$CPP" && test -d "$CPP"; then
4186 if test -z "$CPP"; then
4187 if test "${ac_cv_prog_CPP+set}" = set; then :
4188 $as_echo_n "(cached) " >&6
4190 # Double quotes because CPP needs to be expanded
4191 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4194 for ac_c_preproc_warn_flag in '' yes
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error" is here to catch this case.
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4205 # include <limits.h>
4207 # include <assert.h>
4211 if ac_fn_c_try_cpp "$LINENO"; then :
4214 # Broken: fails on valid input.
4217 rm -f conftest.err conftest.$ac_ext
4219 # OK, works on sane cases. Now check whether nonexistent headers
4220 # can be detected and how.
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4225 if ac_fn_c_try_cpp "$LINENO"; then :
4226 # Broken: success on invalid input.
4229 # Passes both tests.
4233 rm -f conftest.err conftest.$ac_ext
4236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237 rm -f conftest.err conftest.
$ac_ext
4238 if $ac_preproc_ok; then :
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4251 $as_echo "$CPP" >&6; }
4253 for ac_c_preproc_warn_flag
in '' yes
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4264 # include <limits.h>
4266 # include <assert.h>
4270 if ac_fn_c_try_cpp
"$LINENO"; then :
4273 # Broken: fails on valid input.
4276 rm -f conftest.err conftest.
$ac_ext
4278 # OK, works on sane cases. Now check whether nonexistent headers
4279 # can be detected and how.
4280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #include <ac_nonexistent.h>
4284 if ac_fn_c_try_cpp
"$LINENO"; then :
4285 # Broken: success on invalid input.
4288 # Passes both tests.
4292 rm -f conftest.err conftest.
$ac_ext
4295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296 rm -f conftest.err conftest.
$ac_ext
4297 if $ac_preproc_ok; then :
4300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4302 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4303 See \`config.log' for more details." "$LINENO" 5; }
4307 ac_cpp
='$CPP $CPPFLAGS'
4308 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4314 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4315 if test "${ac_cv_path_GREP+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4318 if test -z "$GREP"; then
4319 ac_path_GREP_found
=false
4320 # Loop through the user's path and test for each of PROGNAME-LIST
4321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4322 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4325 test -z "$as_dir" && as_dir
=.
4326 for ac_prog
in grep ggrep
; do
4327 for ac_exec_ext
in '' $ac_executable_extensions; do
4328 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4329 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4330 # Check for GNU ac_path_GREP and select it if it is found.
4331 # Check for GNU $ac_path_GREP
4332 case `"$ac_path_GREP" --version 2>&1` in
4334 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4337 $as_echo_n 0123456789 >"conftest.in"
4340 cat "conftest.in" "conftest.in" >"conftest.tmp"
4341 mv "conftest.tmp" "conftest.in"
4342 cp "conftest.in" "conftest.nl"
4343 $as_echo 'GREP' >> "conftest.nl"
4344 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4345 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4346 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4347 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4348 # Best one so far, save it but keep looking for a better one
4349 ac_cv_path_GREP
="$ac_path_GREP"
4350 ac_path_GREP_max
=$ac_count
4352 # 10*(2^10) chars as input seems more than enough
4353 test $ac_count -gt 10 && break
4355 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4358 $ac_path_GREP_found && break 3
4363 if test -z "$ac_cv_path_GREP"; then
4364 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4367 ac_cv_path_GREP
=$GREP
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4372 $as_echo "$ac_cv_path_GREP" >&6; }
4373 GREP
="$ac_cv_path_GREP"
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4377 $as_echo_n "checking for egrep... " >&6; }
4378 if test "${ac_cv_path_EGREP+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4381 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4382 then ac_cv_path_EGREP
="$GREP -E"
4384 if test -z "$EGREP"; then
4385 ac_path_EGREP_found
=false
4386 # Loop through the user's path and test for each of PROGNAME-LIST
4387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4388 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4391 test -z "$as_dir" && as_dir
=.
4392 for ac_prog
in egrep; do
4393 for ac_exec_ext
in '' $ac_executable_extensions; do
4394 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4395 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4396 # Check for GNU ac_path_EGREP and select it if it is found.
4397 # Check for GNU $ac_path_EGREP
4398 case `"$ac_path_EGREP" --version 2>&1` in
4400 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4403 $as_echo_n 0123456789 >"conftest.in"
4406 cat "conftest.in" "conftest.in" >"conftest.tmp"
4407 mv "conftest.tmp" "conftest.in"
4408 cp "conftest.in" "conftest.nl"
4409 $as_echo 'EGREP' >> "conftest.nl"
4410 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4411 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4412 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4413 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4414 # Best one so far, save it but keep looking for a better one
4415 ac_cv_path_EGREP
="$ac_path_EGREP"
4416 ac_path_EGREP_max
=$ac_count
4418 # 10*(2^10) chars as input seems more than enough
4419 test $ac_count -gt 10 && break
4421 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4424 $ac_path_EGREP_found && break 3
4429 if test -z "$ac_cv_path_EGREP"; then
4430 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4433 ac_cv_path_EGREP
=$EGREP
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4439 $as_echo "$ac_cv_path_EGREP" >&6; }
4440 EGREP
="$ac_cv_path_EGREP"
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4444 $as_echo_n "checking for ANSI C header files... " >&6; }
4445 if test "${ac_cv_header_stdc+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4463 if ac_fn_c_try_compile
"$LINENO"; then :
4464 ac_cv_header_stdc
=yes
4466 ac_cv_header_stdc
=no
4468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4470 if test $ac_cv_header_stdc = yes; then
4471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4478 $EGREP "memchr" >/dev
/null
2>&1; then :
4481 ac_cv_header_stdc
=no
4487 if test $ac_cv_header_stdc = yes; then
4488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495 $EGREP "free" >/dev
/null
2>&1; then :
4498 ac_cv_header_stdc
=no
4504 if test $ac_cv_header_stdc = yes; then
4505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4506 if test "$cross_compiling" = yes; then :
4509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4513 #if ((' ' & 0x0FF) == 0x020)
4514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4517 # define ISLOWER(c) \
4518 (('a' <= (c) && (c) <= 'i') \
4519 || ('j' <= (c) && (c) <= 'r') \
4520 || ('s' <= (c) && (c) <= 'z'))
4521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4529 for (i = 0; i < 256; i++)
4530 if (XOR (islower (i), ISLOWER (i))
4531 || toupper (i) != TOUPPER (i))
4536 if ac_fn_c_try_run
"$LINENO"; then :
4539 ac_cv_header_stdc
=no
4541 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4542 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4548 $as_echo "$ac_cv_header_stdc" >&6; }
4549 if test $ac_cv_header_stdc = yes; then
4551 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4555 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4556 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4557 inttypes.h stdint.h unistd.h
4559 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4560 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4562 eval as_val
=\$
$as_ac_Header
4563 if test "x$as_val" = x
""yes; then :
4564 cat >>confdefs.h
<<_ACEOF
4565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4574 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4575 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4582 if test "$MINIX" = yes; then
4584 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4587 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4590 $as_echo "#define _MINIX 1" >>confdefs.h
4593 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4599 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4600 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4606 # define __EXTENSIONS__ 1
4607 $ac_includes_default
4616 if ac_fn_c_try_compile
"$LINENO"; then :
4617 ac_cv_safe_to_define___extensions__
=yes
4619 ac_cv_safe_to_define___extensions__
=no
4621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4625 test $ac_cv_safe_to_define___extensions__ = yes &&
4626 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4628 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4630 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4632 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4634 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
4636 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4638 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4641 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4642 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4645 ac_cv_should_define__xopen_source
=no
4646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4659 if ac_fn_c_try_compile
"$LINENO"; then :
4662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4665 #define _XOPEN_SOURCE 500
4676 if ac_fn_c_try_compile
"$LINENO"; then :
4677 ac_cv_should_define__xopen_source
=yes
4679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4684 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4685 test $ac_cv_should_define__xopen_source = yes &&
4686 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4692 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4693 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4706 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4707 gl_cv_c_amsterdam_compiler
=yes
4709 gl_cv_c_amsterdam_compiler
=no
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4716 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4717 if test -z "$AR"; then
4718 if test $gl_cv_c_amsterdam_compiler = yes; then
4720 if test -z "$ARFLAGS"; then
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4726 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if test "${ac_cv_prog_AR+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4732 if test -n "$AR"; then
4733 ac_cv_prog_AR
="$AR" # Let the user override the test.
4735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir
=.
4740 for ac_exec_ext
in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 if test -n "$AR"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4755 $as_echo "$AR" >&6; }
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4763 if test -z "$ac_cv_prog_AR"; then
4765 # Extract the first word of "ar", so it can be a program name with args.
4766 set dummy
ar; ac_word
=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4772 if test -n "$ac_ct_AR"; then
4773 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir
=.
4780 for ac_exec_ext
in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_ac_ct_AR
="ar"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4793 if test -n "$ac_ct_AR"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4795 $as_echo "$ac_ct_AR" >&6; }
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4801 if test "x$ac_ct_AR" = x
; then
4804 case $cross_compiling:$ac_tool_warned in
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4808 ac_tool_warned
=yes ;;
4816 if test -z "$ARFLAGS"; then
4821 if test -z "$ARFLAGS"; then
4827 if test -z "$RANLIB"; then
4828 if test $gl_cv_c_amsterdam_compiler = yes; then
4831 if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4833 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4839 if test -n "$RANLIB"; then
4840 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir
=.
4847 for ac_exec_ext
in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 RANLIB
=$ac_cv_prog_RANLIB
4860 if test -n "$RANLIB"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4862 $as_echo "$RANLIB" >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4870 if test -z "$ac_cv_prog_RANLIB"; then
4871 ac_ct_RANLIB
=$RANLIB
4872 # Extract the first word of "ranlib", so it can be a program name with args.
4873 set dummy ranlib
; ac_word
=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4879 if test -n "$ac_ct_RANLIB"; then
4880 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4886 test -z "$as_dir" && as_dir
=.
4887 for ac_exec_ext
in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4900 if test -n "$ac_ct_RANLIB"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4902 $as_echo "$ac_ct_RANLIB" >&6; }
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4908 if test "x$ac_ct_RANLIB" = x
; then
4911 case $cross_compiling:$ac_tool_warned in
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4915 ac_tool_warned
=yes ;;
4917 RANLIB
=$ac_ct_RANLIB
4920 RANLIB
="$ac_cv_prog_RANLIB"
4934 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4935 for ac_t
in install-sh
install.sh shtool
; do
4936 if test -f "$ac_dir/$ac_t"; then
4938 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4943 if test -z "$ac_aux_dir"; then
4944 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4947 # These three variables are undocumented and unsupported,
4948 # and are intended to be withdrawn in a future Autoconf release.
4949 # They can cause serious problems if a builder's source tree is in a directory
4950 # whose full name contains unusual characters.
4951 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4952 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4953 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4956 # Make sure we can run config.sub.
4957 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4958 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4961 $as_echo_n "checking build system type... " >&6; }
4962 if test "${ac_cv_build+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4965 ac_build_alias
=$build_alias
4966 test "x$ac_build_alias" = x
&&
4967 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4968 test "x$ac_build_alias" = x
&&
4969 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4970 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4971 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4975 $as_echo "$ac_cv_build" >&6; }
4976 case $ac_cv_build in
4978 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4981 ac_save_IFS
=$IFS; IFS
='-'
4987 # Remember, the first character of IFS is used to create $*,
4988 # except with old shells:
4991 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4995 $as_echo_n "checking host system type... " >&6; }
4996 if test "${ac_cv_host+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4999 if test "x$host_alias" = x
; then
5000 ac_cv_host
=$ac_cv_build
5002 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5003 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5008 $as_echo "$ac_cv_host" >&6; }
5011 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
5014 ac_save_IFS
=$IFS; IFS
='-'
5020 # Remember, the first character of IFS is used to create $*,
5021 # except with old shells:
5024 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5030 # IEEE behaviour is the default on all CPUs except Alpha and SH
5031 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5032 # and the GCC 4.1.2 manual).
5035 # On Alpha systems, a compiler option provides the behaviour.
5036 # See the ieee(3) manual page, also available at
5037 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5038 if test -n "$GCC"; then
5039 # GCC has the option -mieee.
5040 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5041 CPPFLAGS
="$CPPFLAGS -mieee"
5043 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5044 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5045 CPPFLAGS
="$CPPFLAGS -ieee"
5049 if test -n "$GCC"; then
5050 # GCC has the option -mieee.
5051 CPPFLAGS
="$CPPFLAGS -mieee"
5056 # Check whether --enable-largefile was given.
5057 if test "${enable_largefile+set}" = set; then :
5058 enableval
=$enable_largefile;
5061 if test "$enable_largefile" != no
; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5064 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5065 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5068 ac_cv_sys_largefile_CC
=no
5069 if test "$GCC" != yes; then
5072 # IRIX 6.2 and later do not support large files by default,
5073 # so use the C compiler's -n32 option if that helps.
5074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #include <sys/types.h>
5077 /* Check that off_t can represent 2**63 - 1 correctly.
5078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5079 since some C++ compilers masquerading as C compilers
5080 incorrectly reject 9223372036854775807. */
5081 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5083 && LARGE_OFF_T % 2147483647 == 1)
5093 if ac_fn_c_try_compile
"$LINENO"; then :
5096 rm -f core conftest.err conftest.
$ac_objext
5098 if ac_fn_c_try_compile
"$LINENO"; then :
5099 ac_cv_sys_largefile_CC
=' -n32'; break
5101 rm -f core conftest.err conftest.
$ac_objext
5105 rm -f conftest.
$ac_ext
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5109 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5110 if test "$ac_cv_sys_largefile_CC" != no
; then
5111 CC
=$CC$ac_cv_sys_largefile_CC
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5115 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5116 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <sys/types.h>
5123 /* Check that off_t can represent 2**63 - 1 correctly.
5124 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5125 since some C++ compilers masquerading as C compilers
5126 incorrectly reject 9223372036854775807. */
5127 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5128 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5129 && LARGE_OFF_T % 2147483647 == 1)
5139 if ac_fn_c_try_compile
"$LINENO"; then :
5140 ac_cv_sys_file_offset_bits
=no
; break
5142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 #define _FILE_OFFSET_BITS 64
5146 #include <sys/types.h>
5147 /* Check that off_t can represent 2**63 - 1 correctly.
5148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5149 since some C++ compilers masquerading as C compilers
5150 incorrectly reject 9223372036854775807. */
5151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5153 && LARGE_OFF_T % 2147483647 == 1)
5163 if ac_fn_c_try_compile
"$LINENO"; then :
5164 ac_cv_sys_file_offset_bits
=64; break
5166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5167 ac_cv_sys_file_offset_bits
=unknown
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5172 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5173 case $ac_cv_sys_file_offset_bits in #(
5176 cat >>confdefs.h
<<_ACEOF
5177 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5182 if test $ac_cv_sys_file_offset_bits = unknown
; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5184 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5185 if test "${ac_cv_sys_large_files+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191 #include <sys/types.h>
5192 /* Check that off_t can represent 2**63 - 1 correctly.
5193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5194 since some C++ compilers masquerading as C compilers
5195 incorrectly reject 9223372036854775807. */
5196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5198 && LARGE_OFF_T % 2147483647 == 1)
5208 if ac_fn_c_try_compile
"$LINENO"; then :
5209 ac_cv_sys_large_files
=no
; break
5211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214 #define _LARGE_FILES 1
5215 #include <sys/types.h>
5216 /* Check that off_t can represent 2**63 - 1 correctly.
5217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5218 since some C++ compilers masquerading as C compilers
5219 incorrectly reject 9223372036854775807. */
5220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5222 && LARGE_OFF_T % 2147483647 == 1)
5232 if ac_fn_c_try_compile
"$LINENO"; then :
5233 ac_cv_sys_large_files
=1; break
5235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5236 ac_cv_sys_large_files
=unknown
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5241 $as_echo "$ac_cv_sys_large_files" >&6; }
5242 case $ac_cv_sys_large_files in #(
5245 cat >>confdefs.h
<<_ACEOF
5246 #define _LARGE_FILES $ac_cv_sys_large_files
5254 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5260 # Code from module absolute-header:
5261 # Code from module alloca:
5262 # Code from module alloca-opt:
5263 # Code from module canonicalize-lgpl:
5264 # Code from module chdir:
5265 # Code from module configmake:
5266 # Code from module dirent:
5267 # Code from module dirfd:
5268 # Code from module dirname-lgpl:
5269 # Code from module dosname:
5270 # Code from module double-slash-root:
5271 # Code from module errno:
5272 # Code from module extensions:
5274 # Code from module extern-inline:
5275 # Code from module float:
5276 # Code from module fnmatch:
5277 # Code from module fnmatch-gnu:
5278 # Code from module fpieee:
5280 # Code from module fpucw:
5281 # Code from module frexp:
5282 # Code from module frexpl:
5283 # Code from module gettimeofday:
5284 # Code from module include_next:
5285 # Code from module inttypes:
5286 # Code from module inttypes-incomplete:
5287 # Code from module isnand-nolibm:
5288 # Code from module isnanl-nolibm:
5289 # Code from module largefile:
5291 # Code from module localcharset:
5292 # Code from module lstat:
5293 # Code from module malloc-posix:
5294 # Code from module malloca:
5295 # Code from module math:
5296 # Code from module mbrtowc:
5297 # Code from module mbsinit:
5298 # Code from module mbsrtowcs:
5299 # Code from module memchr:
5300 # Code from module memmem:
5301 # Code from module memmem-simple:
5302 # Code from module multiarch:
5303 # Code from module nocrash:
5304 # Code from module pathmax:
5305 # Code from module readlink:
5306 # Code from module rename:
5307 # Code from module rmdir:
5308 # Code from module same-inode:
5309 # Code from module snippet/_Noreturn:
5310 # Code from module snippet/arg-nonnull:
5311 # Code from module snippet/c++defs:
5312 # Code from module snippet/warn-on-use:
5313 # Code from module ssize_t:
5314 # Code from module stat:
5315 # Code from module stdbool:
5316 # Code from module stddef:
5317 # Code from module stdint:
5318 # Code from module stdio:
5319 # Code from module stdlib:
5320 # Code from module streq:
5321 # Code from module string:
5322 # Code from module strnlen1:
5323 # Code from module strstr:
5324 # Code from module strstr-simple:
5325 # Code from module strtok_r:
5326 # Code from module sys_stat:
5327 # Code from module sys_time:
5328 # Code from module sys_types:
5329 # Code from module time:
5330 # Code from module unistd:
5331 # Code from module update-copyright:
5332 # Code from module verify:
5333 # Code from module wchar:
5334 # Code from module wctype-h:
5337 ac_cpp
='$CPP $CPPFLAGS'
5338 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5341 if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5343 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if test "${ac_cv_prog_CC+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5349 if test -n "$CC"; then
5350 ac_cv_prog_CC
="$CC" # Let the user override the test.
5352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5356 test -z "$as_dir" && as_dir
=.
5357 for ac_exec_ext
in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 if test -n "$CC"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5372 $as_echo "$CC" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5380 if test -z "$ac_cv_prog_CC"; then
5382 # Extract the first word of "gcc", so it can be a program name with args.
5383 set dummy gcc
; ac_word
=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5389 if test -n "$ac_ct_CC"; then
5390 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5396 test -z "$as_dir" && as_dir
=.
5397 for ac_exec_ext
in '' $ac_executable_extensions; do
5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 ac_cv_prog_ac_ct_CC
="gcc"
5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5410 if test -n "$ac_ct_CC"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5412 $as_echo "$ac_ct_CC" >&6; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5418 if test "x$ac_ct_CC" = x
; then
5421 case $cross_compiling:$ac_tool_warned in
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425 ac_tool_warned
=yes ;;
5433 if test -z "$CC"; then
5434 if test -n "$ac_tool_prefix"; then
5435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5436 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if test "${ac_cv_prog_CC+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5442 if test -n "$CC"; then
5443 ac_cv_prog_CC
="$CC" # Let the user override the test.
5445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir
=.
5450 for ac_exec_ext
in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 if test -n "$CC"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5465 $as_echo "$CC" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5474 if test -z "$CC"; then
5475 # Extract the first word of "cc", so it can be a program name with args.
5476 set dummy cc
; ac_word
=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if test "${ac_cv_prog_CC+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5482 if test -n "$CC"; then
5483 ac_cv_prog_CC
="$CC" # Let the user override the test.
5486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir
=.
5491 for ac_exec_ext
in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5494 ac_prog_rejected
=yes
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 if test $ac_prog_rejected = yes; then
5506 # We found a bogon in the path, so make sure we never use it.
5507 set dummy
$ac_cv_prog_CC
5509 if test $# != 0; then
5510 # We chose a different compiler from the bogus one.
5511 # However, it has the same basename, so the bogon will be chosen
5512 # first if we set CC to just the basename; use the full file name.
5514 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5520 if test -n "$CC"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5522 $as_echo "$CC" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5530 if test -z "$CC"; then
5531 if test -n "$ac_tool_prefix"; then
5532 for ac_prog
in cl.exe
5534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5535 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if test "${ac_cv_prog_CC+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5541 if test -n "$CC"; then
5542 ac_cv_prog_CC
="$CC" # Let the user override the test.
5544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5548 test -z "$as_dir" && as_dir
=.
5549 for ac_exec_ext
in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 if test -n "$CC"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5564 $as_echo "$CC" >&6; }
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5571 test -n "$CC" && break
5574 if test -z "$CC"; then
5576 for ac_prog
in cl.exe
5578 # Extract the first word of "$ac_prog", so it can be a program name with args.
5579 set dummy
$ac_prog; ac_word
=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5585 if test -n "$ac_ct_CC"; then
5586 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5592 test -z "$as_dir" && as_dir
=.
5593 for ac_exec_ext
in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595 ac_cv_prog_ac_ct_CC
="$ac_prog"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5606 if test -n "$ac_ct_CC"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5608 $as_echo "$ac_ct_CC" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5615 test -n "$ac_ct_CC" && break
5618 if test "x$ac_ct_CC" = x
; then
5621 case $cross_compiling:$ac_tool_warned in
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625 ac_tool_warned
=yes ;;
5634 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5636 as_fn_error
"no acceptable C compiler found in \$PATH
5637 See \`config.log' for more details." "$LINENO" 5; }
5639 # Provide some information about the compiler.
5640 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5643 for ac_option
in --version -v -V -qversion; do
5644 { { ac_try
="$ac_compiler $ac_option >&5"
5646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5653 if test -s conftest.err; then
5655 ... rest of stderr output deleted ...
5656 10q' conftest.err >conftest.er1
5657 cat conftest.er1 >&5
5658 rm -f conftest.er1 conftest.err
5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661 test $ac_status = 0; }
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5665 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5666 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5667 $as_echo_n "(cached) " >&6
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5683 if ac_fn_c_try_compile "$LINENO"; then :
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5693 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5694 if test $ac_compiler_gnu = yes; then
5699 ac_test_CFLAGS=${CFLAGS+set}
5700 ac_save_CFLAGS=$CFLAGS
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5702 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5703 if test "${ac_cv_prog_cc_g+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5706 ac_save_c_werror_flag=$ac_c_werror_flag
5707 ac_c_werror_flag=yes
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5721 if ac_fn_c_try_compile "$LINENO"; then :
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5736 if ac_fn_c_try_compile "$LINENO"; then :
5739 ac_c_werror_flag=$ac_save_c_werror_flag
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5752 if ac_fn_c_try_compile "$LINENO"; then :
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 ac_c_werror_flag=$ac_save_c_werror_flag
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5763 $as_echo "$ac_cv_prog_cc_g" >&6; }
5764 if test "$ac_test_CFLAGS" = set; then
5765 CFLAGS=$ac_save_CFLAGS
5766 elif test $ac_cv_prog_cc_g = yes; then
5767 if test "$GCC" = yes; then
5773 if test "$GCC" = yes; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5780 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5781 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5784 ac_cv_prog_cc_c89=no
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5790 #include <sys/types.h>
5791 #include <sys/stat.h>
5792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5793 struct buf { int x; };
5794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5795 static char *e (p, i)
5801 static char *f (char * (*g) (char **, int), char **p, ...)
5806 s = g (p, va_arg (v,int));
5811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5812 function prototypes and stuff, but not '\xHH' hex character constants.
5813 These don't provoke an error unfortunately, instead are silently treated
5814 as 'x'. The following induces an error, until -std is added to get
5815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5816 array size at least. It's necessary to write '\x00'==0 to get something
5817 that's true only with -std. */
5818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5821 inside strings and character constants. */
5823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5825 int test (int i, double x);
5826 struct s1 {int (*f) (int a);};
5827 struct s2 {int (*f) (double a);};
5828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5842 CC="$ac_save_CC $ac_arg"
5843 if ac_fn_c_try_compile "$LINENO"; then :
5844 ac_cv_prog_cc_c89=$ac_arg
5846 rm -f core conftest.err conftest.$ac_objext
5847 test "x$ac_cv_prog_cc_c89" != "xno" && break
5849 rm -f conftest.$ac_ext
5854 case "x$ac_cv_prog_cc_c89" in
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5857 $as_echo "none needed" >&6; } ;;
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5860 $as_echo "unsupported" >&6; } ;;
5862 CC="$CC $ac_cv_prog_cc_c89"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5866 if test "x$ac_cv_prog_cc_c89" != xno; then :
5871 ac_cpp='$CPP $CPPFLAGS'
5872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5881 for ac_dir in ../.. "$srcdir"/../..; do
5882 for ac_t in install-sh install.sh shtool; do
5883 if test -f "$ac_dir/$ac_t"; then
5885 ac_install_sh="$ac_aux_dir/$ac_t -c"
5890 if test -z "$ac_aux_dir"; then
5891 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5894 # These three variables are undocumented and unsupported,
5895 # and are intended to be withdrawn in a future Autoconf release.
5896 # They can cause serious problems if a builder's source tree is in a directory
5897 # whose full name contains unusual characters.
5898 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5899 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5900 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5904 $as_echo_n "checking target system type... " >&6; }
5905 if test "${ac_cv_target+set}" = set; then :
5906 $as_echo_n "(cached) " >&6
5908 if test "x$target_alias" = x; then
5909 ac_cv_target=$ac_cv_host
5911 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5912 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5917 $as_echo "$ac_cv_target" >&6; }
5918 case $ac_cv_target in
5920 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5922 target=$ac_cv_target
5923 ac_save_IFS=$IFS; IFS='-'
5929 # Remember, the first character of IFS is used to create $*,
5930 # except with old shells:
5933 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5936 # The aliases save the names the user supplied, while $host etc.
5937 # will get canonicalized.
5938 test -n "$target_alias" &&
5939 test "$program_prefix$program_suffix$program_transform_name" = \
5941 program_prefix=${target_alias}-
5949 LIBC_FATAL_STDERR_=1
5950 export LIBC_FATAL_STDERR_
5952 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5953 # for constant arguments. Useless!
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5955 $as_echo_n "checking for working alloca.h... " >&6; }
5956 if test "${ac_cv_working_alloca_h+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5965 char *p = (char *) alloca (2 * sizeof (int));
5971 if ac_fn_c_try_link "$LINENO"; then :
5972 ac_cv_working_alloca_h=yes
5974 ac_cv_working_alloca_h=no
5976 rm -f core conftest.err conftest.$ac_objext \
5977 conftest$ac_exeext conftest.$ac_ext
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5980 $as_echo "$ac_cv_working_alloca_h" >&6; }
5981 if test $ac_cv_working_alloca_h = yes; then
5983 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5988 $as_echo_n "checking for alloca... " >&6; }
5989 if test "${ac_cv_func_alloca_works+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5995 # define alloca __builtin_alloca
5998 # include <malloc.h>
5999 # define alloca _alloca
6001 # ifdef HAVE_ALLOCA_H
6002 # include <alloca.h>
6007 # ifndef alloca /* predefined by HP cc +Olibcalls */
6018 char *p = (char *) alloca (1);
6024 if ac_fn_c_try_link "$LINENO"; then :
6025 ac_cv_func_alloca_works=yes
6027 ac_cv_func_alloca_works=no
6029 rm -f core conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6033 $as_echo "$ac_cv_func_alloca_works" >&6; }
6035 if test $ac_cv_func_alloca_works = yes; then
6037 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6040 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6041 # that cause trouble. Some versions do not even contain alloca or
6042 # contain a buggy version. If you still want to use their alloca,
6043 # use ar to extract alloca.o from them instead of compiling alloca.c.
6049 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6051 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6055 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6056 if test "${ac_cv_os_cray+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 #if defined CRAY && ! defined CRAY2
6068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6069 $EGREP "webecray" >/dev/null 2>&1; then :
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6078 $as_echo "$ac_cv_os_cray" >&6; }
6079 if test $ac_cv_os_cray = yes; then
6080 for ac_func in _getb67 GETB67 getb67; do
6081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6082 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6083 eval as_val=\$$as_ac_var
6084 if test "x$as_val" = x""yes; then :
6086 cat >>confdefs.h <<_ACEOF
6087 #define CRAY_STACKSEG_END $ac_func
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6097 $as_echo_n "checking stack direction for C alloca... " >&6; }
6098 if test "${ac_cv_c_stack_direction+set}" = set; then :
6099 $as_echo_n "(cached) " >&6
6101 if test "$cross_compiling" = yes; then :
6102 ac_cv_c_stack_direction=0
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 $ac_includes_default
6108 find_stack_direction (int *addr, int depth)
6113 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6114 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6119 main (int argc, char **argv)
6121 return find_stack_direction (0, argc + !argv + 20) < 0;
6124 if ac_fn_c_try_run "$LINENO"; then :
6125 ac_cv_c_stack_direction=1
6127 ac_cv_c_stack_direction=-1
6129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6130 conftest.$ac_objext conftest.beam conftest.$ac_ext
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6135 $as_echo "$ac_cv_c_stack_direction" >&6; }
6136 cat >>confdefs.h <<_ACEOF
6137 #define STACK_DIRECTION $ac_cv_c_stack_direction
6146 GNULIB_CALLOC_POSIX=0;
6147 GNULIB_CANONICALIZE_FILE_NAME=0;
6148 GNULIB_GETLOADAVG=0;
6151 GNULIB_MALLOC_POSIX=0;
6158 GNULIB_POSIX_OPENPT=0;
6165 GNULIB_REALLOC_POSIX=0;
6168 GNULIB_SECURE_GETENV=0;
6173 GNULIB_SYSTEM_POSIX=0;
6179 HAVE_CANONICALIZE_FILE_NAME=1;
6180 HAVE_DECL_GETLOADAVG=1;
6188 HAVE_POSIX_OPENPT=1;
6196 HAVE_SECURE_GETENV=1;
6202 HAVE_STRUCT_RANDOM_DATA=1;
6203 HAVE_SYS_LOADAVG_H=0;
6205 HAVE_DECL_UNSETENV=1;
6207 REPLACE_CANONICALIZE_FILE_NAME=0;
6212 REPLACE_PTSNAME_R=0;
6226 for ac_func in $ac_func_list
6228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6229 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6230 eval as_val=\$$as_ac_var
6231 if test "x$as_val" = x""yes; then :
6232 cat >>confdefs.h <<_ACEOF
6233 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6248 $as_echo_n "checking whether // is distinct from /... " >&6; }
6249 if test "${gl_cv_double_slash_root+set}" = set; then :
6250 $as_echo_n "(cached) " >&6
6252 if test x"$cross_compiling" = xyes ; then
6253 # When cross-compiling, there is no way to tell whether // is special
6254 # short of a list of hosts. However, the only known hosts to date
6255 # that have a distinct // are Apollo DomainOS (too old to port to),
6256 # Cygwin, and z/OS. If anyone knows of another system for which // has
6257 # special semantics and is distinct from /, please report it to
6258 # <bug-gnulib@gnu.org>.
6260 *-cygwin | i370-ibm-openedition)
6261 gl_cv_double_slash_root=yes ;;
6263 # Be optimistic and assume that / and // are the same when we
6265 gl_cv_double_slash_root='unknown, assuming no' ;;
6268 set x `ls -di / // 2>/dev
/null
`
6269 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6270 gl_cv_double_slash_root=no
6272 gl_cv_double_slash_root=yes
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6277 $as_echo "$gl_cv_double_slash_root" >&6; }
6278 if test "$gl_cv_double_slash_root" = yes; then
6280 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6289 $as_echo_n "checking whether realpath works... " >&6; }
6290 if test "${gl_cv_func_realpath_works+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6296 if test "$cross_compiling" = yes; then :
6298 # Guess yes on glibc systems.
6299 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6300 # If we don't know, assume the worst.
6301 *) gl_cv_func_realpath_works="guessing no" ;;
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6311 #if defined __MACH__ && defined __APPLE__
6312 /* Avoid a crash on Mac OS X. */
6313 #include <mach/mach.h>
6314 #include <mach/mach_error.h>
6315 #include <mach/thread_status.h>
6316 #include <mach/exception.h>
6317 #include <mach/task.h>
6318 #include <pthread.h>
6319 /* The exception port on which our thread listens. */
6320 static mach_port_t our_exception_port;
6321 /* The main function of the thread listening for exceptions of type
6324 mach_exception_thread (void *arg)
6326 /* Buffer for a message to be received. */
6328 mach_msg_header_t head;
6329 mach_msg_body_t msgh_body;
6332 mach_msg_return_t retval;
6333 /* Wait for a message on the exception port. */
6334 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6335 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6336 if (retval != MACH_MSG_SUCCESS)
6343 mach_port_t self = mach_task_self ();
6344 /* Allocate a port on which the thread shall listen for exceptions. */
6345 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6347 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6348 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6349 MACH_MSG_TYPE_MAKE_SEND)
6351 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6353 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6354 /* Create the thread listening on the exception port. */
6355 pthread_attr_t attr;
6357 if (pthread_attr_init (&attr) == 0
6358 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6359 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6360 pthread_attr_destroy (&attr);
6361 /* Replace the exception port info for these exceptions with our own.
6362 Note that we replace the exception port for the entire task, not only
6363 for a particular thread. This has the effect that when our exception
6364 port gets the message, the thread specific exception port has already
6365 been asked, and we don't need to bother about it.
6366 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6367 task_set_exception_ports (self, mask, our_exception_port,
6368 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6373 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6374 /* Avoid a crash on native Windows. */
6375 #define WIN32_LEAN_AND_MEAN
6376 #include <windows.h>
6377 #include <winerror.h>
6379 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6381 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6383 case EXCEPTION_ACCESS_VIOLATION:
6384 case EXCEPTION_IN_PAGE_ERROR:
6385 case EXCEPTION_STACK_OVERFLOW:
6386 case EXCEPTION_GUARD_PAGE:
6387 case EXCEPTION_PRIV_INSTRUCTION:
6388 case EXCEPTION_ILLEGAL_INSTRUCTION:
6389 case EXCEPTION_DATATYPE_MISALIGNMENT:
6390 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6391 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6394 return EXCEPTION_CONTINUE_SEARCH;
6399 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6402 /* Avoid a crash on POSIX systems. */
6404 /* A POSIX signal handler. */
6406 exception_handler (int sig)
6414 signal (SIGSEGV, exception_handler);
6417 signal (SIGBUS, exception_handler);
6431 char *name = realpath ("conftest.a", NULL);
6432 if (!(name && *name == '/'))
6436 char *name = realpath ("conftest.b/../conftest.a", NULL);
6441 char *name = realpath ("conftest.a/", NULL);
6446 char *name1 = realpath (".", NULL);
6447 char *name2 = realpath ("conftest.d//./..", NULL);
6448 if (strcmp (name1, name2) != 0)
6458 if ac_fn_c_try_run "$LINENO"; then :
6459 gl_cv_func_realpath_works=yes
6461 gl_cv_func_realpath_works=no
6463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6464 conftest.$ac_objext conftest.beam conftest.$ac_ext
6467 rm -rf conftest.a conftest.d
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6471 $as_echo "$gl_cv_func_realpath_works" >&6; }
6472 case "$gl_cv_func_realpath_works" in
6475 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6483 for ac_header in $ac_header_list
6485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6488 eval as_val=\$$as_ac_Header
6489 if test "x$as_val" = x""yes; then :
6490 cat >>confdefs.h <<_ACEOF
6491 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6515 GNULIB_EUIDACCESS=0;
6523 GNULIB_GETDOMAINNAME=0;
6524 GNULIB_GETDTABLESIZE=0;
6526 GNULIB_GETHOSTNAME=0;
6528 GNULIB_GETLOGIN_R=0;
6529 GNULIB_GETPAGESIZE=0;
6530 GNULIB_GETUSERSHELL=0;
6531 GNULIB_GROUP_MEMBER=0;
6543 GNULIB_READLINKAT=0;
6545 GNULIB_SETHOSTNAME=0;
6550 GNULIB_UNISTD_H_NONBLOCKING=0;
6551 GNULIB_UNISTD_H_SIGPIPE=0;
6566 HAVE_GETDTABLESIZE=1;
6571 HAVE_GROUP_MEMBER=1;
6587 HAVE_DECL_ENVIRON=1;
6589 HAVE_DECL_FDATASYNC=1;
6590 HAVE_DECL_GETDOMAINNAME=1;
6591 HAVE_DECL_GETLOGIN_R=1;
6592 HAVE_DECL_GETPAGESIZE=1;
6593 HAVE_DECL_GETUSERSHELL=1;
6594 HAVE_DECL_SETHOSTNAME=1;
6595 HAVE_DECL_TTYNAME_R=1;
6603 REPLACE_FTRUNCATE=0;
6605 REPLACE_GETDOMAINNAME=0;
6606 REPLACE_GETDTABLESIZE=0;
6607 REPLACE_GETLOGIN_R=0;
6608 REPLACE_GETGROUPS=0;
6609 REPLACE_GETPAGESIZE=0;
6619 REPLACE_READLINKAT=0;
6623 REPLACE_SYMLINKAT=0;
6624 REPLACE_TTYNAME_R=0;
6629 UNISTD_H_HAVE_WINSOCK2_H=0;
6630 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6647 HAVE_DECL_FDOPENDIR=1;
6654 REPLACE_FDOPENDIR=0;
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6659 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6660 if test "${gl_cv_have_include_next+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6663 rm -rf conftestd1a conftestd1b conftestd2
6664 mkdir conftestd1a conftestd1b conftestd2
6665 cat <<EOF > conftestd1a/conftest.h
6666 #define DEFINED_IN_CONFTESTD1
6667 #include_next <conftest.h>
6668 #ifdef DEFINED_IN_CONFTESTD2
6671 #error "include_next doesn't work"
6674 cat <<EOF > conftestd1b/conftest.h
6675 #define DEFINED_IN_CONFTESTD1
6677 #include_next <conftest.h>
6678 #ifdef DEFINED_IN_CONFTESTD2
6681 #error "include_next doesn't work"
6684 cat <<EOF > conftestd2/conftest.h
6685 #ifndef DEFINED_IN_CONFTESTD1
6686 #error "include_next test doesn't work"
6688 #define DEFINED_IN_CONFTESTD2
6690 gl_save_CPPFLAGS="$CPPFLAGS"
6691 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <conftest.h>
6696 if ac_fn_c_try_compile "$LINENO"; then :
6697 gl_cv_have_include_next=yes
6699 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 #include <conftest.h>
6704 if ac_fn_c_try_compile "$LINENO"; then :
6705 gl_cv_have_include_next=buggy
6707 gl_cv_have_include_next=no
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 CPPFLAGS="$gl_save_CPPFLAGS"
6714 rm -rf conftestd1a conftestd1b conftestd2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6718 $as_echo "$gl_cv_have_include_next" >&6; }
6719 PRAGMA_SYSTEM_HEADER=
6720 if test $gl_cv_have_include_next = yes; then
6721 INCLUDE_NEXT=include_next
6722 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6723 if test -n "$GCC"; then
6724 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6727 if test $gl_cv_have_include_next = buggy; then
6728 INCLUDE_NEXT=include
6729 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6731 INCLUDE_NEXT=include
6732 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6739 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6740 if test "${gl_cv_pragma_columns+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752 $EGREP "choke me" >/dev/null 2>&1; then :
6753 gl_cv_pragma_columns=yes
6755 gl_cv_pragma_columns=no
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6762 $as_echo "$gl_cv_pragma_columns" >&6; }
6763 if test $gl_cv_pragma_columns = yes; then
6764 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6775 $as_echo_n "checking for complete errno.h... " >&6; }
6776 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6784 #if !defined ETXTBSY
6793 #if !defined ENOLINK
6799 #if !defined EMULTIHOP
6802 #if !defined EBADMSG
6805 #if !defined EOVERFLOW
6808 #if !defined ENOTSUP
6811 #if !defined ENETRESET
6814 #if !defined ECONNABORTED
6823 #if !defined ECANCELED
6826 #if !defined EOWNERDEAD
6829 #if !defined ENOTRECOVERABLE
6837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6838 $EGREP "booboo" >/dev/null 2>&1; then :
6839 gl_cv_header_errno_h_complete=no
6841 gl_cv_header_errno_h_complete=yes
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6848 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6849 if test $gl_cv_header_errno_h_complete = yes; then
6860 if test $gl_cv_have_include_next = yes; then
6861 gl_cv_next_errno_h='<'errno.h'>'
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6864 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6865 if test "${gl_cv_next_errno_h+set}" = set; then :
6866 $as_echo_n "(cached) " >&6
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6876 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6877 *) gl_absname_cpp="$ac_cpp" ;;
6882 gl_dirsep_regex='[/\\]'
6885 gl_dirsep_regex='\/'
6888 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6889 gl_header_literal_regex=`echo 'errno.h' \
6890 |
sed -e "$gl_make_literal_regex_sed"`
6891 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6892 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6898 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6899 sed -n "$gl_absolute_header_sed"`
6901 gl_header=$gl_cv_absolute_errno_h
6902 gl_cv_next_errno_h='"'$gl_header'"'
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6907 $as_echo "$gl_cv_next_errno_h" >&6; }
6909 NEXT_ERRNO_H=$gl_cv_next_errno_h
6911 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6912 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6913 gl_next_as_first_directive='<'errno.h'>'
6915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6916 gl_next_as_first_directive=$gl_cv_next_errno_h
6918 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6926 if test -n "$ERRNO_H"; then
6927 GL_GENERATE_ERRNO_H_TRUE=
6928 GL_GENERATE_ERRNO_H_FALSE='#'
6930 GL_GENERATE_ERRNO_H_TRUE='#'
6931 GL_GENERATE_ERRNO_H_FALSE=
6935 if test -n "$ERRNO_H"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6937 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6938 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952 $EGREP "yes" >/dev/null 2>&1; then :
6953 gl_cv_header_errno_h_EMULTIHOP=yes
6955 gl_cv_header_errno_h_EMULTIHOP=no
6959 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6963 #define _XOPEN_SOURCE_EXTENDED 1
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=hidden
6976 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6977 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6978 #define _XOPEN_SOURCE_EXTENDED 1
6980 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6992 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6993 case $gl_cv_header_errno_h_EMULTIHOP in
6995 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6998 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7006 if test -n "$ERRNO_H"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7008 $as_echo_n "checking for ENOLINK value... " >&6; }
7009 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023 $EGREP "yes" >/dev/null 2>&1; then :
7024 gl_cv_header_errno_h_ENOLINK=yes
7026 gl_cv_header_errno_h_ENOLINK=no
7030 if test $gl_cv_header_errno_h_ENOLINK = no; then
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7034 #define _XOPEN_SOURCE_EXTENDED 1
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=hidden
7047 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7048 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7049 #define _XOPEN_SOURCE_EXTENDED 1
7051 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7063 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7064 case $gl_cv_header_errno_h_ENOLINK in
7066 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7069 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7077 if test -n "$ERRNO_H"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7079 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7080 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7094 $EGREP "yes" >/dev/null 2>&1; then :
7095 gl_cv_header_errno_h_EOVERFLOW=yes
7097 gl_cv_header_errno_h_EOVERFLOW=no
7101 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7105 #define _XOPEN_SOURCE_EXTENDED 1
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=hidden
7118 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7119 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7120 #define _XOPEN_SOURCE_EXTENDED 1
7122 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7134 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7135 case $gl_cv_header_errno_h_EOVERFLOW in
7137 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7140 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7154 $as_echo_n "checking for mbstate_t... " >&6; }
7155 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 $ac_includes_default
7161 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7163 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7164 included before <wchar.h>. */
7172 mbstate_t x; return sizeof x;
7177 if ac_fn_c_try_compile "$LINENO"; then :
7178 ac_cv_type_mbstate_t=yes
7180 ac_cv_type_mbstate_t=no
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7185 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7186 if test $ac_cv_type_mbstate_t = yes; then
7188 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7192 $as_echo "#define mbstate_t int" >>confdefs.h
7290 GNULIB_REMAINDERF=0;
7291 GNULIB_REMAINDERL=0;
7377 HAVE_DECL_COPYSIGNF=1;
7394 HAVE_DECL_REMAINDER=1;
7395 HAVE_DECL_REMAINDERL=1;
7457 REPLACE_REMAINDER=0;
7458 REPLACE_REMAINDERF=0;
7459 REPLACE_REMAINDERL=0;
7464 REPLACE_SIGNBIT_USING_GCC=0;
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7472 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7473 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7484 int e; return frexp (x, &e) > 0;
7489 if ac_fn_c_try_link "$LINENO"; then :
7490 gl_cv_func_frexp_no_libm=yes
7492 gl_cv_func_frexp_no_libm=no
7494 rm -f core conftest.err conftest.$ac_objext \
7495 conftest$ac_exeext conftest.$ac_ext
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7499 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7501 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7502 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7508 cat >>confdefs.h <<_ACEOF
7509 #define HAVE_DECL_ALARM $ac_have_decl
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7514 $as_echo_n "checking whether long double and double are the same... " >&6; }
7515 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7524 typedef int check[sizeof (long double) == sizeof (double)
7525 && LDBL_MANT_DIG == DBL_MANT_DIG
7526 && LDBL_MAX_EXP == DBL_MAX_EXP
7527 && LDBL_MIN_EXP == DBL_MIN_EXP
7534 if ac_fn_c_try_compile "$LINENO"; then :
7535 gl_cv_long_double_equals_double=yes
7537 gl_cv_long_double_equals_double=no
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7543 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7544 if test $gl_cv_long_double_equals_double = yes; then
7546 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7548 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7550 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7555 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7556 if test "${ac_cv_c_restrict+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7560 # The order here caters to the fact that C++ does not require restrict.
7561 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564 typedef int *int_ptr;
7565 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7566 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7567 int bar (int ip[$ac_kw]) { return ip[0]; }
7575 return foo (t) + bar (t);
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 ac_cv_c_restrict=$ac_kw
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 test "$ac_cv_c_restrict" != no && break
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7590 $as_echo "$ac_cv_c_restrict" >&6; }
7592 case $ac_cv_c_restrict in
7594 no) $as_echo "#define restrict /**/" >>confdefs.h
7596 *) cat >>confdefs.h <<_ACEOF
7597 #define restrict $ac_cv_c_restrict
7603 GNULIB_GETTIMEOFDAY=0;
7604 HAVE_GETTIMEOFDAY=1;
7605 HAVE_STRUCT_TIMEVAL=1;
7608 REPLACE_GETTIMEOFDAY=0;
7609 REPLACE_STRUCT_TIMEVAL=0;
7628 if test $gl_cv_have_include_next = yes; then
7629 gl_cv_next_sys_time_h='<'sys/time.h'>'
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7632 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7633 if test "${gl_cv_next_sys_time_h+set}" = set; then :
7634 $as_echo_n "(cached) " >&6
7637 if test $ac_cv_header_sys_time_h = yes; then
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 #include <sys/time.h>
7647 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7648 *) gl_absname_cpp="$ac_cpp" ;;
7653 gl_dirsep_regex='[/\\]'
7656 gl_dirsep_regex='\/'
7659 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7660 gl_header_literal_regex=`echo 'sys/time.h' \
7661 |
sed -e "$gl_make_literal_regex_sed"`
7662 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7663 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7669 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7670 sed -n "$gl_absolute_header_sed"`
7672 gl_header=$gl_cv_absolute_sys_time_h
7673 gl_cv_next_sys_time_h='"'$gl_header'"'
7675 gl_cv_next_sys_time_h='<'sys/time.h'>'
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7681 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7683 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7685 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7686 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7687 gl_next_as_first_directive='<'sys/time.h'>'
7689 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7690 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7692 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7698 if test $ac_cv_header_sys_time_h != yes; then
7706 if test $ac_cv_header_sys_socket_h != yes; then
7707 for ac_header in winsock2.h
7709 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7710 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7711 cat >>confdefs.h <<_ACEOF
7712 #define HAVE_WINSOCK2_H 1
7720 if test "$ac_cv_header_winsock2_h" = yes; then
7722 UNISTD_H_HAVE_WINSOCK2_H=1
7723 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7730 $as_echo_n "checking for struct timeval... " >&6; }
7731 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7737 #include <sys/time.h>
7741 # include <winsock2.h>
7747 static struct timeval x; x.tv_sec = x.tv_usec;
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 gl_cv_sys_struct_timeval=yes
7755 gl_cv_sys_struct_timeval=no
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7761 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7762 if test $gl_cv_sys_struct_timeval != yes; then
7763 HAVE_STRUCT_TIMEVAL=0
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7766 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7767 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7773 #include <sys/time.h>
7777 # include <winsock2.h>
7783 static struct timeval x;
7784 typedef int verify_tv_sec_type[
7785 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793 gl_cv_sys_struct_timeval_tv_sec=yes
7795 gl_cv_sys_struct_timeval_tv_sec=no
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7801 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7802 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7803 REPLACE_STRUCT_TIMEVAL=1
7808 for gl_func in gettimeofday; do
7809 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7811 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7812 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7813 $as_echo_n "(cached) " >&6
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7819 # include <sys/time.h>
7832 if ac_fn_c_try_compile "$LINENO"; then :
7833 eval "$as_gl_Symbol=yes"
7835 eval "$as_gl_Symbol=no"
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 eval ac_res=\$$as_gl_Symbol
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7841 $as_echo "$ac_res" >&6; }
7842 eval as_val=\$$as_gl_Symbol
7843 if test "x$as_val" = x""yes; then :
7844 cat >>confdefs.h <<_ACEOF
7845 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
7848 eval ac_cv_have_decl_$gl_func=yes
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7860 $as_echo_n "checking for unsigned long long int... " >&6; }
7861 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7864 ac_cv_type_unsigned_long_long_int=yes
7865 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7869 /* For now, do not test the preprocessor; as of 2007 there are too many
7870 implementations with broken preprocessors. Perhaps this can
7871 be revisited in 2012. In the meantime, code should not expect
7872 #if to work with literals wider than 32 bits. */
7873 /* Test literals. */
7874 long long int ll = 9223372036854775807ll;
7875 long long int nll = -9223372036854775807LL;
7876 unsigned long long int ull = 18446744073709551615ULL;
7877 /* Test constant expressions. */
7878 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7880 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7886 /* Test availability of runtime routines for shift and division. */
7887 long long int llmax = 9223372036854775807ll;
7888 unsigned long long int ullmax = 18446744073709551615ull;
7889 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7890 | (llmax / ll) | (llmax % ll)
7891 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7892 | (ullmax / ull) | (ullmax % ull));
7898 if ac_fn_c_try_link "$LINENO"; then :
7901 ac_cv_type_unsigned_long_long_int=no
7903 rm -f core conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7908 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7909 if test $ac_cv_type_unsigned_long_long_int = yes; then
7911 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7918 $as_echo_n "checking for long long int... " >&6; }
7919 if test "${ac_cv_type_long_long_int+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7922 ac_cv_type_long_long_int=yes
7923 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7924 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7925 if test $ac_cv_type_long_long_int = yes; then
7926 if test "$cross_compiling" = yes; then :
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7934 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7935 # define LLONG_MAX (HALF - 1 + HALF)
7940 long long int n = 1;
7944 long long int m = n << i;
7947 if (LLONG_MAX / 2 < m)
7955 if ac_fn_c_try_run "$LINENO"; then :
7958 ac_cv_type_long_long_int=no
7960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7961 conftest.$ac_objext conftest.beam conftest.$ac_ext
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7968 $as_echo "$ac_cv_type_long_long_int" >&6; }
7969 if test $ac_cv_type_long_long_int = yes; then
7971 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7980 gl_cv_c_multiarch=no
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7983 #ifndef __APPLE_CC__
7984 not a universal capable compiler
7989 if ac_fn_c_try_compile "$LINENO"; then :
7993 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7994 if test -n "$prev"; then
7996 i?86 | x86_64 | ppc | ppc64)
7997 if test -z "$arch" || test "$arch" = "$word"; then
8000 gl_cv_c_multiarch=yes
8006 if test "x$word" = "x-arch"; then
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 if test $gl_cv_c_multiarch = yes; then
8015 APPLE_UNIVERSAL_BUILD=1
8017 APPLE_UNIVERSAL_BUILD=0
8024 if test $ac_cv_type_long_long_int = yes; then
8025 HAVE_LONG_LONG_INT=1
8027 HAVE_LONG_LONG_INT=0
8031 if test $ac_cv_type_unsigned_long_long_int = yes; then
8032 HAVE_UNSIGNED_LONG_LONG_INT=1
8034 HAVE_UNSIGNED_LONG_LONG_INT=0
8039 if test $ac_cv_header_wchar_h = yes; then
8046 if test $ac_cv_header_inttypes_h = yes; then
8053 if test $ac_cv_header_sys_types_h = yes; then
8069 if test $gl_cv_have_include_next = yes; then
8070 gl_cv_next_stdint_h='<'stdint.h'>'
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8073 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8074 if test "${gl_cv_next_stdint_h+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8078 if test $ac_cv_header_stdint_h = yes; then
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8088 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8089 *) gl_absname_cpp="$ac_cpp" ;;
8094 gl_dirsep_regex='[/\\]'
8097 gl_dirsep_regex='\/'
8100 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8101 gl_header_literal_regex=`echo 'stdint.h' \
8102 |
sed -e "$gl_make_literal_regex_sed"`
8103 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8104 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8110 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8111 sed -n "$gl_absolute_header_sed"`
8113 gl_header=$gl_cv_absolute_stdint_h
8114 gl_cv_next_stdint_h='"'$gl_header'"'
8116 gl_cv_next_stdint_h='<'stdint.h'>'
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8122 $as_echo "$gl_cv_next_stdint_h" >&6; }
8124 NEXT_STDINT_H=$gl_cv_next_stdint_h
8126 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8127 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8128 gl_next_as_first_directive='<'stdint.h'>'
8130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8131 gl_next_as_first_directive=$gl_cv_next_stdint_h
8133 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8138 if test $ac_cv_header_stdint_h = yes; then
8145 if test $ac_cv_header_stdint_h = yes; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8147 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8148 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8151 gl_cv_header_working_stdint_h=no
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8156 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8158 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8159 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8160 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8164 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8165 included before <wchar.h>. */
8176 int8_t a1 = INT8_MAX;
8177 int8_t a1min = INT8_MIN;
8180 int16_t a2 = INT16_MAX;
8181 int16_t a2min = INT16_MIN;
8184 int32_t a3 = INT32_MAX;
8185 int32_t a3min = INT32_MIN;
8188 int64_t a4 = INT64_MAX;
8189 int64_t a4min = INT64_MIN;
8192 uint8_t b1 = UINT8_MAX;
8194 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8197 uint16_t b2 = UINT16_MAX;
8200 uint32_t b3 = UINT32_MAX;
8203 uint64_t b4 = UINT64_MAX;
8205 int_least8_t c1 = INT8_C (0x7f);
8206 int_least8_t c1max = INT_LEAST8_MAX;
8207 int_least8_t c1min = INT_LEAST8_MIN;
8208 int_least16_t c2 = INT16_C (0x7fff);
8209 int_least16_t c2max = INT_LEAST16_MAX;
8210 int_least16_t c2min = INT_LEAST16_MIN;
8211 int_least32_t c3 = INT32_C (0x7fffffff);
8212 int_least32_t c3max = INT_LEAST32_MAX;
8213 int_least32_t c3min = INT_LEAST32_MIN;
8214 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8215 int_least64_t c4max = INT_LEAST64_MAX;
8216 int_least64_t c4min = INT_LEAST64_MIN;
8217 uint_least8_t d1 = UINT8_C (0xff);
8218 uint_least8_t d1max = UINT_LEAST8_MAX;
8219 uint_least16_t d2 = UINT16_C (0xffff);
8220 uint_least16_t d2max = UINT_LEAST16_MAX;
8221 uint_least32_t d3 = UINT32_C (0xffffffff);
8222 uint_least32_t d3max = UINT_LEAST32_MAX;
8223 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8224 uint_least64_t d4max = UINT_LEAST64_MAX;
8225 int_fast8_t e1 = INT_FAST8_MAX;
8226 int_fast8_t e1min = INT_FAST8_MIN;
8227 int_fast16_t e2 = INT_FAST16_MAX;
8228 int_fast16_t e2min = INT_FAST16_MIN;
8229 int_fast32_t e3 = INT_FAST32_MAX;
8230 int_fast32_t e3min = INT_FAST32_MIN;
8231 int_fast64_t e4 = INT_FAST64_MAX;
8232 int_fast64_t e4min = INT_FAST64_MIN;
8233 uint_fast8_t f1 = UINT_FAST8_MAX;
8234 uint_fast16_t f2 = UINT_FAST16_MAX;
8235 uint_fast32_t f3 = UINT_FAST32_MAX;
8236 uint_fast64_t f4 = UINT_FAST64_MAX;
8238 intptr_t g = INTPTR_MAX;
8239 intptr_t gmin = INTPTR_MIN;
8242 uintptr_t h = UINTPTR_MAX;
8244 intmax_t i = INTMAX_MAX;
8245 uintmax_t j = UINTMAX_MAX;
8247 #include <limits.h> /* for CHAR_BIT */
8248 #define TYPE_MINIMUM(t) \
8249 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8250 #define TYPE_MAXIMUM(t) \
8251 ((t) ((t) 0 < (t) -1 \
8253 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8256 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8257 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8259 /* Detect bug in FreeBSD 6.0 / ia64. */
8260 int check_SIG_ATOMIC:
8261 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8262 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8264 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8266 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8267 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8269 /* Detect bug in mingw. */
8271 WINT_MIN == TYPE_MINIMUM (wint_t)
8272 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8275 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8277 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8279 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8281 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8283 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8286 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8289 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8292 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8294 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8295 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8296 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8297 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8298 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8299 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8300 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8301 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8302 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8303 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8304 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8315 if ac_fn_c_try_compile "$LINENO"; then :
8316 if test "$cross_compiling" = yes; then :
8317 gl_cv_header_working_stdint_h=yes
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8324 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8328 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8329 included before <wchar.h>. */
8341 #define MVAL(macro) MVAL1(macro)
8342 #define MVAL1(expression) #expression
8343 static const char *macro_values[] =
8377 for (mv = macro_values; *mv != NULL; mv++)
8379 const char *value = *mv;
8380 /* Test whether it looks like a cast expression. */
8381 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8382 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8383 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8384 || strncmp (value, "((int)"/*)*/, 6) == 0
8385 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8386 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8387 return mv - macro_values + 1;
8395 if ac_fn_c_try_run "$LINENO"; then :
8396 gl_cv_header_working_stdint_h=yes
8398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8399 conftest.$ac_objext conftest.beam conftest.$ac_ext
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8408 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8410 if test "$gl_cv_header_working_stdint_h" = yes; then
8413 for ac_header in sys/inttypes.h sys/bitypes.h
8415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8416 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8417 eval as_val=\$$as_ac_Header
8418 if test "x$as_val" = x""yes; then :
8419 cat >>confdefs.h <<_ACEOF
8420 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8427 if test $ac_cv_header_sys_inttypes_h = yes; then
8428 HAVE_SYS_INTTYPES_H=1
8430 HAVE_SYS_INTTYPES_H=0
8433 if test $ac_cv_header_sys_bitypes_h = yes; then
8434 HAVE_SYS_BITYPES_H=1
8436 HAVE_SYS_BITYPES_H=0
8442 if test $APPLE_UNIVERSAL_BUILD = 0; then
8445 for gltype in ptrdiff_t size_t ; do
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8447 $as_echo_n "checking for bit size of $gltype... " >&6; }
8448 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8449 $as_echo_n "(cached) " >&6
8451 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8452 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8453 included before <wchar.h>. */
8462 #include <limits.h>"; then :
8468 eval gl_cv_bitsizeof_${gltype}=\$result
8471 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8473 $as_echo "$ac_res" >&6; }
8474 eval result=\$gl_cv_bitsizeof_${gltype}
8475 if test $result = unknown; then
8478 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8479 cat >>confdefs.h <<_ACEOF
8480 #define BITSIZEOF_${GLTYPE} $result
8483 eval BITSIZEOF_${GLTYPE}=\$result
8490 for gltype in sig_atomic_t wchar_t wint_t ; do
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8492 $as_echo_n "checking for bit size of $gltype... " >&6; }
8493 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8494 $as_echo_n "(cached) " >&6
8496 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8497 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8498 included before <wchar.h>. */
8507 #include <limits.h>"; then :
8513 eval gl_cv_bitsizeof_${gltype}=\$result
8516 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8518 $as_echo "$ac_res" >&6; }
8519 eval result=\$gl_cv_bitsizeof_${gltype}
8520 if test $result = unknown; then
8523 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8524 cat >>confdefs.h <<_ACEOF
8525 #define BITSIZEOF_${GLTYPE} $result
8528 eval BITSIZEOF_${GLTYPE}=\$result
8534 for gltype in sig_atomic_t wchar_t wint_t ; do
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8536 $as_echo_n "checking whether $gltype is signed... " >&6; }
8537 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8538 $as_echo_n "(cached) " >&6
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8543 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8544 included before <wchar.h>. */
8553 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8562 if ac_fn_c_try_compile "$LINENO"; then :
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 eval gl_cv_type_${gltype}_signed=\$result
8571 eval ac_res=\$gl_cv_type_${gltype}_signed
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8573 $as_echo "$ac_res" >&6; }
8574 eval result=\$gl_cv_type_${gltype}_signed
8575 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8576 if test "$result" = yes; then
8577 cat >>confdefs.h <<_ACEOF
8578 #define HAVE_SIGNED_${GLTYPE} 1
8581 eval HAVE_SIGNED_${GLTYPE}=1
8583 eval HAVE_SIGNED_${GLTYPE}=0
8588 gl_cv_type_ptrdiff_t_signed=yes
8589 gl_cv_type_size_t_signed=no
8590 if test $APPLE_UNIVERSAL_BUILD = 0; then
8593 for gltype in ptrdiff_t size_t ; do
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8595 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8596 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8597 $as_echo_n "(cached) " >&6
8599 eval gl_cv_type_${gltype}_suffix=no
8600 eval result=\$gl_cv_type_${gltype}_signed
8601 if test "$result" = yes; then
8606 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8609 l) gltype1='long int';;
8610 ll) gltype1='long long int';;
8611 i64) gltype1='__int64';;
8612 u) gltype1='unsigned int';;
8613 ul) gltype1='unsigned long int';;
8614 ull) gltype1='unsigned long long int';;
8615 ui64)gltype1='unsigned __int64';;
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8620 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8621 included before <wchar.h>. */
8631 extern $gltype1 foo;
8640 if ac_fn_c_try_compile "$LINENO"; then :
8641 eval gl_cv_type_${gltype}_suffix=\$glsuf
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 eval result=\$gl_cv_type_${gltype}_suffix
8645 test "$result" != no && break
8648 eval ac_res=\$gl_cv_type_${gltype}_suffix
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8650 $as_echo "$ac_res" >&6; }
8651 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8652 eval result=\$gl_cv_type_${gltype}_suffix
8653 test "$result" = no && result=
8654 eval ${GLTYPE}_SUFFIX=\$result
8655 cat >>confdefs.h <<_ACEOF
8656 #define ${GLTYPE}_SUFFIX $result
8665 for gltype in sig_atomic_t wchar_t wint_t ; do
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8667 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8668 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8669 $as_echo_n "(cached) " >&6
8671 eval gl_cv_type_${gltype}_suffix=no
8672 eval result=\$gl_cv_type_${gltype}_signed
8673 if test "$result" = yes; then
8678 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8681 l) gltype1='long int';;
8682 ll) gltype1='long long int';;
8683 i64) gltype1='__int64';;
8684 u) gltype1='unsigned int';;
8685 ul) gltype1='unsigned long int';;
8686 ull) gltype1='unsigned long long int';;
8687 ui64)gltype1='unsigned __int64';;
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8692 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8693 included before <wchar.h>. */
8703 extern $gltype1 foo;
8712 if ac_fn_c_try_compile "$LINENO"; then :
8713 eval gl_cv_type_${gltype}_suffix=\$glsuf
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 eval result=\$gl_cv_type_${gltype}_suffix
8717 test "$result" != no && break
8720 eval ac_res=\$gl_cv_type_${gltype}_suffix
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8722 $as_echo "$ac_res" >&6; }
8723 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8724 eval result=\$gl_cv_type_${gltype}_suffix
8725 test "$result" = no && result=
8726 eval ${GLTYPE}_SUFFIX=\$result
8727 cat >>confdefs.h <<_ACEOF
8728 #define ${GLTYPE}_SUFFIX $result
8735 if test $BITSIZEOF_WINT_T -lt 32; then
8742 if test -n "$STDINT_H"; then
8743 GL_GENERATE_STDINT_H_TRUE=
8744 GL_GENERATE_STDINT_H_FALSE='#'
8746 GL_GENERATE_STDINT_H_TRUE='#'
8747 GL_GENERATE_STDINT_H_FALSE=
8758 HAVE_DECL_IMAXABS=1;
8759 HAVE_DECL_IMAXDIV=1;
8760 HAVE_DECL_STRTOIMAX=1;
8761 HAVE_DECL_STRTOUMAX=1;
8762 REPLACE_STRTOIMAX=0;
8763 REPLACE_STRTOUMAX=0;
8764 INT32_MAX_LT_INTMAX_MAX=1;
8765 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8766 PRI_MACROS_BROKEN=0;
8767 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8768 UINT32_MAX_LT_UINTMAX_MAX=1;
8769 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8785 if test $gl_cv_have_include_next = yes; then
8786 gl_cv_next_inttypes_h='<'inttypes.h'>'
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8789 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8790 if test "${gl_cv_next_inttypes_h+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8794 if test $ac_cv_header_inttypes_h = yes; then
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8801 #include <inttypes.h>
8804 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8805 *) gl_absname_cpp="$ac_cpp" ;;
8810 gl_dirsep_regex='[/\\]'
8813 gl_dirsep_regex='\/'
8816 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8817 gl_header_literal_regex=`echo 'inttypes.h' \
8818 |
sed -e "$gl_make_literal_regex_sed"`
8819 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8820 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8826 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8827 sed -n "$gl_absolute_header_sed"`
8829 gl_header=$gl_cv_absolute_inttypes_h
8830 gl_cv_next_inttypes_h='"'$gl_header'"'
8832 gl_cv_next_inttypes_h='<'inttypes.h'>'
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8838 $as_echo "$gl_cv_next_inttypes_h" >&6; }
8840 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8842 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8844 gl_next_as_first_directive='<'inttypes.h'>'
8846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8847 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8849 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8858 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8859 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8861 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8862 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8863 $as_echo_n "(cached) " >&6
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8867 #include <inttypes.h>
8878 if ac_fn_c_try_compile "$LINENO"; then :
8879 eval "$as_gl_Symbol=yes"
8881 eval "$as_gl_Symbol=no"
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 eval ac_res=\$$as_gl_Symbol
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8887 $as_echo "$ac_res" >&6; }
8888 eval as_val=\$$as_gl_Symbol
8889 if test "x$as_val" = x""yes; then :
8890 cat >>confdefs.h <<_ACEOF
8891 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
8894 eval ac_cv_have_decl_$gl_func=yes
8900 for ac_header in inttypes.h
8902 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8903 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8904 cat >>confdefs.h <<_ACEOF
8905 #define HAVE_INTTYPES_H 1
8912 if test $ac_cv_header_inttypes_h = yes; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8914 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8915 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8922 #include <inttypes.h>
8935 if ac_fn_c_try_compile "$LINENO"; then :
8936 gt_cv_inttypes_pri_broken=no
8938 gt_cv_inttypes_pri_broken=yes
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8944 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8946 if test "$gt_cv_inttypes_pri_broken" = yes; then
8948 cat >>confdefs.h <<_ACEOF
8949 #define PRI_MACROS_BROKEN 1
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8960 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8961 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8962 $as_echo_n "(cached) " >&6
8965 if test "$cross_compiling" = yes; then :
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8970 #if defined arm || defined __arm || defined __arm__
8975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8976 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8977 gl_cv_cc_double_expbit0="unknown"
8981 if test "${ac_cv_c_bigendian+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8984 ac_cv_c_bigendian=unknown
8985 # See if we're dealing with a universal compiler.
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 #ifndef __APPLE_CC__
8989 not a universal capable compiler
8994 if ac_fn_c_try_compile "$LINENO"; then :
8996 # Check for potential -arch flags. It is not universal unless
8997 # there are at least two -arch flags with different values.
9000 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9001 if test -n "$ac_prev"; then
9003 i?86 | x86_64 | ppc | ppc64)
9004 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9007 ac_cv_c_bigendian=universal
9013 elif test "x$ac_word" = "x-arch"; then
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 if test $ac_cv_c_bigendian = unknown; then
9020 # See if sys/param.h defines the BYTE_ORDER macro.
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 #include <sys/types.h>
9024 #include <sys/param.h>
9029 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9030 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9039 if ac_fn_c_try_compile "$LINENO"; then :
9040 # It does; now see whether it defined to BIG_ENDIAN or not.
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 #include <sys/types.h>
9044 #include <sys/param.h>
9049 #if BYTE_ORDER != BIG_ENDIAN
9057 if ac_fn_c_try_compile "$LINENO"; then :
9058 ac_cv_c_bigendian=yes
9060 ac_cv_c_bigendian=no
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9066 if test $ac_cv_c_bigendian = unknown; then
9067 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9075 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9083 if ac_fn_c_try_compile "$LINENO"; then :
9084 # It does; now see whether it defined to _BIG_ENDIAN or not.
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9100 if ac_fn_c_try_compile "$LINENO"; then :
9101 ac_cv_c_bigendian=yes
9103 ac_cv_c_bigendian=no
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 if test $ac_cv_c_bigendian = unknown; then
9110 # Compile a test program.
9111 if test "$cross_compiling" = yes; then :
9112 # Try to guess by grepping values from an object file.
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 short int ascii_mm[] =
9116 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9117 short int ascii_ii[] =
9118 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9119 int use_ascii (int i) {
9120 return ascii_mm[i] + ascii_ii[i];
9122 short int ebcdic_ii[] =
9123 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9124 short int ebcdic_mm[] =
9125 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9126 int use_ebcdic (int i) {
9127 return ebcdic_mm[i] + ebcdic_ii[i];
9134 return use_ascii (foo) == use_ebcdic (foo);
9139 if ac_fn_c_try_compile "$LINENO"; then :
9140 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9141 ac_cv_c_bigendian=yes
9143 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9144 if test "$ac_cv_c_bigendian" = unknown; then
9145 ac_cv_c_bigendian=no
9147 # finding both strings is unlikely to happen, but who knows?
9148 ac_cv_c_bigendian=unknown
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9156 $ac_includes_default
9161 /* Are we little or big endian? From Harbison&Steele. */
9165 char c[sizeof (long int)];
9168 return u.c[sizeof (long int) - 1] == 1;
9174 if ac_fn_c_try_run "$LINENO"; then :
9175 ac_cv_c_bigendian=no
9177 ac_cv_c_bigendian=yes
9179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9180 conftest.$ac_objext conftest.beam conftest.$ac_ext
9186 case $ac_cv_c_bigendian in #(
9188 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9190 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9193 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9197 gl_cv_cc_double_expbit0="unknown" ;;
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9214 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9215 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9216 static unsigned int ored_words[NWORDS];
9217 static unsigned int anded_words[NWORDS];
9218 static void add_to_ored_words (double x)
9222 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9223 memset (&m, 0, sizeof (memory_double));
9225 for (i = 0; i < NWORDS; i++)
9227 ored_words[i] |= m.word[i];
9228 anded_words[i] &= m.word[i];
9234 FILE *fp = fopen ("conftest.out", "w");
9237 for (j = 0; j < NWORDS; j++)
9238 anded_words[j] = ~ (unsigned int) 0;
9239 add_to_ored_words (0.25);
9240 add_to_ored_words (0.5);
9241 add_to_ored_words (1.0);
9242 add_to_ored_words (2.0);
9243 add_to_ored_words (4.0);
9244 /* Remove bits that are common (e.g. if representation of the first mantissa
9245 bit is explicit). */
9246 for (j = 0; j < NWORDS; j++)
9247 ored_words[j] &= ~anded_words[j];
9248 /* Now find the nonzero word. */
9249 for (j = 0; j < NWORDS; j++)
9250 if (ored_words[j] != 0)
9255 for (i = j + 1; i < NWORDS; i++)
9256 if (ored_words[i] != 0)
9258 fprintf (fp, "unknown");
9259 return (fclose (fp) != 0);
9262 if ((ored_words[j] >> i) & 1)
9264 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9265 return (fclose (fp) != 0);
9268 fprintf (fp, "unknown");
9269 return (fclose (fp) != 0);
9273 if ac_fn_c_try_run "$LINENO"; then :
9274 gl_cv_cc_double_expbit0=`cat conftest.out
`
9276 gl_cv_cc_double_expbit0="unknown"
9278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9279 conftest.$ac_objext conftest.beam conftest.$ac_ext
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9286 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9287 case "$gl_cv_cc_double_expbit0" in
9289 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
9290 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
9292 cat >>confdefs.h <<_ACEOF
9293 #define DBL_EXPBIT0_WORD $word
9297 cat >>confdefs.h <<_ACEOF
9298 #define DBL_EXPBIT0_BIT $bit
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9306 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9307 if test "${ac_cv_c_bigendian+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9310 ac_cv_c_bigendian=unknown
9311 # See if we're dealing with a universal compiler.
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314 #ifndef __APPLE_CC__
9315 not a universal capable compiler
9320 if ac_fn_c_try_compile "$LINENO"; then :
9322 # Check for potential -arch flags. It is not universal unless
9323 # there are at least two -arch flags with different values.
9326 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9327 if test -n "$ac_prev"; then
9329 i?86 | x86_64 | ppc | ppc64)
9330 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9333 ac_cv_c_bigendian=universal
9339 elif test "x$ac_word" = "x-arch"; then
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 if test $ac_cv_c_bigendian = unknown; then
9346 # See if sys/param.h defines the BYTE_ORDER macro.
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 #include <sys/types.h>
9350 #include <sys/param.h>
9355 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9356 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9365 if ac_fn_c_try_compile "$LINENO"; then :
9366 # It does; now see whether it defined to BIG_ENDIAN or not.
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 #include <sys/types.h>
9370 #include <sys/param.h>
9375 #if BYTE_ORDER != BIG_ENDIAN
9383 if ac_fn_c_try_compile "$LINENO"; then :
9384 ac_cv_c_bigendian=yes
9386 ac_cv_c_bigendian=no
9388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 if test $ac_cv_c_bigendian = unknown; then
9393 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9401 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9409 if ac_fn_c_try_compile "$LINENO"; then :
9410 # It does; now see whether it defined to _BIG_ENDIAN or not.
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9426 if ac_fn_c_try_compile "$LINENO"; then :
9427 ac_cv_c_bigendian=yes
9429 ac_cv_c_bigendian=no
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 if test $ac_cv_c_bigendian = unknown; then
9436 # Compile a test program.
9437 if test "$cross_compiling" = yes; then :
9438 # Try to guess by grepping values from an object file.
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 short int ascii_mm[] =
9442 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9443 short int ascii_ii[] =
9444 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9445 int use_ascii (int i) {
9446 return ascii_mm[i] + ascii_ii[i];
9448 short int ebcdic_ii[] =
9449 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9450 short int ebcdic_mm[] =
9451 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9452 int use_ebcdic (int i) {
9453 return ebcdic_mm[i] + ebcdic_ii[i];
9460 return use_ascii (foo) == use_ebcdic (foo);
9465 if ac_fn_c_try_compile "$LINENO"; then :
9466 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9467 ac_cv_c_bigendian=yes
9469 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9470 if test "$ac_cv_c_bigendian" = unknown; then
9471 ac_cv_c_bigendian=no
9473 # finding both strings is unlikely to happen, but who knows?
9474 ac_cv_c_bigendian=unknown
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 $ac_includes_default
9487 /* Are we little or big endian? From Harbison&Steele. */
9491 char c[sizeof (long int)];
9494 return u.c[sizeof (long int) - 1] == 1;
9500 if ac_fn_c_try_run "$LINENO"; then :
9501 ac_cv_c_bigendian=no
9503 ac_cv_c_bigendian=yes
9505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9506 conftest.$ac_objext conftest.beam conftest.$ac_ext
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9512 $as_echo "$ac_cv_c_bigendian" >&6; }
9513 case $ac_cv_c_bigendian in #(
9515 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9521 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9525 as_fn_error "unknown endianness
9526 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9535 $as_echo_n "checking for 64-bit off_t... " >&6; }
9536 if test "${gl_cv_type_off_t_64+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 #include <sys/types.h>
9542 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9552 if ac_fn_c_try_compile "$LINENO"; then :
9553 gl_cv_type_off_t_64=yes
9555 gl_cv_type_off_t_64=no
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9561 $as_echo "$gl_cv_type_off_t_64" >&6; }
9562 if test $gl_cv_type_off_t_64 = no; then
9563 WINDOWS_64_BIT_OFF_T=1
9565 WINDOWS_64_BIT_OFF_T=0
9567 WINDOWS_64_BIT_ST_SIZE=1
9570 WINDOWS_64_BIT_OFF_T=0
9571 WINDOWS_64_BIT_ST_SIZE=0
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9577 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9578 if test "${am_cv_langinfo_codeset+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583 #include <langinfo.h>
9587 char* cs = nl_langinfo(CODESET); return !cs;
9592 if ac_fn_c_try_link "$LINENO"; then :
9593 am_cv_langinfo_codeset=yes
9595 am_cv_langinfo_codeset=no
9597 rm -f core conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9602 $as_echo "$am_cv_langinfo_codeset" >&6; }
9603 if test $am_cv_langinfo_codeset = yes; then
9605 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9619 $as_echo_n "checking for working fcntl.h... " >&6; }
9620 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9623 if test "$cross_compiling" = yes; then :
9624 gl_cv_header_working_fcntl_h=cross-compiling
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 #include <sys/types.h>
9629 #include <sys/stat.h>
9631 # include <unistd.h>
9632 #else /* on Windows with MSVC */
9634 # include <stdlib.h>
9635 # defined sleep(n) _sleep ((n) * 1000)
9642 #define O_NOFOLLOW 0
9644 static int const constants[] =
9646 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9647 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9654 int result = !constants;
9657 static char const sym[] = "conftest.sym";
9658 if (symlink ("/dev/null", sym) != 0)
9662 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9669 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9673 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9684 static char const file[] = "confdefs.h";
9685 int fd = open (file, O_RDONLY | O_NOATIME);
9691 if (fstat (fd, &st0) != 0)
9697 if (read (fd, &c, 1) != 1)
9701 if (close (fd) != 0)
9706 if (stat (file, &st1) != 0)
9709 if (st0.st_atime != st1.st_atime)
9721 if ac_fn_c_try_run "$LINENO"; then :
9722 gl_cv_header_working_fcntl_h=yes
9725 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9726 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9727 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9728 *) gl_cv_header_working_fcntl_h='no';;
9731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9732 conftest.$ac_objext conftest.beam conftest.$ac_ext
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9737 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9739 case $gl_cv_header_working_fcntl_h in #(
9740 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9744 cat >>confdefs.h <<_ACEOF
9745 #define HAVE_WORKING_O_NOATIME $ac_val
9749 case $gl_cv_header_working_fcntl_h in #(
9750 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9754 cat >>confdefs.h <<_ACEOF
9755 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9759 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9760 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9766 cat >>confdefs.h <<_ACEOF
9767 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9772 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9773 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9774 $as_echo_n "(cached) " >&6
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9779 #include <features.h>
9780 #ifdef __GNU_LIBRARY__
9781 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9791 $EGREP "Lucky" >/dev/null 2>&1; then :
9792 ac_cv_gnu_library_2_1=yes
9794 ac_cv_gnu_library_2_1=no
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9802 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9804 GLIBC21="$ac_cv_gnu_library_2_1"
9840 REPLACE_UTIMENSAT=0;
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9846 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9847 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9850 rm -f conftest.sym conftest.file
9852 if test "$cross_compiling" = yes; then :
9855 # Guess yes on glibc systems.
9856 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9858 # If we don't know, assume the worst.
9859 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865 $ac_includes_default
9870 if (symlink ("conftest.file", "conftest.sym") != 0)
9872 /* Linux will dereference the symlink and fail, as required by
9873 POSIX. That is better in the sense that it means we will not
9874 have to compile and use the lstat wrapper. */
9875 return lstat ("conftest.sym/", &sbuf) == 0;
9881 if ac_fn_c_try_run "$LINENO"; then :
9882 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9884 gl_cv_func_lstat_dereferences_slashed_symlink=no
9886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9887 conftest.$ac_objext conftest.beam conftest.$ac_ext
9890 rm -f conftest.sym conftest.file
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9894 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9895 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9898 cat >>confdefs.h <<_ACEOF
9899 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9907 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9908 if test "${gl_cv_func_malloc_posix+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9918 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9926 if ac_fn_c_try_compile "$LINENO"; then :
9927 gl_cv_func_malloc_posix=yes
9929 gl_cv_func_malloc_posix=no
9931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9935 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9939 for ac_header in stdlib.h
9941 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9942 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9943 cat >>confdefs.h <<_ACEOF
9944 #define HAVE_STDLIB_H 1
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9952 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9953 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
9956 if test "$cross_compiling" = yes; then :
9958 # Guess yes on platforms where we know the result.
9959 *-gnu* | freebsd* | netbsd* | openbsd* \
9960 | hpux* | solaris* | cygwin* | mingw*)
9961 ac_cv_func_malloc_0_nonnull=yes ;;
9962 # If we don't know, assume the worst.
9963 *) ac_cv_func_malloc_0_nonnull=no ;;
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9969 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9970 # include <stdlib.h>
9978 return ! malloc (0);
9984 if ac_fn_c_try_run "$LINENO"; then :
9985 ac_cv_func_malloc_0_nonnull=yes
9987 ac_cv_func_malloc_0_nonnull=no
9989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9990 conftest.$ac_objext conftest.beam conftest.$ac_ext
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9996 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9997 if test $ac_cv_func_malloc_0_nonnull = yes; then :
9998 gl_cv_func_malloc_0_nonnull=1
10000 gl_cv_func_malloc_0_nonnull=0
10004 cat >>confdefs.h <<_ACEOF
10005 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10017 GNULIB_MBSRTOWCS=0;
10018 GNULIB_MBSNRTOWCS=0;
10020 GNULIB_WCSRTOMBS=0;
10021 GNULIB_WCSNRTOMBS=0;
10038 GNULIB_WCSCASECMP=0;
10039 GNULIB_WCSNCASECMP=0;
10076 HAVE_WCSNCASECMP=1;
10089 HAVE_DECL_WCWIDTH=1;
10090 REPLACE_MBSTATE_T=0;
10096 REPLACE_MBSRTOWCS=0;
10097 REPLACE_MBSNRTOWCS=0;
10099 REPLACE_WCSRTOMBS=0;
10100 REPLACE_WCSNRTOMBS=0;
10102 REPLACE_WCSWIDTH=0;
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10112 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10113 if test "${gt_cv_locale_ja+set}" = set; then :
10114 $as_echo_n "(cached) " >&6
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10120 #include <locale.h>
10122 #if HAVE_LANGINFO_CODESET
10123 # include <langinfo.h>
10125 #include <stdlib.h>
10126 #include <string.h>
10132 /* Check whether the given locale name is recognized by the system. */
10133 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10134 /* On native Windows, setlocale(category, "") looks at the system settings,
10135 not at the environment variables. Also, when an encoding suffix such
10136 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10137 category of the locale to "C". */
10138 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10139 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10142 if (setlocale (LC_ALL, "") == NULL) return 1;
10144 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10145 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10146 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10147 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10148 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10149 some unit tests fail.
10150 On MirBSD 10, when an unsupported locale is specified, setlocale()
10151 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10152 #if HAVE_LANGINFO_CODESET
10154 const char *cs = nl_langinfo (CODESET);
10155 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10156 || strcmp (cs, "UTF-8") == 0)
10161 /* On Cygwin, avoid locale names without encoding suffix, because the
10162 locale_charset() function relies on the encoding suffix. Note that
10163 LC_ALL is set on the command line. */
10164 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10166 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10167 on Cygwin 1.5.x. */
10168 if (MB_CUR_MAX == 1)
10170 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10171 This excludes the UTF-8 encoding (except on MirBSD). */
10172 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10173 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10174 for (p = buf; *p != '\0'; p++)
10175 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10182 (eval $ac_link) 2>&5
10184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10185 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10187 # Handle native Windows specially, because there setlocale() interprets
10188 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10189 # "fr" or "fra" as "French" or "French_France.1252",
10190 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10191 # "ja" as "Japanese" or "Japanese_Japan.932",
10194 # Note that on native Windows, the Japanese locale is
10195 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10196 # cannot use it here.
10197 gt_cv_locale_ja=none
10200 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10201 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10202 # configure script would override the LC_ALL setting. Likewise for
10203 # LC_CTYPE, which is also set at the beginning of the configure script.
10204 # Test for the AIX locale name.
10205 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10206 gt_cv_locale_ja=ja_JP
10208 # Test for the locale name with explicit encoding suffix.
10209 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10210 gt_cv_locale_ja=ja_JP.EUC-JP
10212 # Test for the HP-UX, OSF/1, NetBSD locale name.
10213 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10214 gt_cv_locale_ja=ja_JP.eucJP
10216 # Test for the IRIX, FreeBSD locale name.
10217 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10218 gt_cv_locale_ja=ja_JP.EUC
10220 # Test for the Solaris 7 locale name.
10221 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10224 # Special test for NetBSD 1.6.
10225 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10226 gt_cv_locale_ja=ja_JP.eucJP
10229 gt_cv_locale_ja=none
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10243 $as_echo "$gt_cv_locale_ja" >&6; }
10244 LOCALE_JA=$gt_cv_locale_ja
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10251 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10252 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10259 #include <locale.h>
10260 #include <stdlib.h>
10262 #if HAVE_LANGINFO_CODESET
10263 # include <langinfo.h>
10265 #include <stdlib.h>
10266 #include <string.h>
10272 /* Check whether the given locale name is recognized by the system. */
10273 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10274 /* On native Windows, setlocale(category, "") looks at the system settings,
10275 not at the environment variables. Also, when an encoding suffix such
10276 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10277 category of the locale to "C". */
10278 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10279 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10282 if (setlocale (LC_ALL, "") == NULL) return 1;
10284 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10285 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10286 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10287 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10288 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10289 some unit tests fail.
10290 On MirBSD 10, when an unsupported locale is specified, setlocale()
10291 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10292 #if HAVE_LANGINFO_CODESET
10294 const char *cs = nl_langinfo (CODESET);
10295 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10296 || strcmp (cs, "UTF-8") == 0)
10301 /* On Cygwin, avoid locale names without encoding suffix, because the
10302 locale_charset() function relies on the encoding suffix. Note that
10303 LC_ALL is set on the command line. */
10304 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10306 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10307 This excludes the UTF-8 encoding (except on MirBSD). */
10308 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10309 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10310 for (p = buf; *p != '\0'; p++)
10311 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10313 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10314 single wide character. This excludes the GB2312 and GBK encodings. */
10315 if (mblen ("\203\062\332\066", 5) != 4)
10321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10322 (eval $ac_link) 2>&5
10324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10327 # Handle native Windows specially, because there setlocale() interprets
10328 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10329 # "fr" or "fra" as "French" or "French_France.1252",
10330 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10331 # "ja" as "Japanese" or "Japanese_Japan.932",
10334 # Test for the hypothetical native Windows locale name.
10335 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10336 gt_cv_locale_zh_CN=Chinese_China.54936
10339 gt_cv_locale_zh_CN=none
10343 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10344 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10345 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10346 gt_cv_locale_zh_CN=none
10349 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10350 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10351 # configure script would override the LC_ALL setting. Likewise for
10352 # LC_CTYPE, which is also set at the beginning of the configure script.
10353 # Test for the locale name without encoding suffix.
10354 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10355 gt_cv_locale_zh_CN=zh_CN
10357 # Test for the locale name with explicit encoding suffix.
10358 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10359 gt_cv_locale_zh_CN=zh_CN.GB18030
10362 gt_cv_locale_zh_CN=none
10368 # If there was a link error, due to mblen(), the system is so old that
10369 # it certainly doesn't have a chinese locale.
10370 gt_cv_locale_zh_CN=none
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10376 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10377 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10383 $as_echo_n "checking for a french Unicode locale... " >&6; }
10384 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10391 #include <locale.h>
10393 #if HAVE_LANGINFO_CODESET
10394 # include <langinfo.h>
10396 #include <stdlib.h>
10397 #include <string.h>
10401 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10402 imitates locale dependent behaviour by looking at the environment
10403 variables, and all locales use the UTF-8 encoding. */
10404 #if !(defined __BEOS__ || defined __HAIKU__)
10405 /* Check whether the given locale name is recognized by the system. */
10406 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10407 /* On native Windows, setlocale(category, "") looks at the system settings,
10408 not at the environment variables. Also, when an encoding suffix such
10409 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10410 category of the locale to "C". */
10411 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10412 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10415 if (setlocale (LC_ALL, "") == NULL) return 1;
10417 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10418 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10419 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10420 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10421 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10422 some unit tests fail. */
10423 # if HAVE_LANGINFO_CODESET
10425 const char *cs = nl_langinfo (CODESET);
10426 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10431 /* On Cygwin, avoid locale names without encoding suffix, because the
10432 locale_charset() function relies on the encoding suffix. Note that
10433 LC_ALL is set on the command line. */
10434 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10436 /* Check whether in the abbreviation of the second month, the second
10437 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10438 two bytes long, with UTF-8 encoding. */
10439 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10440 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10441 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10444 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10445 /* Check whether the decimal separator is a comma.
10446 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10447 are nl_langinfo(RADIXCHAR) are both ".". */
10448 if (localeconv () ->decimal_point[0] != ',') return 1;
10454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10455 (eval $ac_link) 2>&5
10457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10458 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10460 # Handle native Windows specially, because there setlocale() interprets
10461 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10462 # "fr" or "fra" as "French" or "French_France.1252",
10463 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10464 # "ja" as "Japanese" or "Japanese_Japan.932",
10467 # Test for the hypothetical native Windows locale name.
10468 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10469 gt_cv_locale_fr_utf8=French_France.65001
10472 gt_cv_locale_fr_utf8=none
10476 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10477 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10478 # configure script would override the LC_ALL setting. Likewise for
10479 # LC_CTYPE, which is also set at the beginning of the configure script.
10480 # Test for the usual locale name.
10481 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10482 gt_cv_locale_fr_utf8=fr_FR
10484 # Test for the locale name with explicit encoding suffix.
10485 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10486 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10488 # Test for the Solaris 7 locale name.
10489 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10490 gt_cv_locale_fr_utf8=fr.UTF-8
10493 gt_cv_locale_fr_utf8=none
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10504 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10505 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10512 $as_echo_n "checking for a traditional french locale... " >&6; }
10513 if test "${gt_cv_locale_fr+set}" = set; then :
10514 $as_echo_n "(cached) " >&6
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10520 #include <locale.h>
10522 #if HAVE_LANGINFO_CODESET
10523 # include <langinfo.h>
10525 #include <stdlib.h>
10526 #include <string.h>
10530 /* Check whether the given locale name is recognized by the system. */
10531 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10532 /* On native Windows, setlocale(category, "") looks at the system settings,
10533 not at the environment variables. Also, when an encoding suffix such
10534 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10535 category of the locale to "C". */
10536 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10537 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10540 if (setlocale (LC_ALL, "") == NULL) return 1;
10542 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10543 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10544 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10545 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10546 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10547 some unit tests fail.
10548 On MirBSD 10, when an unsupported locale is specified, setlocale()
10549 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10550 #if HAVE_LANGINFO_CODESET
10552 const char *cs = nl_langinfo (CODESET);
10553 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10554 || strcmp (cs, "UTF-8") == 0)
10559 /* On Cygwin, avoid locale names without encoding suffix, because the
10560 locale_charset() function relies on the encoding suffix. Note that
10561 LC_ALL is set on the command line. */
10562 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10564 /* Check whether in the abbreviation of the second month, the second
10565 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10566 one byte long. This excludes the UTF-8 encoding. */
10567 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10568 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10569 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10570 /* Check whether the decimal separator is a comma.
10571 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10572 are nl_langinfo(RADIXCHAR) are both ".". */
10573 if (localeconv () ->decimal_point[0] != ',') return 1;
10579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10580 (eval $ac_link) 2>&5
10582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10583 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10585 # Handle native Windows specially, because there setlocale() interprets
10586 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10587 # "fr" or "fra" as "French" or "French_France.1252",
10588 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10589 # "ja" as "Japanese" or "Japanese_Japan.932",
10592 # Test for the native Windows locale name.
10593 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10594 gt_cv_locale_fr=French_France.1252
10597 gt_cv_locale_fr=none
10601 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10602 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10603 # configure script would override the LC_ALL setting. Likewise for
10604 # LC_CTYPE, which is also set at the beginning of the configure script.
10605 # Test for the usual locale name.
10606 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10607 gt_cv_locale_fr=fr_FR
10609 # Test for the locale name with explicit encoding suffix.
10610 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10611 gt_cv_locale_fr=fr_FR.ISO-8859-1
10613 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10614 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10615 gt_cv_locale_fr=fr_FR.ISO8859-1
10617 # Test for the HP-UX locale name.
10618 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10619 gt_cv_locale_fr=fr_FR.iso88591
10621 # Test for the Solaris 7 locale name.
10622 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10626 gt_cv_locale_fr=none
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10639 $as_echo "$gt_cv_locale_fr" >&6; }
10640 LOCALE_FR=$gt_cv_locale_fr
10654 GNULIB_RAWMEMCHR=0;
10657 GNULIB_STRCHRNUL=0;
10665 GNULIB_STRCASESTR=0;
10672 GNULIB_MBSCASECMP=0;
10673 GNULIB_MBSNCASECMP=0;
10674 GNULIB_MBSPCASECMP=0;
10675 GNULIB_MBSCASESTR=0;
10682 GNULIB_STRERROR_R=0;
10683 GNULIB_STRSIGNAL=0;
10684 GNULIB_STRVERSCMP=0;
10689 HAVE_DECL_MEMMEM=1;
10691 HAVE_DECL_MEMRCHR=1;
10696 HAVE_DECL_STRDUP=1;
10697 HAVE_DECL_STRNDUP=1;
10698 HAVE_DECL_STRNLEN=1;
10702 HAVE_DECL_STRTOK_R=1;
10703 HAVE_DECL_STRERROR_R=1;
10704 HAVE_DECL_STRSIGNAL=1;
10711 REPLACE_STRCASESTR=0;
10712 REPLACE_STRCHRNUL=0;
10713 REPLACE_STRERROR=0;
10714 REPLACE_STRERROR_R=0;
10718 REPLACE_STRSIGNAL=0;
10719 REPLACE_STRTOK_R=0;
10720 UNDEFINE_STRTOK_R=0;
10726 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10727 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10728 # irrelevant for anonymous mappings.
10729 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10730 if test "x$ac_cv_func_mmap" = x""yes; then :
10737 # Try to allow MAP_ANONYMOUS.
10738 gl_have_mmap_anonymous=no
10739 if test $gl_have_mmap = yes; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10741 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10745 #include <sys/mman.h>
10746 #ifdef MAP_ANONYMOUS
10747 I cannot identify this map
10751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10752 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10753 gl_have_mmap_anonymous=yes
10757 if test $gl_have_mmap_anonymous != yes; then
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10761 #include <sys/mman.h>
10763 I cannot identify this map
10767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10768 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10770 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10772 gl_have_mmap_anonymous=yes
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10778 $as_echo "$gl_have_mmap_anonymous" >&6; }
10779 if test $gl_have_mmap_anonymous = yes; then
10781 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10791 if test $HAVE_MEMCHR = 1; then
10792 # Detect platform-specific bugs in some versions of glibc:
10793 # memchr should not dereference anything with length 0
10794 # http://bugzilla.redhat.com/499689
10795 # memchr should not dereference overestimated length after a match
10796 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10797 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10798 # Assume that memchr works on platforms that lack mprotect.
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10800 $as_echo_n "checking whether memchr works... " >&6; }
10801 if test "${gl_cv_func_memchr_works+set}" = set; then :
10802 $as_echo_n "(cached) " >&6
10804 if test "$cross_compiling" = yes; then :
10805 gl_cv_func_memchr_works="guessing no"
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10810 #include <string.h>
10811 #if HAVE_SYS_MMAN_H
10812 # include <fcntl.h>
10813 # include <unistd.h>
10814 # include <sys/types.h>
10815 # include <sys/mman.h>
10817 # define MAP_FILE 0
10826 char *fence = NULL;
10827 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10828 # if HAVE_MAP_ANONYMOUS
10829 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10831 # else /* !HAVE_MAP_ANONYMOUS */
10832 const int flags = MAP_FILE | MAP_PRIVATE;
10833 int fd = open ("/dev/zero", O_RDONLY, 0666);
10837 int pagesize = getpagesize ();
10839 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10841 if (two_pages != (char *)(-1)
10842 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10843 fence = two_pages + pagesize;
10848 if (memchr (fence, 0, 0))
10850 strcpy (fence - 9, "12345678");
10851 if (memchr (fence - 9, 0, 79) != fence - 1)
10853 if (memchr (fence - 1, 0, 3) != fence - 1)
10862 if ac_fn_c_try_run "$LINENO"; then :
10863 gl_cv_func_memchr_works=yes
10865 gl_cv_func_memchr_works=no
10867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10868 conftest.$ac_objext conftest.beam conftest.$ac_ext
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10873 $as_echo "$gl_cv_func_memchr_works" >&6; }
10874 if test "$gl_cv_func_memchr_works" != yes; then
10879 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10880 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10886 cat >>confdefs.h <<_ACEOF
10887 #define HAVE_DECL_MEMMEM $ac_have_decl
10894 for ac_func in memmem
10896 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10897 if test "x$ac_cv_func_memmem" = x""yes; then :
10898 cat >>confdefs.h <<_ACEOF
10899 #define HAVE_MEMMEM 1
10905 if test $ac_cv_func_memmem = yes; then
10911 if test $ac_cv_have_decl_memmem = no; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10915 $as_echo_n "checking whether memmem works... " >&6; }
10916 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10919 if test "$cross_compiling" = yes; then :
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h. */
10923 #ifdef __GNU_LIBRARY__
10924 #include <features.h>
10925 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10926 || __GLIBC_MINOR__ > 12)) \
10927 || (__GLIBC__ > 2)) \
10928 || defined __UCLIBC__
10931 #elif defined __CYGWIN__
10932 #include <cygwin/version.h>
10933 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10942 $EGREP "Lucky user" >/dev/null 2>&1; then :
10943 gl_cv_func_memmem_works_always="guessing yes"
10945 gl_cv_func_memmem_works_always="guessing no"
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10954 #include <string.h> /* for memmem */
10955 #define P "_EF_BF_BD"
10956 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10957 #define NEEDLE P P P P P
10964 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10966 /* Check for empty needle behavior. */
10968 const char *haystack = "AAA";
10969 if (memmem (haystack, 3, NULL, 0) != haystack)
10978 if ac_fn_c_try_run "$LINENO"; then :
10979 gl_cv_func_memmem_works_always=yes
10981 gl_cv_func_memmem_works_always=no
10983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10984 conftest.$ac_objext conftest.beam conftest.$ac_ext
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10990 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10991 case "$gl_cv_func_memmem_works_always" in
11009 GNULIB_FPRINTF_POSIX=0;
11025 GNULIB_OBSTACK_PRINTF=0;
11026 GNULIB_OBSTACK_PRINTF_POSIX=0;
11031 GNULIB_PRINTF_POSIX=0;
11040 GNULIB_SPRINTF_POSIX=0;
11041 GNULIB_STDIO_H_NONBLOCKING=0;
11042 GNULIB_STDIO_H_SIGPIPE=0;
11044 GNULIB_VASPRINTF=0;
11049 GNULIB_VFPRINTF_POSIX=0;
11051 GNULIB_VPRINTF_POSIX=0;
11052 GNULIB_VSNPRINTF=0;
11053 GNULIB_VSPRINTF_POSIX=0;
11054 HAVE_DECL_FPURGE=1;
11055 HAVE_DECL_FSEEKO=1;
11056 HAVE_DECL_FTELLO=1;
11057 HAVE_DECL_GETDELIM=1;
11058 HAVE_DECL_GETLINE=1;
11059 HAVE_DECL_OBSTACK_PRINTF=1;
11060 HAVE_DECL_SNPRINTF=1;
11061 HAVE_DECL_VSNPRINTF=1;
11082 REPLACE_GETDELIM=0;
11084 REPLACE_OBSTACK_PRINTF=0;
11090 REPLACE_RENAMEAT=0;
11091 REPLACE_SNPRINTF=0;
11093 REPLACE_STDIO_READ_FUNCS=0;
11094 REPLACE_STDIO_WRITE_FUNCS=0;
11096 REPLACE_VASPRINTF=0;
11097 REPLACE_VDPRINTF=0;
11098 REPLACE_VFPRINTF=0;
11100 REPLACE_VSNPRINTF=0;
11101 REPLACE_VSPRINTF=0;
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11106 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11107 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11113 #include <stdbool.h>
11115 "error: bool is not defined"
11118 "error: false is not defined"
11121 "error: false is not 0"
11124 "error: true is not defined"
11127 "error: true is not 1"
11129 #ifndef __bool_true_false_are_defined
11130 "error: __bool_true_false_are_defined is not defined"
11133 struct s { _Bool s: 1; _Bool t; } s;
11135 char a[true == 1 ? 1 : -1];
11136 char b[false == 0 ? 1 : -1];
11137 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11138 char d[(bool) 0.5 == true ? 1 : -1];
11139 /* See body of main program for 'e'. */
11140 char f[(_Bool) 0.0 == false ? 1 : -1];
11142 char h[sizeof (_Bool)];
11143 char i[sizeof s.t];
11144 enum { j = false, k = true, l = false * true, m = true * 256 };
11145 /* The following fails for
11146 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11148 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11149 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11150 /* Catch a bug in an HP-UX C compiler. See
11151 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11152 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11164 /* Refer to every declared value, to avoid compiler optimizations. */
11165 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11166 + !m + !n + !o + !p + !q + !pq);
11172 if ac_fn_c_try_compile "$LINENO"; then :
11173 ac_cv_header_stdbool_h=yes
11175 ac_cv_header_stdbool_h=no
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11180 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11181 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11182 if test "x$ac_cv_type__Bool" = x""yes; then :
11184 cat >>confdefs.h <<_ACEOF
11185 #define HAVE__BOOL 1
11194 HAVE_MAX_ALIGN_T=1;
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11199 $as_echo_n "checking for wchar_t... " >&6; }
11200 if test "${gt_cv_c_wchar_t+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204 /* end confdefs.h. */
11205 #include <stddef.h>
11206 wchar_t foo = (wchar_t)'\0';
11215 if ac_fn_c_try_compile "$LINENO"; then :
11216 gt_cv_c_wchar_t=yes
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11223 $as_echo "$gt_cv_c_wchar_t" >&6; }
11224 if test $gt_cv_c_wchar_t = yes; then
11226 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11241 if test $gl_cv_have_include_next = yes; then
11242 gl_cv_next_string_h='<'string.h'>'
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11245 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11246 if test "${gl_cv_next_string_h+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11254 #include <string.h>
11257 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11258 *) gl_absname_cpp="$ac_cpp" ;;
11263 gl_dirsep_regex='[/\\]'
11266 gl_dirsep_regex='\/'
11269 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11270 gl_header_literal_regex=`echo 'string.h' \
11271 |
sed -e "$gl_make_literal_regex_sed"`
11272 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11273 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11279 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11280 sed -n "$gl_absolute_header_sed"`
11282 gl_header=$gl_cv_absolute_string_h
11283 gl_cv_next_string_h='"'$gl_header'"'
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11288 $as_echo "$gl_cv_next_string_h" >&6; }
11290 NEXT_STRING_H=$gl_cv_next_string_h
11292 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11294 gl_next_as_first_directive='<'string.h'>'
11296 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11297 gl_next_as_first_directive=$gl_cv_next_string_h
11299 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11306 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
11307 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11309 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11310 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11311 $as_echo_n "(cached) " >&6
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 #include <string.h>
11326 if ac_fn_c_try_compile "$LINENO"; then :
11327 eval "$as_gl_Symbol=yes"
11329 eval "$as_gl_Symbol=no"
11331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333 eval ac_res=\$$as_gl_Symbol
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11335 $as_echo "$ac_res" >&6; }
11336 eval as_val=\$$as_gl_Symbol
11337 if test "x$as_val" = x""yes; then :
11338 cat >>confdefs.h <<_ACEOF
11339 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11342 eval ac_cv_have_decl_$gl_func=yes
11350 if test "$gl_cv_func_memchr_works" != yes; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11354 $as_echo_n "checking whether strstr works... " >&6; }
11355 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11358 if test "$cross_compiling" = yes; then :
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11362 #ifdef __GNU_LIBRARY__
11363 #include <features.h>
11364 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11365 || defined __UCLIBC__
11368 #elif defined __CYGWIN__
11369 #include <cygwin/version.h>
11370 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11379 $EGREP "Lucky user" >/dev/null 2>&1; then :
11380 gl_cv_func_strstr_works_always="guessing yes"
11382 gl_cv_func_strstr_works_always="guessing no"
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11391 #include <string.h> /* for strstr */
11392 #define P "_EF_BF_BD"
11393 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11394 #define NEEDLE P P P P P
11399 return !!strstr (HAYSTACK, NEEDLE);
11405 if ac_fn_c_try_run "$LINENO"; then :
11406 gl_cv_func_strstr_works_always=yes
11408 gl_cv_func_strstr_works_always=no
11410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11411 conftest.$ac_objext conftest.beam conftest.$ac_ext
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11417 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11418 case "$gl_cv_func_strstr_works_always" in
11426 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11427 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11433 cat >>confdefs.h <<_ACEOF
11434 #define HAVE_DECL_STRTOK_R $ac_have_decl
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11438 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11439 if test "${ac_cv_header_stat_broken+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444 #include <sys/types.h>
11445 #include <sys/stat.h>
11447 #if defined S_ISBLK && defined S_IFDIR
11448 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11451 #if defined S_ISBLK && defined S_IFCHR
11452 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11455 #if defined S_ISLNK && defined S_IFREG
11456 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11459 #if defined S_ISSOCK && defined S_IFREG
11460 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11464 if ac_fn_c_try_compile "$LINENO"; then :
11465 ac_cv_header_stat_broken=no
11467 ac_cv_header_stat_broken=yes
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11472 $as_echo "$ac_cv_header_stat_broken" >&6; }
11473 if test $ac_cv_header_stat_broken = yes; then
11475 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11481 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11482 if test "x$ac_cv_type_mode_t" = x""yes; then :
11486 cat >>confdefs.h <<_ACEOF
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11493 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11494 if test -z "$MKDIR_P"; then
11495 if test "${ac_cv_path_mkdir+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11499 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11502 test -z "$as_dir" && as_dir=.
11503 for ac_prog in mkdir gmkdir; do
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11506 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11507 'mkdir (GNU coreutils) '* | \
11508 'mkdir (coreutils) '* | \
11509 'mkdir (fileutils) '4.1*)
11510 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11520 if test "${ac_cv_path_mkdir+set}" = set; then
11521 MKDIR_P="$ac_cv_path_mkdir -p"
11523 # As a last resort, use the slow shell script. Don't cache a
11524 # value for MKDIR_P within a source directory, because that will
11525 # break other packages using the cache if that directory is
11526 # removed, or if the value is a relative name.
11527 test -d ./--version && rmdir ./--version
11528 MKDIR_P="$ac_install_sh -d"
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11532 $as_echo "$MKDIR_P" >&6; }
11536 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11537 if test "x$ac_cv_type_pid_t" = x""yes; then :
11541 cat >>confdefs.h <<_ACEOF
11563 if test $gl_cv_have_include_next = yes; then
11564 gl_cv_next_sys_types_h='<'sys/types.h'>'
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
11567 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
11568 if test "${gl_cv_next_sys_types_h+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576 #include <sys/types.h>
11579 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11580 *) gl_absname_cpp="$ac_cpp" ;;
11585 gl_dirsep_regex='[/\\]'
11588 gl_dirsep_regex='\/'
11591 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11592 gl_header_literal_regex=`echo 'sys/types.h' \
11593 |
sed -e "$gl_make_literal_regex_sed"`
11594 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11595 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11601 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11602 sed -n "$gl_absolute_header_sed"`
11604 gl_header=$gl_cv_absolute_sys_types_h
11605 gl_cv_next_sys_types_h='"'$gl_header'"'
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
11610 $as_echo "$gl_cv_next_sys_types_h" >&6; }
11612 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
11614 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11615 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11616 gl_next_as_first_directive='<'sys/types.h'>'
11618 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11619 gl_next_as_first_directive=$gl_cv_next_sys_types_h
11621 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
11635 GNULIB_NANOSLEEP=0;
11640 HAVE_DECL_LOCALTIME_R=1;
11644 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11645 REPLACE_MKTIME=GNULIB_PORTCHECK;
11646 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11647 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11649 : ${GNULIB_GETTIMEOFDAY=0};
11651 REPLACE_LOCALTIME=0;
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11656 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11657 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11667 static struct timespec x; x.tv_sec = x.tv_nsec;
11672 if ac_fn_c_try_compile "$LINENO"; then :
11673 gl_cv_sys_struct_timespec_in_time_h=yes
11675 gl_cv_sys_struct_timespec_in_time_h=no
11677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11680 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11682 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11683 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11684 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
11685 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
11686 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11687 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11690 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11691 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11692 $as_echo_n "(cached) " >&6
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h. */
11696 #include <sys/time.h>
11701 static struct timespec x; x.tv_sec = x.tv_nsec;
11706 if ac_fn_c_try_compile "$LINENO"; then :
11707 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11709 gl_cv_sys_struct_timespec_in_sys_time_h=no
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11714 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11715 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11716 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11719 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11720 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11721 $as_echo_n "(cached) " >&6
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h. */
11725 #include <pthread.h>
11730 static struct timespec x; x.tv_sec = x.tv_nsec;
11735 if ac_fn_c_try_compile "$LINENO"; then :
11736 gl_cv_sys_struct_timespec_in_pthread_h=yes
11738 gl_cv_sys_struct_timespec_in_pthread_h=no
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11743 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11744 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11745 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
11748 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
11749 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
11750 $as_echo_n "(cached) " >&6
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11754 #include <unistd.h>
11759 static struct timespec x; x.tv_sec = x.tv_nsec;
11764 if ac_fn_c_try_compile "$LINENO"; then :
11765 gl_cv_sys_struct_timespec_in_unistd_h=yes
11767 gl_cv_sys_struct_timespec_in_unistd_h=no
11769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
11772 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
11773 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
11774 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
11795 if test $gl_cv_have_include_next = yes; then
11796 gl_cv_next_time_h='<'time.h'>'
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11799 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11800 if test "${gl_cv_next_time_h+set}" = set; then :
11801 $as_echo_n "(cached) " >&6
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11811 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11812 *) gl_absname_cpp="$ac_cpp" ;;
11817 gl_dirsep_regex='[/\\]'
11820 gl_dirsep_regex='\/'
11823 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11824 gl_header_literal_regex=`echo 'time.h' \
11825 |
sed -e "$gl_make_literal_regex_sed"`
11826 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11827 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11833 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11834 sed -n "$gl_absolute_header_sed"`
11836 gl_header=$gl_cv_absolute_time_h
11837 gl_cv_next_time_h='"'$gl_header'"'
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11842 $as_echo "$gl_cv_next_time_h" >&6; }
11844 NEXT_TIME_H=$gl_cv_next_time_h
11846 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11847 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11848 gl_next_as_first_directive='<'time.h'>'
11850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11851 gl_next_as_first_directive=$gl_cv_next_time_h
11853 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11862 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11863 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11864 $as_echo_n "(cached) " >&6
11866 gl_cv_header_wchar_h_correct_inline=yes
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11870 #define wcstod renamed_wcstod
11871 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11873 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11874 included before <wchar.h>. */
11875 #include <stddef.h>
11879 extern int zero (void);
11880 int main () { return zero(); }
11883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11884 (eval $ac_compile) 2>&5
11886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11887 test $ac_status = 0; }; then
11888 mv conftest.$ac_objext conftest1.$ac_objext
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11892 #define wcstod renamed_wcstod
11893 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11895 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11896 included before <wchar.h>. */
11897 #include <stddef.h>
11901 int zero (void) { return 0; }
11904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11905 (eval $ac_compile) 2>&5
11907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11908 test $ac_status = 0; }; then
11909 mv conftest.$ac_objext conftest2.$ac_objext
11910 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11913 gl_cv_header_wchar_h_correct_inline=no
11917 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11921 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11922 if test $gl_cv_header_wchar_h_correct_inline = no; then
11923 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11924 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11925 C99 mode. You have four options:
11926 - Add the flag -fgnu89-inline to CC and reconfigure, or
11927 - Fix your include files, using parts of
11928 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11929 - Use a gcc version older than 4.3, or
11930 - Don't use the flags -std=c99 or -std=gnu99.
11931 Configuration aborted." "$LINENO" 5
11938 if test $ac_cv_header_features_h = yes; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11947 $as_echo_n "checking for wint_t... " >&6; }
11948 if test "${gt_cv_c_wint_t+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11954 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11956 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11957 before <wchar.h>. */
11958 #include <stddef.h>
11962 wint_t foo = (wchar_t)'\0';
11971 if ac_fn_c_try_compile "$LINENO"; then :
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11979 $as_echo "$gt_cv_c_wint_t" >&6; }
11980 if test $gt_cv_c_wint_t = yes; then
11982 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11991 GNULIB_TOWCTRANS=0;
11995 REPLACE_ISWBLANK=0;
12001 GL_COND_LIBTOOL_TRUE=
12002 GL_COND_LIBTOOL_FALSE='#'
12004 GL_COND_LIBTOOL_TRUE='#'
12005 GL_COND_LIBTOOL_FALSE=
12008 gl_cond_libtool=false
12011 gl_m4_base='import/m4'
12021 gl_source_base='import'
12024 if test $ac_cv_func_alloca_works = no; then
12028 # Define an additional variable used in the Makefile substitution.
12029 if test $ac_cv_working_alloca_h = yes; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12031 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12032 if test "${gl_cv_rpl_alloca+set}" = set; then :
12033 $as_echo_n "(cached) " >&6
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12039 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12045 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12046 gl_cv_rpl_alloca=yes
12048 gl_cv_rpl_alloca=no
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12055 $as_echo "$gl_cv_rpl_alloca" >&6; }
12056 if test $gl_cv_rpl_alloca = yes; then
12058 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12068 if test -n "$ALLOCA_H"; then
12069 GL_GENERATE_ALLOCA_H_TRUE=
12070 GL_GENERATE_ALLOCA_H_FALSE='#'
12072 GL_GENERATE_ALLOCA_H_TRUE='#'
12073 GL_GENERATE_ALLOCA_H_FALSE=
12080 if test $ac_cv_func_canonicalize_file_name = no; then
12081 HAVE_CANONICALIZE_FILE_NAME=0
12082 if test $ac_cv_func_realpath = no; then
12085 case "$gl_cv_func_realpath_works" in
12087 *) REPLACE_REALPATH=1 ;;
12091 case "$gl_cv_func_realpath_works" in
12095 REPLACE_CANONICALIZE_FILE_NAME=1
12101 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12110 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12115 cat >>confdefs.h <<_ACEOF
12116 #define GNULIB_CANONICALIZE_LGPL 1
12125 GNULIB_CANONICALIZE_FILE_NAME=1
12131 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12146 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12161 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12166 if test "x$datarootdir" = x; then
12167 datarootdir='${datadir}'
12170 if test "x$docdir" = x; then
12171 docdir='${datarootdir}/doc/${PACKAGE}'
12174 if test "x$htmldir" = x; then
12175 htmldir='${docdir}'
12178 if test "x$dvidir" = x; then
12182 if test "x$pdfdir" = x; then
12186 if test "x$psdir" = x; then
12190 if test "x$lispdir" = x; then
12191 lispdir='${datarootdir}/emacs/site-lisp'
12194 if test "x$localedir" = x; then
12195 localedir='${datarootdir}/locale'
12198 if test "x$runstatedir" = x; then
12199 runstatedir='${localstatedir}/run'
12203 pkglibexecdir='${libexecdir}/${PACKAGE}'
12218 if test $gl_cv_have_include_next = yes; then
12219 gl_cv_next_dirent_h='<'dirent.h'>'
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12222 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12223 if test "${gl_cv_next_dirent_h+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12227 if test $ac_cv_header_dirent_h = yes; then
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234 #include <dirent.h>
12237 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12238 *) gl_absname_cpp="$ac_cpp" ;;
12243 gl_dirsep_regex='[/\\]'
12246 gl_dirsep_regex='\/'
12249 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12250 gl_header_literal_regex=`echo 'dirent.h' \
12251 |
sed -e "$gl_make_literal_regex_sed"`
12252 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12253 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12259 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12260 sed -n "$gl_absolute_header_sed"`
12262 gl_header=$gl_cv_absolute_dirent_h
12263 gl_cv_next_dirent_h='"'$gl_header'"'
12265 gl_cv_next_dirent_h='<'dirent.h'>'
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12271 $as_echo "$gl_cv_next_dirent_h" >&6; }
12273 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12275 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12277 gl_next_as_first_directive='<'dirent.h'>'
12279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12280 gl_next_as_first_directive=$gl_cv_next_dirent_h
12282 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12287 if test $ac_cv_header_dirent_h = yes; then
12295 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12296 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12298 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12299 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12300 $as_echo_n "(cached) " >&6
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12304 #include <dirent.h>
12315 if ac_fn_c_try_compile "$LINENO"; then :
12316 eval "$as_gl_Symbol=yes"
12318 eval "$as_gl_Symbol=no"
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 eval ac_res=\$$as_gl_Symbol
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12324 $as_echo "$ac_res" >&6; }
12325 eval as_val=\$$as_gl_Symbol
12326 if test "x$as_val" = x""yes; then :
12327 cat >>confdefs.h <<_ACEOF
12328 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
12331 eval ac_cv_have_decl_$gl_func=yes
12341 for ac_func in dirfd
12343 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12344 if test "x$ac_cv_func_dirfd" = x""yes; then :
12345 cat >>confdefs.h <<_ACEOF
12346 #define HAVE_DIRFD 1
12352 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12353 #include <dirent.h>
12355 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12361 cat >>confdefs.h <<_ACEOF
12362 #define HAVE_DECL_DIRFD $ac_have_decl
12365 if test $ac_cv_have_decl_dirfd = no; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12370 $as_echo_n "checking whether dirfd is a macro... " >&6; }
12371 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12377 #include <sys/types.h>
12378 #include <dirent.h>
12380 dirent_header_defines_dirfd
12383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12384 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12385 gl_cv_func_dirfd_macro=yes
12387 gl_cv_func_dirfd_macro=no
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12393 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
12395 # Use the replacement only if we have no function or macro with that name.
12396 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12397 if test $ac_cv_have_decl_dirfd = yes; then
12398 # If the system declares dirfd already, let's declare rpl_dirfd instead.
12403 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12412 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12416 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12417 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12421 dirfd_save_CFLAGS=$CFLAGS
12422 for ac_expr in d_fd dd_fd; do
12424 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12428 #include <sys/types.h>
12429 #include <dirent.h>
12433 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12438 if ac_fn_c_try_compile "$LINENO"; then :
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 CFLAGS=$dirfd_save_CFLAGS
12444 test "$dir_fd_found" = yes && break
12446 test "$dir_fd_found" = yes || ac_expr=no_such_member
12448 gl_cv_sys_dir_fd_member_name=$ac_expr
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12453 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12454 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12456 cat >>confdefs.h <<_ACEOF
12457 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12475 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12486 $as_echo_n "checking whether // is distinct from /... " >&6; }
12487 if test "${gl_cv_double_slash_root+set}" = set; then :
12488 $as_echo_n "(cached) " >&6
12490 if test x"$cross_compiling" = xyes ; then
12491 # When cross-compiling, there is no way to tell whether // is special
12492 # short of a list of hosts. However, the only known hosts to date
12493 # that have a distinct // are Apollo DomainOS (too old to port to),
12494 # Cygwin, and z/OS. If anyone knows of another system for which // has
12495 # special semantics and is distinct from /, please report it to
12496 # <bug-gnulib@gnu.org>.
12498 *-cygwin | i370-ibm-openedition)
12499 gl_cv_double_slash_root=yes ;;
12501 # Be optimistic and assume that / and // are the same when we
12503 gl_cv_double_slash_root='unknown, assuming no' ;;
12506 set x `ls -di / // 2>/dev
/null
`
12507 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12508 gl_cv_double_slash_root=no
12510 gl_cv_double_slash_root=yes
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12515 $as_echo "$gl_cv_double_slash_root" >&6; }
12516 if test "$gl_cv_double_slash_root" = yes; then
12518 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12528 REPLACE_FLOAT_LDBL=0
12530 aix* | beos* | openbsd* | mirbsd* | irix*)
12534 case "$host_cpu" in
12539 # On x86_64 systems, the C compiler may still be generating
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
12547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12548 $EGREP "yes" >/dev/null 2>&1; then :
12559 case "$host_cpu" in
12567 aix* | freebsd* | linux*)
12568 if test -n "$FLOAT_H"; then
12569 REPLACE_FLOAT_LDBL=1
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
12576 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
12577 if test "${gl_cv_func_itold_works+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12581 if test "$cross_compiling" = yes; then :
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586 #if defined __LP64__ || defined __arch64__
12590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12591 $EGREP "yes" >/dev/null 2>&1; then :
12592 gl_cv_func_itold_works="guessing no"
12594 gl_cv_func_itold_works="guessing yes"
12599 *) gl_cv_func_itold_works="guessing yes" ;;
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12607 volatile long double ld;
12616 if ac_fn_c_try_run "$LINENO"; then :
12617 gl_cv_func_itold_works=yes
12619 gl_cv_func_itold_works=no
12621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12622 conftest.$ac_objext conftest.beam conftest.$ac_ext
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
12628 $as_echo "$gl_cv_func_itold_works" >&6; }
12629 case "$gl_cv_func_itold_works" in
12636 if test -n "$FLOAT_H"; then
12645 if test $gl_cv_have_include_next = yes; then
12646 gl_cv_next_float_h='<'float.h'>'
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12649 $as_echo_n "checking absolute name of <float.h>... " >&6; }
12650 if test "${gl_cv_next_float_h+set}" = set; then :
12651 $as_echo_n "(cached) " >&6
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12661 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12662 *) gl_absname_cpp="$ac_cpp" ;;
12667 gl_dirsep_regex='[/\\]'
12670 gl_dirsep_regex='\/'
12673 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12674 gl_header_literal_regex=`echo 'float.h' \
12675 |
sed -e "$gl_make_literal_regex_sed"`
12676 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12677 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12683 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12684 sed -n "$gl_absolute_header_sed"`
12686 gl_header=$gl_cv_absolute_float_h
12687 gl_cv_next_float_h='"'$gl_header'"'
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12692 $as_echo "$gl_cv_next_float_h" >&6; }
12694 NEXT_FLOAT_H=$gl_cv_next_float_h
12696 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12697 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12698 gl_next_as_first_directive='<'float.h'>'
12700 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12701 gl_next_as_first_directive=$gl_cv_next_float_h
12703 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12710 if test -n "$FLOAT_H"; then
12711 GL_GENERATE_FLOAT_H_TRUE=
12712 GL_GENERATE_FLOAT_H_FALSE='#'
12714 GL_GENERATE_FLOAT_H_TRUE='#'
12715 GL_GENERATE_FLOAT_H_FALSE=
12720 if test $REPLACE_FLOAT_LDBL = 1; then
12729 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
12732 if test $REPLACE_ITOLD = 1; then
12741 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
12750 gl_fnmatch_required_lowercase=`
12751 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
12753 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
12755 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
12756 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
12757 $as_echo_n "(cached) " >&6
12759 if test $gl_fnmatch_required = GNU; then
12760 gl_fnmatch_gnu_start=
12761 gl_fnmatch_gnu_end=
12763 gl_fnmatch_gnu_start='#if 0'
12764 gl_fnmatch_gnu_end='#endif'
12766 if test "$cross_compiling" = yes; then :
12767 eval "$gl_fnmatch_cache_var=\"guessing no\""
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771 #include <fnmatch.h>
12773 y (char const *pattern, char const *string, int flags)
12775 return fnmatch (pattern, string, flags) == 0;
12778 n (char const *pattern, char const *string, int flags)
12780 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
12786 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
12787 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
12788 static char const A_1[] = { 'A' - 1, 0 };
12789 static char const A01[] = { 'A' + 1, 0 };
12790 static char const a_1[] = { 'a' - 1, 0 };
12791 static char const a01[] = { 'a' + 1, 0 };
12792 static char const bs_1[] = { '\\\\' - 1, 0 };
12793 static char const bs01[] = { '\\\\' + 1, 0 };
12795 if (!n ("a*", "", 0))
12797 if (!y ("a*", "abc", 0))
12799 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
12801 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
12803 if (!y ("a\\\\bc", "abc", 0))
12805 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
12807 if (!y ("*x", ".x", 0))
12809 if (!n ("*x", ".x", FNM_PERIOD))
12811 if (!y (Apat, "\\\\", 0))
12813 if (!y (Apat, "A", 0))
12815 if (!y (apat, "\\\\", 0))
12817 if (!y (apat, "a", 0))
12819 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
12821 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
12823 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12825 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12827 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12829 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12831 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12833 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12835 $gl_fnmatch_gnu_start
12836 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12838 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12840 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12842 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12844 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12846 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12848 $gl_fnmatch_gnu_end
12855 if ac_fn_c_try_run "$LINENO"; then :
12856 eval "$gl_fnmatch_cache_var=yes"
12858 eval "$gl_fnmatch_cache_var=no"
12860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12861 conftest.$ac_objext conftest.beam conftest.$ac_ext
12866 eval ac_res=\$$gl_fnmatch_cache_var
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12868 $as_echo "$ac_res" >&6; }
12869 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12870 if test "$gl_fnmatch_result" = yes; then
12871 rm -f "$gl_source_base/fnmatch.h"
12873 FNMATCH_H=fnmatch.h
12876 if test -n "$FNMATCH_H"; then
12877 GL_GENERATE_FNMATCH_H_TRUE=
12878 GL_GENERATE_FNMATCH_H_FALSE='#'
12880 GL_GENERATE_FNMATCH_H_TRUE='#'
12881 GL_GENERATE_FNMATCH_H_FALSE=
12885 if test -n "$FNMATCH_H"; then
12894 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12898 cat >>confdefs.h <<_ACEOF
12899 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12903 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12905 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12911 cat >>confdefs.h <<_ACEOF
12912 #define HAVE_DECL_ISBLANK $ac_have_decl
12924 if test -n "$FNMATCH_H"; then
12933 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12937 cat >>confdefs.h <<_ACEOF
12938 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12942 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12944 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12950 cat >>confdefs.h <<_ACEOF
12951 #define HAVE_DECL_ISBLANK $ac_have_decl
12962 if test $gl_cv_func_frexp_no_libm = no; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
12964 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
12965 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12978 int e; return frexp (x, &e) > 0;
12983 if ac_fn_c_try_link "$LINENO"; then :
12984 gl_cv_func_frexp_in_libm=yes
12986 gl_cv_func_frexp_in_libm=no
12988 rm -f core conftest.err conftest.$ac_objext \
12989 conftest$ac_exeext conftest.$ac_ext
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
12994 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
12995 if test $gl_cv_func_frexp_in_libm = yes; then
12999 if test $gl_cv_func_frexp_no_libm = yes \
13000 || test $gl_cv_func_frexp_in_libm = yes; then
13002 LIBS="$LIBS $FREXP_LIBM"
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13007 $as_echo_n "checking whether frexp works... " >&6; }
13008 if test "${gl_cv_func_frexp_works+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13012 if test "$cross_compiling" = yes; then :
13014 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13015 *) gl_cv_func_frexp_works="guessing yes";;
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13024 #include <string.h>
13025 #if HAVE_DECL_ALARM
13026 # include <signal.h>
13027 # include <unistd.h>
13029 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13030 ICC 10.0 has a bug when optimizing the expression -zero.
13031 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13032 to PowerPC on Mac OS X 10.5. */
13033 #if defined __hpux || defined __sgi || defined __ICC
13035 compute_minus_zero (void)
13037 return -DBL_MIN * DBL_MIN;
13039 # define minus_zero compute_minus_zero ()
13041 double minus_zero = -0.0;
13049 #if HAVE_DECL_ALARM
13050 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13051 number. Let the test fail in this case. */
13052 signal (SIGALRM, SIG_DFL);
13055 /* Test on denormalized numbers. */
13056 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13061 double y = frexp (x, &exp);
13062 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13063 On NetBSD: y = 0.75. Correct: y = 0.5. */
13067 /* Test on infinite numbers. */
13071 double y = frexp (x, &exp);
13075 /* Test on negative zero. */
13079 double y = frexp (x, &exp);
13080 if (memcmp (&y, &x, sizeof x))
13086 if ac_fn_c_try_run "$LINENO"; then :
13087 gl_cv_func_frexp_works=yes
13089 gl_cv_func_frexp_works=no
13091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13092 conftest.$ac_objext conftest.beam conftest.$ac_ext
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13098 $as_echo "$gl_cv_func_frexp_works" >&6; }
13101 case "$gl_cv_func_frexp_works" in
13102 *yes) gl_func_frexp=yes ;;
13103 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13108 if test $gl_func_frexp = yes; then
13110 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
13115 if test $gl_func_frexp != yes; then
13124 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13138 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13148 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13150 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13158 if test $HAVE_DECL_FREXPL = 1; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13161 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13162 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13173 int e; return frexpl (x, &e) > 0;
13178 if ac_fn_c_try_link "$LINENO"; then :
13179 gl_cv_func_frexpl_no_libm=yes
13181 gl_cv_func_frexpl_no_libm=no
13183 rm -f core conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext conftest.$ac_ext
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13188 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13190 if test $gl_cv_func_frexpl_no_libm = no; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13192 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13193 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13206 int e; return frexpl (x, &e) > 0;
13211 if ac_fn_c_try_link "$LINENO"; then :
13212 gl_cv_func_frexpl_in_libm=yes
13214 gl_cv_func_frexpl_in_libm=no
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13222 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13223 if test $gl_cv_func_frexpl_in_libm = yes; then
13227 if test $gl_cv_func_frexpl_no_libm = yes \
13228 || test $gl_cv_func_frexpl_in_libm = yes; then
13230 LIBS="$LIBS $FREXPL_LIBM"
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13234 $as_echo_n "checking whether frexpl works... " >&6; }
13235 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
13239 if test "$cross_compiling" = yes; then :
13242 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13243 gl_cv_func_frexpl_works="guessing no";;
13244 *) gl_cv_func_frexpl_works="guessing yes";;
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13253 /* Override the values of <float.h>, like done in float.in.h. */
13254 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13255 # undef LDBL_MIN_EXP
13256 # define LDBL_MIN_EXP (-16381)
13258 #if defined __i386__ && defined __FreeBSD__
13259 # undef LDBL_MIN_EXP
13260 # define LDBL_MIN_EXP (-16381)
13262 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13263 # undef LDBL_MIN_EXP
13264 # define LDBL_MIN_EXP DBL_MIN_EXP
13266 #if defined __sgi && (LDBL_MANT_DIG >= 106)
13267 # if defined __GNUC__
13268 # undef LDBL_MIN_EXP
13269 # define LDBL_MIN_EXP DBL_MIN_EXP
13276 long double frexpl (long double, int *);
13280 volatile long double x;
13281 /* Test on finite numbers that fails on AIX 5.1. */
13289 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13290 function returns an invalid (incorrectly normalized) value: it returns
13291 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13292 but the correct result is
13293 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13297 long double y = frexpl (x, &exp);
13298 if (!(exp == 1 && y == 0.505L))
13301 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13302 LDBL_MAX_EXP = 16384.
13303 In the loop end test, we test x against Infinity, rather than comparing
13304 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13307 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13318 /* Test on denormalized numbers. */
13321 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13326 long double y = frexpl (x, &exp);
13327 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13328 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13329 if (exp != LDBL_MIN_EXP - 1)
13333 /* Test on infinite numbers. */
13337 long double y = frexpl (x, &exp);
13344 if ac_fn_c_try_run "$LINENO"; then :
13345 gl_cv_func_frexpl_works=yes
13347 gl_cv_func_frexpl_works=no
13349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13350 conftest.$ac_objext conftest.beam conftest.$ac_ext
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13356 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13359 case "$gl_cv_func_frexpl_works" in
13360 *yes) gl_func_frexpl=yes ;;
13361 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13366 if test $gl_func_frexpl = yes; then
13368 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13372 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13373 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13375 FREXPL_LIBM="$FREXP_LIBM"
13382 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13391 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13405 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13415 gl_gettimeofday_timezone=void
13416 if test $ac_cv_func_gettimeofday != yes; then
13417 HAVE_GETTIMEOFDAY=0
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13423 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13424 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
13427 if test "$cross_compiling" = yes; then :
13428 # When cross-compiling:
13430 # Guess all is fine on glibc systems.
13431 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13432 # If we don't know, assume the worst.
13433 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439 #include <string.h>
13440 #include <sys/time.h>
13442 #include <stdlib.h>
13450 struct tm saved_lt;
13452 lt = localtime (&t);
13454 gettimeofday (&tv, NULL);
13455 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13461 if ac_fn_c_try_run "$LINENO"; then :
13462 gl_cv_func_gettimeofday_clobber=no
13464 gl_cv_func_gettimeofday_clobber=yes
13466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13467 conftest.$ac_objext conftest.beam conftest.$ac_ext
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13472 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13474 case "$gl_cv_func_gettimeofday_clobber" in
13476 REPLACE_GETTIMEOFDAY=1
13479 REPLACE_LOCALTIME=1
13482 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13488 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13489 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13494 #include <sys/time.h>
13496 int gettimeofday (struct timeval *restrict, void *restrict);
13501 /* glibc uses struct timezone * rather than the POSIX void *
13502 if _GNU_SOURCE is defined. However, since the only portable
13503 use of gettimeofday uses NULL as the second parameter, and
13504 since the glibc definition is actually more typesafe, it is
13505 not worth wrapping this to get a compliant signature. */
13506 int (*f) (struct timeval *restrict, void *restrict)
13509 return !(x | c.tv_sec | c.tv_usec);
13515 if ac_fn_c_try_compile "$LINENO"; then :
13516 gl_cv_func_gettimeofday_posix_signature=yes
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 #include <sys/time.h>
13521 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13531 if ac_fn_c_try_compile "$LINENO"; then :
13532 gl_cv_func_gettimeofday_posix_signature=almost
13534 gl_cv_func_gettimeofday_posix_signature=no
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13541 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13542 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13543 gl_gettimeofday_timezone='struct timezone'
13544 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13545 REPLACE_GETTIMEOFDAY=1
13547 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13548 REPLACE_GETTIMEOFDAY=1
13553 cat >>confdefs.h <<_ACEOF
13554 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13558 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13567 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13570 for ac_header in sys/timeb.h
13572 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13573 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13574 cat >>confdefs.h <<_ACEOF
13575 #define HAVE_SYS_TIMEB_H 1
13582 for ac_func in _ftime
13584 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13585 if test "x$ac_cv_func__ftime" = x""yes; then :
13586 cat >>confdefs.h <<_ACEOF
13587 #define HAVE__FTIME 1
13600 GNULIB_GETTIMEOFDAY=1
13606 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
13616 if test -n "$STDINT_H"; then
13617 PRIPTR_PREFIX='"l"'
13619 for glpfx in '' l ll I64; do
13621 '') gltype1='int';;
13622 l) gltype1='long int';;
13623 ll) gltype1='long long int';;
13624 I64) gltype1='__int64';;
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628 #include <stdint.h>
13629 extern intptr_t foo;
13630 extern $gltype1 foo;
13639 if ac_fn_c_try_compile "$LINENO"; then :
13640 PRIPTR_PREFIX='"'$glpfx'"'
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 test -n "$PRIPTR_PREFIX" && break
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
13650 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
13651 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
13652 $as_echo_n "(cached) " >&6
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 /* Work also in C++ mode. */
13657 #define __STDC_LIMIT_MACROS 1
13659 /* Work if build is not clean. */
13660 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13662 #include <limits.h>
13664 #include <stdint.h>
13667 #if defined INT32_MAX && defined INTMAX_MAX
13668 #define CONDITION (INT32_MAX < INTMAX_MAX)
13669 #elif HAVE_LONG_LONG_INT
13670 #define CONDITION (sizeof (int) < sizeof (long long int))
13672 #define CONDITION 0
13674 int test[CONDITION ? 1 : -1];
13683 if ac_fn_c_try_compile "$LINENO"; then :
13684 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
13686 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
13691 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
13692 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
13693 INT32_MAX_LT_INTMAX_MAX=1;
13695 INT32_MAX_LT_INTMAX_MAX=0;
13699 if test $APPLE_UNIVERSAL_BUILD = 0; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
13702 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
13703 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
13704 $as_echo_n "(cached) " >&6
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13708 /* Work also in C++ mode. */
13709 #define __STDC_LIMIT_MACROS 1
13711 /* Work if build is not clean. */
13712 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13714 #include <limits.h>
13716 #include <stdint.h>
13719 #if defined INT64_MAX
13720 #define CONDITION (INT64_MAX == LONG_MAX)
13721 #elif HAVE_LONG_LONG_INT
13722 #define CONDITION (sizeof (long long int) == sizeof (long int))
13724 #define CONDITION 0
13726 int test[CONDITION ? 1 : -1];
13735 if ac_fn_c_try_compile "$LINENO"; then :
13736 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
13738 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
13743 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
13744 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
13745 INT64_MAX_EQ_LONG_MAX=1;
13747 INT64_MAX_EQ_LONG_MAX=0;
13752 INT64_MAX_EQ_LONG_MAX=-1
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
13756 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
13757 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762 /* Work also in C++ mode. */
13763 #define __STDC_LIMIT_MACROS 1
13765 /* Work if build is not clean. */
13766 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13768 #include <limits.h>
13770 #include <stdint.h>
13773 #if defined UINT32_MAX && defined UINTMAX_MAX
13774 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
13775 #elif HAVE_LONG_LONG_INT
13776 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
13778 #define CONDITION 0
13780 int test[CONDITION ? 1 : -1];
13789 if ac_fn_c_try_compile "$LINENO"; then :
13790 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
13792 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
13794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
13797 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
13798 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
13799 UINT32_MAX_LT_UINTMAX_MAX=1;
13801 UINT32_MAX_LT_UINTMAX_MAX=0;
13805 if test $APPLE_UNIVERSAL_BUILD = 0; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
13808 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
13809 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 /* Work also in C++ mode. */
13815 #define __STDC_LIMIT_MACROS 1
13817 /* Work if build is not clean. */
13818 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13820 #include <limits.h>
13822 #include <stdint.h>
13825 #if defined UINT64_MAX
13826 #define CONDITION (UINT64_MAX == ULONG_MAX)
13827 #elif HAVE_LONG_LONG_INT
13828 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
13830 #define CONDITION 0
13832 int test[CONDITION ? 1 : -1];
13841 if ac_fn_c_try_compile "$LINENO"; then :
13842 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
13844 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
13846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
13849 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
13850 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
13851 UINT64_MAX_EQ_ULONG_MAX=1;
13853 UINT64_MAX_EQ_ULONG_MAX=0;
13858 UINT64_MAX_EQ_ULONG_MAX=-1
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13866 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13867 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13876 # define isnand(x) __builtin_isnan ((double)(x))
13879 # define isnand(x) isnan ((double)(x))
13890 if ac_fn_c_try_link "$LINENO"; then :
13891 gl_cv_func_isnand_no_libm=yes
13893 gl_cv_func_isnand_no_libm=no
13895 rm -f core conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13900 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13902 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
13903 if test $gl_cv_func_isnand_no_libm = yes; then
13905 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
13909 if test $gl_func_isnand_no_libm != yes; then
13918 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
13927 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
13928 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
13929 $as_echo_n "(cached) " >&6
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13937 # define isnanl(x) __builtin_isnanl ((long double)(x))
13938 #elif defined isnan
13940 # define isnanl(x) isnan ((long double)(x))
13951 if ac_fn_c_try_link "$LINENO"; then :
13952 gl_cv_func_isnanl_no_libm=yes
13954 gl_cv_func_isnanl_no_libm=no
13956 rm -f core conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
13961 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
13963 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
13964 if test $gl_func_isnanl_no_libm = yes; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
13970 $as_echo_n "checking whether isnanl works... " >&6; }
13971 if test "${gl_cv_func_isnanl_works+set}" = set; then :
13972 $as_echo_n "(cached) " >&6
13975 if test "$cross_compiling" = yes; then :
13976 gl_cv_func_isnanl_works="guessing yes"
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13982 #include <limits.h>
13986 # define isnanl(x) __builtin_isnanl ((long double)(x))
13987 #elif defined isnan
13989 # define isnanl(x) isnan ((long double)(x))
13992 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13993 typedef union { unsigned int word[NWORDS]; long double value; }
13994 memory_long_double;
13995 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
13996 runtime type conversion. */
13998 static long double NaNl ()
14001 return zero / zero;
14004 # define NaNl() (0.0L / 0.0L)
14010 if (!isnanl (NaNl ()))
14014 memory_long_double m;
14017 /* The isnanl function should be immune against changes in the sign bit and
14018 in the mantissa bits. The xor operation twiddles a bit that can only be
14019 a sign bit or a mantissa bit (since the exponent never extends to
14022 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14023 for (i = 0; i < NWORDS; i++)
14025 if (!isnanl (m.value))
14029 #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
14030 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14031 of 'unsigned int' words. */
14032 # ifdef WORDS_BIGENDIAN
14033 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14034 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14035 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
14036 (unsigned int) (mantlo) << 16 \
14039 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14040 { mantlo, manthi, exponent }
14043 static memory_long_double x =
14044 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14045 if (!isnanl (x.value))
14049 /* Signalling NaN. */
14050 static memory_long_double x =
14051 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14052 if (!isnanl (x.value))
14055 /* isnanl should return something even for noncanonical values. */
14056 { /* Pseudo-NaN. */
14057 static memory_long_double x =
14058 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14059 if (isnanl (x.value) && !isnanl (x.value))
14062 { /* Pseudo-Infinity. */
14063 static memory_long_double x =
14064 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14065 if (isnanl (x.value) && !isnanl (x.value))
14068 { /* Pseudo-Zero. */
14069 static memory_long_double x =
14070 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14071 if (isnanl (x.value) && !isnanl (x.value))
14074 { /* Unnormalized number. */
14075 static memory_long_double x =
14076 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14077 if (isnanl (x.value) && !isnanl (x.value))
14080 { /* Pseudo-Denormal. */
14081 static memory_long_double x =
14082 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14083 if (isnanl (x.value) && !isnanl (x.value))
14091 if ac_fn_c_try_run "$LINENO"; then :
14092 gl_cv_func_isnanl_works=yes
14094 gl_cv_func_isnanl_works=no
14096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14097 conftest.$ac_objext conftest.beam conftest.$ac_ext
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14103 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14105 case "$gl_cv_func_isnanl_works" in
14107 *) gl_func_isnanl_no_libm=no ;;
14110 if test $gl_func_isnanl_no_libm = yes; then
14112 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14116 if test $gl_func_isnanl_no_libm != yes; then
14125 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14131 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14132 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14133 $as_echo_n "(cached) " >&6
14136 if test "$cross_compiling" = yes; then :
14138 gl_cv_cc_long_double_expbit0="unknown"
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14145 #include <stddef.h>
14147 #include <string.h>
14149 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14150 typedef union { long double value; unsigned int word[NWORDS]; }
14151 memory_long_double;
14152 static unsigned int ored_words[NWORDS];
14153 static unsigned int anded_words[NWORDS];
14154 static void add_to_ored_words (long double x)
14156 memory_long_double m;
14158 /* Clear it first, in case
14159 sizeof (long double) < sizeof (memory_long_double). */
14160 memset (&m, 0, sizeof (memory_long_double));
14162 for (i = 0; i < NWORDS; i++)
14164 ored_words[i] |= m.word[i];
14165 anded_words[i] &= m.word[i];
14171 FILE *fp = fopen ("conftest.out", "w");
14174 for (j = 0; j < NWORDS; j++)
14175 anded_words[j] = ~ (unsigned int) 0;
14176 add_to_ored_words (0.25L);
14177 add_to_ored_words (0.5L);
14178 add_to_ored_words (1.0L);
14179 add_to_ored_words (2.0L);
14180 add_to_ored_words (4.0L);
14181 /* Remove bits that are common (e.g. if representation of the first mantissa
14182 bit is explicit). */
14183 for (j = 0; j < NWORDS; j++)
14184 ored_words[j] &= ~anded_words[j];
14185 /* Now find the nonzero word. */
14186 for (j = 0; j < NWORDS; j++)
14187 if (ored_words[j] != 0)
14192 for (i = j + 1; i < NWORDS; i++)
14193 if (ored_words[i] != 0)
14195 fprintf (fp, "unknown");
14196 return (fclose (fp) != 0);
14199 if ((ored_words[j] >> i) & 1)
14201 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14202 return (fclose (fp) != 0);
14205 fprintf (fp, "unknown");
14206 return (fclose (fp) != 0);
14210 if ac_fn_c_try_run "$LINENO"; then :
14211 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
14213 gl_cv_cc_long_double_expbit0="unknown"
14215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14216 conftest.$ac_objext conftest.beam conftest.$ac_ext
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14223 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14224 case "$gl_cv_cc_long_double_expbit0" in
14226 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
14227 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
14229 cat >>confdefs.h <<_ACEOF
14230 #define LDBL_EXPBIT0_WORD $word
14234 cat >>confdefs.h <<_ACEOF
14235 #define LDBL_EXPBIT0_BIT $bit
14253 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14258 if test $ac_cv_func_lstat = yes; then
14260 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14269 if test $REPLACE_LSTAT = 1; then
14278 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14293 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14300 if test $gl_cv_func_malloc_posix = yes; then
14302 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14308 if test $REPLACE_MALLOC = 1; then
14317 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14325 GNULIB_MALLOC_POSIX=1
14331 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14350 if test $gl_cv_have_include_next = yes; then
14351 gl_cv_next_math_h='<'math.h'>'
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14354 $as_echo_n "checking absolute name of <math.h>... " >&6; }
14355 if test "${gl_cv_next_math_h+set}" = set; then :
14356 $as_echo_n "(cached) " >&6
14359 if test $ac_cv_header_math_h = yes; then
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14369 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14370 *) gl_absname_cpp="$ac_cpp" ;;
14375 gl_dirsep_regex='[/\\]'
14378 gl_dirsep_regex='\/'
14381 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14382 gl_header_literal_regex=`echo 'math.h' \
14383 |
sed -e "$gl_make_literal_regex_sed"`
14384 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14385 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14391 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14392 sed -n "$gl_absolute_header_sed"`
14394 gl_header=$gl_cv_absolute_math_h
14395 gl_cv_next_math_h='"'$gl_header'"'
14397 gl_cv_next_math_h='<'math.h'>'
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14403 $as_echo "$gl_cv_next_math_h" >&6; }
14405 NEXT_MATH_H=$gl_cv_next_math_h
14407 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14409 gl_next_as_first_directive='<'math.h'>'
14411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14412 gl_next_as_first_directive=$gl_cv_next_math_h
14414 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14421 $as_echo_n "checking whether NAN macro works... " >&6; }
14422 if test "${gl_cv_header_math_nan_works+set}" = set; then :
14423 $as_echo_n "(cached) " >&6
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14431 /* Solaris 10 has a broken definition of NAN. Other platforms
14432 fail to provide NAN, or provide it only in C99 mode; this
14433 test only needs to fail when NAN is provided but wrong. */
14443 if ac_fn_c_try_compile "$LINENO"; then :
14444 gl_cv_header_math_nan_works=yes
14446 gl_cv_header_math_nan_works=no
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
14451 $as_echo "$gl_cv_header_math_nan_works" >&6; }
14452 if test $gl_cv_header_math_nan_works = no; then
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
14456 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
14457 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
14458 $as_echo_n "(cached) " >&6
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14466 /* Solaris 10 has a broken definition of HUGE_VAL. */
14467 double d = HUGE_VAL;
14473 if ac_fn_c_try_compile "$LINENO"; then :
14474 gl_cv_header_math_huge_val_works=yes
14476 gl_cv_header_math_huge_val_works=no
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
14481 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
14482 if test $gl_cv_header_math_huge_val_works = no; then
14487 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
14488 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14490 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14491 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14492 $as_echo_n "(cached) " >&6
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14506 if ac_fn_c_try_compile "$LINENO"; then :
14507 eval "$as_gl_Symbol=yes"
14509 eval "$as_gl_Symbol=no"
14511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513 eval ac_res=\$$as_gl_Symbol
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14515 $as_echo "$ac_res" >&6; }
14516 eval as_val=\$$as_gl_Symbol
14517 if test "x$as_val" = x""yes; then :
14518 cat >>confdefs.h <<_ACEOF
14519 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
14522 eval ac_cv_have_decl_$gl_func=yes
14537 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14542 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14543 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14548 # Guess no on AIX and OSF/1.
14549 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14550 # Guess yes otherwise.
14551 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14553 if test $LOCALE_JA != none; then
14554 if test "$cross_compiling" = yes; then :
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14560 #include <locale.h>
14561 #include <string.h>
14562 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14564 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14565 included before <wchar.h>. */
14566 #include <stddef.h>
14572 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14574 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14578 memset (&state, '\0', sizeof (mbstate_t));
14579 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14580 if (mbsinit (&state))
14586 if ac_fn_c_try_run "$LINENO"; then :
14587 gl_cv_func_mbrtowc_incomplete_state=yes
14589 gl_cv_func_mbrtowc_incomplete_state=no
14591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14592 conftest.$ac_objext conftest.beam conftest.$ac_ext
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14599 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14605 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14606 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14607 $as_echo_n "(cached) " >&6
14611 # Guess no on Solaris 8.
14612 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14613 # Guess yes otherwise.
14614 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14616 if test $LOCALE_ZH_CN != none; then
14617 if test "$cross_compiling" = yes; then :
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14623 #include <locale.h>
14624 #include <stdlib.h>
14625 #include <string.h>
14626 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14628 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14629 included before <wchar.h>. */
14630 #include <stddef.h>
14636 /* This fails on Solaris 8:
14637 mbrtowc returns 2, and sets wc to 0x00F0.
14638 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14639 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14641 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14645 memset (&state, '\0', sizeof (mbstate_t));
14646 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14647 && mbtowc (&wc, input + 3, 6) == 4)
14653 if ac_fn_c_try_run "$LINENO"; then :
14654 gl_cv_func_mbrtowc_sanitycheck=yes
14656 gl_cv_func_mbrtowc_sanitycheck=no
14658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14659 conftest.$ac_objext conftest.beam conftest.$ac_ext
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14666 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14668 REPLACE_MBSTATE_T=0
14669 case "$gl_cv_func_mbrtowc_incomplete_state" in
14671 *) REPLACE_MBSTATE_T=1 ;;
14673 case "$gl_cv_func_mbrtowc_sanitycheck" in
14675 *) REPLACE_MBSTATE_T=1 ;;
14678 REPLACE_MBSTATE_T=1
14683 if test $ac_cv_func_mbrtowc = no; then
14685 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
14686 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14688 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14689 included before <wchar.h>. */
14690 #include <stddef.h>
14696 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
14702 cat >>confdefs.h <<_ACEOF
14703 #define HAVE_DECL_MBRTOWC $ac_have_decl
14706 if test $ac_cv_have_decl_mbrtowc = yes; then
14710 if test $REPLACE_MBSTATE_T = 1; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
14717 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
14718 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
14719 $as_echo_n "(cached) " >&6
14723 # Guess no on Solaris.
14724 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
14725 # Guess yes otherwise.
14726 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
14728 if test $LOCALE_FR_UTF8 != none; then
14729 if test "$cross_compiling" = yes; then :
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14735 #include <locale.h>
14736 #include <stdlib.h>
14737 #include <string.h>
14738 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14740 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14741 included before <wchar.h>. */
14742 #include <stddef.h>
14750 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14752 char input[] = "\303\237er";
14757 memset (&state, '\0', sizeof (mbstate_t));
14758 wc = (wchar_t) 0xBADFACE;
14759 ret = mbrtowc (&wc, input, 5, &state);
14762 if (!mbsinit (&state))
14765 memset (&state, '\0', sizeof (mbstate_t));
14766 ret = mbrtowc (NULL, input, 5, &state);
14767 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
14769 if (!mbsinit (&state))
14775 if ac_fn_c_try_run "$LINENO"; then :
14776 gl_cv_func_mbrtowc_null_arg1=yes
14778 gl_cv_func_mbrtowc_null_arg1=no
14780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14781 conftest.$ac_objext conftest.beam conftest.$ac_ext
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
14788 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
14794 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
14795 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
14796 $as_echo_n "(cached) " >&6
14800 # Guess no on OSF/1.
14801 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
14802 # Guess yes otherwise.
14803 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
14805 if test $LOCALE_FR_UTF8 != none; then
14806 if test "$cross_compiling" = yes; then :
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14812 #include <locale.h>
14813 #include <string.h>
14814 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14816 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14817 included before <wchar.h>. */
14818 #include <stddef.h>
14824 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14830 memset (&state, '\0', sizeof (mbstate_t));
14831 wc = (wchar_t) 0xBADFACE;
14832 mbrtowc (&wc, NULL, 5, &state);
14833 /* Check that wc was not modified. */
14834 if (wc != (wchar_t) 0xBADFACE)
14840 if ac_fn_c_try_run "$LINENO"; then :
14841 gl_cv_func_mbrtowc_null_arg2=yes
14843 gl_cv_func_mbrtowc_null_arg2=no
14845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14846 conftest.$ac_objext conftest.beam conftest.$ac_ext
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
14853 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
14861 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
14862 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
14863 $as_echo_n "(cached) " >&6
14867 # Guess no on HP-UX, Solaris, native Windows.
14868 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
14869 # Guess yes otherwise.
14870 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
14872 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
14873 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
14874 if test "$cross_compiling" = yes; then :
14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14880 #include <locale.h>
14881 #include <string.h>
14882 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14884 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14885 included before <wchar.h>. */
14886 #include <stddef.h>
14893 int found_some_locale = 0;
14894 /* This fails on Solaris. */
14895 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14897 char input[] = "B\303\274\303\237er"; /* "Büßer" */
14901 memset (&state, '\0', sizeof (mbstate_t));
14902 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14905 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
14908 found_some_locale = 1;
14910 /* This fails on HP-UX 11.11. */
14911 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14913 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14917 memset (&state, '\0', sizeof (mbstate_t));
14918 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14921 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
14924 found_some_locale = 1;
14926 /* This fails on native Windows. */
14927 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
14929 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
14933 memset (&state, '\0', sizeof (mbstate_t));
14934 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14937 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14940 found_some_locale = 1;
14942 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
14944 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
14948 memset (&state, '\0', sizeof (mbstate_t));
14949 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14952 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14955 found_some_locale = 1;
14957 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
14959 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
14963 memset (&state, '\0', sizeof (mbstate_t));
14964 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14967 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14970 found_some_locale = 1;
14972 return (found_some_locale ? result : 77);
14975 if ac_fn_c_try_run "$LINENO"; then :
14976 gl_cv_func_mbrtowc_retval=yes
14978 if test $? != 77; then
14979 gl_cv_func_mbrtowc_retval=no
14983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14984 conftest.$ac_objext conftest.beam conftest.$ac_ext
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
14991 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
14997 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
14998 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
14999 $as_echo_n "(cached) " >&6
15003 # Guess no on Solaris 8 and 9.
15004 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15005 # Guess yes otherwise.
15006 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15008 if test $LOCALE_ZH_CN != none; then
15009 if test "$cross_compiling" = yes; then :
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15015 #include <locale.h>
15016 #include <string.h>
15017 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15019 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15020 included before <wchar.h>. */
15021 #include <stddef.h>
15027 /* This fails on Solaris 8 and 9. */
15028 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15033 memset (&state, '\0', sizeof (mbstate_t));
15034 if (mbrtowc (&wc, "", 1, &state) != 0)
15040 if ac_fn_c_try_run "$LINENO"; then :
15041 gl_cv_func_mbrtowc_nul_retval=yes
15043 gl_cv_func_mbrtowc_nul_retval=no
15045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15046 conftest.$ac_objext conftest.beam conftest.$ac_ext
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15053 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15058 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15059 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15060 $as_echo_n "(cached) " >&6
15064 # Guess no on AIX and glibc systems.
15066 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15067 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15069 if test "$cross_compiling" = yes; then :
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15077 static mbstate_t mbs;
15081 return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
15084 if ac_fn_c_try_run "$LINENO"; then :
15085 gl_cv_func_mbrtowc_empty_input=no
15087 gl_cv_func_mbrtowc_empty_input=yes
15089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15090 conftest.$ac_objext conftest.beam conftest.$ac_ext
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15096 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15098 case "$gl_cv_func_mbrtowc_null_arg1" in
15101 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15106 case "$gl_cv_func_mbrtowc_null_arg2" in
15109 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15114 case "$gl_cv_func_mbrtowc_retval" in
15117 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15122 case "$gl_cv_func_mbrtowc_nul_retval" in
15125 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15130 case "$gl_cv_func_mbrtowc_empty_input" in
15133 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15141 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15150 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15167 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15182 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15187 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15188 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15189 $as_echo_n "(cached) " >&6
15193 # Guess no on AIX and OSF/1.
15194 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15195 # Guess yes otherwise.
15196 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15198 if test $LOCALE_JA != none; then
15199 if test "$cross_compiling" = yes; then :
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15205 #include <locale.h>
15206 #include <string.h>
15207 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15209 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15210 included before <wchar.h>. */
15211 #include <stddef.h>
15217 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15219 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15223 memset (&state, '\0', sizeof (mbstate_t));
15224 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15225 if (mbsinit (&state))
15231 if ac_fn_c_try_run "$LINENO"; then :
15232 gl_cv_func_mbrtowc_incomplete_state=yes
15234 gl_cv_func_mbrtowc_incomplete_state=no
15236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15237 conftest.$ac_objext conftest.beam conftest.$ac_ext
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15244 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15250 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15251 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15252 $as_echo_n "(cached) " >&6
15256 # Guess no on Solaris 8.
15257 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15258 # Guess yes otherwise.
15259 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15261 if test $LOCALE_ZH_CN != none; then
15262 if test "$cross_compiling" = yes; then :
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15268 #include <locale.h>
15269 #include <stdlib.h>
15270 #include <string.h>
15271 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15273 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15274 included before <wchar.h>. */
15275 #include <stddef.h>
15281 /* This fails on Solaris 8:
15282 mbrtowc returns 2, and sets wc to 0x00F0.
15283 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15284 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15286 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15290 memset (&state, '\0', sizeof (mbstate_t));
15291 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15292 && mbtowc (&wc, input + 3, 6) == 4)
15298 if ac_fn_c_try_run "$LINENO"; then :
15299 gl_cv_func_mbrtowc_sanitycheck=yes
15301 gl_cv_func_mbrtowc_sanitycheck=no
15303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15304 conftest.$ac_objext conftest.beam conftest.$ac_ext
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15311 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15313 REPLACE_MBSTATE_T=0
15314 case "$gl_cv_func_mbrtowc_incomplete_state" in
15316 *) REPLACE_MBSTATE_T=1 ;;
15318 case "$gl_cv_func_mbrtowc_sanitycheck" in
15320 *) REPLACE_MBSTATE_T=1 ;;
15323 REPLACE_MBSTATE_T=1
15328 if test $ac_cv_func_mbsinit = no; then
15330 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15331 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15333 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15334 included before <wchar.h>. */
15335 #include <stddef.h>
15341 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15347 cat >>confdefs.h <<_ACEOF
15348 #define HAVE_DECL_MBSINIT $ac_have_decl
15351 if test $ac_cv_have_decl_mbsinit = yes; then
15355 if test $REPLACE_MBSTATE_T = 1; then
15359 mingw*) REPLACE_MBSINIT=1 ;;
15364 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15373 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15390 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15404 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15409 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15410 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15411 $as_echo_n "(cached) " >&6
15415 # Guess no on AIX and OSF/1.
15416 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15417 # Guess yes otherwise.
15418 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15420 if test $LOCALE_JA != none; then
15421 if test "$cross_compiling" = yes; then :
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15427 #include <locale.h>
15428 #include <string.h>
15429 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15431 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15432 included before <wchar.h>. */
15433 #include <stddef.h>
15439 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15441 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15445 memset (&state, '\0', sizeof (mbstate_t));
15446 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15447 if (mbsinit (&state))
15453 if ac_fn_c_try_run "$LINENO"; then :
15454 gl_cv_func_mbrtowc_incomplete_state=yes
15456 gl_cv_func_mbrtowc_incomplete_state=no
15458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15459 conftest.$ac_objext conftest.beam conftest.$ac_ext
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15466 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15472 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15473 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15474 $as_echo_n "(cached) " >&6
15478 # Guess no on Solaris 8.
15479 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15480 # Guess yes otherwise.
15481 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15483 if test $LOCALE_ZH_CN != none; then
15484 if test "$cross_compiling" = yes; then :
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15490 #include <locale.h>
15491 #include <stdlib.h>
15492 #include <string.h>
15493 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15495 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15496 included before <wchar.h>. */
15497 #include <stddef.h>
15503 /* This fails on Solaris 8:
15504 mbrtowc returns 2, and sets wc to 0x00F0.
15505 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15506 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15508 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15512 memset (&state, '\0', sizeof (mbstate_t));
15513 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15514 && mbtowc (&wc, input + 3, 6) == 4)
15520 if ac_fn_c_try_run "$LINENO"; then :
15521 gl_cv_func_mbrtowc_sanitycheck=yes
15523 gl_cv_func_mbrtowc_sanitycheck=no
15525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15526 conftest.$ac_objext conftest.beam conftest.$ac_ext
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15533 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15535 REPLACE_MBSTATE_T=0
15536 case "$gl_cv_func_mbrtowc_incomplete_state" in
15538 *) REPLACE_MBSTATE_T=1 ;;
15540 case "$gl_cv_func_mbrtowc_sanitycheck" in
15542 *) REPLACE_MBSTATE_T=1 ;;
15545 REPLACE_MBSTATE_T=1
15550 if test $ac_cv_func_mbsrtowcs = no; then
15552 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
15553 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15555 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15556 included before <wchar.h>. */
15557 #include <stddef.h>
15563 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
15569 cat >>confdefs.h <<_ACEOF
15570 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
15573 if test $ac_cv_have_decl_mbsrtowcs = yes; then
15574 REPLACE_MBSRTOWCS=1
15577 if test $REPLACE_MBSTATE_T = 1; then
15578 REPLACE_MBSRTOWCS=1
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
15587 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
15588 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15593 # Guess no on HP-UX, Solaris, mingw.
15594 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
15595 # Guess yes otherwise.
15596 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
15598 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
15599 if test "$cross_compiling" = yes; then :
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15605 #include <locale.h>
15606 #include <string.h>
15607 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15609 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15610 included before <wchar.h>. */
15611 #include <stddef.h>
15618 /* Test whether the function supports a NULL destination argument.
15619 This fails on native Windows. */
15620 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
15622 const char input[] = "\337er";
15623 const char *src = input;
15626 memset (&state, '\0', sizeof (mbstate_t));
15627 if (mbsrtowcs (NULL, &src, 1, &state) != 3
15631 /* Test whether the function works when started with a conversion state
15632 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
15633 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15635 const char input[] = "B\303\274\303\237er";
15638 memset (&state, '\0', sizeof (mbstate_t));
15639 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15640 if (!mbsinit (&state))
15642 const char *src = input + 2;
15643 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15647 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15649 const char input[] = "<\306\374\313\334\270\354>";
15652 memset (&state, '\0', sizeof (mbstate_t));
15653 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
15654 if (!mbsinit (&state))
15656 const char *src = input + 4;
15657 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
15661 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15663 const char input[] = "B\250\271\201\060\211\070er";
15666 memset (&state, '\0', sizeof (mbstate_t));
15667 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15668 if (!mbsinit (&state))
15670 const char *src = input + 2;
15671 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15678 if ac_fn_c_try_run "$LINENO"; then :
15679 gl_cv_func_mbsrtowcs_works=yes
15681 gl_cv_func_mbsrtowcs_works=no
15683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15684 conftest.$ac_objext conftest.beam conftest.$ac_ext
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
15691 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
15693 case "$gl_cv_func_mbsrtowcs_works" in
15695 *) REPLACE_MBSRTOWCS=1 ;;
15700 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
15709 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
15719 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
15736 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
15741 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15750 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15753 for ac_header in bp-sym.h
15755 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15756 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
15757 cat >>confdefs.h <<_ACEOF
15758 #define HAVE_BP_SYM_H 1
15778 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15784 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
15786 $as_echo_n "checking whether memmem works in linear time... " >&6; }
15787 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
15788 $as_echo_n "(cached) " >&6
15790 if test "$cross_compiling" = yes; then :
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15794 #include <features.h>
15795 #ifdef __GNU_LIBRARY__
15796 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
15797 && !defined __UCLIBC__
15802 #include <cygwin/version.h>
15803 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
15809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15810 $EGREP "Lucky user" >/dev/null 2>&1; then :
15811 gl_cv_func_memmem_works_fast="guessing yes"
15813 gl_cv_func_memmem_works_fast="guessing no"
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15822 #include <signal.h> /* for signal */
15823 #include <string.h> /* for memmem */
15824 #include <stdlib.h> /* for malloc */
15825 #include <unistd.h> /* for alarm */
15826 static void quit (int sig) { exit (sig + 128); }
15833 size_t m = 1000000;
15834 char *haystack = (char *) malloc (2 * m + 1);
15835 char *needle = (char *) malloc (m + 1);
15836 /* Failure to compile this test due to missing alarm is okay,
15837 since all such platforms (mingw) also lack memmem. */
15838 signal (SIGALRM, quit);
15840 /* Check for quadratic performance. */
15841 if (haystack && needle)
15843 memset (haystack, 'A', 2 * m);
15844 haystack[2 * m] = 'B';
15845 memset (needle, 'A', m);
15847 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
15856 if ac_fn_c_try_run "$LINENO"; then :
15857 gl_cv_func_memmem_works_fast=yes
15859 gl_cv_func_memmem_works_fast=no
15861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15862 conftest.$ac_objext conftest.beam conftest.$ac_ext
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
15868 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
15869 case "$gl_cv_func_memmem_works_fast" in
15877 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15886 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15893 for ac_func in memmem
15895 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15896 if test "x$ac_cv_func_memmem" = x""yes; then :
15897 cat >>confdefs.h <<_ACEOF
15898 #define HAVE_MEMMEM 1
15904 if test $ac_cv_func_memmem = yes; then
15910 if test $ac_cv_have_decl_memmem = no; then
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15914 $as_echo_n "checking whether memmem works... " >&6; }
15915 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
15916 $as_echo_n "(cached) " >&6
15918 if test "$cross_compiling" = yes; then :
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15922 #ifdef __GNU_LIBRARY__
15923 #include <features.h>
15924 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15925 || __GLIBC_MINOR__ > 12)) \
15926 || (__GLIBC__ > 2)) \
15927 || defined __UCLIBC__
15930 #elif defined __CYGWIN__
15931 #include <cygwin/version.h>
15932 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15941 $EGREP "Lucky user" >/dev/null 2>&1; then :
15942 gl_cv_func_memmem_works_always="guessing yes"
15944 gl_cv_func_memmem_works_always="guessing no"
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15953 #include <string.h> /* for memmem */
15954 #define P "_EF_BF_BD"
15955 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15956 #define NEEDLE P P P P P
15963 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15965 /* Check for empty needle behavior. */
15967 const char *haystack = "AAA";
15968 if (memmem (haystack, 3, NULL, 0) != haystack)
15977 if ac_fn_c_try_run "$LINENO"; then :
15978 gl_cv_func_memmem_works_always=yes
15980 gl_cv_func_memmem_works_always=no
15982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15983 conftest.$ac_objext conftest.beam conftest.$ac_ext
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15989 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15990 case "$gl_cv_func_memmem_works_always" in
15999 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16008 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16022 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16033 if test $ac_cv_func_readlink = no; then
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16037 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16038 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16039 $as_echo_n "(cached) " >&6
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043 #include <unistd.h>
16044 /* Cause compilation failure if original declaration has wrong type. */
16045 ssize_t readlink (const char *, char *, size_t);
16054 if ac_fn_c_try_compile "$LINENO"; then :
16055 gl_cv_decl_readlink_works=yes
16057 gl_cv_decl_readlink_works=no
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16062 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16064 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16065 if test "${gl_cv_func_readlink_works+set}" = set; then :
16066 $as_echo_n "(cached) " >&6
16068 # We have readlink, so assume ln -s works.
16069 ln -s conftest.no-such conftest.link
16070 ln -s conftest.link conftest.lnk2
16071 if test "$cross_compiling" = yes; then :
16073 # Guess yes on glibc systems.
16074 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16075 # If we don't know, assume the worst.
16076 *) gl_cv_func_readlink_works="guessing no" ;;
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16082 #include <unistd.h>
16088 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16093 if ac_fn_c_try_run "$LINENO"; then :
16094 gl_cv_func_readlink_works=yes
16096 gl_cv_func_readlink_works=no
16098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16099 conftest.$ac_objext conftest.beam conftest.$ac_ext
16102 rm -f conftest.link conftest.lnk2
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16105 $as_echo "$gl_cv_func_readlink_works" >&6; }
16106 case "$gl_cv_func_readlink_works" in
16108 if test "$gl_cv_decl_readlink_works" != yes; then
16114 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16121 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16130 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16147 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16157 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16158 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16159 $as_echo_n "(cached) " >&6
16161 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16162 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16163 as_fn_error "cannot create temporary files" "$LINENO" 5
16164 # Assume that if we have lstat, we can also check symlinks.
16165 if test $ac_cv_func_lstat = yes; then
16166 ln -s conftest.f conftest.lnk
16168 if test "$cross_compiling" = yes; then :
16170 # Guess yes on glibc systems.
16171 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16172 # If we don't know, assume the worst.
16173 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16180 # include <stdio.h>
16181 # include <stdlib.h>
16187 if (rename ("conftest.f1", "conftest.f2/") == 0)
16189 if (rename ("conftest.d1", "conftest.d2/") != 0)
16192 if (rename ("conftest.f", "conftest.lnk/") == 0)
16201 if ac_fn_c_try_run "$LINENO"; then :
16202 gl_cv_func_rename_slash_dst_works=yes
16204 gl_cv_func_rename_slash_dst_works=no
16206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16207 conftest.$ac_objext conftest.beam conftest.$ac_ext
16210 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16214 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16215 case "$gl_cv_func_rename_slash_dst_works" in
16220 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16226 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16227 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16228 $as_echo_n "(cached) " >&6
16230 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16231 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16232 as_fn_error "cannot create temporary files" "$LINENO" 5
16233 # Assume that if we have lstat, we can also check symlinks.
16234 if test $ac_cv_func_lstat = yes; then
16235 ln -s conftest.f conftest.lnk
16237 if test "$cross_compiling" = yes; then :
16239 # Guess yes on glibc systems.
16240 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16241 # If we don't know, assume the worst.
16242 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16249 # include <stdio.h>
16250 # include <stdlib.h>
16256 if (rename ("conftest.f1/", "conftest.d3") == 0)
16258 if (rename ("conftest.d1/", "conftest.d2") != 0)
16261 if (rename ("conftest.lnk/", "conftest.f") == 0)
16270 if ac_fn_c_try_run "$LINENO"; then :
16271 gl_cv_func_rename_slash_src_works=yes
16273 gl_cv_func_rename_slash_src_works=no
16275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16276 conftest.$ac_objext conftest.beam conftest.$ac_ext
16279 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16283 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16284 case "$gl_cv_func_rename_slash_src_works" in
16289 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16296 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16297 if test "${gl_cv_func_rename_link_works+set}" = set; then :
16298 $as_echo_n "(cached) " >&6
16300 if test $ac_cv_func_link = yes; then
16301 rm -rf conftest.f conftest.f1
16302 if touch conftest.f && ln conftest.f conftest.f1 &&
16303 set x `ls -i conftest.f conftest.f1
` && test "" = ""; then
16304 if test "$cross_compiling" = yes; then :
16306 # Guess yes on glibc systems.
16307 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16308 # If we don't know, assume the worst.
16309 *) gl_cv_func_rename_link_works="guessing no" ;;
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h. */
16316 # include <stdio.h>
16317 # include <stdlib.h>
16318 # include <unistd.h>
16324 if (rename ("conftest.f", "conftest.f1"))
16326 if (unlink ("conftest.f1"))
16328 if (rename ("conftest.f", "conftest.f"))
16330 if (rename ("conftest.f1", "conftest.f1") == 0)
16338 if ac_fn_c_try_run "$LINENO"; then :
16339 gl_cv_func_rename_link_works=yes
16341 gl_cv_func_rename_link_works=no
16343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16344 conftest.$ac_objext conftest.beam conftest.$ac_ext
16348 gl_cv_func_rename_link_works="guessing no"
16350 rm -rf conftest.f conftest.f1
16352 gl_cv_func_rename_link_works=yes
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
16357 $as_echo "$gl_cv_func_rename_link_works" >&6; }
16358 case "$gl_cv_func_rename_link_works" in
16363 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
16369 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
16370 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
16371 $as_echo_n "(cached) " >&6
16373 rm -rf conftest.f conftest.d1 conftest.d2
16374 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
16375 as_fn_error "cannot create temporary files" "$LINENO" 5
16376 if test "$cross_compiling" = yes; then :
16378 # Guess yes on glibc systems.
16379 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
16380 # If we don't know, assume the worst.
16381 *) gl_cv_func_rename_dest_works="guessing no" ;;
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16388 # include <stdio.h>
16389 # include <stdlib.h>
16395 if (rename ("conftest.d1", "conftest.d2") != 0)
16397 if (rename ("conftest.d2", "conftest.f") == 0)
16405 if ac_fn_c_try_run "$LINENO"; then :
16406 gl_cv_func_rename_dest_works=yes
16408 gl_cv_func_rename_dest_works=no
16410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16411 conftest.$ac_objext conftest.beam conftest.$ac_ext
16414 rm -rf conftest.f conftest.d1 conftest.d2
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
16418 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
16419 case "$gl_cv_func_rename_dest_works" in
16424 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
16429 if test $REPLACE_RENAME = 1; then
16438 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
16452 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
16460 $as_echo_n "checking whether rmdir works... " >&6; }
16461 if test "${gl_cv_func_rmdir_works+set}" = set; then :
16462 $as_echo_n "(cached) " >&6
16465 touch conftest.file
16466 if test "$cross_compiling" = yes; then :
16468 # Guess yes on glibc systems.
16469 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
16470 # If we don't know, assume the worst.
16471 *) gl_cv_func_rmdir_works="guessing no" ;;
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16480 # include <unistd.h>
16481 #else /* on Windows with MSVC */
16482 # include <direct.h>
16489 if (!rmdir ("conftest.file/"))
16491 else if (errno != ENOTDIR)
16493 if (!rmdir ("conftest.dir/./"))
16501 if ac_fn_c_try_run "$LINENO"; then :
16502 gl_cv_func_rmdir_works=yes
16504 gl_cv_func_rmdir_works=no
16506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16507 conftest.$ac_objext conftest.beam conftest.$ac_ext
16510 rm -rf conftest.dir conftest.file
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
16513 $as_echo "$gl_cv_func_rmdir_works" >&6; }
16514 case "$gl_cv_func_rmdir_works" in
16521 if test $REPLACE_RMDIR = 1; then
16530 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
16544 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16550 $as_echo_n "checking for ssize_t... " >&6; }
16551 if test "${gt_cv_ssize_t+set}" = set; then :
16552 $as_echo_n "(cached) " >&6
16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 #include <sys/types.h>
16560 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16566 if ac_fn_c_try_compile "$LINENO"; then :
16571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16574 $as_echo "$gt_cv_ssize_t" >&6; }
16575 if test $gt_cv_ssize_t = no; then
16577 $as_echo "#define ssize_t int" >>confdefs.h
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16585 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16586 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16587 $as_echo_n "(cached) " >&6
16589 if test "$cross_compiling" = yes; then :
16591 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16592 *) gl_cv_func_stat_dir_slash="guessing yes";;
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16597 #include <sys/stat.h>
16602 struct stat st; return stat (".", &st) != stat ("./", &st);
16607 if ac_fn_c_try_run "$LINENO"; then :
16608 gl_cv_func_stat_dir_slash=yes
16610 gl_cv_func_stat_dir_slash=no
16612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16613 conftest.$ac_objext conftest.beam conftest.$ac_ext
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16618 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16620 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16621 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16622 $as_echo_n "(cached) " >&6
16625 # Assume that if we have lstat, we can also check symlinks.
16626 if test $ac_cv_func_lstat = yes; then
16627 ln -s conftest.tmp conftest.lnk
16629 if test "$cross_compiling" = yes; then :
16631 # Guess yes on glibc systems.
16632 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
16633 # If we don't know, assume the worst.
16634 *) gl_cv_func_stat_file_slash="guessing no" ;;
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 #include <sys/stat.h>
16647 if (!stat ("conftest.tmp/", &st))
16650 if (!stat ("conftest.lnk/", &st))
16659 if ac_fn_c_try_run "$LINENO"; then :
16660 gl_cv_func_stat_file_slash=yes
16662 gl_cv_func_stat_file_slash=no
16664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16665 conftest.$ac_objext conftest.beam conftest.$ac_ext
16668 rm -f conftest.tmp conftest.lnk
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16671 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16672 case $gl_cv_func_stat_dir_slash in
16673 *no) REPLACE_STAT=1
16675 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16678 case $gl_cv_func_stat_file_slash in
16679 *no) REPLACE_STAT=1
16681 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16685 if test $REPLACE_STAT = 1; then
16694 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16709 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
16716 # Define two additional variables used in the Makefile substitution.
16718 if test "$ac_cv_header_stdbool_h" = yes; then
16721 STDBOOL_H='stdbool.h'
16724 if test -n "$STDBOOL_H"; then
16725 GL_GENERATE_STDBOOL_H_TRUE=
16726 GL_GENERATE_STDBOOL_H_FALSE='#'
16728 GL_GENERATE_STDBOOL_H_TRUE='#'
16729 GL_GENERATE_STDBOOL_H_FALSE=
16733 if test "$ac_cv_type__Bool" = yes; then
16744 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
16747 if test "x$ac_cv_type_max_align_t" = x""yes; then :
16750 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
16753 if test $gt_cv_c_wchar_t = no; then
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16758 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16759 if test "${gl_cv_decl_null_works+set}" = set; then :
16760 $as_echo_n "(cached) " >&6
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764 #include <stddef.h>
16765 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16775 if ac_fn_c_try_compile "$LINENO"; then :
16776 gl_cv_decl_null_works=yes
16778 gl_cv_decl_null_works=no
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16783 $as_echo "$gl_cv_decl_null_works" >&6; }
16784 if test $gl_cv_decl_null_works = no; then
16789 if test -n "$STDDEF_H"; then
16790 GL_GENERATE_STDDEF_H_TRUE=
16791 GL_GENERATE_STDDEF_H_FALSE='#'
16793 GL_GENERATE_STDDEF_H_TRUE='#'
16794 GL_GENERATE_STDDEF_H_FALSE=
16797 if test -n "$STDDEF_H"; then
16806 if test $gl_cv_have_include_next = yes; then
16807 gl_cv_next_stddef_h='<'stddef.h'>'
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16810 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16811 if test "${gl_cv_next_stddef_h+set}" = set; then :
16812 $as_echo_n "(cached) " >&6
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16819 #include <stddef.h>
16822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16823 *) gl_absname_cpp="$ac_cpp" ;;
16828 gl_dirsep_regex='[/\\]'
16831 gl_dirsep_regex='\/'
16834 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16835 gl_header_literal_regex=`echo 'stddef.h' \
16836 |
sed -e "$gl_make_literal_regex_sed"`
16837 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16838 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16844 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16845 sed -n "$gl_absolute_header_sed"`
16847 gl_header=$gl_cv_absolute_stddef_h
16848 gl_cv_next_stddef_h='"'$gl_header'"'
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16853 $as_echo "$gl_cv_next_stddef_h" >&6; }
16855 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16857 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16859 gl_next_as_first_directive='<'stddef.h'>'
16861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16862 gl_next_as_first_directive=$gl_cv_next_stddef_h
16864 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16884 if test $gl_cv_have_include_next = yes; then
16885 gl_cv_next_stdio_h='<'stdio.h'>'
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
16888 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
16889 if test "${gl_cv_next_stdio_h+set}" = set; then :
16890 $as_echo_n "(cached) " >&6
16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896 /* end confdefs.h. */
16900 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16901 *) gl_absname_cpp="$ac_cpp" ;;
16906 gl_dirsep_regex='[/\\]'
16909 gl_dirsep_regex='\/'
16912 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16913 gl_header_literal_regex=`echo 'stdio.h' \
16914 |
sed -e "$gl_make_literal_regex_sed"`
16915 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16916 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16922 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16923 sed -n "$gl_absolute_header_sed"`
16925 gl_header=$gl_cv_absolute_stdio_h
16926 gl_cv_next_stdio_h='"'$gl_header'"'
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
16931 $as_echo "$gl_cv_next_stdio_h" >&6; }
16933 NEXT_STDIO_H=$gl_cv_next_stdio_h
16935 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16937 gl_next_as_first_directive='<'stdio.h'>'
16939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16940 gl_next_as_first_directive=$gl_cv_next_stdio_h
16942 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
16949 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
16950 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
16951 $as_echo_n "(cached) " >&6
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16956 #define __STDC_FORMAT_MACROS 1
16958 #include <inttypes.h>
16959 /* For non-mingw systems, compilation will trivially succeed.
16960 For mingw, compilation will succeed for older mingw (system
16961 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
16962 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
16963 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
16964 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
16975 if ac_fn_c_try_compile "$LINENO"; then :
16976 gl_cv_func_printf_attribute_flavor=system
16978 gl_cv_func_printf_attribute_flavor=gnu
16980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
16983 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
16984 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
16986 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
16993 cat >>confdefs.h <<_ACEOF
16994 #define GNULIB_FSCANF 1
17001 cat >>confdefs.h <<_ACEOF
17002 #define GNULIB_SCANF 1
17027 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17028 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17030 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17031 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17032 $as_echo_n "(cached) " >&6
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17047 if ac_fn_c_try_compile "$LINENO"; then :
17048 eval "$as_gl_Symbol=yes"
17050 eval "$as_gl_Symbol=no"
17052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17054 eval ac_res=\$$as_gl_Symbol
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17056 $as_echo "$ac_res" >&6; }
17057 eval as_val=\$$as_gl_Symbol
17058 if test "x$as_val" = x""yes; then :
17059 cat >>confdefs.h <<_ACEOF
17060 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17063 eval ac_cv_have_decl_$gl_func=yes
17078 if test $gl_cv_have_include_next = yes; then
17079 gl_cv_next_stdlib_h='<'stdlib.h'>'
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17082 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17083 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17084 $as_echo_n "(cached) " >&6
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h. */
17091 #include <stdlib.h>
17094 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17095 *) gl_absname_cpp="$ac_cpp" ;;
17100 gl_dirsep_regex='[/\\]'
17103 gl_dirsep_regex='\/'
17106 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17107 gl_header_literal_regex=`echo 'stdlib.h' \
17108 |
sed -e "$gl_make_literal_regex_sed"`
17109 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17110 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17116 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17117 sed -n "$gl_absolute_header_sed"`
17119 gl_header=$gl_cv_absolute_stdlib_h
17120 gl_cv_next_stdlib_h='"'$gl_header'"'
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17125 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17127 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17129 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17131 gl_next_as_first_directive='<'stdlib.h'>'
17133 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17134 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17136 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17143 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
17144 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17146 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17147 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17148 $as_echo_n "(cached) " >&6
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h. */
17152 #include <stdlib.h>
17153 #if HAVE_SYS_LOADAVG_H
17154 # include <sys/loadavg.h>
17157 # include <random.h>
17169 if ac_fn_c_try_compile "$LINENO"; then :
17170 eval "$as_gl_Symbol=yes"
17172 eval "$as_gl_Symbol=no"
17174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17176 eval ac_res=\$$as_gl_Symbol
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17178 $as_echo "$ac_res" >&6; }
17179 eval as_val=\$$as_gl_Symbol
17180 if test "x$as_val" = x""yes; then :
17181 cat >>confdefs.h <<_ACEOF
17182 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17185 eval ac_cv_have_decl_$gl_func=yes
17195 if test $REPLACE_STRSTR = 0; then
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
17197 $as_echo_n "checking whether strstr works in linear time... " >&6; }
17198 if test "${gl_cv_func_strstr_linear+set}" = set; then :
17199 $as_echo_n "(cached) " >&6
17201 if test "$cross_compiling" = yes; then :
17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203 /* end confdefs.h. */
17205 #include <features.h>
17206 #ifdef __GNU_LIBRARY__
17207 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17208 && !(defined __i386__ || defined __x86_64__) \
17209 && !defined __UCLIBC__
17214 #include <cygwin/version.h>
17215 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17222 $EGREP "Lucky user" >/dev/null 2>&1; then :
17223 gl_cv_func_strstr_linear="guessing yes"
17225 gl_cv_func_strstr_linear="guessing no"
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17234 #include <signal.h> /* for signal */
17235 #include <string.h> /* for strstr */
17236 #include <stdlib.h> /* for malloc */
17237 #include <unistd.h> /* for alarm */
17238 static void quit (int sig) { exit (sig + 128); }
17245 size_t m = 1000000;
17246 char *haystack = (char *) malloc (2 * m + 2);
17247 char *needle = (char *) malloc (m + 2);
17248 /* Failure to compile this test due to missing alarm is okay,
17249 since all such platforms (mingw) also have quadratic strstr. */
17250 signal (SIGALRM, quit);
17252 /* Check for quadratic performance. */
17253 if (haystack && needle)
17255 memset (haystack, 'A', 2 * m);
17256 haystack[2 * m] = 'B';
17257 haystack[2 * m + 1] = 0;
17258 memset (needle, 'A', m);
17261 if (!strstr (haystack, needle))
17270 if ac_fn_c_try_run "$LINENO"; then :
17271 gl_cv_func_strstr_linear=yes
17273 gl_cv_func_strstr_linear=no
17275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17276 conftest.$ac_objext conftest.beam conftest.$ac_ext
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
17282 $as_echo "$gl_cv_func_strstr_linear" >&6; }
17283 case "$gl_cv_func_strstr_linear" in
17291 if test $REPLACE_STRSTR = 1; then
17300 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
17306 if test "$gl_cv_func_memchr_works" != yes; then
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
17310 $as_echo_n "checking whether strstr works... " >&6; }
17311 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
17312 $as_echo_n "(cached) " >&6
17314 if test "$cross_compiling" = yes; then :
17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h. */
17318 #ifdef __GNU_LIBRARY__
17319 #include <features.h>
17320 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17321 || defined __UCLIBC__
17324 #elif defined __CYGWIN__
17325 #include <cygwin/version.h>
17326 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17335 $EGREP "Lucky user" >/dev/null 2>&1; then :
17336 gl_cv_func_strstr_works_always="guessing yes"
17338 gl_cv_func_strstr_works_always="guessing no"
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17347 #include <string.h> /* for strstr */
17348 #define P "_EF_BF_BD"
17349 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
17350 #define NEEDLE P P P P P
17355 return !!strstr (HAYSTACK, NEEDLE);
17361 if ac_fn_c_try_run "$LINENO"; then :
17362 gl_cv_func_strstr_works_always=yes
17364 gl_cv_func_strstr_works_always=no
17366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17367 conftest.$ac_objext conftest.beam conftest.$ac_ext
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
17373 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
17374 case "$gl_cv_func_strstr_works_always" in
17382 if test $REPLACE_STRSTR = 1; then
17391 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
17405 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
17413 for ac_func in strtok_r
17415 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
17416 if test "x$ac_cv_func_strtok_r" = x""yes; then :
17417 cat >>confdefs.h <<_ACEOF
17418 #define HAVE_STRTOK_R 1
17424 if test $ac_cv_func_strtok_r = yes; then
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
17427 $as_echo_n "checking whether strtok_r works... " >&6; }
17428 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
17429 $as_echo_n "(cached) " >&6
17431 if test "$cross_compiling" = yes; then :
17434 # Guess no on glibc systems.
17435 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
17436 *) gl_cv_func_strtok_r_works="guessing yes";;
17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441 /* end confdefs.h. */
17443 #ifndef __OPTIMIZE__
17444 # define __OPTIMIZE__ 1
17446 #undef __OPTIMIZE_SIZE__
17447 #undef __NO_INLINE__
17448 #include <stdlib.h>
17449 #include <string.h>
17454 static const char dummy[] = "\177\01a";
17455 char delimiters[] = "xxxxxxxx";
17456 char *save_ptr = (char *) dummy;
17457 strtok_r (delimiters, "x", &save_ptr);
17458 strtok_r (NULL, "x", &save_ptr);
17466 if ac_fn_c_try_run "$LINENO"; then :
17467 gl_cv_func_strtok_r_works=yes
17469 gl_cv_func_strtok_r_works=no
17471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17472 conftest.$ac_objext conftest.beam conftest.$ac_ext
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
17478 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
17479 case "$gl_cv_func_strtok_r_works" in
17481 UNDEFINE_STRTOK_R=1
17488 if test $ac_cv_have_decl_strtok_r = no; then
17489 HAVE_DECL_STRTOK_R=0
17492 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
17501 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
17518 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
17536 if test $gl_cv_have_include_next = yes; then
17537 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17540 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17541 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17542 $as_echo_n "(cached) " >&6
17545 if test $ac_cv_header_sys_stat_h = yes; then
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17552 #include <sys/stat.h>
17555 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17556 *) gl_absname_cpp="$ac_cpp" ;;
17561 gl_dirsep_regex='[/\\]'
17564 gl_dirsep_regex='\/'
17567 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17568 gl_header_literal_regex=`echo 'sys/stat.h' \
17569 |
sed -e "$gl_make_literal_regex_sed"`
17570 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17571 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17577 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17578 sed -n "$gl_absolute_header_sed"`
17580 gl_header=$gl_cv_absolute_sys_stat_h
17581 gl_cv_next_sys_stat_h='"'$gl_header'"'
17583 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17589 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17591 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17593 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17595 gl_next_as_first_directive='<'sys/stat.h'>'
17597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17598 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17600 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17612 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
17614 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
17618 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17619 #include <sys/stat.h>
17621 if test "x$ac_cv_type_nlink_t" = x""yes; then :
17625 $as_echo "#define nlink_t int" >>confdefs.h
17631 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
17632 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17634 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17635 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17636 $as_echo_n "(cached) " >&6
17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639 /* end confdefs.h. */
17640 #include <sys/stat.h>
17651 if ac_fn_c_try_compile "$LINENO"; then :
17652 eval "$as_gl_Symbol=yes"
17654 eval "$as_gl_Symbol=no"
17656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658 eval ac_res=\$$as_gl_Symbol
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17660 $as_echo "$ac_res" >&6; }
17661 eval as_val=\$$as_gl_Symbol
17662 if test "x$as_val" = x""yes; then :
17663 cat >>confdefs.h <<_ACEOF
17664 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17667 eval ac_cv_have_decl_$gl_func=yes
17694 if test $gl_cv_have_include_next = yes; then
17695 gl_cv_next_unistd_h='<'unistd.h'>'
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17698 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17699 if test "${gl_cv_next_unistd_h+set}" = set; then :
17700 $as_echo_n "(cached) " >&6
17703 if test $ac_cv_header_unistd_h = yes; then
17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17709 /* end confdefs.h. */
17710 #include <unistd.h>
17713 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17714 *) gl_absname_cpp="$ac_cpp" ;;
17719 gl_dirsep_regex='[/\\]'
17722 gl_dirsep_regex='\/'
17725 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17726 gl_header_literal_regex=`echo 'unistd.h' \
17727 |
sed -e "$gl_make_literal_regex_sed"`
17728 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17729 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17735 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17736 sed -n "$gl_absolute_header_sed"`
17738 gl_header=$gl_cv_absolute_unistd_h
17739 gl_cv_next_unistd_h='"'$gl_header'"'
17741 gl_cv_next_unistd_h='<'unistd.h'>'
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17747 $as_echo "$gl_cv_next_unistd_h" >&6; }
17749 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17751 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17752 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17753 gl_next_as_first_directive='<'unistd.h'>'
17755 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17756 gl_next_as_first_directive=$gl_cv_next_unistd_h
17758 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17763 if test $ac_cv_header_unistd_h = yes; then
17775 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
17776 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17778 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17779 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17780 $as_echo_n "(cached) " >&6
17782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783 /* end confdefs.h. */
17786 # include <unistd.h>
17788 /* Some systems declare various items in the wrong headers. */
17789 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17790 # include <fcntl.h>
17791 # include <stdio.h>
17792 # include <stdlib.h>
17793 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17807 if ac_fn_c_try_compile "$LINENO"; then :
17808 eval "$as_gl_Symbol=yes"
17810 eval "$as_gl_Symbol=no"
17812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17814 eval ac_res=\$$as_gl_Symbol
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17816 $as_echo "$ac_res" >&6; }
17817 eval as_val=\$$as_gl_Symbol
17818 if test "x$as_val" = x""yes; then :
17819 cat >>confdefs.h <<_ACEOF
17820 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17823 eval ac_cv_have_decl_$gl_func=yes
17840 if test $gl_cv_have_include_next = yes; then
17841 gl_cv_next_wchar_h='<'wchar.h'>'
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
17844 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17845 if test "${gl_cv_next_wchar_h+set}" = set; then :
17846 $as_echo_n "(cached) " >&6
17849 if test $ac_cv_header_wchar_h = yes; then
17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17859 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17860 *) gl_absname_cpp="$ac_cpp" ;;
17865 gl_dirsep_regex='[/\\]'
17868 gl_dirsep_regex='\/'
17871 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17872 gl_header_literal_regex=`echo 'wchar.h' \
17873 |
sed -e "$gl_make_literal_regex_sed"`
17874 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17875 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17881 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17882 sed -n "$gl_absolute_header_sed"`
17884 gl_header=$gl_cv_absolute_wchar_h
17885 gl_cv_next_wchar_h='"'$gl_header'"'
17887 gl_cv_next_wchar_h='<'wchar.h'>'
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
17893 $as_echo "$gl_cv_next_wchar_h" >&6; }
17895 NEXT_WCHAR_H=$gl_cv_next_wchar_h
17897 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17899 gl_next_as_first_directive='<'wchar.h'>'
17901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17902 gl_next_as_first_directive=$gl_cv_next_wchar_h
17904 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
17909 if test $ac_cv_header_wchar_h = yes; then
17919 if test $gt_cv_c_wint_t = yes; then
17927 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
17928 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17930 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17931 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17932 $as_echo_n "(cached) " >&6
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h. */
17937 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17939 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17940 included before <wchar.h>. */
17941 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17942 # include <stddef.h>
17943 # include <stdio.h>
17957 if ac_fn_c_try_compile "$LINENO"; then :
17958 eval "$as_gl_Symbol=yes"
17960 eval "$as_gl_Symbol=no"
17962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17964 eval ac_res=\$$as_gl_Symbol
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17966 $as_echo "$ac_res" >&6; }
17967 eval as_val=\$$as_gl_Symbol
17968 if test "x$as_val" = x""yes; then :
17969 cat >>confdefs.h <<_ACEOF
17970 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17973 eval ac_cv_have_decl_$gl_func=yes
17983 if test $ac_cv_func_iswcntrl = yes; then
17991 if test $gt_cv_c_wint_t = yes; then
18007 if test $gl_cv_have_include_next = yes; then
18008 gl_cv_next_wctype_h='<'wctype.h'>'
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
18011 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
18012 if test "${gl_cv_next_wctype_h+set}" = set; then :
18013 $as_echo_n "(cached) " >&6
18016 if test $ac_cv_header_wctype_h = yes; then
18021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022 /* end confdefs.h. */
18023 #include <wctype.h>
18026 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18027 *) gl_absname_cpp="$ac_cpp" ;;
18032 gl_dirsep_regex='[/\\]'
18035 gl_dirsep_regex='\/'
18038 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18039 gl_header_literal_regex=`echo 'wctype.h' \
18040 |
sed -e "$gl_make_literal_regex_sed"`
18041 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18042 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18048 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18049 sed -n "$gl_absolute_header_sed"`
18051 gl_header=$gl_cv_absolute_wctype_h
18052 gl_cv_next_wctype_h='"'$gl_header'"'
18054 gl_cv_next_wctype_h='<'wctype.h'>'
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
18060 $as_echo "$gl_cv_next_wctype_h" >&6; }
18062 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
18064 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18065 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18066 gl_next_as_first_directive='<'wctype.h'>'
18068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18069 gl_next_as_first_directive=$gl_cv_next_wctype_h
18071 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
18076 if test $ac_cv_header_wctype_h = yes; then
18077 if test $ac_cv_func_iswcntrl = yes; then
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
18079 $as_echo_n "checking whether iswcntrl works... " >&6; }
18080 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
18081 $as_echo_n "(cached) " >&6
18084 if test "$cross_compiling" = yes; then :
18085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086 /* end confdefs.h. */
18087 #include <stdlib.h>
18088 #if __GNU_LIBRARY__ == 1
18089 Linux libc5 i18n is broken.
18099 if ac_fn_c_try_compile "$LINENO"; then :
18100 gl_cv_func_iswcntrl_works="guessing yes"
18102 gl_cv_func_iswcntrl_works="guessing no"
18104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18110 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18111 included before <wchar.h>.
18112 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18113 must be included before <wchar.h>. */
18114 #include <stddef.h>
18118 #include <wctype.h>
18119 int main () { return iswprint ('x') == 0; }
18122 if ac_fn_c_try_run "$LINENO"; then :
18123 gl_cv_func_iswcntrl_works=yes
18125 gl_cv_func_iswcntrl_works=no
18127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18128 conftest.$ac_objext conftest.beam conftest.$ac_ext
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
18134 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
18142 case "$gl_cv_func_iswcntrl_works" in
18143 *yes) REPLACE_ISWCNTRL=0 ;;
18144 *) REPLACE_ISWCNTRL=1 ;;
18148 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
18152 if test $REPLACE_ISWCNTRL = 1; then
18155 for ac_func in towlower
18157 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
18158 if test "x$ac_cv_func_towlower" = x""yes; then :
18159 cat >>confdefs.h <<_ACEOF
18160 #define HAVE_TOWLOWER 1
18166 if test $ac_cv_func_towlower = yes; then
18169 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18170 included before <wchar.h>.
18171 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18172 must be included before <wchar.h>. */
18173 #include <stddef.h>
18178 # include <wctype.h>
18182 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
18188 cat >>confdefs.h <<_ACEOF
18189 #define HAVE_DECL_TOWLOWER $ac_have_decl
18192 if test $ac_cv_have_decl_towlower = yes; then
18201 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
18206 $as_echo_n "checking for wctype_t... " >&6; }
18207 if test "${gl_cv_type_wctype_t+set}" = set; then :
18208 $as_echo_n "(cached) " >&6
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18212 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18213 included before <wchar.h>.
18214 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18215 must be included before <wchar.h>. */
18216 #include <stddef.h>
18221 # include <wctype.h>
18233 if ac_fn_c_try_compile "$LINENO"; then :
18234 gl_cv_type_wctype_t=yes
18236 gl_cv_type_wctype_t=no
18238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
18242 $as_echo "$gl_cv_type_wctype_t" >&6; }
18243 if test $gl_cv_type_wctype_t = no; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
18248 $as_echo_n "checking for wctrans_t... " >&6; }
18249 if test "${gl_cv_type_wctrans_t+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18255 included before <wchar.h>.
18256 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18257 must be included before <wchar.h>. */
18258 #include <stddef.h>
18262 #include <wctype.h>
18273 if ac_fn_c_try_compile "$LINENO"; then :
18274 gl_cv_type_wctrans_t=yes
18276 gl_cv_type_wctrans_t=no
18278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
18282 $as_echo "$gl_cv_type_wctrans_t" >&6; }
18283 if test $gl_cv_type_wctrans_t = no; then
18288 for gl_func in wctype iswctype wctrans towctrans ; do
18289 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18291 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18292 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18293 $as_echo_n "(cached) " >&6
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18298 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18300 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18301 included before <wchar.h>. */
18302 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18303 # include <stddef.h>
18304 # include <stdio.h>
18306 # include <wchar.h>
18308 #include <wctype.h>
18319 if ac_fn_c_try_compile "$LINENO"; then :
18320 eval "$as_gl_Symbol=yes"
18322 eval "$as_gl_Symbol=no"
18324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18326 eval ac_res=\$$as_gl_Symbol
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18328 $as_echo "$ac_res" >&6; }
18329 eval as_val=\$$as_gl_Symbol
18330 if test "x$as_val" = x""yes; then :
18331 cat >>confdefs.h <<_ACEOF
18332 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
18335 eval ac_cv_have_decl_$gl_func=yes
18340 # End of code from modules
18361 gl_source_base='tests'
18362 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
18364 gl_module_indicator_condition=$gltests_WITNESS
18374 LIBGNU_LIBDEPS="$gl_libdeps"
18376 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18380 # We don't use automake, but gnulib does. This line lets us generate
18382 am__api_version='1.11'
18384 # Find a good install program. We prefer a C program (faster),
18385 # so one script is as good as another. But avoid the broken or
18386 # incompatible versions:
18387 # SysV /etc/install, /usr/sbin/install
18388 # SunOS /usr/etc/install
18389 # IRIX /sbin/install
18391 # AmigaOS /C/install, which installs bootblocks on floppy discs
18392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18395 # OS/2's system install, which has a completely different semantic
18396 # ./install, which can be erroneously created by make from ./install.sh.
18397 # Reject install programs that cannot install multiple files.
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18400 if test -z "$INSTALL"; then
18401 if test "${ac_cv_path_install+set}" = set; then :
18402 $as_echo_n "(cached) " >&6
18404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18405 for as_dir in $PATH
18408 test -z "$as_dir" && as_dir=.
18409 # Account for people who put trailing slashes in PATH elements.
18410 case $as_dir/ in #((
18411 ./ | .// | /[cC]/* | \
18412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18416 # OSF1 and SCO ODT 3.0 have their own names for install.
18417 # Don't use installbsd from OSF since it installs stuff as root
18419 for ac_prog in ginstall scoinst install; do
18420 for ac_exec_ext in '' $ac_executable_extensions; do
18421 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18422 if test $ac_prog = install &&
18423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18424 # AIX install. It has an incompatible calling convention.
18426 elif test $ac_prog = install &&
18427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18428 # program-specific install script used by HP pwplus--don't use.
18431 rm -rf conftest.one conftest.two conftest.dir
18432 echo one > conftest.one
18433 echo two > conftest.two
18435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18436 test -s conftest.one && test -s conftest.two &&
18437 test -s conftest.dir/conftest.one &&
18438 test -s conftest.dir/conftest.two
18440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18453 rm -rf conftest.one conftest.two conftest.dir
18456 if test "${ac_cv_path_install+set}" = set; then
18457 INSTALL=$ac_cv_path_install
18459 # As a last resort, use the slow shell script. Don't cache a
18460 # value for INSTALL within a source directory, because that will
18461 # break other packages using the cache if that directory is
18462 # removed, or if the value is a relative name.
18463 INSTALL=$ac_install_sh
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18467 $as_echo "$INSTALL" >&6; }
18469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18470 # It thinks the first close brace ends the variable substitution.
18471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
18478 $as_echo_n "checking whether build environment is sane... " >&6; }
18481 echo timestamp > conftest.file
18482 # Reject unsafe characters in $srcdir or the absolute working directory
18483 # name. Accept space and tab only in the latter.
18487 *[\\\"\#\$\&\'\`$am_lf]*)
18488 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
18491 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
18492 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
18495 # Do `set' in a subshell so we don't clobber the current shell's
18496 # arguments. Must try -L first in case configure is actually a
18497 # symlink; some systems play weird games with the mod time of symlinks
18498 # (eg FreeBSD returns the mod time of the symlink's containing
18501 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
18502 if test "$*" = "X"; then
18504 set X
`ls -t "$srcdir/configure" conftest.file`
18506 rm -f conftest.
file
18507 if test "$*" != "X $srcdir/configure conftest.file" \
18508 && test "$*" != "X conftest.file $srcdir/configure"; then
18510 # If neither matched, then we have a broken ls. This can happen
18511 # if, for instance, CONFIG_SHELL is bash and it inherits a
18512 # broken ls alias from the environment. This has actually
18513 # happened. Such a system could not be considered "sane".
18514 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
18515 alias in your environment" "$LINENO" 5
18518 test "$2" = conftest.
file
18524 as_fn_error
"newly created file is older than distributed files!
18525 Check your system clock" "$LINENO" 5
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18528 $as_echo "yes" >&6; }
18529 test "$program_prefix" != NONE
&&
18530 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
18531 # Use a double $ so make ignores it.
18532 test "$program_suffix" != NONE
&&
18533 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
18534 # Double any \ or $.
18535 # By default was `s,x,x', remove it if useless.
18536 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
18537 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
18539 # expand $ac_aux_dir to an absolute path
18540 am_aux_dir
=`cd $ac_aux_dir && pwd`
18542 if test x
"${MISSING+set}" != xset
; then
18543 case $am_aux_dir in
18545 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
18547 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
18550 # Use eval to expand $SHELL
18551 if eval "$MISSING --run true"; then
18552 am_missing_run
="$MISSING --run "
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
18556 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18559 if test x
"${install_sh}" != xset
; then
18560 case $am_aux_dir in
18562 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
18564 install_sh
="\${SHELL} $am_aux_dir/install-sh"
18568 # Installed binaries are usually stripped using `strip' when the user
18569 # run `make install-strip'. However `strip' might not be the right
18570 # tool to use in cross-compilation environments, therefore Automake
18571 # will honor the `STRIP' environment variable to overrule this program.
18572 if test "$cross_compiling" != no
; then
18573 if test -n "$ac_tool_prefix"; then
18574 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18575 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18577 $as_echo_n "checking for $ac_word... " >&6; }
18578 if test "${ac_cv_prog_STRIP+set}" = set; then :
18579 $as_echo_n "(cached) " >&6
18581 if test -n "$STRIP"; then
18582 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
18584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18585 for as_dir
in $PATH
18588 test -z "$as_dir" && as_dir
=.
18589 for ac_exec_ext
in '' $ac_executable_extensions; do
18590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18591 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
18592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18601 STRIP
=$ac_cv_prog_STRIP
18602 if test -n "$STRIP"; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
18604 $as_echo "$STRIP" >&6; }
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18607 $as_echo "no" >&6; }
18612 if test -z "$ac_cv_prog_STRIP"; then
18614 # Extract the first word of "strip", so it can be a program name with args.
18615 set dummy strip
; ac_word
=$2
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18617 $as_echo_n "checking for $ac_word... " >&6; }
18618 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
18619 $as_echo_n "(cached) " >&6
18621 if test -n "$ac_ct_STRIP"; then
18622 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
18624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18625 for as_dir
in $PATH
18628 test -z "$as_dir" && as_dir
=.
18629 for ac_exec_ext
in '' $ac_executable_extensions; do
18630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18631 ac_cv_prog_ac_ct_STRIP
="strip"
18632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18641 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
18642 if test -n "$ac_ct_STRIP"; then
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
18644 $as_echo "$ac_ct_STRIP" >&6; }
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18647 $as_echo "no" >&6; }
18650 if test "x$ac_ct_STRIP" = x
; then
18653 case $cross_compiling:$ac_tool_warned in
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18657 ac_tool_warned
=yes ;;
18662 STRIP
="$ac_cv_prog_STRIP"
18666 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
18670 [\\/$
]* | ?
:[\\/]*) ;;
18671 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
18674 for ac_prog
in gawk mawk nawk
awk
18676 # Extract the first word of "$ac_prog", so it can be a program name with args.
18677 set dummy
$ac_prog; ac_word
=$2
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18679 $as_echo_n "checking for $ac_word... " >&6; }
18680 if test "${ac_cv_prog_AWK+set}" = set; then :
18681 $as_echo_n "(cached) " >&6
18683 if test -n "$AWK"; then
18684 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
18686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18687 for as_dir
in $PATH
18690 test -z "$as_dir" && as_dir
=.
18691 for ac_exec_ext
in '' $ac_executable_extensions; do
18692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18693 ac_cv_prog_AWK
="$ac_prog"
18694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18703 AWK
=$ac_cv_prog_AWK
18704 if test -n "$AWK"; then
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18706 $as_echo "$AWK" >&6; }
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18709 $as_echo "no" >&6; }
18713 test -n "$AWK" && break
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18717 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18719 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18720 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
18721 $as_echo_n "(cached) " >&6
18723 cat >conftest.
make <<\_ACEOF
18726 @
echo '@@@%%%=$(MAKE)=@@@%%%'
18728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18729 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18730 *@@@
%%%=?
*=@@@
%%%*)
18731 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
18733 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
18735 rm -f conftest.
make
18737 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18739 $as_echo "yes" >&6; }
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18743 $as_echo "no" >&6; }
18744 SET_MAKE
="MAKE=${MAKE-make}"
18747 rm -rf .tst
2>/dev
/null
18748 mkdir .tst
2>/dev
/null
18749 if test -d .tst
; then
18754 rmdir .tst
2>/dev
/null
18756 DEPDIR
="${am__leading_dot}deps"
18758 ac_config_commands
="$ac_config_commands depfiles"
18761 am_make
=${MAKE-make}
18762 cat > confinc
<< 'END'
18764 @
echo this is the am__doit target
18767 # If we don't find an include directive, just comment out the code.
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
18769 $as_echo_n "checking for style of include used by $am_make... " >&6; }
18773 # First try GNU make style include.
18774 echo "include confinc" > confmf
18775 # Ignore all kinds of additional output from `make'.
18776 case `$am_make -s -f confmf 2> /dev/null` in #(
18777 *the\ am__doit\ target
*)
18778 am__include
=include
18783 # Now try BSD make style include.
18784 if test "$am__include" = "#"; then
18785 echo '.include "confinc"' > confmf
18786 case `$am_make -s -f confmf 2> /dev/null` in #(
18787 *the\ am__doit\ target
*)
18788 am__include
=.include
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
18797 $as_echo "$_am_result" >&6; }
18798 rm -f confinc confmf
18800 # Check whether --enable-dependency-tracking was given.
18801 if test "${enable_dependency_tracking+set}" = set; then :
18802 enableval
=$enable_dependency_tracking;
18805 if test "x$enable_dependency_tracking" != xno
; then
18806 am_depcomp
="$ac_aux_dir/depcomp"
18809 if test "x$enable_dependency_tracking" != xno; then
18818 if test "`cd $srcdir && pwd`" != "`pwd`"; then
18819 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
18820 # is not polluted with repeated "-I."
18821 am__isrc
=' -I$(srcdir)'
18822 # test to see if srcdir already configured
18823 if test -f $srcdir/config.status
; then
18824 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
18828 # test whether we have cygpath
18829 if test -z "$CYGPATH_W"; then
18830 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
18831 CYGPATH_W
='cygpath -w'
18838 # Define the identity of the package.
18840 VERSION
=UNUSED-VERSION
18843 # Some tools Automake needs.
18845 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
18848 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
18851 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
18854 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
18857 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
18859 # We need awk for the "check" target. The system "awk" is bad on
18861 # Always define AMTAR for backward compatibility.
18863 AMTAR
=${AMTAR-"${am_missing_run}tar"}
18865 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
18870 depcc
="$CC" am_compiler_list
=
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18873 $as_echo_n "checking dependency style of $depcc... " >&6; }
18874 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
18875 $as_echo_n "(cached) " >&6
18877 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18878 # We make a subdir and do the tests there. Otherwise we can end up
18879 # making bogus files that we don't know about and never remove. For
18880 # instance it was reported that on HP-UX the gcc test will end up
18881 # making a dummy file named `D' -- because `-MD' means `put the output
18884 # Copy depcomp to subdir because otherwise we won't find it if we're
18885 # using a relative directory.
18886 cp "$am_depcomp" conftest.dir
18888 # We will build objects and dependencies in a subdirectory because
18889 # it helps to detect inapplicable dependency modes. For instance
18890 # both Tru64's cc and ICC support -MD to output dependencies as a
18891 # side effect of compilation, but ICC will put the dependencies in
18892 # the current directory while Tru64 will put them in the object
18896 am_cv_CC_dependencies_compiler_type
=none
18897 if test "$am_compiler_list" = ""; then
18898 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18900 am__universal
=false
18901 case " $depcc " in #(
18902 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
18905 for depmode
in $am_compiler_list; do
18906 # Setup a source with many dependencies, because some compilers
18907 # like to wrap large dependency lists on column 80 (with \), and
18908 # we should not choose a depcomp mode which is confused by this.
18910 # We need to recreate these files for each test, as the compiler may
18911 # overwrite some of them when testing with obscure command lines.
18912 # This happens at least with the AIX C compiler.
18914 for i
in 1 2 3 4 5 6; do
18915 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
18916 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18917 # Solaris 8's {/usr,}/bin/sh.
18918 touch sub
/conftst
$i.h
18920 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18922 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18923 # mode. It turns out that the SunPro C++ compiler does not properly
18924 # handle `-M -o', and we need to detect this. Also, some Intel
18925 # versions had trouble with output in subdirs
18926 am__obj
=sub
/conftest.
${OBJEXT-o}
18927 am__minus_obj
="-o $am__obj"
18930 # This depmode causes a compiler race in universal mode.
18931 test "$am__universal" = false ||
continue
18934 # after this tag, mechanisms are not by side-effect, so they'll
18935 # only be used when explicitly requested
18936 if test "x$enable_dependency_tracking" = xyes
; then
18942 msvisualcpp | msvcmsys
)
18943 # This compiler won't grok `-c -o', but also, the minuso test has
18944 # not run yet. These depmodes are late enough in the game, and
18945 # so weak that their functioning should not be impacted.
18946 am__obj
=conftest.
${OBJEXT-o}
18951 if depmode
=$depmode \
18952 source=sub
/conftest.c object
=$am__obj \
18953 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
18954 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
18955 >/dev
/null
2>conftest.err
&&
18956 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
18957 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
18958 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
18959 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
18960 # icc doesn't choke on unknown options, it will just issue warnings
18961 # or remarks (even with -Werror). So we grep stderr for any message
18962 # that says an option was ignored or not supported.
18963 # When given -MP, icc 7.0 and 7.1 complain thusly:
18964 # icc: Command line warning: ignoring option '-M'; no argument required
18965 # The diagnosis changed in icc 8.0:
18966 # icc: Command line remark: option '-MP' not supported
18967 if (grep 'ignoring option' conftest.err ||
18968 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
18969 am_cv_CC_dependencies_compiler_type
=$depmode
18976 rm -rf conftest.dir
18978 am_cv_CC_dependencies_compiler_type
=none
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18983 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18984 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
18987 test "x$enable_dependency_tracking" != xno \
18988 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
18989 am__fastdepCC_TRUE
=
18990 am__fastdepCC_FALSE
='#'
18992 am__fastdepCC_TRUE
='#'
18993 am__fastdepCC_FALSE
=
18999 # --------------------- #
19000 # Checks for programs. #
19001 # --------------------- #
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19005 $as_echo_n "checking whether ln -s works... " >&6; }
19007 if test "$LN_S" = "ln -s"; then
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19009 $as_echo "yes" >&6; }
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19012 $as_echo "no, using $LN_S" >&6; }
19015 if test -n "$ac_tool_prefix"; then
19016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19017 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19019 $as_echo_n "checking for $ac_word... " >&6; }
19020 if test "${ac_cv_prog_RANLIB+set}" = set; then :
19021 $as_echo_n "(cached) " >&6
19023 if test -n "$RANLIB"; then
19024 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
19026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19027 for as_dir
in $PATH
19030 test -z "$as_dir" && as_dir
=.
19031 for ac_exec_ext
in '' $ac_executable_extensions; do
19032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19033 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
19034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19043 RANLIB
=$ac_cv_prog_RANLIB
19044 if test -n "$RANLIB"; then
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19046 $as_echo "$RANLIB" >&6; }
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19049 $as_echo "no" >&6; }
19054 if test -z "$ac_cv_prog_RANLIB"; then
19055 ac_ct_RANLIB
=$RANLIB
19056 # Extract the first word of "ranlib", so it can be a program name with args.
19057 set dummy ranlib
; ac_word
=$2
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19059 $as_echo_n "checking for $ac_word... " >&6; }
19060 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19061 $as_echo_n "(cached) " >&6
19063 if test -n "$ac_ct_RANLIB"; then
19064 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
19066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19067 for as_dir
in $PATH
19070 test -z "$as_dir" && as_dir
=.
19071 for ac_exec_ext
in '' $ac_executable_extensions; do
19072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19073 ac_cv_prog_ac_ct_RANLIB
="ranlib"
19074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19083 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
19084 if test -n "$ac_ct_RANLIB"; then
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19086 $as_echo "$ac_ct_RANLIB" >&6; }
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19089 $as_echo "no" >&6; }
19092 if test "x$ac_ct_RANLIB" = x
; then
19095 case $cross_compiling:$ac_tool_warned in
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19099 ac_tool_warned
=yes ;;
19101 RANLIB
=$ac_ct_RANLIB
19104 RANLIB
="$ac_cv_prog_RANLIB"
19108 if test -n "$ac_tool_prefix"; then
19109 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19110 set dummy
${ac_tool_prefix}ar; ac_word
=$2
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19112 $as_echo_n "checking for $ac_word... " >&6; }
19113 if test "${ac_cv_prog_AR+set}" = set; then :
19114 $as_echo_n "(cached) " >&6
19116 if test -n "$AR"; then
19117 ac_cv_prog_AR
="$AR" # Let the user override the test.
19119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19120 for as_dir
in $PATH
19123 test -z "$as_dir" && as_dir
=.
19124 for ac_exec_ext
in '' $ac_executable_extensions; do
19125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19126 ac_cv_prog_AR
="${ac_tool_prefix}ar"
19127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19137 if test -n "$AR"; then
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19139 $as_echo "$AR" >&6; }
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142 $as_echo "no" >&6; }
19147 if test -z "$ac_cv_prog_AR"; then
19149 # Extract the first word of "ar", so it can be a program name with args.
19150 set dummy
ar; ac_word
=$2
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19152 $as_echo_n "checking for $ac_word... " >&6; }
19153 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
19154 $as_echo_n "(cached) " >&6
19156 if test -n "$ac_ct_AR"; then
19157 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
19159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19160 for as_dir
in $PATH
19163 test -z "$as_dir" && as_dir
=.
19164 for ac_exec_ext
in '' $ac_executable_extensions; do
19165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19166 ac_cv_prog_ac_ct_AR
="ar"
19167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19176 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
19177 if test -n "$ac_ct_AR"; then
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19179 $as_echo "$ac_ct_AR" >&6; }
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19182 $as_echo "no" >&6; }
19185 if test "x$ac_ct_AR" = x
; then
19188 case $cross_compiling:$ac_tool_warned in
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19192 ac_tool_warned
=yes ;;
19197 AR
="$ac_cv_prog_AR"
19201 # ---------------------- #
19202 # Checks for libraries. #
19203 # ---------------------- #
19205 ac_config_files
="$ac_config_files Makefile import/Makefile"
19207 ac_config_commands
="$ac_config_commands default"
19209 cat >confcache
<<\_ACEOF
19210 # This file is a shell script that caches the results of configure
19211 # tests run on this system so they can be shared between configure
19212 # scripts and configure runs, see configure's option --config-cache.
19213 # It is not useful on other systems. If it contains results you don't
19214 # want to keep, you may remove or edit it.
19216 # config.status only pays attention to the cache file if you give it
19217 # the --recheck option to rerun configure.
19219 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19220 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19221 # following values.
19225 # The following way of writing the cache mishandles newlines in values,
19226 # but we know of no workaround that is simple, portable, and efficient.
19227 # So, we kill variables containing newlines.
19228 # Ultrix sh set writes to stderr and can't be redirected directly,
19229 # and sets the high bit in the cache file unless we assign to the vars.
19231 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19232 eval ac_val
=\$
$ac_var
19236 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19237 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19240 _ | IFS | as_nl
) ;; #(
19241 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19242 *) { eval $ac_var=; unset $ac_var;} ;;
19248 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19249 *${as_nl}ac_space
=\
*)
19250 # `set' does not quote correctly, so add quotes: double-quote
19251 # substitution turns \\\\ into \\, and sed turns \\ into \.
19254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19257 # `set' quotes correctly as required by POSIX, so do not add quotes.
19258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19267 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19269 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19271 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19272 if test -w "$cache_file"; then
19273 test "x$cache_file" != "x/dev/null" &&
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19275 $as_echo "$as_me: updating cache $cache_file" >&6;}
19276 cat confcache
>$cache_file
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19279 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19284 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19285 # Let make expand exec_prefix.
19286 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19288 DEFS
=-DHAVE_CONFIG_H
19292 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19293 # 1. Remove the extension, and $U if already installed.
19294 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19295 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19296 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19297 # will be set to the directory where LIBOBJS objects are built.
19298 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19299 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19301 LIBOBJS
=$ac_libobjs
19303 LTLIBOBJS
=$ac_ltlibobjs
19306 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19307 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
19308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19310 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19311 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
19312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19314 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
19315 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
19316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19318 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
19319 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
19320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19322 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
19323 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
19324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19326 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
19327 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
19328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19330 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
19331 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
19332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19336 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
19337 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
19338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19340 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
19341 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
19342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19347 if test -n "$gl_LIBOBJS"; then
19348 # Remove the extension.
19349 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19350 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19351 gl_libobjs
="$gl_libobjs $i.$ac_objext"
19352 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
19355 gl_LIBOBJS
=$gl_libobjs
19357 gl_LTLIBOBJS
=$gl_ltlibobjs
19363 if test -n "$gltests_LIBOBJS"; then
19364 # Remove the extension.
19365 sed_drop_objext
='s/\.o$//;s/\.obj$//'
19366 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19367 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
19368 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
19371 gltests_LIBOBJS
=$gltests_libobjs
19373 gltests_LTLIBOBJS
=$gltests_ltlibobjs
19376 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19377 as_fn_error
"conditional \"AMDEP\" was never defined.
19378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19380 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19381 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
19382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19384 if test -n "$EXEEXT"; then
19386 am__EXEEXT_FALSE
='#'
19388 am__EXEEXT_TRUE
='#'
19393 : ${CONFIG_STATUS=./config.status}
19395 ac_clean_files_save
=$ac_clean_files
19396 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19398 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19400 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19402 # Generated by $as_me.
19403 # Run this file to recreate the current configuration.
19404 # Compiler output produced by configure, useful for debugging
19405 # configure, is in config.log if it exists.
19408 ac_cs_recheck=false
19411 SHELL=\${CONFIG_SHELL-$SHELL}
19414 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19415 ## -------------------- ##
19416 ## M4sh Initialization. ##
19417 ## -------------------- ##
19419 # Be more Bourne compatible
19420 DUALCASE
=1; export DUALCASE
# for MKS sh
19421 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19424 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19425 # is contrary to our usage. Disable this feature.
19426 alias -g '${1+"$@"}'='"$@"'
19427 setopt NO_GLOB_SUBST
19429 case `(set -o) 2>/dev/null` in #(
19441 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19442 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19443 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19444 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19445 # Prefer a ksh shell builtin over an external printf program on Solaris,
19446 # but without wasting forks for bash or zsh.
19447 if test -z "$BASH_VERSION$ZSH_VERSION" \
19448 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19449 as_echo='print
-r --'
19450 as_echo_n='print
-rn --'
19451 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19452 as_echo='printf %s
\n'
19453 as_echo_n='printf %s
'
19455 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19456 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19457 as_echo_n='/usr
/ucb
/echo -n'
19459 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19460 as_echo_n_body='eval
19464 expr "X$arg" : "X\\(.*\\)$as_nl";
19465 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19467 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19469 export as_echo_n_body
19470 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19472 export as_echo_body
19473 as_echo='sh
-c $as_echo_body as_echo
'
19476 # The user is always right.
19477 if test "${PATH_SEPARATOR+set}" != set; then
19479 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19480 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19487 # We need space, tab and new line, in precisely that order. Quoting is
19488 # there to prevent editors from complaining about space-tab.
19489 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19490 # splitting by setting IFS to empty value.)
19493 # Find who we are. Look in the path if we contain no directory separator.
19495 *[\\/]* ) as_myself=$0 ;;
19496 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19497 for as_dir in $PATH
19500 test -z "$as_dir" && as_dir=.
19501 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19507 # We did not find ourselves, most probably we were run as `sh COMMAND'
19508 # in which case we are not to be found in the path.
19509 if test "x$as_myself" = x
; then
19512 if test ! -f "$as_myself"; then
19513 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19517 # Unset variables that we do not need and which cause bugs (e.g. in
19518 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19519 # suppresses any "Segmentation fault" message there. '((' could
19520 # trigger a bug in pdksh 5.2.14.
19521 for as_var
in BASH_ENV ENV MAIL MAILPATH
19522 do eval test x\
${$as_var+set} = xset \
19523 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19536 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19539 # as_fn_error ERROR [LINENO LOG_FD]
19540 # ---------------------------------
19541 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19542 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19543 # script with status $?, using 1 if that was 0.
19546 as_status
=$?
; test $as_status -eq 0 && as_status
=1
19548 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19549 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19551 $as_echo "$as_me: error: $1" >&2
19552 as_fn_exit
$as_status
19556 # as_fn_set_status STATUS
19557 # -----------------------
19558 # Set $? to STATUS, without forking.
19559 as_fn_set_status
()
19562 } # as_fn_set_status
19564 # as_fn_exit STATUS
19565 # -----------------
19566 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19570 as_fn_set_status
$1
19576 # Portably unset VAR.
19579 { eval $1=; unset $1;}
19581 as_unset
=as_fn_unset
19582 # as_fn_append VAR VALUE
19583 # ----------------------
19584 # Append the text in VALUE to the end of the definition contained in VAR. Take
19585 # advantage of any shell optimizations that allow amortized linear growth over
19586 # repeated appends, instead of the typical quadratic growth present in naive
19588 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19589 eval 'as_fn_append ()
19600 # as_fn_arith ARG...
19601 # ------------------
19602 # Perform arithmetic evaluation on the ARGs, and store the result in the
19603 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19604 # must be portable across $(()) and expr.
19605 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19606 eval 'as_fn_arith ()
19613 as_val
=`expr "$@" || test $? -eq 1`
19618 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19619 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19625 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19626 as_basename
=basename
19631 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19637 as_me
=`$as_basename -- "$0" ||
19638 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19639 X"$0" : 'X\(//\)$' \| \
19640 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19642 sed '/^.*\/\([^/][^/]*\)\/*$/{
19656 # Avoid depending upon Character Ranges.
19657 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19658 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19659 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19660 as_cr_digits
='0123456789'
19661 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19663 ECHO_C
= ECHO_N
= ECHO_T
=
19664 case `echo -n x` in #(((((
19666 case `echo 'xy\c'` in
19667 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19669 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19676 rm -f conf$$ conf$$.exe conf$$.
file
19677 if test -d conf$$.dir
; then
19678 rm -f conf$$.dir
/conf$$.
file
19681 mkdir conf$$.dir
2>/dev
/null
19683 if (echo >conf$$.
file) 2>/dev
/null
; then
19684 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19686 # ... but there are two gotchas:
19687 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19688 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19689 # In both cases, we have to default to `cp -p'.
19690 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19692 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19700 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19701 rmdir conf$$.dir
2>/dev
/null
19706 # Create "$as_dir" as a directory, including parents if necessary.
19711 -*) as_dir
=.
/$as_dir;;
19713 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19717 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19718 *) as_qdir
=$as_dir;;
19720 as_dirs
="'$as_qdir' $as_dirs"
19721 as_dir
=`$as_dirname -- "$as_dir" ||
19722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19723 X"$as_dir" : 'X\(//\)[^/]' \| \
19724 X"$as_dir" : 'X\(//\)$' \| \
19725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19726 $as_echo X"$as_dir" |
19727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19731 /^X\(\/\/\)[^/].*/{
19744 test -d "$as_dir" && break
19746 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19747 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
19751 if mkdir
-p .
2>/dev
/null
; then
19752 as_mkdir_p
='mkdir -p "$as_dir"'
19754 test -d .
/-p && rmdir .
/-p
19758 if test -x / >/dev
/null
2>&1; then
19759 as_test_x
='test -x'
19761 if ls -dL / >/dev
/null
2>&1; then
19768 if test -d "$1"; then
19774 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19775 ???[sx]*):;;*)false;;esac;fi
19779 as_executable_p
=$as_test_x
19781 # Sed expression to map a string onto a valid CPP name.
19782 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19784 # Sed expression to map a string onto a valid variable name.
19785 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19789 ## ----------------------------------- ##
19790 ## Main body of $CONFIG_STATUS script. ##
19791 ## ----------------------------------- ##
19793 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19796 # Save the log message, to keep $0 and so on meaningful, and to
19797 # report actual input values of CONFIG_FILES etc. instead of their
19798 # values after options handling.
19800 This file was extended by $as_me, which was
19801 generated by GNU Autoconf 2.64. Invocation command line was
19803 CONFIG_FILES = $CONFIG_FILES
19804 CONFIG_HEADERS = $CONFIG_HEADERS
19805 CONFIG_LINKS = $CONFIG_LINKS
19806 CONFIG_COMMANDS = $CONFIG_COMMANDS
19809 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19814 case $ac_config_files in *"
19815 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19818 case $ac_config_headers in *"
19819 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19824 # Files that config.status was made for.
19825 config_files="$ac_config_files"
19826 config_headers="$ac_config_headers"
19827 config_commands="$ac_config_commands"
19831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19833 \`$as_me' instantiates files and other configuration actions
19834 from templates according to the current configuration. Unless the files
19835 and actions are specified as TAGs, all are instantiated by default.
19837 Usage: $0 [OPTION]... [TAG]...
19839 -h, --help print this help, then exit
19840 -V, --version print version number and configuration settings, then exit
19841 -q, --quiet, --silent
19842 do not print progress messages
19843 -d, --debug don't remove temporary files
19844 --recheck update $as_me by reconfiguring in the same conditions
19845 --file=FILE[:TEMPLATE]
19846 instantiate the configuration file FILE
19847 --header=FILE[:TEMPLATE]
19848 instantiate the configuration header FILE
19850 Configuration files:
19853 Configuration headers:
19856 Configuration commands:
19859 Report bugs to the package provider."
19862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19865 configured by $0, generated by GNU Autoconf 2.64,
19866 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19868 Copyright (C) 2009 Free Software Foundation, Inc.
19869 This config.status script is free software; the Free Software Foundation
19870 gives unlimited permission to copy, distribute and modify it."
19877 test -n "\$AWK" || AWK=awk
19880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19881 # The default lists apply if the user does not specify any file.
19887 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19888 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19899 # Handling of the options.
19900 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19902 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19903 $as_echo "$ac_cs_version"; exit ;;
19904 --debug |
--debu |
--deb |
--de |
--d |
-d )
19906 --file |
--fil |
--fi |
--f )
19909 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19911 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19912 ac_need_defaults
=false
;;
19913 --header |
--heade |
--head |
--hea )
19916 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19918 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19919 ac_need_defaults
=false
;;
19921 # Conflict between --help and --header
19922 as_fn_error
"ambiguous option: \`$1'
19923 Try \`$0 --help' for more information.";;
19924 --help |
--hel |
-h )
19925 $as_echo "$ac_cs_usage"; exit ;;
19926 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19927 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19930 # This is an error.
19931 -*) as_fn_error
"unrecognized option: \`$1'
19932 Try \`$0 --help' for more information." ;;
19934 *) as_fn_append ac_config_targets
" $1"
19935 ac_need_defaults
=false
;;
19941 ac_configure_extra_args
=
19943 if $ac_cs_silent; then
19945 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19950 if \$ac_cs_recheck; then
19951 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19953 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19954 CONFIG_SHELL='$SHELL'
19955 export CONFIG_SHELL
19960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19964 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19965 ## Running $as_me. ##
19971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19975 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19981 # Handling of arguments.
19982 for ac_config_target
in $ac_config_targets
19984 case $ac_config_target in
19985 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
19986 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19987 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19988 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
19989 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19991 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19996 # If the user did not use the arguments to specify the items to instantiate,
19997 # then the envvar interface is used. Set only those that are not.
19998 # We use the long form for the default assignment because of an extremely
19999 # bizarre bug on SunOS 4.1.3.
20000 if $ac_need_defaults; then
20001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20003 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20006 # Have a temporary directory for convenience. Make it in the build tree
20007 # simply because there is no reason against having it here, and in addition,
20008 # creating and moving files from /tmp can sometimes cause problems.
20009 # Hook for its removal unless debugging.
20010 # Note that there is a small window in which the directory will not be cleaned:
20011 # after its creation but before its name has been assigned to `$tmp'.
20015 trap 'exit_status=$?
20016 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20018 trap 'as_fn_exit 1' 1 2 13 15
20020 # Create a (secure) tmp directory for tmp files.
20023 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20024 test -n "$tmp" && test -d "$tmp"
20027 tmp
=.
/conf$$
-$RANDOM
20028 (umask 077 && mkdir
"$tmp")
20029 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
20031 # Set up the scripts for CONFIG_FILES section.
20032 # No need to generate them if there are no CONFIG_FILES.
20033 # This happens for instance with `./config.status config.h'.
20034 if test -n "$CONFIG_FILES"; then
20037 ac_cr
=`echo X | tr X '\015'`
20038 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20039 # But we know of no other shell where ac_cr would be empty at this
20040 # point, so we can use a bashism as a fallback.
20041 if test "x$ac_cr" = x
; then
20042 eval ac_cr
=\$
\'\\r
\'
20044 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20045 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20048 ac_cs_awk_cr
=$ac_cr
20051 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20056 echo "cat >conf$$subs.awk <<_ACEOF" &&
20057 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20059 } >conf$$subs.sh ||
20060 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20061 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20063 for ac_last_try in false false false false false :; do
20064 . ./conf$$subs.sh ||
20065 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20067 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20068 if test $ac_delim_n = $ac_delim_num; then
20070 elif $ac_last_try; then
20071 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
20073 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20076 rm -f conf$$subs.sh
20078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20079 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
20083 s/^/S["/; s
/!.
*/"]=/
20093 s/\(.\{148\}\).*/\1/
20095 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20100 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20107 s/\(.\{148\}\).*/\1/
20109 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20113 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20118 ' <conf$$subs.awk | sed '
20123 ' >>$CONFIG_STATUS || ac_write_fail=1
20124 rm -f conf$$subs.awk
20125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20127 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
20128 for (key in S) S_is_set[key] = 1
20134 nfields = split(line, field, "@
")
20136 len = length(field[1])
20137 for (i = 2; i < nfields; i++) {
20139 keylen = length(key)
20140 if (S_is_set[key]) {
20142 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20143 len += length(value) + length(field[++i])
20154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20155 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20156 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20159 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
20160 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
20163 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20164 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
20165 # trailing colons and then remove the whole line if VPATH becomes empty
20166 # (actually we leave an empty line to preserve line numbers).
20167 if test "x
$srcdir" = x.; then
20168 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20169 s/:*\$(srcdir):*/:/
20170 s/:*\${srcdir}:*/:/
20172 s/^\([^=]*=[ ]*\):*/\1/
20178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20179 fi # test -n "$CONFIG_FILES"
20181 # Set up the scripts for CONFIG_HEADERS section.
20182 # No need to generate them if there are no CONFIG_HEADERS.
20183 # This happens for instance with `./config.status Makefile'.
20184 if test -n "$CONFIG_HEADERS"; then
20185 cat >"$tmp/defines.
awk" <<\_ACAWK ||
20189 # Transform confdefs.h into an awk script `defines.awk', embedded as
20190 # here-document in config.status, that substitutes the proper values into
20191 # config.h.in to produce config.h.
20193 # Create a delimiter string that does not exist in confdefs.h, to ease
20194 # handling of long lines.
20196 for ac_last_try in false false :; do
20197 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
20198 if test -z "$ac_t"; then
20200 elif $ac_last_try; then
20201 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
20203 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20207 # For the awk script, D is an array of macro values keyed by name,
20208 # likewise P contains macro parameters if any. Preserve backslash
20209 # newline sequences.
20211 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20213 s/.\{148\}/&'"$ac_delim"'/g
20216 s/^[ ]*#[ ]*define[ ][ ]*/ /
20223 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20225 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20229 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20230 D["\
1"]=" \
3\\\\\\n
"\\/p
20232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20237 s/.\{148\}/&'"$ac_delim"'/g
20242 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20245 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20247 ' <confdefs.h | sed '
20248 s/'"$ac_delim"'/"\\\
20249 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20252 for (key in D) D_is_set[key] = 1
20255 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20257 split(line, arg, " ")
20258 if (arg[1] == "#") {
20262 defundef
= substr
(arg
[1], 2)
20265 split(mac1
, mac2
, "(") #)
20267 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20268 if (D_is_set
[macro
]) {
20269 # Preserve the white space surrounding the "#".
20270 print prefix
"define", macro P
[macro
] D
[macro
]
20273 # Replace #undef with comments. This is necessary, for example,
20274 # in the case of _POSIX_SOURCE, which is predefined and required
20275 # on some systems where configure will not decide to define it.
20276 if (defundef
== "undef") {
20277 print
"/*", prefix defundef
, macro
, "*/"
20285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20286 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
20287 fi # test -n "$CONFIG_HEADERS"
20290 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20295 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20297 case $ac_mode$ac_tag in
20299 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20300 :[FH
]-) ac_tag
=-:-;;
20301 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20318 -) ac_f
="$tmp/stdin";;
20319 *) # Look for the file first in the build tree, then in the source tree
20320 # (if the path is not absolute). The absolute path cannot be DOS-style,
20321 # because $ac_f cannot contain `:'.
20325 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20327 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
20329 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20330 as_fn_append ac_file_inputs
" '$ac_f'"
20333 # Let's still pretend it is `configure' which instantiates (i.e., don't
20334 # use $as_me), people would be surprised to read:
20335 # /* config.h. Generated by config.status. */
20336 configure_input
='Generated from '`
20337 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20339 if test x
"$ac_file" != x-
; then
20340 configure_input
="$ac_file. $configure_input"
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20342 $as_echo "$as_me: creating $ac_file" >&6;}
20344 # Neutralize special characters interpreted by sed in replacement strings.
20345 case $configure_input in #(
20346 *\
&* |
*\|
* |
*\\* )
20347 ac_sed_conf_input
=`$as_echo "$configure_input" |
20348 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20349 *) ac_sed_conf_input
=$configure_input;;
20353 *:-:* |
*:-) cat >"$tmp/stdin" \
20354 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
20359 ac_dir
=`$as_dirname -- "$ac_file" ||
20360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20361 X"$ac_file" : 'X\(//\)[^/]' \| \
20362 X"$ac_file" : 'X\(//\)$' \| \
20363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20364 $as_echo X"$ac_file" |
20365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20369 /^X\(\/\/\)[^/].*/{
20382 as_dir
="$ac_dir"; as_fn_mkdir_p
20386 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20388 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20389 # A ".." for each directory in $ac_dir_suffix.
20390 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20391 case $ac_top_builddir_sub in
20392 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20393 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20396 ac_abs_top_builddir
=$ac_pwd
20397 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20398 # for backward compatibility:
20399 ac_top_builddir
=$ac_top_build_prefix
20402 .
) # We are building in place.
20404 ac_top_srcdir
=$ac_top_builddir_sub
20405 ac_abs_top_srcdir
=$ac_pwd ;;
20406 [\\/]* | ?
:[\\/]* ) # Absolute name.
20407 ac_srcdir
=$srcdir$ac_dir_suffix;
20408 ac_top_srcdir
=$srcdir
20409 ac_abs_top_srcdir
=$srcdir ;;
20410 *) # Relative name.
20411 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20412 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20413 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20415 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20425 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20426 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20428 ac_MKDIR_P
=$MKDIR_P
20430 [\\/$
]* | ?
:[\\/]* ) ;;
20431 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20436 # If the template does not know about datarootdir, expand it.
20437 # FIXME: This hack should be removed a few years after 2.60.
20438 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20449 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20450 *datarootdir
*) ac_datarootdir_seen
=yes;;
20451 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20453 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20456 ac_datarootdir_hack='
20457 s&@datadir@&$datadir&g
20458 s&@docdir@&$docdir&g
20459 s&@infodir@&$infodir&g
20460 s&@localedir@&$localedir&g
20461 s&@mandir@&$mandir&g
20462 s&\\\${datarootdir}&$datarootdir&g' ;;
20466 # Neutralize VPATH when `$srcdir' = `.'.
20467 # Shell code in configure.ac might set extrasub.
20468 # FIXME: do we really want to maintain this feature?
20469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20470 ac_sed_extra="$ac_vpsub
20473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20475 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20476 s|@configure_input@|
$ac_sed_conf_input|
;t t
20477 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20478 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20479 s
&@srcdir@
&$ac_srcdir&;t t
20480 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20481 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20482 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20483 s
&@builddir@
&$ac_builddir&;t t
20484 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20485 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20486 s
&@INSTALL@
&$ac_INSTALL&;t t
20487 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20488 $ac_datarootdir_hack
20490 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
20491 || as_fn_error "could not create
$ac_file" "$LINENO" 5
20493 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20494 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
20495 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20497 which seems to be undefined. Please make sure it is defined." >&5
20498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20499 which seems to be undefined. Please make sure it is defined." >&2;}
20503 -) cat "$tmp/out" && rm -f "$tmp/out";;
20504 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20506 || as_fn_error "could not create $ac_file" "$LINENO" 5
20512 if test x"$ac_file" != x-; then
20514 $as_echo "/* $configure_input */" \
20515 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20516 } >"$tmp/config.h" \
20517 || as_fn_error "could not create $ac_file" "$LINENO" 5
20518 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20520 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20523 mv "$tmp/config.h" "$ac_file" \
20524 || as_fn_error "could not create $ac_file" "$LINENO" 5
20527 $as_echo "/* $configure_input */" \
20528 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20529 || as_fn_error "could not create -" "$LINENO" 5
20531 # Compute "$ac_file"'s index
in $config_headers.
20534 for _am_header
in $config_headers :; do
20535 case $_am_header in
20536 $_am_arg |
$_am_arg:* )
20539 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
20542 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20543 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20544 X"$_am_arg" : 'X\(//\)[^/]' \| \
20545 X"$_am_arg" : 'X\(//\)$' \| \
20546 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20547 $as_echo X"$_am_arg" |
20548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20552 /^X\(\/\/\)[^/].*/{
20564 s/.*/./; q'`/stamp-h
$_am_stamp_count
20567 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20568 $as_echo "$as_me: executing $ac_file commands" >&6;}
20573 case $ac_file$ac_mode in
20574 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
20575 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20576 # are listed without --file. Let's play safe and only enable the eval
20577 # if we detect the quoting.
20578 case $CONFIG_FILES in
20579 *\'*) eval set x
"$CONFIG_FILES" ;;
20580 *) set x
$CONFIG_FILES ;;
20585 # Strip MF so we end up with the name of the file.
20586 mf
=`echo "$mf" | sed -e 's/:.*$//'`
20587 # Check whether this is an Automake generated Makefile or not.
20588 # We used to match only the files named `Makefile.in', but
20589 # some people rename them; so instead we look at the file content.
20590 # Grep'ing the first line is not enough: some people post-process
20591 # each Makefile.in and add a new line on top of each file to say so.
20592 # Grep'ing the whole file is not good either: AIX grep has a line
20593 # limit of 2048, but all sed's we know have understand at least 4000.
20594 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
20595 dirpart
=`$as_dirname -- "$mf" ||
20596 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20597 X"$mf" : 'X\(//\)[^/]' \| \
20598 X"$mf" : 'X\(//\)$' \| \
20599 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20605 /^X\(\/\/\)[^/].*/{
20621 # Extract the definition of DEPDIR, am__include, and am__quote
20622 # from the Makefile without running `make'.
20623 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
20624 test -z "$DEPDIR" && continue
20625 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
20626 test -z "am__include" && continue
20627 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
20628 # When using ansi2knr, U may be empty or an underscore; expand it
20629 U
=`sed -n 's/^U = //p' < "$mf"`
20630 # Find all dependency output files, they are included files with
20631 # $(DEPDIR) in their names. We invoke sed twice because it is the
20632 # simplest approach to changing $(DEPDIR) to its actual value in the
20634 for file in `sed -n "
20635 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20636 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20637 # Make sure the directory exists.
20638 test -f "$dirpart/$file" && continue
20639 fdir
=`$as_dirname -- "$file" ||
20640 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20641 X"$file" : 'X\(//\)[^/]' \| \
20642 X"$file" : 'X\(//\)$' \| \
20643 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20644 $as_echo X"$file" |
20645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20649 /^X\(\/\/\)[^/].*/{
20662 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
20663 # echo "creating $dirpart/$file"
20664 echo '# dummy' > "$dirpart/$file"
20670 case x
$CONFIG_HEADERS in
20671 xconfig.h
:config.
in)
20682 ac_clean_files
=$ac_clean_files_save
20684 test $ac_write_fail = 0 ||
20685 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20688 # configure is writing to config.log, and then calls config.status.
20689 # config.status does its own redirection, appending to config.log.
20690 # Unfortunately, on DOS this fails, as config.log is still kept open
20691 # by configure, so config.status won't be able to write to it; its
20692 # output is simply discarded. So we exec the FD to /dev/null,
20693 # effectively closing config.log, so it can be properly (re)opened and
20694 # appended to by config.status. When coming back to configure, we
20695 # need to make the FD available again.
20696 if test "$no_create" != yes; then
20698 ac_config_status_args
=
20699 test "$silent" = yes &&
20700 ac_config_status_args
="$ac_config_status_args --quiet"
20702 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20704 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20705 # would make configure fail if this is the last instruction.
20706 $ac_cs_success || as_fn_exit $?
20708 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20710 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}