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 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661 TIME_H_DEFINES_STRUCT_TIMESPEC
662 NEXT_AS_FIRST_DIRECTIVE_TIME_H
671 HAVE_DECL_LOCALTIME_R
678 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
681 WINDOWS_64_BIT_ST_SIZE
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
684 NEXT_AS_FIRST_DIRECTIVE_STRING_H
686 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
688 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
690 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
692 GL_GENERATE_STDDEF_H_FALSE
693 GL_GENERATE_STDDEF_H_TRUE
698 GL_GENERATE_STDBOOL_H_FALSE
699 GL_GENERATE_STDBOOL_H_TRUE
708 REPLACE_STDIO_WRITE_FUNCS
709 REPLACE_STDIO_READ_FUNCS
718 REPLACE_OBSTACK_PRINTF
743 HAVE_DECL_OBSTACK_PRINTF
749 GNULIB_VSPRINTF_POSIX
753 GNULIB_VFPRINTF_POSIX
760 GNULIB_STDIO_H_SIGPIPE
761 GNULIB_STDIO_H_NONBLOCKING
776 GNULIB_OBSTACK_PRINTF_POSIX
777 GNULIB_OBSTACK_PRINTF
970 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1005 LOCALCHARSET_TESTS_ENVIRONMENT
1007 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1009 UINT64_MAX_EQ_ULONG_MAX
1010 UINT32_MAX_LT_UINTMAX_MAX
1013 INT64_MAX_EQ_LONG_MAX
1014 INT32_MAX_LT_INTMAX_MAX
1024 GL_GENERATE_STDINT_H_FALSE
1025 GL_GENERATE_STDINT_H_TRUE
1034 HAVE_SIGNED_SIG_ATOMIC_T
1037 BITSIZEOF_SIG_ATOMIC_T
1040 APPLE_UNIVERSAL_BUILD
1044 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1049 HAVE_UNSIGNED_LONG_LONG_INT
1052 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1058 REPLACE_SIGNBIT_USING_GCC
1127 HAVE_DECL_REMAINDERL
1308 GL_GENERATE_FNMATCH_H_FALSE
1309 GL_GENERATE_FNMATCH_H_TRUE
1312 GL_GENERATE_FLOAT_H_FALSE
1313 GL_GENERATE_FLOAT_H_TRUE
1315 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1323 GL_GENERATE_ERRNO_H_FALSE
1324 GL_GENERATE_ERRNO_H_TRUE
1326 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1329 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1332 PRAGMA_SYSTEM_HEADER
1333 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1358 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1359 UNISTD_H_HAVE_WINSOCK2_H
1380 REPLACE_GETDOMAINNAME
1391 HAVE_DECL_SETHOSTNAME
1392 HAVE_DECL_GETUSERSHELL
1393 HAVE_DECL_GETPAGESIZE
1394 HAVE_DECL_GETLOGIN_R
1395 HAVE_DECL_GETDOMAINNAME
1434 GNULIB_UNISTD_H_SIGPIPE
1435 GNULIB_UNISTD_H_NONBLOCKING
1461 GNULIB_GETDTABLESIZE
1462 GNULIB_GETDOMAINNAME
1491 REPLACE_CANONICALIZE_FILE_NAME
1496 HAVE_STRUCT_RANDOM_DATA
1517 HAVE_DECL_GETLOADAVG
1518 HAVE_CANONICALIZE_FILE_NAME
1531 GNULIB_REALLOC_POSIX
1548 GNULIB_CANONICALIZE_FILE_NAME
1552 GL_GENERATE_ALLOCA_H_FALSE
1553 GL_GENERATE_ALLOCA_H_TRUE
1556 GL_COND_LIBTOOL_FALSE
1557 GL_COND_LIBTOOL_TRUE
1584 MAINTAINER_MODE_FALSE
1585 MAINTAINER_MODE_TRUE
1613 program_transform_name
1626 enable_option_checking
1627 enable_maintainer_mode
1629 enable_dependency_tracking
1631 ac_precious_vars
='build_alias
1642 # Initialize some variables set by options.
1644 ac_init_version
=false
1645 ac_unrecognized_opts
=
1646 ac_unrecognized_sep
=
1647 # The variables have the same names as the options, with
1648 # dashes changed to underlines.
1649 cache_file
=/dev
/null
1656 program_transform_name
=s
,x
,x
,
1664 # Installation directory options.
1665 # These are left unexpanded so users can "make install exec_prefix=/foo"
1666 # and all the variables that are supposed to be based on exec_prefix
1667 # by default will actually change.
1668 # Use braces instead of parens because sh, perl, etc. also accept them.
1669 # (The list follows the same order as the GNU Coding Standards.)
1670 bindir
='${exec_prefix}/bin'
1671 sbindir
='${exec_prefix}/sbin'
1672 libexecdir
='${exec_prefix}/libexec'
1673 datarootdir
='${prefix}/share'
1674 datadir
='${datarootdir}'
1675 sysconfdir
='${prefix}/etc'
1676 sharedstatedir
='${prefix}/com'
1677 localstatedir
='${prefix}/var'
1678 includedir
='${prefix}/include'
1679 oldincludedir
='/usr/include'
1680 docdir
='${datarootdir}/doc/${PACKAGE}'
1681 infodir
='${datarootdir}/info'
1686 libdir
='${exec_prefix}/lib'
1687 localedir
='${datarootdir}/locale'
1688 mandir
='${datarootdir}/man'
1694 # If the previous option needs an argument, assign it.
1695 if test -n "$ac_prev"; then
1696 eval $ac_prev=\
$ac_option
1702 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1706 # Accept the important Cygnus configure options, so we can diagnose typos.
1708 case $ac_dashdash$ac_option in
1712 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1714 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1715 bindir
=$ac_optarg ;;
1717 -build |
--build |
--buil |
--bui |
--bu)
1718 ac_prev
=build_alias
;;
1719 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1720 build_alias
=$ac_optarg ;;
1722 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1723 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1724 ac_prev
=cache_file
;;
1725 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1726 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1727 cache_file
=$ac_optarg ;;
1729 --config-cache |
-C)
1730 cache_file
=config.cache
;;
1732 -datadir |
--datadir |
--datadi |
--datad)
1734 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1735 datadir
=$ac_optarg ;;
1737 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1738 |
--dataroo |
--dataro |
--datar)
1739 ac_prev
=datarootdir
;;
1740 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1741 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1742 datarootdir
=$ac_optarg ;;
1744 -disable-* |
--disable-*)
1745 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1746 # Reject names that are not valid shell variable names.
1747 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1748 as_fn_error
"invalid feature name: $ac_useropt"
1749 ac_useropt_orig
=$ac_useropt
1750 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1751 case $ac_user_opts in
1753 "enable_
$ac_useropt"
1755 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1756 ac_unrecognized_sep
=', ';;
1758 eval enable_
$ac_useropt=no
;;
1760 -docdir |
--docdir |
--docdi |
--doc |
--do)
1762 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1763 docdir
=$ac_optarg ;;
1765 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1767 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1768 dvidir
=$ac_optarg ;;
1770 -enable-* |
--enable-*)
1771 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1772 # Reject names that are not valid shell variable names.
1773 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1774 as_fn_error
"invalid feature name: $ac_useropt"
1775 ac_useropt_orig
=$ac_useropt
1776 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1777 case $ac_user_opts in
1779 "enable_
$ac_useropt"
1781 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1782 ac_unrecognized_sep
=', ';;
1784 eval enable_
$ac_useropt=\
$ac_optarg ;;
1786 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1787 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1788 |
--exec |
--exe |
--ex)
1789 ac_prev
=exec_prefix
;;
1790 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1791 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1792 |
--exec=* |
--exe=* |
--ex=*)
1793 exec_prefix
=$ac_optarg ;;
1795 -gas |
--gas |
--ga |
--g)
1796 # Obsolete; use --with-gas.
1799 -help |
--help |
--hel |
--he |
-h)
1800 ac_init_help
=long
;;
1801 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1802 ac_init_help
=recursive
;;
1803 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1804 ac_init_help
=short
;;
1806 -host |
--host |
--hos |
--ho)
1807 ac_prev
=host_alias
;;
1808 -host=* |
--host=* |
--hos=* |
--ho=*)
1809 host_alias
=$ac_optarg ;;
1811 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1813 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1815 htmldir
=$ac_optarg ;;
1817 -includedir |
--includedir |
--includedi |
--included |
--include \
1818 |
--includ |
--inclu |
--incl |
--inc)
1819 ac_prev
=includedir
;;
1820 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1821 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1822 includedir
=$ac_optarg ;;
1824 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1826 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1827 infodir
=$ac_optarg ;;
1829 -libdir |
--libdir |
--libdi |
--libd)
1831 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1832 libdir
=$ac_optarg ;;
1834 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1835 |
--libexe |
--libex |
--libe)
1836 ac_prev
=libexecdir
;;
1837 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1838 |
--libexe=* |
--libex=* |
--libe=*)
1839 libexecdir
=$ac_optarg ;;
1841 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1842 ac_prev
=localedir
;;
1843 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1844 localedir
=$ac_optarg ;;
1846 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1847 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1848 ac_prev
=localstatedir
;;
1849 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1850 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1851 localstatedir
=$ac_optarg ;;
1853 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1855 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1856 mandir
=$ac_optarg ;;
1858 -nfp |
--nfp |
--nf)
1859 # Obsolete; use --without-fp.
1862 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1863 |
--no-cr |
--no-c |
-n)
1866 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1867 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1870 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1871 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1872 |
--oldin |
--oldi |
--old |
--ol |
--o)
1873 ac_prev
=oldincludedir
;;
1874 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1875 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1876 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1877 oldincludedir
=$ac_optarg ;;
1879 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1881 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1882 prefix
=$ac_optarg ;;
1884 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1885 |
--program-pre |
--program-pr |
--program-p)
1886 ac_prev
=program_prefix
;;
1887 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1888 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1889 program_prefix
=$ac_optarg ;;
1891 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1892 |
--program-suf |
--program-su |
--program-s)
1893 ac_prev
=program_suffix
;;
1894 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1895 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1896 program_suffix
=$ac_optarg ;;
1898 -program-transform-name |
--program-transform-name \
1899 |
--program-transform-nam |
--program-transform-na \
1900 |
--program-transform-n |
--program-transform- \
1901 |
--program-transform |
--program-transfor \
1902 |
--program-transfo |
--program-transf \
1903 |
--program-trans |
--program-tran \
1904 |
--progr-tra |
--program-tr |
--program-t)
1905 ac_prev
=program_transform_name
;;
1906 -program-transform-name=* |
--program-transform-name=* \
1907 |
--program-transform-nam=* |
--program-transform-na=* \
1908 |
--program-transform-n=* |
--program-transform-=* \
1909 |
--program-transform=* |
--program-transfor=* \
1910 |
--program-transfo=* |
--program-transf=* \
1911 |
--program-trans=* |
--program-tran=* \
1912 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1913 program_transform_name
=$ac_optarg ;;
1915 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1917 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1918 pdfdir
=$ac_optarg ;;
1920 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1922 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1925 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1926 |
-silent |
--silent |
--silen |
--sile |
--sil)
1929 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1931 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1933 sbindir
=$ac_optarg ;;
1935 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1936 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1937 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1939 ac_prev
=sharedstatedir
;;
1940 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1941 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1942 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1944 sharedstatedir
=$ac_optarg ;;
1946 -site |
--site |
--sit)
1948 -site=* |
--site=* |
--sit=*)
1951 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1953 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1954 srcdir
=$ac_optarg ;;
1956 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1957 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1958 ac_prev
=sysconfdir
;;
1959 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1960 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1961 sysconfdir
=$ac_optarg ;;
1963 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1964 ac_prev
=target_alias
;;
1965 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1966 target_alias
=$ac_optarg ;;
1968 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1971 -version |
--version |
--versio |
--versi |
--vers |
-V)
1972 ac_init_version
=: ;;
1975 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1976 # Reject names that are not valid shell variable names.
1977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1978 as_fn_error
"invalid package name: $ac_useropt"
1979 ac_useropt_orig
=$ac_useropt
1980 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1981 case $ac_user_opts in
1985 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1986 ac_unrecognized_sep
=', ';;
1988 eval with_
$ac_useropt=\
$ac_optarg ;;
1990 -without-* |
--without-*)
1991 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1992 # Reject names that are not valid shell variable names.
1993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1994 as_fn_error
"invalid package name: $ac_useropt"
1995 ac_useropt_orig
=$ac_useropt
1996 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1997 case $ac_user_opts in
2001 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2002 ac_unrecognized_sep
=', ';;
2004 eval with_
$ac_useropt=no
;;
2007 # Obsolete; use --with-x.
2010 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2011 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2012 ac_prev
=x_includes
;;
2013 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2014 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2015 x_includes
=$ac_optarg ;;
2017 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2018 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2019 ac_prev
=x_libraries
;;
2020 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2021 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2022 x_libraries
=$ac_optarg ;;
2024 -*) as_fn_error
"unrecognized option: \`$ac_option'
2025 Try \`$0 --help' for more information."
2029 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2030 # Reject names that are not valid shell variable names.
2031 case $ac_envvar in #(
2032 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2033 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
2035 eval $ac_envvar=\
$ac_optarg
2036 export $ac_envvar ;;
2039 # FIXME: should be removed in autoconf 3.0.
2040 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2041 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2042 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2043 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2049 if test -n "$ac_prev"; then
2050 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2051 as_fn_error
"missing argument to $ac_option"
2054 if test -n "$ac_unrecognized_opts"; then
2055 case $enable_option_checking in
2057 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
2058 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2062 # Check all directory arguments for consistency.
2063 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2064 datadir sysconfdir sharedstatedir localstatedir includedir \
2065 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2066 libdir localedir mandir
2068 eval ac_val
=\$
$ac_var
2069 # Remove trailing slashes.
2072 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2073 eval $ac_var=\
$ac_val;;
2075 # Be sure to have absolute directory names.
2077 [\\/$
]* | ?
:[\\/]* ) continue;;
2078 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2080 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
2083 # There might be people who depend on the old broken behavior: `$host'
2084 # used to hold the argument of --host etc.
2085 # FIXME: To remove some day.
2088 target
=$target_alias
2090 # FIXME: To remove some day.
2091 if test "x$host_alias" != x
; then
2092 if test "x$build_alias" = x
; then
2093 cross_compiling
=maybe
2094 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2095 If a cross compiler is detected then cross compile mode will be used." >&2
2096 elif test "x$build_alias" != "x$host_alias"; then
2102 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2104 test "$silent" = yes && exec 6>/dev
/null
2107 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2108 ac_ls_di
=`ls -di .` &&
2109 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2110 as_fn_error
"working directory cannot be determined"
2111 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2112 as_fn_error
"pwd does not report name of working directory"
2115 # Find the source files, if location was not specified.
2116 if test -z "$srcdir"; then
2117 ac_srcdir_defaulted
=yes
2118 # Try the directory containing this script, then the parent directory.
2119 ac_confdir
=`$as_dirname -- "$as_myself" ||
2120 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2121 X"$as_myself" : 'X\(//\)[^/]' \| \
2122 X"$as_myself" : 'X\(//\)$' \| \
2123 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2124 $as_echo X"$as_myself" |
2125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2143 if test ! -r "$srcdir/$ac_unique_file"; then
2147 ac_srcdir_defaulted
=no
2149 if test ! -r "$srcdir/$ac_unique_file"; then
2150 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2151 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2153 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2155 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2157 # When building in place, set srcdir=.
2158 if test "$ac_abs_confdir" = "$ac_pwd"; then
2161 # Remove unnecessary trailing slashes from srcdir.
2162 # Double slashes in file names in object file debugging info
2163 # mess up M-x gdb in Emacs.
2165 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2167 for ac_var
in $ac_precious_vars; do
2168 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2169 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2170 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2171 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2175 # Report the --help message.
2177 if test "$ac_init_help" = "long"; then
2178 # Omit some internal or obsolete options to make the list less imposing.
2179 # This message is too long to be a string in the A/UX 3.1 sh.
2181 \`configure' configures this package to adapt to many kinds of systems.
2183 Usage: $0 [OPTION]... [VAR=VALUE]...
2185 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2186 VAR=VALUE. See below for descriptions of some of the useful variables.
2188 Defaults for the options are specified in brackets.
2191 -h, --help display this help and exit
2192 --help=short display options specific to this package
2193 --help=recursive display the short help of all the included packages
2194 -V, --version display version information and exit
2195 -q, --quiet, --silent do not print \`checking...' messages
2196 --cache-file=FILE cache test results in FILE [disabled]
2197 -C, --config-cache alias for \`--cache-file=config.cache'
2198 -n, --no-create do not create output files
2199 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2201 Installation directories:
2202 --prefix=PREFIX install architecture-independent files in PREFIX
2203 [$ac_default_prefix]
2204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2207 By default, \`make install' will install all the files in
2208 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2209 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2210 for instance \`--prefix=\$HOME'.
2212 For better control, use the options below.
2214 Fine tuning of the installation directories:
2215 --bindir=DIR user executables [EPREFIX/bin]
2216 --sbindir=DIR system admin executables [EPREFIX/sbin]
2217 --libexecdir=DIR program executables [EPREFIX/libexec]
2218 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2219 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2220 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2221 --libdir=DIR object code libraries [EPREFIX/lib]
2222 --includedir=DIR C header files [PREFIX/include]
2223 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2224 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2225 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2226 --infodir=DIR info documentation [DATAROOTDIR/info]
2227 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2228 --mandir=DIR man documentation [DATAROOTDIR/man]
2229 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2230 --htmldir=DIR html documentation [DOCDIR]
2231 --dvidir=DIR dvi documentation [DOCDIR]
2232 --pdfdir=DIR pdf documentation [DOCDIR]
2233 --psdir=DIR ps documentation [DOCDIR]
2239 --program-prefix=PREFIX prepend PREFIX to installed program names
2240 --program-suffix=SUFFIX append SUFFIX to installed program names
2241 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2244 --build=BUILD configure
for building on BUILD
[guessed
]
2245 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2246 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2250 if test -n "$ac_init_help"; then
2255 --disable-option-checking ignore unrecognized
--enable/--with options
2256 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2257 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2258 --enable-maintainer-mode enable make rules and dependencies not useful
2259 (and sometimes confusing
) to the casual installer
2260 --disable-largefile omit support
for large files
2261 --disable-dependency-tracking speeds up one-time build
2262 --enable-dependency-tracking do not reject slow dependency extractors
2264 Some influential environment variables
:
2265 CC C compiler
command
2266 CFLAGS C compiler flags
2267 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2268 nonstandard directory
<lib dir
>
2269 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2270 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2271 you have headers
in a nonstandard directory
<include dir
>
2274 Use these variables to override the choices made by
`configure' or to help
2275 it to find libraries and programs with nonstandard names/locations.
2277 Report bugs to the package provider.
2282 if test "$ac_init_help" = "recursive"; then
2283 # If there are subdirs, report their specific --help.
2284 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2285 test -d "$ac_dir" ||
2286 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2291 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2293 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2294 # A ".." for each directory in $ac_dir_suffix.
2295 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2296 case $ac_top_builddir_sub in
2297 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2298 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2301 ac_abs_top_builddir=$ac_pwd
2302 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2303 # for backward compatibility:
2304 ac_top_builddir=$ac_top_build_prefix
2307 .) # We are building in place.
2309 ac_top_srcdir=$ac_top_builddir_sub
2310 ac_abs_top_srcdir=$ac_pwd ;;
2311 [\\/]* | ?:[\\/]* ) # Absolute name.
2312 ac_srcdir=$srcdir$ac_dir_suffix;
2313 ac_top_srcdir=$srcdir
2314 ac_abs_top_srcdir=$srcdir ;;
2316 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2317 ac_top_srcdir=$ac_top_build_prefix$srcdir
2318 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2320 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2322 cd "$ac_dir" || { ac_status=$?; continue; }
2323 # Check for guested configure.
2324 if test -f "$ac_srcdir/configure.gnu"; then
2326 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2327 elif test -f "$ac_srcdir/configure"; then
2329 $SHELL "$ac_srcdir/configure" --help=recursive
2331 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2333 cd "$ac_pwd" || { ac_status=$?; break; }
2337 test -n "$ac_init_help" && exit $ac_status
2338 if $ac_init_version; then
2341 generated by GNU Autoconf 2.64
2343 Copyright (C) 2009 Free Software Foundation, Inc.
2344 This configure script is free software; the Free Software Foundation
2345 gives unlimited permission to copy, distribute and modify it.
2350 ## ------------------------ ##
2351 ## Autoconf initialization. ##
2352 ## ------------------------ ##
2354 # ac_fn_c_try_compile LINENO
2355 # --------------------------
2356 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2357 ac_fn_c_try_compile ()
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 rm -f conftest.$ac_objext
2361 if { { ac_try="$ac_compile"
2363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2364 *) ac_try_echo
=$ac_try;;
2366 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_compile") 2>conftest.err
2370 if test -s conftest.err
; then
2371 grep -v '^ *+' conftest.err
>conftest.er1
2372 cat conftest.er1
>&5
2373 mv -f conftest.er1 conftest.err
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; } && {
2377 test -z "$ac_c_werror_flag" ||
2378 test ! -s conftest.err
2379 } && test -s conftest.
$ac_objext; then :
2382 $as_echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.
$ac_ext >&5
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2390 } # ac_fn_c_try_compile
2392 # ac_fn_c_try_cpp LINENO
2393 # ----------------------
2394 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2397 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2398 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2407 if test -s conftest.err; then
2408 grep -v '^ *+' conftest.err >conftest.er1
2409 cat conftest.er1 >&5
2410 mv -f conftest.er1 conftest.err
2412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; } >/dev/null && {
2414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2415 test ! -s conftest.err
2419 $as_echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2424 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2429 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2430 # -------------------------------------------------------
2431 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2432 # the include files in INCLUDES and setting the cache variable VAR
2434 ac_fn_c_check_header_mongrel ()
2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2447 # Is the header compilable?
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2449 $as_echo_n "checking $2 usability... " >&6; }
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h. */
2455 if ac_fn_c_try_compile "$LINENO"; then :
2456 ac_header_compiler=yes
2458 ac_header_compiler=no
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2462 $as_echo "$ac_header_compiler" >&6; }
2464 # Is the header present?
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2466 $as_echo_n "checking $2 presence... " >&6; }
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2471 if ac_fn_c_try_cpp "$LINENO"; then :
2472 ac_header_preproc=yes
2474 ac_header_preproc=no
2476 rm -f conftest.err conftest.$ac_ext
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2478 $as_echo "$ac_header_preproc" >&6; }
2480 # So? What about this header?
2481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2484 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2486 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2490 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2492 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2494 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2496 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2498 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502 $as_echo_n "checking for $2... " >&6; }
2503 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2504 $as_echo_n "(cached) " >&6
2506 eval "$3=\$ac_header_compiler"
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510 $as_echo "$ac_res" >&6; }
2512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514 } # ac_fn_c_check_header_mongrel
2516 # ac_fn_c_try_run LINENO
2517 # ----------------------
2518 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2519 # that executables *can* be run.
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 if { { ac_try="$ac_link"
2525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2526 *) ac_try_echo
=$ac_try;;
2528 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2529 $as_echo "$ac_try_echo"; } >&5
2530 (eval "$ac_link") 2>&5
2532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2533 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2534 { { case "(($ac_try" in
2535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2539 $as_echo "$ac_try_echo"; } >&5
2540 (eval "$ac_try") 2>&5
2542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2543 test $ac_status = 0; }; }; then :
2546 $as_echo "$as_me: program exited with status $ac_status" >&5
2547 $as_echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2550 ac_retval=$ac_status
2552 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2558 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2559 # -------------------------------------------------------
2560 # Tests whether HEADER exists and can be compiled using the include files in
2561 # INCLUDES, setting the cache variable VAR accordingly.
2562 ac_fn_c_check_header_compile ()
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566 $as_echo_n "checking for $2... " >&6; }
2567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2568 $as_echo_n "(cached) " >&6
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2575 if ac_fn_c_try_compile "$LINENO"; then :
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2584 $as_echo "$ac_res" >&6; }
2585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2587 } # ac_fn_c_check_header_compile
2589 # ac_fn_c_try_link LINENO
2590 # -----------------------
2591 # Try to link conftest.$ac_ext, and return whether this succeeded.
2594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595 rm -f conftest.$ac_objext conftest$ac_exeext
2596 if { { ac_try="$ac_link"
2598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2599 *) ac_try_echo
=$ac_try;;
2601 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2602 $as_echo "$ac_try_echo"; } >&5
2603 (eval "$ac_link") 2>conftest.err
2605 if test -s conftest.err
; then
2606 grep -v '^ *+' conftest.err
>conftest.er1
2607 cat conftest.er1
>&5
2608 mv -f conftest.er1 conftest.err
2610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2611 test $ac_status = 0; } && {
2612 test -z "$ac_c_werror_flag" ||
2613 test ! -s conftest.err
2614 } && test -s conftest
$ac_exeext && {
2615 test "$cross_compiling" = yes ||
2616 $as_test_x conftest
$ac_exeext
2620 $as_echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.
$ac_ext >&5
2625 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2626 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2627 # interfere with the next link command; also delete a directory that is
2628 # left behind by Apple's compiler. We do this before executing the actions.
2629 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2630 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2633 } # ac_fn_c_try_link
2635 # ac_fn_c_check_func LINENO FUNC VAR
2636 # ----------------------------------
2637 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2638 ac_fn_c_check_func
()
2640 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2642 $as_echo_n "checking for $2... " >&6; }
2643 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2644 $as_echo_n "(cached) " >&6
2646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h. */
2648 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2650 #define $2 innocuous_$2
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char $2 (); below.
2654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2655 <limits.h> exists even on freestanding compilers. */
2658 # include <limits.h>
2660 # include <assert.h>
2665 /* Override any GCC internal prototype to avoid an error.
2666 Use char because int might match the return type of a GCC
2667 builtin and then its argument prototype would still apply. */
2672 /* The GNU C library defines this for functions which it implements
2673 to always fail with ENOSYS. Some functions are actually named
2674 something starting with __ and the normal name is an alias. */
2675 #if defined __stub_$2 || defined __stub___$2
2687 if ac_fn_c_try_link
"$LINENO"; then :
2692 rm -f core conftest.err conftest.
$ac_objext \
2693 conftest
$ac_exeext conftest.
$ac_ext
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 $as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2700 } # ac_fn_c_check_func
2702 # ac_fn_c_check_decl LINENO SYMBOL VAR
2703 # ------------------------------------
2704 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2705 ac_fn_c_check_decl
()
2707 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2709 $as_echo_n "checking whether $2 is declared... " >&6; }
2710 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2711 $as_echo_n "(cached) " >&6
2713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2727 if ac_fn_c_try_compile
"$LINENO"; then :
2732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2736 $as_echo "$ac_res" >&6; }
2737 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2739 } # ac_fn_c_check_decl
2741 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2742 # --------------------------------------------
2743 # Tries to find the compile-time value of EXPR in a program that includes
2744 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2746 ac_fn_c_compute_int
()
2748 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2749 if test "$cross_compiling" = yes; then
2750 # Depending upon the size, compute the lo and hi bounds.
2751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2757 static int test_array [1 - 2 * !(($2) >= 0)];
2764 if ac_fn_c_try_compile
"$LINENO"; then :
2767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2773 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2780 if ac_fn_c_try_compile
"$LINENO"; then :
2781 ac_hi
=$ac_mid; break
2783 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2784 if test $ac_lo -le $ac_mid; then
2788 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2799 static int test_array [1 - 2 * !(($2) < 0)];
2806 if ac_fn_c_try_compile
"$LINENO"; then :
2809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2810 /* end confdefs.h. */
2815 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2822 if ac_fn_c_try_compile
"$LINENO"; then :
2823 ac_lo
=$ac_mid; break
2825 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2826 if test $ac_mid -le $ac_hi; then
2830 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2840 # Binary search between lo and hi bounds.
2841 while test "x$ac_lo" != "x$ac_hi"; do
2842 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.h. */
2849 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2856 if ac_fn_c_try_compile
"$LINENO"; then :
2859 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2864 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2871 static long int longval () { return $2; }
2872 static unsigned long int ulongval () { return $2; }
2879 FILE *f = fopen ("conftest.val", "w");
2884 long int i = longval ();
2887 fprintf (f, "%ld", i);
2891 unsigned long int i = ulongval ();
2894 fprintf (f, "%lu", i);
2896 /* Do not output a trailing newline, as this causes \r\n confusion
2897 on some platforms. */
2898 return ferror (f) || fclose (f) != 0;
2904 if ac_fn_c_try_run
"$LINENO"; then :
2905 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2909 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2910 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2914 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2917 } # ac_fn_c_compute_int
2919 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2920 # -------------------------------------------
2921 # Tests whether TYPE exists after having included INCLUDES, setting cache
2922 # variable VAR accordingly.
2923 ac_fn_c_check_type
()
2925 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2927 $as_echo_n "checking for $2... " >&6; }
2928 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2929 $as_echo_n "(cached) " >&6
2932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2944 if ac_fn_c_try_compile
"$LINENO"; then :
2945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h. */
2957 if ac_fn_c_try_compile
"$LINENO"; then :
2962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2968 $as_echo "$ac_res" >&6; }
2969 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2971 } # ac_fn_c_check_type
2972 cat >config.log
<<_ACEOF
2973 This file contains any messages produced by compilers while
2974 running configure, to aid debugging if configure makes a mistake.
2976 It was created by $as_me, which was
2977 generated by GNU Autoconf 2.64. Invocation command line was
2989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3012 test -z "$as_dir" && as_dir
=.
3013 $as_echo "PATH: $as_dir"
3029 # Keep a trace of the command line.
3030 # Strip out --no-create and --no-recursion so they do not pile up.
3031 # Strip out --silent because we don't want to record it for future runs.
3032 # Also quote any args containing shell meta-characters.
3033 # Make two passes to allow for proper duplicate-argument suppression.
3037 ac_must_keep_next
=false
3043 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3044 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3045 |
-silent |
--silent |
--silen |
--sile |
--sil)
3048 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3051 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3053 as_fn_append ac_configure_args1
" '$ac_arg'"
3054 if test $ac_must_keep_next = true
; then
3055 ac_must_keep_next
=false
# Got value, back to normal.
3058 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3059 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3060 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3061 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3062 case "$ac_configure_args0 " in
3063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3066 -* ) ac_must_keep_next
=true
;;
3069 as_fn_append ac_configure_args
" '$ac_arg'"
3074 { ac_configure_args0
=; unset ac_configure_args0
;}
3075 { ac_configure_args1
=; unset ac_configure_args1
;}
3077 # When interrupted or exit'd, cleanup temporary files, and complete
3078 # config.log. We remove comments because anyway the quotes in there
3079 # would cause problems or look ugly.
3080 # WARNING: Use '\'' to represent an apostrophe within the trap.
3081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3082 trap 'exit_status=$?
3083 # Save into config.log some information that might help in debugging.
3088 ## ---------------- ##
3089 ## Cache variables. ##
3090 ## ---------------- ##
3093 # The following way of writing the cache mishandles newlines in values,
3095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3096 eval ac_val=\$$ac_var
3100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3104 _ | IFS | as_nl) ;; #(
3105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3106 *) { eval $ac_var=; unset $ac_var;} ;;
3111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3112 *${as_nl}ac_space=\ *)
3114 "s/'\''/'\''\\\\'\'''\''/g;
3115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3126 ## ----------------- ##
3127 ## Output variables. ##
3128 ## ----------------- ##
3131 for ac_var in $ac_subst_vars
3133 eval ac_val=\$$ac_var
3135 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3137 $as_echo "$ac_var='\''$ac_val'\''"
3141 if test -n "$ac_subst_files"; then
3143 ## ------------------- ##
3144 ## File substitutions. ##
3145 ## ------------------- ##
3148 for ac_var
in $ac_subst_files
3150 eval ac_val
=\$
$ac_var
3152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3154 $as_echo "$ac_var='\''$ac_val'\''"
3159 if test -s confdefs.h; then
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3177 for ac_signal
in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest
* confdefs.h
3185 $as_echo "/* confdefs.h */" > confdefs.h
3187 # Predefined preprocessor variables.
3189 cat >>confdefs.h
<<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3193 cat >>confdefs.h
<<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3197 cat >>confdefs.h
<<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3201 cat >>confdefs.h
<<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3205 cat >>confdefs.h
<<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3209 cat >>confdefs.h
<<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3218 if test -n "$CONFIG_SITE"; then
3219 ac_site_file1
=$CONFIG_SITE
3220 elif test "x$prefix" != xNONE
; then
3221 ac_site_file1
=$prefix/share
/config.site
3222 ac_site_file2
=$prefix/etc
/config.site
3224 ac_site_file1
=$ac_default_prefix/share
/config.site
3225 ac_site_file2
=$ac_default_prefix/etc
/config.site
3227 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3229 test "x$ac_site_file" = xNONE
&& continue
3230 if test -r "$ac_site_file"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3233 sed 's/^/| /' "$ac_site_file" >&5
3238 if test -r "$cache_file"; then
3239 # Some versions of bash will fail to source /dev/null (special
3240 # files actually), so we avoid doing that.
3241 if test -f "$cache_file"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3243 $as_echo "$as_me: loading cache $cache_file" >&6;}
3245 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3246 *) .
"./$cache_file";;
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3251 $as_echo "$as_me: creating cache $cache_file" >&6;}
3255 as_fn_append ac_func_list
" canonicalize_file_name"
3256 as_fn_append ac_func_list
" getcwd"
3257 as_fn_append ac_func_list
" readlink"
3258 as_fn_append ac_func_list
" realpath"
3259 as_fn_append ac_header_list
" sys/param.h"
3260 as_fn_append ac_header_list
" dirent.h"
3261 as_fn_append ac_func_list
" btowc"
3262 as_fn_append ac_func_list
" isblank"
3263 as_fn_append ac_func_list
" iswctype"
3264 as_fn_append ac_func_list
" mbsrtowcs"
3265 as_fn_append ac_func_list
" mempcpy"
3266 as_fn_append ac_func_list
" wmemchr"
3267 as_fn_append ac_func_list
" wmemcpy"
3268 as_fn_append ac_func_list
" wmempcpy"
3269 as_fn_append ac_header_list
" wctype.h"
3270 gl_fnmatch_required
=GNU
3271 as_fn_append ac_func_list
" alarm"
3272 as_fn_append ac_header_list
" wchar.h"
3273 as_fn_append ac_header_list
" stdint.h"
3274 as_fn_append ac_header_list
" inttypes.h"
3275 as_fn_append ac_header_list
" unistd.h"
3276 as_fn_append ac_func_list
" symlink"
3277 as_fn_append ac_func_list
" lstat"
3278 as_fn_append ac_header_list
" math.h"
3279 as_fn_append ac_func_list
" mbsinit"
3280 as_fn_append ac_func_list
" mbrtowc"
3281 as_fn_append ac_header_list
" sys/mman.h"
3282 as_fn_append ac_func_list
" mprotect"
3283 as_fn_append ac_func_list
" link"
3284 as_fn_append ac_header_list
" sys/stat.h"
3285 as_fn_append ac_header_list
" sys/time.h"
3286 as_fn_append ac_header_list
" features.h"
3287 as_fn_append ac_func_list
" iswcntrl"
3288 # Check that the precious variables saved in the cache have kept the same
3290 ac_cache_corrupted
=false
3291 for ac_var
in $ac_precious_vars; do
3292 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3293 eval ac_new_set
=\
$ac_env_${ac_var}_set
3294 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3295 eval ac_new_val
=\
$ac_env_${ac_var}_value
3296 case $ac_old_set,$ac_new_set in
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3299 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3300 ac_cache_corrupted
=: ;;
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3303 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3304 ac_cache_corrupted
=: ;;
3307 if test "x$ac_old_val" != "x$ac_new_val"; then
3308 # differences in whitespace do not lead to failure.
3309 ac_old_val_w
=`echo x $ac_old_val`
3310 ac_new_val_w
=`echo x $ac_new_val`
3311 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3313 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3314 ac_cache_corrupted
=:
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3317 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3318 eval $ac_var=\
$ac_old_val
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3321 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3323 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3326 # Pass precious variables to config.status.
3327 if test "$ac_new_set" = set; then
3329 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3330 *) ac_arg
=$ac_var=$ac_new_val ;;
3332 case " $ac_configure_args " in
3333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3334 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3338 if $ac_cache_corrupted; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3342 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3343 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3345 ## -------------------- ##
3346 ## Main body of script. ##
3347 ## -------------------- ##
3350 ac_cpp
='$CPP $CPPFLAGS'
3351 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3356 ac_config_headers
="$ac_config_headers config.h:config.in"
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3360 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3361 # Check whether --enable-maintainer-mode was given.
3362 if test "${enable_maintainer_mode+set}" = set; then :
3363 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3365 USE_MAINTAINER_MODE
=no
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3369 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3370 if test $USE_MAINTAINER_MODE = yes; then
3371 MAINTAINER_MODE_TRUE
=
3372 MAINTAINER_MODE_FALSE
='#'
3374 MAINTAINER_MODE_TRUE
='#'
3375 MAINTAINER_MODE_FALSE
=
3378 MAINT
=$MAINTAINER_MODE_TRUE
3383 ac_cpp
='$CPP $CPPFLAGS'
3384 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3387 if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3389 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_CC+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC
="$CC" # Let the user override the test.
3398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir
=.
3403 for ac_exec_ext
in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3426 if test -z "$ac_cv_prog_CC"; then
3428 # Extract the first word of "gcc", so it can be a program name with args.
3429 set dummy gcc
; ac_word
=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$ac_ct_CC"; then
3436 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir
=.
3443 for ac_exec_ext
in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_ac_ct_CC
="gcc"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3456 if test -n "$ac_ct_CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3458 $as_echo "$ac_ct_CC" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3464 if test "x$ac_ct_CC" = x
; then
3467 case $cross_compiling:$ac_tool_warned in
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3471 ac_tool_warned
=yes ;;
3479 if test -z "$CC"; then
3480 if test -n "$ac_tool_prefix"; then
3481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3482 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if test "${ac_cv_prog_CC+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC
="$CC" # Let the user override the test.
3491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3495 test -z "$as_dir" && as_dir
=.
3496 for ac_exec_ext
in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 if test -n "$CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511 $as_echo "$CC" >&6; }
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3520 if test -z "$CC"; then
3521 # Extract the first word of "cc", so it can be a program name with args.
3522 set dummy cc
; ac_word
=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if test "${ac_cv_prog_CC+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
3528 if test -n "$CC"; then
3529 ac_cv_prog_CC
="$CC" # Let the user override the test.
3532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3536 test -z "$as_dir" && as_dir
=.
3537 for ac_exec_ext
in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3540 ac_prog_rejected
=yes
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 if test $ac_prog_rejected = yes; then
3552 # We found a bogon in the path, so make sure we never use it.
3553 set dummy
$ac_cv_prog_CC
3555 if test $# != 0; then
3556 # We chose a different compiler from the bogus one.
3557 # However, it has the same basename, so the bogon will be chosen
3558 # first if we set CC to just the basename; use the full file name.
3560 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3566 if test -n "$CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568 $as_echo "$CC" >&6; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3576 if test -z "$CC"; then
3577 if test -n "$ac_tool_prefix"; then
3578 for ac_prog
in cl.exe
3580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3581 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if test "${ac_cv_prog_CC+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
3587 if test -n "$CC"; then
3588 ac_cv_prog_CC
="$CC" # Let the user override the test.
3590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir
=.
3595 for ac_exec_ext
in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 if test -n "$CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610 $as_echo "$CC" >&6; }
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3617 test -n "$CC" && break
3620 if test -z "$CC"; then
3622 for ac_prog
in cl.exe
3624 # Extract the first word of "$ac_prog", so it can be a program name with args.
3625 set dummy
$ac_prog; ac_word
=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3631 if test -n "$ac_ct_CC"; then
3632 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir
=.
3639 for ac_exec_ext
in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_ac_ct_CC
="$ac_prog"
3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3652 if test -n "$ac_ct_CC"; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3654 $as_echo "$ac_ct_CC" >&6; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3661 test -n "$ac_ct_CC" && break
3664 if test "x$ac_ct_CC" = x
; then
3667 case $cross_compiling:$ac_tool_warned in
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671 ac_tool_warned
=yes ;;
3680 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error
"no acceptable C compiler found in \$PATH
3683 See \`config.log' for more details." "$LINENO" 5; }
3685 # Provide some information about the compiler.
3686 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3689 for ac_option
in --version -v -V -qversion; do
3690 { { ac_try
="$ac_compiler $ac_option >&5"
3692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696 $as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3699 if test -s conftest.err; then
3701 ... rest of stderr output deleted ...
3702 10q' conftest.err >conftest.er1
3703 cat conftest.er1 >&5
3704 rm -f conftest.er1 conftest.err
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3716 FILE *f = fopen ("conftest.out", "w");
3717 return ferror (f) || fclose (f) != 0;
3723 ac_clean_files_save=$ac_clean_files
3724 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3725 # Try to create an executable without -o first, disregard a.out.
3726 # It will help us diagnose broken compilers, and finding out an intuition
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3729 $as_echo_n "checking for C compiler default output file name... " >&6; }
3730 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3732 # The possible output files:
3733 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3736 for ac_file in $ac_files
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3745 if { { ac_try="$ac_link_default"
3747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3748 *) ac_try_echo
=$ac_try;;
3750 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link_default") 2>&5
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3757 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3758 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3759 # so that the user can short-circuit this test for compilers unknown to
3761 for ac_file
in $ac_files ''
3763 test -f "$ac_file" ||
continue
3765 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3768 # We found the default executable, but exeext='' is most
3772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3774 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776 # We set ac_cv_exeext here because the later test for it is not
3777 # safe: cross compilers may not add the suffix if given an `-o'
3778 # argument, so we may need to know it at that point already.
3779 # Even if this section looks crufty: it has the advantage of
3786 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3792 $as_echo "$ac_file" >&6; }
3793 if test -z "$ac_file"; then :
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.
$ac_ext >&5
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 { as_fn_set_status
77
3800 as_fn_error
"C compiler cannot create executables
3801 See \`config.log' for more details." "$LINENO" 5; }; }
3803 ac_exeext
=$ac_cv_exeext
3805 # Check that the compiler produces executables we can run. If not, either
3806 # the compiler is broken, or we cross compile.
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3808 $as_echo_n "checking whether the C compiler works... " >&6; }
3809 # If not cross compiling, check that we can run a simple program.
3810 if test "$cross_compiling" != yes; then
3811 if { ac_try
='./$ac_file'
3812 { { case "(($ac_try" in
3813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_try") 2>&5
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }; }; then
3824 if test "$cross_compiling" = maybe; then
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error "cannot run C compiled programs.
3830 If you meant to cross compile
, use \
`--host'.
3831 See \`config.log
' for more details." "$LINENO" 5; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3836 $as_echo "yes" >&6; }
3838 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3839 ac_clean_files=$ac_clean_files_save
3840 # Check that the compiler produces executables we can run. If not, either
3841 # the compiler is broken, or we cross compile.
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3843 $as_echo_n "checking whether we are cross compiling... " >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3845 $as_echo "$cross_compiling" >&6; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3848 $as_echo_n "checking for suffix of executables... " >&6; }
3849 if { { ac_try="$ac_link"
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link") 2>&5
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3861 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3862 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3864 for ac_file
in conftest.exe conftest conftest.
*; do
3865 test -f "$ac_file" ||
continue
3867 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3868 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3877 See \`config.log' for more details." "$LINENO" 5; }
3879 rm -f conftest
$ac_cv_exeext
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3881 $as_echo "$ac_cv_exeext" >&6; }
3883 rm -f conftest.
$ac_ext
3884 EXEEXT
=$ac_cv_exeext
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3887 $as_echo_n "checking for suffix of object files... " >&6; }
3888 if test "${ac_cv_objext+set}" = set; then :
3889 $as_echo_n "(cached) " >&6
3891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3902 rm -f conftest.o conftest.obj
3903 if { { ac_try
="$ac_compile"
3905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_compile") 2>&5
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }; then :
3914 for ac_file in conftest.o conftest.obj conftest.*; do
3915 test -f "$ac_file" || continue;
3917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3923 $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error "cannot compute suffix of object files
: cannot compile
3929 See \
`config.log' for more details." "$LINENO" 5; }
3931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3934 $as_echo "$ac_cv_objext" >&6; }
3935 OBJEXT=$ac_cv_objext
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3938 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3939 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3956 if ac_fn_c_try_compile "$LINENO"; then :
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3966 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3967 if test $ac_compiler_gnu = yes; then
3972 ac_test_CFLAGS=${CFLAGS+set}
3973 ac_save_CFLAGS=$CFLAGS
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3975 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3976 if test "${ac_cv_prog_cc_g+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3979 ac_save_c_werror_flag=$ac_c_werror_flag
3980 ac_c_werror_flag=yes
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3994 if ac_fn_c_try_compile "$LINENO"; then :
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 if ac_fn_c_try_compile "$LINENO"; then :
4012 ac_c_werror_flag=$ac_save_c_werror_flag
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4025 if ac_fn_c_try_compile "$LINENO"; then :
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 ac_c_werror_flag=$ac_save_c_werror_flag
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4036 $as_echo "$ac_cv_prog_cc_g" >&6; }
4037 if test "$ac_test_CFLAGS" = set; then
4038 CFLAGS=$ac_save_CFLAGS
4039 elif test $ac_cv_prog_cc_g = yes; then
4040 if test "$GCC" = yes; then
4046 if test "$GCC" = yes; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4053 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4054 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4055 $as_echo_n "(cached) " >&6
4057 ac_cv_prog_cc_c89=no
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4063 #include <sys/types.h>
4064 #include <sys/stat.h>
4065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4066 struct buf { int x; };
4067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4068 static char *e (p, i)
4074 static char *f (char * (*g) (char **, int), char **p, ...)
4079 s = g (p, va_arg (v,int));
4084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4085 function prototypes and stuff, but not '\xHH' hex character constants.
4086 These don't provoke an error unfortunately, instead are silently treated
4087 as 'x'. The following induces an error, until -std is added to get
4088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4089 array size at least. It's necessary to write '\x00'==0 to get something
4090 that's true only with -std. */
4091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4094 inside strings and character constants. */
4096 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4098 int test (int i, double x);
4099 struct s1 {int (*f) (int a);};
4100 struct s2 {int (*f) (double a);};
4101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4107 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4112 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4115 CC="$ac_save_CC $ac_arg"
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_cv_prog_cc_c89=$ac_arg
4119 rm -f core conftest.err conftest.$ac_objext
4120 test "x$ac_cv_prog_cc_c89" != "xno" && break
4122 rm -f conftest.$ac_ext
4127 case "x$ac_cv_prog_cc_c89" in
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4130 $as_echo "none needed" >&6; } ;;
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4133 $as_echo "unsupported" >&6; } ;;
4135 CC="$CC $ac_cv_prog_cc_c89"
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4137 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4139 if test "x$ac_cv_prog_cc_c89" != xno; then :
4144 ac_cpp='$CPP $CPPFLAGS'
4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4151 for ac_t in install-sh install.sh shtool; do
4152 if test -f "$ac_dir/$ac_t"; then
4154 ac_install_sh="$ac_aux_dir/$ac_t -c"
4159 if test -z "$ac_aux_dir"; then
4160 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4163 # These three variables are undocumented and unsupported,
4164 # and are intended to be withdrawn in a future Autoconf release.
4165 # They can cause serious problems if a builder's source tree is in a directory
4166 # whose full name contains unusual characters.
4167 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4168 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4169 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4172 # Make sure we can run config.sub.
4173 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4174 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4177 $as_echo_n "checking build system type... " >&6; }
4178 if test "${ac_cv_build+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4181 ac_build_alias=$build_alias
4182 test "x$ac_build_alias" = x &&
4183 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4184 test "x$ac_build_alias" = x &&
4185 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4186 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4187 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4191 $as_echo "$ac_cv_build" >&6; }
4192 case $ac_cv_build in
4194 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4197 ac_save_IFS=$IFS; IFS='-'
4203 # Remember, the first character of IFS is used to create $*,
4204 # except with old shells:
4207 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4211 $as_echo_n "checking host system type... " >&6; }
4212 if test "${ac_cv_host+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
4215 if test "x$host_alias" = x; then
4216 ac_cv_host=$ac_cv_build
4218 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4219 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4224 $as_echo "$ac_cv_host" >&6; }
4227 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4230 ac_save_IFS=$IFS; IFS='-'
4236 # Remember, the first character of IFS is used to create $*,
4237 # except with old shells:
4240 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4250 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4251 # On Suns, sometimes $CPP names a directory.
4252 if test -n "$CPP" && test -d "$CPP"; then
4255 if test -z "$CPP"; then
4256 if test "${ac_cv_prog_CPP+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
4259 # Double quotes because CPP needs to be expanded
4260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4263 for ac_c_preproc_warn_flag in '' yes
4265 # Use a header file that comes with gcc, so configuring glibc
4266 # with a fresh cross-compiler works.
4267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4268 # <limits.h> exists even on freestanding compilers.
4269 # On the NeXT, cc -E runs the code through the compiler's parser,
4270 # not just through cpp. "Syntax error" is here to catch this case.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4274 # include <limits.h>
4276 # include <assert.h>
4280 if ac_fn_c_try_cpp "$LINENO"; then :
4283 # Broken: fails on valid input.
4286 rm -f conftest.err conftest.$ac_ext
4288 # OK, works on sane cases. Now check whether nonexistent headers
4289 # can be detected and how.
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 #include <ac_nonexistent.h>
4294 if ac_fn_c_try_cpp "$LINENO"; then :
4295 # Broken: success on invalid input.
4298 # Passes both tests.
4302 rm -f conftest.err conftest.$ac_ext
4305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4306 rm -f conftest.err conftest.
$ac_ext
4307 if $ac_preproc_ok; then :
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4320 $as_echo "$CPP" >&6; }
4322 for ac_c_preproc_warn_flag
in '' yes
4324 # Use a header file that comes with gcc, so configuring glibc
4325 # with a fresh cross-compiler works.
4326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327 # <limits.h> exists even on freestanding compilers.
4328 # On the NeXT, cc -E runs the code through the compiler's parser,
4329 # not just through cpp. "Syntax error" is here to catch this case.
4330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4333 # include <limits.h>
4335 # include <assert.h>
4339 if ac_fn_c_try_cpp
"$LINENO"; then :
4342 # Broken: fails on valid input.
4345 rm -f conftest.err conftest.
$ac_ext
4347 # OK, works on sane cases. Now check whether nonexistent headers
4348 # can be detected and how.
4349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351 #include <ac_nonexistent.h>
4353 if ac_fn_c_try_cpp
"$LINENO"; then :
4354 # Broken: success on invalid input.
4357 # Passes both tests.
4361 rm -f conftest.err conftest.
$ac_ext
4364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4365 rm -f conftest.err conftest.
$ac_ext
4366 if $ac_preproc_ok; then :
4369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4372 See \`config.log' for more details." "$LINENO" 5; }
4376 ac_cpp
='$CPP $CPPFLAGS'
4377 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4383 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4384 if test "${ac_cv_path_GREP+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4387 if test -z "$GREP"; then
4388 ac_path_GREP_found
=false
4389 # Loop through the user's path and test for each of PROGNAME-LIST
4390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4391 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4394 test -z "$as_dir" && as_dir
=.
4395 for ac_prog
in grep ggrep
; do
4396 for ac_exec_ext
in '' $ac_executable_extensions; do
4397 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4398 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4399 # Check for GNU ac_path_GREP and select it if it is found.
4400 # Check for GNU $ac_path_GREP
4401 case `"$ac_path_GREP" --version 2>&1` in
4403 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4406 $as_echo_n 0123456789 >"conftest.in"
4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
4410 mv "conftest.tmp" "conftest.in"
4411 cp "conftest.in" "conftest.nl"
4412 $as_echo 'GREP' >> "conftest.nl"
4413 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4414 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4415 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4416 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4417 # Best one so far, save it but keep looking for a better one
4418 ac_cv_path_GREP
="$ac_path_GREP"
4419 ac_path_GREP_max
=$ac_count
4421 # 10*(2^10) chars as input seems more than enough
4422 test $ac_count -gt 10 && break
4424 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4427 $ac_path_GREP_found && break 3
4432 if test -z "$ac_cv_path_GREP"; then
4433 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4436 ac_cv_path_GREP
=$GREP
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4441 $as_echo "$ac_cv_path_GREP" >&6; }
4442 GREP
="$ac_cv_path_GREP"
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4446 $as_echo_n "checking for egrep... " >&6; }
4447 if test "${ac_cv_path_EGREP+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4450 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4451 then ac_cv_path_EGREP
="$GREP -E"
4453 if test -z "$EGREP"; then
4454 ac_path_EGREP_found
=false
4455 # Loop through the user's path and test for each of PROGNAME-LIST
4456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4457 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4460 test -z "$as_dir" && as_dir
=.
4461 for ac_prog
in egrep; do
4462 for ac_exec_ext
in '' $ac_executable_extensions; do
4463 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4464 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4465 # Check for GNU ac_path_EGREP and select it if it is found.
4466 # Check for GNU $ac_path_EGREP
4467 case `"$ac_path_EGREP" --version 2>&1` in
4469 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4472 $as_echo_n 0123456789 >"conftest.in"
4475 cat "conftest.in" "conftest.in" >"conftest.tmp"
4476 mv "conftest.tmp" "conftest.in"
4477 cp "conftest.in" "conftest.nl"
4478 $as_echo 'EGREP' >> "conftest.nl"
4479 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4480 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4481 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4482 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4483 # Best one so far, save it but keep looking for a better one
4484 ac_cv_path_EGREP
="$ac_path_EGREP"
4485 ac_path_EGREP_max
=$ac_count
4487 # 10*(2^10) chars as input seems more than enough
4488 test $ac_count -gt 10 && break
4490 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4493 $ac_path_EGREP_found && break 3
4498 if test -z "$ac_cv_path_EGREP"; then
4499 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502 ac_cv_path_EGREP
=$EGREP
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4508 $as_echo "$ac_cv_path_EGREP" >&6; }
4509 EGREP
="$ac_cv_path_EGREP"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4513 $as_echo_n "checking for ANSI C header files... " >&6; }
4514 if test "${ac_cv_header_stdc+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4532 if ac_fn_c_try_compile
"$LINENO"; then :
4533 ac_cv_header_stdc
=yes
4535 ac_cv_header_stdc
=no
4537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4539 if test $ac_cv_header_stdc = yes; then
4540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4547 $EGREP "memchr" >/dev
/null
2>&1; then :
4550 ac_cv_header_stdc
=no
4556 if test $ac_cv_header_stdc = yes; then
4557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4564 $EGREP "free" >/dev
/null
2>&1; then :
4567 ac_cv_header_stdc
=no
4573 if test $ac_cv_header_stdc = yes; then
4574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4575 if test "$cross_compiling" = yes; then :
4578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4582 #if ((' ' & 0x0FF) == 0x020)
4583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4586 # define ISLOWER(c) \
4587 (('a' <= (c) && (c) <= 'i') \
4588 || ('j' <= (c) && (c) <= 'r') \
4589 || ('s' <= (c) && (c) <= 'z'))
4590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4598 for (i = 0; i < 256; i++)
4599 if (XOR (islower (i), ISLOWER (i))
4600 || toupper (i) != TOUPPER (i))
4605 if ac_fn_c_try_run
"$LINENO"; then :
4608 ac_cv_header_stdc
=no
4610 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4611 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4617 $as_echo "$ac_cv_header_stdc" >&6; }
4618 if test $ac_cv_header_stdc = yes; then
4620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4624 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4625 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4626 inttypes.h stdint.h unistd.h
4628 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4629 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4631 eval as_val
=\$
$as_ac_Header
4632 if test "x$as_val" = x
""yes; then :
4633 cat >>confdefs.h
<<_ACEOF
4634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4646 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4653 if test "$MINIX" = yes; then
4655 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4658 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4661 $as_echo "#define _MINIX 1" >>confdefs.h
4668 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4675 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4676 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4682 # define __EXTENSIONS__ 1
4683 $ac_includes_default
4692 if ac_fn_c_try_compile
"$LINENO"; then :
4693 ac_cv_safe_to_define___extensions__
=yes
4695 ac_cv_safe_to_define___extensions__
=no
4697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4700 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4701 test $ac_cv_safe_to_define___extensions__ = yes &&
4702 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4704 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4706 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4708 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4710 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4712 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4718 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4719 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4733 gl_cv_c_amsterdam_compiler
=yes
4735 gl_cv_c_amsterdam_compiler
=no
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4742 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4743 if test -z "$AR"; then
4744 if test $gl_cv_c_amsterdam_compiler = yes; then
4746 if test -z "$ARFLAGS"; then
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4752 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_AR+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4758 if test -n "$AR"; then
4759 ac_cv_prog_AR
="$AR" # Let the user override the test.
4761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4765 test -z "$as_dir" && as_dir
=.
4766 for ac_exec_ext
in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 if test -n "$AR"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4781 $as_echo "$AR" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4789 if test -z "$ac_cv_prog_AR"; then
4791 # Extract the first word of "ar", so it can be a program name with args.
4792 set dummy
ar; ac_word
=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4798 if test -n "$ac_ct_AR"; then
4799 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4805 test -z "$as_dir" && as_dir
=.
4806 for ac_exec_ext
in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ac_ct_AR
="ar"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4819 if test -n "$ac_ct_AR"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4821 $as_echo "$ac_ct_AR" >&6; }
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4827 if test "x$ac_ct_AR" = x
; then
4830 case $cross_compiling:$ac_tool_warned in
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned
=yes ;;
4842 if test -z "$ARFLAGS"; then
4847 if test -z "$ARFLAGS"; then
4853 if test -z "$RANLIB"; then
4854 if test $gl_cv_c_amsterdam_compiler = yes; then
4857 if test -n "$ac_tool_prefix"; then
4858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4859 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4865 if test -n "$RANLIB"; then
4866 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir
=.
4873 for ac_exec_ext
in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 RANLIB
=$ac_cv_prog_RANLIB
4886 if test -n "$RANLIB"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4888 $as_echo "$RANLIB" >&6; }
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4896 if test -z "$ac_cv_prog_RANLIB"; then
4897 ac_ct_RANLIB
=$RANLIB
4898 # Extract the first word of "ranlib", so it can be a program name with args.
4899 set dummy ranlib
; ac_word
=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4905 if test -n "$ac_ct_RANLIB"; then
4906 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4912 test -z "$as_dir" && as_dir
=.
4913 for ac_exec_ext
in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4926 if test -n "$ac_ct_RANLIB"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4928 $as_echo "$ac_ct_RANLIB" >&6; }
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4934 if test "x$ac_ct_RANLIB" = x
; then
4937 case $cross_compiling:$ac_tool_warned in
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4941 ac_tool_warned
=yes ;;
4943 RANLIB
=$ac_ct_RANLIB
4946 RANLIB
="$ac_cv_prog_RANLIB"
4962 # IEEE behaviour is the default on all CPUs except Alpha and SH
4963 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4964 # and the GCC 4.1.2 manual).
4967 # On Alpha systems, a compiler option provides the behaviour.
4968 # See the ieee(3) manual page, also available at
4969 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4970 if test -n "$GCC"; then
4971 # GCC has the option -mieee.
4972 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4973 CPPFLAGS
="$CPPFLAGS -mieee"
4975 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4976 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4977 CPPFLAGS
="$CPPFLAGS -ieee"
4981 if test -n "$GCC"; then
4982 # GCC has the option -mieee.
4983 CPPFLAGS
="$CPPFLAGS -mieee"
4988 # Check whether --enable-largefile was given.
4989 if test "${enable_largefile+set}" = set; then :
4990 enableval
=$enable_largefile;
4993 if test "$enable_largefile" != no
; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4996 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4997 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
5000 ac_cv_sys_largefile_CC
=no
5001 if test "$GCC" != yes; then
5004 # IRIX 6.2 and later do not support large files by default,
5005 # so use the C compiler's -n32 option if that helps.
5006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #include <sys/types.h>
5009 /* Check that off_t can represent 2**63 - 1 correctly.
5010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5011 since some C++ compilers masquerading as C compilers
5012 incorrectly reject 9223372036854775807. */
5013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5015 && LARGE_OFF_T % 2147483647 == 1)
5025 if ac_fn_c_try_compile
"$LINENO"; then :
5028 rm -f core conftest.err conftest.
$ac_objext
5030 if ac_fn_c_try_compile
"$LINENO"; then :
5031 ac_cv_sys_largefile_CC
=' -n32'; break
5033 rm -f core conftest.err conftest.
$ac_objext
5037 rm -f conftest.
$ac_ext
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5041 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5042 if test "$ac_cv_sys_largefile_CC" != no
; then
5043 CC
=$CC$ac_cv_sys_largefile_CC
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5047 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5048 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054 #include <sys/types.h>
5055 /* Check that off_t can represent 2**63 - 1 correctly.
5056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5057 since some C++ compilers masquerading as C compilers
5058 incorrectly reject 9223372036854775807. */
5059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5061 && LARGE_OFF_T % 2147483647 == 1)
5071 if ac_fn_c_try_compile
"$LINENO"; then :
5072 ac_cv_sys_file_offset_bits
=no
; break
5074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #define _FILE_OFFSET_BITS 64
5078 #include <sys/types.h>
5079 /* Check that off_t can represent 2**63 - 1 correctly.
5080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5081 since some C++ compilers masquerading as C compilers
5082 incorrectly reject 9223372036854775807. */
5083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5085 && LARGE_OFF_T % 2147483647 == 1)
5095 if ac_fn_c_try_compile
"$LINENO"; then :
5096 ac_cv_sys_file_offset_bits
=64; break
5098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5099 ac_cv_sys_file_offset_bits
=unknown
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5104 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5105 case $ac_cv_sys_file_offset_bits in #(
5108 cat >>confdefs.h
<<_ACEOF
5109 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5114 if test $ac_cv_sys_file_offset_bits = unknown
; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5116 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5117 if test "${ac_cv_sys_large_files+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 #include <sys/types.h>
5124 /* Check that off_t can represent 2**63 - 1 correctly.
5125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5126 since some C++ compilers masquerading as C compilers
5127 incorrectly reject 9223372036854775807. */
5128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5130 && LARGE_OFF_T % 2147483647 == 1)
5140 if ac_fn_c_try_compile
"$LINENO"; then :
5141 ac_cv_sys_large_files
=no
; break
5143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 #define _LARGE_FILES 1
5147 #include <sys/types.h>
5148 /* Check that off_t can represent 2**63 - 1 correctly.
5149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5150 since some C++ compilers masquerading as C compilers
5151 incorrectly reject 9223372036854775807. */
5152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5154 && LARGE_OFF_T % 2147483647 == 1)
5164 if ac_fn_c_try_compile
"$LINENO"; then :
5165 ac_cv_sys_large_files
=1; break
5167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5168 ac_cv_sys_large_files
=unknown
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5173 $as_echo "$ac_cv_sys_large_files" >&6; }
5174 case $ac_cv_sys_large_files in #(
5177 cat >>confdefs.h
<<_ACEOF
5178 #define _LARGE_FILES $ac_cv_sys_large_files
5190 # Code from module alloca:
5191 # Code from module alloca-opt:
5192 # Code from module canonicalize-lgpl:
5193 # Code from module chdir:
5194 # Code from module configmake:
5195 # Code from module dirent:
5196 # Code from module dirfd:
5197 # Code from module dirname-lgpl:
5198 # Code from module dosname:
5199 # Code from module double-slash-root:
5200 # Code from module errno:
5201 # Code from module extensions:
5203 # Code from module extern-inline:
5204 # Code from module float:
5205 # Code from module fnmatch:
5206 # Code from module fnmatch-gnu:
5207 # Code from module fpieee:
5209 # Code from module fpucw:
5210 # Code from module frexp:
5211 # Code from module frexpl:
5212 # Code from module include_next:
5213 # Code from module inttypes:
5214 # Code from module inttypes-incomplete:
5215 # Code from module isnand-nolibm:
5216 # Code from module isnanl-nolibm:
5217 # Code from module largefile:
5219 # Code from module localcharset:
5220 # Code from module lstat:
5221 # Code from module malloc-posix:
5222 # Code from module malloca:
5223 # Code from module math:
5224 # Code from module mbrtowc:
5225 # Code from module mbsinit:
5226 # Code from module mbsrtowcs:
5227 # Code from module memchr:
5228 # Code from module memmem:
5229 # Code from module memmem-simple:
5230 # Code from module multiarch:
5231 # Code from module nocrash:
5232 # Code from module pathmax:
5233 # Code from module readlink:
5234 # Code from module rename:
5235 # Code from module rmdir:
5236 # Code from module same-inode:
5237 # Code from module snippet/_Noreturn:
5238 # Code from module snippet/arg-nonnull:
5239 # Code from module snippet/c++defs:
5240 # Code from module snippet/warn-on-use:
5241 # Code from module ssize_t:
5242 # Code from module stat:
5243 # Code from module stdbool:
5244 # Code from module stddef:
5245 # Code from module stdint:
5246 # Code from module stdio:
5247 # Code from module stdlib:
5248 # Code from module streq:
5249 # Code from module string:
5250 # Code from module strnlen1:
5251 # Code from module strstr:
5252 # Code from module strstr-simple:
5253 # Code from module sys_stat:
5254 # Code from module sys_types:
5255 # Code from module time:
5256 # Code from module unistd:
5257 # Code from module update-copyright:
5258 # Code from module verify:
5259 # Code from module wchar:
5260 # Code from module wctype-h:
5263 ac_cpp
='$CPP $CPPFLAGS'
5264 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5267 if test -n "$ac_tool_prefix"; then
5268 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5269 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if test "${ac_cv_prog_CC+set}" = set; then :
5273 $as_echo_n "(cached) " >&6
5275 if test -n "$CC"; then
5276 ac_cv_prog_CC
="$CC" # Let the user override the test.
5278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir
=.
5283 for ac_exec_ext
in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 if test -n "$CC"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5298 $as_echo "$CC" >&6; }
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5306 if test -z "$ac_cv_prog_CC"; then
5308 # Extract the first word of "gcc", so it can be a program name with args.
5309 set dummy gcc
; ac_word
=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5315 if test -n "$ac_ct_CC"; then
5316 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir
=.
5323 for ac_exec_ext
in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_prog_ac_ct_CC
="gcc"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5336 if test -n "$ac_ct_CC"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5338 $as_echo "$ac_ct_CC" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5344 if test "x$ac_ct_CC" = x
; then
5347 case $cross_compiling:$ac_tool_warned in
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351 ac_tool_warned
=yes ;;
5359 if test -z "$CC"; then
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5362 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_prog_CC+set}" = set; then :
5366 $as_echo_n "(cached) " >&6
5368 if test -n "$CC"; then
5369 ac_cv_prog_CC
="$CC" # Let the user override the test.
5371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir
=.
5376 for ac_exec_ext
in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 if test -n "$CC"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5391 $as_echo "$CC" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5400 if test -z "$CC"; then
5401 # Extract the first word of "cc", so it can be a program name with args.
5402 set dummy cc
; ac_word
=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_CC+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5408 if test -n "$CC"; then
5409 ac_cv_prog_CC
="$CC" # Let the user override the test.
5412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir
=.
5417 for ac_exec_ext
in '' $ac_executable_extensions; do
5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5420 ac_prog_rejected
=yes
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 if test $ac_prog_rejected = yes; then
5432 # We found a bogon in the path, so make sure we never use it.
5433 set dummy
$ac_cv_prog_CC
5435 if test $# != 0; then
5436 # We chose a different compiler from the bogus one.
5437 # However, it has the same basename, so the bogon will be chosen
5438 # first if we set CC to just the basename; use the full file name.
5440 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5446 if test -n "$CC"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5448 $as_echo "$CC" >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5456 if test -z "$CC"; then
5457 if test -n "$ac_tool_prefix"; then
5458 for ac_prog
in cl.exe
5460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5461 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if test "${ac_cv_prog_CC+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5467 if test -n "$CC"; then
5468 ac_cv_prog_CC
="$CC" # Let the user override the test.
5470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir
=.
5475 for ac_exec_ext
in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 if test -n "$CC"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5490 $as_echo "$CC" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5497 test -n "$CC" && break
5500 if test -z "$CC"; then
5502 for ac_prog
in cl.exe
5504 # Extract the first word of "$ac_prog", so it can be a program name with args.
5505 set dummy
$ac_prog; ac_word
=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5511 if test -n "$ac_ct_CC"; then
5512 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir
=.
5519 for ac_exec_ext
in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_prog_ac_ct_CC
="$ac_prog"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5532 if test -n "$ac_ct_CC"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5534 $as_echo "$ac_ct_CC" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5541 test -n "$ac_ct_CC" && break
5544 if test "x$ac_ct_CC" = x
; then
5547 case $cross_compiling:$ac_tool_warned in
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551 ac_tool_warned
=yes ;;
5560 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5562 as_fn_error
"no acceptable C compiler found in \$PATH
5563 See \`config.log' for more details." "$LINENO" 5; }
5565 # Provide some information about the compiler.
5566 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5569 for ac_option
in --version -v -V -qversion; do
5570 { { ac_try
="$ac_compiler $ac_option >&5"
5572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5576 $as_echo "$ac_try_echo"; } >&5
5577 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5579 if test -s conftest.err; then
5581 ... rest of stderr output deleted ...
5582 10q' conftest.err >conftest.er1
5583 cat conftest.er1 >&5
5584 rm -f conftest.er1 conftest.err
5586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5587 test $ac_status = 0; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5591 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5592 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5593 $as_echo_n "(cached) " >&6
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5609 if ac_fn_c_try_compile "$LINENO"; then :
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5619 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5620 if test $ac_compiler_gnu = yes; then
5625 ac_test_CFLAGS=${CFLAGS+set}
5626 ac_save_CFLAGS=$CFLAGS
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5628 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5629 if test "${ac_cv_prog_cc_g+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5632 ac_save_c_werror_flag=$ac_c_werror_flag
5633 ac_c_werror_flag=yes
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5647 if ac_fn_c_try_compile "$LINENO"; then :
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5662 if ac_fn_c_try_compile "$LINENO"; then :
5665 ac_c_werror_flag=$ac_save_c_werror_flag
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5678 if ac_fn_c_try_compile "$LINENO"; then :
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 ac_c_werror_flag=$ac_save_c_werror_flag
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5689 $as_echo "$ac_cv_prog_cc_g" >&6; }
5690 if test "$ac_test_CFLAGS" = set; then
5691 CFLAGS=$ac_save_CFLAGS
5692 elif test $ac_cv_prog_cc_g = yes; then
5693 if test "$GCC" = yes; then
5699 if test "$GCC" = yes; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5706 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5707 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5710 ac_cv_prog_cc_c89=no
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5716 #include <sys/types.h>
5717 #include <sys/stat.h>
5718 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5719 struct buf { int x; };
5720 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5721 static char *e (p, i)
5727 static char *f (char * (*g) (char **, int), char **p, ...)
5732 s = g (p, va_arg (v,int));
5737 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5738 function prototypes and stuff, but not '\xHH' hex character constants.
5739 These don't provoke an error unfortunately, instead are silently treated
5740 as 'x'. The following induces an error, until -std is added to get
5741 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5742 array size at least. It's necessary to write '\x00'==0 to get something
5743 that's true only with -std. */
5744 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5746 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5747 inside strings and character constants. */
5749 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5751 int test (int i, double x);
5752 struct s1 {int (*f) (int a);};
5753 struct s2 {int (*f) (double a);};
5754 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5760 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5765 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5766 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5768 CC="$ac_save_CC $ac_arg"
5769 if ac_fn_c_try_compile "$LINENO"; then :
5770 ac_cv_prog_cc_c89=$ac_arg
5772 rm -f core conftest.err conftest.$ac_objext
5773 test "x$ac_cv_prog_cc_c89" != "xno" && break
5775 rm -f conftest.$ac_ext
5780 case "x$ac_cv_prog_cc_c89" in
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5783 $as_echo "none needed" >&6; } ;;
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5786 $as_echo "unsupported" >&6; } ;;
5788 CC="$CC $ac_cv_prog_cc_c89"
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5790 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5792 if test "x$ac_cv_prog_cc_c89" != xno; then :
5797 ac_cpp='$CPP $CPPFLAGS'
5798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5803 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5807 for ac_dir in ../.. "$srcdir"/../..; do
5808 for ac_t in install-sh install.sh shtool; do
5809 if test -f "$ac_dir/$ac_t"; then
5811 ac_install_sh="$ac_aux_dir/$ac_t -c"
5816 if test -z "$ac_aux_dir"; then
5817 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5820 # These three variables are undocumented and unsupported,
5821 # and are intended to be withdrawn in a future Autoconf release.
5822 # They can cause serious problems if a builder's source tree is in a directory
5823 # whose full name contains unusual characters.
5824 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5825 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5826 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5830 $as_echo_n "checking target system type... " >&6; }
5831 if test "${ac_cv_target+set}" = set; then :
5832 $as_echo_n "(cached) " >&6
5834 if test "x$target_alias" = x; then
5835 ac_cv_target=$ac_cv_host
5837 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5838 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5843 $as_echo "$ac_cv_target" >&6; }
5844 case $ac_cv_target in
5846 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5848 target=$ac_cv_target
5849 ac_save_IFS=$IFS; IFS='-'
5855 # Remember, the first character of IFS is used to create $*,
5856 # except with old shells:
5859 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5862 # The aliases save the names the user supplied, while $host etc.
5863 # will get canonicalized.
5864 test -n "$target_alias" &&
5865 test "$program_prefix$program_suffix$program_transform_name" = \
5867 program_prefix=${target_alias}-
5875 LIBC_FATAL_STDERR_=1
5876 export LIBC_FATAL_STDERR_
5878 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5879 # for constant arguments. Useless!
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5881 $as_echo_n "checking for working alloca.h... " >&6; }
5882 if test "${ac_cv_working_alloca_h+set}" = set; then :
5883 $as_echo_n "(cached) " >&6
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5891 char *p = (char *) alloca (2 * sizeof (int));
5897 if ac_fn_c_try_link "$LINENO"; then :
5898 ac_cv_working_alloca_h=yes
5900 ac_cv_working_alloca_h=no
5902 rm -f core conftest.err conftest.$ac_objext \
5903 conftest$ac_exeext conftest.$ac_ext
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5906 $as_echo "$ac_cv_working_alloca_h" >&6; }
5907 if test $ac_cv_working_alloca_h = yes; then
5909 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5914 $as_echo_n "checking for alloca... " >&6; }
5915 if test "${ac_cv_func_alloca_works+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5921 # define alloca __builtin_alloca
5924 # include <malloc.h>
5925 # define alloca _alloca
5927 # ifdef HAVE_ALLOCA_H
5928 # include <alloca.h>
5933 # ifndef alloca /* predefined by HP cc +Olibcalls */
5944 char *p = (char *) alloca (1);
5950 if ac_fn_c_try_link "$LINENO"; then :
5951 ac_cv_func_alloca_works=yes
5953 ac_cv_func_alloca_works=no
5955 rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5959 $as_echo "$ac_cv_func_alloca_works" >&6; }
5961 if test $ac_cv_func_alloca_works = yes; then
5963 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5966 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5967 # that cause trouble. Some versions do not even contain alloca or
5968 # contain a buggy version. If you still want to use their alloca,
5969 # use ar to extract alloca.o from them instead of compiling alloca.c.
5975 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5977 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5981 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5982 if test "${ac_cv_os_cray+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 #if defined CRAY && ! defined CRAY2
5994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5995 $EGREP "webecray" >/dev/null 2>&1; then :
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6004 $as_echo "$ac_cv_os_cray" >&6; }
6005 if test $ac_cv_os_cray = yes; then
6006 for ac_func in _getb67 GETB67 getb67; do
6007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6009 eval as_val=\$$as_ac_var
6010 if test "x$as_val" = x""yes; then :
6012 cat >>confdefs.h <<_ACEOF
6013 #define CRAY_STACKSEG_END $ac_func
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6023 $as_echo_n "checking stack direction for C alloca... " >&6; }
6024 if test "${ac_cv_c_stack_direction+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6027 if test "$cross_compiling" = yes; then :
6028 ac_cv_c_stack_direction=0
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 $ac_includes_default
6034 find_stack_direction (int *addr, int depth)
6039 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6040 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6045 main (int argc, char **argv)
6047 return find_stack_direction (0, argc + !argv + 20) < 0;
6050 if ac_fn_c_try_run "$LINENO"; then :
6051 ac_cv_c_stack_direction=1
6053 ac_cv_c_stack_direction=-1
6055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6056 conftest.$ac_objext conftest.beam conftest.$ac_ext
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6061 $as_echo "$ac_cv_c_stack_direction" >&6; }
6062 cat >>confdefs.h <<_ACEOF
6063 #define STACK_DIRECTION $ac_cv_c_stack_direction
6072 GNULIB_CALLOC_POSIX=0;
6073 GNULIB_CANONICALIZE_FILE_NAME=0;
6074 GNULIB_GETLOADAVG=0;
6077 GNULIB_MALLOC_POSIX=0;
6084 GNULIB_POSIX_OPENPT=0;
6090 GNULIB_REALLOC_POSIX=0;
6097 GNULIB_SYSTEM_POSIX=0;
6103 HAVE_CANONICALIZE_FILE_NAME=1;
6104 HAVE_DECL_GETLOADAVG=1;
6112 HAVE_POSIX_OPENPT=1;
6125 HAVE_STRUCT_RANDOM_DATA=1;
6126 HAVE_SYS_LOADAVG_H=0;
6128 HAVE_DECL_UNSETENV=1;
6130 REPLACE_CANONICALIZE_FILE_NAME=0;
6135 REPLACE_PTSNAME_R=0;
6148 for ac_func in $ac_func_list
6150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6151 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6152 eval as_val=\$$as_ac_var
6153 if test "x$as_val" = x""yes; then :
6154 cat >>confdefs.h <<_ACEOF
6155 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6170 $as_echo_n "checking whether // is distinct from /... " >&6; }
6171 if test "${gl_cv_double_slash_root+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6174 if test x"$cross_compiling" = xyes ; then
6175 # When cross-compiling, there is no way to tell whether // is special
6176 # short of a list of hosts. However, the only known hosts to date
6177 # that have a distinct // are Apollo DomainOS (too old to port to),
6178 # Cygwin, and z/OS. If anyone knows of another system for which // has
6179 # special semantics and is distinct from /, please report it to
6180 # <bug-gnulib@gnu.org>.
6182 *-cygwin | i370-ibm-openedition)
6183 gl_cv_double_slash_root=yes ;;
6185 # Be optimistic and assume that / and // are the same when we
6187 gl_cv_double_slash_root='unknown, assuming no' ;;
6190 set x `ls -di / // 2>/dev
/null
`
6191 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6192 gl_cv_double_slash_root=no
6194 gl_cv_double_slash_root=yes
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6199 $as_echo "$gl_cv_double_slash_root" >&6; }
6200 if test "$gl_cv_double_slash_root" = yes; then
6202 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6211 $as_echo_n "checking whether realpath works... " >&6; }
6212 if test "${gl_cv_func_realpath_works+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6218 if test "$cross_compiling" = yes; then :
6220 # Guess yes on glibc systems.
6221 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6222 # If we don't know, assume the worst.
6223 *) gl_cv_func_realpath_works="guessing no" ;;
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6233 #if defined __MACH__ && defined __APPLE__
6234 /* Avoid a crash on Mac OS X. */
6235 #include <mach/mach.h>
6236 #include <mach/mach_error.h>
6237 #include <mach/thread_status.h>
6238 #include <mach/exception.h>
6239 #include <mach/task.h>
6240 #include <pthread.h>
6241 /* The exception port on which our thread listens. */
6242 static mach_port_t our_exception_port;
6243 /* The main function of the thread listening for exceptions of type
6246 mach_exception_thread (void *arg)
6248 /* Buffer for a message to be received. */
6250 mach_msg_header_t head;
6251 mach_msg_body_t msgh_body;
6254 mach_msg_return_t retval;
6255 /* Wait for a message on the exception port. */
6256 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6257 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6258 if (retval != MACH_MSG_SUCCESS)
6265 mach_port_t self = mach_task_self ();
6266 /* Allocate a port on which the thread shall listen for exceptions. */
6267 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6269 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6270 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6271 MACH_MSG_TYPE_MAKE_SEND)
6273 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6275 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6276 /* Create the thread listening on the exception port. */
6277 pthread_attr_t attr;
6279 if (pthread_attr_init (&attr) == 0
6280 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6281 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6282 pthread_attr_destroy (&attr);
6283 /* Replace the exception port info for these exceptions with our own.
6284 Note that we replace the exception port for the entire task, not only
6285 for a particular thread. This has the effect that when our exception
6286 port gets the message, the thread specific exception port has already
6287 been asked, and we don't need to bother about it.
6288 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6289 task_set_exception_ports (self, mask, our_exception_port,
6290 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6295 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6296 /* Avoid a crash on native Windows. */
6297 #define WIN32_LEAN_AND_MEAN
6298 #include <windows.h>
6299 #include <winerror.h>
6301 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6303 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6305 case EXCEPTION_ACCESS_VIOLATION:
6306 case EXCEPTION_IN_PAGE_ERROR:
6307 case EXCEPTION_STACK_OVERFLOW:
6308 case EXCEPTION_GUARD_PAGE:
6309 case EXCEPTION_PRIV_INSTRUCTION:
6310 case EXCEPTION_ILLEGAL_INSTRUCTION:
6311 case EXCEPTION_DATATYPE_MISALIGNMENT:
6312 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6313 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6316 return EXCEPTION_CONTINUE_SEARCH;
6321 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6324 /* Avoid a crash on POSIX systems. */
6326 /* A POSIX signal handler. */
6328 exception_handler (int sig)
6336 signal (SIGSEGV, exception_handler);
6339 signal (SIGBUS, exception_handler);
6353 char *name = realpath ("conftest.a", NULL);
6354 if (!(name && *name == '/'))
6358 char *name = realpath ("conftest.b/../conftest.a", NULL);
6363 char *name = realpath ("conftest.a/", NULL);
6368 char *name1 = realpath (".", NULL);
6369 char *name2 = realpath ("conftest.d//./..", NULL);
6370 if (strcmp (name1, name2) != 0)
6380 if ac_fn_c_try_run "$LINENO"; then :
6381 gl_cv_func_realpath_works=yes
6383 gl_cv_func_realpath_works=no
6385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6386 conftest.$ac_objext conftest.beam conftest.$ac_ext
6389 rm -rf conftest.a conftest.d
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6393 $as_echo "$gl_cv_func_realpath_works" >&6; }
6394 case "$gl_cv_func_realpath_works" in
6397 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6405 for ac_header in $ac_header_list
6407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6408 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6410 eval as_val=\$$as_ac_Header
6411 if test "x$as_val" = x""yes; then :
6412 cat >>confdefs.h <<_ACEOF
6413 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6437 GNULIB_EUIDACCESS=0;
6445 GNULIB_GETDOMAINNAME=0;
6446 GNULIB_GETDTABLESIZE=0;
6448 GNULIB_GETHOSTNAME=0;
6450 GNULIB_GETLOGIN_R=0;
6451 GNULIB_GETPAGESIZE=0;
6452 GNULIB_GETUSERSHELL=0;
6453 GNULIB_GROUP_MEMBER=0;
6465 GNULIB_READLINKAT=0;
6467 GNULIB_SETHOSTNAME=0;
6472 GNULIB_UNISTD_H_NONBLOCKING=0;
6473 GNULIB_UNISTD_H_SIGPIPE=0;
6488 HAVE_GETDTABLESIZE=1;
6493 HAVE_GROUP_MEMBER=1;
6509 HAVE_DECL_ENVIRON=1;
6511 HAVE_DECL_FDATASYNC=1;
6512 HAVE_DECL_GETDOMAINNAME=1;
6513 HAVE_DECL_GETLOGIN_R=1;
6514 HAVE_DECL_GETPAGESIZE=1;
6515 HAVE_DECL_GETUSERSHELL=1;
6516 HAVE_DECL_SETHOSTNAME=1;
6517 HAVE_DECL_TTYNAME_R=1;
6525 REPLACE_FTRUNCATE=0;
6527 REPLACE_GETDOMAINNAME=0;
6528 REPLACE_GETLOGIN_R=0;
6529 REPLACE_GETGROUPS=0;
6530 REPLACE_GETPAGESIZE=0;
6543 REPLACE_TTYNAME_R=0;
6548 UNISTD_H_HAVE_WINSOCK2_H=0;
6549 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6566 HAVE_DECL_FDOPENDIR=1;
6573 REPLACE_FDOPENDIR=0;
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6578 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6579 if test "${gl_cv_have_include_next+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6582 rm -rf conftestd1a conftestd1b conftestd2
6583 mkdir conftestd1a conftestd1b conftestd2
6584 cat <<EOF > conftestd1a/conftest.h
6585 #define DEFINED_IN_CONFTESTD1
6586 #include_next <conftest.h>
6587 #ifdef DEFINED_IN_CONFTESTD2
6590 #error "include_next doesn't work"
6593 cat <<EOF > conftestd1b/conftest.h
6594 #define DEFINED_IN_CONFTESTD1
6596 #include_next <conftest.h>
6597 #ifdef DEFINED_IN_CONFTESTD2
6600 #error "include_next doesn't work"
6603 cat <<EOF > conftestd2/conftest.h
6604 #ifndef DEFINED_IN_CONFTESTD1
6605 #error "include_next test doesn't work"
6607 #define DEFINED_IN_CONFTESTD2
6609 gl_save_CPPFLAGS="$CPPFLAGS"
6610 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6613 #include <conftest.h>
6615 if ac_fn_c_try_compile "$LINENO"; then :
6616 gl_cv_have_include_next=yes
6618 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 #include <conftest.h>
6623 if ac_fn_c_try_compile "$LINENO"; then :
6624 gl_cv_have_include_next=buggy
6626 gl_cv_have_include_next=no
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632 CPPFLAGS="$gl_save_CPPFLAGS"
6633 rm -rf conftestd1a conftestd1b conftestd2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6637 $as_echo "$gl_cv_have_include_next" >&6; }
6638 PRAGMA_SYSTEM_HEADER=
6639 if test $gl_cv_have_include_next = yes; then
6640 INCLUDE_NEXT=include_next
6641 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6642 if test -n "$GCC"; then
6643 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6646 if test $gl_cv_have_include_next = buggy; then
6647 INCLUDE_NEXT=include
6648 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6650 INCLUDE_NEXT=include
6651 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6658 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6659 if test "${gl_cv_pragma_columns+set}" = set; then :
6660 $as_echo_n "(cached) " >&6
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6671 $EGREP "choke me" >/dev/null 2>&1; then :
6672 gl_cv_pragma_columns=yes
6674 gl_cv_pragma_columns=no
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6681 $as_echo "$gl_cv_pragma_columns" >&6; }
6682 if test $gl_cv_pragma_columns = yes; then
6683 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6694 $as_echo_n "checking for complete errno.h... " >&6; }
6695 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6703 #if !defined ETXTBSY
6712 #if !defined ENOLINK
6718 #if !defined EMULTIHOP
6721 #if !defined EBADMSG
6724 #if !defined EOVERFLOW
6727 #if !defined ENOTSUP
6730 #if !defined ENETRESET
6733 #if !defined ECONNABORTED
6742 #if !defined ECANCELED
6745 #if !defined EOWNERDEAD
6748 #if !defined ENOTRECOVERABLE
6756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6757 $EGREP "booboo" >/dev/null 2>&1; then :
6758 gl_cv_header_errno_h_complete=no
6760 gl_cv_header_errno_h_complete=yes
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6767 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6768 if test $gl_cv_header_errno_h_complete = yes; then
6779 if test $gl_cv_have_include_next = yes; then
6780 gl_cv_next_errno_h='<'errno.h'>'
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6783 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6784 if test "${gl_cv_next_errno_h+set}" = set; then :
6785 $as_echo_n "(cached) " >&6
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6794 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6795 *) gl_absname_cpp="$ac_cpp" ;;
6800 gl_dirsep_regex='[/\\]'
6803 gl_dirsep_regex='\/'
6806 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6808 gl_header_literal_regex=`echo 'errno.h' \
6809 |
sed -e "$gl_make_literal_regex_sed"`
6810 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6811 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6816 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6817 sed -n "$gl_absolute_header_sed"`'"'
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6822 $as_echo "$gl_cv_next_errno_h" >&6; }
6824 NEXT_ERRNO_H=$gl_cv_next_errno_h
6826 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6827 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6828 gl_next_as_first_directive='<'errno.h'>'
6830 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6831 gl_next_as_first_directive=$gl_cv_next_errno_h
6833 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6841 if test -n "$ERRNO_H"; then
6842 GL_GENERATE_ERRNO_H_TRUE=
6843 GL_GENERATE_ERRNO_H_FALSE='#'
6845 GL_GENERATE_ERRNO_H_TRUE='#'
6846 GL_GENERATE_ERRNO_H_FALSE=
6850 if test -n "$ERRNO_H"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6852 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6853 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6867 $EGREP "yes" >/dev/null 2>&1; then :
6868 gl_cv_header_errno_h_EMULTIHOP=yes
6870 gl_cv_header_errno_h_EMULTIHOP=no
6874 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6878 #define _XOPEN_SOURCE_EXTENDED 1
6885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6886 $EGREP "yes" >/dev/null 2>&1; then :
6887 gl_cv_header_errno_h_EMULTIHOP=hidden
6891 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6892 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6893 #define _XOPEN_SOURCE_EXTENDED 1
6895 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6907 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6908 case $gl_cv_header_errno_h_EMULTIHOP in
6910 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6913 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6921 if test -n "$ERRNO_H"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6923 $as_echo_n "checking for ENOLINK value... " >&6; }
6924 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6925 $as_echo_n "(cached) " >&6
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6938 $EGREP "yes" >/dev/null 2>&1; then :
6939 gl_cv_header_errno_h_ENOLINK=yes
6941 gl_cv_header_errno_h_ENOLINK=no
6945 if test $gl_cv_header_errno_h_ENOLINK = no; then
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6949 #define _XOPEN_SOURCE_EXTENDED 1
6956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6957 $EGREP "yes" >/dev/null 2>&1; then :
6958 gl_cv_header_errno_h_ENOLINK=hidden
6962 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6963 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6964 #define _XOPEN_SOURCE_EXTENDED 1
6966 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6978 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6979 case $gl_cv_header_errno_h_ENOLINK in
6981 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6984 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6992 if test -n "$ERRNO_H"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6994 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6995 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7009 $EGREP "yes" >/dev/null 2>&1; then :
7010 gl_cv_header_errno_h_EOVERFLOW=yes
7012 gl_cv_header_errno_h_EOVERFLOW=no
7016 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7020 #define _XOPEN_SOURCE_EXTENDED 1
7027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7028 $EGREP "yes" >/dev/null 2>&1; then :
7029 gl_cv_header_errno_h_EOVERFLOW=hidden
7033 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7034 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7035 #define _XOPEN_SOURCE_EXTENDED 1
7037 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7049 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7050 case $gl_cv_header_errno_h_EOVERFLOW in
7052 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7055 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7069 $as_echo_n "checking for mbstate_t... " >&6; }
7070 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7075 $ac_includes_default
7076 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7078 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7079 included before <wchar.h>. */
7087 mbstate_t x; return sizeof x;
7092 if ac_fn_c_try_compile "$LINENO"; then :
7093 ac_cv_type_mbstate_t=yes
7095 ac_cv_type_mbstate_t=no
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7100 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7101 if test $ac_cv_type_mbstate_t = yes; then
7103 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7107 $as_echo "#define mbstate_t int" >>confdefs.h
7205 GNULIB_REMAINDERF=0;
7206 GNULIB_REMAINDERL=0;
7292 HAVE_DECL_COPYSIGNF=1;
7309 HAVE_DECL_REMAINDER=1;
7310 HAVE_DECL_REMAINDERL=1;
7372 REPLACE_REMAINDER=0;
7373 REPLACE_REMAINDERF=0;
7374 REPLACE_REMAINDERL=0;
7379 REPLACE_SIGNBIT_USING_GCC=0;
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7387 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7388 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7399 int e; return frexp (x, &e) > 0;
7404 if ac_fn_c_try_link "$LINENO"; then :
7405 gl_cv_func_frexp_no_libm=yes
7407 gl_cv_func_frexp_no_libm=no
7409 rm -f core conftest.err conftest.$ac_objext \
7410 conftest$ac_exeext conftest.$ac_ext
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7414 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7420 $as_echo_n "checking whether long double and double are the same... " >&6; }
7421 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7430 typedef int check[sizeof (long double) == sizeof (double)
7431 && LDBL_MANT_DIG == DBL_MANT_DIG
7432 && LDBL_MAX_EXP == DBL_MAX_EXP
7433 && LDBL_MIN_EXP == DBL_MIN_EXP
7440 if ac_fn_c_try_compile "$LINENO"; then :
7441 gl_cv_long_double_equals_double=yes
7443 gl_cv_long_double_equals_double=no
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7449 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7450 if test $gl_cv_long_double_equals_double = yes; then
7452 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7454 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7456 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7462 $as_echo_n "checking for unsigned long long int... " >&6; }
7463 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7466 ac_cv_type_unsigned_long_long_int=yes
7467 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7471 /* For now, do not test the preprocessor; as of 2007 there are too many
7472 implementations with broken preprocessors. Perhaps this can
7473 be revisited in 2012. In the meantime, code should not expect
7474 #if to work with literals wider than 32 bits. */
7475 /* Test literals. */
7476 long long int ll = 9223372036854775807ll;
7477 long long int nll = -9223372036854775807LL;
7478 unsigned long long int ull = 18446744073709551615ULL;
7479 /* Test constant expressions. */
7480 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7482 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7488 /* Test availability of runtime routines for shift and division. */
7489 long long int llmax = 9223372036854775807ll;
7490 unsigned long long int ullmax = 18446744073709551615ull;
7491 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7492 | (llmax / ll) | (llmax % ll)
7493 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7494 | (ullmax / ull) | (ullmax % ull));
7500 if ac_fn_c_try_link "$LINENO"; then :
7503 ac_cv_type_unsigned_long_long_int=no
7505 rm -f core conftest.err conftest.$ac_objext \
7506 conftest$ac_exeext conftest.$ac_ext
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7510 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7511 if test $ac_cv_type_unsigned_long_long_int = yes; then
7513 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7520 $as_echo_n "checking for long long int... " >&6; }
7521 if test "${ac_cv_type_long_long_int+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7524 ac_cv_type_long_long_int=yes
7525 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7526 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7527 if test $ac_cv_type_long_long_int = yes; then
7528 if test "$cross_compiling" = yes; then :
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7536 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7537 # define LLONG_MAX (HALF - 1 + HALF)
7542 long long int n = 1;
7546 long long int m = n << i;
7549 if (LLONG_MAX / 2 < m)
7557 if ac_fn_c_try_run "$LINENO"; then :
7560 ac_cv_type_long_long_int=no
7562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7563 conftest.$ac_objext conftest.beam conftest.$ac_ext
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7570 $as_echo "$ac_cv_type_long_long_int" >&6; }
7571 if test $ac_cv_type_long_long_int = yes; then
7573 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7582 gl_cv_c_multiarch=no
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 #ifndef __APPLE_CC__
7586 not a universal capable compiler
7591 if ac_fn_c_try_compile "$LINENO"; then :
7595 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7596 if test -n "$prev"; then
7598 i?86 | x86_64 | ppc | ppc64)
7599 if test -z "$arch" || test "$arch" = "$word"; then
7602 gl_cv_c_multiarch=yes
7608 if test "x$word" = "x-arch"; then
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 if test $gl_cv_c_multiarch = yes; then
7617 APPLE_UNIVERSAL_BUILD=1
7619 APPLE_UNIVERSAL_BUILD=0
7626 if test $ac_cv_type_long_long_int = yes; then
7627 HAVE_LONG_LONG_INT=1
7629 HAVE_LONG_LONG_INT=0
7633 if test $ac_cv_type_unsigned_long_long_int = yes; then
7634 HAVE_UNSIGNED_LONG_LONG_INT=1
7636 HAVE_UNSIGNED_LONG_LONG_INT=0
7641 if test $ac_cv_header_wchar_h = yes; then
7648 if test $ac_cv_header_inttypes_h = yes; then
7655 if test $ac_cv_header_sys_types_h = yes; then
7671 if test $gl_cv_have_include_next = yes; then
7672 gl_cv_next_stdint_h='<'stdint.h'>'
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7675 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7676 if test "${gl_cv_next_stdint_h+set}" = set; then :
7677 $as_echo_n "(cached) " >&6
7680 if test $ac_cv_header_stdint_h = yes; then
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7689 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7690 *) gl_absname_cpp="$ac_cpp" ;;
7695 gl_dirsep_regex='[/\\]'
7698 gl_dirsep_regex='\/'
7701 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7703 gl_header_literal_regex=`echo 'stdint.h' \
7704 |
sed -e "$gl_make_literal_regex_sed"`
7705 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7706 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7711 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7712 sed -n "$gl_absolute_header_sed"`'"'
7714 gl_cv_next_stdint_h='<'stdint.h'>'
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7720 $as_echo "$gl_cv_next_stdint_h" >&6; }
7722 NEXT_STDINT_H=$gl_cv_next_stdint_h
7724 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7725 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7726 gl_next_as_first_directive='<'stdint.h'>'
7728 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7729 gl_next_as_first_directive=$gl_cv_next_stdint_h
7731 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7736 if test $ac_cv_header_stdint_h = yes; then
7743 if test $ac_cv_header_stdint_h = yes; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7745 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7746 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7749 gl_cv_header_working_stdint_h=no
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7754 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7756 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7757 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7758 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7762 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7763 included before <wchar.h>. */
7774 int8_t a1 = INT8_MAX;
7775 int8_t a1min = INT8_MIN;
7778 int16_t a2 = INT16_MAX;
7779 int16_t a2min = INT16_MIN;
7782 int32_t a3 = INT32_MAX;
7783 int32_t a3min = INT32_MIN;
7786 int64_t a4 = INT64_MAX;
7787 int64_t a4min = INT64_MIN;
7790 uint8_t b1 = UINT8_MAX;
7792 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7795 uint16_t b2 = UINT16_MAX;
7798 uint32_t b3 = UINT32_MAX;
7801 uint64_t b4 = UINT64_MAX;
7803 int_least8_t c1 = INT8_C (0x7f);
7804 int_least8_t c1max = INT_LEAST8_MAX;
7805 int_least8_t c1min = INT_LEAST8_MIN;
7806 int_least16_t c2 = INT16_C (0x7fff);
7807 int_least16_t c2max = INT_LEAST16_MAX;
7808 int_least16_t c2min = INT_LEAST16_MIN;
7809 int_least32_t c3 = INT32_C (0x7fffffff);
7810 int_least32_t c3max = INT_LEAST32_MAX;
7811 int_least32_t c3min = INT_LEAST32_MIN;
7812 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7813 int_least64_t c4max = INT_LEAST64_MAX;
7814 int_least64_t c4min = INT_LEAST64_MIN;
7815 uint_least8_t d1 = UINT8_C (0xff);
7816 uint_least8_t d1max = UINT_LEAST8_MAX;
7817 uint_least16_t d2 = UINT16_C (0xffff);
7818 uint_least16_t d2max = UINT_LEAST16_MAX;
7819 uint_least32_t d3 = UINT32_C (0xffffffff);
7820 uint_least32_t d3max = UINT_LEAST32_MAX;
7821 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7822 uint_least64_t d4max = UINT_LEAST64_MAX;
7823 int_fast8_t e1 = INT_FAST8_MAX;
7824 int_fast8_t e1min = INT_FAST8_MIN;
7825 int_fast16_t e2 = INT_FAST16_MAX;
7826 int_fast16_t e2min = INT_FAST16_MIN;
7827 int_fast32_t e3 = INT_FAST32_MAX;
7828 int_fast32_t e3min = INT_FAST32_MIN;
7829 int_fast64_t e4 = INT_FAST64_MAX;
7830 int_fast64_t e4min = INT_FAST64_MIN;
7831 uint_fast8_t f1 = UINT_FAST8_MAX;
7832 uint_fast16_t f2 = UINT_FAST16_MAX;
7833 uint_fast32_t f3 = UINT_FAST32_MAX;
7834 uint_fast64_t f4 = UINT_FAST64_MAX;
7836 intptr_t g = INTPTR_MAX;
7837 intptr_t gmin = INTPTR_MIN;
7840 uintptr_t h = UINTPTR_MAX;
7842 intmax_t i = INTMAX_MAX;
7843 uintmax_t j = UINTMAX_MAX;
7845 #include <limits.h> /* for CHAR_BIT */
7846 #define TYPE_MINIMUM(t) \
7847 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7848 #define TYPE_MAXIMUM(t) \
7849 ((t) ((t) 0 < (t) -1 \
7851 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7854 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7855 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7857 /* Detect bug in FreeBSD 6.0 / ia64. */
7858 int check_SIG_ATOMIC:
7859 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7860 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7862 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7864 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7865 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7867 /* Detect bug in mingw. */
7869 WINT_MIN == TYPE_MINIMUM (wint_t)
7870 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7873 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7875 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7877 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7879 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7881 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7884 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7887 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7890 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7892 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7893 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7894 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7895 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7896 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7897 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7898 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7899 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7900 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7901 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7902 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7913 if ac_fn_c_try_compile "$LINENO"; then :
7914 if test "$cross_compiling" = yes; then :
7915 gl_cv_header_working_stdint_h=yes
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7922 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7926 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7927 included before <wchar.h>. */
7939 #define MVAL(macro) MVAL1(macro)
7940 #define MVAL1(expression) #expression
7941 static const char *macro_values[] =
7975 for (mv = macro_values; *mv != NULL; mv++)
7977 const char *value = *mv;
7978 /* Test whether it looks like a cast expression. */
7979 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7980 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7981 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7982 || strncmp (value, "((int)"/*)*/, 6) == 0
7983 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7984 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7985 return mv - macro_values + 1;
7993 if ac_fn_c_try_run "$LINENO"; then :
7994 gl_cv_header_working_stdint_h=yes
7996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7997 conftest.$ac_objext conftest.beam conftest.$ac_ext
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8006 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8008 if test "$gl_cv_header_working_stdint_h" = yes; then
8011 for ac_header in sys/inttypes.h sys/bitypes.h
8013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8014 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8015 eval as_val=\$$as_ac_Header
8016 if test "x$as_val" = x""yes; then :
8017 cat >>confdefs.h <<_ACEOF
8018 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8025 if test $ac_cv_header_sys_inttypes_h = yes; then
8026 HAVE_SYS_INTTYPES_H=1
8028 HAVE_SYS_INTTYPES_H=0
8031 if test $ac_cv_header_sys_bitypes_h = yes; then
8032 HAVE_SYS_BITYPES_H=1
8034 HAVE_SYS_BITYPES_H=0
8040 if test $APPLE_UNIVERSAL_BUILD = 0; then
8043 for gltype in ptrdiff_t size_t ; do
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8045 $as_echo_n "checking for bit size of $gltype... " >&6; }
8046 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8047 $as_echo_n "(cached) " >&6
8049 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8050 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8051 included before <wchar.h>. */
8060 #include <limits.h>"; then :
8066 eval gl_cv_bitsizeof_${gltype}=\$result
8069 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8071 $as_echo "$ac_res" >&6; }
8072 eval result=\$gl_cv_bitsizeof_${gltype}
8073 if test $result = unknown; then
8076 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8077 cat >>confdefs.h <<_ACEOF
8078 #define BITSIZEOF_${GLTYPE} $result
8081 eval BITSIZEOF_${GLTYPE}=\$result
8088 for gltype in sig_atomic_t wchar_t wint_t ; do
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8090 $as_echo_n "checking for bit size of $gltype... " >&6; }
8091 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8092 $as_echo_n "(cached) " >&6
8094 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8095 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8096 included before <wchar.h>. */
8105 #include <limits.h>"; then :
8111 eval gl_cv_bitsizeof_${gltype}=\$result
8114 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8116 $as_echo "$ac_res" >&6; }
8117 eval result=\$gl_cv_bitsizeof_${gltype}
8118 if test $result = unknown; then
8121 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8122 cat >>confdefs.h <<_ACEOF
8123 #define BITSIZEOF_${GLTYPE} $result
8126 eval BITSIZEOF_${GLTYPE}=\$result
8132 for gltype in sig_atomic_t wchar_t wint_t ; do
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8134 $as_echo_n "checking whether $gltype is signed... " >&6; }
8135 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8136 $as_echo_n "(cached) " >&6
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8141 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8142 included before <wchar.h>. */
8151 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8160 if ac_fn_c_try_compile "$LINENO"; then :
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 eval gl_cv_type_${gltype}_signed=\$result
8169 eval ac_res=\$gl_cv_type_${gltype}_signed
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8171 $as_echo "$ac_res" >&6; }
8172 eval result=\$gl_cv_type_${gltype}_signed
8173 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8174 if test "$result" = yes; then
8175 cat >>confdefs.h <<_ACEOF
8176 #define HAVE_SIGNED_${GLTYPE} 1
8179 eval HAVE_SIGNED_${GLTYPE}=1
8181 eval HAVE_SIGNED_${GLTYPE}=0
8186 gl_cv_type_ptrdiff_t_signed=yes
8187 gl_cv_type_size_t_signed=no
8188 if test $APPLE_UNIVERSAL_BUILD = 0; then
8191 for gltype in ptrdiff_t size_t ; do
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8193 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8194 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8195 $as_echo_n "(cached) " >&6
8197 eval gl_cv_type_${gltype}_suffix=no
8198 eval result=\$gl_cv_type_${gltype}_signed
8199 if test "$result" = yes; then
8204 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8207 l) gltype1='long int';;
8208 ll) gltype1='long long int';;
8209 i64) gltype1='__int64';;
8210 u) gltype1='unsigned int';;
8211 ul) gltype1='unsigned long int';;
8212 ull) gltype1='unsigned long long int';;
8213 ui64)gltype1='unsigned __int64';;
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8218 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8219 included before <wchar.h>. */
8229 extern $gltype1 foo;
8238 if ac_fn_c_try_compile "$LINENO"; then :
8239 eval gl_cv_type_${gltype}_suffix=\$glsuf
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 eval result=\$gl_cv_type_${gltype}_suffix
8243 test "$result" != no && break
8246 eval ac_res=\$gl_cv_type_${gltype}_suffix
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8248 $as_echo "$ac_res" >&6; }
8249 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8250 eval result=\$gl_cv_type_${gltype}_suffix
8251 test "$result" = no && result=
8252 eval ${GLTYPE}_SUFFIX=\$result
8253 cat >>confdefs.h <<_ACEOF
8254 #define ${GLTYPE}_SUFFIX $result
8263 for gltype in sig_atomic_t wchar_t wint_t ; do
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8265 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8266 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8267 $as_echo_n "(cached) " >&6
8269 eval gl_cv_type_${gltype}_suffix=no
8270 eval result=\$gl_cv_type_${gltype}_signed
8271 if test "$result" = yes; then
8276 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8279 l) gltype1='long int';;
8280 ll) gltype1='long long int';;
8281 i64) gltype1='__int64';;
8282 u) gltype1='unsigned int';;
8283 ul) gltype1='unsigned long int';;
8284 ull) gltype1='unsigned long long int';;
8285 ui64)gltype1='unsigned __int64';;
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8290 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8291 included before <wchar.h>. */
8301 extern $gltype1 foo;
8310 if ac_fn_c_try_compile "$LINENO"; then :
8311 eval gl_cv_type_${gltype}_suffix=\$glsuf
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314 eval result=\$gl_cv_type_${gltype}_suffix
8315 test "$result" != no && break
8318 eval ac_res=\$gl_cv_type_${gltype}_suffix
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8320 $as_echo "$ac_res" >&6; }
8321 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8322 eval result=\$gl_cv_type_${gltype}_suffix
8323 test "$result" = no && result=
8324 eval ${GLTYPE}_SUFFIX=\$result
8325 cat >>confdefs.h <<_ACEOF
8326 #define ${GLTYPE}_SUFFIX $result
8333 if test $BITSIZEOF_WINT_T -lt 32; then
8340 if test -n "$STDINT_H"; then
8341 GL_GENERATE_STDINT_H_TRUE=
8342 GL_GENERATE_STDINT_H_FALSE='#'
8344 GL_GENERATE_STDINT_H_TRUE='#'
8345 GL_GENERATE_STDINT_H_FALSE=
8356 HAVE_DECL_IMAXABS=1;
8357 HAVE_DECL_IMAXDIV=1;
8358 HAVE_DECL_STRTOIMAX=1;
8359 HAVE_DECL_STRTOUMAX=1;
8360 REPLACE_STRTOIMAX=0;
8361 INT32_MAX_LT_INTMAX_MAX=1;
8362 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8363 PRI_MACROS_BROKEN=0;
8364 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8365 UINT32_MAX_LT_UINTMAX_MAX=1;
8366 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8382 if test $gl_cv_have_include_next = yes; then
8383 gl_cv_next_inttypes_h='<'inttypes.h'>'
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8386 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8387 if test "${gl_cv_next_inttypes_h+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8391 if test $ac_cv_header_inttypes_h = yes; then
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 #include <inttypes.h>
8400 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8401 *) gl_absname_cpp="$ac_cpp" ;;
8406 gl_dirsep_regex='[/\\]'
8409 gl_dirsep_regex='\/'
8412 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8414 gl_header_literal_regex=`echo 'inttypes.h' \
8415 |
sed -e "$gl_make_literal_regex_sed"`
8416 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8417 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8422 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8423 sed -n "$gl_absolute_header_sed"`'"'
8425 gl_cv_next_inttypes_h='<'inttypes.h'>'
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8431 $as_echo "$gl_cv_next_inttypes_h" >&6; }
8433 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8435 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8436 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8437 gl_next_as_first_directive='<'inttypes.h'>'
8439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8440 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8442 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8451 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8452 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8454 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8455 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8456 $as_echo_n "(cached) " >&6
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <inttypes.h>
8471 if ac_fn_c_try_compile "$LINENO"; then :
8472 eval "$as_gl_Symbol=yes"
8474 eval "$as_gl_Symbol=no"
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 eval ac_res=\$$as_gl_Symbol
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8480 $as_echo "$ac_res" >&6; }
8481 eval as_val=\$$as_gl_Symbol
8482 if test "x$as_val" = x""yes; then :
8483 cat >>confdefs.h <<_ACEOF
8484 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
8487 eval ac_cv_have_decl_$gl_func=yes
8493 for ac_header in inttypes.h
8495 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8496 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8497 cat >>confdefs.h <<_ACEOF
8498 #define HAVE_INTTYPES_H 1
8505 if test $ac_cv_header_inttypes_h = yes; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8507 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8508 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8515 #include <inttypes.h>
8528 if ac_fn_c_try_compile "$LINENO"; then :
8529 gt_cv_inttypes_pri_broken=no
8531 gt_cv_inttypes_pri_broken=yes
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8537 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8539 if test "$gt_cv_inttypes_pri_broken" = yes; then
8541 cat >>confdefs.h <<_ACEOF
8542 #define PRI_MACROS_BROKEN 1
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8553 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8554 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8558 if test "$cross_compiling" = yes; then :
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8563 #if defined arm || defined __arm || defined __arm__
8568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8569 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8570 gl_cv_cc_double_expbit0="unknown"
8574 if test "${ac_cv_c_bigendian+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
8577 ac_cv_c_bigendian=unknown
8578 # See if we're dealing with a universal compiler.
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #ifndef __APPLE_CC__
8582 not a universal capable compiler
8587 if ac_fn_c_try_compile "$LINENO"; then :
8589 # Check for potential -arch flags. It is not universal unless
8590 # there are at least two -arch flags with different values.
8593 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8594 if test -n "$ac_prev"; then
8596 i?86 | x86_64 | ppc | ppc64)
8597 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8600 ac_cv_c_bigendian=universal
8606 elif test "x$ac_word" = "x-arch"; then
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 if test $ac_cv_c_bigendian = unknown; then
8613 # See if sys/param.h defines the BYTE_ORDER macro.
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <sys/types.h>
8617 #include <sys/param.h>
8622 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8623 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8632 if ac_fn_c_try_compile "$LINENO"; then :
8633 # It does; now see whether it defined to BIG_ENDIAN or not.
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 #include <sys/types.h>
8637 #include <sys/param.h>
8642 #if BYTE_ORDER != BIG_ENDIAN
8650 if ac_fn_c_try_compile "$LINENO"; then :
8651 ac_cv_c_bigendian=yes
8653 ac_cv_c_bigendian=no
8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 if test $ac_cv_c_bigendian = unknown; then
8660 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8668 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8676 if ac_fn_c_try_compile "$LINENO"; then :
8677 # It does; now see whether it defined to _BIG_ENDIAN or not.
8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8693 if ac_fn_c_try_compile "$LINENO"; then :
8694 ac_cv_c_bigendian=yes
8696 ac_cv_c_bigendian=no
8698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 if test $ac_cv_c_bigendian = unknown; then
8703 # Compile a test program.
8704 if test "$cross_compiling" = yes; then :
8705 # Try to guess by grepping values from an object file.
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 short int ascii_mm[] =
8709 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8710 short int ascii_ii[] =
8711 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8712 int use_ascii (int i) {
8713 return ascii_mm[i] + ascii_ii[i];
8715 short int ebcdic_ii[] =
8716 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8717 short int ebcdic_mm[] =
8718 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8719 int use_ebcdic (int i) {
8720 return ebcdic_mm[i] + ebcdic_ii[i];
8727 return use_ascii (foo) == use_ebcdic (foo);
8732 if ac_fn_c_try_compile "$LINENO"; then :
8733 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8734 ac_cv_c_bigendian=yes
8736 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8737 if test "$ac_cv_c_bigendian" = unknown; then
8738 ac_cv_c_bigendian=no
8740 # finding both strings is unlikely to happen, but who knows?
8741 ac_cv_c_bigendian=unknown
8745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749 $ac_includes_default
8754 /* Are we little or big endian? From Harbison&Steele. */
8758 char c[sizeof (long int)];
8761 return u.c[sizeof (long int) - 1] == 1;
8767 if ac_fn_c_try_run "$LINENO"; then :
8768 ac_cv_c_bigendian=no
8770 ac_cv_c_bigendian=yes
8772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8773 conftest.$ac_objext conftest.beam conftest.$ac_ext
8779 case $ac_cv_c_bigendian in #(
8781 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8783 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8786 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8790 gl_cv_cc_double_expbit0="unknown" ;;
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8807 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8808 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8809 static unsigned int ored_words[NWORDS];
8810 static unsigned int anded_words[NWORDS];
8811 static void add_to_ored_words (double x)
8815 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8816 memset (&m, 0, sizeof (memory_double));
8818 for (i = 0; i < NWORDS; i++)
8820 ored_words[i] |= m.word[i];
8821 anded_words[i] &= m.word[i];
8827 FILE *fp = fopen ("conftest.out", "w");
8830 for (j = 0; j < NWORDS; j++)
8831 anded_words[j] = ~ (unsigned int) 0;
8832 add_to_ored_words (0.25);
8833 add_to_ored_words (0.5);
8834 add_to_ored_words (1.0);
8835 add_to_ored_words (2.0);
8836 add_to_ored_words (4.0);
8837 /* Remove bits that are common (e.g. if representation of the first mantissa
8838 bit is explicit). */
8839 for (j = 0; j < NWORDS; j++)
8840 ored_words[j] &= ~anded_words[j];
8841 /* Now find the nonzero word. */
8842 for (j = 0; j < NWORDS; j++)
8843 if (ored_words[j] != 0)
8848 for (i = j + 1; i < NWORDS; i++)
8849 if (ored_words[i] != 0)
8851 fprintf (fp, "unknown");
8852 return (fclose (fp) != 0);
8855 if ((ored_words[j] >> i) & 1)
8857 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8858 return (fclose (fp) != 0);
8861 fprintf (fp, "unknown");
8862 return (fclose (fp) != 0);
8866 if ac_fn_c_try_run "$LINENO"; then :
8867 gl_cv_cc_double_expbit0=`cat conftest.out
`
8869 gl_cv_cc_double_expbit0="unknown"
8871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8872 conftest.$ac_objext conftest.beam conftest.$ac_ext
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8879 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
8880 case "$gl_cv_cc_double_expbit0" in
8882 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
8883 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
8885 cat >>confdefs.h <<_ACEOF
8886 #define DBL_EXPBIT0_WORD $word
8890 cat >>confdefs.h <<_ACEOF
8891 #define DBL_EXPBIT0_BIT $bit
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8899 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8900 if test "${ac_cv_c_bigendian+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8903 ac_cv_c_bigendian=unknown
8904 # See if we're dealing with a universal compiler.
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 #ifndef __APPLE_CC__
8908 not a universal capable compiler
8913 if ac_fn_c_try_compile "$LINENO"; then :
8915 # Check for potential -arch flags. It is not universal unless
8916 # there are at least two -arch flags with different values.
8919 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8920 if test -n "$ac_prev"; then
8922 i?86 | x86_64 | ppc | ppc64)
8923 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8926 ac_cv_c_bigendian=universal
8932 elif test "x$ac_word" = "x-arch"; then
8937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 if test $ac_cv_c_bigendian = unknown; then
8939 # See if sys/param.h defines the BYTE_ORDER macro.
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 #include <sys/types.h>
8943 #include <sys/param.h>
8948 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8949 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8958 if ac_fn_c_try_compile "$LINENO"; then :
8959 # It does; now see whether it defined to BIG_ENDIAN or not.
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8962 #include <sys/types.h>
8963 #include <sys/param.h>
8968 #if BYTE_ORDER != BIG_ENDIAN
8976 if ac_fn_c_try_compile "$LINENO"; then :
8977 ac_cv_c_bigendian=yes
8979 ac_cv_c_bigendian=no
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 if test $ac_cv_c_bigendian = unknown; then
8986 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8994 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9002 if ac_fn_c_try_compile "$LINENO"; then :
9003 # It does; now see whether it defined to _BIG_ENDIAN or not.
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9019 if ac_fn_c_try_compile "$LINENO"; then :
9020 ac_cv_c_bigendian=yes
9022 ac_cv_c_bigendian=no
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 if test $ac_cv_c_bigendian = unknown; then
9029 # Compile a test program.
9030 if test "$cross_compiling" = yes; then :
9031 # Try to guess by grepping values from an object file.
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 short int ascii_mm[] =
9035 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9036 short int ascii_ii[] =
9037 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9038 int use_ascii (int i) {
9039 return ascii_mm[i] + ascii_ii[i];
9041 short int ebcdic_ii[] =
9042 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9043 short int ebcdic_mm[] =
9044 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9045 int use_ebcdic (int i) {
9046 return ebcdic_mm[i] + ebcdic_ii[i];
9053 return use_ascii (foo) == use_ebcdic (foo);
9058 if ac_fn_c_try_compile "$LINENO"; then :
9059 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9060 ac_cv_c_bigendian=yes
9062 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9063 if test "$ac_cv_c_bigendian" = unknown; then
9064 ac_cv_c_bigendian=no
9066 # finding both strings is unlikely to happen, but who knows?
9067 ac_cv_c_bigendian=unknown
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 $ac_includes_default
9080 /* Are we little or big endian? From Harbison&Steele. */
9084 char c[sizeof (long int)];
9087 return u.c[sizeof (long int) - 1] == 1;
9093 if ac_fn_c_try_run "$LINENO"; then :
9094 ac_cv_c_bigendian=no
9096 ac_cv_c_bigendian=yes
9098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9099 conftest.$ac_objext conftest.beam conftest.$ac_ext
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9105 $as_echo "$ac_cv_c_bigendian" >&6; }
9106 case $ac_cv_c_bigendian in #(
9108 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9114 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9118 as_fn_error "unknown endianness
9119 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9128 $as_echo_n "checking for 64-bit off_t... " >&6; }
9129 if test "${gl_cv_type_off_t_64+set}" = set; then :
9130 $as_echo_n "(cached) " >&6
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9134 #include <sys/types.h>
9135 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9145 if ac_fn_c_try_compile "$LINENO"; then :
9146 gl_cv_type_off_t_64=yes
9148 gl_cv_type_off_t_64=no
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9154 $as_echo "$gl_cv_type_off_t_64" >&6; }
9155 if test $gl_cv_type_off_t_64 = no; then
9156 WINDOWS_64_BIT_OFF_T=1
9158 WINDOWS_64_BIT_OFF_T=0
9160 WINDOWS_64_BIT_ST_SIZE=1
9163 WINDOWS_64_BIT_OFF_T=0
9164 WINDOWS_64_BIT_ST_SIZE=0
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9170 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9171 if test "${am_cv_langinfo_codeset+set}" = set; then :
9172 $as_echo_n "(cached) " >&6
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9176 #include <langinfo.h>
9180 char* cs = nl_langinfo(CODESET); return !cs;
9185 if ac_fn_c_try_link "$LINENO"; then :
9186 am_cv_langinfo_codeset=yes
9188 am_cv_langinfo_codeset=no
9190 rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext conftest.$ac_ext
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9195 $as_echo "$am_cv_langinfo_codeset" >&6; }
9196 if test $am_cv_langinfo_codeset = yes; then
9198 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9212 $as_echo_n "checking for working fcntl.h... " >&6; }
9213 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
9216 if test "$cross_compiling" = yes; then :
9217 gl_cv_header_working_fcntl_h=cross-compiling
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 #include <sys/types.h>
9222 #include <sys/stat.h>
9224 # include <unistd.h>
9225 #else /* on Windows with MSVC */
9227 # include <stdlib.h>
9228 # defined sleep(n) _sleep ((n) * 1000)
9235 #define O_NOFOLLOW 0
9237 static int const constants[] =
9239 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9240 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9247 int result = !constants;
9250 static char const sym[] = "conftest.sym";
9251 if (symlink ("/dev/null", sym) != 0)
9255 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9262 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9266 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9277 static char const file[] = "confdefs.h";
9278 int fd = open (file, O_RDONLY | O_NOATIME);
9284 if (fstat (fd, &st0) != 0)
9290 if (read (fd, &c, 1) != 1)
9294 if (close (fd) != 0)
9299 if (stat (file, &st1) != 0)
9302 if (st0.st_atime != st1.st_atime)
9314 if ac_fn_c_try_run "$LINENO"; then :
9315 gl_cv_header_working_fcntl_h=yes
9318 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9319 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9320 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9321 *) gl_cv_header_working_fcntl_h='no';;
9324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9325 conftest.$ac_objext conftest.beam conftest.$ac_ext
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9330 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9332 case $gl_cv_header_working_fcntl_h in #(
9333 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9337 cat >>confdefs.h <<_ACEOF
9338 #define HAVE_WORKING_O_NOATIME $ac_val
9342 case $gl_cv_header_working_fcntl_h in #(
9343 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9347 cat >>confdefs.h <<_ACEOF
9348 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9352 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9353 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9359 cat >>confdefs.h <<_ACEOF
9360 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9365 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9366 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9367 $as_echo_n "(cached) " >&6
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9372 #include <features.h>
9373 #ifdef __GNU_LIBRARY__
9374 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9384 $EGREP "Lucky" >/dev/null 2>&1; then :
9385 ac_cv_gnu_library_2_1=yes
9387 ac_cv_gnu_library_2_1=no
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9395 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9397 GLIBC21="$ac_cv_gnu_library_2_1"
9433 REPLACE_UTIMENSAT=0;
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9439 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9440 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9441 $as_echo_n "(cached) " >&6
9443 rm -f conftest.sym conftest.file
9445 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9446 if test "$cross_compiling" = yes; then :
9448 # Guess yes on glibc systems.
9449 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9450 # If we don't know, assume the worst.
9451 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 $ac_includes_default
9462 /* Linux will dereference the symlink and fail, as required by
9463 POSIX. That is better in the sense that it means we will not
9464 have to compile and use the lstat wrapper. */
9465 return lstat ("conftest.sym/", &sbuf) == 0;
9471 if ac_fn_c_try_run "$LINENO"; then :
9472 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9474 gl_cv_func_lstat_dereferences_slashed_symlink=no
9476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9477 conftest.$ac_objext conftest.beam conftest.$ac_ext
9481 # If the 'ln -s' command failed, then we probably don't even
9482 # have an lstat function.
9483 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
9485 rm -f conftest.sym conftest.file
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9489 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9490 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9493 cat >>confdefs.h <<_ACEOF
9494 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9502 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9503 if test "${gl_cv_func_malloc_posix+set}" = set; then :
9504 $as_echo_n "(cached) " >&6
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9513 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9521 if ac_fn_c_try_compile "$LINENO"; then :
9522 gl_cv_func_malloc_posix=yes
9524 gl_cv_func_malloc_posix=no
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9530 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9534 for ac_header in stdlib.h
9536 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9537 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9538 cat >>confdefs.h <<_ACEOF
9539 #define HAVE_STDLIB_H 1
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9547 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9548 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9549 $as_echo_n "(cached) " >&6
9551 if test "$cross_compiling" = yes; then :
9553 # Guess yes on platforms where we know the result.
9554 *-gnu* | freebsd* | netbsd* | openbsd* \
9555 | hpux* | solaris* | cygwin* | mingw*)
9556 ac_cv_func_malloc_0_nonnull=yes ;;
9557 # If we don't know, assume the worst.
9558 *) ac_cv_func_malloc_0_nonnull=no ;;
9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9564 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9565 # include <stdlib.h>
9573 return ! malloc (0);
9579 if ac_fn_c_try_run "$LINENO"; then :
9580 ac_cv_func_malloc_0_nonnull=yes
9582 ac_cv_func_malloc_0_nonnull=no
9584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9585 conftest.$ac_objext conftest.beam conftest.$ac_ext
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9591 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9592 if test $ac_cv_func_malloc_0_nonnull = yes; then :
9593 gl_cv_func_malloc_0_nonnull=1
9595 gl_cv_func_malloc_0_nonnull=0
9599 cat >>confdefs.h <<_ACEOF
9600 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
9613 GNULIB_MBSNRTOWCS=0;
9616 GNULIB_WCSNRTOMBS=0;
9633 GNULIB_WCSCASECMP=0;
9634 GNULIB_WCSNCASECMP=0;
9684 HAVE_DECL_WCWIDTH=1;
9685 REPLACE_MBSTATE_T=0;
9691 REPLACE_MBSRTOWCS=0;
9692 REPLACE_MBSNRTOWCS=0;
9694 REPLACE_WCSRTOMBS=0;
9695 REPLACE_WCSNRTOMBS=0;
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
9707 $as_echo_n "checking for a traditional japanese locale... " >&6; }
9708 if test "${gt_cv_locale_ja+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9717 #if HAVE_LANGINFO_CODESET
9718 # include <langinfo.h>
9727 /* Check whether the given locale name is recognized by the system. */
9728 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9729 /* On native Windows, setlocale(category, "") looks at the system settings,
9730 not at the environment variables. Also, when an encoding suffix such
9731 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9732 category of the locale to "C". */
9733 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9734 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9737 if (setlocale (LC_ALL, "") == NULL) return 1;
9739 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9740 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9741 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9742 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9743 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9744 some unit tests fail.
9745 On MirBSD 10, when an unsupported locale is specified, setlocale()
9746 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9747 #if HAVE_LANGINFO_CODESET
9749 const char *cs = nl_langinfo (CODESET);
9750 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9751 || strcmp (cs, "UTF-8") == 0)
9756 /* On Cygwin, avoid locale names without encoding suffix, because the
9757 locale_charset() function relies on the encoding suffix. Note that
9758 LC_ALL is set on the command line. */
9759 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9761 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
9763 if (MB_CUR_MAX == 1)
9765 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9766 This excludes the UTF-8 encoding (except on MirBSD). */
9767 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9768 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9769 for (p = buf; *p != '\0'; p++)
9770 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9777 (eval $ac_link) 2>&5
9779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9780 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9782 # Handle native Windows specially, because there setlocale() interprets
9783 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9784 # "fr" or "fra" as "French" or "French_France.1252",
9785 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9786 # "ja" as "Japanese" or "Japanese_Japan.932",
9789 # Note that on native Windows, the Japanese locale is
9790 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
9791 # cannot use it here.
9792 gt_cv_locale_ja=none
9795 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9796 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9797 # configure script would override the LC_ALL setting. Likewise for
9798 # LC_CTYPE, which is also set at the beginning of the configure script.
9799 # Test for the AIX locale name.
9800 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9801 gt_cv_locale_ja=ja_JP
9803 # Test for the locale name with explicit encoding suffix.
9804 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9805 gt_cv_locale_ja=ja_JP.EUC-JP
9807 # Test for the HP-UX, OSF/1, NetBSD locale name.
9808 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9809 gt_cv_locale_ja=ja_JP.eucJP
9811 # Test for the IRIX, FreeBSD locale name.
9812 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9813 gt_cv_locale_ja=ja_JP.EUC
9815 # Test for the Solaris 7 locale name.
9816 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9819 # Special test for NetBSD 1.6.
9820 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
9821 gt_cv_locale_ja=ja_JP.eucJP
9824 gt_cv_locale_ja=none
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
9838 $as_echo "$gt_cv_locale_ja" >&6; }
9839 LOCALE_JA=$gt_cv_locale_ja
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
9846 $as_echo_n "checking for a transitional chinese locale... " >&6; }
9847 if test "${gt_cv_locale_zh_CN+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9857 #if HAVE_LANGINFO_CODESET
9858 # include <langinfo.h>
9867 /* Check whether the given locale name is recognized by the system. */
9868 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9869 /* On native Windows, setlocale(category, "") looks at the system settings,
9870 not at the environment variables. Also, when an encoding suffix such
9871 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9872 category of the locale to "C". */
9873 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9874 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9877 if (setlocale (LC_ALL, "") == NULL) return 1;
9879 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9880 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9881 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9882 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9883 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9884 some unit tests fail.
9885 On MirBSD 10, when an unsupported locale is specified, setlocale()
9886 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9887 #if HAVE_LANGINFO_CODESET
9889 const char *cs = nl_langinfo (CODESET);
9890 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9891 || strcmp (cs, "UTF-8") == 0)
9896 /* On Cygwin, avoid locale names without encoding suffix, because the
9897 locale_charset() function relies on the encoding suffix. Note that
9898 LC_ALL is set on the command line. */
9899 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9901 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9902 This excludes the UTF-8 encoding (except on MirBSD). */
9903 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9904 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9905 for (p = buf; *p != '\0'; p++)
9906 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9908 /* Check whether a typical GB18030 multibyte sequence is recognized as a
9909 single wide character. This excludes the GB2312 and GBK encodings. */
9910 if (mblen ("\203\062\332\066", 5) != 4)
9916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9917 (eval $ac_link) 2>&5
9919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9920 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9922 # Handle native Windows specially, because there setlocale() interprets
9923 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9924 # "fr" or "fra" as "French" or "French_France.1252",
9925 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9926 # "ja" as "Japanese" or "Japanese_Japan.932",
9929 # Test for the hypothetical native Windows locale name.
9930 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9931 gt_cv_locale_zh_CN=Chinese_China.54936
9934 gt_cv_locale_zh_CN=none
9938 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
9939 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
9940 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
9941 gt_cv_locale_zh_CN=none
9944 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9945 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9946 # configure script would override the LC_ALL setting. Likewise for
9947 # LC_CTYPE, which is also set at the beginning of the configure script.
9948 # Test for the locale name without encoding suffix.
9949 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9950 gt_cv_locale_zh_CN=zh_CN
9952 # Test for the locale name with explicit encoding suffix.
9953 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9954 gt_cv_locale_zh_CN=zh_CN.GB18030
9957 gt_cv_locale_zh_CN=none
9963 # If there was a link error, due to mblen(), the system is so old that
9964 # it certainly doesn't have a chinese locale.
9965 gt_cv_locale_zh_CN=none
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
9971 $as_echo "$gt_cv_locale_zh_CN" >&6; }
9972 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
9978 $as_echo_n "checking for a french Unicode locale... " >&6; }
9979 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9988 #if HAVE_LANGINFO_CODESET
9989 # include <langinfo.h>
9996 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9997 imitates locale dependent behaviour by looking at the environment
9998 variables, and all locales use the UTF-8 encoding. */
9999 #if !(defined __BEOS__ || defined __HAIKU__)
10000 /* Check whether the given locale name is recognized by the system. */
10001 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10002 /* On native Windows, setlocale(category, "") looks at the system settings,
10003 not at the environment variables. Also, when an encoding suffix such
10004 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10005 category of the locale to "C". */
10006 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10007 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10010 if (setlocale (LC_ALL, "") == NULL) return 1;
10012 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10013 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10014 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10015 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10016 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10017 some unit tests fail. */
10018 # if HAVE_LANGINFO_CODESET
10020 const char *cs = nl_langinfo (CODESET);
10021 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10026 /* On Cygwin, avoid locale names without encoding suffix, because the
10027 locale_charset() function relies on the encoding suffix. Note that
10028 LC_ALL is set on the command line. */
10029 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10031 /* Check whether in the abbreviation of the second month, the second
10032 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10033 two bytes long, with UTF-8 encoding. */
10034 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10035 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10036 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10039 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10040 /* Check whether the decimal separator is a comma.
10041 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10042 are nl_langinfo(RADIXCHAR) are both ".". */
10043 if (localeconv () ->decimal_point[0] != ',') return 1;
10049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10050 (eval $ac_link) 2>&5
10052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10053 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10055 # Handle native Windows specially, because there setlocale() interprets
10056 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10057 # "fr" or "fra" as "French" or "French_France.1252",
10058 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10059 # "ja" as "Japanese" or "Japanese_Japan.932",
10062 # Test for the hypothetical native Windows locale name.
10063 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10064 gt_cv_locale_fr_utf8=French_France.65001
10067 gt_cv_locale_fr_utf8=none
10071 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10072 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10073 # configure script would override the LC_ALL setting. Likewise for
10074 # LC_CTYPE, which is also set at the beginning of the configure script.
10075 # Test for the usual locale name.
10076 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10077 gt_cv_locale_fr_utf8=fr_FR
10079 # Test for the locale name with explicit encoding suffix.
10080 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10081 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10083 # Test for the Solaris 7 locale name.
10084 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10085 gt_cv_locale_fr_utf8=fr.UTF-8
10088 gt_cv_locale_fr_utf8=none
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10099 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10100 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10107 $as_echo_n "checking for a traditional french locale... " >&6; }
10108 if test "${gt_cv_locale_fr+set}" = set; then :
10109 $as_echo_n "(cached) " >&6
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10115 #include <locale.h>
10117 #if HAVE_LANGINFO_CODESET
10118 # include <langinfo.h>
10120 #include <stdlib.h>
10121 #include <string.h>
10125 /* Check whether the given locale name is recognized by the system. */
10126 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10127 /* On native Windows, setlocale(category, "") looks at the system settings,
10128 not at the environment variables. Also, when an encoding suffix such
10129 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10130 category of the locale to "C". */
10131 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10132 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10135 if (setlocale (LC_ALL, "") == NULL) return 1;
10137 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10138 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10139 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10140 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10141 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10142 some unit tests fail.
10143 On MirBSD 10, when an unsupported locale is specified, setlocale()
10144 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10145 #if HAVE_LANGINFO_CODESET
10147 const char *cs = nl_langinfo (CODESET);
10148 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10149 || strcmp (cs, "UTF-8") == 0)
10154 /* On Cygwin, avoid locale names without encoding suffix, because the
10155 locale_charset() function relies on the encoding suffix. Note that
10156 LC_ALL is set on the command line. */
10157 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10159 /* Check whether in the abbreviation of the second month, the second
10160 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10161 one byte long. This excludes the UTF-8 encoding. */
10162 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10163 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10164 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10165 /* Check whether the decimal separator is a comma.
10166 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10167 are nl_langinfo(RADIXCHAR) are both ".". */
10168 if (localeconv () ->decimal_point[0] != ',') return 1;
10174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10175 (eval $ac_link) 2>&5
10177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10178 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10180 # Handle native Windows specially, because there setlocale() interprets
10181 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10182 # "fr" or "fra" as "French" or "French_France.1252",
10183 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10184 # "ja" as "Japanese" or "Japanese_Japan.932",
10187 # Test for the native Windows locale name.
10188 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10189 gt_cv_locale_fr=French_France.1252
10192 gt_cv_locale_fr=none
10196 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10197 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10198 # configure script would override the LC_ALL setting. Likewise for
10199 # LC_CTYPE, which is also set at the beginning of the configure script.
10200 # Test for the usual locale name.
10201 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10202 gt_cv_locale_fr=fr_FR
10204 # Test for the locale name with explicit encoding suffix.
10205 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10206 gt_cv_locale_fr=fr_FR.ISO-8859-1
10208 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10209 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10210 gt_cv_locale_fr=fr_FR.ISO8859-1
10212 # Test for the HP-UX locale name.
10213 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10214 gt_cv_locale_fr=fr_FR.iso88591
10216 # Test for the Solaris 7 locale name.
10217 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10221 gt_cv_locale_fr=none
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10234 $as_echo "$gt_cv_locale_fr" >&6; }
10235 LOCALE_FR=$gt_cv_locale_fr
10249 GNULIB_RAWMEMCHR=0;
10252 GNULIB_STRCHRNUL=0;
10260 GNULIB_STRCASESTR=0;
10267 GNULIB_MBSCASECMP=0;
10268 GNULIB_MBSNCASECMP=0;
10269 GNULIB_MBSPCASECMP=0;
10270 GNULIB_MBSCASESTR=0;
10277 GNULIB_STRERROR_R=0;
10278 GNULIB_STRSIGNAL=0;
10279 GNULIB_STRVERSCMP=0;
10284 HAVE_DECL_MEMMEM=1;
10286 HAVE_DECL_MEMRCHR=1;
10291 HAVE_DECL_STRDUP=1;
10292 HAVE_DECL_STRNDUP=1;
10293 HAVE_DECL_STRNLEN=1;
10297 HAVE_DECL_STRTOK_R=1;
10298 HAVE_DECL_STRERROR_R=1;
10299 HAVE_DECL_STRSIGNAL=1;
10306 REPLACE_STRCASESTR=0;
10307 REPLACE_STRCHRNUL=0;
10308 REPLACE_STRERROR=0;
10309 REPLACE_STRERROR_R=0;
10313 REPLACE_STRSIGNAL=0;
10314 REPLACE_STRTOK_R=0;
10315 UNDEFINE_STRTOK_R=0;
10321 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10322 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10323 # irrelevant for anonymous mappings.
10324 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10325 if test "x$ac_cv_func_mmap" = x""yes; then :
10332 # Try to allow MAP_ANONYMOUS.
10333 gl_have_mmap_anonymous=no
10334 if test $gl_have_mmap = yes; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10336 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10340 #include <sys/mman.h>
10341 #ifdef MAP_ANONYMOUS
10342 I cannot identify this map
10346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10347 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10348 gl_have_mmap_anonymous=yes
10352 if test $gl_have_mmap_anonymous != yes; then
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10356 #include <sys/mman.h>
10358 I cannot identify this map
10362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10363 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10365 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10367 gl_have_mmap_anonymous=yes
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10373 $as_echo "$gl_have_mmap_anonymous" >&6; }
10374 if test $gl_have_mmap_anonymous = yes; then
10376 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10386 if test $HAVE_MEMCHR = 1; then
10387 # Detect platform-specific bugs in some versions of glibc:
10388 # memchr should not dereference anything with length 0
10389 # http://bugzilla.redhat.com/499689
10390 # memchr should not dereference overestimated length after a match
10391 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10392 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10393 # Assume that memchr works on platforms that lack mprotect.
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10395 $as_echo_n "checking whether memchr works... " >&6; }
10396 if test "${gl_cv_func_memchr_works+set}" = set; then :
10397 $as_echo_n "(cached) " >&6
10399 if test "$cross_compiling" = yes; then :
10400 gl_cv_func_memchr_works="guessing no"
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10405 #include <string.h>
10406 #if HAVE_SYS_MMAN_H
10407 # include <fcntl.h>
10408 # include <unistd.h>
10409 # include <sys/types.h>
10410 # include <sys/mman.h>
10412 # define MAP_FILE 0
10421 char *fence = NULL;
10422 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10423 # if HAVE_MAP_ANONYMOUS
10424 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10426 # else /* !HAVE_MAP_ANONYMOUS */
10427 const int flags = MAP_FILE | MAP_PRIVATE;
10428 int fd = open ("/dev/zero", O_RDONLY, 0666);
10432 int pagesize = getpagesize ();
10434 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10436 if (two_pages != (char *)(-1)
10437 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10438 fence = two_pages + pagesize;
10443 if (memchr (fence, 0, 0))
10445 strcpy (fence - 9, "12345678");
10446 if (memchr (fence - 9, 0, 79) != fence - 1)
10448 if (memchr (fence - 1, 0, 3) != fence - 1)
10457 if ac_fn_c_try_run "$LINENO"; then :
10458 gl_cv_func_memchr_works=yes
10460 gl_cv_func_memchr_works=no
10462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10463 conftest.$ac_objext conftest.beam conftest.$ac_ext
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10468 $as_echo "$gl_cv_func_memchr_works" >&6; }
10469 if test "$gl_cv_func_memchr_works" != yes; then
10474 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10475 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10481 cat >>confdefs.h <<_ACEOF
10482 #define HAVE_DECL_MEMMEM $ac_have_decl
10489 for ac_func in memmem
10491 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10492 if test "x$ac_cv_func_memmem" = x""yes; then :
10493 cat >>confdefs.h <<_ACEOF
10494 #define HAVE_MEMMEM 1
10500 if test $ac_cv_func_memmem = yes; then
10506 if test $ac_cv_have_decl_memmem = no; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10510 $as_echo_n "checking whether memmem works... " >&6; }
10511 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10512 $as_echo_n "(cached) " >&6
10514 if test "$cross_compiling" = yes; then :
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10518 #ifdef __GNU_LIBRARY__
10519 #include <features.h>
10520 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10521 || __GLIBC_MINOR__ > 12)) \
10522 || (__GLIBC__ > 2)) \
10523 || defined __UCLIBC__
10526 #elif defined __CYGWIN__
10527 #include <cygwin/version.h>
10528 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10537 $EGREP "Lucky user" >/dev/null 2>&1; then :
10538 gl_cv_func_memmem_works_always="guessing yes"
10540 gl_cv_func_memmem_works_always="guessing no"
10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10549 #include <string.h> /* for memmem */
10550 #define P "_EF_BF_BD"
10551 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10552 #define NEEDLE P P P P P
10559 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10561 /* Check for empty needle behavior. */
10563 const char *haystack = "AAA";
10564 if (memmem (haystack, 3, NULL, 0) != haystack)
10573 if ac_fn_c_try_run "$LINENO"; then :
10574 gl_cv_func_memmem_works_always=yes
10576 gl_cv_func_memmem_works_always=no
10578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10579 conftest.$ac_objext conftest.beam conftest.$ac_ext
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10585 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10586 case "$gl_cv_func_memmem_works_always" in
10604 GNULIB_FPRINTF_POSIX=0;
10620 GNULIB_OBSTACK_PRINTF=0;
10621 GNULIB_OBSTACK_PRINTF_POSIX=0;
10626 GNULIB_PRINTF_POSIX=0;
10635 GNULIB_SPRINTF_POSIX=0;
10636 GNULIB_STDIO_H_NONBLOCKING=0;
10637 GNULIB_STDIO_H_SIGPIPE=0;
10639 GNULIB_VASPRINTF=0;
10644 GNULIB_VFPRINTF_POSIX=0;
10646 GNULIB_VPRINTF_POSIX=0;
10647 GNULIB_VSNPRINTF=0;
10648 GNULIB_VSPRINTF_POSIX=0;
10649 HAVE_DECL_FPURGE=1;
10650 HAVE_DECL_FSEEKO=1;
10651 HAVE_DECL_FTELLO=1;
10652 HAVE_DECL_GETDELIM=1;
10653 HAVE_DECL_GETLINE=1;
10654 HAVE_DECL_OBSTACK_PRINTF=1;
10655 HAVE_DECL_SNPRINTF=1;
10656 HAVE_DECL_VSNPRINTF=1;
10677 REPLACE_GETDELIM=0;
10679 REPLACE_OBSTACK_PRINTF=0;
10685 REPLACE_RENAMEAT=0;
10686 REPLACE_SNPRINTF=0;
10688 REPLACE_STDIO_READ_FUNCS=0;
10689 REPLACE_STDIO_WRITE_FUNCS=0;
10691 REPLACE_VASPRINTF=0;
10692 REPLACE_VDPRINTF=0;
10693 REPLACE_VFPRINTF=0;
10695 REPLACE_VSNPRINTF=0;
10696 REPLACE_VSPRINTF=0;
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10701 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10702 if test "${ac_cv_header_stdbool_h+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10708 #include <stdbool.h>
10710 "error: bool is not defined"
10713 "error: false is not defined"
10716 "error: false is not 0"
10719 "error: true is not defined"
10722 "error: true is not 1"
10724 #ifndef __bool_true_false_are_defined
10725 "error: __bool_true_false_are_defined is not defined"
10728 struct s { _Bool s: 1; _Bool t; } s;
10730 char a[true == 1 ? 1 : -1];
10731 char b[false == 0 ? 1 : -1];
10732 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10733 char d[(bool) 0.5 == true ? 1 : -1];
10734 /* See body of main program for 'e'. */
10735 char f[(_Bool) 0.0 == false ? 1 : -1];
10737 char h[sizeof (_Bool)];
10738 char i[sizeof s.t];
10739 enum { j = false, k = true, l = false * true, m = true * 256 };
10740 /* The following fails for
10741 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10743 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10744 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10745 /* Catch a bug in an HP-UX C compiler. See
10746 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10747 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10759 /* Refer to every declared value, to avoid compiler optimizations. */
10760 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10761 + !m + !n + !o + !p + !q + !pq);
10767 if ac_fn_c_try_compile "$LINENO"; then :
10768 ac_cv_header_stdbool_h=yes
10770 ac_cv_header_stdbool_h=no
10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10775 $as_echo "$ac_cv_header_stdbool_h" >&6; }
10776 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10777 if test "x$ac_cv_type__Bool" = x""yes; then :
10779 cat >>confdefs.h <<_ACEOF
10780 #define HAVE__BOOL 1
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10793 $as_echo_n "checking for wchar_t... " >&6; }
10794 if test "${gt_cv_c_wchar_t+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799 #include <stddef.h>
10800 wchar_t foo = (wchar_t)'\0';
10809 if ac_fn_c_try_compile "$LINENO"; then :
10810 gt_cv_c_wchar_t=yes
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10817 $as_echo "$gt_cv_c_wchar_t" >&6; }
10818 if test $gt_cv_c_wchar_t = yes; then
10820 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10825 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10826 if test "${ac_cv_c_restrict+set}" = set; then :
10827 $as_echo_n "(cached) " >&6
10829 ac_cv_c_restrict=no
10830 # The order here caters to the fact that C++ does not require restrict.
10831 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834 typedef int * int_ptr;
10835 int foo (int_ptr $ac_kw ip) {
10842 int * $ac_kw t = s;
10849 if ac_fn_c_try_compile "$LINENO"; then :
10850 ac_cv_c_restrict=$ac_kw
10852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10853 test "$ac_cv_c_restrict" != no && break
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10858 $as_echo "$ac_cv_c_restrict" >&6; }
10860 case $ac_cv_c_restrict in
10862 no) $as_echo "#define restrict /**/" >>confdefs.h
10864 *) cat >>confdefs.h <<_ACEOF
10865 #define restrict $ac_cv_c_restrict
10881 if test $gl_cv_have_include_next = yes; then
10882 gl_cv_next_string_h='<'string.h'>'
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
10885 $as_echo_n "checking absolute name of <string.h>... " >&6; }
10886 if test "${gl_cv_next_string_h+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 #include <string.h>
10896 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10897 *) gl_absname_cpp="$ac_cpp" ;;
10902 gl_dirsep_regex='[/\\]'
10905 gl_dirsep_regex='\/'
10908 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10910 gl_header_literal_regex=`echo 'string.h' \
10911 |
sed -e "$gl_make_literal_regex_sed"`
10912 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10913 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10918 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10919 sed -n "$gl_absolute_header_sed"`'"'
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
10924 $as_echo "$gl_cv_next_string_h" >&6; }
10926 NEXT_STRING_H=$gl_cv_next_string_h
10928 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10929 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10930 gl_next_as_first_directive='<'string.h'>'
10932 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10933 gl_next_as_first_directive=$gl_cv_next_string_h
10935 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
10942 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
10943 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10945 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10946 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10947 $as_echo_n "(cached) " >&6
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10951 #include <string.h>
10962 if ac_fn_c_try_compile "$LINENO"; then :
10963 eval "$as_gl_Symbol=yes"
10965 eval "$as_gl_Symbol=no"
10967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969 eval ac_res=\$$as_gl_Symbol
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10971 $as_echo "$ac_res" >&6; }
10972 eval as_val=\$$as_gl_Symbol
10973 if test "x$as_val" = x""yes; then :
10974 cat >>confdefs.h <<_ACEOF
10975 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
10978 eval ac_cv_have_decl_$gl_func=yes
10986 if test "$gl_cv_func_memchr_works" != yes; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
10990 $as_echo_n "checking whether strstr works... " >&6; }
10991 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10994 if test "$cross_compiling" = yes; then :
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 #ifdef __GNU_LIBRARY__
10999 #include <features.h>
11000 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11001 || defined __UCLIBC__
11004 #elif defined __CYGWIN__
11005 #include <cygwin/version.h>
11006 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11015 $EGREP "Lucky user" >/dev/null 2>&1; then :
11016 gl_cv_func_strstr_works_always="guessing yes"
11018 gl_cv_func_strstr_works_always="guessing no"
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11027 #include <string.h> /* for strstr */
11028 #define P "_EF_BF_BD"
11029 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11030 #define NEEDLE P P P P P
11035 return !!strstr (HAYSTACK, NEEDLE);
11041 if ac_fn_c_try_run "$LINENO"; then :
11042 gl_cv_func_strstr_works_always=yes
11044 gl_cv_func_strstr_works_always=no
11046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11047 conftest.$ac_objext conftest.beam conftest.$ac_ext
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11053 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11054 case "$gl_cv_func_strstr_works_always" in
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11063 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11064 if test "${ac_cv_header_stat_broken+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11069 #include <sys/types.h>
11070 #include <sys/stat.h>
11072 #if defined S_ISBLK && defined S_IFDIR
11073 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11076 #if defined S_ISBLK && defined S_IFCHR
11077 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11080 #if defined S_ISLNK && defined S_IFREG
11081 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11084 #if defined S_ISSOCK && defined S_IFREG
11085 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11089 if ac_fn_c_try_compile "$LINENO"; then :
11090 ac_cv_header_stat_broken=no
11092 ac_cv_header_stat_broken=yes
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11097 $as_echo "$ac_cv_header_stat_broken" >&6; }
11098 if test $ac_cv_header_stat_broken = yes; then
11100 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11106 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11107 if test "x$ac_cv_type_mode_t" = x""yes; then :
11111 cat >>confdefs.h <<_ACEOF
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11118 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11119 if test -z "$MKDIR_P"; then
11120 if test "${ac_cv_path_mkdir+set}" = set; then :
11121 $as_echo_n "(cached) " >&6
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11127 test -z "$as_dir" && as_dir=.
11128 for ac_prog in mkdir gmkdir; do
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11131 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11132 'mkdir (GNU coreutils) '* | \
11133 'mkdir (coreutils) '* | \
11134 'mkdir (fileutils) '4.1*)
11135 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11145 if test "${ac_cv_path_mkdir+set}" = set; then
11146 MKDIR_P="$ac_cv_path_mkdir -p"
11148 # As a last resort, use the slow shell script. Don't cache a
11149 # value for MKDIR_P within a source directory, because that will
11150 # break other packages using the cache if that directory is
11151 # removed, or if the value is a relative name.
11152 test -d ./--version && rmdir ./--version
11153 MKDIR_P="$ac_install_sh -d"
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11157 $as_echo "$MKDIR_P" >&6; }
11161 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11162 if test "x$ac_cv_type_pid_t" = x""yes; then :
11166 cat >>confdefs.h <<_ACEOF
11180 GNULIB_NANOSLEEP=0;
11184 HAVE_DECL_LOCALTIME_R=1;
11188 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11189 REPLACE_MKTIME=GNULIB_PORTCHECK;
11190 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11191 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11198 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11199 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11200 $as_echo_n "(cached) " >&6
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11209 static struct timespec x; x.tv_sec = x.tv_nsec;
11214 if ac_fn_c_try_compile "$LINENO"; then :
11215 gl_cv_sys_struct_timespec_in_time_h=yes
11217 gl_cv_sys_struct_timespec_in_time_h=no
11219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11222 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11224 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11225 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11226 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
11227 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11228 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11231 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11232 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 #include <sys/time.h>
11242 static struct timespec x; x.tv_sec = x.tv_nsec;
11247 if ac_fn_c_try_compile "$LINENO"; then :
11248 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11250 gl_cv_sys_struct_timespec_in_sys_time_h=no
11252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11255 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11256 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11257 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11260 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11261 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11262 $as_echo_n "(cached) " >&6
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266 #include <pthread.h>
11271 static struct timespec x; x.tv_sec = x.tv_nsec;
11276 if ac_fn_c_try_compile "$LINENO"; then :
11277 gl_cv_sys_struct_timespec_in_pthread_h=yes
11279 gl_cv_sys_struct_timespec_in_pthread_h=no
11281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11284 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11285 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11286 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11305 if test $gl_cv_have_include_next = yes; then
11306 gl_cv_next_time_h='<'time.h'>'
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11309 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11310 if test "${gl_cv_next_time_h+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11320 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11321 *) gl_absname_cpp="$ac_cpp" ;;
11326 gl_dirsep_regex='[/\\]'
11329 gl_dirsep_regex='\/'
11332 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11334 gl_header_literal_regex=`echo 'time.h' \
11335 |
sed -e "$gl_make_literal_regex_sed"`
11336 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11337 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11342 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11343 sed -n "$gl_absolute_header_sed"`'"'
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11348 $as_echo "$gl_cv_next_time_h" >&6; }
11350 NEXT_TIME_H=$gl_cv_next_time_h
11352 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11353 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11354 gl_next_as_first_directive='<'time.h'>'
11356 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11357 gl_next_as_first_directive=$gl_cv_next_time_h
11359 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11368 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11369 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11372 gl_cv_header_wchar_h_correct_inline=yes
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11376 #define wcstod renamed_wcstod
11377 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11379 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11380 included before <wchar.h>. */
11381 #include <stddef.h>
11385 extern int zero (void);
11386 int main () { return zero(); }
11389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11390 (eval $ac_compile) 2>&5
11392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11393 test $ac_status = 0; }; then
11394 mv conftest.$ac_objext conftest1.$ac_objext
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11398 #define wcstod renamed_wcstod
11399 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11401 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11402 included before <wchar.h>. */
11403 #include <stddef.h>
11407 int zero (void) { return 0; }
11410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11411 (eval $ac_compile) 2>&5
11413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11414 test $ac_status = 0; }; then
11415 mv conftest.$ac_objext conftest2.$ac_objext
11416 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11419 gl_cv_header_wchar_h_correct_inline=no
11423 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11427 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11428 if test $gl_cv_header_wchar_h_correct_inline = no; then
11429 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11430 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11431 C99 mode. You have four options:
11432 - Add the flag -fgnu89-inline to CC and reconfigure, or
11433 - Fix your include files, using parts of
11434 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11435 - Use a gcc version older than 4.3, or
11436 - Don't use the flags -std=c99 or -std=gnu99.
11437 Configuration aborted." "$LINENO" 5
11444 if test $ac_cv_header_features_h = yes; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11453 $as_echo_n "checking for wint_t... " >&6; }
11454 if test "${gt_cv_c_wint_t+set}" = set; then :
11455 $as_echo_n "(cached) " >&6
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11460 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11462 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11463 before <wchar.h>. */
11464 #include <stddef.h>
11468 wint_t foo = (wchar_t)'\0';
11477 if ac_fn_c_try_compile "$LINENO"; then :
11482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11485 $as_echo "$gt_cv_c_wint_t" >&6; }
11486 if test $gt_cv_c_wint_t = yes; then
11488 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11497 GNULIB_TOWCTRANS=0;
11501 REPLACE_ISWBLANK=0;
11507 GL_COND_LIBTOOL_TRUE=
11508 GL_COND_LIBTOOL_FALSE='#'
11510 GL_COND_LIBTOOL_TRUE='#'
11511 GL_COND_LIBTOOL_FALSE=
11514 gl_cond_libtool=false
11517 gl_m4_base='import/m4'
11527 gl_source_base='import'
11530 if test $ac_cv_func_alloca_works = no; then
11534 # Define an additional variable used in the Makefile substitution.
11535 if test $ac_cv_working_alloca_h = yes; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
11537 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11538 if test "${gl_cv_rpl_alloca+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11545 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11551 $EGREP "Need own alloca" >/dev/null 2>&1; then :
11552 gl_cv_rpl_alloca=yes
11554 gl_cv_rpl_alloca=no
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
11561 $as_echo "$gl_cv_rpl_alloca" >&6; }
11562 if test $gl_cv_rpl_alloca = yes; then
11564 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11574 if test -n "$ALLOCA_H"; then
11575 GL_GENERATE_ALLOCA_H_TRUE=
11576 GL_GENERATE_ALLOCA_H_FALSE='#'
11578 GL_GENERATE_ALLOCA_H_TRUE='#'
11579 GL_GENERATE_ALLOCA_H_FALSE=
11586 if test $ac_cv_func_canonicalize_file_name = no; then
11587 HAVE_CANONICALIZE_FILE_NAME=0
11588 if test $ac_cv_func_realpath = no; then
11591 case "$gl_cv_func_realpath_works" in
11593 *) REPLACE_REALPATH=1 ;;
11597 case "$gl_cv_func_realpath_works" in
11601 REPLACE_CANONICALIZE_FILE_NAME=1
11607 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
11616 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
11621 cat >>confdefs.h <<_ACEOF
11622 #define GNULIB_CANONICALIZE_LGPL 1
11631 GNULIB_CANONICALIZE_FILE_NAME=1
11637 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
11652 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
11667 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
11672 if test "x$datarootdir" = x; then
11673 datarootdir='${datadir}'
11676 if test "x$docdir" = x; then
11677 docdir='${datarootdir}/doc/${PACKAGE}'
11680 if test "x$htmldir" = x; then
11681 htmldir='${docdir}'
11684 if test "x$dvidir" = x; then
11688 if test "x$pdfdir" = x; then
11692 if test "x$psdir" = x; then
11696 if test "x$lispdir" = x; then
11697 lispdir='${datarootdir}/emacs/site-lisp'
11700 if test "x$localedir" = x; then
11701 localedir='${datarootdir}/locale'
11705 pkglibexecdir='${libexecdir}/${PACKAGE}'
11720 if test $gl_cv_have_include_next = yes; then
11721 gl_cv_next_dirent_h='<'dirent.h'>'
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
11724 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
11725 if test "${gl_cv_next_dirent_h+set}" = set; then :
11726 $as_echo_n "(cached) " >&6
11729 if test $ac_cv_header_dirent_h = yes; then
11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11734 #include <dirent.h>
11738 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11739 *) gl_absname_cpp="$ac_cpp" ;;
11744 gl_dirsep_regex='[/\\]'
11747 gl_dirsep_regex='\/'
11750 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11752 gl_header_literal_regex=`echo 'dirent.h' \
11753 |
sed -e "$gl_make_literal_regex_sed"`
11754 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11755 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11760 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11761 sed -n "$gl_absolute_header_sed"`'"'
11763 gl_cv_next_dirent_h='<'dirent.h'>'
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
11769 $as_echo "$gl_cv_next_dirent_h" >&6; }
11771 NEXT_DIRENT_H=$gl_cv_next_dirent_h
11773 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11774 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11775 gl_next_as_first_directive='<'dirent.h'>'
11777 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11778 gl_next_as_first_directive=$gl_cv_next_dirent_h
11780 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
11785 if test $ac_cv_header_dirent_h = yes; then
11793 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
11794 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11796 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11797 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11798 $as_echo_n "(cached) " >&6
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11802 #include <dirent.h>
11813 if ac_fn_c_try_compile "$LINENO"; then :
11814 eval "$as_gl_Symbol=yes"
11816 eval "$as_gl_Symbol=no"
11818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820 eval ac_res=\$$as_gl_Symbol
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11822 $as_echo "$ac_res" >&6; }
11823 eval as_val=\$$as_gl_Symbol
11824 if test "x$as_val" = x""yes; then :
11825 cat >>confdefs.h <<_ACEOF
11826 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11829 eval ac_cv_have_decl_$gl_func=yes
11839 for ac_func in dirfd
11841 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
11842 if test "x$ac_cv_func_dirfd" = x""yes; then :
11843 cat >>confdefs.h <<_ACEOF
11844 #define HAVE_DIRFD 1
11850 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11851 #include <dirent.h>
11853 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
11859 cat >>confdefs.h <<_ACEOF
11860 #define HAVE_DECL_DIRFD $ac_have_decl
11863 if test $ac_cv_have_decl_dirfd = no; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
11868 $as_echo_n "checking whether dirfd is a macro... " >&6; }
11869 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11875 #include <sys/types.h>
11876 #include <dirent.h>
11878 dirent_header_defines_dirfd
11881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11882 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
11883 gl_cv_func_dirfd_macro=yes
11885 gl_cv_func_dirfd_macro=no
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
11891 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
11893 # Use the replacement only if we have no function or macro with that name.
11894 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11895 if test $ac_cv_have_decl_dirfd = yes; then
11896 # If the system declares dirfd already, let's declare rpl_dirfd instead.
11901 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11910 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
11914 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
11915 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
11919 dirfd_save_CFLAGS=$CFLAGS
11920 for ac_expr in d_fd dd_fd; do
11922 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11926 #include <sys/types.h>
11927 #include <dirent.h>
11931 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
11936 if ac_fn_c_try_compile "$LINENO"; then :
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941 CFLAGS=$dirfd_save_CFLAGS
11942 test "$dir_fd_found" = yes && break
11944 test "$dir_fd_found" = yes || ac_expr=no_such_member
11946 gl_cv_sys_dir_fd_member_name=$ac_expr
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
11951 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
11952 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
11954 cat >>confdefs.h <<_ACEOF
11955 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
11973 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
11984 $as_echo_n "checking whether // is distinct from /... " >&6; }
11985 if test "${gl_cv_double_slash_root+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
11988 if test x"$cross_compiling" = xyes ; then
11989 # When cross-compiling, there is no way to tell whether // is special
11990 # short of a list of hosts. However, the only known hosts to date
11991 # that have a distinct // are Apollo DomainOS (too old to port to),
11992 # Cygwin, and z/OS. If anyone knows of another system for which // has
11993 # special semantics and is distinct from /, please report it to
11994 # <bug-gnulib@gnu.org>.
11996 *-cygwin | i370-ibm-openedition)
11997 gl_cv_double_slash_root=yes ;;
11999 # Be optimistic and assume that / and // are the same when we
12001 gl_cv_double_slash_root='unknown, assuming no' ;;
12004 set x `ls -di / // 2>/dev
/null
`
12005 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12006 gl_cv_double_slash_root=no
12008 gl_cv_double_slash_root=yes
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12013 $as_echo "$gl_cv_double_slash_root" >&6; }
12014 if test "$gl_cv_double_slash_root" = yes; then
12016 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12026 REPLACE_FLOAT_LDBL=0
12028 aix* | beos* | openbsd* | mirbsd* | irix*)
12032 case "$host_cpu" in
12037 # On x86_64 systems, the C compiler may still be generating
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12041 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
12045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12046 $EGREP "yes" >/dev/null 2>&1; then :
12057 case "$host_cpu" in
12065 aix* | freebsd* | linux*)
12066 if test -n "$FLOAT_H"; then
12067 REPLACE_FLOAT_LDBL=1
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
12074 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
12075 if test "${gl_cv_func_itold_works+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12079 if test "$cross_compiling" = yes; then :
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 #if defined __LP64__ || defined __arch64__
12088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12089 $EGREP "yes" >/dev/null 2>&1; then :
12090 gl_cv_func_itold_works="guessing no"
12092 gl_cv_func_itold_works="guessing yes"
12097 *) gl_cv_func_itold_works="guessing yes" ;;
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h. */
12105 volatile long double ld;
12114 if ac_fn_c_try_run "$LINENO"; then :
12115 gl_cv_func_itold_works=yes
12117 gl_cv_func_itold_works=no
12119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12120 conftest.$ac_objext conftest.beam conftest.$ac_ext
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
12126 $as_echo "$gl_cv_func_itold_works" >&6; }
12127 case "$gl_cv_func_itold_works" in
12134 if test -n "$FLOAT_H"; then
12143 if test $gl_cv_have_include_next = yes; then
12144 gl_cv_next_float_h='<'float.h'>'
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12147 $as_echo_n "checking absolute name of <float.h>... " >&6; }
12148 if test "${gl_cv_next_float_h+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12158 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12159 *) gl_absname_cpp="$ac_cpp" ;;
12164 gl_dirsep_regex='[/\\]'
12167 gl_dirsep_regex='\/'
12170 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12172 gl_header_literal_regex=`echo 'float.h' \
12173 |
sed -e "$gl_make_literal_regex_sed"`
12174 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12175 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12180 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12181 sed -n "$gl_absolute_header_sed"`'"'
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12186 $as_echo "$gl_cv_next_float_h" >&6; }
12188 NEXT_FLOAT_H=$gl_cv_next_float_h
12190 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12191 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12192 gl_next_as_first_directive='<'float.h'>'
12194 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12195 gl_next_as_first_directive=$gl_cv_next_float_h
12197 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12204 if test -n "$FLOAT_H"; then
12205 GL_GENERATE_FLOAT_H_TRUE=
12206 GL_GENERATE_FLOAT_H_FALSE='#'
12208 GL_GENERATE_FLOAT_H_TRUE='#'
12209 GL_GENERATE_FLOAT_H_FALSE=
12214 if test $REPLACE_FLOAT_LDBL = 1; then
12223 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
12226 if test $REPLACE_ITOLD = 1; then
12235 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
12244 gl_fnmatch_required_lowercase=`
12245 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
12247 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
12249 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
12250 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
12251 $as_echo_n "(cached) " >&6
12253 if test $gl_fnmatch_required = GNU; then
12254 gl_fnmatch_gnu_start=
12255 gl_fnmatch_gnu_end=
12257 gl_fnmatch_gnu_start='#if 0'
12258 gl_fnmatch_gnu_end='#endif'
12260 if test "$cross_compiling" = yes; then :
12261 eval "$gl_fnmatch_cache_var=\"guessing no\""
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12265 #include <fnmatch.h>
12267 y (char const *pattern, char const *string, int flags)
12269 return fnmatch (pattern, string, flags) == 0;
12272 n (char const *pattern, char const *string, int flags)
12274 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
12280 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
12281 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
12282 static char const A_1[] = { 'A' - 1, 0 };
12283 static char const A01[] = { 'A' + 1, 0 };
12284 static char const a_1[] = { 'a' - 1, 0 };
12285 static char const a01[] = { 'a' + 1, 0 };
12286 static char const bs_1[] = { '\\\\' - 1, 0 };
12287 static char const bs01[] = { '\\\\' + 1, 0 };
12289 if (!n ("a*", "", 0))
12291 if (!y ("a*", "abc", 0))
12293 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
12295 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
12297 if (!y ("a\\\\bc", "abc", 0))
12299 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
12301 if (!y ("*x", ".x", 0))
12303 if (!n ("*x", ".x", FNM_PERIOD))
12305 if (!y (Apat, "\\\\", 0))
12307 if (!y (Apat, "A", 0))
12309 if (!y (apat, "\\\\", 0))
12311 if (!y (apat, "a", 0))
12313 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
12315 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
12317 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12319 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12321 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12323 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12325 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12327 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12329 $gl_fnmatch_gnu_start
12330 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12332 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12334 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12336 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12338 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12340 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12342 $gl_fnmatch_gnu_end
12349 if ac_fn_c_try_run "$LINENO"; then :
12350 eval "$gl_fnmatch_cache_var=yes"
12352 eval "$gl_fnmatch_cache_var=no"
12354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12355 conftest.$ac_objext conftest.beam conftest.$ac_ext
12360 eval ac_res=\$$gl_fnmatch_cache_var
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12362 $as_echo "$ac_res" >&6; }
12363 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12364 if test "$gl_fnmatch_result" = yes; then
12365 rm -f "$gl_source_base/fnmatch.h"
12367 FNMATCH_H=fnmatch.h
12370 if test -n "$FNMATCH_H"; then
12371 GL_GENERATE_FNMATCH_H_TRUE=
12372 GL_GENERATE_FNMATCH_H_FALSE='#'
12374 GL_GENERATE_FNMATCH_H_TRUE='#'
12375 GL_GENERATE_FNMATCH_H_FALSE=
12379 if test -n "$FNMATCH_H"; then
12388 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12392 cat >>confdefs.h <<_ACEOF
12393 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12397 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12399 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12405 cat >>confdefs.h <<_ACEOF
12406 #define HAVE_DECL_ISBLANK $ac_have_decl
12418 if test -n "$FNMATCH_H"; then
12427 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12431 cat >>confdefs.h <<_ACEOF
12432 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12436 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12438 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_DECL_ISBLANK $ac_have_decl
12456 if test $gl_cv_func_frexp_no_libm = no; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
12458 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
12459 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
12460 $as_echo_n "(cached) " >&6
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12472 int e; return frexp (x, &e) > 0;
12477 if ac_fn_c_try_link "$LINENO"; then :
12478 gl_cv_func_frexp_in_libm=yes
12480 gl_cv_func_frexp_in_libm=no
12482 rm -f core conftest.err conftest.$ac_objext \
12483 conftest$ac_exeext conftest.$ac_ext
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
12488 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
12489 if test $gl_cv_func_frexp_in_libm = yes; then
12493 if test $gl_cv_func_frexp_no_libm = yes \
12494 || test $gl_cv_func_frexp_in_libm = yes; then
12496 LIBS="$LIBS $FREXP_LIBM"
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
12501 $as_echo_n "checking whether frexp works... " >&6; }
12502 if test "${gl_cv_func_frexp_works+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
12506 if test "$cross_compiling" = yes; then :
12508 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
12509 *) gl_cv_func_frexp_works="guessing yes";;
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12518 #include <string.h>
12520 # include <unistd.h>
12522 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
12523 ICC 10.0 has a bug when optimizing the expression -zero.
12524 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
12525 to PowerPC on Mac OS X 10.5. */
12526 #if defined __hpux || defined __sgi || defined __ICC
12528 compute_minus_zero (void)
12530 return -DBL_MIN * DBL_MIN;
12532 # define minus_zero compute_minus_zero ()
12534 double minus_zero = -0.0;
12543 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
12544 number. Let the test fail in this case. */
12547 /* Test on denormalized numbers. */
12548 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
12553 double y = frexp (x, &exp);
12554 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
12555 On NetBSD: y = 0.75. Correct: y = 0.5. */
12559 /* Test on infinite numbers. */
12563 double y = frexp (x, &exp);
12567 /* Test on negative zero. */
12571 double y = frexp (x, &exp);
12572 if (memcmp (&y, &x, sizeof x))
12578 if ac_fn_c_try_run "$LINENO"; then :
12579 gl_cv_func_frexp_works=yes
12581 gl_cv_func_frexp_works=no
12583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12584 conftest.$ac_objext conftest.beam conftest.$ac_ext
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
12590 $as_echo "$gl_cv_func_frexp_works" >&6; }
12593 case "$gl_cv_func_frexp_works" in
12594 *yes) gl_func_frexp=yes ;;
12595 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
12600 if test $gl_func_frexp = yes; then
12602 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
12607 if test $gl_func_frexp != yes; then
12616 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
12630 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
12640 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
12642 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
12650 if test $HAVE_DECL_FREXPL = 1; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
12653 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
12654 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
12655 $as_echo_n "(cached) " >&6
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h. */
12665 int e; return frexpl (x, &e) > 0;
12670 if ac_fn_c_try_link "$LINENO"; then :
12671 gl_cv_func_frexpl_no_libm=yes
12673 gl_cv_func_frexpl_no_libm=no
12675 rm -f core conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext conftest.$ac_ext
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
12680 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
12682 if test $gl_cv_func_frexpl_no_libm = no; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
12684 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
12685 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
12686 $as_echo_n "(cached) " >&6
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12698 int e; return frexpl (x, &e) > 0;
12703 if ac_fn_c_try_link "$LINENO"; then :
12704 gl_cv_func_frexpl_in_libm=yes
12706 gl_cv_func_frexpl_in_libm=no
12708 rm -f core conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext conftest.$ac_ext
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
12714 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
12715 if test $gl_cv_func_frexpl_in_libm = yes; then
12719 if test $gl_cv_func_frexpl_no_libm = yes \
12720 || test $gl_cv_func_frexpl_in_libm = yes; then
12722 LIBS="$LIBS $FREXPL_LIBM"
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
12726 $as_echo_n "checking whether frexpl works... " >&6; }
12727 if test "${gl_cv_func_frexpl_works+set}" = set; then :
12728 $as_echo_n "(cached) " >&6
12731 if test "$cross_compiling" = yes; then :
12734 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
12735 gl_cv_func_frexpl_works="guessing no";;
12736 *) gl_cv_func_frexpl_works="guessing yes";;
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12745 /* Override the values of <float.h>, like done in float.in.h. */
12746 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
12747 # undef LDBL_MIN_EXP
12748 # define LDBL_MIN_EXP (-16381)
12750 #if defined __i386__ && defined __FreeBSD__
12751 # undef LDBL_MIN_EXP
12752 # define LDBL_MIN_EXP (-16381)
12754 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
12755 # undef LDBL_MIN_EXP
12756 # define LDBL_MIN_EXP DBL_MIN_EXP
12758 #if defined __sgi && (LDBL_MANT_DIG >= 106)
12759 # if defined __GNUC__
12760 # undef LDBL_MIN_EXP
12761 # define LDBL_MIN_EXP DBL_MIN_EXP
12768 long double frexpl (long double, int *);
12772 volatile long double x;
12773 /* Test on finite numbers that fails on AIX 5.1. */
12781 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
12782 function returns an invalid (incorrectly normalized) value: it returns
12783 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
12784 but the correct result is
12785 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
12789 long double y = frexpl (x, &exp);
12790 if (!(exp == 1 && y == 0.505L))
12793 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
12794 LDBL_MAX_EXP = 16384.
12795 In the loop end test, we test x against Infinity, rather than comparing
12796 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
12799 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
12810 /* Test on denormalized numbers. */
12813 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
12818 long double y = frexpl (x, &exp);
12819 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
12820 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
12821 if (exp != LDBL_MIN_EXP - 1)
12825 /* Test on infinite numbers. */
12829 long double y = frexpl (x, &exp);
12836 if ac_fn_c_try_run "$LINENO"; then :
12837 gl_cv_func_frexpl_works=yes
12839 gl_cv_func_frexpl_works=no
12841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12842 conftest.$ac_objext conftest.beam conftest.$ac_ext
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
12848 $as_echo "$gl_cv_func_frexpl_works" >&6; }
12851 case "$gl_cv_func_frexpl_works" in
12852 *yes) gl_func_frexpl=yes ;;
12853 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
12858 if test $gl_func_frexpl = yes; then
12860 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
12864 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12865 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
12867 FREXPL_LIBM="$FREXP_LIBM"
12874 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12883 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
12897 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
12907 if test -n "$STDINT_H"; then
12908 PRIPTR_PREFIX='"l"'
12910 for glpfx in '' l ll I64; do
12912 '') gltype1='int';;
12913 l) gltype1='long int';;
12914 ll) gltype1='long long int';;
12915 I64) gltype1='__int64';;
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12919 #include <stdint.h>
12920 extern intptr_t foo;
12921 extern $gltype1 foo;
12930 if ac_fn_c_try_compile "$LINENO"; then :
12931 PRIPTR_PREFIX='"'$glpfx'"'
12933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12934 test -n "$PRIPTR_PREFIX" && break
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
12941 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
12942 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12947 /* Work also in C++ mode. */
12948 #define __STDC_LIMIT_MACROS 1
12950 /* Work if build is not clean. */
12951 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12953 #include <limits.h>
12955 #include <stdint.h>
12958 #if defined INT32_MAX && defined INTMAX_MAX
12959 #define CONDITION (INT32_MAX < INTMAX_MAX)
12960 #elif HAVE_LONG_LONG_INT
12961 #define CONDITION (sizeof (int) < sizeof (long long int))
12963 #define CONDITION 0
12965 int test[CONDITION ? 1 : -1];
12974 if ac_fn_c_try_compile "$LINENO"; then :
12975 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
12977 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
12979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
12982 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
12983 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
12984 INT32_MAX_LT_INTMAX_MAX=1;
12986 INT32_MAX_LT_INTMAX_MAX=0;
12990 if test $APPLE_UNIVERSAL_BUILD = 0; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
12993 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
12994 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
12999 /* Work also in C++ mode. */
13000 #define __STDC_LIMIT_MACROS 1
13002 /* Work if build is not clean. */
13003 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13005 #include <limits.h>
13007 #include <stdint.h>
13010 #if defined INT64_MAX
13011 #define CONDITION (INT64_MAX == LONG_MAX)
13012 #elif HAVE_LONG_LONG_INT
13013 #define CONDITION (sizeof (long long int) == sizeof (long int))
13015 #define CONDITION 0
13017 int test[CONDITION ? 1 : -1];
13026 if ac_fn_c_try_compile "$LINENO"; then :
13027 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
13029 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
13031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
13034 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
13035 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
13036 INT64_MAX_EQ_LONG_MAX=1;
13038 INT64_MAX_EQ_LONG_MAX=0;
13043 INT64_MAX_EQ_LONG_MAX=-1
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
13047 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
13048 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053 /* Work also in C++ mode. */
13054 #define __STDC_LIMIT_MACROS 1
13056 /* Work if build is not clean. */
13057 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13059 #include <limits.h>
13061 #include <stdint.h>
13064 #if defined UINT32_MAX && defined UINTMAX_MAX
13065 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
13066 #elif HAVE_LONG_LONG_INT
13067 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
13069 #define CONDITION 0
13071 int test[CONDITION ? 1 : -1];
13080 if ac_fn_c_try_compile "$LINENO"; then :
13081 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
13083 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
13088 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
13089 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
13090 UINT32_MAX_LT_UINTMAX_MAX=1;
13092 UINT32_MAX_LT_UINTMAX_MAX=0;
13096 if test $APPLE_UNIVERSAL_BUILD = 0; then
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
13099 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
13100 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
13101 $as_echo_n "(cached) " >&6
13103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104 /* end confdefs.h. */
13105 /* Work also in C++ mode. */
13106 #define __STDC_LIMIT_MACROS 1
13108 /* Work if build is not clean. */
13109 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13111 #include <limits.h>
13113 #include <stdint.h>
13116 #if defined UINT64_MAX
13117 #define CONDITION (UINT64_MAX == ULONG_MAX)
13118 #elif HAVE_LONG_LONG_INT
13119 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
13121 #define CONDITION 0
13123 int test[CONDITION ? 1 : -1];
13132 if ac_fn_c_try_compile "$LINENO"; then :
13133 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
13135 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
13137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
13140 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
13141 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
13142 UINT64_MAX_EQ_ULONG_MAX=1;
13144 UINT64_MAX_EQ_ULONG_MAX=0;
13149 UINT64_MAX_EQ_ULONG_MAX=-1
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13157 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13158 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13167 # define isnand(x) __builtin_isnan ((double)(x))
13170 # define isnand(x) isnan ((double)(x))
13181 if ac_fn_c_try_link "$LINENO"; then :
13182 gl_cv_func_isnand_no_libm=yes
13184 gl_cv_func_isnand_no_libm=no
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13191 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13193 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
13194 if test $gl_cv_func_isnand_no_libm = yes; then
13196 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
13200 if test $gl_func_isnand_no_libm != yes; then
13209 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
13218 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
13219 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13228 # define isnanl(x) __builtin_isnanl ((long double)(x))
13229 #elif defined isnan
13231 # define isnanl(x) isnan ((long double)(x))
13242 if ac_fn_c_try_link "$LINENO"; then :
13243 gl_cv_func_isnanl_no_libm=yes
13245 gl_cv_func_isnanl_no_libm=no
13247 rm -f core conftest.err conftest.$ac_objext \
13248 conftest$ac_exeext conftest.$ac_ext
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
13252 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
13254 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
13255 if test $gl_func_isnanl_no_libm = yes; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
13261 $as_echo_n "checking whether isnanl works... " >&6; }
13262 if test "${gl_cv_func_isnanl_works+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
13266 if test "$cross_compiling" = yes; then :
13267 case "$host_cpu" in
13268 # Guess no on ia64, x86_64, i386.
13269 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
13272 netbsd*) gl_cv_func_isnanl_works="guessing no";;
13273 *) gl_cv_func_isnanl_works="guessing yes";;
13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h. */
13283 #include <limits.h>
13287 # define isnanl(x) __builtin_isnanl ((long double)(x))
13288 #elif defined isnan
13290 # define isnanl(x) isnan ((long double)(x))
13293 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13294 typedef union { unsigned int word[NWORDS]; long double value; }
13295 memory_long_double;
13296 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
13297 runtime type conversion. */
13299 static long double NaNl ()
13302 return zero / zero;
13305 # define NaNl() (0.0L / 0.0L)
13311 if (!isnanl (NaNl ()))
13315 memory_long_double m;
13318 /* The isnanl function should be immune against changes in the sign bit and
13319 in the mantissa bits. The xor operation twiddles a bit that can only be
13320 a sign bit or a mantissa bit (since the exponent never extends to
13323 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
13324 for (i = 0; i < NWORDS; i++)
13326 if (!isnanl (m.value))
13330 #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
13331 /* Representation of an 80-bit 'long double' as an initializer for a sequence
13332 of 'unsigned int' words. */
13333 # ifdef WORDS_BIGENDIAN
13334 # define LDBL80_WORDS(exponent,manthi,mantlo) \
13335 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
13336 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
13337 (unsigned int) (mantlo) << 16 \
13340 # define LDBL80_WORDS(exponent,manthi,mantlo) \
13341 { mantlo, manthi, exponent }
13344 static memory_long_double x =
13345 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
13346 if (!isnanl (x.value))
13350 /* Signalling NaN. */
13351 static memory_long_double x =
13352 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
13353 if (!isnanl (x.value))
13356 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
13357 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
13358 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
13359 Application Architecture.
13360 Table 5-2 "Floating-Point Register Encodings"
13361 Figure 5-6 "Memory to Floating-Point Register Data Translation"
13363 { /* Pseudo-NaN. */
13364 static memory_long_double x =
13365 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
13366 if (!isnanl (x.value))
13369 { /* Pseudo-Infinity. */
13370 static memory_long_double x =
13371 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
13372 if (!isnanl (x.value))
13375 { /* Pseudo-Zero. */
13376 static memory_long_double x =
13377 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
13378 if (!isnanl (x.value))
13381 { /* Unnormalized number. */
13382 static memory_long_double x =
13383 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
13384 if (!isnanl (x.value))
13387 { /* Pseudo-Denormal. */
13388 static memory_long_double x =
13389 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
13390 if (!isnanl (x.value))
13398 if ac_fn_c_try_run "$LINENO"; then :
13399 gl_cv_func_isnanl_works=yes
13401 gl_cv_func_isnanl_works=no
13403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13404 conftest.$ac_objext conftest.beam conftest.$ac_ext
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
13410 $as_echo "$gl_cv_func_isnanl_works" >&6; }
13412 case "$gl_cv_func_isnanl_works" in
13414 *) gl_func_isnanl_no_libm=no ;;
13417 if test $gl_func_isnanl_no_libm = yes; then
13419 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
13423 if test $gl_func_isnanl_no_libm != yes; then
13432 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
13438 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
13439 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
13440 $as_echo_n "(cached) " >&6
13443 if test "$cross_compiling" = yes; then :
13445 gl_cv_cc_long_double_expbit0="unknown"
13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13452 #include <stddef.h>
13454 #include <string.h>
13456 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13457 typedef union { long double value; unsigned int word[NWORDS]; }
13458 memory_long_double;
13459 static unsigned int ored_words[NWORDS];
13460 static unsigned int anded_words[NWORDS];
13461 static void add_to_ored_words (long double x)
13463 memory_long_double m;
13465 /* Clear it first, in case
13466 sizeof (long double) < sizeof (memory_long_double). */
13467 memset (&m, 0, sizeof (memory_long_double));
13469 for (i = 0; i < NWORDS; i++)
13471 ored_words[i] |= m.word[i];
13472 anded_words[i] &= m.word[i];
13478 FILE *fp = fopen ("conftest.out", "w");
13481 for (j = 0; j < NWORDS; j++)
13482 anded_words[j] = ~ (unsigned int) 0;
13483 add_to_ored_words (0.25L);
13484 add_to_ored_words (0.5L);
13485 add_to_ored_words (1.0L);
13486 add_to_ored_words (2.0L);
13487 add_to_ored_words (4.0L);
13488 /* Remove bits that are common (e.g. if representation of the first mantissa
13489 bit is explicit). */
13490 for (j = 0; j < NWORDS; j++)
13491 ored_words[j] &= ~anded_words[j];
13492 /* Now find the nonzero word. */
13493 for (j = 0; j < NWORDS; j++)
13494 if (ored_words[j] != 0)
13499 for (i = j + 1; i < NWORDS; i++)
13500 if (ored_words[i] != 0)
13502 fprintf (fp, "unknown");
13503 return (fclose (fp) != 0);
13506 if ((ored_words[j] >> i) & 1)
13508 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13509 return (fclose (fp) != 0);
13512 fprintf (fp, "unknown");
13513 return (fclose (fp) != 0);
13517 if ac_fn_c_try_run "$LINENO"; then :
13518 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
13520 gl_cv_cc_long_double_expbit0="unknown"
13522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13523 conftest.$ac_objext conftest.beam conftest.$ac_ext
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
13530 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
13531 case "$gl_cv_cc_long_double_expbit0" in
13533 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
13534 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
13536 cat >>confdefs.h <<_ACEOF
13537 #define LDBL_EXPBIT0_WORD $word
13541 cat >>confdefs.h <<_ACEOF
13542 #define LDBL_EXPBIT0_BIT $bit
13560 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
13565 if test $ac_cv_func_lstat = yes; then
13567 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13576 if test $REPLACE_LSTAT = 1; then
13585 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13600 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
13607 if test $gl_cv_func_malloc_posix = yes; then
13609 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
13615 if test $REPLACE_MALLOC = 1; then
13624 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
13632 GNULIB_MALLOC_POSIX=1
13638 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
13657 if test $gl_cv_have_include_next = yes; then
13658 gl_cv_next_math_h='<'math.h'>'
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
13661 $as_echo_n "checking absolute name of <math.h>... " >&6; }
13662 if test "${gl_cv_next_math_h+set}" = set; then :
13663 $as_echo_n "(cached) " >&6
13666 if test $ac_cv_header_math_h = yes; then
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13675 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13676 *) gl_absname_cpp="$ac_cpp" ;;
13681 gl_dirsep_regex='[/\\]'
13684 gl_dirsep_regex='\/'
13687 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13689 gl_header_literal_regex=`echo 'math.h' \
13690 |
sed -e "$gl_make_literal_regex_sed"`
13691 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13692 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13697 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13698 sed -n "$gl_absolute_header_sed"`'"'
13700 gl_cv_next_math_h='<'math.h'>'
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
13706 $as_echo "$gl_cv_next_math_h" >&6; }
13708 NEXT_MATH_H=$gl_cv_next_math_h
13710 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13712 gl_next_as_first_directive='<'math.h'>'
13714 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13715 gl_next_as_first_directive=$gl_cv_next_math_h
13717 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
13724 $as_echo_n "checking whether NAN macro works... " >&6; }
13725 if test "${gl_cv_header_math_nan_works+set}" = set; then :
13726 $as_echo_n "(cached) " >&6
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13734 /* Solaris 10 has a broken definition of NAN. Other platforms
13735 fail to provide NAN, or provide it only in C99 mode; this
13736 test only needs to fail when NAN is provided but wrong. */
13746 if ac_fn_c_try_compile "$LINENO"; then :
13747 gl_cv_header_math_nan_works=yes
13749 gl_cv_header_math_nan_works=no
13751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
13754 $as_echo "$gl_cv_header_math_nan_works" >&6; }
13755 if test $gl_cv_header_math_nan_works = no; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
13759 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
13760 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
13761 $as_echo_n "(cached) " >&6
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13769 /* Solaris 10 has a broken definition of HUGE_VAL. */
13770 double d = HUGE_VAL;
13776 if ac_fn_c_try_compile "$LINENO"; then :
13777 gl_cv_header_math_huge_val_works=yes
13779 gl_cv_header_math_huge_val_works=no
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
13784 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
13785 if test $gl_cv_header_math_huge_val_works = no; then
13790 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
13791 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13793 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13794 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13795 $as_echo_n "(cached) " >&6
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13809 if ac_fn_c_try_compile "$LINENO"; then :
13810 eval "$as_gl_Symbol=yes"
13812 eval "$as_gl_Symbol=no"
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 eval ac_res=\$$as_gl_Symbol
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13818 $as_echo "$ac_res" >&6; }
13819 eval as_val=\$$as_gl_Symbol
13820 if test "x$as_val" = x""yes; then :
13821 cat >>confdefs.h <<_ACEOF
13822 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
13825 eval ac_cv_have_decl_$gl_func=yes
13840 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13845 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13846 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13847 $as_echo_n "(cached) " >&6
13851 # Guess no on AIX and OSF/1.
13852 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13853 # Guess yes otherwise.
13854 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13856 if test $LOCALE_JA != none; then
13857 if test "$cross_compiling" = yes; then :
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13863 #include <locale.h>
13864 #include <string.h>
13865 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13867 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13868 included before <wchar.h>. */
13869 #include <stddef.h>
13875 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13877 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13881 memset (&state, '\0', sizeof (mbstate_t));
13882 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13883 if (mbsinit (&state))
13889 if ac_fn_c_try_run "$LINENO"; then :
13890 gl_cv_func_mbrtowc_incomplete_state=yes
13892 gl_cv_func_mbrtowc_incomplete_state=no
13894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13895 conftest.$ac_objext conftest.beam conftest.$ac_ext
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13902 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13908 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13909 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13910 $as_echo_n "(cached) " >&6
13914 # Guess no on Solaris 8.
13915 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13916 # Guess yes otherwise.
13917 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13919 if test $LOCALE_ZH_CN != none; then
13920 if test "$cross_compiling" = yes; then :
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13926 #include <locale.h>
13927 #include <stdlib.h>
13928 #include <string.h>
13929 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13931 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13932 included before <wchar.h>. */
13933 #include <stddef.h>
13939 /* This fails on Solaris 8:
13940 mbrtowc returns 2, and sets wc to 0x00F0.
13941 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13942 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13944 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13948 memset (&state, '\0', sizeof (mbstate_t));
13949 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13950 && mbtowc (&wc, input + 3, 6) == 4)
13956 if ac_fn_c_try_run "$LINENO"; then :
13957 gl_cv_func_mbrtowc_sanitycheck=yes
13959 gl_cv_func_mbrtowc_sanitycheck=no
13961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13962 conftest.$ac_objext conftest.beam conftest.$ac_ext
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13969 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13971 REPLACE_MBSTATE_T=0
13972 case "$gl_cv_func_mbrtowc_incomplete_state" in
13974 *) REPLACE_MBSTATE_T=1 ;;
13976 case "$gl_cv_func_mbrtowc_sanitycheck" in
13978 *) REPLACE_MBSTATE_T=1 ;;
13981 REPLACE_MBSTATE_T=1
13986 if test $ac_cv_func_mbrtowc = no; then
13988 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
13989 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13991 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13992 included before <wchar.h>. */
13993 #include <stddef.h>
13999 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
14005 cat >>confdefs.h <<_ACEOF
14006 #define HAVE_DECL_MBRTOWC $ac_have_decl
14009 if test $ac_cv_have_decl_mbrtowc = yes; then
14013 if test $REPLACE_MBSTATE_T = 1; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
14020 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
14021 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
14022 $as_echo_n "(cached) " >&6
14026 # Guess no on Solaris.
14027 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
14028 # Guess yes otherwise.
14029 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
14031 if test $LOCALE_FR_UTF8 != none; then
14032 if test "$cross_compiling" = yes; then :
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14038 #include <locale.h>
14039 #include <stdlib.h>
14040 #include <string.h>
14041 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14043 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14044 included before <wchar.h>. */
14045 #include <stddef.h>
14053 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14055 char input[] = "\303\237er";
14060 memset (&state, '\0', sizeof (mbstate_t));
14061 wc = (wchar_t) 0xBADFACE;
14062 ret = mbrtowc (&wc, input, 5, &state);
14065 if (!mbsinit (&state))
14068 memset (&state, '\0', sizeof (mbstate_t));
14069 ret = mbrtowc (NULL, input, 5, &state);
14070 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
14072 if (!mbsinit (&state))
14078 if ac_fn_c_try_run "$LINENO"; then :
14079 gl_cv_func_mbrtowc_null_arg1=yes
14081 gl_cv_func_mbrtowc_null_arg1=no
14083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14084 conftest.$ac_objext conftest.beam conftest.$ac_ext
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
14091 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
14097 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
14098 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
14099 $as_echo_n "(cached) " >&6
14103 # Guess no on OSF/1.
14104 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
14105 # Guess yes otherwise.
14106 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
14108 if test $LOCALE_FR_UTF8 != none; then
14109 if test "$cross_compiling" = yes; then :
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14115 #include <locale.h>
14116 #include <string.h>
14117 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14119 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14120 included before <wchar.h>. */
14121 #include <stddef.h>
14127 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14133 memset (&state, '\0', sizeof (mbstate_t));
14134 wc = (wchar_t) 0xBADFACE;
14135 mbrtowc (&wc, NULL, 5, &state);
14136 /* Check that wc was not modified. */
14137 if (wc != (wchar_t) 0xBADFACE)
14143 if ac_fn_c_try_run "$LINENO"; then :
14144 gl_cv_func_mbrtowc_null_arg2=yes
14146 gl_cv_func_mbrtowc_null_arg2=no
14148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14149 conftest.$ac_objext conftest.beam conftest.$ac_ext
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
14156 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
14164 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
14165 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
14166 $as_echo_n "(cached) " >&6
14170 # Guess no on HP-UX, Solaris, native Windows.
14171 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
14172 # Guess yes otherwise.
14173 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
14175 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
14176 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
14177 if test "$cross_compiling" = yes; then :
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14183 #include <locale.h>
14184 #include <string.h>
14185 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14187 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14188 included before <wchar.h>. */
14189 #include <stddef.h>
14196 int found_some_locale = 0;
14197 /* This fails on Solaris. */
14198 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14200 char input[] = "B\303\274\303\237er"; /* "Büßer" */
14204 memset (&state, '\0', sizeof (mbstate_t));
14205 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14208 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
14211 found_some_locale = 1;
14213 /* This fails on HP-UX 11.11. */
14214 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14216 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14220 memset (&state, '\0', sizeof (mbstate_t));
14221 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14224 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
14227 found_some_locale = 1;
14229 /* This fails on native Windows. */
14230 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
14232 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
14236 memset (&state, '\0', sizeof (mbstate_t));
14237 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14240 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14243 found_some_locale = 1;
14245 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
14247 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
14251 memset (&state, '\0', sizeof (mbstate_t));
14252 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14255 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14258 found_some_locale = 1;
14260 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
14262 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
14266 memset (&state, '\0', sizeof (mbstate_t));
14267 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14270 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14273 found_some_locale = 1;
14275 return (found_some_locale ? result : 77);
14278 if ac_fn_c_try_run "$LINENO"; then :
14279 gl_cv_func_mbrtowc_retval=yes
14281 if test $? != 77; then
14282 gl_cv_func_mbrtowc_retval=no
14286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14287 conftest.$ac_objext conftest.beam conftest.$ac_ext
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
14294 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
14300 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
14301 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
14302 $as_echo_n "(cached) " >&6
14306 # Guess no on Solaris 8 and 9.
14307 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
14308 # Guess yes otherwise.
14309 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
14311 if test $LOCALE_ZH_CN != none; then
14312 if test "$cross_compiling" = yes; then :
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14318 #include <locale.h>
14319 #include <string.h>
14320 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14322 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14323 included before <wchar.h>. */
14324 #include <stddef.h>
14330 /* This fails on Solaris 8 and 9. */
14331 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14336 memset (&state, '\0', sizeof (mbstate_t));
14337 if (mbrtowc (&wc, "", 1, &state) != 0)
14343 if ac_fn_c_try_run "$LINENO"; then :
14344 gl_cv_func_mbrtowc_nul_retval=yes
14346 gl_cv_func_mbrtowc_nul_retval=no
14348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14349 conftest.$ac_objext conftest.beam conftest.$ac_ext
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
14356 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
14358 case "$gl_cv_func_mbrtowc_null_arg1" in
14361 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
14366 case "$gl_cv_func_mbrtowc_null_arg2" in
14369 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
14374 case "$gl_cv_func_mbrtowc_retval" in
14377 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
14382 case "$gl_cv_func_mbrtowc_nul_retval" in
14385 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
14393 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
14402 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
14419 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
14434 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14439 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14440 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
14445 # Guess no on AIX and OSF/1.
14446 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14447 # Guess yes otherwise.
14448 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14450 if test $LOCALE_JA != none; then
14451 if test "$cross_compiling" = yes; then :
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14457 #include <locale.h>
14458 #include <string.h>
14459 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14461 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14462 included before <wchar.h>. */
14463 #include <stddef.h>
14469 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14471 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14475 memset (&state, '\0', sizeof (mbstate_t));
14476 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14477 if (mbsinit (&state))
14483 if ac_fn_c_try_run "$LINENO"; then :
14484 gl_cv_func_mbrtowc_incomplete_state=yes
14486 gl_cv_func_mbrtowc_incomplete_state=no
14488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14489 conftest.$ac_objext conftest.beam conftest.$ac_ext
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14496 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14502 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14503 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14504 $as_echo_n "(cached) " >&6
14508 # Guess no on Solaris 8.
14509 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14510 # Guess yes otherwise.
14511 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14513 if test $LOCALE_ZH_CN != none; then
14514 if test "$cross_compiling" = yes; then :
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14520 #include <locale.h>
14521 #include <stdlib.h>
14522 #include <string.h>
14523 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14525 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14526 included before <wchar.h>. */
14527 #include <stddef.h>
14533 /* This fails on Solaris 8:
14534 mbrtowc returns 2, and sets wc to 0x00F0.
14535 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14536 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14538 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14542 memset (&state, '\0', sizeof (mbstate_t));
14543 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14544 && mbtowc (&wc, input + 3, 6) == 4)
14550 if ac_fn_c_try_run "$LINENO"; then :
14551 gl_cv_func_mbrtowc_sanitycheck=yes
14553 gl_cv_func_mbrtowc_sanitycheck=no
14555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14556 conftest.$ac_objext conftest.beam conftest.$ac_ext
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14563 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14565 REPLACE_MBSTATE_T=0
14566 case "$gl_cv_func_mbrtowc_incomplete_state" in
14568 *) REPLACE_MBSTATE_T=1 ;;
14570 case "$gl_cv_func_mbrtowc_sanitycheck" in
14572 *) REPLACE_MBSTATE_T=1 ;;
14575 REPLACE_MBSTATE_T=1
14580 if test $ac_cv_func_mbsinit = no; then
14582 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
14583 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14585 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14586 included before <wchar.h>. */
14587 #include <stddef.h>
14593 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_DECL_MBSINIT $ac_have_decl
14603 if test $ac_cv_have_decl_mbsinit = yes; then
14607 if test $REPLACE_MBSTATE_T = 1; then
14611 mingw*) REPLACE_MBSINIT=1 ;;
14616 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
14625 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
14642 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
14656 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14661 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14662 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14663 $as_echo_n "(cached) " >&6
14667 # Guess no on AIX and OSF/1.
14668 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14669 # Guess yes otherwise.
14670 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14672 if test $LOCALE_JA != none; then
14673 if test "$cross_compiling" = yes; then :
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14679 #include <locale.h>
14680 #include <string.h>
14681 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14683 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14684 included before <wchar.h>. */
14685 #include <stddef.h>
14691 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14693 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14697 memset (&state, '\0', sizeof (mbstate_t));
14698 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14699 if (mbsinit (&state))
14705 if ac_fn_c_try_run "$LINENO"; then :
14706 gl_cv_func_mbrtowc_incomplete_state=yes
14708 gl_cv_func_mbrtowc_incomplete_state=no
14710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14711 conftest.$ac_objext conftest.beam conftest.$ac_ext
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14718 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14724 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14725 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14726 $as_echo_n "(cached) " >&6
14730 # Guess no on Solaris 8.
14731 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14732 # Guess yes otherwise.
14733 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14735 if test $LOCALE_ZH_CN != none; then
14736 if test "$cross_compiling" = yes; then :
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14742 #include <locale.h>
14743 #include <stdlib.h>
14744 #include <string.h>
14745 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14747 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14748 included before <wchar.h>. */
14749 #include <stddef.h>
14755 /* This fails on Solaris 8:
14756 mbrtowc returns 2, and sets wc to 0x00F0.
14757 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14758 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14760 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14764 memset (&state, '\0', sizeof (mbstate_t));
14765 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14766 && mbtowc (&wc, input + 3, 6) == 4)
14772 if ac_fn_c_try_run "$LINENO"; then :
14773 gl_cv_func_mbrtowc_sanitycheck=yes
14775 gl_cv_func_mbrtowc_sanitycheck=no
14777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14778 conftest.$ac_objext conftest.beam conftest.$ac_ext
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14785 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14787 REPLACE_MBSTATE_T=0
14788 case "$gl_cv_func_mbrtowc_incomplete_state" in
14790 *) REPLACE_MBSTATE_T=1 ;;
14792 case "$gl_cv_func_mbrtowc_sanitycheck" in
14794 *) REPLACE_MBSTATE_T=1 ;;
14797 REPLACE_MBSTATE_T=1
14802 if test $ac_cv_func_mbsrtowcs = no; then
14804 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
14805 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14807 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14808 included before <wchar.h>. */
14809 #include <stddef.h>
14815 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
14821 cat >>confdefs.h <<_ACEOF
14822 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
14825 if test $ac_cv_have_decl_mbsrtowcs = yes; then
14826 REPLACE_MBSRTOWCS=1
14829 if test $REPLACE_MBSTATE_T = 1; then
14830 REPLACE_MBSRTOWCS=1
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
14839 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
14840 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
14841 $as_echo_n "(cached) " >&6
14845 # Guess no on HP-UX, Solaris, mingw.
14846 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
14847 # Guess yes otherwise.
14848 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
14850 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
14851 if test "$cross_compiling" = yes; then :
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14857 #include <locale.h>
14858 #include <string.h>
14859 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14861 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14862 included before <wchar.h>. */
14863 #include <stddef.h>
14870 /* Test whether the function supports a NULL destination argument.
14871 This fails on native Windows. */
14872 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
14874 const char input[] = "\337er";
14875 const char *src = input;
14878 memset (&state, '\0', sizeof (mbstate_t));
14879 if (mbsrtowcs (NULL, &src, 1, &state) != 3
14883 /* Test whether the function works when started with a conversion state
14884 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
14885 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14887 const char input[] = "B\303\274\303\237er";
14890 memset (&state, '\0', sizeof (mbstate_t));
14891 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14892 if (!mbsinit (&state))
14894 const char *src = input + 2;
14895 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14899 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14901 const char input[] = "<\306\374\313\334\270\354>";
14904 memset (&state, '\0', sizeof (mbstate_t));
14905 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
14906 if (!mbsinit (&state))
14908 const char *src = input + 4;
14909 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
14913 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14915 const char input[] = "B\250\271\201\060\211\070er";
14918 memset (&state, '\0', sizeof (mbstate_t));
14919 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14920 if (!mbsinit (&state))
14922 const char *src = input + 2;
14923 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14930 if ac_fn_c_try_run "$LINENO"; then :
14931 gl_cv_func_mbsrtowcs_works=yes
14933 gl_cv_func_mbsrtowcs_works=no
14935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14936 conftest.$ac_objext conftest.beam conftest.$ac_ext
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
14943 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
14945 case "$gl_cv_func_mbsrtowcs_works" in
14947 *) REPLACE_MBSRTOWCS=1 ;;
14952 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
14961 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
14971 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
14988 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
14993 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15002 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15005 for ac_header in bp-sym.h
15007 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15008 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
15009 cat >>confdefs.h <<_ACEOF
15010 #define HAVE_BP_SYM_H 1
15030 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15036 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
15038 $as_echo_n "checking whether memmem works in linear time... " >&6; }
15039 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
15040 $as_echo_n "(cached) " >&6
15042 if test "$cross_compiling" = yes; then :
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15046 #include <features.h>
15047 #ifdef __GNU_LIBRARY__
15048 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
15049 && !defined __UCLIBC__
15054 #include <cygwin/version.h>
15055 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
15061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15062 $EGREP "Lucky user" >/dev/null 2>&1; then :
15063 gl_cv_func_memmem_works_fast="guessing yes"
15065 gl_cv_func_memmem_works_fast="guessing no"
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15074 #include <signal.h> /* for signal */
15075 #include <string.h> /* for memmem */
15076 #include <stdlib.h> /* for malloc */
15077 #include <unistd.h> /* for alarm */
15078 static void quit (int sig) { exit (sig + 128); }
15085 size_t m = 1000000;
15086 char *haystack = (char *) malloc (2 * m + 1);
15087 char *needle = (char *) malloc (m + 1);
15088 /* Failure to compile this test due to missing alarm is okay,
15089 since all such platforms (mingw) also lack memmem. */
15090 signal (SIGALRM, quit);
15092 /* Check for quadratic performance. */
15093 if (haystack && needle)
15095 memset (haystack, 'A', 2 * m);
15096 haystack[2 * m] = 'B';
15097 memset (needle, 'A', m);
15099 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
15108 if ac_fn_c_try_run "$LINENO"; then :
15109 gl_cv_func_memmem_works_fast=yes
15111 gl_cv_func_memmem_works_fast=no
15113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15114 conftest.$ac_objext conftest.beam conftest.$ac_ext
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
15120 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
15121 case "$gl_cv_func_memmem_works_fast" in
15129 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15138 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15145 for ac_func in memmem
15147 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15148 if test "x$ac_cv_func_memmem" = x""yes; then :
15149 cat >>confdefs.h <<_ACEOF
15150 #define HAVE_MEMMEM 1
15156 if test $ac_cv_func_memmem = yes; then
15162 if test $ac_cv_have_decl_memmem = no; then
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15166 $as_echo_n "checking whether memmem works... " >&6; }
15167 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
15168 $as_echo_n "(cached) " >&6
15170 if test "$cross_compiling" = yes; then :
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15174 #ifdef __GNU_LIBRARY__
15175 #include <features.h>
15176 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15177 || __GLIBC_MINOR__ > 12)) \
15178 || (__GLIBC__ > 2)) \
15179 || defined __UCLIBC__
15182 #elif defined __CYGWIN__
15183 #include <cygwin/version.h>
15184 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15193 $EGREP "Lucky user" >/dev/null 2>&1; then :
15194 gl_cv_func_memmem_works_always="guessing yes"
15196 gl_cv_func_memmem_works_always="guessing no"
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15205 #include <string.h> /* for memmem */
15206 #define P "_EF_BF_BD"
15207 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15208 #define NEEDLE P P P P P
15215 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15217 /* Check for empty needle behavior. */
15219 const char *haystack = "AAA";
15220 if (memmem (haystack, 3, NULL, 0) != haystack)
15229 if ac_fn_c_try_run "$LINENO"; then :
15230 gl_cv_func_memmem_works_always=yes
15232 gl_cv_func_memmem_works_always=no
15234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15235 conftest.$ac_objext conftest.beam conftest.$ac_ext
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15241 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15242 case "$gl_cv_func_memmem_works_always" in
15251 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15260 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15274 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
15285 if test $ac_cv_func_readlink = no; then
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
15289 $as_echo_n "checking whether readlink signature is correct... " >&6; }
15290 if test "${gl_cv_decl_readlink_works+set}" = set; then :
15291 $as_echo_n "(cached) " >&6
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15295 #include <unistd.h>
15296 /* Cause compilation failure if original declaration has wrong type. */
15297 ssize_t readlink (const char *, char *, size_t);
15306 if ac_fn_c_try_compile "$LINENO"; then :
15307 gl_cv_decl_readlink_works=yes
15309 gl_cv_decl_readlink_works=no
15311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
15314 $as_echo "$gl_cv_decl_readlink_works" >&6; }
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
15316 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
15317 if test "${gl_cv_func_readlink_works+set}" = set; then :
15318 $as_echo_n "(cached) " >&6
15320 # We have readlink, so assume ln -s works.
15321 ln -s conftest.no-such conftest.link
15322 ln -s conftest.link conftest.lnk2
15323 if test "$cross_compiling" = yes; then :
15325 # Guess yes on glibc systems.
15326 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
15327 # If we don't know, assume the worst.
15328 *) gl_cv_func_readlink_works="guessing no" ;;
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334 #include <unistd.h>
15340 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
15345 if ac_fn_c_try_run "$LINENO"; then :
15346 gl_cv_func_readlink_works=yes
15348 gl_cv_func_readlink_works=no
15350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15351 conftest.$ac_objext conftest.beam conftest.$ac_ext
15354 rm -f conftest.link conftest.lnk2
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
15357 $as_echo "$gl_cv_func_readlink_works" >&6; }
15358 case "$gl_cv_func_readlink_works" in
15360 if test "$gl_cv_decl_readlink_works" != yes; then
15366 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
15373 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
15382 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
15399 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
15409 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
15410 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
15411 $as_echo_n "(cached) " >&6
15413 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
15414 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
15415 as_fn_error "cannot create temporary files" "$LINENO" 5
15416 # Assume that if we have lstat, we can also check symlinks.
15417 if test $ac_cv_func_lstat = yes; then
15418 ln -s conftest.f conftest.lnk
15420 if test "$cross_compiling" = yes; then :
15422 # Guess yes on glibc systems.
15423 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
15424 # If we don't know, assume the worst.
15425 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15432 # include <stdio.h>
15433 # include <stdlib.h>
15439 if (rename ("conftest.f1", "conftest.f2/") == 0)
15441 if (rename ("conftest.d1", "conftest.d2/") != 0)
15444 if (rename ("conftest.f", "conftest.lnk/") == 0)
15453 if ac_fn_c_try_run "$LINENO"; then :
15454 gl_cv_func_rename_slash_dst_works=yes
15456 gl_cv_func_rename_slash_dst_works=no
15458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15459 conftest.$ac_objext conftest.beam conftest.$ac_ext
15462 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
15466 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
15467 case "$gl_cv_func_rename_slash_dst_works" in
15472 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
15478 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
15479 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
15480 $as_echo_n "(cached) " >&6
15482 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
15483 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
15484 as_fn_error "cannot create temporary files" "$LINENO" 5
15485 # Assume that if we have lstat, we can also check symlinks.
15486 if test $ac_cv_func_lstat = yes; then
15487 ln -s conftest.f conftest.lnk
15489 if test "$cross_compiling" = yes; then :
15491 # Guess yes on glibc systems.
15492 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
15493 # If we don't know, assume the worst.
15494 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h. */
15501 # include <stdio.h>
15502 # include <stdlib.h>
15508 if (rename ("conftest.f1/", "conftest.d3") == 0)
15510 if (rename ("conftest.d1/", "conftest.d2") != 0)
15513 if (rename ("conftest.lnk/", "conftest.f") == 0)
15522 if ac_fn_c_try_run "$LINENO"; then :
15523 gl_cv_func_rename_slash_src_works=yes
15525 gl_cv_func_rename_slash_src_works=no
15527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15528 conftest.$ac_objext conftest.beam conftest.$ac_ext
15531 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
15535 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
15536 case "$gl_cv_func_rename_slash_src_works" in
15541 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
15548 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
15549 if test "${gl_cv_func_rename_link_works+set}" = set; then :
15550 $as_echo_n "(cached) " >&6
15552 if test $ac_cv_func_link = yes; then
15553 rm -rf conftest.f conftest.f1
15554 if touch conftest.f && ln conftest.f conftest.f1 &&
15555 set x `ls -i conftest.f conftest.f1
` && test "" = ""; then
15556 if test "$cross_compiling" = yes; then :
15558 # Guess yes on glibc systems.
15559 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
15560 # If we don't know, assume the worst.
15561 *) gl_cv_func_rename_link_works="guessing no" ;;
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15568 # include <stdio.h>
15569 # include <stdlib.h>
15570 # include <unistd.h>
15576 if (rename ("conftest.f", "conftest.f1"))
15578 if (unlink ("conftest.f1"))
15580 if (rename ("conftest.f", "conftest.f"))
15582 if (rename ("conftest.f1", "conftest.f1") == 0)
15590 if ac_fn_c_try_run "$LINENO"; then :
15591 gl_cv_func_rename_link_works=yes
15593 gl_cv_func_rename_link_works=no
15595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15596 conftest.$ac_objext conftest.beam conftest.$ac_ext
15600 gl_cv_func_rename_link_works="guessing no"
15602 rm -rf conftest.f conftest.f1
15604 gl_cv_func_rename_link_works=yes
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
15609 $as_echo "$gl_cv_func_rename_link_works" >&6; }
15610 case "$gl_cv_func_rename_link_works" in
15615 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
15621 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
15622 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
15623 $as_echo_n "(cached) " >&6
15625 rm -rf conftest.f conftest.d1 conftest.d2
15626 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
15627 as_fn_error "cannot create temporary files" "$LINENO" 5
15628 if test "$cross_compiling" = yes; then :
15630 # Guess yes on glibc systems.
15631 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
15632 # If we don't know, assume the worst.
15633 *) gl_cv_func_rename_dest_works="guessing no" ;;
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15640 # include <stdio.h>
15641 # include <stdlib.h>
15647 if (rename ("conftest.d1", "conftest.d2") != 0)
15649 if (rename ("conftest.d2", "conftest.f") == 0)
15657 if ac_fn_c_try_run "$LINENO"; then :
15658 gl_cv_func_rename_dest_works=yes
15660 gl_cv_func_rename_dest_works=no
15662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15663 conftest.$ac_objext conftest.beam conftest.$ac_ext
15666 rm -rf conftest.f conftest.d1 conftest.d2
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
15670 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
15671 case "$gl_cv_func_rename_dest_works" in
15676 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
15681 if test $REPLACE_RENAME = 1; then
15690 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
15704 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
15712 $as_echo_n "checking whether rmdir works... " >&6; }
15713 if test "${gl_cv_func_rmdir_works+set}" = set; then :
15714 $as_echo_n "(cached) " >&6
15717 touch conftest.file
15718 if test "$cross_compiling" = yes; then :
15720 # Guess yes on glibc systems.
15721 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
15722 # If we don't know, assume the worst.
15723 *) gl_cv_func_rmdir_works="guessing no" ;;
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15732 # include <unistd.h>
15733 #else /* on Windows with MSVC */
15734 # include <direct.h>
15741 if (!rmdir ("conftest.file/"))
15743 else if (errno != ENOTDIR)
15745 if (!rmdir ("conftest.dir/./"))
15753 if ac_fn_c_try_run "$LINENO"; then :
15754 gl_cv_func_rmdir_works=yes
15756 gl_cv_func_rmdir_works=no
15758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15759 conftest.$ac_objext conftest.beam conftest.$ac_ext
15762 rm -rf conftest.dir conftest.file
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
15765 $as_echo "$gl_cv_func_rmdir_works" >&6; }
15766 case "$gl_cv_func_rmdir_works" in
15773 if test $REPLACE_RMDIR = 1; then
15782 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
15796 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15802 $as_echo_n "checking for ssize_t... " >&6; }
15803 if test "${gt_cv_ssize_t+set}" = set; then :
15804 $as_echo_n "(cached) " >&6
15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15808 #include <sys/types.h>
15812 int x = sizeof (ssize_t *) + sizeof (ssize_t);
15818 if ac_fn_c_try_compile "$LINENO"; then :
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
15826 $as_echo "$gt_cv_ssize_t" >&6; }
15827 if test $gt_cv_ssize_t = no; then
15829 $as_echo "#define ssize_t int" >>confdefs.h
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15837 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15838 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15839 $as_echo_n "(cached) " >&6
15841 if test "$cross_compiling" = yes; then :
15843 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
15844 *) gl_cv_func_stat_dir_slash="guessing yes";;
15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15848 /* end confdefs.h. */
15849 #include <sys/stat.h>
15854 struct stat st; return stat (".", &st) != stat ("./", &st);
15859 if ac_fn_c_try_run "$LINENO"; then :
15860 gl_cv_func_stat_dir_slash=yes
15862 gl_cv_func_stat_dir_slash=no
15864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15865 conftest.$ac_objext conftest.beam conftest.$ac_ext
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15870 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15872 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15873 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15874 $as_echo_n "(cached) " >&6
15877 # Assume that if we have lstat, we can also check symlinks.
15878 if test $ac_cv_func_lstat = yes; then
15879 ln -s conftest.tmp conftest.lnk
15881 if test "$cross_compiling" = yes; then :
15883 # Guess yes on glibc systems.
15884 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
15885 # If we don't know, assume the worst.
15886 *) gl_cv_func_stat_file_slash="guessing no" ;;
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15892 #include <sys/stat.h>
15899 if (!stat ("conftest.tmp/", &st))
15902 if (!stat ("conftest.lnk/", &st))
15911 if ac_fn_c_try_run "$LINENO"; then :
15912 gl_cv_func_stat_file_slash=yes
15914 gl_cv_func_stat_file_slash=no
15916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15917 conftest.$ac_objext conftest.beam conftest.$ac_ext
15920 rm -f conftest.tmp conftest.lnk
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
15923 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
15924 case $gl_cv_func_stat_dir_slash in
15925 *no) REPLACE_STAT=1
15927 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
15930 case $gl_cv_func_stat_file_slash in
15931 *no) REPLACE_STAT=1
15933 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
15937 if test $REPLACE_STAT = 1; then
15946 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
15961 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
15968 # Define two additional variables used in the Makefile substitution.
15970 if test "$ac_cv_header_stdbool_h" = yes; then
15973 STDBOOL_H='stdbool.h'
15976 if test -n "$STDBOOL_H"; then
15977 GL_GENERATE_STDBOOL_H_TRUE=
15978 GL_GENERATE_STDBOOL_H_FALSE='#'
15980 GL_GENERATE_STDBOOL_H_TRUE='#'
15981 GL_GENERATE_STDBOOL_H_FALSE=
15985 if test "$ac_cv_type__Bool" = yes; then
15996 if test $gt_cv_c_wchar_t = no; then
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16001 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16002 if test "${gl_cv_decl_null_works+set}" = set; then :
16003 $as_echo_n "(cached) " >&6
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 #include <stddef.h>
16008 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16018 if ac_fn_c_try_compile "$LINENO"; then :
16019 gl_cv_decl_null_works=yes
16021 gl_cv_decl_null_works=no
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16026 $as_echo "$gl_cv_decl_null_works" >&6; }
16027 if test $gl_cv_decl_null_works = no; then
16032 if test -n "$STDDEF_H"; then
16033 GL_GENERATE_STDDEF_H_TRUE=
16034 GL_GENERATE_STDDEF_H_FALSE='#'
16036 GL_GENERATE_STDDEF_H_TRUE='#'
16037 GL_GENERATE_STDDEF_H_FALSE=
16040 if test -n "$STDDEF_H"; then
16049 if test $gl_cv_have_include_next = yes; then
16050 gl_cv_next_stddef_h='<'stddef.h'>'
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16053 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16054 if test "${gl_cv_next_stddef_h+set}" = set; then :
16055 $as_echo_n "(cached) " >&6
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 #include <stddef.h>
16064 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16065 *) gl_absname_cpp="$ac_cpp" ;;
16070 gl_dirsep_regex='[/\\]'
16073 gl_dirsep_regex='\/'
16076 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16078 gl_header_literal_regex=`echo 'stddef.h' \
16079 |
sed -e "$gl_make_literal_regex_sed"`
16080 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16081 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16086 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16087 sed -n "$gl_absolute_header_sed"`'"'
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16092 $as_echo "$gl_cv_next_stddef_h" >&6; }
16094 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16096 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16098 gl_next_as_first_directive='<'stddef.h'>'
16100 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16101 gl_next_as_first_directive=$gl_cv_next_stddef_h
16103 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16121 if test $gl_cv_have_include_next = yes; then
16122 gl_cv_next_stdio_h='<'stdio.h'>'
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
16125 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
16126 if test "${gl_cv_next_stdio_h+set}" = set; then :
16127 $as_echo_n "(cached) " >&6
16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16136 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16137 *) gl_absname_cpp="$ac_cpp" ;;
16142 gl_dirsep_regex='[/\\]'
16145 gl_dirsep_regex='\/'
16148 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16150 gl_header_literal_regex=`echo 'stdio.h' \
16151 |
sed -e "$gl_make_literal_regex_sed"`
16152 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16153 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16158 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16159 sed -n "$gl_absolute_header_sed"`'"'
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
16164 $as_echo "$gl_cv_next_stdio_h" >&6; }
16166 NEXT_STDIO_H=$gl_cv_next_stdio_h
16168 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16169 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16170 gl_next_as_first_directive='<'stdio.h'>'
16172 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16173 gl_next_as_first_directive=$gl_cv_next_stdio_h
16175 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
16184 cat >>confdefs.h <<_ACEOF
16185 #define GNULIB_FSCANF 1
16192 cat >>confdefs.h <<_ACEOF
16193 #define GNULIB_SCANF 1
16218 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
16219 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16221 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16222 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16223 $as_echo_n "(cached) " >&6
16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h. */
16238 if ac_fn_c_try_compile "$LINENO"; then :
16239 eval "$as_gl_Symbol=yes"
16241 eval "$as_gl_Symbol=no"
16243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16245 eval ac_res=\$$as_gl_Symbol
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16247 $as_echo "$ac_res" >&6; }
16248 eval as_val=\$$as_gl_Symbol
16249 if test "x$as_val" = x""yes; then :
16250 cat >>confdefs.h <<_ACEOF
16251 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16254 eval ac_cv_have_decl_$gl_func=yes
16269 if test $gl_cv_have_include_next = yes; then
16270 gl_cv_next_stdlib_h='<'stdlib.h'>'
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16273 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16274 if test "${gl_cv_next_stdlib_h+set}" = set; then :
16275 $as_echo_n "(cached) " >&6
16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280 #include <stdlib.h>
16284 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16285 *) gl_absname_cpp="$ac_cpp" ;;
16290 gl_dirsep_regex='[/\\]'
16293 gl_dirsep_regex='\/'
16296 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16298 gl_header_literal_regex=`echo 'stdlib.h' \
16299 |
sed -e "$gl_make_literal_regex_sed"`
16300 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16301 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16306 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16307 sed -n "$gl_absolute_header_sed"`'"'
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16312 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16314 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16316 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16317 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16318 gl_next_as_first_directive='<'stdlib.h'>'
16320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16321 gl_next_as_first_directive=$gl_cv_next_stdlib_h
16323 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
16330 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 setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
16331 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16333 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16334 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16335 $as_echo_n "(cached) " >&6
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339 #include <stdlib.h>
16340 #if HAVE_SYS_LOADAVG_H
16341 # include <sys/loadavg.h>
16344 # include <random.h>
16356 if ac_fn_c_try_compile "$LINENO"; then :
16357 eval "$as_gl_Symbol=yes"
16359 eval "$as_gl_Symbol=no"
16361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363 eval ac_res=\$$as_gl_Symbol
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16365 $as_echo "$ac_res" >&6; }
16366 eval as_val=\$$as_gl_Symbol
16367 if test "x$as_val" = x""yes; then :
16368 cat >>confdefs.h <<_ACEOF
16369 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16372 eval ac_cv_have_decl_$gl_func=yes
16382 if test $REPLACE_STRSTR = 0; then
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
16384 $as_echo_n "checking whether strstr works in linear time... " >&6; }
16385 if test "${gl_cv_func_strstr_linear+set}" = set; then :
16386 $as_echo_n "(cached) " >&6
16388 if test "$cross_compiling" = yes; then :
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16392 #include <features.h>
16393 #ifdef __GNU_LIBRARY__
16394 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16395 && !(defined __i386__ || defined __x86_64__) \
16396 && !defined __UCLIBC__
16401 #include <cygwin/version.h>
16402 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16409 $EGREP "Lucky user" >/dev/null 2>&1; then :
16410 gl_cv_func_strstr_linear="guessing yes"
16412 gl_cv_func_strstr_linear="guessing no"
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16421 #include <signal.h> /* for signal */
16422 #include <string.h> /* for strstr */
16423 #include <stdlib.h> /* for malloc */
16424 #include <unistd.h> /* for alarm */
16425 static void quit (int sig) { exit (sig + 128); }
16432 size_t m = 1000000;
16433 char *haystack = (char *) malloc (2 * m + 2);
16434 char *needle = (char *) malloc (m + 2);
16435 /* Failure to compile this test due to missing alarm is okay,
16436 since all such platforms (mingw) also have quadratic strstr. */
16437 signal (SIGALRM, quit);
16439 /* Check for quadratic performance. */
16440 if (haystack && needle)
16442 memset (haystack, 'A', 2 * m);
16443 haystack[2 * m] = 'B';
16444 haystack[2 * m + 1] = 0;
16445 memset (needle, 'A', m);
16448 if (!strstr (haystack, needle))
16457 if ac_fn_c_try_run "$LINENO"; then :
16458 gl_cv_func_strstr_linear=yes
16460 gl_cv_func_strstr_linear=no
16462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16463 conftest.$ac_objext conftest.beam conftest.$ac_ext
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
16469 $as_echo "$gl_cv_func_strstr_linear" >&6; }
16470 case "$gl_cv_func_strstr_linear" in
16478 if test $REPLACE_STRSTR = 1; then
16487 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
16493 if test "$gl_cv_func_memchr_works" != yes; then
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
16497 $as_echo_n "checking whether strstr works... " >&6; }
16498 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
16499 $as_echo_n "(cached) " >&6
16501 if test "$cross_compiling" = yes; then :
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16505 #ifdef __GNU_LIBRARY__
16506 #include <features.h>
16507 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16508 || defined __UCLIBC__
16511 #elif defined __CYGWIN__
16512 #include <cygwin/version.h>
16513 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16522 $EGREP "Lucky user" >/dev/null 2>&1; then :
16523 gl_cv_func_strstr_works_always="guessing yes"
16525 gl_cv_func_strstr_works_always="guessing no"
16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16534 #include <string.h> /* for strstr */
16535 #define P "_EF_BF_BD"
16536 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16537 #define NEEDLE P P P P P
16542 return !!strstr (HAYSTACK, NEEDLE);
16548 if ac_fn_c_try_run "$LINENO"; then :
16549 gl_cv_func_strstr_works_always=yes
16551 gl_cv_func_strstr_works_always=no
16553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16554 conftest.$ac_objext conftest.beam conftest.$ac_ext
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
16560 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
16561 case "$gl_cv_func_strstr_works_always" in
16569 if test $REPLACE_STRSTR = 1; then
16578 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
16592 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
16610 if test $gl_cv_have_include_next = yes; then
16611 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16614 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16615 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
16616 $as_echo_n "(cached) " >&6
16619 if test $ac_cv_header_sys_stat_h = yes; then
16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 /* end confdefs.h. */
16624 #include <sys/stat.h>
16628 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16629 *) gl_absname_cpp="$ac_cpp" ;;
16634 gl_dirsep_regex='[/\\]'
16637 gl_dirsep_regex='\/'
16640 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16642 gl_header_literal_regex=`echo 'sys/stat.h' \
16643 |
sed -e "$gl_make_literal_regex_sed"`
16644 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16645 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16650 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16651 sed -n "$gl_absolute_header_sed"`'"'
16653 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16659 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
16661 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
16663 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16664 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16665 gl_next_as_first_directive='<'sys/stat.h'>'
16667 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16668 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
16670 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
16682 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
16684 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
16688 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
16689 #include <sys/stat.h>
16691 if test "x$ac_cv_type_nlink_t" = x""yes; then :
16695 $as_echo "#define nlink_t int" >>confdefs.h
16701 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
16702 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16704 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16705 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16706 $as_echo_n "(cached) " >&6
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h. */
16710 #include <sys/stat.h>
16721 if ac_fn_c_try_compile "$LINENO"; then :
16722 eval "$as_gl_Symbol=yes"
16724 eval "$as_gl_Symbol=no"
16726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728 eval ac_res=\$$as_gl_Symbol
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16730 $as_echo "$ac_res" >&6; }
16731 eval as_val=\$$as_gl_Symbol
16732 if test "x$as_val" = x""yes; then :
16733 cat >>confdefs.h <<_ACEOF
16734 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16737 eval ac_cv_have_decl_$gl_func=yes
16754 if test $gl_cv_have_include_next = yes; then
16755 gl_cv_next_sys_types_h='<'sys/types.h'>'
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16758 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16759 if test "${gl_cv_next_sys_types_h+set}" = set; then :
16760 $as_echo_n "(cached) " >&6
16763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764 /* end confdefs.h. */
16765 #include <sys/types.h>
16769 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16770 *) gl_absname_cpp="$ac_cpp" ;;
16775 gl_dirsep_regex='[/\\]'
16778 gl_dirsep_regex='\/'
16781 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16783 gl_header_literal_regex=`echo 'sys/types.h' \
16784 |
sed -e "$gl_make_literal_regex_sed"`
16785 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16786 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16791 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16792 sed -n "$gl_absolute_header_sed"`'"'
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16797 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16799 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
16801 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16802 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16803 gl_next_as_first_directive='<'sys/types.h'>'
16805 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16806 gl_next_as_first_directive=$gl_cv_next_sys_types_h
16808 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
16836 if test $gl_cv_have_include_next = yes; then
16837 gl_cv_next_unistd_h='<'unistd.h'>'
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
16840 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
16841 if test "${gl_cv_next_unistd_h+set}" = set; then :
16842 $as_echo_n "(cached) " >&6
16845 if test $ac_cv_header_unistd_h = yes; then
16848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16849 /* end confdefs.h. */
16850 #include <unistd.h>
16854 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16855 *) gl_absname_cpp="$ac_cpp" ;;
16860 gl_dirsep_regex='[/\\]'
16863 gl_dirsep_regex='\/'
16866 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16868 gl_header_literal_regex=`echo 'unistd.h' \
16869 |
sed -e "$gl_make_literal_regex_sed"`
16870 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16871 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16876 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16877 sed -n "$gl_absolute_header_sed"`'"'
16879 gl_cv_next_unistd_h='<'unistd.h'>'
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
16885 $as_echo "$gl_cv_next_unistd_h" >&6; }
16887 NEXT_UNISTD_H=$gl_cv_next_unistd_h
16889 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16890 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16891 gl_next_as_first_directive='<'unistd.h'>'
16893 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16894 gl_next_as_first_directive=$gl_cv_next_unistd_h
16896 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
16901 if test $ac_cv_header_unistd_h = yes; then
16913 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
16914 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16916 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16917 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16918 $as_echo_n "(cached) " >&6
16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16921 /* end confdefs.h. */
16924 # include <unistd.h>
16926 /* Some systems declare various items in the wrong headers. */
16927 #if !(defined __GLIBC__ && !defined __UCLIBC__)
16928 # include <fcntl.h>
16929 # include <stdio.h>
16930 # include <stdlib.h>
16931 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16945 if ac_fn_c_try_compile "$LINENO"; then :
16946 eval "$as_gl_Symbol=yes"
16948 eval "$as_gl_Symbol=no"
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 eval ac_res=\$$as_gl_Symbol
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16954 $as_echo "$ac_res" >&6; }
16955 eval as_val=\$$as_gl_Symbol
16956 if test "x$as_val" = x""yes; then :
16957 cat >>confdefs.h <<_ACEOF
16958 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16961 eval ac_cv_have_decl_$gl_func=yes
16978 if test $gl_cv_have_include_next = yes; then
16979 gl_cv_next_wchar_h='<'wchar.h'>'
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
16982 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
16983 if test "${gl_cv_next_wchar_h+set}" = set; then :
16984 $as_echo_n "(cached) " >&6
16987 if test $ac_cv_header_wchar_h = yes; then
16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991 /* end confdefs.h. */
16996 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16997 *) gl_absname_cpp="$ac_cpp" ;;
17002 gl_dirsep_regex='[/\\]'
17005 gl_dirsep_regex='\/'
17008 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17010 gl_header_literal_regex=`echo 'wchar.h' \
17011 |
sed -e "$gl_make_literal_regex_sed"`
17012 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17013 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17018 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17019 sed -n "$gl_absolute_header_sed"`'"'
17021 gl_cv_next_wchar_h='<'wchar.h'>'
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
17027 $as_echo "$gl_cv_next_wchar_h" >&6; }
17029 NEXT_WCHAR_H=$gl_cv_next_wchar_h
17031 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17032 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17033 gl_next_as_first_directive='<'wchar.h'>'
17035 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17036 gl_next_as_first_directive=$gl_cv_next_wchar_h
17038 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
17043 if test $ac_cv_header_wchar_h = yes; then
17053 if test $gt_cv_c_wint_t = yes; then
17061 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
17062 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17064 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17065 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17066 $as_echo_n "(cached) " >&6
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17071 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17073 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17074 included before <wchar.h>. */
17075 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17076 # include <stddef.h>
17077 # include <stdio.h>
17091 if ac_fn_c_try_compile "$LINENO"; then :
17092 eval "$as_gl_Symbol=yes"
17094 eval "$as_gl_Symbol=no"
17096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17098 eval ac_res=\$$as_gl_Symbol
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17100 $as_echo "$ac_res" >&6; }
17101 eval as_val=\$$as_gl_Symbol
17102 if test "x$as_val" = x""yes; then :
17103 cat >>confdefs.h <<_ACEOF
17104 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17107 eval ac_cv_have_decl_$gl_func=yes
17117 if test $ac_cv_func_iswcntrl = yes; then
17125 if test $gt_cv_c_wint_t = yes; then
17141 if test $gl_cv_have_include_next = yes; then
17142 gl_cv_next_wctype_h='<'wctype.h'>'
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
17145 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
17146 if test "${gl_cv_next_wctype_h+set}" = set; then :
17147 $as_echo_n "(cached) " >&6
17150 if test $ac_cv_header_wctype_h = yes; then
17153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h. */
17155 #include <wctype.h>
17159 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17160 *) gl_absname_cpp="$ac_cpp" ;;
17165 gl_dirsep_regex='[/\\]'
17168 gl_dirsep_regex='\/'
17171 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17173 gl_header_literal_regex=`echo 'wctype.h' \
17174 |
sed -e "$gl_make_literal_regex_sed"`
17175 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17176 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17181 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17182 sed -n "$gl_absolute_header_sed"`'"'
17184 gl_cv_next_wctype_h='<'wctype.h'>'
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
17190 $as_echo "$gl_cv_next_wctype_h" >&6; }
17192 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
17194 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17195 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17196 gl_next_as_first_directive='<'wctype.h'>'
17198 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17199 gl_next_as_first_directive=$gl_cv_next_wctype_h
17201 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
17206 if test $ac_cv_header_wctype_h = yes; then
17207 if test $ac_cv_func_iswcntrl = yes; then
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
17209 $as_echo_n "checking whether iswcntrl works... " >&6; }
17210 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
17211 $as_echo_n "(cached) " >&6
17214 if test "$cross_compiling" = yes; then :
17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216 /* end confdefs.h. */
17217 #include <stdlib.h>
17218 #if __GNU_LIBRARY__ == 1
17219 Linux libc5 i18n is broken.
17229 if ac_fn_c_try_compile "$LINENO"; then :
17230 gl_cv_func_iswcntrl_works="guessing yes"
17232 gl_cv_func_iswcntrl_works="guessing no"
17234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h. */
17240 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17241 included before <wchar.h>.
17242 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17243 must be included before <wchar.h>. */
17244 #include <stddef.h>
17248 #include <wctype.h>
17249 int main () { return iswprint ('x') == 0; }
17252 if ac_fn_c_try_run "$LINENO"; then :
17253 gl_cv_func_iswcntrl_works=yes
17255 gl_cv_func_iswcntrl_works=no
17257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17258 conftest.$ac_objext conftest.beam conftest.$ac_ext
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
17264 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
17272 case "$gl_cv_func_iswcntrl_works" in
17273 *yes) REPLACE_ISWCNTRL=0 ;;
17274 *) REPLACE_ISWCNTRL=1 ;;
17278 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
17282 if test $REPLACE_ISWCNTRL = 1; then
17285 for ac_func in towlower
17287 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
17288 if test "x$ac_cv_func_towlower" = x""yes; then :
17289 cat >>confdefs.h <<_ACEOF
17290 #define HAVE_TOWLOWER 1
17296 if test $ac_cv_func_towlower = yes; then
17299 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17300 included before <wchar.h>.
17301 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17302 must be included before <wchar.h>. */
17303 #include <stddef.h>
17308 # include <wctype.h>
17312 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
17318 cat >>confdefs.h <<_ACEOF
17319 #define HAVE_DECL_TOWLOWER $ac_have_decl
17322 if test $ac_cv_have_decl_towlower = yes; then
17331 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
17336 $as_echo_n "checking for wctype_t... " >&6; }
17337 if test "${gl_cv_type_wctype_t+set}" = set; then :
17338 $as_echo_n "(cached) " >&6
17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h. */
17342 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17343 included before <wchar.h>.
17344 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17345 must be included before <wchar.h>. */
17346 #include <stddef.h>
17351 # include <wctype.h>
17363 if ac_fn_c_try_compile "$LINENO"; then :
17364 gl_cv_type_wctype_t=yes
17366 gl_cv_type_wctype_t=no
17368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
17372 $as_echo "$gl_cv_type_wctype_t" >&6; }
17373 if test $gl_cv_type_wctype_t = no; then
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
17378 $as_echo_n "checking for wctrans_t... " >&6; }
17379 if test "${gl_cv_type_wctrans_t+set}" = set; then :
17380 $as_echo_n "(cached) " >&6
17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383 /* end confdefs.h. */
17384 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17385 included before <wchar.h>.
17386 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17387 must be included before <wchar.h>. */
17388 #include <stddef.h>
17392 #include <wctype.h>
17403 if ac_fn_c_try_compile "$LINENO"; then :
17404 gl_cv_type_wctrans_t=yes
17406 gl_cv_type_wctrans_t=no
17408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
17412 $as_echo "$gl_cv_type_wctrans_t" >&6; }
17413 if test $gl_cv_type_wctrans_t = no; then
17418 for gl_func in wctype iswctype wctrans towctrans ; do
17419 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17421 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17422 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17423 $as_echo_n "(cached) " >&6
17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426 /* end confdefs.h. */
17428 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17430 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17431 included before <wchar.h>. */
17432 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17433 # include <stddef.h>
17434 # include <stdio.h>
17436 # include <wchar.h>
17438 #include <wctype.h>
17449 if ac_fn_c_try_compile "$LINENO"; then :
17450 eval "$as_gl_Symbol=yes"
17452 eval "$as_gl_Symbol=no"
17454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17456 eval ac_res=\$$as_gl_Symbol
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17458 $as_echo "$ac_res" >&6; }
17459 eval as_val=\$$as_gl_Symbol
17460 if test "x$as_val" = x""yes; then :
17461 cat >>confdefs.h <<_ACEOF
17462 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17465 eval ac_cv_have_decl_$gl_func=yes
17470 # End of code from modules
17491 gl_source_base='tests'
17492 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
17494 gl_module_indicator_condition=$gltests_WITNESS
17504 LIBGNU_LIBDEPS="$gl_libdeps"
17506 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17510 # We don't use automake, but gnulib does. This line lets us generate
17512 am__api_version='1.11'
17514 # Find a good install program. We prefer a C program (faster),
17515 # so one script is as good as another. But avoid the broken or
17516 # incompatible versions:
17517 # SysV /etc/install, /usr/sbin/install
17518 # SunOS /usr/etc/install
17519 # IRIX /sbin/install
17521 # AmigaOS /C/install, which installs bootblocks on floppy discs
17522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
17523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
17524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
17525 # OS/2's system install, which has a completely different semantic
17526 # ./install, which can be erroneously created by make from ./install.sh.
17527 # Reject install programs that cannot install multiple files.
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
17529 $as_echo_n "checking for a BSD-compatible install... " >&6; }
17530 if test -z "$INSTALL"; then
17531 if test "${ac_cv_path_install+set}" = set; then :
17532 $as_echo_n "(cached) " >&6
17534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17535 for as_dir in $PATH
17538 test -z "$as_dir" && as_dir=.
17539 # Account for people who put trailing slashes in PATH elements.
17540 case $as_dir/ in #((
17541 ./ | .// | /[cC]/* | \
17542 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
17543 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
17546 # OSF1 and SCO ODT 3.0 have their own names for install.
17547 # Don't use installbsd from OSF since it installs stuff as root
17549 for ac_prog in ginstall scoinst install; do
17550 for ac_exec_ext in '' $ac_executable_extensions; do
17551 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
17552 if test $ac_prog = install &&
17553 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17554 # AIX install. It has an incompatible calling convention.
17556 elif test $ac_prog = install &&
17557 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17558 # program-specific install script used by HP pwplus--don't use.
17561 rm -rf conftest.one conftest.two conftest.dir
17562 echo one > conftest.one
17563 echo two > conftest.two
17565 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
17566 test -s conftest.one && test -s conftest.two &&
17567 test -s conftest.dir/conftest.one &&
17568 test -s conftest.dir/conftest.two
17570 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
17583 rm -rf conftest.one conftest.two conftest.dir
17586 if test "${ac_cv_path_install+set}" = set; then
17587 INSTALL=$ac_cv_path_install
17589 # As a last resort, use the slow shell script. Don't cache a
17590 # value for INSTALL within a source directory, because that will
17591 # break other packages using the cache if that directory is
17592 # removed, or if the value is a relative name.
17593 INSTALL=$ac_install_sh
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
17597 $as_echo "$INSTALL" >&6; }
17599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
17600 # It thinks the first close brace ends the variable substitution.
17601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
17603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
17605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
17608 $as_echo_n "checking whether build environment is sane... " >&6; }
17611 echo timestamp > conftest.file
17612 # Reject unsafe characters in $srcdir or the absolute working directory
17613 # name. Accept space and tab only in the latter.
17617 *[\\\"\#\$\&\'\`$am_lf]*)
17618 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
17621 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
17622 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
17625 # Do `set' in a subshell so we don't clobber the current shell's
17626 # arguments. Must try -L first in case configure is actually a
17627 # symlink; some systems play weird games with the mod time of symlinks
17628 # (eg FreeBSD returns the mod time of the symlink's containing
17631 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
17632 if test "$*" = "X"; then
17634 set X
`ls -t "$srcdir/configure" conftest.file`
17636 rm -f conftest.
file
17637 if test "$*" != "X $srcdir/configure conftest.file" \
17638 && test "$*" != "X conftest.file $srcdir/configure"; then
17640 # If neither matched, then we have a broken ls. This can happen
17641 # if, for instance, CONFIG_SHELL is bash and it inherits a
17642 # broken ls alias from the environment. This has actually
17643 # happened. Such a system could not be considered "sane".
17644 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
17645 alias in your environment" "$LINENO" 5
17648 test "$2" = conftest.
file
17654 as_fn_error
"newly created file is older than distributed files!
17655 Check your system clock" "$LINENO" 5
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17658 $as_echo "yes" >&6; }
17659 test "$program_prefix" != NONE
&&
17660 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
17661 # Use a double $ so make ignores it.
17662 test "$program_suffix" != NONE
&&
17663 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
17664 # Double any \ or $.
17665 # By default was `s,x,x', remove it if useless.
17666 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
17667 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
17669 # expand $ac_aux_dir to an absolute path
17670 am_aux_dir
=`cd $ac_aux_dir && pwd`
17672 if test x
"${MISSING+set}" != xset
; then
17673 case $am_aux_dir in
17675 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
17677 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
17680 # Use eval to expand $SHELL
17681 if eval "$MISSING --run true"; then
17682 am_missing_run
="$MISSING --run "
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
17686 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
17689 if test x
"${install_sh}" != xset
; then
17690 case $am_aux_dir in
17692 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
17694 install_sh
="\${SHELL} $am_aux_dir/install-sh"
17698 # Installed binaries are usually stripped using `strip' when the user
17699 # run `make install-strip'. However `strip' might not be the right
17700 # tool to use in cross-compilation environments, therefore Automake
17701 # will honor the `STRIP' environment variable to overrule this program.
17702 if test "$cross_compiling" != no
; then
17703 if test -n "$ac_tool_prefix"; then
17704 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17705 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17707 $as_echo_n "checking for $ac_word... " >&6; }
17708 if test "${ac_cv_prog_STRIP+set}" = set; then :
17709 $as_echo_n "(cached) " >&6
17711 if test -n "$STRIP"; then
17712 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
17714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17715 for as_dir
in $PATH
17718 test -z "$as_dir" && as_dir
=.
17719 for ac_exec_ext
in '' $ac_executable_extensions; do
17720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17721 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
17722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17731 STRIP
=$ac_cv_prog_STRIP
17732 if test -n "$STRIP"; then
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
17734 $as_echo "$STRIP" >&6; }
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17737 $as_echo "no" >&6; }
17742 if test -z "$ac_cv_prog_STRIP"; then
17744 # Extract the first word of "strip", so it can be a program name with args.
17745 set dummy strip
; ac_word
=$2
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17747 $as_echo_n "checking for $ac_word... " >&6; }
17748 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
17749 $as_echo_n "(cached) " >&6
17751 if test -n "$ac_ct_STRIP"; then
17752 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
17754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17755 for as_dir
in $PATH
17758 test -z "$as_dir" && as_dir
=.
17759 for ac_exec_ext
in '' $ac_executable_extensions; do
17760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17761 ac_cv_prog_ac_ct_STRIP
="strip"
17762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17771 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
17772 if test -n "$ac_ct_STRIP"; then
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
17774 $as_echo "$ac_ct_STRIP" >&6; }
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17777 $as_echo "no" >&6; }
17780 if test "x$ac_ct_STRIP" = x
; then
17783 case $cross_compiling:$ac_tool_warned in
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17787 ac_tool_warned
=yes ;;
17792 STRIP
="$ac_cv_prog_STRIP"
17796 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
17800 [\\/$
]* | ?
:[\\/]*) ;;
17801 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
17804 for ac_prog
in gawk mawk nawk
awk
17806 # Extract the first word of "$ac_prog", so it can be a program name with args.
17807 set dummy
$ac_prog; ac_word
=$2
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17809 $as_echo_n "checking for $ac_word... " >&6; }
17810 if test "${ac_cv_prog_AWK+set}" = set; then :
17811 $as_echo_n "(cached) " >&6
17813 if test -n "$AWK"; then
17814 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
17816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17817 for as_dir
in $PATH
17820 test -z "$as_dir" && as_dir
=.
17821 for ac_exec_ext
in '' $ac_executable_extensions; do
17822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17823 ac_cv_prog_AWK
="$ac_prog"
17824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17833 AWK
=$ac_cv_prog_AWK
17834 if test -n "$AWK"; then
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
17836 $as_echo "$AWK" >&6; }
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17839 $as_echo "no" >&6; }
17843 test -n "$AWK" && break
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17847 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17849 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17850 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
17851 $as_echo_n "(cached) " >&6
17853 cat >conftest.
make <<\_ACEOF
17856 @
echo '@@@%%%=$(MAKE)=@@@%%%'
17858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17859 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17860 *@@@
%%%=?
*=@@@
%%%*)
17861 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
17863 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
17865 rm -f conftest.
make
17867 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17869 $as_echo "yes" >&6; }
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17873 $as_echo "no" >&6; }
17874 SET_MAKE
="MAKE=${MAKE-make}"
17877 rm -rf .tst
2>/dev
/null
17878 mkdir .tst
2>/dev
/null
17879 if test -d .tst
; then
17884 rmdir .tst
2>/dev
/null
17886 DEPDIR
="${am__leading_dot}deps"
17888 ac_config_commands
="$ac_config_commands depfiles"
17891 am_make
=${MAKE-make}
17892 cat > confinc
<< 'END'
17894 @
echo this is the am__doit target
17897 # If we don't find an include directive, just comment out the code.
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
17899 $as_echo_n "checking for style of include used by $am_make... " >&6; }
17903 # First try GNU make style include.
17904 echo "include confinc" > confmf
17905 # Ignore all kinds of additional output from `make'.
17906 case `$am_make -s -f confmf 2> /dev/null` in #(
17907 *the\ am__doit\ target
*)
17908 am__include
=include
17913 # Now try BSD make style include.
17914 if test "$am__include" = "#"; then
17915 echo '.include "confinc"' > confmf
17916 case `$am_make -s -f confmf 2> /dev/null` in #(
17917 *the\ am__doit\ target
*)
17918 am__include
=.include
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
17927 $as_echo "$_am_result" >&6; }
17928 rm -f confinc confmf
17930 # Check whether --enable-dependency-tracking was given.
17931 if test "${enable_dependency_tracking+set}" = set; then :
17932 enableval
=$enable_dependency_tracking;
17935 if test "x$enable_dependency_tracking" != xno
; then
17936 am_depcomp
="$ac_aux_dir/depcomp"
17939 if test "x$enable_dependency_tracking" != xno; then
17948 if test "`cd $srcdir && pwd`" != "`pwd`"; then
17949 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
17950 # is not polluted with repeated "-I."
17951 am__isrc
=' -I$(srcdir)'
17952 # test to see if srcdir already configured
17953 if test -f $srcdir/config.status
; then
17954 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
17958 # test whether we have cygpath
17959 if test -z "$CYGPATH_W"; then
17960 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
17961 CYGPATH_W
='cygpath -w'
17968 # Define the identity of the package.
17970 VERSION
=UNUSED-VERSION
17973 # Some tools Automake needs.
17975 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
17978 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
17981 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
17984 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
17987 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
17989 # We need awk for the "check" target. The system "awk" is bad on
17991 # Always define AMTAR for backward compatibility.
17993 AMTAR
=${AMTAR-"${am_missing_run}tar"}
17995 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
18000 depcc
="$CC" am_compiler_list
=
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18003 $as_echo_n "checking dependency style of $depcc... " >&6; }
18004 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
18005 $as_echo_n "(cached) " >&6
18007 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18008 # We make a subdir and do the tests there. Otherwise we can end up
18009 # making bogus files that we don't know about and never remove. For
18010 # instance it was reported that on HP-UX the gcc test will end up
18011 # making a dummy file named `D' -- because `-MD' means `put the output
18014 # Copy depcomp to subdir because otherwise we won't find it if we're
18015 # using a relative directory.
18016 cp "$am_depcomp" conftest.dir
18018 # We will build objects and dependencies in a subdirectory because
18019 # it helps to detect inapplicable dependency modes. For instance
18020 # both Tru64's cc and ICC support -MD to output dependencies as a
18021 # side effect of compilation, but ICC will put the dependencies in
18022 # the current directory while Tru64 will put them in the object
18026 am_cv_CC_dependencies_compiler_type
=none
18027 if test "$am_compiler_list" = ""; then
18028 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18030 am__universal
=false
18031 case " $depcc " in #(
18032 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
18035 for depmode
in $am_compiler_list; do
18036 # Setup a source with many dependencies, because some compilers
18037 # like to wrap large dependency lists on column 80 (with \), and
18038 # we should not choose a depcomp mode which is confused by this.
18040 # We need to recreate these files for each test, as the compiler may
18041 # overwrite some of them when testing with obscure command lines.
18042 # This happens at least with the AIX C compiler.
18044 for i
in 1 2 3 4 5 6; do
18045 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
18046 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18047 # Solaris 8's {/usr,}/bin/sh.
18048 touch sub
/conftst
$i.h
18050 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18052 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18053 # mode. It turns out that the SunPro C++ compiler does not properly
18054 # handle `-M -o', and we need to detect this. Also, some Intel
18055 # versions had trouble with output in subdirs
18056 am__obj
=sub
/conftest.
${OBJEXT-o}
18057 am__minus_obj
="-o $am__obj"
18060 # This depmode causes a compiler race in universal mode.
18061 test "$am__universal" = false ||
continue
18064 # after this tag, mechanisms are not by side-effect, so they'll
18065 # only be used when explicitly requested
18066 if test "x$enable_dependency_tracking" = xyes
; then
18072 msvisualcpp | msvcmsys
)
18073 # This compiler won't grok `-c -o', but also, the minuso test has
18074 # not run yet. These depmodes are late enough in the game, and
18075 # so weak that their functioning should not be impacted.
18076 am__obj
=conftest.
${OBJEXT-o}
18081 if depmode
=$depmode \
18082 source=sub
/conftest.c object
=$am__obj \
18083 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
18084 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
18085 >/dev
/null
2>conftest.err
&&
18086 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
18087 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
18088 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
18089 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
18090 # icc doesn't choke on unknown options, it will just issue warnings
18091 # or remarks (even with -Werror). So we grep stderr for any message
18092 # that says an option was ignored or not supported.
18093 # When given -MP, icc 7.0 and 7.1 complain thusly:
18094 # icc: Command line warning: ignoring option '-M'; no argument required
18095 # The diagnosis changed in icc 8.0:
18096 # icc: Command line remark: option '-MP' not supported
18097 if (grep 'ignoring option' conftest.err ||
18098 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
18099 am_cv_CC_dependencies_compiler_type
=$depmode
18106 rm -rf conftest.dir
18108 am_cv_CC_dependencies_compiler_type
=none
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18113 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18114 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
18117 test "x$enable_dependency_tracking" != xno \
18118 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
18119 am__fastdepCC_TRUE
=
18120 am__fastdepCC_FALSE
='#'
18122 am__fastdepCC_TRUE
='#'
18123 am__fastdepCC_FALSE
=
18129 # --------------------- #
18130 # Checks for programs. #
18131 # --------------------- #
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18135 $as_echo_n "checking whether ln -s works... " >&6; }
18137 if test "$LN_S" = "ln -s"; then
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18139 $as_echo "yes" >&6; }
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18142 $as_echo "no, using $LN_S" >&6; }
18145 if test -n "$ac_tool_prefix"; then
18146 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18147 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18149 $as_echo_n "checking for $ac_word... " >&6; }
18150 if test "${ac_cv_prog_RANLIB+set}" = set; then :
18151 $as_echo_n "(cached) " >&6
18153 if test -n "$RANLIB"; then
18154 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
18156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18157 for as_dir
in $PATH
18160 test -z "$as_dir" && as_dir
=.
18161 for ac_exec_ext
in '' $ac_executable_extensions; do
18162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18163 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
18164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18173 RANLIB
=$ac_cv_prog_RANLIB
18174 if test -n "$RANLIB"; then
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18176 $as_echo "$RANLIB" >&6; }
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18179 $as_echo "no" >&6; }
18184 if test -z "$ac_cv_prog_RANLIB"; then
18185 ac_ct_RANLIB
=$RANLIB
18186 # Extract the first word of "ranlib", so it can be a program name with args.
18187 set dummy ranlib
; ac_word
=$2
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18189 $as_echo_n "checking for $ac_word... " >&6; }
18190 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
18191 $as_echo_n "(cached) " >&6
18193 if test -n "$ac_ct_RANLIB"; then
18194 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
18196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18197 for as_dir
in $PATH
18200 test -z "$as_dir" && as_dir
=.
18201 for ac_exec_ext
in '' $ac_executable_extensions; do
18202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18203 ac_cv_prog_ac_ct_RANLIB
="ranlib"
18204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18213 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
18214 if test -n "$ac_ct_RANLIB"; then
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18216 $as_echo "$ac_ct_RANLIB" >&6; }
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18219 $as_echo "no" >&6; }
18222 if test "x$ac_ct_RANLIB" = x
; then
18225 case $cross_compiling:$ac_tool_warned in
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18229 ac_tool_warned
=yes ;;
18231 RANLIB
=$ac_ct_RANLIB
18234 RANLIB
="$ac_cv_prog_RANLIB"
18238 if test -n "$ac_tool_prefix"; then
18239 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18240 set dummy
${ac_tool_prefix}ar; ac_word
=$2
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18242 $as_echo_n "checking for $ac_word... " >&6; }
18243 if test "${ac_cv_prog_AR+set}" = set; then :
18244 $as_echo_n "(cached) " >&6
18246 if test -n "$AR"; then
18247 ac_cv_prog_AR
="$AR" # Let the user override the test.
18249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18250 for as_dir
in $PATH
18253 test -z "$as_dir" && as_dir
=.
18254 for ac_exec_ext
in '' $ac_executable_extensions; do
18255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18256 ac_cv_prog_AR
="${ac_tool_prefix}ar"
18257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18267 if test -n "$AR"; then
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
18269 $as_echo "$AR" >&6; }
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18272 $as_echo "no" >&6; }
18277 if test -z "$ac_cv_prog_AR"; then
18279 # Extract the first word of "ar", so it can be a program name with args.
18280 set dummy
ar; ac_word
=$2
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18282 $as_echo_n "checking for $ac_word... " >&6; }
18283 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
18284 $as_echo_n "(cached) " >&6
18286 if test -n "$ac_ct_AR"; then
18287 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
18289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18290 for as_dir
in $PATH
18293 test -z "$as_dir" && as_dir
=.
18294 for ac_exec_ext
in '' $ac_executable_extensions; do
18295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18296 ac_cv_prog_ac_ct_AR
="ar"
18297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18306 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
18307 if test -n "$ac_ct_AR"; then
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
18309 $as_echo "$ac_ct_AR" >&6; }
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18312 $as_echo "no" >&6; }
18315 if test "x$ac_ct_AR" = x
; then
18318 case $cross_compiling:$ac_tool_warned in
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18322 ac_tool_warned
=yes ;;
18327 AR
="$ac_cv_prog_AR"
18331 # ---------------------- #
18332 # Checks for libraries. #
18333 # ---------------------- #
18335 ac_config_files
="$ac_config_files Makefile import/Makefile"
18337 ac_config_commands
="$ac_config_commands default"
18339 cat >confcache
<<\_ACEOF
18340 # This file is a shell script that caches the results of configure
18341 # tests run on this system so they can be shared between configure
18342 # scripts and configure runs, see configure's option --config-cache.
18343 # It is not useful on other systems. If it contains results you don't
18344 # want to keep, you may remove or edit it.
18346 # config.status only pays attention to the cache file if you give it
18347 # the --recheck option to rerun configure.
18349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18351 # following values.
18355 # The following way of writing the cache mishandles newlines in values,
18356 # but we know of no workaround that is simple, portable, and efficient.
18357 # So, we kill variables containing newlines.
18358 # Ultrix sh set writes to stderr and can't be redirected directly,
18359 # and sets the high bit in the cache file unless we assign to the vars.
18361 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18362 eval ac_val
=\$
$ac_var
18366 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18370 _ | IFS | as_nl
) ;; #(
18371 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
18372 *) { eval $ac_var=; unset $ac_var;} ;;
18378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18379 *${as_nl}ac_space
=\
*)
18380 # `set' does not quote correctly, so add quotes: double-quote
18381 # substitution turns \\\\ into \\, and sed turns \\ into \.
18384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18387 # `set' quotes correctly as required by POSIX, so do not add quotes.
18388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18401 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
18402 if test -w "$cache_file"; then
18403 test "x$cache_file" != "x/dev/null" &&
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18405 $as_echo "$as_me: updating cache $cache_file" >&6;}
18406 cat confcache
>$cache_file
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18409 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18414 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18415 # Let make expand exec_prefix.
18416 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18418 DEFS
=-DHAVE_CONFIG_H
18422 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18423 # 1. Remove the extension, and $U if already installed.
18424 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
18425 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
18426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18427 # will be set to the directory where LIBOBJS objects are built.
18428 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18429 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
18431 LIBOBJS
=$ac_libobjs
18433 LTLIBOBJS
=$ac_ltlibobjs
18436 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18437 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
18438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18440 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18441 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
18442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18444 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
18445 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
18446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18448 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
18449 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
18450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18452 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
18453 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
18454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18456 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
18457 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
18458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18460 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
18461 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
18462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18466 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
18467 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
18468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18470 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
18471 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
18472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18477 if test -n "$gl_LIBOBJS"; then
18478 # Remove the extension.
18479 sed_drop_objext
='s/\.o$//;s/\.obj$//'
18480 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18481 gl_libobjs
="$gl_libobjs $i.$ac_objext"
18482 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
18485 gl_LIBOBJS
=$gl_libobjs
18487 gl_LTLIBOBJS
=$gl_ltlibobjs
18493 if test -n "$gltests_LIBOBJS"; then
18494 # Remove the extension.
18495 sed_drop_objext
='s/\.o$//;s/\.obj$//'
18496 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18497 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
18498 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
18501 gltests_LIBOBJS
=$gltests_libobjs
18503 gltests_LTLIBOBJS
=$gltests_ltlibobjs
18506 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18507 as_fn_error
"conditional \"AMDEP\" was never defined.
18508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18510 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18511 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
18512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18514 if test -n "$EXEEXT"; then
18516 am__EXEEXT_FALSE
='#'
18518 am__EXEEXT_TRUE
='#'
18523 : ${CONFIG_STATUS=./config.status}
18525 ac_clean_files_save
=$ac_clean_files
18526 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18528 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18530 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18532 # Generated by $as_me.
18533 # Run this file to recreate the current configuration.
18534 # Compiler output produced by configure, useful for debugging
18535 # configure, is in config.log if it exists.
18538 ac_cs_recheck=false
18541 SHELL=\${CONFIG_SHELL-$SHELL}
18544 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
18545 ## -------------------- ##
18546 ## M4sh Initialization. ##
18547 ## -------------------- ##
18549 # Be more Bourne compatible
18550 DUALCASE
=1; export DUALCASE
# for MKS sh
18551 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
18554 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18555 # is contrary to our usage. Disable this feature.
18556 alias -g '${1+"$@"}'='"$@"'
18557 setopt NO_GLOB_SUBST
18559 case `(set -o) 2>/dev/null` in #(
18571 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18572 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18573 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18574 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18575 # Prefer a ksh shell builtin over an external printf program on Solaris,
18576 # but without wasting forks for bash or zsh.
18577 if test -z "$BASH_VERSION$ZSH_VERSION" \
18578 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18579 as_echo='print
-r --'
18580 as_echo_n='print
-rn --'
18581 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18582 as_echo='printf %s
\n'
18583 as_echo_n='printf %s
'
18585 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18586 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18587 as_echo_n='/usr
/ucb
/echo -n'
18589 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18590 as_echo_n_body='eval
18594 expr "X$arg" : "X\\(.*\\)$as_nl";
18595 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18597 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18599 export as_echo_n_body
18600 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18602 export as_echo_body
18603 as_echo='sh
-c $as_echo_body as_echo
'
18606 # The user is always right.
18607 if test "${PATH_SEPARATOR+set}" != set; then
18609 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18610 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18617 # We need space, tab and new line, in precisely that order. Quoting is
18618 # there to prevent editors from complaining about space-tab.
18619 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18620 # splitting by setting IFS to empty value.)
18623 # Find who we are. Look in the path if we contain no directory separator.
18625 *[\\/]* ) as_myself=$0 ;;
18626 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18627 for as_dir in $PATH
18630 test -z "$as_dir" && as_dir=.
18631 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18637 # We did not find ourselves, most probably we were run as `sh COMMAND'
18638 # in which case we are not to be found in the path.
18639 if test "x$as_myself" = x
; then
18642 if test ! -f "$as_myself"; then
18643 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18647 # Unset variables that we do not need and which cause bugs (e.g. in
18648 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18649 # suppresses any "Segmentation fault" message there. '((' could
18650 # trigger a bug in pdksh 5.2.14.
18651 for as_var
in BASH_ENV ENV MAIL MAILPATH
18652 do eval test x\
${$as_var+set} = xset \
18653 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18666 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18669 # as_fn_error ERROR [LINENO LOG_FD]
18670 # ---------------------------------
18671 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18672 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18673 # script with status $?, using 1 if that was 0.
18676 as_status
=$?
; test $as_status -eq 0 && as_status
=1
18678 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18679 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18681 $as_echo "$as_me: error: $1" >&2
18682 as_fn_exit
$as_status
18686 # as_fn_set_status STATUS
18687 # -----------------------
18688 # Set $? to STATUS, without forking.
18689 as_fn_set_status
()
18692 } # as_fn_set_status
18694 # as_fn_exit STATUS
18695 # -----------------
18696 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18700 as_fn_set_status
$1
18706 # Portably unset VAR.
18709 { eval $1=; unset $1;}
18711 as_unset
=as_fn_unset
18712 # as_fn_append VAR VALUE
18713 # ----------------------
18714 # Append the text in VALUE to the end of the definition contained in VAR. Take
18715 # advantage of any shell optimizations that allow amortized linear growth over
18716 # repeated appends, instead of the typical quadratic growth present in naive
18718 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18719 eval 'as_fn_append ()
18730 # as_fn_arith ARG...
18731 # ------------------
18732 # Perform arithmetic evaluation on the ARGs, and store the result in the
18733 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18734 # must be portable across $(()) and expr.
18735 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18736 eval 'as_fn_arith ()
18743 as_val
=`expr "$@" || test $? -eq 1`
18748 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18749 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18755 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18756 as_basename
=basename
18761 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18767 as_me
=`$as_basename -- "$0" ||
18768 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18769 X"$0" : 'X\(//\)$' \| \
18770 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18772 sed '/^.*\/\([^/][^/]*\)\/*$/{
18786 # Avoid depending upon Character Ranges.
18787 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18788 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18789 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18790 as_cr_digits
='0123456789'
18791 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18793 ECHO_C
= ECHO_N
= ECHO_T
=
18794 case `echo -n x` in #(((((
18796 case `echo 'xy\c'` in
18797 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18799 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18806 rm -f conf$$ conf$$.exe conf$$.
file
18807 if test -d conf$$.dir
; then
18808 rm -f conf$$.dir
/conf$$.
file
18811 mkdir conf$$.dir
2>/dev
/null
18813 if (echo >conf$$.
file) 2>/dev
/null
; then
18814 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18816 # ... but there are two gotchas:
18817 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18818 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18819 # In both cases, we have to default to `cp -p'.
18820 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18822 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18830 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18831 rmdir conf$$.dir
2>/dev
/null
18836 # Create "$as_dir" as a directory, including parents if necessary.
18841 -*) as_dir
=.
/$as_dir;;
18843 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18847 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18848 *) as_qdir
=$as_dir;;
18850 as_dirs
="'$as_qdir' $as_dirs"
18851 as_dir
=`$as_dirname -- "$as_dir" ||
18852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18853 X"$as_dir" : 'X\(//\)[^/]' \| \
18854 X"$as_dir" : 'X\(//\)$' \| \
18855 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18856 $as_echo X"$as_dir" |
18857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18861 /^X\(\/\/\)[^/].*/{
18874 test -d "$as_dir" && break
18876 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18877 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
18881 if mkdir
-p .
2>/dev
/null
; then
18882 as_mkdir_p
='mkdir -p "$as_dir"'
18884 test -d .
/-p && rmdir .
/-p
18888 if test -x / >/dev
/null
2>&1; then
18889 as_test_x
='test -x'
18891 if ls -dL / >/dev
/null
2>&1; then
18898 if test -d "$1"; then
18904 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18905 ???[sx]*):;;*)false;;esac;fi
18909 as_executable_p
=$as_test_x
18911 # Sed expression to map a string onto a valid CPP name.
18912 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18914 # Sed expression to map a string onto a valid variable name.
18915 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18919 ## ----------------------------------- ##
18920 ## Main body of $CONFIG_STATUS script. ##
18921 ## ----------------------------------- ##
18923 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18926 # Save the log message, to keep $0 and so on meaningful, and to
18927 # report actual input values of CONFIG_FILES etc. instead of their
18928 # values after options handling.
18930 This file was extended by $as_me, which was
18931 generated by GNU Autoconf 2.64. Invocation command line was
18933 CONFIG_FILES = $CONFIG_FILES
18934 CONFIG_HEADERS = $CONFIG_HEADERS
18935 CONFIG_LINKS = $CONFIG_LINKS
18936 CONFIG_COMMANDS = $CONFIG_COMMANDS
18939 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18944 case $ac_config_files in *"
18945 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18948 case $ac_config_headers in *"
18949 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18954 # Files that config.status was made for.
18955 config_files="$ac_config_files"
18956 config_headers="$ac_config_headers"
18957 config_commands="$ac_config_commands"
18961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18963 \`$as_me' instantiates files and other configuration actions
18964 from templates according to the current configuration. Unless the files
18965 and actions are specified as TAGs, all are instantiated by default.
18967 Usage: $0 [OPTION]... [TAG]...
18969 -h, --help print this help, then exit
18970 -V, --version print version number and configuration settings, then exit
18971 -q, --quiet, --silent
18972 do not print progress messages
18973 -d, --debug don't remove temporary files
18974 --recheck update $as_me by reconfiguring in the same conditions
18975 --file=FILE[:TEMPLATE]
18976 instantiate the configuration file FILE
18977 --header=FILE[:TEMPLATE]
18978 instantiate the configuration header FILE
18980 Configuration files:
18983 Configuration headers:
18986 Configuration commands:
18989 Report bugs to the package provider."
18992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18995 configured by $0, generated by GNU Autoconf 2.64,
18996 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18998 Copyright (C) 2009 Free Software Foundation, Inc.
18999 This config.status script is free software; the Free Software Foundation
19000 gives unlimited permission to copy, distribute and modify it."
19007 test -n "\$AWK" || AWK=awk
19010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19011 # The default lists apply if the user does not specify any file.
19017 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19018 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19029 # Handling of the options.
19030 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19032 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19033 $as_echo "$ac_cs_version"; exit ;;
19034 --debug |
--debu |
--deb |
--de |
--d |
-d )
19036 --file |
--fil |
--fi |
--f )
19039 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19041 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19042 ac_need_defaults
=false
;;
19043 --header |
--heade |
--head |
--hea )
19046 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19048 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19049 ac_need_defaults
=false
;;
19051 # Conflict between --help and --header
19052 as_fn_error
"ambiguous option: \`$1'
19053 Try \`$0 --help' for more information.";;
19054 --help |
--hel |
-h )
19055 $as_echo "$ac_cs_usage"; exit ;;
19056 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19057 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19060 # This is an error.
19061 -*) as_fn_error
"unrecognized option: \`$1'
19062 Try \`$0 --help' for more information." ;;
19064 *) as_fn_append ac_config_targets
" $1"
19065 ac_need_defaults
=false
;;
19071 ac_configure_extra_args
=
19073 if $ac_cs_silent; then
19075 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19080 if \$ac_cs_recheck; then
19081 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19083 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19084 CONFIG_SHELL='$SHELL'
19085 export CONFIG_SHELL
19090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19094 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19095 ## Running $as_me. ##
19101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19105 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19111 # Handling of arguments.
19112 for ac_config_target
in $ac_config_targets
19114 case $ac_config_target in
19115 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
19116 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19117 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19118 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
19119 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19121 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19126 # If the user did not use the arguments to specify the items to instantiate,
19127 # then the envvar interface is used. Set only those that are not.
19128 # We use the long form for the default assignment because of an extremely
19129 # bizarre bug on SunOS 4.1.3.
19130 if $ac_need_defaults; then
19131 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19132 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19133 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19136 # Have a temporary directory for convenience. Make it in the build tree
19137 # simply because there is no reason against having it here, and in addition,
19138 # creating and moving files from /tmp can sometimes cause problems.
19139 # Hook for its removal unless debugging.
19140 # Note that there is a small window in which the directory will not be cleaned:
19141 # after its creation but before its name has been assigned to `$tmp'.
19145 trap 'exit_status=$?
19146 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19148 trap 'as_fn_exit 1' 1 2 13 15
19150 # Create a (secure) tmp directory for tmp files.
19153 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19154 test -n "$tmp" && test -d "$tmp"
19157 tmp
=.
/conf$$
-$RANDOM
19158 (umask 077 && mkdir
"$tmp")
19159 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
19161 # Set up the scripts for CONFIG_FILES section.
19162 # No need to generate them if there are no CONFIG_FILES.
19163 # This happens for instance with `./config.status config.h'.
19164 if test -n "$CONFIG_FILES"; then
19167 ac_cr
=`echo X | tr X '\015'`
19168 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19169 # But we know of no other shell where ac_cr would be empty at this
19170 # point, so we can use a bashism as a fallback.
19171 if test "x$ac_cr" = x
; then
19172 eval ac_cr
=\$
\'\\r
\'
19174 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19175 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19178 ac_cs_awk_cr
=$ac_cr
19181 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19186 echo "cat >conf$$subs.awk <<_ACEOF" &&
19187 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19189 } >conf$$subs.sh ||
19190 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
19191 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19193 for ac_last_try in false false false false false :; do
19194 . ./conf$$subs.sh ||
19195 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
19197 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19198 if test $ac_delim_n = $ac_delim_num; then
19200 elif $ac_last_try; then
19201 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
19203 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19206 rm -f conf$$subs.sh
19208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19209 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
19213 s/^/S["/; s
/!.
*/"]=/
19223 s/\(.\{148\}\).*/\1/
19225 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19230 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19237 s/\(.\{148\}\).*/\1/
19239 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19243 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19248 ' <conf$$subs.awk | sed '
19253 ' >>$CONFIG_STATUS || ac_write_fail=1
19254 rm -f conf$$subs.awk
19255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19257 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
19258 for (key in S) S_is_set[key] = 1
19264 nfields = split(line, field, "@
")
19266 len = length(field[1])
19267 for (i = 2; i < nfields; i++) {
19269 keylen = length(key)
19270 if (S_is_set[key]) {
19272 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19273 len += length(value) + length(field[++i])
19284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19285 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19286 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19289 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
19290 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
19293 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19294 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
19295 # trailing colons and then remove the whole line if VPATH becomes empty
19296 # (actually we leave an empty line to preserve line numbers).
19297 if test "x
$srcdir" = x.; then
19298 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19299 s/:*\$(srcdir):*/:/
19300 s/:*\${srcdir}:*/:/
19302 s/^\([^=]*=[ ]*\):*/\1/
19308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19309 fi # test -n "$CONFIG_FILES"
19311 # Set up the scripts for CONFIG_HEADERS section.
19312 # No need to generate them if there are no CONFIG_HEADERS.
19313 # This happens for instance with `./config.status Makefile'.
19314 if test -n "$CONFIG_HEADERS"; then
19315 cat >"$tmp/defines.
awk" <<\_ACAWK ||
19319 # Transform confdefs.h into an awk script `defines.awk', embedded as
19320 # here-document in config.status, that substitutes the proper values into
19321 # config.h.in to produce config.h.
19323 # Create a delimiter string that does not exist in confdefs.h, to ease
19324 # handling of long lines.
19326 for ac_last_try in false false :; do
19327 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
19328 if test -z "$ac_t"; then
19330 elif $ac_last_try; then
19331 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
19333 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19337 # For the awk script, D is an array of macro values keyed by name,
19338 # likewise P contains macro parameters if any. Preserve backslash
19339 # newline sequences.
19341 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19343 s/.\{148\}/&'"$ac_delim"'/g
19346 s/^[ ]*#[ ]*define[ ][ ]*/ /
19353 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
19355 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
19359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
19360 D["\
1"]=" \
3\\\\\\n
"\\/p
19362 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
19367 s/.\{148\}/&'"$ac_delim"'/g
19372 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
19375 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
19377 ' <confdefs.h | sed '
19378 s/'"$ac_delim"'/"\\\
19379 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19382 for (key in D) D_is_set[key] = 1
19385 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19387 split(line, arg, " ")
19388 if (arg[1] == "#") {
19392 defundef
= substr
(arg
[1], 2)
19395 split(mac1
, mac2
, "(") #)
19397 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
19398 if (D_is_set
[macro
]) {
19399 # Preserve the white space surrounding the "#".
19400 print prefix
"define", macro P
[macro
] D
[macro
]
19403 # Replace #undef with comments. This is necessary, for example,
19404 # in the case of _POSIX_SOURCE, which is predefined and required
19405 # on some systems where configure will not decide to define it.
19406 if (defundef
== "undef") {
19407 print
"/*", prefix defundef
, macro
, "*/"
19415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19416 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
19417 fi # test -n "$CONFIG_HEADERS"
19420 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19425 :[FHLC
]) ac_mode
=$ac_tag; continue;;
19427 case $ac_mode$ac_tag in
19429 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
19430 :[FH
]-) ac_tag
=-:-;;
19431 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19448 -) ac_f
="$tmp/stdin";;
19449 *) # Look for the file first in the build tree, then in the source tree
19450 # (if the path is not absolute). The absolute path cannot be DOS-style,
19451 # because $ac_f cannot contain `:'.
19455 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19457 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
19459 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19460 as_fn_append ac_file_inputs
" '$ac_f'"
19463 # Let's still pretend it is `configure' which instantiates (i.e., don't
19464 # use $as_me), people would be surprised to read:
19465 # /* config.h. Generated by config.status. */
19466 configure_input
='Generated from '`
19467 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19469 if test x
"$ac_file" != x-
; then
19470 configure_input
="$ac_file. $configure_input"
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19472 $as_echo "$as_me: creating $ac_file" >&6;}
19474 # Neutralize special characters interpreted by sed in replacement strings.
19475 case $configure_input in #(
19476 *\
&* |
*\|
* |
*\\* )
19477 ac_sed_conf_input
=`$as_echo "$configure_input" |
19478 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19479 *) ac_sed_conf_input
=$configure_input;;
19483 *:-:* |
*:-) cat >"$tmp/stdin" \
19484 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
19489 ac_dir
=`$as_dirname -- "$ac_file" ||
19490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19491 X"$ac_file" : 'X\(//\)[^/]' \| \
19492 X"$ac_file" : 'X\(//\)$' \| \
19493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19494 $as_echo X"$ac_file" |
19495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19499 /^X\(\/\/\)[^/].*/{
19512 as_dir
="$ac_dir"; as_fn_mkdir_p
19516 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19518 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19519 # A ".." for each directory in $ac_dir_suffix.
19520 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19521 case $ac_top_builddir_sub in
19522 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19523 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19526 ac_abs_top_builddir
=$ac_pwd
19527 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19528 # for backward compatibility:
19529 ac_top_builddir
=$ac_top_build_prefix
19532 .
) # We are building in place.
19534 ac_top_srcdir
=$ac_top_builddir_sub
19535 ac_abs_top_srcdir
=$ac_pwd ;;
19536 [\\/]* | ?
:[\\/]* ) # Absolute name.
19537 ac_srcdir
=$srcdir$ac_dir_suffix;
19538 ac_top_srcdir
=$srcdir
19539 ac_abs_top_srcdir
=$srcdir ;;
19540 *) # Relative name.
19541 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19542 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19543 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19545 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19555 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19556 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19558 ac_MKDIR_P
=$MKDIR_P
19560 [\\/$
]* | ?
:[\\/]* ) ;;
19561 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
19565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19566 # If the template does not know about datarootdir, expand it.
19567 # FIXME: This hack should be removed a few years after 2.60.
19568 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19579 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19580 *datarootdir
*) ac_datarootdir_seen
=yes;;
19581 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19583 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19586 ac_datarootdir_hack='
19587 s&@datadir@&$datadir&g
19588 s&@docdir@&$docdir&g
19589 s&@infodir@&$infodir&g
19590 s&@localedir@&$localedir&g
19591 s&@mandir@&$mandir&g
19592 s&\\\${datarootdir}&$datarootdir&g' ;;
19596 # Neutralize VPATH when `$srcdir' = `.'.
19597 # Shell code in configure.ac might set extrasub.
19598 # FIXME: do we really want to maintain this feature?
19599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19600 ac_sed_extra="$ac_vpsub
19603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19605 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19606 s|@configure_input@|
$ac_sed_conf_input|
;t t
19607 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19608 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19609 s
&@srcdir@
&$ac_srcdir&;t t
19610 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19611 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19612 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19613 s
&@builddir@
&$ac_builddir&;t t
19614 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19615 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19616 s
&@INSTALL@
&$ac_INSTALL&;t t
19617 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
19618 $ac_datarootdir_hack
19620 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
19621 || as_fn_error "could not create
$ac_file" "$LINENO" 5
19623 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19624 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
19625 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19627 which seems to be undefined. Please make sure it is defined." >&5
19628 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19629 which seems to be undefined. Please make sure it is defined." >&2;}
19633 -) cat "$tmp/out" && rm -f "$tmp/out";;
19634 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19636 || as_fn_error "could not create $ac_file" "$LINENO" 5
19642 if test x"$ac_file" != x-; then
19644 $as_echo "/* $configure_input */" \
19645 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19646 } >"$tmp/config.h" \
19647 || as_fn_error "could not create $ac_file" "$LINENO" 5
19648 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19650 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19653 mv "$tmp/config.h" "$ac_file" \
19654 || as_fn_error "could not create $ac_file" "$LINENO" 5
19657 $as_echo "/* $configure_input */" \
19658 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19659 || as_fn_error "could not create -" "$LINENO" 5
19661 # Compute "$ac_file"'s index
in $config_headers.
19664 for _am_header
in $config_headers :; do
19665 case $_am_header in
19666 $_am_arg |
$_am_arg:* )
19669 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19672 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19673 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19674 X"$_am_arg" : 'X\(//\)[^/]' \| \
19675 X"$_am_arg" : 'X\(//\)$' \| \
19676 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19677 $as_echo X"$_am_arg" |
19678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19682 /^X\(\/\/\)[^/].*/{
19694 s/.*/./; q'`/stamp-h
$_am_stamp_count
19697 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19698 $as_echo "$as_me: executing $ac_file commands" >&6;}
19703 case $ac_file$ac_mode in
19704 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19705 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19706 # are listed without --file. Let's play safe and only enable the eval
19707 # if we detect the quoting.
19708 case $CONFIG_FILES in
19709 *\'*) eval set x
"$CONFIG_FILES" ;;
19710 *) set x
$CONFIG_FILES ;;
19715 # Strip MF so we end up with the name of the file.
19716 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19717 # Check whether this is an Automake generated Makefile or not.
19718 # We used to match only the files named `Makefile.in', but
19719 # some people rename them; so instead we look at the file content.
19720 # Grep'ing the first line is not enough: some people post-process
19721 # each Makefile.in and add a new line on top of each file to say so.
19722 # Grep'ing the whole file is not good either: AIX grep has a line
19723 # limit of 2048, but all sed's we know have understand at least 4000.
19724 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19725 dirpart
=`$as_dirname -- "$mf" ||
19726 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19727 X"$mf" : 'X\(//\)[^/]' \| \
19728 X"$mf" : 'X\(//\)$' \| \
19729 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19735 /^X\(\/\/\)[^/].*/{
19751 # Extract the definition of DEPDIR, am__include, and am__quote
19752 # from the Makefile without running `make'.
19753 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19754 test -z "$DEPDIR" && continue
19755 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19756 test -z "am__include" && continue
19757 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19758 # When using ansi2knr, U may be empty or an underscore; expand it
19759 U
=`sed -n 's/^U = //p' < "$mf"`
19760 # Find all dependency output files, they are included files with
19761 # $(DEPDIR) in their names. We invoke sed twice because it is the
19762 # simplest approach to changing $(DEPDIR) to its actual value in the
19764 for file in `sed -n "
19765 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19766 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19767 # Make sure the directory exists.
19768 test -f "$dirpart/$file" && continue
19769 fdir
=`$as_dirname -- "$file" ||
19770 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19771 X"$file" : 'X\(//\)[^/]' \| \
19772 X"$file" : 'X\(//\)$' \| \
19773 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19774 $as_echo X"$file" |
19775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19779 /^X\(\/\/\)[^/].*/{
19792 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19793 # echo "creating $dirpart/$file"
19794 echo '# dummy' > "$dirpart/$file"
19800 case x
$CONFIG_HEADERS in
19801 xconfig.h
:config.
in)
19812 ac_clean_files
=$ac_clean_files_save
19814 test $ac_write_fail = 0 ||
19815 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19818 # configure is writing to config.log, and then calls config.status.
19819 # config.status does its own redirection, appending to config.log.
19820 # Unfortunately, on DOS this fails, as config.log is still kept open
19821 # by configure, so config.status won't be able to write to it; its
19822 # output is simply discarded. So we exec the FD to /dev/null,
19823 # effectively closing config.log, so it can be properly (re)opened and
19824 # appended to by config.status. When coming back to configure, we
19825 # need to make the FD available again.
19826 if test "$no_create" != yes; then
19828 ac_config_status_args
=
19829 test "$silent" = yes &&
19830 ac_config_status_args
="$ac_config_status_args --quiet"
19832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19835 # would make configure fail if this is the last instruction.
19836 $ac_cs_success || as_fn_exit $?
19838 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19840 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}