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 strtok_r:
5254 # Code from module sys_stat:
5255 # Code from module sys_types:
5256 # Code from module time:
5257 # Code from module unistd:
5258 # Code from module update-copyright:
5259 # Code from module verify:
5260 # Code from module wchar:
5261 # Code from module wctype-h:
5264 ac_cpp
='$CPP $CPPFLAGS'
5265 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5268 if test -n "$ac_tool_prefix"; then
5269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5270 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if test "${ac_cv_prog_CC+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5276 if test -n "$CC"; then
5277 ac_cv_prog_CC
="$CC" # Let the user override the test.
5279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5283 test -z "$as_dir" && as_dir
=.
5284 for ac_exec_ext
in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 if test -n "$CC"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5299 $as_echo "$CC" >&6; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5307 if test -z "$ac_cv_prog_CC"; then
5309 # Extract the first word of "gcc", so it can be a program name with args.
5310 set dummy gcc
; ac_word
=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5316 if test -n "$ac_ct_CC"; then
5317 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir
=.
5324 for ac_exec_ext
in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_CC
="gcc"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5337 if test -n "$ac_ct_CC"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5339 $as_echo "$ac_ct_CC" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5345 if test "x$ac_ct_CC" = x
; then
5348 case $cross_compiling:$ac_tool_warned in
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5352 ac_tool_warned
=yes ;;
5360 if test -z "$CC"; then
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5363 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_prog_CC+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5369 if test -n "$CC"; then
5370 ac_cv_prog_CC
="$CC" # Let the user override the test.
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir
=.
5377 for ac_exec_ext
in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 if test -n "$CC"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5392 $as_echo "$CC" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5401 if test -z "$CC"; then
5402 # Extract the first word of "cc", so it can be a program name with args.
5403 set dummy cc
; ac_word
=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if test "${ac_cv_prog_CC+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5409 if test -n "$CC"; then
5410 ac_cv_prog_CC
="$CC" # Let the user override the test.
5413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5417 test -z "$as_dir" && as_dir
=.
5418 for ac_exec_ext
in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5421 ac_prog_rejected
=yes
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 if test $ac_prog_rejected = yes; then
5433 # We found a bogon in the path, so make sure we never use it.
5434 set dummy
$ac_cv_prog_CC
5436 if test $# != 0; then
5437 # We chose a different compiler from the bogus one.
5438 # However, it has the same basename, so the bogon will be chosen
5439 # first if we set CC to just the basename; use the full file name.
5441 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5447 if test -n "$CC"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5449 $as_echo "$CC" >&6; }
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5457 if test -z "$CC"; then
5458 if test -n "$ac_tool_prefix"; then
5459 for ac_prog
in cl.exe
5461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5462 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if test "${ac_cv_prog_CC+set}" = set; then :
5466 $as_echo_n "(cached) " >&6
5468 if test -n "$CC"; then
5469 ac_cv_prog_CC
="$CC" # Let the user override the test.
5471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5475 test -z "$as_dir" && as_dir
=.
5476 for ac_exec_ext
in '' $ac_executable_extensions; do
5477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 if test -n "$CC"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5491 $as_echo "$CC" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5498 test -n "$CC" && break
5501 if test -z "$CC"; then
5503 for ac_prog
in cl.exe
5505 # Extract the first word of "$ac_prog", so it can be a program name with args.
5506 set dummy
$ac_prog; ac_word
=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5512 if test -n "$ac_ct_CC"; then
5513 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5519 test -z "$as_dir" && as_dir
=.
5520 for ac_exec_ext
in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_prog_ac_ct_CC
="$ac_prog"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5533 if test -n "$ac_ct_CC"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5535 $as_echo "$ac_ct_CC" >&6; }
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5542 test -n "$ac_ct_CC" && break
5545 if test "x$ac_ct_CC" = x
; then
5548 case $cross_compiling:$ac_tool_warned in
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552 ac_tool_warned
=yes ;;
5561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5563 as_fn_error
"no acceptable C compiler found in \$PATH
5564 See \`config.log' for more details." "$LINENO" 5; }
5566 # Provide some information about the compiler.
5567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5570 for ac_option
in --version -v -V -qversion; do
5571 { { ac_try
="$ac_compiler $ac_option >&5"
5573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5577 $as_echo "$ac_try_echo"; } >&5
5578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5580 if test -s conftest.err; then
5582 ... rest of stderr output deleted ...
5583 10q' conftest.err >conftest.er1
5584 cat conftest.er1 >&5
5585 rm -f conftest.er1 conftest.err
5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588 test $ac_status = 0; }
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5593 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5610 if ac_fn_c_try_compile "$LINENO"; then :
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5620 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5621 if test $ac_compiler_gnu = yes; then
5626 ac_test_CFLAGS=${CFLAGS+set}
5627 ac_save_CFLAGS=$CFLAGS
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5629 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5630 if test "${ac_cv_prog_cc_g+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5633 ac_save_c_werror_flag=$ac_c_werror_flag
5634 ac_c_werror_flag=yes
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5648 if ac_fn_c_try_compile "$LINENO"; then :
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5663 if ac_fn_c_try_compile "$LINENO"; then :
5666 ac_c_werror_flag=$ac_save_c_werror_flag
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5679 if ac_fn_c_try_compile "$LINENO"; then :
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 ac_c_werror_flag=$ac_save_c_werror_flag
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5690 $as_echo "$ac_cv_prog_cc_g" >&6; }
5691 if test "$ac_test_CFLAGS" = set; then
5692 CFLAGS=$ac_save_CFLAGS
5693 elif test $ac_cv_prog_cc_g = yes; then
5694 if test "$GCC" = yes; then
5700 if test "$GCC" = yes; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5707 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5708 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5711 ac_cv_prog_cc_c89=no
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5717 #include <sys/types.h>
5718 #include <sys/stat.h>
5719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5720 struct buf { int x; };
5721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5722 static char *e (p, i)
5728 static char *f (char * (*g) (char **, int), char **p, ...)
5733 s = g (p, va_arg (v,int));
5738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5739 function prototypes and stuff, but not '\xHH' hex character constants.
5740 These don't provoke an error unfortunately, instead are silently treated
5741 as 'x'. The following induces an error, until -std is added to get
5742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5743 array size at least. It's necessary to write '\x00'==0 to get something
5744 that's true only with -std. */
5745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5748 inside strings and character constants. */
5750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5752 int test (int i, double x);
5753 struct s1 {int (*f) (int a);};
5754 struct s2 {int (*f) (double a);};
5755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5769 CC="$ac_save_CC $ac_arg"
5770 if ac_fn_c_try_compile "$LINENO"; then :
5771 ac_cv_prog_cc_c89=$ac_arg
5773 rm -f core conftest.err conftest.$ac_objext
5774 test "x$ac_cv_prog_cc_c89" != "xno" && break
5776 rm -f conftest.$ac_ext
5781 case "x$ac_cv_prog_cc_c89" in
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5784 $as_echo "none needed" >&6; } ;;
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5787 $as_echo "unsupported" >&6; } ;;
5789 CC="$CC $ac_cv_prog_cc_c89"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5793 if test "x$ac_cv_prog_cc_c89" != xno; then :
5798 ac_cpp='$CPP $CPPFLAGS'
5799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5804 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5808 for ac_dir in ../.. "$srcdir"/../..; do
5809 for ac_t in install-sh install.sh shtool; do
5810 if test -f "$ac_dir/$ac_t"; then
5812 ac_install_sh="$ac_aux_dir/$ac_t -c"
5817 if test -z "$ac_aux_dir"; then
5818 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5821 # These three variables are undocumented and unsupported,
5822 # and are intended to be withdrawn in a future Autoconf release.
5823 # They can cause serious problems if a builder's source tree is in a directory
5824 # whose full name contains unusual characters.
5825 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5826 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5827 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5831 $as_echo_n "checking target system type... " >&6; }
5832 if test "${ac_cv_target+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5835 if test "x$target_alias" = x; then
5836 ac_cv_target=$ac_cv_host
5838 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5839 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5844 $as_echo "$ac_cv_target" >&6; }
5845 case $ac_cv_target in
5847 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5849 target=$ac_cv_target
5850 ac_save_IFS=$IFS; IFS='-'
5856 # Remember, the first character of IFS is used to create $*,
5857 # except with old shells:
5860 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5863 # The aliases save the names the user supplied, while $host etc.
5864 # will get canonicalized.
5865 test -n "$target_alias" &&
5866 test "$program_prefix$program_suffix$program_transform_name" = \
5868 program_prefix=${target_alias}-
5876 LIBC_FATAL_STDERR_=1
5877 export LIBC_FATAL_STDERR_
5879 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5880 # for constant arguments. Useless!
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5882 $as_echo_n "checking for working alloca.h... " >&6; }
5883 if test "${ac_cv_working_alloca_h+set}" = set; then :
5884 $as_echo_n "(cached) " >&6
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5892 char *p = (char *) alloca (2 * sizeof (int));
5898 if ac_fn_c_try_link "$LINENO"; then :
5899 ac_cv_working_alloca_h=yes
5901 ac_cv_working_alloca_h=no
5903 rm -f core conftest.err conftest.$ac_objext \
5904 conftest$ac_exeext conftest.$ac_ext
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5907 $as_echo "$ac_cv_working_alloca_h" >&6; }
5908 if test $ac_cv_working_alloca_h = yes; then
5910 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5915 $as_echo_n "checking for alloca... " >&6; }
5916 if test "${ac_cv_func_alloca_works+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5922 # define alloca __builtin_alloca
5925 # include <malloc.h>
5926 # define alloca _alloca
5928 # ifdef HAVE_ALLOCA_H
5929 # include <alloca.h>
5934 # ifndef alloca /* predefined by HP cc +Olibcalls */
5945 char *p = (char *) alloca (1);
5951 if ac_fn_c_try_link "$LINENO"; then :
5952 ac_cv_func_alloca_works=yes
5954 ac_cv_func_alloca_works=no
5956 rm -f core conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5960 $as_echo "$ac_cv_func_alloca_works" >&6; }
5962 if test $ac_cv_func_alloca_works = yes; then
5964 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5967 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5968 # that cause trouble. Some versions do not even contain alloca or
5969 # contain a buggy version. If you still want to use their alloca,
5970 # use ar to extract alloca.o from them instead of compiling alloca.c.
5976 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5978 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5982 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5983 if test "${ac_cv_os_cray+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 #if defined CRAY && ! defined CRAY2
5995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5996 $EGREP "webecray" >/dev/null 2>&1; then :
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6005 $as_echo "$ac_cv_os_cray" >&6; }
6006 if test $ac_cv_os_cray = yes; then
6007 for ac_func in _getb67 GETB67 getb67; do
6008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6010 eval as_val=\$$as_ac_var
6011 if test "x$as_val" = x""yes; then :
6013 cat >>confdefs.h <<_ACEOF
6014 #define CRAY_STACKSEG_END $ac_func
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6024 $as_echo_n "checking stack direction for C alloca... " >&6; }
6025 if test "${ac_cv_c_stack_direction+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6028 if test "$cross_compiling" = yes; then :
6029 ac_cv_c_stack_direction=0
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 $ac_includes_default
6035 find_stack_direction (int *addr, int depth)
6040 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6041 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6046 main (int argc, char **argv)
6048 return find_stack_direction (0, argc + !argv + 20) < 0;
6051 if ac_fn_c_try_run "$LINENO"; then :
6052 ac_cv_c_stack_direction=1
6054 ac_cv_c_stack_direction=-1
6056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6057 conftest.$ac_objext conftest.beam conftest.$ac_ext
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6062 $as_echo "$ac_cv_c_stack_direction" >&6; }
6063 cat >>confdefs.h <<_ACEOF
6064 #define STACK_DIRECTION $ac_cv_c_stack_direction
6073 GNULIB_CALLOC_POSIX=0;
6074 GNULIB_CANONICALIZE_FILE_NAME=0;
6075 GNULIB_GETLOADAVG=0;
6078 GNULIB_MALLOC_POSIX=0;
6085 GNULIB_POSIX_OPENPT=0;
6091 GNULIB_REALLOC_POSIX=0;
6098 GNULIB_SYSTEM_POSIX=0;
6104 HAVE_CANONICALIZE_FILE_NAME=1;
6105 HAVE_DECL_GETLOADAVG=1;
6113 HAVE_POSIX_OPENPT=1;
6126 HAVE_STRUCT_RANDOM_DATA=1;
6127 HAVE_SYS_LOADAVG_H=0;
6129 HAVE_DECL_UNSETENV=1;
6131 REPLACE_CANONICALIZE_FILE_NAME=0;
6136 REPLACE_PTSNAME_R=0;
6149 for ac_func in $ac_func_list
6151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6152 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6153 eval as_val=\$$as_ac_var
6154 if test "x$as_val" = x""yes; then :
6155 cat >>confdefs.h <<_ACEOF
6156 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6171 $as_echo_n "checking whether // is distinct from /... " >&6; }
6172 if test "${gl_cv_double_slash_root+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6175 if test x"$cross_compiling" = xyes ; then
6176 # When cross-compiling, there is no way to tell whether // is special
6177 # short of a list of hosts. However, the only known hosts to date
6178 # that have a distinct // are Apollo DomainOS (too old to port to),
6179 # Cygwin, and z/OS. If anyone knows of another system for which // has
6180 # special semantics and is distinct from /, please report it to
6181 # <bug-gnulib@gnu.org>.
6183 *-cygwin | i370-ibm-openedition)
6184 gl_cv_double_slash_root=yes ;;
6186 # Be optimistic and assume that / and // are the same when we
6188 gl_cv_double_slash_root='unknown, assuming no' ;;
6191 set x `ls -di / // 2>/dev
/null
`
6192 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6193 gl_cv_double_slash_root=no
6195 gl_cv_double_slash_root=yes
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6200 $as_echo "$gl_cv_double_slash_root" >&6; }
6201 if test "$gl_cv_double_slash_root" = yes; then
6203 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6212 $as_echo_n "checking whether realpath works... " >&6; }
6213 if test "${gl_cv_func_realpath_works+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6219 if test "$cross_compiling" = yes; then :
6221 # Guess yes on glibc systems.
6222 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6223 # If we don't know, assume the worst.
6224 *) gl_cv_func_realpath_works="guessing no" ;;
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6234 #if defined __MACH__ && defined __APPLE__
6235 /* Avoid a crash on Mac OS X. */
6236 #include <mach/mach.h>
6237 #include <mach/mach_error.h>
6238 #include <mach/thread_status.h>
6239 #include <mach/exception.h>
6240 #include <mach/task.h>
6241 #include <pthread.h>
6242 /* The exception port on which our thread listens. */
6243 static mach_port_t our_exception_port;
6244 /* The main function of the thread listening for exceptions of type
6247 mach_exception_thread (void *arg)
6249 /* Buffer for a message to be received. */
6251 mach_msg_header_t head;
6252 mach_msg_body_t msgh_body;
6255 mach_msg_return_t retval;
6256 /* Wait for a message on the exception port. */
6257 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6258 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6259 if (retval != MACH_MSG_SUCCESS)
6266 mach_port_t self = mach_task_self ();
6267 /* Allocate a port on which the thread shall listen for exceptions. */
6268 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6270 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6271 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6272 MACH_MSG_TYPE_MAKE_SEND)
6274 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6276 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6277 /* Create the thread listening on the exception port. */
6278 pthread_attr_t attr;
6280 if (pthread_attr_init (&attr) == 0
6281 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6282 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6283 pthread_attr_destroy (&attr);
6284 /* Replace the exception port info for these exceptions with our own.
6285 Note that we replace the exception port for the entire task, not only
6286 for a particular thread. This has the effect that when our exception
6287 port gets the message, the thread specific exception port has already
6288 been asked, and we don't need to bother about it.
6289 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6290 task_set_exception_ports (self, mask, our_exception_port,
6291 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6296 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6297 /* Avoid a crash on native Windows. */
6298 #define WIN32_LEAN_AND_MEAN
6299 #include <windows.h>
6300 #include <winerror.h>
6302 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6304 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6306 case EXCEPTION_ACCESS_VIOLATION:
6307 case EXCEPTION_IN_PAGE_ERROR:
6308 case EXCEPTION_STACK_OVERFLOW:
6309 case EXCEPTION_GUARD_PAGE:
6310 case EXCEPTION_PRIV_INSTRUCTION:
6311 case EXCEPTION_ILLEGAL_INSTRUCTION:
6312 case EXCEPTION_DATATYPE_MISALIGNMENT:
6313 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6314 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6317 return EXCEPTION_CONTINUE_SEARCH;
6322 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6325 /* Avoid a crash on POSIX systems. */
6327 /* A POSIX signal handler. */
6329 exception_handler (int sig)
6337 signal (SIGSEGV, exception_handler);
6340 signal (SIGBUS, exception_handler);
6354 char *name = realpath ("conftest.a", NULL);
6355 if (!(name && *name == '/'))
6359 char *name = realpath ("conftest.b/../conftest.a", NULL);
6364 char *name = realpath ("conftest.a/", NULL);
6369 char *name1 = realpath (".", NULL);
6370 char *name2 = realpath ("conftest.d//./..", NULL);
6371 if (strcmp (name1, name2) != 0)
6381 if ac_fn_c_try_run "$LINENO"; then :
6382 gl_cv_func_realpath_works=yes
6384 gl_cv_func_realpath_works=no
6386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6387 conftest.$ac_objext conftest.beam conftest.$ac_ext
6390 rm -rf conftest.a conftest.d
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6394 $as_echo "$gl_cv_func_realpath_works" >&6; }
6395 case "$gl_cv_func_realpath_works" in
6398 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6406 for ac_header in $ac_header_list
6408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6409 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6411 eval as_val=\$$as_ac_Header
6412 if test "x$as_val" = x""yes; then :
6413 cat >>confdefs.h <<_ACEOF
6414 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6438 GNULIB_EUIDACCESS=0;
6446 GNULIB_GETDOMAINNAME=0;
6447 GNULIB_GETDTABLESIZE=0;
6449 GNULIB_GETHOSTNAME=0;
6451 GNULIB_GETLOGIN_R=0;
6452 GNULIB_GETPAGESIZE=0;
6453 GNULIB_GETUSERSHELL=0;
6454 GNULIB_GROUP_MEMBER=0;
6466 GNULIB_READLINKAT=0;
6468 GNULIB_SETHOSTNAME=0;
6473 GNULIB_UNISTD_H_NONBLOCKING=0;
6474 GNULIB_UNISTD_H_SIGPIPE=0;
6489 HAVE_GETDTABLESIZE=1;
6494 HAVE_GROUP_MEMBER=1;
6510 HAVE_DECL_ENVIRON=1;
6512 HAVE_DECL_FDATASYNC=1;
6513 HAVE_DECL_GETDOMAINNAME=1;
6514 HAVE_DECL_GETLOGIN_R=1;
6515 HAVE_DECL_GETPAGESIZE=1;
6516 HAVE_DECL_GETUSERSHELL=1;
6517 HAVE_DECL_SETHOSTNAME=1;
6518 HAVE_DECL_TTYNAME_R=1;
6526 REPLACE_FTRUNCATE=0;
6528 REPLACE_GETDOMAINNAME=0;
6529 REPLACE_GETLOGIN_R=0;
6530 REPLACE_GETGROUPS=0;
6531 REPLACE_GETPAGESIZE=0;
6544 REPLACE_TTYNAME_R=0;
6549 UNISTD_H_HAVE_WINSOCK2_H=0;
6550 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6567 HAVE_DECL_FDOPENDIR=1;
6574 REPLACE_FDOPENDIR=0;
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6579 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6580 if test "${gl_cv_have_include_next+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6583 rm -rf conftestd1a conftestd1b conftestd2
6584 mkdir conftestd1a conftestd1b conftestd2
6585 cat <<EOF > conftestd1a/conftest.h
6586 #define DEFINED_IN_CONFTESTD1
6587 #include_next <conftest.h>
6588 #ifdef DEFINED_IN_CONFTESTD2
6591 #error "include_next doesn't work"
6594 cat <<EOF > conftestd1b/conftest.h
6595 #define DEFINED_IN_CONFTESTD1
6597 #include_next <conftest.h>
6598 #ifdef DEFINED_IN_CONFTESTD2
6601 #error "include_next doesn't work"
6604 cat <<EOF > conftestd2/conftest.h
6605 #ifndef DEFINED_IN_CONFTESTD1
6606 #error "include_next test doesn't work"
6608 #define DEFINED_IN_CONFTESTD2
6610 gl_save_CPPFLAGS="$CPPFLAGS"
6611 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6614 #include <conftest.h>
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 gl_cv_have_include_next=yes
6619 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 #include <conftest.h>
6624 if ac_fn_c_try_compile "$LINENO"; then :
6625 gl_cv_have_include_next=buggy
6627 gl_cv_have_include_next=no
6629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 CPPFLAGS="$gl_save_CPPFLAGS"
6634 rm -rf conftestd1a conftestd1b conftestd2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6638 $as_echo "$gl_cv_have_include_next" >&6; }
6639 PRAGMA_SYSTEM_HEADER=
6640 if test $gl_cv_have_include_next = yes; then
6641 INCLUDE_NEXT=include_next
6642 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6643 if test -n "$GCC"; then
6644 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6647 if test $gl_cv_have_include_next = buggy; then
6648 INCLUDE_NEXT=include
6649 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6651 INCLUDE_NEXT=include
6652 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6659 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6660 if test "${gl_cv_pragma_columns+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6672 $EGREP "choke me" >/dev/null 2>&1; then :
6673 gl_cv_pragma_columns=yes
6675 gl_cv_pragma_columns=no
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6682 $as_echo "$gl_cv_pragma_columns" >&6; }
6683 if test $gl_cv_pragma_columns = yes; then
6684 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6695 $as_echo_n "checking for complete errno.h... " >&6; }
6696 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6697 $as_echo_n "(cached) " >&6
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6704 #if !defined ETXTBSY
6713 #if !defined ENOLINK
6719 #if !defined EMULTIHOP
6722 #if !defined EBADMSG
6725 #if !defined EOVERFLOW
6728 #if !defined ENOTSUP
6731 #if !defined ENETRESET
6734 #if !defined ECONNABORTED
6743 #if !defined ECANCELED
6746 #if !defined EOWNERDEAD
6749 #if !defined ENOTRECOVERABLE
6757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6758 $EGREP "booboo" >/dev/null 2>&1; then :
6759 gl_cv_header_errno_h_complete=no
6761 gl_cv_header_errno_h_complete=yes
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6768 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6769 if test $gl_cv_header_errno_h_complete = yes; then
6780 if test $gl_cv_have_include_next = yes; then
6781 gl_cv_next_errno_h='<'errno.h'>'
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6784 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6785 if test "${gl_cv_next_errno_h+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6795 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6796 *) gl_absname_cpp="$ac_cpp" ;;
6801 gl_dirsep_regex='[/\\]'
6804 gl_dirsep_regex='\/'
6807 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6809 gl_header_literal_regex=`echo 'errno.h' \
6810 |
sed -e "$gl_make_literal_regex_sed"`
6811 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6812 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6817 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6818 sed -n "$gl_absolute_header_sed"`'"'
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6823 $as_echo "$gl_cv_next_errno_h" >&6; }
6825 NEXT_ERRNO_H=$gl_cv_next_errno_h
6827 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6828 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6829 gl_next_as_first_directive='<'errno.h'>'
6831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6832 gl_next_as_first_directive=$gl_cv_next_errno_h
6834 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6842 if test -n "$ERRNO_H"; then
6843 GL_GENERATE_ERRNO_H_TRUE=
6844 GL_GENERATE_ERRNO_H_FALSE='#'
6846 GL_GENERATE_ERRNO_H_TRUE='#'
6847 GL_GENERATE_ERRNO_H_FALSE=
6851 if test -n "$ERRNO_H"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6853 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6854 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868 $EGREP "yes" >/dev/null 2>&1; then :
6869 gl_cv_header_errno_h_EMULTIHOP=yes
6871 gl_cv_header_errno_h_EMULTIHOP=no
6875 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6879 #define _XOPEN_SOURCE_EXTENDED 1
6886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6887 $EGREP "yes" >/dev/null 2>&1; then :
6888 gl_cv_header_errno_h_EMULTIHOP=hidden
6892 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6893 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6894 #define _XOPEN_SOURCE_EXTENDED 1
6896 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6908 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6909 case $gl_cv_header_errno_h_EMULTIHOP in
6911 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6914 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6922 if test -n "$ERRNO_H"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6924 $as_echo_n "checking for ENOLINK value... " >&6; }
6925 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6939 $EGREP "yes" >/dev/null 2>&1; then :
6940 gl_cv_header_errno_h_ENOLINK=yes
6942 gl_cv_header_errno_h_ENOLINK=no
6946 if test $gl_cv_header_errno_h_ENOLINK = no; then
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6950 #define _XOPEN_SOURCE_EXTENDED 1
6957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958 $EGREP "yes" >/dev/null 2>&1; then :
6959 gl_cv_header_errno_h_ENOLINK=hidden
6963 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6964 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6965 #define _XOPEN_SOURCE_EXTENDED 1
6967 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6979 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6980 case $gl_cv_header_errno_h_ENOLINK in
6982 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6985 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6993 if test -n "$ERRNO_H"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6995 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6996 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "yes" >/dev/null 2>&1; then :
7011 gl_cv_header_errno_h_EOVERFLOW=yes
7013 gl_cv_header_errno_h_EOVERFLOW=no
7017 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7021 #define _XOPEN_SOURCE_EXTENDED 1
7028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029 $EGREP "yes" >/dev/null 2>&1; then :
7030 gl_cv_header_errno_h_EOVERFLOW=hidden
7034 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7035 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7036 #define _XOPEN_SOURCE_EXTENDED 1
7038 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7050 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7051 case $gl_cv_header_errno_h_EOVERFLOW in
7053 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7056 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7070 $as_echo_n "checking for mbstate_t... " >&6; }
7071 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 $ac_includes_default
7077 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7079 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7080 included before <wchar.h>. */
7088 mbstate_t x; return sizeof x;
7093 if ac_fn_c_try_compile "$LINENO"; then :
7094 ac_cv_type_mbstate_t=yes
7096 ac_cv_type_mbstate_t=no
7098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7101 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7102 if test $ac_cv_type_mbstate_t = yes; then
7104 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7108 $as_echo "#define mbstate_t int" >>confdefs.h
7206 GNULIB_REMAINDERF=0;
7207 GNULIB_REMAINDERL=0;
7293 HAVE_DECL_COPYSIGNF=1;
7310 HAVE_DECL_REMAINDER=1;
7311 HAVE_DECL_REMAINDERL=1;
7373 REPLACE_REMAINDER=0;
7374 REPLACE_REMAINDERF=0;
7375 REPLACE_REMAINDERL=0;
7380 REPLACE_SIGNBIT_USING_GCC=0;
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7388 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7389 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7400 int e; return frexp (x, &e) > 0;
7405 if ac_fn_c_try_link "$LINENO"; then :
7406 gl_cv_func_frexp_no_libm=yes
7408 gl_cv_func_frexp_no_libm=no
7410 rm -f core conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7415 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7421 $as_echo_n "checking whether long double and double are the same... " >&6; }
7422 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7431 typedef int check[sizeof (long double) == sizeof (double)
7432 && LDBL_MANT_DIG == DBL_MANT_DIG
7433 && LDBL_MAX_EXP == DBL_MAX_EXP
7434 && LDBL_MIN_EXP == DBL_MIN_EXP
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442 gl_cv_long_double_equals_double=yes
7444 gl_cv_long_double_equals_double=no
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7450 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7451 if test $gl_cv_long_double_equals_double = yes; then
7453 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7455 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7457 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7463 $as_echo_n "checking for unsigned long long int... " >&6; }
7464 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7467 ac_cv_type_unsigned_long_long_int=yes
7468 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7472 /* For now, do not test the preprocessor; as of 2007 there are too many
7473 implementations with broken preprocessors. Perhaps this can
7474 be revisited in 2012. In the meantime, code should not expect
7475 #if to work with literals wider than 32 bits. */
7476 /* Test literals. */
7477 long long int ll = 9223372036854775807ll;
7478 long long int nll = -9223372036854775807LL;
7479 unsigned long long int ull = 18446744073709551615ULL;
7480 /* Test constant expressions. */
7481 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7483 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7489 /* Test availability of runtime routines for shift and division. */
7490 long long int llmax = 9223372036854775807ll;
7491 unsigned long long int ullmax = 18446744073709551615ull;
7492 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7493 | (llmax / ll) | (llmax % ll)
7494 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7495 | (ullmax / ull) | (ullmax % ull));
7501 if ac_fn_c_try_link "$LINENO"; then :
7504 ac_cv_type_unsigned_long_long_int=no
7506 rm -f core conftest.err conftest.$ac_objext \
7507 conftest$ac_exeext conftest.$ac_ext
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7511 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7512 if test $ac_cv_type_unsigned_long_long_int = yes; then
7514 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7521 $as_echo_n "checking for long long int... " >&6; }
7522 if test "${ac_cv_type_long_long_int+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7525 ac_cv_type_long_long_int=yes
7526 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7527 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7528 if test $ac_cv_type_long_long_int = yes; then
7529 if test "$cross_compiling" = yes; then :
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7537 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7538 # define LLONG_MAX (HALF - 1 + HALF)
7543 long long int n = 1;
7547 long long int m = n << i;
7550 if (LLONG_MAX / 2 < m)
7558 if ac_fn_c_try_run "$LINENO"; then :
7561 ac_cv_type_long_long_int=no
7563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7564 conftest.$ac_objext conftest.beam conftest.$ac_ext
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7571 $as_echo "$ac_cv_type_long_long_int" >&6; }
7572 if test $ac_cv_type_long_long_int = yes; then
7574 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7583 gl_cv_c_multiarch=no
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 #ifndef __APPLE_CC__
7587 not a universal capable compiler
7592 if ac_fn_c_try_compile "$LINENO"; then :
7596 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7597 if test -n "$prev"; then
7599 i?86 | x86_64 | ppc | ppc64)
7600 if test -z "$arch" || test "$arch" = "$word"; then
7603 gl_cv_c_multiarch=yes
7609 if test "x$word" = "x-arch"; then
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 if test $gl_cv_c_multiarch = yes; then
7618 APPLE_UNIVERSAL_BUILD=1
7620 APPLE_UNIVERSAL_BUILD=0
7627 if test $ac_cv_type_long_long_int = yes; then
7628 HAVE_LONG_LONG_INT=1
7630 HAVE_LONG_LONG_INT=0
7634 if test $ac_cv_type_unsigned_long_long_int = yes; then
7635 HAVE_UNSIGNED_LONG_LONG_INT=1
7637 HAVE_UNSIGNED_LONG_LONG_INT=0
7642 if test $ac_cv_header_wchar_h = yes; then
7649 if test $ac_cv_header_inttypes_h = yes; then
7656 if test $ac_cv_header_sys_types_h = yes; then
7672 if test $gl_cv_have_include_next = yes; then
7673 gl_cv_next_stdint_h='<'stdint.h'>'
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7676 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7677 if test "${gl_cv_next_stdint_h+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7681 if test $ac_cv_header_stdint_h = yes; then
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7690 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7691 *) gl_absname_cpp="$ac_cpp" ;;
7696 gl_dirsep_regex='[/\\]'
7699 gl_dirsep_regex='\/'
7702 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7704 gl_header_literal_regex=`echo 'stdint.h' \
7705 |
sed -e "$gl_make_literal_regex_sed"`
7706 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7707 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7712 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7713 sed -n "$gl_absolute_header_sed"`'"'
7715 gl_cv_next_stdint_h='<'stdint.h'>'
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7721 $as_echo "$gl_cv_next_stdint_h" >&6; }
7723 NEXT_STDINT_H=$gl_cv_next_stdint_h
7725 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7726 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7727 gl_next_as_first_directive='<'stdint.h'>'
7729 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7730 gl_next_as_first_directive=$gl_cv_next_stdint_h
7732 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7737 if test $ac_cv_header_stdint_h = yes; then
7744 if test $ac_cv_header_stdint_h = yes; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7746 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7747 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7750 gl_cv_header_working_stdint_h=no
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7755 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7757 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7758 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7759 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7763 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7764 included before <wchar.h>. */
7775 int8_t a1 = INT8_MAX;
7776 int8_t a1min = INT8_MIN;
7779 int16_t a2 = INT16_MAX;
7780 int16_t a2min = INT16_MIN;
7783 int32_t a3 = INT32_MAX;
7784 int32_t a3min = INT32_MIN;
7787 int64_t a4 = INT64_MAX;
7788 int64_t a4min = INT64_MIN;
7791 uint8_t b1 = UINT8_MAX;
7793 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7796 uint16_t b2 = UINT16_MAX;
7799 uint32_t b3 = UINT32_MAX;
7802 uint64_t b4 = UINT64_MAX;
7804 int_least8_t c1 = INT8_C (0x7f);
7805 int_least8_t c1max = INT_LEAST8_MAX;
7806 int_least8_t c1min = INT_LEAST8_MIN;
7807 int_least16_t c2 = INT16_C (0x7fff);
7808 int_least16_t c2max = INT_LEAST16_MAX;
7809 int_least16_t c2min = INT_LEAST16_MIN;
7810 int_least32_t c3 = INT32_C (0x7fffffff);
7811 int_least32_t c3max = INT_LEAST32_MAX;
7812 int_least32_t c3min = INT_LEAST32_MIN;
7813 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7814 int_least64_t c4max = INT_LEAST64_MAX;
7815 int_least64_t c4min = INT_LEAST64_MIN;
7816 uint_least8_t d1 = UINT8_C (0xff);
7817 uint_least8_t d1max = UINT_LEAST8_MAX;
7818 uint_least16_t d2 = UINT16_C (0xffff);
7819 uint_least16_t d2max = UINT_LEAST16_MAX;
7820 uint_least32_t d3 = UINT32_C (0xffffffff);
7821 uint_least32_t d3max = UINT_LEAST32_MAX;
7822 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7823 uint_least64_t d4max = UINT_LEAST64_MAX;
7824 int_fast8_t e1 = INT_FAST8_MAX;
7825 int_fast8_t e1min = INT_FAST8_MIN;
7826 int_fast16_t e2 = INT_FAST16_MAX;
7827 int_fast16_t e2min = INT_FAST16_MIN;
7828 int_fast32_t e3 = INT_FAST32_MAX;
7829 int_fast32_t e3min = INT_FAST32_MIN;
7830 int_fast64_t e4 = INT_FAST64_MAX;
7831 int_fast64_t e4min = INT_FAST64_MIN;
7832 uint_fast8_t f1 = UINT_FAST8_MAX;
7833 uint_fast16_t f2 = UINT_FAST16_MAX;
7834 uint_fast32_t f3 = UINT_FAST32_MAX;
7835 uint_fast64_t f4 = UINT_FAST64_MAX;
7837 intptr_t g = INTPTR_MAX;
7838 intptr_t gmin = INTPTR_MIN;
7841 uintptr_t h = UINTPTR_MAX;
7843 intmax_t i = INTMAX_MAX;
7844 uintmax_t j = UINTMAX_MAX;
7846 #include <limits.h> /* for CHAR_BIT */
7847 #define TYPE_MINIMUM(t) \
7848 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7849 #define TYPE_MAXIMUM(t) \
7850 ((t) ((t) 0 < (t) -1 \
7852 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7855 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7856 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7858 /* Detect bug in FreeBSD 6.0 / ia64. */
7859 int check_SIG_ATOMIC:
7860 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7861 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7863 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7865 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7866 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7868 /* Detect bug in mingw. */
7870 WINT_MIN == TYPE_MINIMUM (wint_t)
7871 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7874 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7876 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7878 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7880 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7882 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7885 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7888 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7891 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7893 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7894 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7895 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7896 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7897 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7898 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7899 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7900 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7901 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7902 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7903 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7914 if ac_fn_c_try_compile "$LINENO"; then :
7915 if test "$cross_compiling" = yes; then :
7916 gl_cv_header_working_stdint_h=yes
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7923 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7927 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7928 included before <wchar.h>. */
7940 #define MVAL(macro) MVAL1(macro)
7941 #define MVAL1(expression) #expression
7942 static const char *macro_values[] =
7976 for (mv = macro_values; *mv != NULL; mv++)
7978 const char *value = *mv;
7979 /* Test whether it looks like a cast expression. */
7980 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7981 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7982 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7983 || strncmp (value, "((int)"/*)*/, 6) == 0
7984 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7985 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7986 return mv - macro_values + 1;
7994 if ac_fn_c_try_run "$LINENO"; then :
7995 gl_cv_header_working_stdint_h=yes
7997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7998 conftest.$ac_objext conftest.beam conftest.$ac_ext
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8007 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8009 if test "$gl_cv_header_working_stdint_h" = yes; then
8012 for ac_header in sys/inttypes.h sys/bitypes.h
8014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8015 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8016 eval as_val=\$$as_ac_Header
8017 if test "x$as_val" = x""yes; then :
8018 cat >>confdefs.h <<_ACEOF
8019 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8026 if test $ac_cv_header_sys_inttypes_h = yes; then
8027 HAVE_SYS_INTTYPES_H=1
8029 HAVE_SYS_INTTYPES_H=0
8032 if test $ac_cv_header_sys_bitypes_h = yes; then
8033 HAVE_SYS_BITYPES_H=1
8035 HAVE_SYS_BITYPES_H=0
8041 if test $APPLE_UNIVERSAL_BUILD = 0; then
8044 for gltype in ptrdiff_t size_t ; do
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8046 $as_echo_n "checking for bit size of $gltype... " >&6; }
8047 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8048 $as_echo_n "(cached) " >&6
8050 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8051 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8052 included before <wchar.h>. */
8061 #include <limits.h>"; then :
8067 eval gl_cv_bitsizeof_${gltype}=\$result
8070 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8072 $as_echo "$ac_res" >&6; }
8073 eval result=\$gl_cv_bitsizeof_${gltype}
8074 if test $result = unknown; then
8077 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8078 cat >>confdefs.h <<_ACEOF
8079 #define BITSIZEOF_${GLTYPE} $result
8082 eval BITSIZEOF_${GLTYPE}=\$result
8089 for gltype in sig_atomic_t wchar_t wint_t ; do
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8091 $as_echo_n "checking for bit size of $gltype... " >&6; }
8092 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8093 $as_echo_n "(cached) " >&6
8095 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8096 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8097 included before <wchar.h>. */
8106 #include <limits.h>"; then :
8112 eval gl_cv_bitsizeof_${gltype}=\$result
8115 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8117 $as_echo "$ac_res" >&6; }
8118 eval result=\$gl_cv_bitsizeof_${gltype}
8119 if test $result = unknown; then
8122 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8123 cat >>confdefs.h <<_ACEOF
8124 #define BITSIZEOF_${GLTYPE} $result
8127 eval BITSIZEOF_${GLTYPE}=\$result
8133 for gltype in sig_atomic_t wchar_t wint_t ; do
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8135 $as_echo_n "checking whether $gltype is signed... " >&6; }
8136 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8137 $as_echo_n "(cached) " >&6
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8142 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8143 included before <wchar.h>. */
8152 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8161 if ac_fn_c_try_compile "$LINENO"; then :
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 eval gl_cv_type_${gltype}_signed=\$result
8170 eval ac_res=\$gl_cv_type_${gltype}_signed
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8172 $as_echo "$ac_res" >&6; }
8173 eval result=\$gl_cv_type_${gltype}_signed
8174 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8175 if test "$result" = yes; then
8176 cat >>confdefs.h <<_ACEOF
8177 #define HAVE_SIGNED_${GLTYPE} 1
8180 eval HAVE_SIGNED_${GLTYPE}=1
8182 eval HAVE_SIGNED_${GLTYPE}=0
8187 gl_cv_type_ptrdiff_t_signed=yes
8188 gl_cv_type_size_t_signed=no
8189 if test $APPLE_UNIVERSAL_BUILD = 0; then
8192 for gltype in ptrdiff_t size_t ; do
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8194 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8195 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8196 $as_echo_n "(cached) " >&6
8198 eval gl_cv_type_${gltype}_suffix=no
8199 eval result=\$gl_cv_type_${gltype}_signed
8200 if test "$result" = yes; then
8205 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8208 l) gltype1='long int';;
8209 ll) gltype1='long long int';;
8210 i64) gltype1='__int64';;
8211 u) gltype1='unsigned int';;
8212 ul) gltype1='unsigned long int';;
8213 ull) gltype1='unsigned long long int';;
8214 ui64)gltype1='unsigned __int64';;
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8219 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8220 included before <wchar.h>. */
8230 extern $gltype1 foo;
8239 if ac_fn_c_try_compile "$LINENO"; then :
8240 eval gl_cv_type_${gltype}_suffix=\$glsuf
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 eval result=\$gl_cv_type_${gltype}_suffix
8244 test "$result" != no && break
8247 eval ac_res=\$gl_cv_type_${gltype}_suffix
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8249 $as_echo "$ac_res" >&6; }
8250 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8251 eval result=\$gl_cv_type_${gltype}_suffix
8252 test "$result" = no && result=
8253 eval ${GLTYPE}_SUFFIX=\$result
8254 cat >>confdefs.h <<_ACEOF
8255 #define ${GLTYPE}_SUFFIX $result
8264 for gltype in sig_atomic_t wchar_t wint_t ; do
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8266 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8267 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8268 $as_echo_n "(cached) " >&6
8270 eval gl_cv_type_${gltype}_suffix=no
8271 eval result=\$gl_cv_type_${gltype}_signed
8272 if test "$result" = yes; then
8277 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8280 l) gltype1='long int';;
8281 ll) gltype1='long long int';;
8282 i64) gltype1='__int64';;
8283 u) gltype1='unsigned int';;
8284 ul) gltype1='unsigned long int';;
8285 ull) gltype1='unsigned long long int';;
8286 ui64)gltype1='unsigned __int64';;
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8291 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8292 included before <wchar.h>. */
8302 extern $gltype1 foo;
8311 if ac_fn_c_try_compile "$LINENO"; then :
8312 eval gl_cv_type_${gltype}_suffix=\$glsuf
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 eval result=\$gl_cv_type_${gltype}_suffix
8316 test "$result" != no && break
8319 eval ac_res=\$gl_cv_type_${gltype}_suffix
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8321 $as_echo "$ac_res" >&6; }
8322 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8323 eval result=\$gl_cv_type_${gltype}_suffix
8324 test "$result" = no && result=
8325 eval ${GLTYPE}_SUFFIX=\$result
8326 cat >>confdefs.h <<_ACEOF
8327 #define ${GLTYPE}_SUFFIX $result
8334 if test $BITSIZEOF_WINT_T -lt 32; then
8341 if test -n "$STDINT_H"; then
8342 GL_GENERATE_STDINT_H_TRUE=
8343 GL_GENERATE_STDINT_H_FALSE='#'
8345 GL_GENERATE_STDINT_H_TRUE='#'
8346 GL_GENERATE_STDINT_H_FALSE=
8357 HAVE_DECL_IMAXABS=1;
8358 HAVE_DECL_IMAXDIV=1;
8359 HAVE_DECL_STRTOIMAX=1;
8360 HAVE_DECL_STRTOUMAX=1;
8361 REPLACE_STRTOIMAX=0;
8362 INT32_MAX_LT_INTMAX_MAX=1;
8363 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8364 PRI_MACROS_BROKEN=0;
8365 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8366 UINT32_MAX_LT_UINTMAX_MAX=1;
8367 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8383 if test $gl_cv_have_include_next = yes; then
8384 gl_cv_next_inttypes_h='<'inttypes.h'>'
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8387 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8388 if test "${gl_cv_next_inttypes_h+set}" = set; then :
8389 $as_echo_n "(cached) " >&6
8392 if test $ac_cv_header_inttypes_h = yes; then
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #include <inttypes.h>
8401 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8402 *) gl_absname_cpp="$ac_cpp" ;;
8407 gl_dirsep_regex='[/\\]'
8410 gl_dirsep_regex='\/'
8413 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8415 gl_header_literal_regex=`echo 'inttypes.h' \
8416 |
sed -e "$gl_make_literal_regex_sed"`
8417 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8418 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8423 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8424 sed -n "$gl_absolute_header_sed"`'"'
8426 gl_cv_next_inttypes_h='<'inttypes.h'>'
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8432 $as_echo "$gl_cv_next_inttypes_h" >&6; }
8434 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8436 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8437 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8438 gl_next_as_first_directive='<'inttypes.h'>'
8440 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8441 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8443 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8452 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8453 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8455 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8456 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8457 $as_echo_n "(cached) " >&6
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 #include <inttypes.h>
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473 eval "$as_gl_Symbol=yes"
8475 eval "$as_gl_Symbol=no"
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 eval ac_res=\$$as_gl_Symbol
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8481 $as_echo "$ac_res" >&6; }
8482 eval as_val=\$$as_gl_Symbol
8483 if test "x$as_val" = x""yes; then :
8484 cat >>confdefs.h <<_ACEOF
8485 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
8488 eval ac_cv_have_decl_$gl_func=yes
8494 for ac_header in inttypes.h
8496 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8497 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8498 cat >>confdefs.h <<_ACEOF
8499 #define HAVE_INTTYPES_H 1
8506 if test $ac_cv_header_inttypes_h = yes; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8508 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8509 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8516 #include <inttypes.h>
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 gt_cv_inttypes_pri_broken=no
8532 gt_cv_inttypes_pri_broken=yes
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8538 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8540 if test "$gt_cv_inttypes_pri_broken" = yes; then
8542 cat >>confdefs.h <<_ACEOF
8543 #define PRI_MACROS_BROKEN 1
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8554 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8555 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8559 if test "$cross_compiling" = yes; then :
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8564 #if defined arm || defined __arm || defined __arm__
8569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8570 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8571 gl_cv_cc_double_expbit0="unknown"
8575 if test "${ac_cv_c_bigendian+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8578 ac_cv_c_bigendian=unknown
8579 # See if we're dealing with a universal compiler.
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 #ifndef __APPLE_CC__
8583 not a universal capable compiler
8588 if ac_fn_c_try_compile "$LINENO"; then :
8590 # Check for potential -arch flags. It is not universal unless
8591 # there are at least two -arch flags with different values.
8594 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8595 if test -n "$ac_prev"; then
8597 i?86 | x86_64 | ppc | ppc64)
8598 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8601 ac_cv_c_bigendian=universal
8607 elif test "x$ac_word" = "x-arch"; then
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 if test $ac_cv_c_bigendian = unknown; then
8614 # See if sys/param.h defines the BYTE_ORDER macro.
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 #include <sys/types.h>
8618 #include <sys/param.h>
8623 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8624 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8633 if ac_fn_c_try_compile "$LINENO"; then :
8634 # It does; now see whether it defined to BIG_ENDIAN or not.
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 #include <sys/types.h>
8638 #include <sys/param.h>
8643 #if BYTE_ORDER != BIG_ENDIAN
8651 if ac_fn_c_try_compile "$LINENO"; then :
8652 ac_cv_c_bigendian=yes
8654 ac_cv_c_bigendian=no
8656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 if test $ac_cv_c_bigendian = unknown; then
8661 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8669 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8677 if ac_fn_c_try_compile "$LINENO"; then :
8678 # It does; now see whether it defined to _BIG_ENDIAN or not.
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8694 if ac_fn_c_try_compile "$LINENO"; then :
8695 ac_cv_c_bigendian=yes
8697 ac_cv_c_bigendian=no
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 if test $ac_cv_c_bigendian = unknown; then
8704 # Compile a test program.
8705 if test "$cross_compiling" = yes; then :
8706 # Try to guess by grepping values from an object file.
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8709 short int ascii_mm[] =
8710 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8711 short int ascii_ii[] =
8712 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8713 int use_ascii (int i) {
8714 return ascii_mm[i] + ascii_ii[i];
8716 short int ebcdic_ii[] =
8717 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8718 short int ebcdic_mm[] =
8719 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8720 int use_ebcdic (int i) {
8721 return ebcdic_mm[i] + ebcdic_ii[i];
8728 return use_ascii (foo) == use_ebcdic (foo);
8733 if ac_fn_c_try_compile "$LINENO"; then :
8734 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8735 ac_cv_c_bigendian=yes
8737 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8738 if test "$ac_cv_c_bigendian" = unknown; then
8739 ac_cv_c_bigendian=no
8741 # finding both strings is unlikely to happen, but who knows?
8742 ac_cv_c_bigendian=unknown
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 $ac_includes_default
8755 /* Are we little or big endian? From Harbison&Steele. */
8759 char c[sizeof (long int)];
8762 return u.c[sizeof (long int) - 1] == 1;
8768 if ac_fn_c_try_run "$LINENO"; then :
8769 ac_cv_c_bigendian=no
8771 ac_cv_c_bigendian=yes
8773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8774 conftest.$ac_objext conftest.beam conftest.$ac_ext
8780 case $ac_cv_c_bigendian in #(
8782 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8784 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8787 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8791 gl_cv_cc_double_expbit0="unknown" ;;
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8808 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8809 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8810 static unsigned int ored_words[NWORDS];
8811 static unsigned int anded_words[NWORDS];
8812 static void add_to_ored_words (double x)
8816 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8817 memset (&m, 0, sizeof (memory_double));
8819 for (i = 0; i < NWORDS; i++)
8821 ored_words[i] |= m.word[i];
8822 anded_words[i] &= m.word[i];
8828 FILE *fp = fopen ("conftest.out", "w");
8831 for (j = 0; j < NWORDS; j++)
8832 anded_words[j] = ~ (unsigned int) 0;
8833 add_to_ored_words (0.25);
8834 add_to_ored_words (0.5);
8835 add_to_ored_words (1.0);
8836 add_to_ored_words (2.0);
8837 add_to_ored_words (4.0);
8838 /* Remove bits that are common (e.g. if representation of the first mantissa
8839 bit is explicit). */
8840 for (j = 0; j < NWORDS; j++)
8841 ored_words[j] &= ~anded_words[j];
8842 /* Now find the nonzero word. */
8843 for (j = 0; j < NWORDS; j++)
8844 if (ored_words[j] != 0)
8849 for (i = j + 1; i < NWORDS; i++)
8850 if (ored_words[i] != 0)
8852 fprintf (fp, "unknown");
8853 return (fclose (fp) != 0);
8856 if ((ored_words[j] >> i) & 1)
8858 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8859 return (fclose (fp) != 0);
8862 fprintf (fp, "unknown");
8863 return (fclose (fp) != 0);
8867 if ac_fn_c_try_run "$LINENO"; then :
8868 gl_cv_cc_double_expbit0=`cat conftest.out
`
8870 gl_cv_cc_double_expbit0="unknown"
8872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8873 conftest.$ac_objext conftest.beam conftest.$ac_ext
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8880 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
8881 case "$gl_cv_cc_double_expbit0" in
8883 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
8884 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
8886 cat >>confdefs.h <<_ACEOF
8887 #define DBL_EXPBIT0_WORD $word
8891 cat >>confdefs.h <<_ACEOF
8892 #define DBL_EXPBIT0_BIT $bit
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8900 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8901 if test "${ac_cv_c_bigendian+set}" = set; then :
8902 $as_echo_n "(cached) " >&6
8904 ac_cv_c_bigendian=unknown
8905 # See if we're dealing with a universal compiler.
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 #ifndef __APPLE_CC__
8909 not a universal capable compiler
8914 if ac_fn_c_try_compile "$LINENO"; then :
8916 # Check for potential -arch flags. It is not universal unless
8917 # there are at least two -arch flags with different values.
8920 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8921 if test -n "$ac_prev"; then
8923 i?86 | x86_64 | ppc | ppc64)
8924 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8927 ac_cv_c_bigendian=universal
8933 elif test "x$ac_word" = "x-arch"; then
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 if test $ac_cv_c_bigendian = unknown; then
8940 # See if sys/param.h defines the BYTE_ORDER macro.
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 #include <sys/types.h>
8944 #include <sys/param.h>
8949 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8950 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8959 if ac_fn_c_try_compile "$LINENO"; then :
8960 # It does; now see whether it defined to BIG_ENDIAN or not.
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8963 #include <sys/types.h>
8964 #include <sys/param.h>
8969 #if BYTE_ORDER != BIG_ENDIAN
8977 if ac_fn_c_try_compile "$LINENO"; then :
8978 ac_cv_c_bigendian=yes
8980 ac_cv_c_bigendian=no
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 if test $ac_cv_c_bigendian = unknown; then
8987 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8995 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9003 if ac_fn_c_try_compile "$LINENO"; then :
9004 # It does; now see whether it defined to _BIG_ENDIAN or not.
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9020 if ac_fn_c_try_compile "$LINENO"; then :
9021 ac_cv_c_bigendian=yes
9023 ac_cv_c_bigendian=no
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029 if test $ac_cv_c_bigendian = unknown; then
9030 # Compile a test program.
9031 if test "$cross_compiling" = yes; then :
9032 # Try to guess by grepping values from an object file.
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035 short int ascii_mm[] =
9036 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9037 short int ascii_ii[] =
9038 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9039 int use_ascii (int i) {
9040 return ascii_mm[i] + ascii_ii[i];
9042 short int ebcdic_ii[] =
9043 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9044 short int ebcdic_mm[] =
9045 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9046 int use_ebcdic (int i) {
9047 return ebcdic_mm[i] + ebcdic_ii[i];
9054 return use_ascii (foo) == use_ebcdic (foo);
9059 if ac_fn_c_try_compile "$LINENO"; then :
9060 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9061 ac_cv_c_bigendian=yes
9063 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9064 if test "$ac_cv_c_bigendian" = unknown; then
9065 ac_cv_c_bigendian=no
9067 # finding both strings is unlikely to happen, but who knows?
9068 ac_cv_c_bigendian=unknown
9072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 $ac_includes_default
9081 /* Are we little or big endian? From Harbison&Steele. */
9085 char c[sizeof (long int)];
9088 return u.c[sizeof (long int) - 1] == 1;
9094 if ac_fn_c_try_run "$LINENO"; then :
9095 ac_cv_c_bigendian=no
9097 ac_cv_c_bigendian=yes
9099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9100 conftest.$ac_objext conftest.beam conftest.$ac_ext
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9106 $as_echo "$ac_cv_c_bigendian" >&6; }
9107 case $ac_cv_c_bigendian in #(
9109 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9115 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9119 as_fn_error "unknown endianness
9120 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9129 $as_echo_n "checking for 64-bit off_t... " >&6; }
9130 if test "${gl_cv_type_off_t_64+set}" = set; then :
9131 $as_echo_n "(cached) " >&6
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #include <sys/types.h>
9136 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9146 if ac_fn_c_try_compile "$LINENO"; then :
9147 gl_cv_type_off_t_64=yes
9149 gl_cv_type_off_t_64=no
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9155 $as_echo "$gl_cv_type_off_t_64" >&6; }
9156 if test $gl_cv_type_off_t_64 = no; then
9157 WINDOWS_64_BIT_OFF_T=1
9159 WINDOWS_64_BIT_OFF_T=0
9161 WINDOWS_64_BIT_ST_SIZE=1
9164 WINDOWS_64_BIT_OFF_T=0
9165 WINDOWS_64_BIT_ST_SIZE=0
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9171 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9172 if test "${am_cv_langinfo_codeset+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9177 #include <langinfo.h>
9181 char* cs = nl_langinfo(CODESET); return !cs;
9186 if ac_fn_c_try_link "$LINENO"; then :
9187 am_cv_langinfo_codeset=yes
9189 am_cv_langinfo_codeset=no
9191 rm -f core conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext conftest.$ac_ext
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9196 $as_echo "$am_cv_langinfo_codeset" >&6; }
9197 if test $am_cv_langinfo_codeset = yes; then
9199 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9213 $as_echo_n "checking for working fcntl.h... " >&6; }
9214 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9217 if test "$cross_compiling" = yes; then :
9218 gl_cv_header_working_fcntl_h=cross-compiling
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 #include <sys/types.h>
9223 #include <sys/stat.h>
9225 # include <unistd.h>
9226 #else /* on Windows with MSVC */
9228 # include <stdlib.h>
9229 # defined sleep(n) _sleep ((n) * 1000)
9236 #define O_NOFOLLOW 0
9238 static int const constants[] =
9240 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9241 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9248 int result = !constants;
9251 static char const sym[] = "conftest.sym";
9252 if (symlink ("/dev/null", sym) != 0)
9256 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9263 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9267 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9278 static char const file[] = "confdefs.h";
9279 int fd = open (file, O_RDONLY | O_NOATIME);
9285 if (fstat (fd, &st0) != 0)
9291 if (read (fd, &c, 1) != 1)
9295 if (close (fd) != 0)
9300 if (stat (file, &st1) != 0)
9303 if (st0.st_atime != st1.st_atime)
9315 if ac_fn_c_try_run "$LINENO"; then :
9316 gl_cv_header_working_fcntl_h=yes
9319 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9320 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9321 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9322 *) gl_cv_header_working_fcntl_h='no';;
9325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9326 conftest.$ac_objext conftest.beam conftest.$ac_ext
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9331 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9333 case $gl_cv_header_working_fcntl_h in #(
9334 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9338 cat >>confdefs.h <<_ACEOF
9339 #define HAVE_WORKING_O_NOATIME $ac_val
9343 case $gl_cv_header_working_fcntl_h in #(
9344 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9348 cat >>confdefs.h <<_ACEOF
9349 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9353 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9354 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9360 cat >>confdefs.h <<_ACEOF
9361 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9366 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9367 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9373 #include <features.h>
9374 #ifdef __GNU_LIBRARY__
9375 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9385 $EGREP "Lucky" >/dev/null 2>&1; then :
9386 ac_cv_gnu_library_2_1=yes
9388 ac_cv_gnu_library_2_1=no
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9396 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9398 GLIBC21="$ac_cv_gnu_library_2_1"
9434 REPLACE_UTIMENSAT=0;
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9440 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9441 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9444 rm -f conftest.sym conftest.file
9446 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9447 if test "$cross_compiling" = yes; then :
9449 # Guess yes on glibc systems.
9450 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9451 # If we don't know, assume the worst.
9452 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458 $ac_includes_default
9463 /* Linux will dereference the symlink and fail, as required by
9464 POSIX. That is better in the sense that it means we will not
9465 have to compile and use the lstat wrapper. */
9466 return lstat ("conftest.sym/", &sbuf) == 0;
9472 if ac_fn_c_try_run "$LINENO"; then :
9473 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9475 gl_cv_func_lstat_dereferences_slashed_symlink=no
9477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9478 conftest.$ac_objext conftest.beam conftest.$ac_ext
9482 # If the 'ln -s' command failed, then we probably don't even
9483 # have an lstat function.
9484 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
9486 rm -f conftest.sym conftest.file
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9490 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9491 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9494 cat >>confdefs.h <<_ACEOF
9495 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9503 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9504 if test "${gl_cv_func_malloc_posix+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9514 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9522 if ac_fn_c_try_compile "$LINENO"; then :
9523 gl_cv_func_malloc_posix=yes
9525 gl_cv_func_malloc_posix=no
9527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9531 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9535 for ac_header in stdlib.h
9537 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9538 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9539 cat >>confdefs.h <<_ACEOF
9540 #define HAVE_STDLIB_H 1
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9548 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9549 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9552 if test "$cross_compiling" = yes; then :
9554 # Guess yes on platforms where we know the result.
9555 *-gnu* | freebsd* | netbsd* | openbsd* \
9556 | hpux* | solaris* | cygwin* | mingw*)
9557 ac_cv_func_malloc_0_nonnull=yes ;;
9558 # If we don't know, assume the worst.
9559 *) ac_cv_func_malloc_0_nonnull=no ;;
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9566 # include <stdlib.h>
9574 return ! malloc (0);
9580 if ac_fn_c_try_run "$LINENO"; then :
9581 ac_cv_func_malloc_0_nonnull=yes
9583 ac_cv_func_malloc_0_nonnull=no
9585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9586 conftest.$ac_objext conftest.beam conftest.$ac_ext
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9592 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9593 if test $ac_cv_func_malloc_0_nonnull = yes; then :
9594 gl_cv_func_malloc_0_nonnull=1
9596 gl_cv_func_malloc_0_nonnull=0
9600 cat >>confdefs.h <<_ACEOF
9601 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
9614 GNULIB_MBSNRTOWCS=0;
9617 GNULIB_WCSNRTOMBS=0;
9634 GNULIB_WCSCASECMP=0;
9635 GNULIB_WCSNCASECMP=0;
9685 HAVE_DECL_WCWIDTH=1;
9686 REPLACE_MBSTATE_T=0;
9692 REPLACE_MBSRTOWCS=0;
9693 REPLACE_MBSNRTOWCS=0;
9695 REPLACE_WCSRTOMBS=0;
9696 REPLACE_WCSNRTOMBS=0;
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
9708 $as_echo_n "checking for a traditional japanese locale... " >&6; }
9709 if test "${gt_cv_locale_ja+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9718 #if HAVE_LANGINFO_CODESET
9719 # include <langinfo.h>
9728 /* Check whether the given locale name is recognized by the system. */
9729 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9730 /* On native Windows, setlocale(category, "") looks at the system settings,
9731 not at the environment variables. Also, when an encoding suffix such
9732 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9733 category of the locale to "C". */
9734 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9735 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9738 if (setlocale (LC_ALL, "") == NULL) return 1;
9740 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9741 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9742 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9743 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9744 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9745 some unit tests fail.
9746 On MirBSD 10, when an unsupported locale is specified, setlocale()
9747 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9748 #if HAVE_LANGINFO_CODESET
9750 const char *cs = nl_langinfo (CODESET);
9751 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9752 || strcmp (cs, "UTF-8") == 0)
9757 /* On Cygwin, avoid locale names without encoding suffix, because the
9758 locale_charset() function relies on the encoding suffix. Note that
9759 LC_ALL is set on the command line. */
9760 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9762 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
9764 if (MB_CUR_MAX == 1)
9766 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9767 This excludes the UTF-8 encoding (except on MirBSD). */
9768 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9769 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9770 for (p = buf; *p != '\0'; p++)
9771 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9778 (eval $ac_link) 2>&5
9780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9781 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9783 # Handle native Windows specially, because there setlocale() interprets
9784 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9785 # "fr" or "fra" as "French" or "French_France.1252",
9786 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9787 # "ja" as "Japanese" or "Japanese_Japan.932",
9790 # Note that on native Windows, the Japanese locale is
9791 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
9792 # cannot use it here.
9793 gt_cv_locale_ja=none
9796 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9797 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9798 # configure script would override the LC_ALL setting. Likewise for
9799 # LC_CTYPE, which is also set at the beginning of the configure script.
9800 # Test for the AIX locale name.
9801 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9802 gt_cv_locale_ja=ja_JP
9804 # Test for the locale name with explicit encoding suffix.
9805 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9806 gt_cv_locale_ja=ja_JP.EUC-JP
9808 # Test for the HP-UX, OSF/1, NetBSD locale name.
9809 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9810 gt_cv_locale_ja=ja_JP.eucJP
9812 # Test for the IRIX, FreeBSD locale name.
9813 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9814 gt_cv_locale_ja=ja_JP.EUC
9816 # Test for the Solaris 7 locale name.
9817 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9820 # Special test for NetBSD 1.6.
9821 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
9822 gt_cv_locale_ja=ja_JP.eucJP
9825 gt_cv_locale_ja=none
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
9839 $as_echo "$gt_cv_locale_ja" >&6; }
9840 LOCALE_JA=$gt_cv_locale_ja
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
9847 $as_echo_n "checking for a transitional chinese locale... " >&6; }
9848 if test "${gt_cv_locale_zh_CN+set}" = set; then :
9849 $as_echo_n "(cached) " >&6
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9858 #if HAVE_LANGINFO_CODESET
9859 # include <langinfo.h>
9868 /* Check whether the given locale name is recognized by the system. */
9869 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9870 /* On native Windows, setlocale(category, "") looks at the system settings,
9871 not at the environment variables. Also, when an encoding suffix such
9872 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9873 category of the locale to "C". */
9874 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9875 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9878 if (setlocale (LC_ALL, "") == NULL) return 1;
9880 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9881 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9882 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9883 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9884 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9885 some unit tests fail.
9886 On MirBSD 10, when an unsupported locale is specified, setlocale()
9887 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9888 #if HAVE_LANGINFO_CODESET
9890 const char *cs = nl_langinfo (CODESET);
9891 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9892 || strcmp (cs, "UTF-8") == 0)
9897 /* On Cygwin, avoid locale names without encoding suffix, because the
9898 locale_charset() function relies on the encoding suffix. Note that
9899 LC_ALL is set on the command line. */
9900 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9902 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9903 This excludes the UTF-8 encoding (except on MirBSD). */
9904 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9905 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9906 for (p = buf; *p != '\0'; p++)
9907 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9909 /* Check whether a typical GB18030 multibyte sequence is recognized as a
9910 single wide character. This excludes the GB2312 and GBK encodings. */
9911 if (mblen ("\203\062\332\066", 5) != 4)
9917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9918 (eval $ac_link) 2>&5
9920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9923 # Handle native Windows specially, because there setlocale() interprets
9924 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9925 # "fr" or "fra" as "French" or "French_France.1252",
9926 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9927 # "ja" as "Japanese" or "Japanese_Japan.932",
9930 # Test for the hypothetical native Windows locale name.
9931 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9932 gt_cv_locale_zh_CN=Chinese_China.54936
9935 gt_cv_locale_zh_CN=none
9939 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
9940 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
9941 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
9942 gt_cv_locale_zh_CN=none
9945 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9946 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9947 # configure script would override the LC_ALL setting. Likewise for
9948 # LC_CTYPE, which is also set at the beginning of the configure script.
9949 # Test for the locale name without encoding suffix.
9950 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9951 gt_cv_locale_zh_CN=zh_CN
9953 # Test for the locale name with explicit encoding suffix.
9954 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9955 gt_cv_locale_zh_CN=zh_CN.GB18030
9958 gt_cv_locale_zh_CN=none
9964 # If there was a link error, due to mblen(), the system is so old that
9965 # it certainly doesn't have a chinese locale.
9966 gt_cv_locale_zh_CN=none
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
9972 $as_echo "$gt_cv_locale_zh_CN" >&6; }
9973 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
9979 $as_echo_n "checking for a french Unicode locale... " >&6; }
9980 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9989 #if HAVE_LANGINFO_CODESET
9990 # include <langinfo.h>
9997 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9998 imitates locale dependent behaviour by looking at the environment
9999 variables, and all locales use the UTF-8 encoding. */
10000 #if !(defined __BEOS__ || defined __HAIKU__)
10001 /* Check whether the given locale name is recognized by the system. */
10002 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10003 /* On native Windows, setlocale(category, "") looks at the system settings,
10004 not at the environment variables. Also, when an encoding suffix such
10005 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10006 category of the locale to "C". */
10007 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10008 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10011 if (setlocale (LC_ALL, "") == NULL) return 1;
10013 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10014 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10015 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10016 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10017 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10018 some unit tests fail. */
10019 # if HAVE_LANGINFO_CODESET
10021 const char *cs = nl_langinfo (CODESET);
10022 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10027 /* On Cygwin, avoid locale names without encoding suffix, because the
10028 locale_charset() function relies on the encoding suffix. Note that
10029 LC_ALL is set on the command line. */
10030 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10032 /* Check whether in the abbreviation of the second month, the second
10033 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10034 two bytes long, with UTF-8 encoding. */
10035 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10036 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10037 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10040 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10041 /* Check whether the decimal separator is a comma.
10042 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10043 are nl_langinfo(RADIXCHAR) are both ".". */
10044 if (localeconv () ->decimal_point[0] != ',') return 1;
10050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10051 (eval $ac_link) 2>&5
10053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10054 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10056 # Handle native Windows specially, because there setlocale() interprets
10057 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10058 # "fr" or "fra" as "French" or "French_France.1252",
10059 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10060 # "ja" as "Japanese" or "Japanese_Japan.932",
10063 # Test for the hypothetical native Windows locale name.
10064 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10065 gt_cv_locale_fr_utf8=French_France.65001
10068 gt_cv_locale_fr_utf8=none
10072 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10073 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10074 # configure script would override the LC_ALL setting. Likewise for
10075 # LC_CTYPE, which is also set at the beginning of the configure script.
10076 # Test for the usual locale name.
10077 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10078 gt_cv_locale_fr_utf8=fr_FR
10080 # Test for the locale name with explicit encoding suffix.
10081 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10082 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10084 # Test for the Solaris 7 locale name.
10085 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10086 gt_cv_locale_fr_utf8=fr.UTF-8
10089 gt_cv_locale_fr_utf8=none
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10100 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10101 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10108 $as_echo_n "checking for a traditional french locale... " >&6; }
10109 if test "${gt_cv_locale_fr+set}" = set; then :
10110 $as_echo_n "(cached) " >&6
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10116 #include <locale.h>
10118 #if HAVE_LANGINFO_CODESET
10119 # include <langinfo.h>
10121 #include <stdlib.h>
10122 #include <string.h>
10126 /* Check whether the given locale name is recognized by the system. */
10127 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10128 /* On native Windows, setlocale(category, "") looks at the system settings,
10129 not at the environment variables. Also, when an encoding suffix such
10130 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10131 category of the locale to "C". */
10132 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10133 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10136 if (setlocale (LC_ALL, "") == NULL) return 1;
10138 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10139 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10140 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10141 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10142 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10143 some unit tests fail.
10144 On MirBSD 10, when an unsupported locale is specified, setlocale()
10145 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10146 #if HAVE_LANGINFO_CODESET
10148 const char *cs = nl_langinfo (CODESET);
10149 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10150 || strcmp (cs, "UTF-8") == 0)
10155 /* On Cygwin, avoid locale names without encoding suffix, because the
10156 locale_charset() function relies on the encoding suffix. Note that
10157 LC_ALL is set on the command line. */
10158 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10160 /* Check whether in the abbreviation of the second month, the second
10161 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10162 one byte long. This excludes the UTF-8 encoding. */
10163 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10164 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10165 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10166 /* Check whether the decimal separator is a comma.
10167 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10168 are nl_langinfo(RADIXCHAR) are both ".". */
10169 if (localeconv () ->decimal_point[0] != ',') return 1;
10175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10176 (eval $ac_link) 2>&5
10178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10179 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10181 # Handle native Windows specially, because there setlocale() interprets
10182 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10183 # "fr" or "fra" as "French" or "French_France.1252",
10184 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10185 # "ja" as "Japanese" or "Japanese_Japan.932",
10188 # Test for the native Windows locale name.
10189 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10190 gt_cv_locale_fr=French_France.1252
10193 gt_cv_locale_fr=none
10197 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10198 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10199 # configure script would override the LC_ALL setting. Likewise for
10200 # LC_CTYPE, which is also set at the beginning of the configure script.
10201 # Test for the usual locale name.
10202 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10203 gt_cv_locale_fr=fr_FR
10205 # Test for the locale name with explicit encoding suffix.
10206 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10207 gt_cv_locale_fr=fr_FR.ISO-8859-1
10209 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10210 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10211 gt_cv_locale_fr=fr_FR.ISO8859-1
10213 # Test for the HP-UX locale name.
10214 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10215 gt_cv_locale_fr=fr_FR.iso88591
10217 # Test for the Solaris 7 locale name.
10218 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10222 gt_cv_locale_fr=none
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10235 $as_echo "$gt_cv_locale_fr" >&6; }
10236 LOCALE_FR=$gt_cv_locale_fr
10250 GNULIB_RAWMEMCHR=0;
10253 GNULIB_STRCHRNUL=0;
10261 GNULIB_STRCASESTR=0;
10268 GNULIB_MBSCASECMP=0;
10269 GNULIB_MBSNCASECMP=0;
10270 GNULIB_MBSPCASECMP=0;
10271 GNULIB_MBSCASESTR=0;
10278 GNULIB_STRERROR_R=0;
10279 GNULIB_STRSIGNAL=0;
10280 GNULIB_STRVERSCMP=0;
10285 HAVE_DECL_MEMMEM=1;
10287 HAVE_DECL_MEMRCHR=1;
10292 HAVE_DECL_STRDUP=1;
10293 HAVE_DECL_STRNDUP=1;
10294 HAVE_DECL_STRNLEN=1;
10298 HAVE_DECL_STRTOK_R=1;
10299 HAVE_DECL_STRERROR_R=1;
10300 HAVE_DECL_STRSIGNAL=1;
10307 REPLACE_STRCASESTR=0;
10308 REPLACE_STRCHRNUL=0;
10309 REPLACE_STRERROR=0;
10310 REPLACE_STRERROR_R=0;
10314 REPLACE_STRSIGNAL=0;
10315 REPLACE_STRTOK_R=0;
10316 UNDEFINE_STRTOK_R=0;
10322 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10323 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10324 # irrelevant for anonymous mappings.
10325 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10326 if test "x$ac_cv_func_mmap" = x""yes; then :
10333 # Try to allow MAP_ANONYMOUS.
10334 gl_have_mmap_anonymous=no
10335 if test $gl_have_mmap = yes; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10337 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10341 #include <sys/mman.h>
10342 #ifdef MAP_ANONYMOUS
10343 I cannot identify this map
10347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10348 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10349 gl_have_mmap_anonymous=yes
10353 if test $gl_have_mmap_anonymous != yes; then
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10357 #include <sys/mman.h>
10359 I cannot identify this map
10363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10364 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10366 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10368 gl_have_mmap_anonymous=yes
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10374 $as_echo "$gl_have_mmap_anonymous" >&6; }
10375 if test $gl_have_mmap_anonymous = yes; then
10377 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10387 if test $HAVE_MEMCHR = 1; then
10388 # Detect platform-specific bugs in some versions of glibc:
10389 # memchr should not dereference anything with length 0
10390 # http://bugzilla.redhat.com/499689
10391 # memchr should not dereference overestimated length after a match
10392 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10393 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10394 # Assume that memchr works on platforms that lack mprotect.
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10396 $as_echo_n "checking whether memchr works... " >&6; }
10397 if test "${gl_cv_func_memchr_works+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10400 if test "$cross_compiling" = yes; then :
10401 gl_cv_func_memchr_works="guessing no"
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10406 #include <string.h>
10407 #if HAVE_SYS_MMAN_H
10408 # include <fcntl.h>
10409 # include <unistd.h>
10410 # include <sys/types.h>
10411 # include <sys/mman.h>
10413 # define MAP_FILE 0
10422 char *fence = NULL;
10423 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10424 # if HAVE_MAP_ANONYMOUS
10425 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10427 # else /* !HAVE_MAP_ANONYMOUS */
10428 const int flags = MAP_FILE | MAP_PRIVATE;
10429 int fd = open ("/dev/zero", O_RDONLY, 0666);
10433 int pagesize = getpagesize ();
10435 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10437 if (two_pages != (char *)(-1)
10438 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10439 fence = two_pages + pagesize;
10444 if (memchr (fence, 0, 0))
10446 strcpy (fence - 9, "12345678");
10447 if (memchr (fence - 9, 0, 79) != fence - 1)
10449 if (memchr (fence - 1, 0, 3) != fence - 1)
10458 if ac_fn_c_try_run "$LINENO"; then :
10459 gl_cv_func_memchr_works=yes
10461 gl_cv_func_memchr_works=no
10463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10464 conftest.$ac_objext conftest.beam conftest.$ac_ext
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10469 $as_echo "$gl_cv_func_memchr_works" >&6; }
10470 if test "$gl_cv_func_memchr_works" != yes; then
10475 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10476 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10482 cat >>confdefs.h <<_ACEOF
10483 #define HAVE_DECL_MEMMEM $ac_have_decl
10490 for ac_func in memmem
10492 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10493 if test "x$ac_cv_func_memmem" = x""yes; then :
10494 cat >>confdefs.h <<_ACEOF
10495 #define HAVE_MEMMEM 1
10501 if test $ac_cv_func_memmem = yes; then
10507 if test $ac_cv_have_decl_memmem = no; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10511 $as_echo_n "checking whether memmem works... " >&6; }
10512 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10515 if test "$cross_compiling" = yes; then :
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10519 #ifdef __GNU_LIBRARY__
10520 #include <features.h>
10521 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10522 || __GLIBC_MINOR__ > 12)) \
10523 || (__GLIBC__ > 2)) \
10524 || defined __UCLIBC__
10527 #elif defined __CYGWIN__
10528 #include <cygwin/version.h>
10529 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10538 $EGREP "Lucky user" >/dev/null 2>&1; then :
10539 gl_cv_func_memmem_works_always="guessing yes"
10541 gl_cv_func_memmem_works_always="guessing no"
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10550 #include <string.h> /* for memmem */
10551 #define P "_EF_BF_BD"
10552 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10553 #define NEEDLE P P P P P
10560 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10562 /* Check for empty needle behavior. */
10564 const char *haystack = "AAA";
10565 if (memmem (haystack, 3, NULL, 0) != haystack)
10574 if ac_fn_c_try_run "$LINENO"; then :
10575 gl_cv_func_memmem_works_always=yes
10577 gl_cv_func_memmem_works_always=no
10579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10580 conftest.$ac_objext conftest.beam conftest.$ac_ext
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10586 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10587 case "$gl_cv_func_memmem_works_always" in
10605 GNULIB_FPRINTF_POSIX=0;
10621 GNULIB_OBSTACK_PRINTF=0;
10622 GNULIB_OBSTACK_PRINTF_POSIX=0;
10627 GNULIB_PRINTF_POSIX=0;
10636 GNULIB_SPRINTF_POSIX=0;
10637 GNULIB_STDIO_H_NONBLOCKING=0;
10638 GNULIB_STDIO_H_SIGPIPE=0;
10640 GNULIB_VASPRINTF=0;
10645 GNULIB_VFPRINTF_POSIX=0;
10647 GNULIB_VPRINTF_POSIX=0;
10648 GNULIB_VSNPRINTF=0;
10649 GNULIB_VSPRINTF_POSIX=0;
10650 HAVE_DECL_FPURGE=1;
10651 HAVE_DECL_FSEEKO=1;
10652 HAVE_DECL_FTELLO=1;
10653 HAVE_DECL_GETDELIM=1;
10654 HAVE_DECL_GETLINE=1;
10655 HAVE_DECL_OBSTACK_PRINTF=1;
10656 HAVE_DECL_SNPRINTF=1;
10657 HAVE_DECL_VSNPRINTF=1;
10678 REPLACE_GETDELIM=0;
10680 REPLACE_OBSTACK_PRINTF=0;
10686 REPLACE_RENAMEAT=0;
10687 REPLACE_SNPRINTF=0;
10689 REPLACE_STDIO_READ_FUNCS=0;
10690 REPLACE_STDIO_WRITE_FUNCS=0;
10692 REPLACE_VASPRINTF=0;
10693 REPLACE_VDPRINTF=0;
10694 REPLACE_VFPRINTF=0;
10696 REPLACE_VSNPRINTF=0;
10697 REPLACE_VSPRINTF=0;
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10702 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10703 if test "${ac_cv_header_stdbool_h+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10709 #include <stdbool.h>
10711 "error: bool is not defined"
10714 "error: false is not defined"
10717 "error: false is not 0"
10720 "error: true is not defined"
10723 "error: true is not 1"
10725 #ifndef __bool_true_false_are_defined
10726 "error: __bool_true_false_are_defined is not defined"
10729 struct s { _Bool s: 1; _Bool t; } s;
10731 char a[true == 1 ? 1 : -1];
10732 char b[false == 0 ? 1 : -1];
10733 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10734 char d[(bool) 0.5 == true ? 1 : -1];
10735 /* See body of main program for 'e'. */
10736 char f[(_Bool) 0.0 == false ? 1 : -1];
10738 char h[sizeof (_Bool)];
10739 char i[sizeof s.t];
10740 enum { j = false, k = true, l = false * true, m = true * 256 };
10741 /* The following fails for
10742 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10744 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10745 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10746 /* Catch a bug in an HP-UX C compiler. See
10747 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10748 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10760 /* Refer to every declared value, to avoid compiler optimizations. */
10761 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10762 + !m + !n + !o + !p + !q + !pq);
10768 if ac_fn_c_try_compile "$LINENO"; then :
10769 ac_cv_header_stdbool_h=yes
10771 ac_cv_header_stdbool_h=no
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10776 $as_echo "$ac_cv_header_stdbool_h" >&6; }
10777 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10778 if test "x$ac_cv_type__Bool" = x""yes; then :
10780 cat >>confdefs.h <<_ACEOF
10781 #define HAVE__BOOL 1
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10794 $as_echo_n "checking for wchar_t... " >&6; }
10795 if test "${gt_cv_c_wchar_t+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10800 #include <stddef.h>
10801 wchar_t foo = (wchar_t)'\0';
10810 if ac_fn_c_try_compile "$LINENO"; then :
10811 gt_cv_c_wchar_t=yes
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10818 $as_echo "$gt_cv_c_wchar_t" >&6; }
10819 if test $gt_cv_c_wchar_t = yes; then
10821 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10826 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10827 if test "${ac_cv_c_restrict+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10830 ac_cv_c_restrict=no
10831 # The order here caters to the fact that C++ does not require restrict.
10832 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10835 typedef int * int_ptr;
10836 int foo (int_ptr $ac_kw ip) {
10843 int * $ac_kw t = s;
10850 if ac_fn_c_try_compile "$LINENO"; then :
10851 ac_cv_c_restrict=$ac_kw
10853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10854 test "$ac_cv_c_restrict" != no && break
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10859 $as_echo "$ac_cv_c_restrict" >&6; }
10861 case $ac_cv_c_restrict in
10863 no) $as_echo "#define restrict /**/" >>confdefs.h
10865 *) cat >>confdefs.h <<_ACEOF
10866 #define restrict $ac_cv_c_restrict
10882 if test $gl_cv_have_include_next = yes; then
10883 gl_cv_next_string_h='<'string.h'>'
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
10886 $as_echo_n "checking absolute name of <string.h>... " >&6; }
10887 if test "${gl_cv_next_string_h+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893 #include <string.h>
10897 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10898 *) gl_absname_cpp="$ac_cpp" ;;
10903 gl_dirsep_regex='[/\\]'
10906 gl_dirsep_regex='\/'
10909 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10911 gl_header_literal_regex=`echo 'string.h' \
10912 |
sed -e "$gl_make_literal_regex_sed"`
10913 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10914 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10919 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10920 sed -n "$gl_absolute_header_sed"`'"'
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
10925 $as_echo "$gl_cv_next_string_h" >&6; }
10927 NEXT_STRING_H=$gl_cv_next_string_h
10929 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10930 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10931 gl_next_as_first_directive='<'string.h'>'
10933 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10934 gl_next_as_first_directive=$gl_cv_next_string_h
10936 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
10943 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
10944 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10946 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10947 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10948 $as_echo_n "(cached) " >&6
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952 #include <string.h>
10963 if ac_fn_c_try_compile "$LINENO"; then :
10964 eval "$as_gl_Symbol=yes"
10966 eval "$as_gl_Symbol=no"
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 eval ac_res=\$$as_gl_Symbol
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10972 $as_echo "$ac_res" >&6; }
10973 eval as_val=\$$as_gl_Symbol
10974 if test "x$as_val" = x""yes; then :
10975 cat >>confdefs.h <<_ACEOF
10976 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
10979 eval ac_cv_have_decl_$gl_func=yes
10987 if test "$gl_cv_func_memchr_works" != yes; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
10991 $as_echo_n "checking whether strstr works... " >&6; }
10992 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10995 if test "$cross_compiling" = yes; then :
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10999 #ifdef __GNU_LIBRARY__
11000 #include <features.h>
11001 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11002 || defined __UCLIBC__
11005 #elif defined __CYGWIN__
11006 #include <cygwin/version.h>
11007 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11016 $EGREP "Lucky user" >/dev/null 2>&1; then :
11017 gl_cv_func_strstr_works_always="guessing yes"
11019 gl_cv_func_strstr_works_always="guessing no"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11028 #include <string.h> /* for strstr */
11029 #define P "_EF_BF_BD"
11030 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11031 #define NEEDLE P P P P P
11036 return !!strstr (HAYSTACK, NEEDLE);
11042 if ac_fn_c_try_run "$LINENO"; then :
11043 gl_cv_func_strstr_works_always=yes
11045 gl_cv_func_strstr_works_always=no
11047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11048 conftest.$ac_objext conftest.beam conftest.$ac_ext
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11054 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11055 case "$gl_cv_func_strstr_works_always" in
11063 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11064 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11070 cat >>confdefs.h <<_ACEOF
11071 #define HAVE_DECL_STRTOK_R $ac_have_decl
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11075 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11076 if test "${ac_cv_header_stat_broken+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 #include <sys/types.h>
11082 #include <sys/stat.h>
11084 #if defined S_ISBLK && defined S_IFDIR
11085 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11088 #if defined S_ISBLK && defined S_IFCHR
11089 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11092 #if defined S_ISLNK && defined S_IFREG
11093 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11096 #if defined S_ISSOCK && defined S_IFREG
11097 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11101 if ac_fn_c_try_compile "$LINENO"; then :
11102 ac_cv_header_stat_broken=no
11104 ac_cv_header_stat_broken=yes
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11109 $as_echo "$ac_cv_header_stat_broken" >&6; }
11110 if test $ac_cv_header_stat_broken = yes; then
11112 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11118 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11119 if test "x$ac_cv_type_mode_t" = x""yes; then :
11123 cat >>confdefs.h <<_ACEOF
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11130 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11131 if test -z "$MKDIR_P"; then
11132 if test "${ac_cv_path_mkdir+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11139 test -z "$as_dir" && as_dir=.
11140 for ac_prog in mkdir gmkdir; do
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11143 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11144 'mkdir (GNU coreutils) '* | \
11145 'mkdir (coreutils) '* | \
11146 'mkdir (fileutils) '4.1*)
11147 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11157 if test "${ac_cv_path_mkdir+set}" = set; then
11158 MKDIR_P="$ac_cv_path_mkdir -p"
11160 # As a last resort, use the slow shell script. Don't cache a
11161 # value for MKDIR_P within a source directory, because that will
11162 # break other packages using the cache if that directory is
11163 # removed, or if the value is a relative name.
11164 test -d ./--version && rmdir ./--version
11165 MKDIR_P="$ac_install_sh -d"
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11169 $as_echo "$MKDIR_P" >&6; }
11173 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11174 if test "x$ac_cv_type_pid_t" = x""yes; then :
11178 cat >>confdefs.h <<_ACEOF
11192 GNULIB_NANOSLEEP=0;
11196 HAVE_DECL_LOCALTIME_R=1;
11200 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11201 REPLACE_MKTIME=GNULIB_PORTCHECK;
11202 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11203 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11210 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11211 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11221 static struct timespec x; x.tv_sec = x.tv_nsec;
11226 if ac_fn_c_try_compile "$LINENO"; then :
11227 gl_cv_sys_struct_timespec_in_time_h=yes
11229 gl_cv_sys_struct_timespec_in_time_h=no
11231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11234 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11236 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11237 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11238 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
11239 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11240 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11243 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11244 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <sys/time.h>
11254 static struct timespec x; x.tv_sec = x.tv_nsec;
11259 if ac_fn_c_try_compile "$LINENO"; then :
11260 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11262 gl_cv_sys_struct_timespec_in_sys_time_h=no
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11267 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11268 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11269 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11272 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11273 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11278 #include <pthread.h>
11283 static struct timespec x; x.tv_sec = x.tv_nsec;
11288 if ac_fn_c_try_compile "$LINENO"; then :
11289 gl_cv_sys_struct_timespec_in_pthread_h=yes
11291 gl_cv_sys_struct_timespec_in_pthread_h=no
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11296 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11297 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11298 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11317 if test $gl_cv_have_include_next = yes; then
11318 gl_cv_next_time_h='<'time.h'>'
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11321 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11322 if test "${gl_cv_next_time_h+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11332 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11333 *) gl_absname_cpp="$ac_cpp" ;;
11338 gl_dirsep_regex='[/\\]'
11341 gl_dirsep_regex='\/'
11344 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11346 gl_header_literal_regex=`echo 'time.h' \
11347 |
sed -e "$gl_make_literal_regex_sed"`
11348 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11349 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11354 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11355 sed -n "$gl_absolute_header_sed"`'"'
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11360 $as_echo "$gl_cv_next_time_h" >&6; }
11362 NEXT_TIME_H=$gl_cv_next_time_h
11364 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11365 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11366 gl_next_as_first_directive='<'time.h'>'
11368 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11369 gl_next_as_first_directive=$gl_cv_next_time_h
11371 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11380 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11381 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11384 gl_cv_header_wchar_h_correct_inline=yes
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11388 #define wcstod renamed_wcstod
11389 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11391 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11392 included before <wchar.h>. */
11393 #include <stddef.h>
11397 extern int zero (void);
11398 int main () { return zero(); }
11401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11402 (eval $ac_compile) 2>&5
11404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11405 test $ac_status = 0; }; then
11406 mv conftest.$ac_objext conftest1.$ac_objext
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11410 #define wcstod renamed_wcstod
11411 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11413 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11414 included before <wchar.h>. */
11415 #include <stddef.h>
11419 int zero (void) { return 0; }
11422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11423 (eval $ac_compile) 2>&5
11425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11426 test $ac_status = 0; }; then
11427 mv conftest.$ac_objext conftest2.$ac_objext
11428 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11431 gl_cv_header_wchar_h_correct_inline=no
11435 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11439 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11440 if test $gl_cv_header_wchar_h_correct_inline = no; then
11441 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11442 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11443 C99 mode. You have four options:
11444 - Add the flag -fgnu89-inline to CC and reconfigure, or
11445 - Fix your include files, using parts of
11446 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11447 - Use a gcc version older than 4.3, or
11448 - Don't use the flags -std=c99 or -std=gnu99.
11449 Configuration aborted." "$LINENO" 5
11456 if test $ac_cv_header_features_h = yes; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11465 $as_echo_n "checking for wint_t... " >&6; }
11466 if test "${gt_cv_c_wint_t+set}" = set; then :
11467 $as_echo_n "(cached) " >&6
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11472 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11474 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11475 before <wchar.h>. */
11476 #include <stddef.h>
11480 wint_t foo = (wchar_t)'\0';
11489 if ac_fn_c_try_compile "$LINENO"; then :
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11497 $as_echo "$gt_cv_c_wint_t" >&6; }
11498 if test $gt_cv_c_wint_t = yes; then
11500 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11509 GNULIB_TOWCTRANS=0;
11513 REPLACE_ISWBLANK=0;
11519 GL_COND_LIBTOOL_TRUE=
11520 GL_COND_LIBTOOL_FALSE='#'
11522 GL_COND_LIBTOOL_TRUE='#'
11523 GL_COND_LIBTOOL_FALSE=
11526 gl_cond_libtool=false
11529 gl_m4_base='import/m4'
11539 gl_source_base='import'
11542 if test $ac_cv_func_alloca_works = no; then
11546 # Define an additional variable used in the Makefile substitution.
11547 if test $ac_cv_working_alloca_h = yes; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
11549 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11550 if test "${gl_cv_rpl_alloca+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11557 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11563 $EGREP "Need own alloca" >/dev/null 2>&1; then :
11564 gl_cv_rpl_alloca=yes
11566 gl_cv_rpl_alloca=no
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
11573 $as_echo "$gl_cv_rpl_alloca" >&6; }
11574 if test $gl_cv_rpl_alloca = yes; then
11576 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11586 if test -n "$ALLOCA_H"; then
11587 GL_GENERATE_ALLOCA_H_TRUE=
11588 GL_GENERATE_ALLOCA_H_FALSE='#'
11590 GL_GENERATE_ALLOCA_H_TRUE='#'
11591 GL_GENERATE_ALLOCA_H_FALSE=
11598 if test $ac_cv_func_canonicalize_file_name = no; then
11599 HAVE_CANONICALIZE_FILE_NAME=0
11600 if test $ac_cv_func_realpath = no; then
11603 case "$gl_cv_func_realpath_works" in
11605 *) REPLACE_REALPATH=1 ;;
11609 case "$gl_cv_func_realpath_works" in
11613 REPLACE_CANONICALIZE_FILE_NAME=1
11619 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
11628 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
11633 cat >>confdefs.h <<_ACEOF
11634 #define GNULIB_CANONICALIZE_LGPL 1
11643 GNULIB_CANONICALIZE_FILE_NAME=1
11649 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
11664 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
11679 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
11684 if test "x$datarootdir" = x; then
11685 datarootdir='${datadir}'
11688 if test "x$docdir" = x; then
11689 docdir='${datarootdir}/doc/${PACKAGE}'
11692 if test "x$htmldir" = x; then
11693 htmldir='${docdir}'
11696 if test "x$dvidir" = x; then
11700 if test "x$pdfdir" = x; then
11704 if test "x$psdir" = x; then
11708 if test "x$lispdir" = x; then
11709 lispdir='${datarootdir}/emacs/site-lisp'
11712 if test "x$localedir" = x; then
11713 localedir='${datarootdir}/locale'
11717 pkglibexecdir='${libexecdir}/${PACKAGE}'
11732 if test $gl_cv_have_include_next = yes; then
11733 gl_cv_next_dirent_h='<'dirent.h'>'
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
11736 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
11737 if test "${gl_cv_next_dirent_h+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11741 if test $ac_cv_header_dirent_h = yes; then
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746 #include <dirent.h>
11750 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11751 *) gl_absname_cpp="$ac_cpp" ;;
11756 gl_dirsep_regex='[/\\]'
11759 gl_dirsep_regex='\/'
11762 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11764 gl_header_literal_regex=`echo 'dirent.h' \
11765 |
sed -e "$gl_make_literal_regex_sed"`
11766 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11767 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11772 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11773 sed -n "$gl_absolute_header_sed"`'"'
11775 gl_cv_next_dirent_h='<'dirent.h'>'
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
11781 $as_echo "$gl_cv_next_dirent_h" >&6; }
11783 NEXT_DIRENT_H=$gl_cv_next_dirent_h
11785 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11787 gl_next_as_first_directive='<'dirent.h'>'
11789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11790 gl_next_as_first_directive=$gl_cv_next_dirent_h
11792 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
11797 if test $ac_cv_header_dirent_h = yes; then
11805 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
11806 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11808 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11809 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11810 $as_echo_n "(cached) " >&6
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 #include <dirent.h>
11825 if ac_fn_c_try_compile "$LINENO"; then :
11826 eval "$as_gl_Symbol=yes"
11828 eval "$as_gl_Symbol=no"
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11832 eval ac_res=\$$as_gl_Symbol
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11834 $as_echo "$ac_res" >&6; }
11835 eval as_val=\$$as_gl_Symbol
11836 if test "x$as_val" = x""yes; then :
11837 cat >>confdefs.h <<_ACEOF
11838 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11841 eval ac_cv_have_decl_$gl_func=yes
11851 for ac_func in dirfd
11853 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
11854 if test "x$ac_cv_func_dirfd" = x""yes; then :
11855 cat >>confdefs.h <<_ACEOF
11856 #define HAVE_DIRFD 1
11862 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11863 #include <dirent.h>
11865 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
11871 cat >>confdefs.h <<_ACEOF
11872 #define HAVE_DECL_DIRFD $ac_have_decl
11875 if test $ac_cv_have_decl_dirfd = no; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
11880 $as_echo_n "checking whether dirfd is a macro... " >&6; }
11881 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11887 #include <sys/types.h>
11888 #include <dirent.h>
11890 dirent_header_defines_dirfd
11893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11894 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
11895 gl_cv_func_dirfd_macro=yes
11897 gl_cv_func_dirfd_macro=no
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
11903 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
11905 # Use the replacement only if we have no function or macro with that name.
11906 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11907 if test $ac_cv_have_decl_dirfd = yes; then
11908 # If the system declares dirfd already, let's declare rpl_dirfd instead.
11913 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11922 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
11926 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
11927 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11931 dirfd_save_CFLAGS=$CFLAGS
11932 for ac_expr in d_fd dd_fd; do
11934 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h. */
11938 #include <sys/types.h>
11939 #include <dirent.h>
11943 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
11948 if ac_fn_c_try_compile "$LINENO"; then :
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 CFLAGS=$dirfd_save_CFLAGS
11954 test "$dir_fd_found" = yes && break
11956 test "$dir_fd_found" = yes || ac_expr=no_such_member
11958 gl_cv_sys_dir_fd_member_name=$ac_expr
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
11963 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
11964 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
11966 cat >>confdefs.h <<_ACEOF
11967 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
11985 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
11996 $as_echo_n "checking whether // is distinct from /... " >&6; }
11997 if test "${gl_cv_double_slash_root+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
12000 if test x"$cross_compiling" = xyes ; then
12001 # When cross-compiling, there is no way to tell whether // is special
12002 # short of a list of hosts. However, the only known hosts to date
12003 # that have a distinct // are Apollo DomainOS (too old to port to),
12004 # Cygwin, and z/OS. If anyone knows of another system for which // has
12005 # special semantics and is distinct from /, please report it to
12006 # <bug-gnulib@gnu.org>.
12008 *-cygwin | i370-ibm-openedition)
12009 gl_cv_double_slash_root=yes ;;
12011 # Be optimistic and assume that / and // are the same when we
12013 gl_cv_double_slash_root='unknown, assuming no' ;;
12016 set x `ls -di / // 2>/dev
/null
`
12017 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12018 gl_cv_double_slash_root=no
12020 gl_cv_double_slash_root=yes
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12025 $as_echo "$gl_cv_double_slash_root" >&6; }
12026 if test "$gl_cv_double_slash_root" = yes; then
12028 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12038 REPLACE_FLOAT_LDBL=0
12040 aix* | beos* | openbsd* | mirbsd* | irix*)
12044 case "$host_cpu" in
12049 # On x86_64 systems, the C compiler may still be generating
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12053 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
12057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12058 $EGREP "yes" >/dev/null 2>&1; then :
12069 case "$host_cpu" in
12077 aix* | freebsd* | linux*)
12078 if test -n "$FLOAT_H"; then
12079 REPLACE_FLOAT_LDBL=1
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
12086 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
12087 if test "${gl_cv_func_itold_works+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12091 if test "$cross_compiling" = yes; then :
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 #if defined __LP64__ || defined __arch64__
12100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12101 $EGREP "yes" >/dev/null 2>&1; then :
12102 gl_cv_func_itold_works="guessing no"
12104 gl_cv_func_itold_works="guessing yes"
12109 *) gl_cv_func_itold_works="guessing yes" ;;
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12117 volatile long double ld;
12126 if ac_fn_c_try_run "$LINENO"; then :
12127 gl_cv_func_itold_works=yes
12129 gl_cv_func_itold_works=no
12131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12132 conftest.$ac_objext conftest.beam conftest.$ac_ext
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
12138 $as_echo "$gl_cv_func_itold_works" >&6; }
12139 case "$gl_cv_func_itold_works" in
12146 if test -n "$FLOAT_H"; then
12155 if test $gl_cv_have_include_next = yes; then
12156 gl_cv_next_float_h='<'float.h'>'
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12159 $as_echo_n "checking absolute name of <float.h>... " >&6; }
12160 if test "${gl_cv_next_float_h+set}" = set; then :
12161 $as_echo_n "(cached) " >&6
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12170 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12171 *) gl_absname_cpp="$ac_cpp" ;;
12176 gl_dirsep_regex='[/\\]'
12179 gl_dirsep_regex='\/'
12182 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12184 gl_header_literal_regex=`echo 'float.h' \
12185 |
sed -e "$gl_make_literal_regex_sed"`
12186 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12187 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12192 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12193 sed -n "$gl_absolute_header_sed"`'"'
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12198 $as_echo "$gl_cv_next_float_h" >&6; }
12200 NEXT_FLOAT_H=$gl_cv_next_float_h
12202 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12204 gl_next_as_first_directive='<'float.h'>'
12206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12207 gl_next_as_first_directive=$gl_cv_next_float_h
12209 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12216 if test -n "$FLOAT_H"; then
12217 GL_GENERATE_FLOAT_H_TRUE=
12218 GL_GENERATE_FLOAT_H_FALSE='#'
12220 GL_GENERATE_FLOAT_H_TRUE='#'
12221 GL_GENERATE_FLOAT_H_FALSE=
12226 if test $REPLACE_FLOAT_LDBL = 1; then
12235 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
12238 if test $REPLACE_ITOLD = 1; then
12247 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
12256 gl_fnmatch_required_lowercase=`
12257 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
12259 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
12261 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
12262 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
12263 $as_echo_n "(cached) " >&6
12265 if test $gl_fnmatch_required = GNU; then
12266 gl_fnmatch_gnu_start=
12267 gl_fnmatch_gnu_end=
12269 gl_fnmatch_gnu_start='#if 0'
12270 gl_fnmatch_gnu_end='#endif'
12272 if test "$cross_compiling" = yes; then :
12273 eval "$gl_fnmatch_cache_var=\"guessing no\""
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12277 #include <fnmatch.h>
12279 y (char const *pattern, char const *string, int flags)
12281 return fnmatch (pattern, string, flags) == 0;
12284 n (char const *pattern, char const *string, int flags)
12286 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
12292 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
12293 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
12294 static char const A_1[] = { 'A' - 1, 0 };
12295 static char const A01[] = { 'A' + 1, 0 };
12296 static char const a_1[] = { 'a' - 1, 0 };
12297 static char const a01[] = { 'a' + 1, 0 };
12298 static char const bs_1[] = { '\\\\' - 1, 0 };
12299 static char const bs01[] = { '\\\\' + 1, 0 };
12301 if (!n ("a*", "", 0))
12303 if (!y ("a*", "abc", 0))
12305 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
12307 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
12309 if (!y ("a\\\\bc", "abc", 0))
12311 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
12313 if (!y ("*x", ".x", 0))
12315 if (!n ("*x", ".x", FNM_PERIOD))
12317 if (!y (Apat, "\\\\", 0))
12319 if (!y (Apat, "A", 0))
12321 if (!y (apat, "\\\\", 0))
12323 if (!y (apat, "a", 0))
12325 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
12327 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
12329 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12331 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12333 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12335 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12337 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12339 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12341 $gl_fnmatch_gnu_start
12342 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12344 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12346 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12348 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12350 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12352 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12354 $gl_fnmatch_gnu_end
12361 if ac_fn_c_try_run "$LINENO"; then :
12362 eval "$gl_fnmatch_cache_var=yes"
12364 eval "$gl_fnmatch_cache_var=no"
12366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12367 conftest.$ac_objext conftest.beam conftest.$ac_ext
12372 eval ac_res=\$$gl_fnmatch_cache_var
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12374 $as_echo "$ac_res" >&6; }
12375 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12376 if test "$gl_fnmatch_result" = yes; then
12377 rm -f "$gl_source_base/fnmatch.h"
12379 FNMATCH_H=fnmatch.h
12382 if test -n "$FNMATCH_H"; then
12383 GL_GENERATE_FNMATCH_H_TRUE=
12384 GL_GENERATE_FNMATCH_H_FALSE='#'
12386 GL_GENERATE_FNMATCH_H_TRUE='#'
12387 GL_GENERATE_FNMATCH_H_FALSE=
12391 if test -n "$FNMATCH_H"; then
12400 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12404 cat >>confdefs.h <<_ACEOF
12405 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12409 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12411 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12417 cat >>confdefs.h <<_ACEOF
12418 #define HAVE_DECL_ISBLANK $ac_have_decl
12430 if test -n "$FNMATCH_H"; then
12439 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12443 cat >>confdefs.h <<_ACEOF
12444 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12448 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12450 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12456 cat >>confdefs.h <<_ACEOF
12457 #define HAVE_DECL_ISBLANK $ac_have_decl
12468 if test $gl_cv_func_frexp_no_libm = no; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
12470 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
12471 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
12472 $as_echo_n "(cached) " >&6
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12484 int e; return frexp (x, &e) > 0;
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 gl_cv_func_frexp_in_libm=yes
12492 gl_cv_func_frexp_in_libm=no
12494 rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
12500 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
12501 if test $gl_cv_func_frexp_in_libm = yes; then
12505 if test $gl_cv_func_frexp_no_libm = yes \
12506 || test $gl_cv_func_frexp_in_libm = yes; then
12508 LIBS="$LIBS $FREXP_LIBM"
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
12513 $as_echo_n "checking whether frexp works... " >&6; }
12514 if test "${gl_cv_func_frexp_works+set}" = set; then :
12515 $as_echo_n "(cached) " >&6
12518 if test "$cross_compiling" = yes; then :
12520 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
12521 *) gl_cv_func_frexp_works="guessing yes";;
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12530 #include <string.h>
12532 # include <unistd.h>
12534 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
12535 ICC 10.0 has a bug when optimizing the expression -zero.
12536 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
12537 to PowerPC on Mac OS X 10.5. */
12538 #if defined __hpux || defined __sgi || defined __ICC
12540 compute_minus_zero (void)
12542 return -DBL_MIN * DBL_MIN;
12544 # define minus_zero compute_minus_zero ()
12546 double minus_zero = -0.0;
12555 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
12556 number. Let the test fail in this case. */
12559 /* Test on denormalized numbers. */
12560 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
12565 double y = frexp (x, &exp);
12566 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
12567 On NetBSD: y = 0.75. Correct: y = 0.5. */
12571 /* Test on infinite numbers. */
12575 double y = frexp (x, &exp);
12579 /* Test on negative zero. */
12583 double y = frexp (x, &exp);
12584 if (memcmp (&y, &x, sizeof x))
12590 if ac_fn_c_try_run "$LINENO"; then :
12591 gl_cv_func_frexp_works=yes
12593 gl_cv_func_frexp_works=no
12595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12596 conftest.$ac_objext conftest.beam conftest.$ac_ext
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
12602 $as_echo "$gl_cv_func_frexp_works" >&6; }
12605 case "$gl_cv_func_frexp_works" in
12606 *yes) gl_func_frexp=yes ;;
12607 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
12612 if test $gl_func_frexp = yes; then
12614 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
12619 if test $gl_func_frexp != yes; then
12628 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
12642 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
12652 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
12654 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
12662 if test $HAVE_DECL_FREXPL = 1; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
12665 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
12666 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12677 int e; return frexpl (x, &e) > 0;
12682 if ac_fn_c_try_link "$LINENO"; then :
12683 gl_cv_func_frexpl_no_libm=yes
12685 gl_cv_func_frexpl_no_libm=no
12687 rm -f core conftest.err conftest.$ac_objext \
12688 conftest$ac_exeext conftest.$ac_ext
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
12692 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
12694 if test $gl_cv_func_frexpl_no_libm = no; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
12696 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
12697 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
12698 $as_echo_n "(cached) " >&6
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12710 int e; return frexpl (x, &e) > 0;
12715 if ac_fn_c_try_link "$LINENO"; then :
12716 gl_cv_func_frexpl_in_libm=yes
12718 gl_cv_func_frexpl_in_libm=no
12720 rm -f core conftest.err conftest.$ac_objext \
12721 conftest$ac_exeext conftest.$ac_ext
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
12726 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
12727 if test $gl_cv_func_frexpl_in_libm = yes; then
12731 if test $gl_cv_func_frexpl_no_libm = yes \
12732 || test $gl_cv_func_frexpl_in_libm = yes; then
12734 LIBS="$LIBS $FREXPL_LIBM"
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
12738 $as_echo_n "checking whether frexpl works... " >&6; }
12739 if test "${gl_cv_func_frexpl_works+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
12743 if test "$cross_compiling" = yes; then :
12746 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
12747 gl_cv_func_frexpl_works="guessing no";;
12748 *) gl_cv_func_frexpl_works="guessing yes";;
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12757 /* Override the values of <float.h>, like done in float.in.h. */
12758 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
12759 # undef LDBL_MIN_EXP
12760 # define LDBL_MIN_EXP (-16381)
12762 #if defined __i386__ && defined __FreeBSD__
12763 # undef LDBL_MIN_EXP
12764 # define LDBL_MIN_EXP (-16381)
12766 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
12767 # undef LDBL_MIN_EXP
12768 # define LDBL_MIN_EXP DBL_MIN_EXP
12770 #if defined __sgi && (LDBL_MANT_DIG >= 106)
12771 # if defined __GNUC__
12772 # undef LDBL_MIN_EXP
12773 # define LDBL_MIN_EXP DBL_MIN_EXP
12780 long double frexpl (long double, int *);
12784 volatile long double x;
12785 /* Test on finite numbers that fails on AIX 5.1. */
12793 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
12794 function returns an invalid (incorrectly normalized) value: it returns
12795 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
12796 but the correct result is
12797 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
12801 long double y = frexpl (x, &exp);
12802 if (!(exp == 1 && y == 0.505L))
12805 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
12806 LDBL_MAX_EXP = 16384.
12807 In the loop end test, we test x against Infinity, rather than comparing
12808 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
12811 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
12822 /* Test on denormalized numbers. */
12825 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
12830 long double y = frexpl (x, &exp);
12831 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
12832 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
12833 if (exp != LDBL_MIN_EXP - 1)
12837 /* Test on infinite numbers. */
12841 long double y = frexpl (x, &exp);
12848 if ac_fn_c_try_run "$LINENO"; then :
12849 gl_cv_func_frexpl_works=yes
12851 gl_cv_func_frexpl_works=no
12853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12854 conftest.$ac_objext conftest.beam conftest.$ac_ext
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
12860 $as_echo "$gl_cv_func_frexpl_works" >&6; }
12863 case "$gl_cv_func_frexpl_works" in
12864 *yes) gl_func_frexpl=yes ;;
12865 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
12870 if test $gl_func_frexpl = yes; then
12872 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
12876 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12877 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
12879 FREXPL_LIBM="$FREXP_LIBM"
12886 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12895 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
12909 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
12919 if test -n "$STDINT_H"; then
12920 PRIPTR_PREFIX='"l"'
12922 for glpfx in '' l ll I64; do
12924 '') gltype1='int';;
12925 l) gltype1='long int';;
12926 ll) gltype1='long long int';;
12927 I64) gltype1='__int64';;
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12931 #include <stdint.h>
12932 extern intptr_t foo;
12933 extern $gltype1 foo;
12942 if ac_fn_c_try_compile "$LINENO"; then :
12943 PRIPTR_PREFIX='"'$glpfx'"'
12945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 test -n "$PRIPTR_PREFIX" && break
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
12953 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
12954 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 /* Work also in C++ mode. */
12960 #define __STDC_LIMIT_MACROS 1
12962 /* Work if build is not clean. */
12963 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12965 #include <limits.h>
12967 #include <stdint.h>
12970 #if defined INT32_MAX && defined INTMAX_MAX
12971 #define CONDITION (INT32_MAX < INTMAX_MAX)
12972 #elif HAVE_LONG_LONG_INT
12973 #define CONDITION (sizeof (int) < sizeof (long long int))
12975 #define CONDITION 0
12977 int test[CONDITION ? 1 : -1];
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
12989 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
12994 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
12995 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
12996 INT32_MAX_LT_INTMAX_MAX=1;
12998 INT32_MAX_LT_INTMAX_MAX=0;
13002 if test $APPLE_UNIVERSAL_BUILD = 0; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
13005 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
13006 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13011 /* Work also in C++ mode. */
13012 #define __STDC_LIMIT_MACROS 1
13014 /* Work if build is not clean. */
13015 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13017 #include <limits.h>
13019 #include <stdint.h>
13022 #if defined INT64_MAX
13023 #define CONDITION (INT64_MAX == LONG_MAX)
13024 #elif HAVE_LONG_LONG_INT
13025 #define CONDITION (sizeof (long long int) == sizeof (long int))
13027 #define CONDITION 0
13029 int test[CONDITION ? 1 : -1];
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
13041 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
13046 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
13047 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
13048 INT64_MAX_EQ_LONG_MAX=1;
13050 INT64_MAX_EQ_LONG_MAX=0;
13055 INT64_MAX_EQ_LONG_MAX=-1
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
13059 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
13060 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
13061 $as_echo_n "(cached) " >&6
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065 /* Work also in C++ mode. */
13066 #define __STDC_LIMIT_MACROS 1
13068 /* Work if build is not clean. */
13069 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13071 #include <limits.h>
13073 #include <stdint.h>
13076 #if defined UINT32_MAX && defined UINTMAX_MAX
13077 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
13078 #elif HAVE_LONG_LONG_INT
13079 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
13081 #define CONDITION 0
13083 int test[CONDITION ? 1 : -1];
13092 if ac_fn_c_try_compile "$LINENO"; then :
13093 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
13095 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
13100 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
13101 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
13102 UINT32_MAX_LT_UINTMAX_MAX=1;
13104 UINT32_MAX_LT_UINTMAX_MAX=0;
13108 if test $APPLE_UNIVERSAL_BUILD = 0; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
13111 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
13112 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
13113 $as_echo_n "(cached) " >&6
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13117 /* Work also in C++ mode. */
13118 #define __STDC_LIMIT_MACROS 1
13120 /* Work if build is not clean. */
13121 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13123 #include <limits.h>
13125 #include <stdint.h>
13128 #if defined UINT64_MAX
13129 #define CONDITION (UINT64_MAX == ULONG_MAX)
13130 #elif HAVE_LONG_LONG_INT
13131 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
13133 #define CONDITION 0
13135 int test[CONDITION ? 1 : -1];
13144 if ac_fn_c_try_compile "$LINENO"; then :
13145 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
13147 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
13149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
13152 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
13153 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
13154 UINT64_MAX_EQ_ULONG_MAX=1;
13156 UINT64_MAX_EQ_ULONG_MAX=0;
13161 UINT64_MAX_EQ_ULONG_MAX=-1
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13169 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13170 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13179 # define isnand(x) __builtin_isnan ((double)(x))
13182 # define isnand(x) isnan ((double)(x))
13193 if ac_fn_c_try_link "$LINENO"; then :
13194 gl_cv_func_isnand_no_libm=yes
13196 gl_cv_func_isnand_no_libm=no
13198 rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13203 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13205 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
13206 if test $gl_cv_func_isnand_no_libm = yes; then
13208 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
13212 if test $gl_func_isnand_no_libm != yes; then
13221 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
13230 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
13231 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13240 # define isnanl(x) __builtin_isnanl ((long double)(x))
13241 #elif defined isnan
13243 # define isnanl(x) isnan ((long double)(x))
13254 if ac_fn_c_try_link "$LINENO"; then :
13255 gl_cv_func_isnanl_no_libm=yes
13257 gl_cv_func_isnanl_no_libm=no
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
13264 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
13266 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
13267 if test $gl_func_isnanl_no_libm = yes; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
13273 $as_echo_n "checking whether isnanl works... " >&6; }
13274 if test "${gl_cv_func_isnanl_works+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
13278 if test "$cross_compiling" = yes; then :
13279 case "$host_cpu" in
13280 # Guess no on ia64, x86_64, i386.
13281 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
13284 netbsd*) gl_cv_func_isnanl_works="guessing no";;
13285 *) gl_cv_func_isnanl_works="guessing yes";;
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13295 #include <limits.h>
13299 # define isnanl(x) __builtin_isnanl ((long double)(x))
13300 #elif defined isnan
13302 # define isnanl(x) isnan ((long double)(x))
13305 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13306 typedef union { unsigned int word[NWORDS]; long double value; }
13307 memory_long_double;
13308 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
13309 runtime type conversion. */
13311 static long double NaNl ()
13314 return zero / zero;
13317 # define NaNl() (0.0L / 0.0L)
13323 if (!isnanl (NaNl ()))
13327 memory_long_double m;
13330 /* The isnanl function should be immune against changes in the sign bit and
13331 in the mantissa bits. The xor operation twiddles a bit that can only be
13332 a sign bit or a mantissa bit (since the exponent never extends to
13335 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
13336 for (i = 0; i < NWORDS; i++)
13338 if (!isnanl (m.value))
13342 #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
13343 /* Representation of an 80-bit 'long double' as an initializer for a sequence
13344 of 'unsigned int' words. */
13345 # ifdef WORDS_BIGENDIAN
13346 # define LDBL80_WORDS(exponent,manthi,mantlo) \
13347 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
13348 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
13349 (unsigned int) (mantlo) << 16 \
13352 # define LDBL80_WORDS(exponent,manthi,mantlo) \
13353 { mantlo, manthi, exponent }
13356 static memory_long_double x =
13357 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
13358 if (!isnanl (x.value))
13362 /* Signalling NaN. */
13363 static memory_long_double x =
13364 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
13365 if (!isnanl (x.value))
13368 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
13369 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
13370 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
13371 Application Architecture.
13372 Table 5-2 "Floating-Point Register Encodings"
13373 Figure 5-6 "Memory to Floating-Point Register Data Translation"
13375 { /* Pseudo-NaN. */
13376 static memory_long_double x =
13377 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
13378 if (!isnanl (x.value))
13381 { /* Pseudo-Infinity. */
13382 static memory_long_double x =
13383 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
13384 if (!isnanl (x.value))
13387 { /* Pseudo-Zero. */
13388 static memory_long_double x =
13389 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
13390 if (!isnanl (x.value))
13393 { /* Unnormalized number. */
13394 static memory_long_double x =
13395 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
13396 if (!isnanl (x.value))
13399 { /* Pseudo-Denormal. */
13400 static memory_long_double x =
13401 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
13402 if (!isnanl (x.value))
13410 if ac_fn_c_try_run "$LINENO"; then :
13411 gl_cv_func_isnanl_works=yes
13413 gl_cv_func_isnanl_works=no
13415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13416 conftest.$ac_objext conftest.beam conftest.$ac_ext
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
13422 $as_echo "$gl_cv_func_isnanl_works" >&6; }
13424 case "$gl_cv_func_isnanl_works" in
13426 *) gl_func_isnanl_no_libm=no ;;
13429 if test $gl_func_isnanl_no_libm = yes; then
13431 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
13435 if test $gl_func_isnanl_no_libm != yes; then
13444 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
13450 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
13451 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
13452 $as_echo_n "(cached) " >&6
13455 if test "$cross_compiling" = yes; then :
13457 gl_cv_cc_long_double_expbit0="unknown"
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13464 #include <stddef.h>
13466 #include <string.h>
13468 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13469 typedef union { long double value; unsigned int word[NWORDS]; }
13470 memory_long_double;
13471 static unsigned int ored_words[NWORDS];
13472 static unsigned int anded_words[NWORDS];
13473 static void add_to_ored_words (long double x)
13475 memory_long_double m;
13477 /* Clear it first, in case
13478 sizeof (long double) < sizeof (memory_long_double). */
13479 memset (&m, 0, sizeof (memory_long_double));
13481 for (i = 0; i < NWORDS; i++)
13483 ored_words[i] |= m.word[i];
13484 anded_words[i] &= m.word[i];
13490 FILE *fp = fopen ("conftest.out", "w");
13493 for (j = 0; j < NWORDS; j++)
13494 anded_words[j] = ~ (unsigned int) 0;
13495 add_to_ored_words (0.25L);
13496 add_to_ored_words (0.5L);
13497 add_to_ored_words (1.0L);
13498 add_to_ored_words (2.0L);
13499 add_to_ored_words (4.0L);
13500 /* Remove bits that are common (e.g. if representation of the first mantissa
13501 bit is explicit). */
13502 for (j = 0; j < NWORDS; j++)
13503 ored_words[j] &= ~anded_words[j];
13504 /* Now find the nonzero word. */
13505 for (j = 0; j < NWORDS; j++)
13506 if (ored_words[j] != 0)
13511 for (i = j + 1; i < NWORDS; i++)
13512 if (ored_words[i] != 0)
13514 fprintf (fp, "unknown");
13515 return (fclose (fp) != 0);
13518 if ((ored_words[j] >> i) & 1)
13520 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13521 return (fclose (fp) != 0);
13524 fprintf (fp, "unknown");
13525 return (fclose (fp) != 0);
13529 if ac_fn_c_try_run "$LINENO"; then :
13530 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
13532 gl_cv_cc_long_double_expbit0="unknown"
13534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13535 conftest.$ac_objext conftest.beam conftest.$ac_ext
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
13542 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
13543 case "$gl_cv_cc_long_double_expbit0" in
13545 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
13546 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
13548 cat >>confdefs.h <<_ACEOF
13549 #define LDBL_EXPBIT0_WORD $word
13553 cat >>confdefs.h <<_ACEOF
13554 #define LDBL_EXPBIT0_BIT $bit
13572 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
13577 if test $ac_cv_func_lstat = yes; then
13579 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13588 if test $REPLACE_LSTAT = 1; then
13597 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13612 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
13619 if test $gl_cv_func_malloc_posix = yes; then
13621 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
13627 if test $REPLACE_MALLOC = 1; then
13636 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
13644 GNULIB_MALLOC_POSIX=1
13650 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
13669 if test $gl_cv_have_include_next = yes; then
13670 gl_cv_next_math_h='<'math.h'>'
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
13673 $as_echo_n "checking absolute name of <math.h>... " >&6; }
13674 if test "${gl_cv_next_math_h+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13678 if test $ac_cv_header_math_h = yes; then
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13687 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13688 *) gl_absname_cpp="$ac_cpp" ;;
13693 gl_dirsep_regex='[/\\]'
13696 gl_dirsep_regex='\/'
13699 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13701 gl_header_literal_regex=`echo 'math.h' \
13702 |
sed -e "$gl_make_literal_regex_sed"`
13703 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13704 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13709 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13710 sed -n "$gl_absolute_header_sed"`'"'
13712 gl_cv_next_math_h='<'math.h'>'
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
13718 $as_echo "$gl_cv_next_math_h" >&6; }
13720 NEXT_MATH_H=$gl_cv_next_math_h
13722 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13724 gl_next_as_first_directive='<'math.h'>'
13726 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13727 gl_next_as_first_directive=$gl_cv_next_math_h
13729 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
13736 $as_echo_n "checking whether NAN macro works... " >&6; }
13737 if test "${gl_cv_header_math_nan_works+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13746 /* Solaris 10 has a broken definition of NAN. Other platforms
13747 fail to provide NAN, or provide it only in C99 mode; this
13748 test only needs to fail when NAN is provided but wrong. */
13758 if ac_fn_c_try_compile "$LINENO"; then :
13759 gl_cv_header_math_nan_works=yes
13761 gl_cv_header_math_nan_works=no
13763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
13766 $as_echo "$gl_cv_header_math_nan_works" >&6; }
13767 if test $gl_cv_header_math_nan_works = no; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
13771 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
13772 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13781 /* Solaris 10 has a broken definition of HUGE_VAL. */
13782 double d = HUGE_VAL;
13788 if ac_fn_c_try_compile "$LINENO"; then :
13789 gl_cv_header_math_huge_val_works=yes
13791 gl_cv_header_math_huge_val_works=no
13793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
13796 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
13797 if test $gl_cv_header_math_huge_val_works = no; then
13802 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
13803 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13805 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13806 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13807 $as_echo_n "(cached) " >&6
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822 eval "$as_gl_Symbol=yes"
13824 eval "$as_gl_Symbol=no"
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828 eval ac_res=\$$as_gl_Symbol
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13830 $as_echo "$ac_res" >&6; }
13831 eval as_val=\$$as_gl_Symbol
13832 if test "x$as_val" = x""yes; then :
13833 cat >>confdefs.h <<_ACEOF
13834 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
13837 eval ac_cv_have_decl_$gl_func=yes
13852 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13857 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13858 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13859 $as_echo_n "(cached) " >&6
13863 # Guess no on AIX and OSF/1.
13864 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13865 # Guess yes otherwise.
13866 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13868 if test $LOCALE_JA != none; then
13869 if test "$cross_compiling" = yes; then :
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13875 #include <locale.h>
13876 #include <string.h>
13877 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13879 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13880 included before <wchar.h>. */
13881 #include <stddef.h>
13887 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13889 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13893 memset (&state, '\0', sizeof (mbstate_t));
13894 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13895 if (mbsinit (&state))
13901 if ac_fn_c_try_run "$LINENO"; then :
13902 gl_cv_func_mbrtowc_incomplete_state=yes
13904 gl_cv_func_mbrtowc_incomplete_state=no
13906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13907 conftest.$ac_objext conftest.beam conftest.$ac_ext
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13914 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13920 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13921 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13926 # Guess no on Solaris 8.
13927 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13928 # Guess yes otherwise.
13929 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13931 if test $LOCALE_ZH_CN != none; then
13932 if test "$cross_compiling" = yes; then :
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13938 #include <locale.h>
13939 #include <stdlib.h>
13940 #include <string.h>
13941 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13943 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13944 included before <wchar.h>. */
13945 #include <stddef.h>
13951 /* This fails on Solaris 8:
13952 mbrtowc returns 2, and sets wc to 0x00F0.
13953 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13954 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13956 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13960 memset (&state, '\0', sizeof (mbstate_t));
13961 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13962 && mbtowc (&wc, input + 3, 6) == 4)
13968 if ac_fn_c_try_run "$LINENO"; then :
13969 gl_cv_func_mbrtowc_sanitycheck=yes
13971 gl_cv_func_mbrtowc_sanitycheck=no
13973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13974 conftest.$ac_objext conftest.beam conftest.$ac_ext
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13981 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13983 REPLACE_MBSTATE_T=0
13984 case "$gl_cv_func_mbrtowc_incomplete_state" in
13986 *) REPLACE_MBSTATE_T=1 ;;
13988 case "$gl_cv_func_mbrtowc_sanitycheck" in
13990 *) REPLACE_MBSTATE_T=1 ;;
13993 REPLACE_MBSTATE_T=1
13998 if test $ac_cv_func_mbrtowc = no; then
14000 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
14001 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14003 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14004 included before <wchar.h>. */
14005 #include <stddef.h>
14011 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
14017 cat >>confdefs.h <<_ACEOF
14018 #define HAVE_DECL_MBRTOWC $ac_have_decl
14021 if test $ac_cv_have_decl_mbrtowc = yes; then
14025 if test $REPLACE_MBSTATE_T = 1; then
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
14032 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
14033 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
14038 # Guess no on Solaris.
14039 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
14040 # Guess yes otherwise.
14041 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
14043 if test $LOCALE_FR_UTF8 != none; then
14044 if test "$cross_compiling" = yes; then :
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14050 #include <locale.h>
14051 #include <stdlib.h>
14052 #include <string.h>
14053 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14055 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14056 included before <wchar.h>. */
14057 #include <stddef.h>
14065 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14067 char input[] = "\303\237er";
14072 memset (&state, '\0', sizeof (mbstate_t));
14073 wc = (wchar_t) 0xBADFACE;
14074 ret = mbrtowc (&wc, input, 5, &state);
14077 if (!mbsinit (&state))
14080 memset (&state, '\0', sizeof (mbstate_t));
14081 ret = mbrtowc (NULL, input, 5, &state);
14082 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
14084 if (!mbsinit (&state))
14090 if ac_fn_c_try_run "$LINENO"; then :
14091 gl_cv_func_mbrtowc_null_arg1=yes
14093 gl_cv_func_mbrtowc_null_arg1=no
14095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14096 conftest.$ac_objext conftest.beam conftest.$ac_ext
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
14103 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
14109 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
14110 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14115 # Guess no on OSF/1.
14116 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
14117 # Guess yes otherwise.
14118 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
14120 if test $LOCALE_FR_UTF8 != none; then
14121 if test "$cross_compiling" = yes; then :
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h. */
14127 #include <locale.h>
14128 #include <string.h>
14129 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14131 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14132 included before <wchar.h>. */
14133 #include <stddef.h>
14139 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14145 memset (&state, '\0', sizeof (mbstate_t));
14146 wc = (wchar_t) 0xBADFACE;
14147 mbrtowc (&wc, NULL, 5, &state);
14148 /* Check that wc was not modified. */
14149 if (wc != (wchar_t) 0xBADFACE)
14155 if ac_fn_c_try_run "$LINENO"; then :
14156 gl_cv_func_mbrtowc_null_arg2=yes
14158 gl_cv_func_mbrtowc_null_arg2=no
14160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14161 conftest.$ac_objext conftest.beam conftest.$ac_ext
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
14168 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
14176 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
14177 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
14178 $as_echo_n "(cached) " >&6
14182 # Guess no on HP-UX, Solaris, native Windows.
14183 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
14184 # Guess yes otherwise.
14185 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
14187 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
14188 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
14189 if test "$cross_compiling" = yes; then :
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14195 #include <locale.h>
14196 #include <string.h>
14197 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14199 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14200 included before <wchar.h>. */
14201 #include <stddef.h>
14208 int found_some_locale = 0;
14209 /* This fails on Solaris. */
14210 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14212 char input[] = "B\303\274\303\237er"; /* "Büßer" */
14216 memset (&state, '\0', sizeof (mbstate_t));
14217 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14220 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
14223 found_some_locale = 1;
14225 /* This fails on HP-UX 11.11. */
14226 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14228 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14232 memset (&state, '\0', sizeof (mbstate_t));
14233 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14236 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
14239 found_some_locale = 1;
14241 /* This fails on native Windows. */
14242 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
14244 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
14248 memset (&state, '\0', sizeof (mbstate_t));
14249 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14252 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14255 found_some_locale = 1;
14257 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
14259 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
14263 memset (&state, '\0', sizeof (mbstate_t));
14264 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14267 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14270 found_some_locale = 1;
14272 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
14274 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
14278 memset (&state, '\0', sizeof (mbstate_t));
14279 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14282 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14285 found_some_locale = 1;
14287 return (found_some_locale ? result : 77);
14290 if ac_fn_c_try_run "$LINENO"; then :
14291 gl_cv_func_mbrtowc_retval=yes
14293 if test $? != 77; then
14294 gl_cv_func_mbrtowc_retval=no
14298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14299 conftest.$ac_objext conftest.beam conftest.$ac_ext
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
14306 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
14312 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
14313 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14318 # Guess no on Solaris 8 and 9.
14319 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
14320 # Guess yes otherwise.
14321 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
14323 if test $LOCALE_ZH_CN != none; then
14324 if test "$cross_compiling" = yes; then :
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14330 #include <locale.h>
14331 #include <string.h>
14332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14334 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14335 included before <wchar.h>. */
14336 #include <stddef.h>
14342 /* This fails on Solaris 8 and 9. */
14343 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14348 memset (&state, '\0', sizeof (mbstate_t));
14349 if (mbrtowc (&wc, "", 1, &state) != 0)
14355 if ac_fn_c_try_run "$LINENO"; then :
14356 gl_cv_func_mbrtowc_nul_retval=yes
14358 gl_cv_func_mbrtowc_nul_retval=no
14360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14361 conftest.$ac_objext conftest.beam conftest.$ac_ext
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
14368 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
14370 case "$gl_cv_func_mbrtowc_null_arg1" in
14373 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
14378 case "$gl_cv_func_mbrtowc_null_arg2" in
14381 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
14386 case "$gl_cv_func_mbrtowc_retval" in
14389 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
14394 case "$gl_cv_func_mbrtowc_nul_retval" in
14397 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
14405 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
14414 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
14431 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
14446 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14451 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14452 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14457 # Guess no on AIX and OSF/1.
14458 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14459 # Guess yes otherwise.
14460 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14462 if test $LOCALE_JA != none; then
14463 if test "$cross_compiling" = yes; then :
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14469 #include <locale.h>
14470 #include <string.h>
14471 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14473 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14474 included before <wchar.h>. */
14475 #include <stddef.h>
14481 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14483 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14487 memset (&state, '\0', sizeof (mbstate_t));
14488 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14489 if (mbsinit (&state))
14495 if ac_fn_c_try_run "$LINENO"; then :
14496 gl_cv_func_mbrtowc_incomplete_state=yes
14498 gl_cv_func_mbrtowc_incomplete_state=no
14500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14501 conftest.$ac_objext conftest.beam conftest.$ac_ext
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14508 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14514 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14515 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14516 $as_echo_n "(cached) " >&6
14520 # Guess no on Solaris 8.
14521 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14522 # Guess yes otherwise.
14523 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14525 if test $LOCALE_ZH_CN != none; then
14526 if test "$cross_compiling" = yes; then :
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14532 #include <locale.h>
14533 #include <stdlib.h>
14534 #include <string.h>
14535 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14537 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14538 included before <wchar.h>. */
14539 #include <stddef.h>
14545 /* This fails on Solaris 8:
14546 mbrtowc returns 2, and sets wc to 0x00F0.
14547 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14548 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14550 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14554 memset (&state, '\0', sizeof (mbstate_t));
14555 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14556 && mbtowc (&wc, input + 3, 6) == 4)
14562 if ac_fn_c_try_run "$LINENO"; then :
14563 gl_cv_func_mbrtowc_sanitycheck=yes
14565 gl_cv_func_mbrtowc_sanitycheck=no
14567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14568 conftest.$ac_objext conftest.beam conftest.$ac_ext
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14575 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14577 REPLACE_MBSTATE_T=0
14578 case "$gl_cv_func_mbrtowc_incomplete_state" in
14580 *) REPLACE_MBSTATE_T=1 ;;
14582 case "$gl_cv_func_mbrtowc_sanitycheck" in
14584 *) REPLACE_MBSTATE_T=1 ;;
14587 REPLACE_MBSTATE_T=1
14592 if test $ac_cv_func_mbsinit = no; then
14594 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
14595 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14597 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14598 included before <wchar.h>. */
14599 #include <stddef.h>
14605 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
14611 cat >>confdefs.h <<_ACEOF
14612 #define HAVE_DECL_MBSINIT $ac_have_decl
14615 if test $ac_cv_have_decl_mbsinit = yes; then
14619 if test $REPLACE_MBSTATE_T = 1; then
14623 mingw*) REPLACE_MBSINIT=1 ;;
14628 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
14637 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
14654 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
14668 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14673 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14674 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14675 $as_echo_n "(cached) " >&6
14679 # Guess no on AIX and OSF/1.
14680 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14681 # Guess yes otherwise.
14682 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14684 if test $LOCALE_JA != none; then
14685 if test "$cross_compiling" = yes; then :
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14691 #include <locale.h>
14692 #include <string.h>
14693 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14695 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14696 included before <wchar.h>. */
14697 #include <stddef.h>
14703 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14705 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14709 memset (&state, '\0', sizeof (mbstate_t));
14710 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14711 if (mbsinit (&state))
14717 if ac_fn_c_try_run "$LINENO"; then :
14718 gl_cv_func_mbrtowc_incomplete_state=yes
14720 gl_cv_func_mbrtowc_incomplete_state=no
14722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14723 conftest.$ac_objext conftest.beam conftest.$ac_ext
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14730 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14736 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14737 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14738 $as_echo_n "(cached) " >&6
14742 # Guess no on Solaris 8.
14743 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14744 # Guess yes otherwise.
14745 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14747 if test $LOCALE_ZH_CN != none; then
14748 if test "$cross_compiling" = yes; then :
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14754 #include <locale.h>
14755 #include <stdlib.h>
14756 #include <string.h>
14757 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14759 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14760 included before <wchar.h>. */
14761 #include <stddef.h>
14767 /* This fails on Solaris 8:
14768 mbrtowc returns 2, and sets wc to 0x00F0.
14769 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14770 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14772 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14776 memset (&state, '\0', sizeof (mbstate_t));
14777 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14778 && mbtowc (&wc, input + 3, 6) == 4)
14784 if ac_fn_c_try_run "$LINENO"; then :
14785 gl_cv_func_mbrtowc_sanitycheck=yes
14787 gl_cv_func_mbrtowc_sanitycheck=no
14789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14790 conftest.$ac_objext conftest.beam conftest.$ac_ext
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14797 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14799 REPLACE_MBSTATE_T=0
14800 case "$gl_cv_func_mbrtowc_incomplete_state" in
14802 *) REPLACE_MBSTATE_T=1 ;;
14804 case "$gl_cv_func_mbrtowc_sanitycheck" in
14806 *) REPLACE_MBSTATE_T=1 ;;
14809 REPLACE_MBSTATE_T=1
14814 if test $ac_cv_func_mbsrtowcs = no; then
14816 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
14817 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14819 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14820 included before <wchar.h>. */
14821 #include <stddef.h>
14827 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
14833 cat >>confdefs.h <<_ACEOF
14834 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
14837 if test $ac_cv_have_decl_mbsrtowcs = yes; then
14838 REPLACE_MBSRTOWCS=1
14841 if test $REPLACE_MBSTATE_T = 1; then
14842 REPLACE_MBSRTOWCS=1
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
14851 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
14852 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
14853 $as_echo_n "(cached) " >&6
14857 # Guess no on HP-UX, Solaris, mingw.
14858 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
14859 # Guess yes otherwise.
14860 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
14862 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
14863 if test "$cross_compiling" = yes; then :
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14869 #include <locale.h>
14870 #include <string.h>
14871 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14873 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14874 included before <wchar.h>. */
14875 #include <stddef.h>
14882 /* Test whether the function supports a NULL destination argument.
14883 This fails on native Windows. */
14884 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
14886 const char input[] = "\337er";
14887 const char *src = input;
14890 memset (&state, '\0', sizeof (mbstate_t));
14891 if (mbsrtowcs (NULL, &src, 1, &state) != 3
14895 /* Test whether the function works when started with a conversion state
14896 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
14897 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14899 const char input[] = "B\303\274\303\237er";
14902 memset (&state, '\0', sizeof (mbstate_t));
14903 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14904 if (!mbsinit (&state))
14906 const char *src = input + 2;
14907 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14911 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14913 const char input[] = "<\306\374\313\334\270\354>";
14916 memset (&state, '\0', sizeof (mbstate_t));
14917 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
14918 if (!mbsinit (&state))
14920 const char *src = input + 4;
14921 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
14925 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14927 const char input[] = "B\250\271\201\060\211\070er";
14930 memset (&state, '\0', sizeof (mbstate_t));
14931 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14932 if (!mbsinit (&state))
14934 const char *src = input + 2;
14935 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14942 if ac_fn_c_try_run "$LINENO"; then :
14943 gl_cv_func_mbsrtowcs_works=yes
14945 gl_cv_func_mbsrtowcs_works=no
14947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14948 conftest.$ac_objext conftest.beam conftest.$ac_ext
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
14955 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
14957 case "$gl_cv_func_mbsrtowcs_works" in
14959 *) REPLACE_MBSRTOWCS=1 ;;
14964 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
14973 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
14983 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
15000 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
15005 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15014 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15017 for ac_header in bp-sym.h
15019 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15020 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
15021 cat >>confdefs.h <<_ACEOF
15022 #define HAVE_BP_SYM_H 1
15042 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15048 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
15050 $as_echo_n "checking whether memmem works in linear time... " >&6; }
15051 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
15052 $as_echo_n "(cached) " >&6
15054 if test "$cross_compiling" = yes; then :
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15058 #include <features.h>
15059 #ifdef __GNU_LIBRARY__
15060 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
15061 && !defined __UCLIBC__
15066 #include <cygwin/version.h>
15067 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
15073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15074 $EGREP "Lucky user" >/dev/null 2>&1; then :
15075 gl_cv_func_memmem_works_fast="guessing yes"
15077 gl_cv_func_memmem_works_fast="guessing no"
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15086 #include <signal.h> /* for signal */
15087 #include <string.h> /* for memmem */
15088 #include <stdlib.h> /* for malloc */
15089 #include <unistd.h> /* for alarm */
15090 static void quit (int sig) { exit (sig + 128); }
15097 size_t m = 1000000;
15098 char *haystack = (char *) malloc (2 * m + 1);
15099 char *needle = (char *) malloc (m + 1);
15100 /* Failure to compile this test due to missing alarm is okay,
15101 since all such platforms (mingw) also lack memmem. */
15102 signal (SIGALRM, quit);
15104 /* Check for quadratic performance. */
15105 if (haystack && needle)
15107 memset (haystack, 'A', 2 * m);
15108 haystack[2 * m] = 'B';
15109 memset (needle, 'A', m);
15111 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
15120 if ac_fn_c_try_run "$LINENO"; then :
15121 gl_cv_func_memmem_works_fast=yes
15123 gl_cv_func_memmem_works_fast=no
15125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15126 conftest.$ac_objext conftest.beam conftest.$ac_ext
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
15132 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
15133 case "$gl_cv_func_memmem_works_fast" in
15141 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15150 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15157 for ac_func in memmem
15159 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15160 if test "x$ac_cv_func_memmem" = x""yes; then :
15161 cat >>confdefs.h <<_ACEOF
15162 #define HAVE_MEMMEM 1
15168 if test $ac_cv_func_memmem = yes; then
15174 if test $ac_cv_have_decl_memmem = no; then
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15178 $as_echo_n "checking whether memmem works... " >&6; }
15179 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
15180 $as_echo_n "(cached) " >&6
15182 if test "$cross_compiling" = yes; then :
15183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15186 #ifdef __GNU_LIBRARY__
15187 #include <features.h>
15188 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15189 || __GLIBC_MINOR__ > 12)) \
15190 || (__GLIBC__ > 2)) \
15191 || defined __UCLIBC__
15194 #elif defined __CYGWIN__
15195 #include <cygwin/version.h>
15196 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15205 $EGREP "Lucky user" >/dev/null 2>&1; then :
15206 gl_cv_func_memmem_works_always="guessing yes"
15208 gl_cv_func_memmem_works_always="guessing no"
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15217 #include <string.h> /* for memmem */
15218 #define P "_EF_BF_BD"
15219 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15220 #define NEEDLE P P P P P
15227 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15229 /* Check for empty needle behavior. */
15231 const char *haystack = "AAA";
15232 if (memmem (haystack, 3, NULL, 0) != haystack)
15241 if ac_fn_c_try_run "$LINENO"; then :
15242 gl_cv_func_memmem_works_always=yes
15244 gl_cv_func_memmem_works_always=no
15246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15247 conftest.$ac_objext conftest.beam conftest.$ac_ext
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15253 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15254 case "$gl_cv_func_memmem_works_always" in
15263 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15272 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15286 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
15297 if test $ac_cv_func_readlink = no; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
15301 $as_echo_n "checking whether readlink signature is correct... " >&6; }
15302 if test "${gl_cv_decl_readlink_works+set}" = set; then :
15303 $as_echo_n "(cached) " >&6
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307 #include <unistd.h>
15308 /* Cause compilation failure if original declaration has wrong type. */
15309 ssize_t readlink (const char *, char *, size_t);
15318 if ac_fn_c_try_compile "$LINENO"; then :
15319 gl_cv_decl_readlink_works=yes
15321 gl_cv_decl_readlink_works=no
15323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
15326 $as_echo "$gl_cv_decl_readlink_works" >&6; }
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
15328 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
15329 if test "${gl_cv_func_readlink_works+set}" = set; then :
15330 $as_echo_n "(cached) " >&6
15332 # We have readlink, so assume ln -s works.
15333 ln -s conftest.no-such conftest.link
15334 ln -s conftest.link conftest.lnk2
15335 if test "$cross_compiling" = yes; then :
15337 # Guess yes on glibc systems.
15338 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
15339 # If we don't know, assume the worst.
15340 *) gl_cv_func_readlink_works="guessing no" ;;
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15346 #include <unistd.h>
15352 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
15357 if ac_fn_c_try_run "$LINENO"; then :
15358 gl_cv_func_readlink_works=yes
15360 gl_cv_func_readlink_works=no
15362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15363 conftest.$ac_objext conftest.beam conftest.$ac_ext
15366 rm -f conftest.link conftest.lnk2
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
15369 $as_echo "$gl_cv_func_readlink_works" >&6; }
15370 case "$gl_cv_func_readlink_works" in
15372 if test "$gl_cv_decl_readlink_works" != yes; then
15378 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
15385 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
15394 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
15411 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
15421 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
15422 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
15423 $as_echo_n "(cached) " >&6
15425 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
15426 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
15427 as_fn_error "cannot create temporary files" "$LINENO" 5
15428 # Assume that if we have lstat, we can also check symlinks.
15429 if test $ac_cv_func_lstat = yes; then
15430 ln -s conftest.f conftest.lnk
15432 if test "$cross_compiling" = yes; then :
15434 # Guess yes on glibc systems.
15435 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
15436 # If we don't know, assume the worst.
15437 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15444 # include <stdio.h>
15445 # include <stdlib.h>
15451 if (rename ("conftest.f1", "conftest.f2/") == 0)
15453 if (rename ("conftest.d1", "conftest.d2/") != 0)
15456 if (rename ("conftest.f", "conftest.lnk/") == 0)
15465 if ac_fn_c_try_run "$LINENO"; then :
15466 gl_cv_func_rename_slash_dst_works=yes
15468 gl_cv_func_rename_slash_dst_works=no
15470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15471 conftest.$ac_objext conftest.beam conftest.$ac_ext
15474 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
15478 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
15479 case "$gl_cv_func_rename_slash_dst_works" in
15484 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
15490 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
15491 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
15492 $as_echo_n "(cached) " >&6
15494 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
15495 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
15496 as_fn_error "cannot create temporary files" "$LINENO" 5
15497 # Assume that if we have lstat, we can also check symlinks.
15498 if test $ac_cv_func_lstat = yes; then
15499 ln -s conftest.f conftest.lnk
15501 if test "$cross_compiling" = yes; then :
15503 # Guess yes on glibc systems.
15504 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
15505 # If we don't know, assume the worst.
15506 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511 /* end confdefs.h. */
15513 # include <stdio.h>
15514 # include <stdlib.h>
15520 if (rename ("conftest.f1/", "conftest.d3") == 0)
15522 if (rename ("conftest.d1/", "conftest.d2") != 0)
15525 if (rename ("conftest.lnk/", "conftest.f") == 0)
15534 if ac_fn_c_try_run "$LINENO"; then :
15535 gl_cv_func_rename_slash_src_works=yes
15537 gl_cv_func_rename_slash_src_works=no
15539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15540 conftest.$ac_objext conftest.beam conftest.$ac_ext
15543 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
15547 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
15548 case "$gl_cv_func_rename_slash_src_works" in
15553 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
15560 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
15561 if test "${gl_cv_func_rename_link_works+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15564 if test $ac_cv_func_link = yes; then
15565 rm -rf conftest.f conftest.f1
15566 if touch conftest.f && ln conftest.f conftest.f1 &&
15567 set x `ls -i conftest.f conftest.f1
` && test "" = ""; then
15568 if test "$cross_compiling" = yes; then :
15570 # Guess yes on glibc systems.
15571 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
15572 # If we don't know, assume the worst.
15573 *) gl_cv_func_rename_link_works="guessing no" ;;
15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15580 # include <stdio.h>
15581 # include <stdlib.h>
15582 # include <unistd.h>
15588 if (rename ("conftest.f", "conftest.f1"))
15590 if (unlink ("conftest.f1"))
15592 if (rename ("conftest.f", "conftest.f"))
15594 if (rename ("conftest.f1", "conftest.f1") == 0)
15602 if ac_fn_c_try_run "$LINENO"; then :
15603 gl_cv_func_rename_link_works=yes
15605 gl_cv_func_rename_link_works=no
15607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15608 conftest.$ac_objext conftest.beam conftest.$ac_ext
15612 gl_cv_func_rename_link_works="guessing no"
15614 rm -rf conftest.f conftest.f1
15616 gl_cv_func_rename_link_works=yes
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
15621 $as_echo "$gl_cv_func_rename_link_works" >&6; }
15622 case "$gl_cv_func_rename_link_works" in
15627 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
15633 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
15634 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
15635 $as_echo_n "(cached) " >&6
15637 rm -rf conftest.f conftest.d1 conftest.d2
15638 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
15639 as_fn_error "cannot create temporary files" "$LINENO" 5
15640 if test "$cross_compiling" = yes; then :
15642 # Guess yes on glibc systems.
15643 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
15644 # If we don't know, assume the worst.
15645 *) gl_cv_func_rename_dest_works="guessing no" ;;
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h. */
15652 # include <stdio.h>
15653 # include <stdlib.h>
15659 if (rename ("conftest.d1", "conftest.d2") != 0)
15661 if (rename ("conftest.d2", "conftest.f") == 0)
15669 if ac_fn_c_try_run "$LINENO"; then :
15670 gl_cv_func_rename_dest_works=yes
15672 gl_cv_func_rename_dest_works=no
15674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15675 conftest.$ac_objext conftest.beam conftest.$ac_ext
15678 rm -rf conftest.f conftest.d1 conftest.d2
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
15682 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
15683 case "$gl_cv_func_rename_dest_works" in
15688 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
15693 if test $REPLACE_RENAME = 1; then
15702 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
15716 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
15724 $as_echo_n "checking whether rmdir works... " >&6; }
15725 if test "${gl_cv_func_rmdir_works+set}" = set; then :
15726 $as_echo_n "(cached) " >&6
15729 touch conftest.file
15730 if test "$cross_compiling" = yes; then :
15732 # Guess yes on glibc systems.
15733 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
15734 # If we don't know, assume the worst.
15735 *) gl_cv_func_rmdir_works="guessing no" ;;
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15744 # include <unistd.h>
15745 #else /* on Windows with MSVC */
15746 # include <direct.h>
15753 if (!rmdir ("conftest.file/"))
15755 else if (errno != ENOTDIR)
15757 if (!rmdir ("conftest.dir/./"))
15765 if ac_fn_c_try_run "$LINENO"; then :
15766 gl_cv_func_rmdir_works=yes
15768 gl_cv_func_rmdir_works=no
15770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15771 conftest.$ac_objext conftest.beam conftest.$ac_ext
15774 rm -rf conftest.dir conftest.file
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
15777 $as_echo "$gl_cv_func_rmdir_works" >&6; }
15778 case "$gl_cv_func_rmdir_works" in
15785 if test $REPLACE_RMDIR = 1; then
15794 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
15808 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15814 $as_echo_n "checking for ssize_t... " >&6; }
15815 if test "${gt_cv_ssize_t+set}" = set; then :
15816 $as_echo_n "(cached) " >&6
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15820 #include <sys/types.h>
15824 int x = sizeof (ssize_t *) + sizeof (ssize_t);
15830 if ac_fn_c_try_compile "$LINENO"; then :
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
15838 $as_echo "$gt_cv_ssize_t" >&6; }
15839 if test $gt_cv_ssize_t = no; then
15841 $as_echo "#define ssize_t int" >>confdefs.h
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15849 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15850 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15853 if test "$cross_compiling" = yes; then :
15855 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
15856 *) gl_cv_func_stat_dir_slash="guessing yes";;
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15861 #include <sys/stat.h>
15866 struct stat st; return stat (".", &st) != stat ("./", &st);
15871 if ac_fn_c_try_run "$LINENO"; then :
15872 gl_cv_func_stat_dir_slash=yes
15874 gl_cv_func_stat_dir_slash=no
15876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15877 conftest.$ac_objext conftest.beam conftest.$ac_ext
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15882 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15884 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15885 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15886 $as_echo_n "(cached) " >&6
15889 # Assume that if we have lstat, we can also check symlinks.
15890 if test $ac_cv_func_lstat = yes; then
15891 ln -s conftest.tmp conftest.lnk
15893 if test "$cross_compiling" = yes; then :
15895 # Guess yes on glibc systems.
15896 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
15897 # If we don't know, assume the worst.
15898 *) gl_cv_func_stat_file_slash="guessing no" ;;
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904 #include <sys/stat.h>
15911 if (!stat ("conftest.tmp/", &st))
15914 if (!stat ("conftest.lnk/", &st))
15923 if ac_fn_c_try_run "$LINENO"; then :
15924 gl_cv_func_stat_file_slash=yes
15926 gl_cv_func_stat_file_slash=no
15928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15929 conftest.$ac_objext conftest.beam conftest.$ac_ext
15932 rm -f conftest.tmp conftest.lnk
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
15935 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
15936 case $gl_cv_func_stat_dir_slash in
15937 *no) REPLACE_STAT=1
15939 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
15942 case $gl_cv_func_stat_file_slash in
15943 *no) REPLACE_STAT=1
15945 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
15949 if test $REPLACE_STAT = 1; then
15958 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
15973 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
15980 # Define two additional variables used in the Makefile substitution.
15982 if test "$ac_cv_header_stdbool_h" = yes; then
15985 STDBOOL_H='stdbool.h'
15988 if test -n "$STDBOOL_H"; then
15989 GL_GENERATE_STDBOOL_H_TRUE=
15990 GL_GENERATE_STDBOOL_H_FALSE='#'
15992 GL_GENERATE_STDBOOL_H_TRUE='#'
15993 GL_GENERATE_STDBOOL_H_FALSE=
15997 if test "$ac_cv_type__Bool" = yes; then
16008 if test $gt_cv_c_wchar_t = no; then
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16013 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16014 if test "${gl_cv_decl_null_works+set}" = set; then :
16015 $as_echo_n "(cached) " >&6
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16019 #include <stddef.h>
16020 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16030 if ac_fn_c_try_compile "$LINENO"; then :
16031 gl_cv_decl_null_works=yes
16033 gl_cv_decl_null_works=no
16035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16038 $as_echo "$gl_cv_decl_null_works" >&6; }
16039 if test $gl_cv_decl_null_works = no; then
16044 if test -n "$STDDEF_H"; then
16045 GL_GENERATE_STDDEF_H_TRUE=
16046 GL_GENERATE_STDDEF_H_FALSE='#'
16048 GL_GENERATE_STDDEF_H_TRUE='#'
16049 GL_GENERATE_STDDEF_H_FALSE=
16052 if test -n "$STDDEF_H"; then
16061 if test $gl_cv_have_include_next = yes; then
16062 gl_cv_next_stddef_h='<'stddef.h'>'
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16065 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16066 if test "${gl_cv_next_stddef_h+set}" = set; then :
16067 $as_echo_n "(cached) " >&6
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16072 #include <stddef.h>
16076 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16077 *) gl_absname_cpp="$ac_cpp" ;;
16082 gl_dirsep_regex='[/\\]'
16085 gl_dirsep_regex='\/'
16088 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16090 gl_header_literal_regex=`echo 'stddef.h' \
16091 |
sed -e "$gl_make_literal_regex_sed"`
16092 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16093 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16098 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16099 sed -n "$gl_absolute_header_sed"`'"'
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16104 $as_echo "$gl_cv_next_stddef_h" >&6; }
16106 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16108 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16109 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16110 gl_next_as_first_directive='<'stddef.h'>'
16112 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16113 gl_next_as_first_directive=$gl_cv_next_stddef_h
16115 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16133 if test $gl_cv_have_include_next = yes; then
16134 gl_cv_next_stdio_h='<'stdio.h'>'
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
16137 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
16138 if test "${gl_cv_next_stdio_h+set}" = set; then :
16139 $as_echo_n "(cached) " >&6
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16148 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16149 *) gl_absname_cpp="$ac_cpp" ;;
16154 gl_dirsep_regex='[/\\]'
16157 gl_dirsep_regex='\/'
16160 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16162 gl_header_literal_regex=`echo 'stdio.h' \
16163 |
sed -e "$gl_make_literal_regex_sed"`
16164 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16165 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16170 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16171 sed -n "$gl_absolute_header_sed"`'"'
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
16176 $as_echo "$gl_cv_next_stdio_h" >&6; }
16178 NEXT_STDIO_H=$gl_cv_next_stdio_h
16180 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16181 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16182 gl_next_as_first_directive='<'stdio.h'>'
16184 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16185 gl_next_as_first_directive=$gl_cv_next_stdio_h
16187 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
16196 cat >>confdefs.h <<_ACEOF
16197 #define GNULIB_FSCANF 1
16204 cat >>confdefs.h <<_ACEOF
16205 #define GNULIB_SCANF 1
16230 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
16231 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16233 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16234 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16235 $as_echo_n "(cached) " >&6
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16250 if ac_fn_c_try_compile "$LINENO"; then :
16251 eval "$as_gl_Symbol=yes"
16253 eval "$as_gl_Symbol=no"
16255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257 eval ac_res=\$$as_gl_Symbol
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16259 $as_echo "$ac_res" >&6; }
16260 eval as_val=\$$as_gl_Symbol
16261 if test "x$as_val" = x""yes; then :
16262 cat >>confdefs.h <<_ACEOF
16263 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16266 eval ac_cv_have_decl_$gl_func=yes
16281 if test $gl_cv_have_include_next = yes; then
16282 gl_cv_next_stdlib_h='<'stdlib.h'>'
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16285 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16286 if test "${gl_cv_next_stdlib_h+set}" = set; then :
16287 $as_echo_n "(cached) " >&6
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 #include <stdlib.h>
16296 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16297 *) gl_absname_cpp="$ac_cpp" ;;
16302 gl_dirsep_regex='[/\\]'
16305 gl_dirsep_regex='\/'
16308 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16310 gl_header_literal_regex=`echo 'stdlib.h' \
16311 |
sed -e "$gl_make_literal_regex_sed"`
16312 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16313 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16318 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16319 sed -n "$gl_absolute_header_sed"`'"'
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16324 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16326 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16328 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16329 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16330 gl_next_as_first_directive='<'stdlib.h'>'
16332 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16333 gl_next_as_first_directive=$gl_cv_next_stdlib_h
16335 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
16342 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
16343 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16345 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16346 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16347 $as_echo_n "(cached) " >&6
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16351 #include <stdlib.h>
16352 #if HAVE_SYS_LOADAVG_H
16353 # include <sys/loadavg.h>
16356 # include <random.h>
16368 if ac_fn_c_try_compile "$LINENO"; then :
16369 eval "$as_gl_Symbol=yes"
16371 eval "$as_gl_Symbol=no"
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375 eval ac_res=\$$as_gl_Symbol
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16377 $as_echo "$ac_res" >&6; }
16378 eval as_val=\$$as_gl_Symbol
16379 if test "x$as_val" = x""yes; then :
16380 cat >>confdefs.h <<_ACEOF
16381 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16384 eval ac_cv_have_decl_$gl_func=yes
16394 if test $REPLACE_STRSTR = 0; then
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
16396 $as_echo_n "checking whether strstr works in linear time... " >&6; }
16397 if test "${gl_cv_func_strstr_linear+set}" = set; then :
16398 $as_echo_n "(cached) " >&6
16400 if test "$cross_compiling" = yes; then :
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16404 #include <features.h>
16405 #ifdef __GNU_LIBRARY__
16406 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16407 && !(defined __i386__ || defined __x86_64__) \
16408 && !defined __UCLIBC__
16413 #include <cygwin/version.h>
16414 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16421 $EGREP "Lucky user" >/dev/null 2>&1; then :
16422 gl_cv_func_strstr_linear="guessing yes"
16424 gl_cv_func_strstr_linear="guessing no"
16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431 /* end confdefs.h. */
16433 #include <signal.h> /* for signal */
16434 #include <string.h> /* for strstr */
16435 #include <stdlib.h> /* for malloc */
16436 #include <unistd.h> /* for alarm */
16437 static void quit (int sig) { exit (sig + 128); }
16444 size_t m = 1000000;
16445 char *haystack = (char *) malloc (2 * m + 2);
16446 char *needle = (char *) malloc (m + 2);
16447 /* Failure to compile this test due to missing alarm is okay,
16448 since all such platforms (mingw) also have quadratic strstr. */
16449 signal (SIGALRM, quit);
16451 /* Check for quadratic performance. */
16452 if (haystack && needle)
16454 memset (haystack, 'A', 2 * m);
16455 haystack[2 * m] = 'B';
16456 haystack[2 * m + 1] = 0;
16457 memset (needle, 'A', m);
16460 if (!strstr (haystack, needle))
16469 if ac_fn_c_try_run "$LINENO"; then :
16470 gl_cv_func_strstr_linear=yes
16472 gl_cv_func_strstr_linear=no
16474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16475 conftest.$ac_objext conftest.beam conftest.$ac_ext
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
16481 $as_echo "$gl_cv_func_strstr_linear" >&6; }
16482 case "$gl_cv_func_strstr_linear" in
16490 if test $REPLACE_STRSTR = 1; then
16499 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
16505 if test "$gl_cv_func_memchr_works" != yes; then
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
16509 $as_echo_n "checking whether strstr works... " >&6; }
16510 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
16511 $as_echo_n "(cached) " >&6
16513 if test "$cross_compiling" = yes; then :
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16517 #ifdef __GNU_LIBRARY__
16518 #include <features.h>
16519 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16520 || defined __UCLIBC__
16523 #elif defined __CYGWIN__
16524 #include <cygwin/version.h>
16525 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16534 $EGREP "Lucky user" >/dev/null 2>&1; then :
16535 gl_cv_func_strstr_works_always="guessing yes"
16537 gl_cv_func_strstr_works_always="guessing no"
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16546 #include <string.h> /* for strstr */
16547 #define P "_EF_BF_BD"
16548 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16549 #define NEEDLE P P P P P
16554 return !!strstr (HAYSTACK, NEEDLE);
16560 if ac_fn_c_try_run "$LINENO"; then :
16561 gl_cv_func_strstr_works_always=yes
16563 gl_cv_func_strstr_works_always=no
16565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16566 conftest.$ac_objext conftest.beam conftest.$ac_ext
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
16572 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
16573 case "$gl_cv_func_strstr_works_always" in
16581 if test $REPLACE_STRSTR = 1; then
16590 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
16604 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
16612 for ac_func in strtok_r
16614 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
16615 if test "x$ac_cv_func_strtok_r" = x""yes; then :
16616 cat >>confdefs.h <<_ACEOF
16617 #define HAVE_STRTOK_R 1
16623 if test $ac_cv_func_strtok_r = yes; then
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
16626 $as_echo_n "checking whether strtok_r works... " >&6; }
16627 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
16628 $as_echo_n "(cached) " >&6
16630 if test "$cross_compiling" = yes; then :
16633 # Guess no on glibc systems.
16634 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
16635 *) gl_cv_func_strtok_r_works="guessing yes";;
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16642 #ifndef __OPTIMIZE__
16643 # define __OPTIMIZE__ 1
16645 #undef __OPTIMIZE_SIZE__
16646 #undef __NO_INLINE__
16647 #include <stdlib.h>
16648 #include <string.h>
16653 static const char dummy[] = "\177\01a";
16654 char delimiters[] = "xxxxxxxx";
16655 char *save_ptr = (char *) dummy;
16656 strtok_r (delimiters, "x", &save_ptr);
16657 strtok_r (NULL, "x", &save_ptr);
16665 if ac_fn_c_try_run "$LINENO"; then :
16666 gl_cv_func_strtok_r_works=yes
16668 gl_cv_func_strtok_r_works=no
16670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16671 conftest.$ac_objext conftest.beam conftest.$ac_ext
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
16677 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
16678 case "$gl_cv_func_strtok_r_works" in
16680 UNDEFINE_STRTOK_R=1
16687 if test $ac_cv_have_decl_strtok_r = no; then
16688 HAVE_DECL_STRTOK_R=0
16691 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
16700 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
16717 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
16735 if test $gl_cv_have_include_next = yes; then
16736 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16739 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16740 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
16741 $as_echo_n "(cached) " >&6
16744 if test $ac_cv_header_sys_stat_h = yes; then
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16749 #include <sys/stat.h>
16753 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16754 *) gl_absname_cpp="$ac_cpp" ;;
16759 gl_dirsep_regex='[/\\]'
16762 gl_dirsep_regex='\/'
16765 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16767 gl_header_literal_regex=`echo 'sys/stat.h' \
16768 |
sed -e "$gl_make_literal_regex_sed"`
16769 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16770 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16775 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16776 sed -n "$gl_absolute_header_sed"`'"'
16778 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16784 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
16786 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
16788 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16790 gl_next_as_first_directive='<'sys/stat.h'>'
16792 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16793 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
16795 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
16807 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
16809 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
16813 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
16814 #include <sys/stat.h>
16816 if test "x$ac_cv_type_nlink_t" = x""yes; then :
16820 $as_echo "#define nlink_t int" >>confdefs.h
16826 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
16827 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16829 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16830 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16831 $as_echo_n "(cached) " >&6
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16835 #include <sys/stat.h>
16846 if ac_fn_c_try_compile "$LINENO"; then :
16847 eval "$as_gl_Symbol=yes"
16849 eval "$as_gl_Symbol=no"
16851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853 eval ac_res=\$$as_gl_Symbol
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16855 $as_echo "$ac_res" >&6; }
16856 eval as_val=\$$as_gl_Symbol
16857 if test "x$as_val" = x""yes; then :
16858 cat >>confdefs.h <<_ACEOF
16859 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16862 eval ac_cv_have_decl_$gl_func=yes
16879 if test $gl_cv_have_include_next = yes; then
16880 gl_cv_next_sys_types_h='<'sys/types.h'>'
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16883 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16884 if test "${gl_cv_next_sys_types_h+set}" = set; then :
16885 $as_echo_n "(cached) " >&6
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16890 #include <sys/types.h>
16894 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16895 *) gl_absname_cpp="$ac_cpp" ;;
16900 gl_dirsep_regex='[/\\]'
16903 gl_dirsep_regex='\/'
16906 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16908 gl_header_literal_regex=`echo 'sys/types.h' \
16909 |
sed -e "$gl_make_literal_regex_sed"`
16910 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16911 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16916 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16917 sed -n "$gl_absolute_header_sed"`'"'
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16922 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16924 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
16926 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16927 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16928 gl_next_as_first_directive='<'sys/types.h'>'
16930 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16931 gl_next_as_first_directive=$gl_cv_next_sys_types_h
16933 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
16961 if test $gl_cv_have_include_next = yes; then
16962 gl_cv_next_unistd_h='<'unistd.h'>'
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
16965 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
16966 if test "${gl_cv_next_unistd_h+set}" = set; then :
16967 $as_echo_n "(cached) " >&6
16970 if test $ac_cv_header_unistd_h = yes; then
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975 #include <unistd.h>
16979 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16980 *) gl_absname_cpp="$ac_cpp" ;;
16985 gl_dirsep_regex='[/\\]'
16988 gl_dirsep_regex='\/'
16991 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16993 gl_header_literal_regex=`echo 'unistd.h' \
16994 |
sed -e "$gl_make_literal_regex_sed"`
16995 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16996 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17001 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17002 sed -n "$gl_absolute_header_sed"`'"'
17004 gl_cv_next_unistd_h='<'unistd.h'>'
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17010 $as_echo "$gl_cv_next_unistd_h" >&6; }
17012 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17014 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17015 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17016 gl_next_as_first_directive='<'unistd.h'>'
17018 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17019 gl_next_as_first_directive=$gl_cv_next_unistd_h
17021 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17026 if test $ac_cv_header_unistd_h = yes; then
17038 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
17039 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17041 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17042 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17043 $as_echo_n "(cached) " >&6
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17049 # include <unistd.h>
17051 /* Some systems declare various items in the wrong headers. */
17052 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17053 # include <fcntl.h>
17054 # include <stdio.h>
17055 # include <stdlib.h>
17056 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17070 if ac_fn_c_try_compile "$LINENO"; then :
17071 eval "$as_gl_Symbol=yes"
17073 eval "$as_gl_Symbol=no"
17075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17077 eval ac_res=\$$as_gl_Symbol
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17079 $as_echo "$ac_res" >&6; }
17080 eval as_val=\$$as_gl_Symbol
17081 if test "x$as_val" = x""yes; then :
17082 cat >>confdefs.h <<_ACEOF
17083 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17086 eval ac_cv_have_decl_$gl_func=yes
17103 if test $gl_cv_have_include_next = yes; then
17104 gl_cv_next_wchar_h='<'wchar.h'>'
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
17107 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17108 if test "${gl_cv_next_wchar_h+set}" = set; then :
17109 $as_echo_n "(cached) " >&6
17112 if test $ac_cv_header_wchar_h = yes; then
17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h. */
17121 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17122 *) gl_absname_cpp="$ac_cpp" ;;
17127 gl_dirsep_regex='[/\\]'
17130 gl_dirsep_regex='\/'
17133 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17135 gl_header_literal_regex=`echo 'wchar.h' \
17136 |
sed -e "$gl_make_literal_regex_sed"`
17137 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17138 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17143 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17144 sed -n "$gl_absolute_header_sed"`'"'
17146 gl_cv_next_wchar_h='<'wchar.h'>'
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
17152 $as_echo "$gl_cv_next_wchar_h" >&6; }
17154 NEXT_WCHAR_H=$gl_cv_next_wchar_h
17156 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17158 gl_next_as_first_directive='<'wchar.h'>'
17160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17161 gl_next_as_first_directive=$gl_cv_next_wchar_h
17163 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
17168 if test $ac_cv_header_wchar_h = yes; then
17178 if test $gt_cv_c_wint_t = yes; then
17186 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
17187 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17189 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17190 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17191 $as_echo_n "(cached) " >&6
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h. */
17196 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17198 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17199 included before <wchar.h>. */
17200 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17201 # include <stddef.h>
17202 # include <stdio.h>
17216 if ac_fn_c_try_compile "$LINENO"; then :
17217 eval "$as_gl_Symbol=yes"
17219 eval "$as_gl_Symbol=no"
17221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223 eval ac_res=\$$as_gl_Symbol
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17225 $as_echo "$ac_res" >&6; }
17226 eval as_val=\$$as_gl_Symbol
17227 if test "x$as_val" = x""yes; then :
17228 cat >>confdefs.h <<_ACEOF
17229 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17232 eval ac_cv_have_decl_$gl_func=yes
17242 if test $ac_cv_func_iswcntrl = yes; then
17250 if test $gt_cv_c_wint_t = yes; then
17266 if test $gl_cv_have_include_next = yes; then
17267 gl_cv_next_wctype_h='<'wctype.h'>'
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
17270 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
17271 if test "${gl_cv_next_wctype_h+set}" = set; then :
17272 $as_echo_n "(cached) " >&6
17275 if test $ac_cv_header_wctype_h = yes; then
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17280 #include <wctype.h>
17284 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17285 *) gl_absname_cpp="$ac_cpp" ;;
17290 gl_dirsep_regex='[/\\]'
17293 gl_dirsep_regex='\/'
17296 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17298 gl_header_literal_regex=`echo 'wctype.h' \
17299 |
sed -e "$gl_make_literal_regex_sed"`
17300 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17301 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17306 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17307 sed -n "$gl_absolute_header_sed"`'"'
17309 gl_cv_next_wctype_h='<'wctype.h'>'
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
17315 $as_echo "$gl_cv_next_wctype_h" >&6; }
17317 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
17319 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17321 gl_next_as_first_directive='<'wctype.h'>'
17323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17324 gl_next_as_first_directive=$gl_cv_next_wctype_h
17326 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
17331 if test $ac_cv_header_wctype_h = yes; then
17332 if test $ac_cv_func_iswcntrl = yes; then
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
17334 $as_echo_n "checking whether iswcntrl works... " >&6; }
17335 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
17336 $as_echo_n "(cached) " >&6
17339 if test "$cross_compiling" = yes; then :
17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h. */
17342 #include <stdlib.h>
17343 #if __GNU_LIBRARY__ == 1
17344 Linux libc5 i18n is broken.
17354 if ac_fn_c_try_compile "$LINENO"; then :
17355 gl_cv_func_iswcntrl_works="guessing yes"
17357 gl_cv_func_iswcntrl_works="guessing no"
17359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363 /* end confdefs.h. */
17365 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17366 included before <wchar.h>.
17367 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17368 must be included before <wchar.h>. */
17369 #include <stddef.h>
17373 #include <wctype.h>
17374 int main () { return iswprint ('x') == 0; }
17377 if ac_fn_c_try_run "$LINENO"; then :
17378 gl_cv_func_iswcntrl_works=yes
17380 gl_cv_func_iswcntrl_works=no
17382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17383 conftest.$ac_objext conftest.beam conftest.$ac_ext
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
17389 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
17397 case "$gl_cv_func_iswcntrl_works" in
17398 *yes) REPLACE_ISWCNTRL=0 ;;
17399 *) REPLACE_ISWCNTRL=1 ;;
17403 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
17407 if test $REPLACE_ISWCNTRL = 1; then
17410 for ac_func in towlower
17412 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
17413 if test "x$ac_cv_func_towlower" = x""yes; then :
17414 cat >>confdefs.h <<_ACEOF
17415 #define HAVE_TOWLOWER 1
17421 if test $ac_cv_func_towlower = yes; then
17424 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17425 included before <wchar.h>.
17426 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17427 must be included before <wchar.h>. */
17428 #include <stddef.h>
17433 # include <wctype.h>
17437 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
17443 cat >>confdefs.h <<_ACEOF
17444 #define HAVE_DECL_TOWLOWER $ac_have_decl
17447 if test $ac_cv_have_decl_towlower = yes; then
17456 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
17461 $as_echo_n "checking for wctype_t... " >&6; }
17462 if test "${gl_cv_type_wctype_t+set}" = set; then :
17463 $as_echo_n "(cached) " >&6
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466 /* end confdefs.h. */
17467 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17468 included before <wchar.h>.
17469 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17470 must be included before <wchar.h>. */
17471 #include <stddef.h>
17476 # include <wctype.h>
17488 if ac_fn_c_try_compile "$LINENO"; then :
17489 gl_cv_type_wctype_t=yes
17491 gl_cv_type_wctype_t=no
17493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
17497 $as_echo "$gl_cv_type_wctype_t" >&6; }
17498 if test $gl_cv_type_wctype_t = no; then
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
17503 $as_echo_n "checking for wctrans_t... " >&6; }
17504 if test "${gl_cv_type_wctrans_t+set}" = set; then :
17505 $as_echo_n "(cached) " >&6
17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17509 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17510 included before <wchar.h>.
17511 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17512 must be included before <wchar.h>. */
17513 #include <stddef.h>
17517 #include <wctype.h>
17528 if ac_fn_c_try_compile "$LINENO"; then :
17529 gl_cv_type_wctrans_t=yes
17531 gl_cv_type_wctrans_t=no
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
17537 $as_echo "$gl_cv_type_wctrans_t" >&6; }
17538 if test $gl_cv_type_wctrans_t = no; then
17543 for gl_func in wctype iswctype wctrans towctrans ; do
17544 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17546 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17547 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17548 $as_echo_n "(cached) " >&6
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17553 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17555 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17556 included before <wchar.h>. */
17557 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17558 # include <stddef.h>
17559 # include <stdio.h>
17561 # include <wchar.h>
17563 #include <wctype.h>
17574 if ac_fn_c_try_compile "$LINENO"; then :
17575 eval "$as_gl_Symbol=yes"
17577 eval "$as_gl_Symbol=no"
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581 eval ac_res=\$$as_gl_Symbol
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17583 $as_echo "$ac_res" >&6; }
17584 eval as_val=\$$as_gl_Symbol
17585 if test "x$as_val" = x""yes; then :
17586 cat >>confdefs.h <<_ACEOF
17587 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
17590 eval ac_cv_have_decl_$gl_func=yes
17595 # End of code from modules
17616 gl_source_base='tests'
17617 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
17619 gl_module_indicator_condition=$gltests_WITNESS
17629 LIBGNU_LIBDEPS="$gl_libdeps"
17631 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17635 # We don't use automake, but gnulib does. This line lets us generate
17637 am__api_version='1.11'
17639 # Find a good install program. We prefer a C program (faster),
17640 # so one script is as good as another. But avoid the broken or
17641 # incompatible versions:
17642 # SysV /etc/install, /usr/sbin/install
17643 # SunOS /usr/etc/install
17644 # IRIX /sbin/install
17646 # AmigaOS /C/install, which installs bootblocks on floppy discs
17647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
17648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
17649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
17650 # OS/2's system install, which has a completely different semantic
17651 # ./install, which can be erroneously created by make from ./install.sh.
17652 # Reject install programs that cannot install multiple files.
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
17654 $as_echo_n "checking for a BSD-compatible install... " >&6; }
17655 if test -z "$INSTALL"; then
17656 if test "${ac_cv_path_install+set}" = set; then :
17657 $as_echo_n "(cached) " >&6
17659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17660 for as_dir in $PATH
17663 test -z "$as_dir" && as_dir=.
17664 # Account for people who put trailing slashes in PATH elements.
17665 case $as_dir/ in #((
17666 ./ | .// | /[cC]/* | \
17667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
17668 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
17671 # OSF1 and SCO ODT 3.0 have their own names for install.
17672 # Don't use installbsd from OSF since it installs stuff as root
17674 for ac_prog in ginstall scoinst install; do
17675 for ac_exec_ext in '' $ac_executable_extensions; do
17676 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
17677 if test $ac_prog = install &&
17678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17679 # AIX install. It has an incompatible calling convention.
17681 elif test $ac_prog = install &&
17682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17683 # program-specific install script used by HP pwplus--don't use.
17686 rm -rf conftest.one conftest.two conftest.dir
17687 echo one > conftest.one
17688 echo two > conftest.two
17690 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
17691 test -s conftest.one && test -s conftest.two &&
17692 test -s conftest.dir/conftest.one &&
17693 test -s conftest.dir/conftest.two
17695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
17708 rm -rf conftest.one conftest.two conftest.dir
17711 if test "${ac_cv_path_install+set}" = set; then
17712 INSTALL=$ac_cv_path_install
17714 # As a last resort, use the slow shell script. Don't cache a
17715 # value for INSTALL within a source directory, because that will
17716 # break other packages using the cache if that directory is
17717 # removed, or if the value is a relative name.
17718 INSTALL=$ac_install_sh
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
17722 $as_echo "$INSTALL" >&6; }
17724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
17725 # It thinks the first close brace ends the variable substitution.
17726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
17728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
17730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
17733 $as_echo_n "checking whether build environment is sane... " >&6; }
17736 echo timestamp > conftest.file
17737 # Reject unsafe characters in $srcdir or the absolute working directory
17738 # name. Accept space and tab only in the latter.
17742 *[\\\"\#\$\&\'\`$am_lf]*)
17743 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
17746 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
17747 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
17750 # Do `set' in a subshell so we don't clobber the current shell's
17751 # arguments. Must try -L first in case configure is actually a
17752 # symlink; some systems play weird games with the mod time of symlinks
17753 # (eg FreeBSD returns the mod time of the symlink's containing
17756 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
17757 if test "$*" = "X"; then
17759 set X
`ls -t "$srcdir/configure" conftest.file`
17761 rm -f conftest.
file
17762 if test "$*" != "X $srcdir/configure conftest.file" \
17763 && test "$*" != "X conftest.file $srcdir/configure"; then
17765 # If neither matched, then we have a broken ls. This can happen
17766 # if, for instance, CONFIG_SHELL is bash and it inherits a
17767 # broken ls alias from the environment. This has actually
17768 # happened. Such a system could not be considered "sane".
17769 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
17770 alias in your environment" "$LINENO" 5
17773 test "$2" = conftest.
file
17779 as_fn_error
"newly created file is older than distributed files!
17780 Check your system clock" "$LINENO" 5
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17783 $as_echo "yes" >&6; }
17784 test "$program_prefix" != NONE
&&
17785 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
17786 # Use a double $ so make ignores it.
17787 test "$program_suffix" != NONE
&&
17788 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
17789 # Double any \ or $.
17790 # By default was `s,x,x', remove it if useless.
17791 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
17792 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
17794 # expand $ac_aux_dir to an absolute path
17795 am_aux_dir
=`cd $ac_aux_dir && pwd`
17797 if test x
"${MISSING+set}" != xset
; then
17798 case $am_aux_dir in
17800 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
17802 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
17805 # Use eval to expand $SHELL
17806 if eval "$MISSING --run true"; then
17807 am_missing_run
="$MISSING --run "
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
17811 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
17814 if test x
"${install_sh}" != xset
; then
17815 case $am_aux_dir in
17817 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
17819 install_sh
="\${SHELL} $am_aux_dir/install-sh"
17823 # Installed binaries are usually stripped using `strip' when the user
17824 # run `make install-strip'. However `strip' might not be the right
17825 # tool to use in cross-compilation environments, therefore Automake
17826 # will honor the `STRIP' environment variable to overrule this program.
17827 if test "$cross_compiling" != no
; then
17828 if test -n "$ac_tool_prefix"; then
17829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17830 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17832 $as_echo_n "checking for $ac_word... " >&6; }
17833 if test "${ac_cv_prog_STRIP+set}" = set; then :
17834 $as_echo_n "(cached) " >&6
17836 if test -n "$STRIP"; then
17837 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
17839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17840 for as_dir
in $PATH
17843 test -z "$as_dir" && as_dir
=.
17844 for ac_exec_ext
in '' $ac_executable_extensions; do
17845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17846 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
17847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17856 STRIP
=$ac_cv_prog_STRIP
17857 if test -n "$STRIP"; then
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
17859 $as_echo "$STRIP" >&6; }
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862 $as_echo "no" >&6; }
17867 if test -z "$ac_cv_prog_STRIP"; then
17869 # Extract the first word of "strip", so it can be a program name with args.
17870 set dummy strip
; ac_word
=$2
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17872 $as_echo_n "checking for $ac_word... " >&6; }
17873 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
17874 $as_echo_n "(cached) " >&6
17876 if test -n "$ac_ct_STRIP"; then
17877 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
17879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17880 for as_dir
in $PATH
17883 test -z "$as_dir" && as_dir
=.
17884 for ac_exec_ext
in '' $ac_executable_extensions; do
17885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17886 ac_cv_prog_ac_ct_STRIP
="strip"
17887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17896 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
17897 if test -n "$ac_ct_STRIP"; then
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
17899 $as_echo "$ac_ct_STRIP" >&6; }
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17902 $as_echo "no" >&6; }
17905 if test "x$ac_ct_STRIP" = x
; then
17908 case $cross_compiling:$ac_tool_warned in
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17912 ac_tool_warned
=yes ;;
17917 STRIP
="$ac_cv_prog_STRIP"
17921 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
17925 [\\/$
]* | ?
:[\\/]*) ;;
17926 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
17929 for ac_prog
in gawk mawk nawk
awk
17931 # Extract the first word of "$ac_prog", so it can be a program name with args.
17932 set dummy
$ac_prog; ac_word
=$2
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17934 $as_echo_n "checking for $ac_word... " >&6; }
17935 if test "${ac_cv_prog_AWK+set}" = set; then :
17936 $as_echo_n "(cached) " >&6
17938 if test -n "$AWK"; then
17939 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
17941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17942 for as_dir
in $PATH
17945 test -z "$as_dir" && as_dir
=.
17946 for ac_exec_ext
in '' $ac_executable_extensions; do
17947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17948 ac_cv_prog_AWK
="$ac_prog"
17949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17958 AWK
=$ac_cv_prog_AWK
17959 if test -n "$AWK"; then
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
17961 $as_echo "$AWK" >&6; }
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17964 $as_echo "no" >&6; }
17968 test -n "$AWK" && break
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17972 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17974 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17975 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
17976 $as_echo_n "(cached) " >&6
17978 cat >conftest.
make <<\_ACEOF
17981 @
echo '@@@%%%=$(MAKE)=@@@%%%'
17983 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17984 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17985 *@@@
%%%=?
*=@@@
%%%*)
17986 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
17988 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
17990 rm -f conftest.
make
17992 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17994 $as_echo "yes" >&6; }
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17998 $as_echo "no" >&6; }
17999 SET_MAKE
="MAKE=${MAKE-make}"
18002 rm -rf .tst
2>/dev
/null
18003 mkdir .tst
2>/dev
/null
18004 if test -d .tst
; then
18009 rmdir .tst
2>/dev
/null
18011 DEPDIR
="${am__leading_dot}deps"
18013 ac_config_commands
="$ac_config_commands depfiles"
18016 am_make
=${MAKE-make}
18017 cat > confinc
<< 'END'
18019 @
echo this is the am__doit target
18022 # If we don't find an include directive, just comment out the code.
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
18024 $as_echo_n "checking for style of include used by $am_make... " >&6; }
18028 # First try GNU make style include.
18029 echo "include confinc" > confmf
18030 # Ignore all kinds of additional output from `make'.
18031 case `$am_make -s -f confmf 2> /dev/null` in #(
18032 *the\ am__doit\ target
*)
18033 am__include
=include
18038 # Now try BSD make style include.
18039 if test "$am__include" = "#"; then
18040 echo '.include "confinc"' > confmf
18041 case `$am_make -s -f confmf 2> /dev/null` in #(
18042 *the\ am__doit\ target
*)
18043 am__include
=.include
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
18052 $as_echo "$_am_result" >&6; }
18053 rm -f confinc confmf
18055 # Check whether --enable-dependency-tracking was given.
18056 if test "${enable_dependency_tracking+set}" = set; then :
18057 enableval
=$enable_dependency_tracking;
18060 if test "x$enable_dependency_tracking" != xno
; then
18061 am_depcomp
="$ac_aux_dir/depcomp"
18064 if test "x$enable_dependency_tracking" != xno; then
18073 if test "`cd $srcdir && pwd`" != "`pwd`"; then
18074 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
18075 # is not polluted with repeated "-I."
18076 am__isrc
=' -I$(srcdir)'
18077 # test to see if srcdir already configured
18078 if test -f $srcdir/config.status
; then
18079 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
18083 # test whether we have cygpath
18084 if test -z "$CYGPATH_W"; then
18085 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
18086 CYGPATH_W
='cygpath -w'
18093 # Define the identity of the package.
18095 VERSION
=UNUSED-VERSION
18098 # Some tools Automake needs.
18100 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
18103 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
18106 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
18109 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
18112 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
18114 # We need awk for the "check" target. The system "awk" is bad on
18116 # Always define AMTAR for backward compatibility.
18118 AMTAR
=${AMTAR-"${am_missing_run}tar"}
18120 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
18125 depcc
="$CC" am_compiler_list
=
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18128 $as_echo_n "checking dependency style of $depcc... " >&6; }
18129 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
18130 $as_echo_n "(cached) " >&6
18132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18133 # We make a subdir and do the tests there. Otherwise we can end up
18134 # making bogus files that we don't know about and never remove. For
18135 # instance it was reported that on HP-UX the gcc test will end up
18136 # making a dummy file named `D' -- because `-MD' means `put the output
18139 # Copy depcomp to subdir because otherwise we won't find it if we're
18140 # using a relative directory.
18141 cp "$am_depcomp" conftest.dir
18143 # We will build objects and dependencies in a subdirectory because
18144 # it helps to detect inapplicable dependency modes. For instance
18145 # both Tru64's cc and ICC support -MD to output dependencies as a
18146 # side effect of compilation, but ICC will put the dependencies in
18147 # the current directory while Tru64 will put them in the object
18151 am_cv_CC_dependencies_compiler_type
=none
18152 if test "$am_compiler_list" = ""; then
18153 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18155 am__universal
=false
18156 case " $depcc " in #(
18157 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
18160 for depmode
in $am_compiler_list; do
18161 # Setup a source with many dependencies, because some compilers
18162 # like to wrap large dependency lists on column 80 (with \), and
18163 # we should not choose a depcomp mode which is confused by this.
18165 # We need to recreate these files for each test, as the compiler may
18166 # overwrite some of them when testing with obscure command lines.
18167 # This happens at least with the AIX C compiler.
18169 for i
in 1 2 3 4 5 6; do
18170 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
18171 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18172 # Solaris 8's {/usr,}/bin/sh.
18173 touch sub
/conftst
$i.h
18175 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18177 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18178 # mode. It turns out that the SunPro C++ compiler does not properly
18179 # handle `-M -o', and we need to detect this. Also, some Intel
18180 # versions had trouble with output in subdirs
18181 am__obj
=sub
/conftest.
${OBJEXT-o}
18182 am__minus_obj
="-o $am__obj"
18185 # This depmode causes a compiler race in universal mode.
18186 test "$am__universal" = false ||
continue
18189 # after this tag, mechanisms are not by side-effect, so they'll
18190 # only be used when explicitly requested
18191 if test "x$enable_dependency_tracking" = xyes
; then
18197 msvisualcpp | msvcmsys
)
18198 # This compiler won't grok `-c -o', but also, the minuso test has
18199 # not run yet. These depmodes are late enough in the game, and
18200 # so weak that their functioning should not be impacted.
18201 am__obj
=conftest.
${OBJEXT-o}
18206 if depmode
=$depmode \
18207 source=sub
/conftest.c object
=$am__obj \
18208 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
18209 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
18210 >/dev
/null
2>conftest.err
&&
18211 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
18212 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
18213 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
18214 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
18215 # icc doesn't choke on unknown options, it will just issue warnings
18216 # or remarks (even with -Werror). So we grep stderr for any message
18217 # that says an option was ignored or not supported.
18218 # When given -MP, icc 7.0 and 7.1 complain thusly:
18219 # icc: Command line warning: ignoring option '-M'; no argument required
18220 # The diagnosis changed in icc 8.0:
18221 # icc: Command line remark: option '-MP' not supported
18222 if (grep 'ignoring option' conftest.err ||
18223 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
18224 am_cv_CC_dependencies_compiler_type
=$depmode
18231 rm -rf conftest.dir
18233 am_cv_CC_dependencies_compiler_type
=none
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18238 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18239 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
18242 test "x$enable_dependency_tracking" != xno \
18243 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
18244 am__fastdepCC_TRUE
=
18245 am__fastdepCC_FALSE
='#'
18247 am__fastdepCC_TRUE
='#'
18248 am__fastdepCC_FALSE
=
18254 # --------------------- #
18255 # Checks for programs. #
18256 # --------------------- #
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18260 $as_echo_n "checking whether ln -s works... " >&6; }
18262 if test "$LN_S" = "ln -s"; then
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18264 $as_echo "yes" >&6; }
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18267 $as_echo "no, using $LN_S" >&6; }
18270 if test -n "$ac_tool_prefix"; then
18271 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18272 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18274 $as_echo_n "checking for $ac_word... " >&6; }
18275 if test "${ac_cv_prog_RANLIB+set}" = set; then :
18276 $as_echo_n "(cached) " >&6
18278 if test -n "$RANLIB"; then
18279 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
18281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18282 for as_dir
in $PATH
18285 test -z "$as_dir" && as_dir
=.
18286 for ac_exec_ext
in '' $ac_executable_extensions; do
18287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18288 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
18289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18298 RANLIB
=$ac_cv_prog_RANLIB
18299 if test -n "$RANLIB"; then
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18301 $as_echo "$RANLIB" >&6; }
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18304 $as_echo "no" >&6; }
18309 if test -z "$ac_cv_prog_RANLIB"; then
18310 ac_ct_RANLIB
=$RANLIB
18311 # Extract the first word of "ranlib", so it can be a program name with args.
18312 set dummy ranlib
; ac_word
=$2
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18314 $as_echo_n "checking for $ac_word... " >&6; }
18315 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
18316 $as_echo_n "(cached) " >&6
18318 if test -n "$ac_ct_RANLIB"; then
18319 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
18321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18322 for as_dir
in $PATH
18325 test -z "$as_dir" && as_dir
=.
18326 for ac_exec_ext
in '' $ac_executable_extensions; do
18327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18328 ac_cv_prog_ac_ct_RANLIB
="ranlib"
18329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18338 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
18339 if test -n "$ac_ct_RANLIB"; then
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18341 $as_echo "$ac_ct_RANLIB" >&6; }
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18344 $as_echo "no" >&6; }
18347 if test "x$ac_ct_RANLIB" = x
; then
18350 case $cross_compiling:$ac_tool_warned in
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18354 ac_tool_warned
=yes ;;
18356 RANLIB
=$ac_ct_RANLIB
18359 RANLIB
="$ac_cv_prog_RANLIB"
18363 if test -n "$ac_tool_prefix"; then
18364 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18365 set dummy
${ac_tool_prefix}ar; ac_word
=$2
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18367 $as_echo_n "checking for $ac_word... " >&6; }
18368 if test "${ac_cv_prog_AR+set}" = set; then :
18369 $as_echo_n "(cached) " >&6
18371 if test -n "$AR"; then
18372 ac_cv_prog_AR
="$AR" # Let the user override the test.
18374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18375 for as_dir
in $PATH
18378 test -z "$as_dir" && as_dir
=.
18379 for ac_exec_ext
in '' $ac_executable_extensions; do
18380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18381 ac_cv_prog_AR
="${ac_tool_prefix}ar"
18382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18392 if test -n "$AR"; then
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
18394 $as_echo "$AR" >&6; }
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18397 $as_echo "no" >&6; }
18402 if test -z "$ac_cv_prog_AR"; then
18404 # Extract the first word of "ar", so it can be a program name with args.
18405 set dummy
ar; ac_word
=$2
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18407 $as_echo_n "checking for $ac_word... " >&6; }
18408 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
18409 $as_echo_n "(cached) " >&6
18411 if test -n "$ac_ct_AR"; then
18412 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
18414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18415 for as_dir
in $PATH
18418 test -z "$as_dir" && as_dir
=.
18419 for ac_exec_ext
in '' $ac_executable_extensions; do
18420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18421 ac_cv_prog_ac_ct_AR
="ar"
18422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18431 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
18432 if test -n "$ac_ct_AR"; then
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
18434 $as_echo "$ac_ct_AR" >&6; }
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18437 $as_echo "no" >&6; }
18440 if test "x$ac_ct_AR" = x
; then
18443 case $cross_compiling:$ac_tool_warned in
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18447 ac_tool_warned
=yes ;;
18452 AR
="$ac_cv_prog_AR"
18456 # ---------------------- #
18457 # Checks for libraries. #
18458 # ---------------------- #
18460 ac_config_files
="$ac_config_files Makefile import/Makefile"
18462 ac_config_commands
="$ac_config_commands default"
18464 cat >confcache
<<\_ACEOF
18465 # This file is a shell script that caches the results of configure
18466 # tests run on this system so they can be shared between configure
18467 # scripts and configure runs, see configure's option --config-cache.
18468 # It is not useful on other systems. If it contains results you don't
18469 # want to keep, you may remove or edit it.
18471 # config.status only pays attention to the cache file if you give it
18472 # the --recheck option to rerun configure.
18474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18476 # following values.
18480 # The following way of writing the cache mishandles newlines in values,
18481 # but we know of no workaround that is simple, portable, and efficient.
18482 # So, we kill variables containing newlines.
18483 # Ultrix sh set writes to stderr and can't be redirected directly,
18484 # and sets the high bit in the cache file unless we assign to the vars.
18486 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18487 eval ac_val
=\$
$ac_var
18491 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18492 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18495 _ | IFS | as_nl
) ;; #(
18496 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
18497 *) { eval $ac_var=; unset $ac_var;} ;;
18503 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18504 *${as_nl}ac_space
=\
*)
18505 # `set' does not quote correctly, so add quotes: double-quote
18506 # substitution turns \\\\ into \\, and sed turns \\ into \.
18509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18512 # `set' quotes correctly as required by POSIX, so do not add quotes.
18513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18526 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
18527 if test -w "$cache_file"; then
18528 test "x$cache_file" != "x/dev/null" &&
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18530 $as_echo "$as_me: updating cache $cache_file" >&6;}
18531 cat confcache
>$cache_file
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18534 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18539 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18540 # Let make expand exec_prefix.
18541 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18543 DEFS
=-DHAVE_CONFIG_H
18547 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18548 # 1. Remove the extension, and $U if already installed.
18549 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
18550 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
18551 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18552 # will be set to the directory where LIBOBJS objects are built.
18553 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18554 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
18556 LIBOBJS
=$ac_libobjs
18558 LTLIBOBJS
=$ac_ltlibobjs
18561 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18562 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
18563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18565 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18566 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
18567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18569 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
18570 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
18571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18573 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
18574 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
18575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18577 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
18578 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
18579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18581 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
18582 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
18583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18585 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
18586 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
18587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18591 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
18592 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
18593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18595 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
18596 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
18597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18602 if test -n "$gl_LIBOBJS"; then
18603 # Remove the extension.
18604 sed_drop_objext
='s/\.o$//;s/\.obj$//'
18605 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18606 gl_libobjs
="$gl_libobjs $i.$ac_objext"
18607 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
18610 gl_LIBOBJS
=$gl_libobjs
18612 gl_LTLIBOBJS
=$gl_ltlibobjs
18618 if test -n "$gltests_LIBOBJS"; then
18619 # Remove the extension.
18620 sed_drop_objext
='s/\.o$//;s/\.obj$//'
18621 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18622 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
18623 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
18626 gltests_LIBOBJS
=$gltests_libobjs
18628 gltests_LTLIBOBJS
=$gltests_ltlibobjs
18631 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18632 as_fn_error
"conditional \"AMDEP\" was never defined.
18633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18635 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18636 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
18637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18639 if test -n "$EXEEXT"; then
18641 am__EXEEXT_FALSE
='#'
18643 am__EXEEXT_TRUE
='#'
18648 : ${CONFIG_STATUS=./config.status}
18650 ac_clean_files_save
=$ac_clean_files
18651 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18653 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18655 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18657 # Generated by $as_me.
18658 # Run this file to recreate the current configuration.
18659 # Compiler output produced by configure, useful for debugging
18660 # configure, is in config.log if it exists.
18663 ac_cs_recheck=false
18666 SHELL=\${CONFIG_SHELL-$SHELL}
18669 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
18670 ## -------------------- ##
18671 ## M4sh Initialization. ##
18672 ## -------------------- ##
18674 # Be more Bourne compatible
18675 DUALCASE
=1; export DUALCASE
# for MKS sh
18676 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
18679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18680 # is contrary to our usage. Disable this feature.
18681 alias -g '${1+"$@"}'='"$@"'
18682 setopt NO_GLOB_SUBST
18684 case `(set -o) 2>/dev/null` in #(
18696 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18697 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18698 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18699 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18700 # Prefer a ksh shell builtin over an external printf program on Solaris,
18701 # but without wasting forks for bash or zsh.
18702 if test -z "$BASH_VERSION$ZSH_VERSION" \
18703 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18704 as_echo='print
-r --'
18705 as_echo_n='print
-rn --'
18706 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18707 as_echo='printf %s
\n'
18708 as_echo_n='printf %s
'
18710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18711 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18712 as_echo_n='/usr
/ucb
/echo -n'
18714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18715 as_echo_n_body='eval
18719 expr "X$arg" : "X\\(.*\\)$as_nl";
18720 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18722 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18724 export as_echo_n_body
18725 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18727 export as_echo_body
18728 as_echo='sh
-c $as_echo_body as_echo
'
18731 # The user is always right.
18732 if test "${PATH_SEPARATOR+set}" != set; then
18734 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18735 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18742 # We need space, tab and new line, in precisely that order. Quoting is
18743 # there to prevent editors from complaining about space-tab.
18744 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18745 # splitting by setting IFS to empty value.)
18748 # Find who we are. Look in the path if we contain no directory separator.
18750 *[\\/]* ) as_myself=$0 ;;
18751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18752 for as_dir in $PATH
18755 test -z "$as_dir" && as_dir=.
18756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18762 # We did not find ourselves, most probably we were run as `sh COMMAND'
18763 # in which case we are not to be found in the path.
18764 if test "x$as_myself" = x
; then
18767 if test ! -f "$as_myself"; then
18768 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18772 # Unset variables that we do not need and which cause bugs (e.g. in
18773 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18774 # suppresses any "Segmentation fault" message there. '((' could
18775 # trigger a bug in pdksh 5.2.14.
18776 for as_var
in BASH_ENV ENV MAIL MAILPATH
18777 do eval test x\
${$as_var+set} = xset \
18778 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18791 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18794 # as_fn_error ERROR [LINENO LOG_FD]
18795 # ---------------------------------
18796 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18797 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18798 # script with status $?, using 1 if that was 0.
18801 as_status
=$?
; test $as_status -eq 0 && as_status
=1
18803 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18804 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18806 $as_echo "$as_me: error: $1" >&2
18807 as_fn_exit
$as_status
18811 # as_fn_set_status STATUS
18812 # -----------------------
18813 # Set $? to STATUS, without forking.
18814 as_fn_set_status
()
18817 } # as_fn_set_status
18819 # as_fn_exit STATUS
18820 # -----------------
18821 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18825 as_fn_set_status
$1
18831 # Portably unset VAR.
18834 { eval $1=; unset $1;}
18836 as_unset
=as_fn_unset
18837 # as_fn_append VAR VALUE
18838 # ----------------------
18839 # Append the text in VALUE to the end of the definition contained in VAR. Take
18840 # advantage of any shell optimizations that allow amortized linear growth over
18841 # repeated appends, instead of the typical quadratic growth present in naive
18843 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18844 eval 'as_fn_append ()
18855 # as_fn_arith ARG...
18856 # ------------------
18857 # Perform arithmetic evaluation on the ARGs, and store the result in the
18858 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18859 # must be portable across $(()) and expr.
18860 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18861 eval 'as_fn_arith ()
18868 as_val
=`expr "$@" || test $? -eq 1`
18873 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18874 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18880 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18881 as_basename
=basename
18886 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18892 as_me
=`$as_basename -- "$0" ||
18893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18894 X"$0" : 'X\(//\)$' \| \
18895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18897 sed '/^.*\/\([^/][^/]*\)\/*$/{
18911 # Avoid depending upon Character Ranges.
18912 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18913 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18914 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18915 as_cr_digits
='0123456789'
18916 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18918 ECHO_C
= ECHO_N
= ECHO_T
=
18919 case `echo -n x` in #(((((
18921 case `echo 'xy\c'` in
18922 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18924 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18931 rm -f conf$$ conf$$.exe conf$$.
file
18932 if test -d conf$$.dir
; then
18933 rm -f conf$$.dir
/conf$$.
file
18936 mkdir conf$$.dir
2>/dev
/null
18938 if (echo >conf$$.
file) 2>/dev
/null
; then
18939 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18941 # ... but there are two gotchas:
18942 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18943 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18944 # In both cases, we have to default to `cp -p'.
18945 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18947 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18955 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18956 rmdir conf$$.dir
2>/dev
/null
18961 # Create "$as_dir" as a directory, including parents if necessary.
18966 -*) as_dir
=.
/$as_dir;;
18968 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18972 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18973 *) as_qdir
=$as_dir;;
18975 as_dirs
="'$as_qdir' $as_dirs"
18976 as_dir
=`$as_dirname -- "$as_dir" ||
18977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18978 X"$as_dir" : 'X\(//\)[^/]' \| \
18979 X"$as_dir" : 'X\(//\)$' \| \
18980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18981 $as_echo X"$as_dir" |
18982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18986 /^X\(\/\/\)[^/].*/{
18999 test -d "$as_dir" && break
19001 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19002 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
19006 if mkdir
-p .
2>/dev
/null
; then
19007 as_mkdir_p
='mkdir -p "$as_dir"'
19009 test -d .
/-p && rmdir .
/-p
19013 if test -x / >/dev
/null
2>&1; then
19014 as_test_x
='test -x'
19016 if ls -dL / >/dev
/null
2>&1; then
19023 if test -d "$1"; then
19029 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19030 ???[sx]*):;;*)false;;esac;fi
19034 as_executable_p
=$as_test_x
19036 # Sed expression to map a string onto a valid CPP name.
19037 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19039 # Sed expression to map a string onto a valid variable name.
19040 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19044 ## ----------------------------------- ##
19045 ## Main body of $CONFIG_STATUS script. ##
19046 ## ----------------------------------- ##
19048 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19051 # Save the log message, to keep $0 and so on meaningful, and to
19052 # report actual input values of CONFIG_FILES etc. instead of their
19053 # values after options handling.
19055 This file was extended by $as_me, which was
19056 generated by GNU Autoconf 2.64. Invocation command line was
19058 CONFIG_FILES = $CONFIG_FILES
19059 CONFIG_HEADERS = $CONFIG_HEADERS
19060 CONFIG_LINKS = $CONFIG_LINKS
19061 CONFIG_COMMANDS = $CONFIG_COMMANDS
19064 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19069 case $ac_config_files in *"
19070 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19073 case $ac_config_headers in *"
19074 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19079 # Files that config.status was made for.
19080 config_files="$ac_config_files"
19081 config_headers="$ac_config_headers"
19082 config_commands="$ac_config_commands"
19086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19088 \`$as_me' instantiates files and other configuration actions
19089 from templates according to the current configuration. Unless the files
19090 and actions are specified as TAGs, all are instantiated by default.
19092 Usage: $0 [OPTION]... [TAG]...
19094 -h, --help print this help, then exit
19095 -V, --version print version number and configuration settings, then exit
19096 -q, --quiet, --silent
19097 do not print progress messages
19098 -d, --debug don't remove temporary files
19099 --recheck update $as_me by reconfiguring in the same conditions
19100 --file=FILE[:TEMPLATE]
19101 instantiate the configuration file FILE
19102 --header=FILE[:TEMPLATE]
19103 instantiate the configuration header FILE
19105 Configuration files:
19108 Configuration headers:
19111 Configuration commands:
19114 Report bugs to the package provider."
19117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19120 configured by $0, generated by GNU Autoconf 2.64,
19121 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19123 Copyright (C) 2009 Free Software Foundation, Inc.
19124 This config.status script is free software; the Free Software Foundation
19125 gives unlimited permission to copy, distribute and modify it."
19132 test -n "\$AWK" || AWK=awk
19135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19136 # The default lists apply if the user does not specify any file.
19142 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19143 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19154 # Handling of the options.
19155 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19157 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19158 $as_echo "$ac_cs_version"; exit ;;
19159 --debug |
--debu |
--deb |
--de |
--d |
-d )
19161 --file |
--fil |
--fi |
--f )
19164 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19166 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19167 ac_need_defaults
=false
;;
19168 --header |
--heade |
--head |
--hea )
19171 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19173 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19174 ac_need_defaults
=false
;;
19176 # Conflict between --help and --header
19177 as_fn_error
"ambiguous option: \`$1'
19178 Try \`$0 --help' for more information.";;
19179 --help |
--hel |
-h )
19180 $as_echo "$ac_cs_usage"; exit ;;
19181 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19182 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19185 # This is an error.
19186 -*) as_fn_error
"unrecognized option: \`$1'
19187 Try \`$0 --help' for more information." ;;
19189 *) as_fn_append ac_config_targets
" $1"
19190 ac_need_defaults
=false
;;
19196 ac_configure_extra_args
=
19198 if $ac_cs_silent; then
19200 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 if \$ac_cs_recheck; then
19206 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19208 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19209 CONFIG_SHELL='$SHELL'
19210 export CONFIG_SHELL
19215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19219 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19220 ## Running $as_me. ##
19226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19230 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19236 # Handling of arguments.
19237 for ac_config_target
in $ac_config_targets
19239 case $ac_config_target in
19240 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
19241 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19242 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19243 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
19244 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
19246 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19251 # If the user did not use the arguments to specify the items to instantiate,
19252 # then the envvar interface is used. Set only those that are not.
19253 # We use the long form for the default assignment because of an extremely
19254 # bizarre bug on SunOS 4.1.3.
19255 if $ac_need_defaults; then
19256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19258 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19261 # Have a temporary directory for convenience. Make it in the build tree
19262 # simply because there is no reason against having it here, and in addition,
19263 # creating and moving files from /tmp can sometimes cause problems.
19264 # Hook for its removal unless debugging.
19265 # Note that there is a small window in which the directory will not be cleaned:
19266 # after its creation but before its name has been assigned to `$tmp'.
19270 trap 'exit_status=$?
19271 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19273 trap 'as_fn_exit 1' 1 2 13 15
19275 # Create a (secure) tmp directory for tmp files.
19278 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19279 test -n "$tmp" && test -d "$tmp"
19282 tmp
=.
/conf$$
-$RANDOM
19283 (umask 077 && mkdir
"$tmp")
19284 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
19286 # Set up the scripts for CONFIG_FILES section.
19287 # No need to generate them if there are no CONFIG_FILES.
19288 # This happens for instance with `./config.status config.h'.
19289 if test -n "$CONFIG_FILES"; then
19292 ac_cr
=`echo X | tr X '\015'`
19293 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19294 # But we know of no other shell where ac_cr would be empty at this
19295 # point, so we can use a bashism as a fallback.
19296 if test "x$ac_cr" = x
; then
19297 eval ac_cr
=\$
\'\\r
\'
19299 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19300 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19303 ac_cs_awk_cr
=$ac_cr
19306 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19311 echo "cat >conf$$subs.awk <<_ACEOF" &&
19312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19314 } >conf$$subs.sh ||
19315 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
19316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19318 for ac_last_try in false false false false false :; do
19319 . ./conf$$subs.sh ||
19320 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
19322 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19323 if test $ac_delim_n = $ac_delim_num; then
19325 elif $ac_last_try; then
19326 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
19328 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19331 rm -f conf$$subs.sh
19333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19334 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
19338 s/^/S["/; s
/!.
*/"]=/
19348 s/\(.\{148\}\).*/\1/
19350 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19355 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19362 s/\(.\{148\}\).*/\1/
19364 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19368 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19373 ' <conf$$subs.awk | sed '
19378 ' >>$CONFIG_STATUS || ac_write_fail=1
19379 rm -f conf$$subs.awk
19380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19382 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
19383 for (key in S) S_is_set[key] = 1
19389 nfields = split(line, field, "@
")
19391 len = length(field[1])
19392 for (i = 2; i < nfields; i++) {
19394 keylen = length(key)
19395 if (S_is_set[key]) {
19397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19398 len += length(value) + length(field[++i])
19409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19410 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19411 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19414 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
19415 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
19418 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19419 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
19420 # trailing colons and then remove the whole line if VPATH becomes empty
19421 # (actually we leave an empty line to preserve line numbers).
19422 if test "x
$srcdir" = x.; then
19423 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19424 s/:*\$(srcdir):*/:/
19425 s/:*\${srcdir}:*/:/
19427 s/^\([^=]*=[ ]*\):*/\1/
19433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19434 fi # test -n "$CONFIG_FILES"
19436 # Set up the scripts for CONFIG_HEADERS section.
19437 # No need to generate them if there are no CONFIG_HEADERS.
19438 # This happens for instance with `./config.status Makefile'.
19439 if test -n "$CONFIG_HEADERS"; then
19440 cat >"$tmp/defines.
awk" <<\_ACAWK ||
19444 # Transform confdefs.h into an awk script `defines.awk', embedded as
19445 # here-document in config.status, that substitutes the proper values into
19446 # config.h.in to produce config.h.
19448 # Create a delimiter string that does not exist in confdefs.h, to ease
19449 # handling of long lines.
19451 for ac_last_try in false false :; do
19452 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
19453 if test -z "$ac_t"; then
19455 elif $ac_last_try; then
19456 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
19458 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19462 # For the awk script, D is an array of macro values keyed by name,
19463 # likewise P contains macro parameters if any. Preserve backslash
19464 # newline sequences.
19466 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19468 s/.\{148\}/&'"$ac_delim"'/g
19471 s/^[ ]*#[ ]*define[ ][ ]*/ /
19478 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
19480 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
19484 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
19485 D["\
1"]=" \
3\\\\\\n
"\\/p
19487 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
19492 s/.\{148\}/&'"$ac_delim"'/g
19497 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
19500 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
19502 ' <confdefs.h | sed '
19503 s/'"$ac_delim"'/"\\\
19504 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19507 for (key in D) D_is_set[key] = 1
19510 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19512 split(line, arg, " ")
19513 if (arg[1] == "#") {
19517 defundef
= substr
(arg
[1], 2)
19520 split(mac1
, mac2
, "(") #)
19522 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
19523 if (D_is_set
[macro
]) {
19524 # Preserve the white space surrounding the "#".
19525 print prefix
"define", macro P
[macro
] D
[macro
]
19528 # Replace #undef with comments. This is necessary, for example,
19529 # in the case of _POSIX_SOURCE, which is predefined and required
19530 # on some systems where configure will not decide to define it.
19531 if (defundef
== "undef") {
19532 print
"/*", prefix defundef
, macro
, "*/"
19540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19541 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
19542 fi # test -n "$CONFIG_HEADERS"
19545 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19550 :[FHLC
]) ac_mode
=$ac_tag; continue;;
19552 case $ac_mode$ac_tag in
19554 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
19555 :[FH
]-) ac_tag
=-:-;;
19556 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19573 -) ac_f
="$tmp/stdin";;
19574 *) # Look for the file first in the build tree, then in the source tree
19575 # (if the path is not absolute). The absolute path cannot be DOS-style,
19576 # because $ac_f cannot contain `:'.
19580 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19582 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
19584 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19585 as_fn_append ac_file_inputs
" '$ac_f'"
19588 # Let's still pretend it is `configure' which instantiates (i.e., don't
19589 # use $as_me), people would be surprised to read:
19590 # /* config.h. Generated by config.status. */
19591 configure_input
='Generated from '`
19592 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19594 if test x
"$ac_file" != x-
; then
19595 configure_input
="$ac_file. $configure_input"
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19597 $as_echo "$as_me: creating $ac_file" >&6;}
19599 # Neutralize special characters interpreted by sed in replacement strings.
19600 case $configure_input in #(
19601 *\
&* |
*\|
* |
*\\* )
19602 ac_sed_conf_input
=`$as_echo "$configure_input" |
19603 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19604 *) ac_sed_conf_input
=$configure_input;;
19608 *:-:* |
*:-) cat >"$tmp/stdin" \
19609 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
19614 ac_dir
=`$as_dirname -- "$ac_file" ||
19615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19616 X"$ac_file" : 'X\(//\)[^/]' \| \
19617 X"$ac_file" : 'X\(//\)$' \| \
19618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19619 $as_echo X"$ac_file" |
19620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19624 /^X\(\/\/\)[^/].*/{
19637 as_dir
="$ac_dir"; as_fn_mkdir_p
19641 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19643 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19644 # A ".." for each directory in $ac_dir_suffix.
19645 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19646 case $ac_top_builddir_sub in
19647 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19648 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19651 ac_abs_top_builddir
=$ac_pwd
19652 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19653 # for backward compatibility:
19654 ac_top_builddir
=$ac_top_build_prefix
19657 .
) # We are building in place.
19659 ac_top_srcdir
=$ac_top_builddir_sub
19660 ac_abs_top_srcdir
=$ac_pwd ;;
19661 [\\/]* | ?
:[\\/]* ) # Absolute name.
19662 ac_srcdir
=$srcdir$ac_dir_suffix;
19663 ac_top_srcdir
=$srcdir
19664 ac_abs_top_srcdir
=$srcdir ;;
19665 *) # Relative name.
19666 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19667 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19668 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19670 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19680 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19681 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19683 ac_MKDIR_P
=$MKDIR_P
19685 [\\/$
]* | ?
:[\\/]* ) ;;
19686 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
19690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19691 # If the template does not know about datarootdir, expand it.
19692 # FIXME: This hack should be removed a few years after 2.60.
19693 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19704 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19705 *datarootdir
*) ac_datarootdir_seen
=yes;;
19706 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19708 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19711 ac_datarootdir_hack='
19712 s&@datadir@&$datadir&g
19713 s&@docdir@&$docdir&g
19714 s&@infodir@&$infodir&g
19715 s&@localedir@&$localedir&g
19716 s&@mandir@&$mandir&g
19717 s&\\\${datarootdir}&$datarootdir&g' ;;
19721 # Neutralize VPATH when `$srcdir' = `.'.
19722 # Shell code in configure.ac might set extrasub.
19723 # FIXME: do we really want to maintain this feature?
19724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19725 ac_sed_extra="$ac_vpsub
19728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19730 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19731 s|@configure_input@|
$ac_sed_conf_input|
;t t
19732 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19733 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19734 s
&@srcdir@
&$ac_srcdir&;t t
19735 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19736 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19737 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19738 s
&@builddir@
&$ac_builddir&;t t
19739 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19740 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19741 s
&@INSTALL@
&$ac_INSTALL&;t t
19742 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
19743 $ac_datarootdir_hack
19745 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
19746 || as_fn_error "could not create
$ac_file" "$LINENO" 5
19748 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19749 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
19750 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19752 which seems to be undefined. Please make sure it is defined." >&5
19753 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19754 which seems to be undefined. Please make sure it is defined." >&2;}
19758 -) cat "$tmp/out" && rm -f "$tmp/out";;
19759 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19761 || as_fn_error "could not create $ac_file" "$LINENO" 5
19767 if test x"$ac_file" != x-; then
19769 $as_echo "/* $configure_input */" \
19770 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19771 } >"$tmp/config.h" \
19772 || as_fn_error "could not create $ac_file" "$LINENO" 5
19773 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19775 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19778 mv "$tmp/config.h" "$ac_file" \
19779 || as_fn_error "could not create $ac_file" "$LINENO" 5
19782 $as_echo "/* $configure_input */" \
19783 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19784 || as_fn_error "could not create -" "$LINENO" 5
19786 # Compute "$ac_file"'s index
in $config_headers.
19789 for _am_header
in $config_headers :; do
19790 case $_am_header in
19791 $_am_arg |
$_am_arg:* )
19794 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19797 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19798 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19799 X"$_am_arg" : 'X\(//\)[^/]' \| \
19800 X"$_am_arg" : 'X\(//\)$' \| \
19801 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19802 $as_echo X"$_am_arg" |
19803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19807 /^X\(\/\/\)[^/].*/{
19819 s/.*/./; q'`/stamp-h
$_am_stamp_count
19822 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19823 $as_echo "$as_me: executing $ac_file commands" >&6;}
19828 case $ac_file$ac_mode in
19829 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19830 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19831 # are listed without --file. Let's play safe and only enable the eval
19832 # if we detect the quoting.
19833 case $CONFIG_FILES in
19834 *\'*) eval set x
"$CONFIG_FILES" ;;
19835 *) set x
$CONFIG_FILES ;;
19840 # Strip MF so we end up with the name of the file.
19841 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19842 # Check whether this is an Automake generated Makefile or not.
19843 # We used to match only the files named `Makefile.in', but
19844 # some people rename them; so instead we look at the file content.
19845 # Grep'ing the first line is not enough: some people post-process
19846 # each Makefile.in and add a new line on top of each file to say so.
19847 # Grep'ing the whole file is not good either: AIX grep has a line
19848 # limit of 2048, but all sed's we know have understand at least 4000.
19849 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19850 dirpart
=`$as_dirname -- "$mf" ||
19851 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19852 X"$mf" : 'X\(//\)[^/]' \| \
19853 X"$mf" : 'X\(//\)$' \| \
19854 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19860 /^X\(\/\/\)[^/].*/{
19876 # Extract the definition of DEPDIR, am__include, and am__quote
19877 # from the Makefile without running `make'.
19878 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19879 test -z "$DEPDIR" && continue
19880 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19881 test -z "am__include" && continue
19882 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19883 # When using ansi2knr, U may be empty or an underscore; expand it
19884 U
=`sed -n 's/^U = //p' < "$mf"`
19885 # Find all dependency output files, they are included files with
19886 # $(DEPDIR) in their names. We invoke sed twice because it is the
19887 # simplest approach to changing $(DEPDIR) to its actual value in the
19889 for file in `sed -n "
19890 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19891 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19892 # Make sure the directory exists.
19893 test -f "$dirpart/$file" && continue
19894 fdir
=`$as_dirname -- "$file" ||
19895 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19896 X"$file" : 'X\(//\)[^/]' \| \
19897 X"$file" : 'X\(//\)$' \| \
19898 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19899 $as_echo X"$file" |
19900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19904 /^X\(\/\/\)[^/].*/{
19917 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19918 # echo "creating $dirpart/$file"
19919 echo '# dummy' > "$dirpart/$file"
19925 case x
$CONFIG_HEADERS in
19926 xconfig.h
:config.
in)
19937 ac_clean_files
=$ac_clean_files_save
19939 test $ac_write_fail = 0 ||
19940 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19943 # configure is writing to config.log, and then calls config.status.
19944 # config.status does its own redirection, appending to config.log.
19945 # Unfortunately, on DOS this fails, as config.log is still kept open
19946 # by configure, so config.status won't be able to write to it; its
19947 # output is simply discarded. So we exec the FD to /dev/null,
19948 # effectively closing config.log, so it can be properly (re)opened and
19949 # appended to by config.status. When coming back to configure, we
19950 # need to make the FD available again.
19951 if test "$no_create" != yes; then
19953 ac_config_status_args
=
19954 test "$silent" = yes &&
19955 ac_config_status_args
="$ac_config_status_args --quiet"
19957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19960 # would make configure fail if this is the last instruction.
19961 $ac_cs_success || as_fn_exit $?
19963 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19965 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}