2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgnu UNUSED-VERSION.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
578 PACKAGE_NAME
='libgnu'
579 PACKAGE_TARNAME
='libgnu'
580 PACKAGE_VERSION
='UNUSED-VERSION'
581 PACKAGE_STRING
='libgnu UNUSED-VERSION'
585 ac_unique_file
="import/memmem.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
624 gl_fnmatch_required
=POSIX
625 ac_subst_vars
='am__EXEEXT_FALSE
655 INSTALL_STRIP_PROGRAM
676 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
690 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
693 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
695 UNISTD_H_DEFINES_STRUCT_TIMESPEC
696 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
697 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
698 TIME_H_DEFINES_STRUCT_TIMESPEC
699 NEXT_AS_FIRST_DIRECTIVE_TIME_H
710 HAVE_DECL_LOCALTIME_R
718 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
721 NEXT_AS_FIRST_DIRECTIVE_STRING_H
723 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
725 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
727 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
729 GL_GENERATE_STDDEF_H_FALSE
730 GL_GENERATE_STDDEF_H_TRUE
736 GL_GENERATE_STDBOOL_H_FALSE
737 GL_GENERATE_STDBOOL_H_TRUE
739 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
742 REPLACE_PTHREAD_SIGMASK
744 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
745 HAVE_STRUCT_SIGACTION_SA_SIGACTION
751 HAVE_POSIX_SIGNALBLOCKING
754 GNULIB_SIGNAL_H_SIGPIPE
756 GNULIB_PTHREAD_SIGMASK
764 REPLACE_STDIO_WRITE_FUNCS
765 REPLACE_STDIO_READ_FUNCS
774 REPLACE_OBSTACK_PRINTF
799 HAVE_DECL_OBSTACK_PRINTF
805 GNULIB_VSPRINTF_POSIX
809 GNULIB_VFPRINTF_POSIX
816 GNULIB_STDIO_H_SIGPIPE
817 GNULIB_STDIO_H_NONBLOCKING
832 GNULIB_OBSTACK_PRINTF_POSIX
833 GNULIB_OBSTACK_PRINTF
1026 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1028 LOCALCHARSET_TESTS_ENVIRONMENT
1030 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1032 UINT64_MAX_EQ_ULONG_MAX
1033 UINT32_MAX_LT_UINTMAX_MAX
1036 INT64_MAX_EQ_LONG_MAX
1037 INT32_MAX_LT_INTMAX_MAX
1048 GL_GENERATE_STDINT_H_FALSE
1049 GL_GENERATE_STDINT_H_TRUE
1061 HAVE_SIGNED_SIG_ATOMIC_T
1064 BITSIZEOF_SIG_ATOMIC_T
1067 APPLE_UNIVERSAL_BUILD
1069 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1074 HAVE_UNSIGNED_LONG_LONG_INT
1076 GL_GENERATE_LIMITS_H_FALSE
1077 GL_GENERATE_LIMITS_H_TRUE
1079 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1082 GL_GENERATE_GLOB_H_FALSE
1083 GL_GENERATE_GLOB_H_TRUE
1085 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1087 REPLACE_STRUCT_TIMEVAL
1088 REPLACE_GETTIMEOFDAY
1096 WINDOWS_64_BIT_ST_SIZE
1097 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1133 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1139 REPLACE_SIGNBIT_USING_GCC
1208 HAVE_DECL_REMAINDERL
1389 GL_GENERATE_FNMATCH_H_FALSE
1390 GL_GENERATE_FNMATCH_H_TRUE
1393 GL_GENERATE_FLOAT_H_FALSE
1394 GL_GENERATE_FLOAT_H_TRUE
1396 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1398 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1415 GL_GENERATE_ERRNO_H_FALSE
1416 GL_GENERATE_ERRNO_H_TRUE
1418 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1421 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1424 PRAGMA_SYSTEM_HEADER
1425 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1452 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1453 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1454 UNISTD_H_HAVE_WINSOCK2_H
1477 REPLACE_GETDTABLESIZE
1478 REPLACE_GETDOMAINNAME
1489 HAVE_DECL_SETHOSTNAME
1490 HAVE_DECL_GETUSERSHELL
1491 HAVE_DECL_GETPAGESIZE
1492 HAVE_DECL_GETLOGIN_R
1493 HAVE_DECL_GETDOMAINNAME
1532 GNULIB_UNISTD_H_SIGPIPE
1533 GNULIB_UNISTD_H_NONBLOCKING
1559 GNULIB_GETDTABLESIZE
1560 GNULIB_GETDOMAINNAME
1590 REPLACE_CANONICALIZE_FILE_NAME
1595 HAVE_STRUCT_RANDOM_DATA
1618 HAVE_DECL_GETLOADAVG
1619 HAVE_CANONICALIZE_FILE_NAME
1630 GNULIB_SECURE_GETENV
1633 GNULIB_REALLOC_POSIX
1651 GNULIB_CANONICALIZE_FILE_NAME
1655 GL_GENERATE_ALLOCA_H_FALSE
1656 GL_GENERATE_ALLOCA_H_TRUE
1659 GL_COND_LIBTOOL_FALSE
1660 GL_COND_LIBTOOL_TRUE
1688 MAINTAINER_MODE_FALSE
1689 MAINTAINER_MODE_TRUE
1717 program_transform_name
1730 enable_option_checking
1731 enable_maintainer_mode
1733 enable_dependency_tracking
1736 ac_precious_vars
='build_alias
1747 # Initialize some variables set by options.
1749 ac_init_version
=false
1750 ac_unrecognized_opts
=
1751 ac_unrecognized_sep
=
1752 # The variables have the same names as the options, with
1753 # dashes changed to underlines.
1754 cache_file
=/dev
/null
1761 program_transform_name
=s
,x
,x
,
1769 # Installation directory options.
1770 # These are left unexpanded so users can "make install exec_prefix=/foo"
1771 # and all the variables that are supposed to be based on exec_prefix
1772 # by default will actually change.
1773 # Use braces instead of parens because sh, perl, etc. also accept them.
1774 # (The list follows the same order as the GNU Coding Standards.)
1775 bindir
='${exec_prefix}/bin'
1776 sbindir
='${exec_prefix}/sbin'
1777 libexecdir
='${exec_prefix}/libexec'
1778 datarootdir
='${prefix}/share'
1779 datadir
='${datarootdir}'
1780 sysconfdir
='${prefix}/etc'
1781 sharedstatedir
='${prefix}/com'
1782 localstatedir
='${prefix}/var'
1783 includedir
='${prefix}/include'
1784 oldincludedir
='/usr/include'
1785 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1786 infodir
='${datarootdir}/info'
1791 libdir
='${exec_prefix}/lib'
1792 localedir
='${datarootdir}/locale'
1793 mandir
='${datarootdir}/man'
1799 # If the previous option needs an argument, assign it.
1800 if test -n "$ac_prev"; then
1801 eval $ac_prev=\
$ac_option
1807 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1812 # Accept the important Cygnus configure options, so we can diagnose typos.
1814 case $ac_dashdash$ac_option in
1818 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1820 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1821 bindir
=$ac_optarg ;;
1823 -build |
--build |
--buil |
--bui |
--bu)
1824 ac_prev
=build_alias
;;
1825 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1826 build_alias
=$ac_optarg ;;
1828 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1829 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1830 ac_prev
=cache_file
;;
1831 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1832 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1833 cache_file
=$ac_optarg ;;
1835 --config-cache |
-C)
1836 cache_file
=config.cache
;;
1838 -datadir |
--datadir |
--datadi |
--datad)
1840 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1841 datadir
=$ac_optarg ;;
1843 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1844 |
--dataroo |
--dataro |
--datar)
1845 ac_prev
=datarootdir
;;
1846 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1847 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1848 datarootdir
=$ac_optarg ;;
1850 -disable-* |
--disable-*)
1851 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1852 # Reject names that are not valid shell variable names.
1853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1854 as_fn_error $?
"invalid feature name: $ac_useropt"
1855 ac_useropt_orig
=$ac_useropt
1856 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1857 case $ac_user_opts in
1859 "enable_
$ac_useropt"
1861 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1862 ac_unrecognized_sep
=', ';;
1864 eval enable_
$ac_useropt=no
;;
1866 -docdir |
--docdir |
--docdi |
--doc |
--do)
1868 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1869 docdir
=$ac_optarg ;;
1871 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1873 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1874 dvidir
=$ac_optarg ;;
1876 -enable-* |
--enable-*)
1877 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1878 # Reject names that are not valid shell variable names.
1879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1880 as_fn_error $?
"invalid feature name: $ac_useropt"
1881 ac_useropt_orig
=$ac_useropt
1882 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1883 case $ac_user_opts in
1885 "enable_
$ac_useropt"
1887 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1888 ac_unrecognized_sep
=', ';;
1890 eval enable_
$ac_useropt=\
$ac_optarg ;;
1892 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1893 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1894 |
--exec |
--exe |
--ex)
1895 ac_prev
=exec_prefix
;;
1896 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1897 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1898 |
--exec=* |
--exe=* |
--ex=*)
1899 exec_prefix
=$ac_optarg ;;
1901 -gas |
--gas |
--ga |
--g)
1902 # Obsolete; use --with-gas.
1905 -help |
--help |
--hel |
--he |
-h)
1906 ac_init_help
=long
;;
1907 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1908 ac_init_help
=recursive
;;
1909 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1910 ac_init_help
=short
;;
1912 -host |
--host |
--hos |
--ho)
1913 ac_prev
=host_alias
;;
1914 -host=* |
--host=* |
--hos=* |
--ho=*)
1915 host_alias
=$ac_optarg ;;
1917 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1919 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1921 htmldir
=$ac_optarg ;;
1923 -includedir |
--includedir |
--includedi |
--included |
--include \
1924 |
--includ |
--inclu |
--incl |
--inc)
1925 ac_prev
=includedir
;;
1926 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1927 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1928 includedir
=$ac_optarg ;;
1930 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1932 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1933 infodir
=$ac_optarg ;;
1935 -libdir |
--libdir |
--libdi |
--libd)
1937 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1938 libdir
=$ac_optarg ;;
1940 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1941 |
--libexe |
--libex |
--libe)
1942 ac_prev
=libexecdir
;;
1943 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1944 |
--libexe=* |
--libex=* |
--libe=*)
1945 libexecdir
=$ac_optarg ;;
1947 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1948 ac_prev
=localedir
;;
1949 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1950 localedir
=$ac_optarg ;;
1952 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1953 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1954 ac_prev
=localstatedir
;;
1955 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1956 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1957 localstatedir
=$ac_optarg ;;
1959 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1961 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1962 mandir
=$ac_optarg ;;
1964 -nfp |
--nfp |
--nf)
1965 # Obsolete; use --without-fp.
1968 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1969 |
--no-cr |
--no-c |
-n)
1972 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1973 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1976 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1977 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1978 |
--oldin |
--oldi |
--old |
--ol |
--o)
1979 ac_prev
=oldincludedir
;;
1980 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1981 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1982 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1983 oldincludedir
=$ac_optarg ;;
1985 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1987 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1988 prefix
=$ac_optarg ;;
1990 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1991 |
--program-pre |
--program-pr |
--program-p)
1992 ac_prev
=program_prefix
;;
1993 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1994 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1995 program_prefix
=$ac_optarg ;;
1997 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1998 |
--program-suf |
--program-su |
--program-s)
1999 ac_prev
=program_suffix
;;
2000 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2001 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2002 program_suffix
=$ac_optarg ;;
2004 -program-transform-name |
--program-transform-name \
2005 |
--program-transform-nam |
--program-transform-na \
2006 |
--program-transform-n |
--program-transform- \
2007 |
--program-transform |
--program-transfor \
2008 |
--program-transfo |
--program-transf \
2009 |
--program-trans |
--program-tran \
2010 |
--progr-tra |
--program-tr |
--program-t)
2011 ac_prev
=program_transform_name
;;
2012 -program-transform-name=* |
--program-transform-name=* \
2013 |
--program-transform-nam=* |
--program-transform-na=* \
2014 |
--program-transform-n=* |
--program-transform-=* \
2015 |
--program-transform=* |
--program-transfor=* \
2016 |
--program-transfo=* |
--program-transf=* \
2017 |
--program-trans=* |
--program-tran=* \
2018 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2019 program_transform_name
=$ac_optarg ;;
2021 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2023 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2024 pdfdir
=$ac_optarg ;;
2026 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2028 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2031 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2032 |
-silent |
--silent |
--silen |
--sile |
--sil)
2035 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2037 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2039 sbindir
=$ac_optarg ;;
2041 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2042 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2043 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2045 ac_prev
=sharedstatedir
;;
2046 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2047 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2048 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2050 sharedstatedir
=$ac_optarg ;;
2052 -site |
--site |
--sit)
2054 -site=* |
--site=* |
--sit=*)
2057 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2059 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2060 srcdir
=$ac_optarg ;;
2062 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2063 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2064 ac_prev
=sysconfdir
;;
2065 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2066 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2067 sysconfdir
=$ac_optarg ;;
2069 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2070 ac_prev
=target_alias
;;
2071 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2072 target_alias
=$ac_optarg ;;
2074 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2077 -version |
--version |
--versio |
--versi |
--vers |
-V)
2078 ac_init_version
=: ;;
2081 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2082 # Reject names that are not valid shell variable names.
2083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2084 as_fn_error $?
"invalid package name: $ac_useropt"
2085 ac_useropt_orig
=$ac_useropt
2086 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2087 case $ac_user_opts in
2091 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2092 ac_unrecognized_sep
=', ';;
2094 eval with_
$ac_useropt=\
$ac_optarg ;;
2096 -without-* |
--without-*)
2097 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2098 # Reject names that are not valid shell variable names.
2099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2100 as_fn_error $?
"invalid package name: $ac_useropt"
2101 ac_useropt_orig
=$ac_useropt
2102 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2103 case $ac_user_opts in
2107 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2108 ac_unrecognized_sep
=', ';;
2110 eval with_
$ac_useropt=no
;;
2113 # Obsolete; use --with-x.
2116 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2117 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2118 ac_prev
=x_includes
;;
2119 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2120 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2121 x_includes
=$ac_optarg ;;
2123 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2124 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2125 ac_prev
=x_libraries
;;
2126 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2127 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2128 x_libraries
=$ac_optarg ;;
2130 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2131 Try \`$0 --help' for more information"
2135 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2136 # Reject names that are not valid shell variable names.
2137 case $ac_envvar in #(
2138 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2139 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2141 eval $ac_envvar=\
$ac_optarg
2142 export $ac_envvar ;;
2145 # FIXME: should be removed in autoconf 3.0.
2146 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2147 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2148 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2149 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2155 if test -n "$ac_prev"; then
2156 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2157 as_fn_error $?
"missing argument to $ac_option"
2160 if test -n "$ac_unrecognized_opts"; then
2161 case $enable_option_checking in
2163 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2164 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2168 # Check all directory arguments for consistency.
2169 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2170 datadir sysconfdir sharedstatedir localstatedir includedir \
2171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2172 libdir localedir mandir
2174 eval ac_val
=\$
$ac_var
2175 # Remove trailing slashes.
2178 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2179 eval $ac_var=\
$ac_val;;
2181 # Be sure to have absolute directory names.
2183 [\\/$
]* | ?
:[\\/]* ) continue;;
2184 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2186 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2189 # There might be people who depend on the old broken behavior: `$host'
2190 # used to hold the argument of --host etc.
2191 # FIXME: To remove some day.
2194 target
=$target_alias
2196 # FIXME: To remove some day.
2197 if test "x$host_alias" != x
; then
2198 if test "x$build_alias" = x
; then
2199 cross_compiling
=maybe
2200 elif test "x$build_alias" != "x$host_alias"; then
2206 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2208 test "$silent" = yes && exec 6>/dev
/null
2211 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2212 ac_ls_di
=`ls -di .` &&
2213 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2214 as_fn_error $?
"working directory cannot be determined"
2215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2216 as_fn_error $?
"pwd does not report name of working directory"
2219 # Find the source files, if location was not specified.
2220 if test -z "$srcdir"; then
2221 ac_srcdir_defaulted
=yes
2222 # Try the directory containing this script, then the parent directory.
2223 ac_confdir
=`$as_dirname -- "$as_myself" ||
2224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2225 X"$as_myself" : 'X\(//\)[^/]' \| \
2226 X"$as_myself" : 'X\(//\)$' \| \
2227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2228 $as_echo X"$as_myself" |
2229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2247 if test ! -r "$srcdir/$ac_unique_file"; then
2251 ac_srcdir_defaulted
=no
2253 if test ! -r "$srcdir/$ac_unique_file"; then
2254 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2255 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2257 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2261 # When building in place, set srcdir=.
2262 if test "$ac_abs_confdir" = "$ac_pwd"; then
2265 # Remove unnecessary trailing slashes from srcdir.
2266 # Double slashes in file names in object file debugging info
2267 # mess up M-x gdb in Emacs.
2269 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2271 for ac_var
in $ac_precious_vars; do
2272 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2273 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2274 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2275 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2279 # Report the --help message.
2281 if test "$ac_init_help" = "long"; then
2282 # Omit some internal or obsolete options to make the list less imposing.
2283 # This message is too long to be a string in the A/UX 3.1 sh.
2285 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2287 Usage: $0 [OPTION]... [VAR=VALUE]...
2289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2290 VAR=VALUE. See below for descriptions of some of the useful variables.
2292 Defaults for the options are specified in brackets.
2295 -h, --help display this help and exit
2296 --help=short display options specific to this package
2297 --help=recursive display the short help of all the included packages
2298 -V, --version display version information and exit
2299 -q, --quiet, --silent do not print \`checking ...' messages
2300 --cache-file=FILE cache test results in FILE [disabled]
2301 -C, --config-cache alias for \`--cache-file=config.cache'
2302 -n, --no-create do not create output files
2303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2305 Installation directories:
2306 --prefix=PREFIX install architecture-independent files in PREFIX
2307 [$ac_default_prefix]
2308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2311 By default, \`make install' will install all the files in
2312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2314 for instance \`--prefix=\$HOME'.
2316 For better control, use the options below.
2318 Fine tuning of the installation directories:
2319 --bindir=DIR user executables [EPREFIX/bin]
2320 --sbindir=DIR system admin executables [EPREFIX/sbin]
2321 --libexecdir=DIR program executables [EPREFIX/libexec]
2322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2325 --libdir=DIR object code libraries [EPREFIX/lib]
2326 --includedir=DIR C header files [PREFIX/include]
2327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2330 --infodir=DIR info documentation [DATAROOTDIR/info]
2331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2332 --mandir=DIR man documentation [DATAROOTDIR/man]
2333 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2334 --htmldir=DIR html documentation [DOCDIR]
2335 --dvidir=DIR dvi documentation [DOCDIR]
2336 --pdfdir=DIR pdf documentation [DOCDIR]
2337 --psdir=DIR ps documentation [DOCDIR]
2343 --program-prefix=PREFIX prepend PREFIX to installed program names
2344 --program-suffix=SUFFIX append SUFFIX to installed program names
2345 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2348 --build=BUILD configure
for building on BUILD
[guessed
]
2349 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2350 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2354 if test -n "$ac_init_help"; then
2355 case $ac_init_help in
2356 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2361 --disable-option-checking ignore unrecognized
--enable/--with options
2362 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2363 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2364 --enable-maintainer-mode
2365 enable make rules and dependencies not useful
(and
2366 sometimes confusing
) to the casual installer
2367 --disable-largefile omit support
for large files
2368 --enable-dependency-tracking
2369 do not reject slow dependency extractors
2370 --disable-dependency-tracking
2371 speeds up one-time build
2372 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2373 --disable-silent-rules verbose build output
(undo
: "make V=0")
2375 Some influential environment variables
:
2376 CC C compiler
command
2377 CFLAGS C compiler flags
2378 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2379 nonstandard directory
<lib dir
>
2380 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2381 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2382 you have headers
in a nonstandard directory
<include dir
>
2385 Use these variables to override the choices made by
`configure' or to help
2386 it to find libraries and programs with nonstandard names/locations.
2388 Report bugs to the package provider.
2393 if test "$ac_init_help" = "recursive"; then
2394 # If there are subdirs, report their specific --help.
2395 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2396 test -d "$ac_dir" ||
2397 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2404 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2405 # A ".." for each directory in $ac_dir_suffix.
2406 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2407 case $ac_top_builddir_sub in
2408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2412 ac_abs_top_builddir=$ac_pwd
2413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2414 # for backward compatibility:
2415 ac_top_builddir=$ac_top_build_prefix
2418 .) # We are building in place.
2420 ac_top_srcdir=$ac_top_builddir_sub
2421 ac_abs_top_srcdir=$ac_pwd ;;
2422 [\\/]* | ?:[\\/]* ) # Absolute name.
2423 ac_srcdir=$srcdir$ac_dir_suffix;
2424 ac_top_srcdir=$srcdir
2425 ac_abs_top_srcdir=$srcdir ;;
2427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2428 ac_top_srcdir=$ac_top_build_prefix$srcdir
2429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2433 cd "$ac_dir" || { ac_status=$?; continue; }
2434 # Check for guested configure.
2435 if test -f "$ac_srcdir/configure.gnu"; then
2437 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2438 elif test -f "$ac_srcdir/configure"; then
2440 $SHELL "$ac_srcdir/configure" --help=recursive
2442 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2444 cd "$ac_pwd" || { ac_status=$?; break; }
2448 test -n "$ac_init_help" && exit $ac_status
2449 if $ac_init_version; then
2451 libgnu configure UNUSED-VERSION
2452 generated by GNU Autoconf 2.69
2454 Copyright (C) 2012 Free Software Foundation, Inc.
2455 This configure script is free software; the Free Software Foundation
2456 gives unlimited permission to copy, distribute and modify it.
2461 ## ------------------------ ##
2462 ## Autoconf initialization. ##
2463 ## ------------------------ ##
2465 # ac_fn_c_try_compile LINENO
2466 # --------------------------
2467 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2468 ac_fn_c_try_compile ()
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 rm -f conftest.$ac_objext
2472 if { { ac_try="$ac_compile"
2474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2475 *) ac_try_echo
=$ac_try;;
2477 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2478 $as_echo "$ac_try_echo"; } >&5
2479 (eval "$ac_compile") 2>conftest.err
2481 if test -s conftest.err
; then
2482 grep -v '^ *+' conftest.err
>conftest.er1
2483 cat conftest.er1
>&5
2484 mv -f conftest.er1 conftest.err
2486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2487 test $ac_status = 0; } && {
2488 test -z "$ac_c_werror_flag" ||
2489 test ! -s conftest.err
2490 } && test -s conftest.
$ac_objext; then :
2493 $as_echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.
$ac_ext >&5
2498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499 as_fn_set_status
$ac_retval
2501 } # ac_fn_c_try_compile
2503 # ac_fn_c_try_cpp LINENO
2504 # ----------------------
2505 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2508 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2509 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515 $as_echo "$ac_try_echo"; } >&5
2516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2518 if test -s conftest.err; then
2519 grep -v '^ *+' conftest.err >conftest.er1
2520 cat conftest.er1 >&5
2521 mv -f conftest.er1 conftest.err
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; } > conftest.i && {
2525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2526 test ! -s conftest.err
2530 $as_echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2536 as_fn_set_status $ac_retval
2540 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2541 # -------------------------------------------------------
2542 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2543 # the include files in INCLUDES and setting the cache variable VAR
2545 ac_fn_c_check_header_mongrel ()
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 if eval \${$3+:} false; then :
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if eval \${$3+:} false; then :
2552 $as_echo_n "(cached) " >&6
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2558 # Is the header compilable?
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2560 $as_echo_n "checking $2 usability... " >&6; }
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2566 if ac_fn_c_try_compile "$LINENO"; then :
2567 ac_header_compiler=yes
2569 ac_header_compiler=no
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2573 $as_echo "$ac_header_compiler" >&6; }
2575 # Is the header present?
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2577 $as_echo_n "checking $2 presence... " >&6; }
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2582 if ac_fn_c_try_cpp "$LINENO"; then :
2583 ac_header_preproc=yes
2585 ac_header_preproc=no
2587 rm -f conftest.err conftest.i conftest.$ac_ext
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2589 $as_echo "$ac_header_preproc" >&6; }
2591 # So? What about this header?
2592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2595 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2597 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2601 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2603 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2605 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2607 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2609 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2613 $as_echo_n "checking for $2... " >&6; }
2614 if eval \${$3+:} false; then :
2615 $as_echo_n "(cached) " >&6
2617 eval "$3=\$ac_header_compiler"
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2625 } # ac_fn_c_check_header_mongrel
2627 # ac_fn_c_try_run LINENO
2628 # ----------------------
2629 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2630 # that executables *can* be run.
2633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2634 if { { ac_try="$ac_link"
2636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2637 *) ac_try_echo
=$ac_try;;
2639 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2640 $as_echo "$ac_try_echo"; } >&5
2641 (eval "$ac_link") 2>&5
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2645 { { case "(($ac_try" in
2646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2650 $as_echo "$ac_try_echo"; } >&5
2651 (eval "$ac_try") 2>&5
2653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2654 test $ac_status = 0; }; }; then :
2657 $as_echo "$as_me: program exited with status $ac_status" >&5
2658 $as_echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 ac_retval=$ac_status
2663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2665 as_fn_set_status $ac_retval
2669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2670 # -------------------------------------------------------
2671 # Tests whether HEADER exists and can be compiled using the include files in
2672 # INCLUDES, setting the cache variable VAR accordingly.
2673 ac_fn_c_check_header_compile ()
2675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2677 $as_echo_n "checking for $2... " >&6; }
2678 if eval \${$3+:} false; then :
2679 $as_echo_n "(cached) " >&6
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2686 if ac_fn_c_try_compile "$LINENO"; then :
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2698 } # ac_fn_c_check_header_compile
2700 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2701 # -------------------------------------------
2702 # Tests whether TYPE exists after having included INCLUDES, setting cache
2703 # variable VAR accordingly.
2704 ac_fn_c_check_type ()
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if eval \${$3+:} false; then :
2710 $as_echo_n "(cached) " >&6
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2725 if ac_fn_c_try_compile "$LINENO"; then :
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2738 if ac_fn_c_try_compile "$LINENO"; then :
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749 $as_echo "$ac_res" >&6; }
2750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2752 } # ac_fn_c_check_type
2754 # ac_fn_c_try_link LINENO
2755 # -----------------------
2756 # Try to link conftest.$ac_ext, and return whether this succeeded.
2759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2760 rm -f conftest.$ac_objext conftest$ac_exeext
2761 if { { ac_try="$ac_link"
2763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2764 *) ac_try_echo
=$ac_try;;
2766 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767 $as_echo "$ac_try_echo"; } >&5
2768 (eval "$ac_link") 2>conftest.err
2770 if test -s conftest.err
; then
2771 grep -v '^ *+' conftest.err
>conftest.er1
2772 cat conftest.er1
>&5
2773 mv -f conftest.er1 conftest.err
2775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2776 test $ac_status = 0; } && {
2777 test -z "$ac_c_werror_flag" ||
2778 test ! -s conftest.err
2779 } && test -s conftest
$ac_exeext && {
2780 test "$cross_compiling" = yes ||
2781 test -x conftest
$ac_exeext
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.
$ac_ext >&5
2790 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2791 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2792 # interfere with the next link command; also delete a directory that is
2793 # left behind by Apple's compiler. We do this before executing the actions.
2794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2796 as_fn_set_status
$ac_retval
2798 } # ac_fn_c_try_link
2800 # ac_fn_c_check_func LINENO FUNC VAR
2801 # ----------------------------------
2802 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2803 ac_fn_c_check_func
()
2805 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2807 $as_echo_n "checking for $2... " >&6; }
2808 if eval \
${$3+:} false
; then :
2809 $as_echo_n "(cached) " >&6
2811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2812 /* end confdefs.h. */
2813 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2815 #define $2 innocuous_$2
2817 /* System header to define __stub macros and hopefully few prototypes,
2818 which can conflict with char $2 (); below.
2819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2820 <limits.h> exists even on freestanding compilers. */
2823 # include <limits.h>
2825 # include <assert.h>
2830 /* Override any GCC internal prototype to avoid an error.
2831 Use char because int might match the return type of a GCC
2832 builtin and then its argument prototype would still apply. */
2837 /* The GNU C library defines this for functions which it implements
2838 to always fail with ENOSYS. Some functions are actually named
2839 something starting with __ and the normal name is an alias. */
2840 #if defined __stub_$2 || defined __stub___$2
2852 if ac_fn_c_try_link
"$LINENO"; then :
2857 rm -f core conftest.err conftest.
$ac_objext \
2858 conftest
$ac_exeext conftest.
$ac_ext
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2862 $as_echo "$ac_res" >&6; }
2863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2865 } # ac_fn_c_check_func
2867 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2868 # ---------------------------------------------
2869 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2871 ac_fn_c_check_decl
()
2873 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2874 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2875 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2877 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2878 if eval \
${$3+:} false
; then :
2879 $as_echo_n "(cached) " >&6
2881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2887 #ifndef $as_decl_name
2889 (void) $as_decl_use;
2891 (void) $as_decl_name;
2899 if ac_fn_c_try_compile
"$LINENO"; then :
2904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2908 $as_echo "$ac_res" >&6; }
2909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2911 } # ac_fn_c_check_decl
2913 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2914 # --------------------------------------------
2915 # Tries to find the compile-time value of EXPR in a program that includes
2916 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2918 ac_fn_c_compute_int
()
2920 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2921 if test "$cross_compiling" = yes; then
2922 # Depending upon the size, compute the lo and hi bounds.
2923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2929 static int test_array [1 - 2 * !(($2) >= 0)];
2931 return test_array [0];
2937 if ac_fn_c_try_compile
"$LINENO"; then :
2940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2946 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2948 return test_array [0];
2954 if ac_fn_c_try_compile
"$LINENO"; then :
2955 ac_hi
=$ac_mid; break
2957 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2958 if test $ac_lo -le $ac_mid; then
2962 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h. */
2973 static int test_array [1 - 2 * !(($2) < 0)];
2975 return test_array [0];
2981 if ac_fn_c_try_compile
"$LINENO"; then :
2984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h. */
2990 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2992 return test_array [0];
2998 if ac_fn_c_try_compile
"$LINENO"; then :
2999 ac_lo
=$ac_mid; break
3001 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3002 if test $ac_mid -le $ac_hi; then
3006 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3016 # Binary search between lo and hi bounds.
3017 while test "x$ac_lo" != "x$ac_hi"; do
3018 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3020 /* end confdefs.h. */
3025 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3027 return test_array [0];
3033 if ac_fn_c_try_compile
"$LINENO"; then :
3036 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3041 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3048 static long int longval () { return $2; }
3049 static unsigned long int ulongval () { return $2; }
3056 FILE *f = fopen ("conftest.val", "w");
3061 long int i = longval ();
3064 fprintf (f, "%ld", i);
3068 unsigned long int i = ulongval ();
3071 fprintf (f, "%lu", i);
3073 /* Do not output a trailing newline, as this causes \r\n confusion
3074 on some platforms. */
3075 return ferror (f) || fclose (f) != 0;
3081 if ac_fn_c_try_run
"$LINENO"; then :
3082 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3092 as_fn_set_status
$ac_retval
3094 } # ac_fn_c_compute_int
3095 cat >config.log
<<_ACEOF
3096 This file contains any messages produced by compilers while
3097 running configure, to aid debugging if configure makes a mistake.
3099 It was created by libgnu $as_me UNUSED-VERSION, which was
3100 generated by GNU Autoconf 2.69. Invocation command line was
3112 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3113 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3114 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3115 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3116 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3118 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3119 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3121 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3122 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3123 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3124 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3125 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3126 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3127 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir
=.
3136 $as_echo "PATH: $as_dir"
3152 # Keep a trace of the command line.
3153 # Strip out --no-create and --no-recursion so they do not pile up.
3154 # Strip out --silent because we don't want to record it for future runs.
3155 # Also quote any args containing shell meta-characters.
3156 # Make two passes to allow for proper duplicate-argument suppression.
3160 ac_must_keep_next
=false
3166 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3167 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3168 |
-silent |
--silent |
--silen |
--sile |
--sil)
3171 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3174 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3176 as_fn_append ac_configure_args1
" '$ac_arg'"
3177 if test $ac_must_keep_next = true
; then
3178 ac_must_keep_next
=false
# Got value, back to normal.
3181 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3182 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3183 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3184 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3185 case "$ac_configure_args0 " in
3186 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3189 -* ) ac_must_keep_next
=true
;;
3192 as_fn_append ac_configure_args
" '$ac_arg'"
3197 { ac_configure_args0
=; unset ac_configure_args0
;}
3198 { ac_configure_args1
=; unset ac_configure_args1
;}
3200 # When interrupted or exit'd, cleanup temporary files, and complete
3201 # config.log. We remove comments because anyway the quotes in there
3202 # would cause problems or look ugly.
3203 # WARNING: Use '\'' to represent an apostrophe within the trap.
3204 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3205 trap 'exit_status=$?
3206 # Save into config.log some information that might help in debugging.
3210 $as_echo "## ---------------- ##
3211 ## Cache variables. ##
3212 ## ---------------- ##"
3214 # The following way of writing the cache mishandles newlines in values,
3216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3217 eval ac_val=\$$ac_var
3221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3225 _ | IFS | as_nl) ;; #(
3226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3227 *) { eval $ac_var=; unset $ac_var;} ;;
3232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3233 *${as_nl}ac_space=\ *)
3235 "s/'\''/'\''\\\\'\'''\''/g;
3236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3246 $as_echo "## ----------------- ##
3247 ## Output variables. ##
3248 ## ----------------- ##"
3250 for ac_var in $ac_subst_vars
3252 eval ac_val=\$$ac_var
3254 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3256 $as_echo "$ac_var='\''$ac_val'\''"
3260 if test -n "$ac_subst_files"; then
3261 $as_echo "## ------------------- ##
3262 ## File substitutions. ##
3263 ## ------------------- ##"
3265 for ac_var
in $ac_subst_files
3267 eval ac_val
=\$
$ac_var
3269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3271 $as_echo "$ac_var='\''$ac_val'\''"
3276 if test -s confdefs.h; then
3277 $as_echo "## ----------- ##
3284 test "$ac_signal" != 0 &&
3285 $as_echo "$as_me: caught signal $ac_signal"
3286 $as_echo "$as_me: exit $exit_status"
3288 rm -f core *.core core.conftest.* &&
3289 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3292 for ac_signal
in 1 2 13 15; do
3293 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3297 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3298 rm -f -r conftest
* confdefs.h
3300 $as_echo "/* confdefs.h */" > confdefs.h
3302 # Predefined preprocessor variables.
3304 cat >>confdefs.h
<<_ACEOF
3305 #define PACKAGE_NAME "$PACKAGE_NAME"
3308 cat >>confdefs.h
<<_ACEOF
3309 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3312 cat >>confdefs.h
<<_ACEOF
3313 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3316 cat >>confdefs.h
<<_ACEOF
3317 #define PACKAGE_STRING "$PACKAGE_STRING"
3320 cat >>confdefs.h
<<_ACEOF
3321 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3324 cat >>confdefs.h
<<_ACEOF
3325 #define PACKAGE_URL "$PACKAGE_URL"
3329 # Let the site file select an alternate cache file if it wants to.
3330 # Prefer an explicitly selected file to automatically selected ones.
3333 if test -n "$CONFIG_SITE"; then
3334 # We do not want a PATH search for config.site.
3335 case $CONFIG_SITE in #((
3336 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3337 */*) ac_site_file1
=$CONFIG_SITE;;
3338 *) ac_site_file1
=.
/$CONFIG_SITE;;
3340 elif test "x$prefix" != xNONE
; then
3341 ac_site_file1
=$prefix/share
/config.site
3342 ac_site_file2
=$prefix/etc
/config.site
3344 ac_site_file1
=$ac_default_prefix/share
/config.site
3345 ac_site_file2
=$ac_default_prefix/etc
/config.site
3347 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3349 test "x$ac_site_file" = xNONE
&& continue
3350 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3352 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3353 sed 's/^/| /' "$ac_site_file" >&5
3355 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $?
"failed to load site script $ac_site_file
3358 See \`config.log' for more details" "$LINENO" 5; }
3362 if test -r "$cache_file"; then
3363 # Some versions of bash will fail to source /dev/null (special files
3364 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3365 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3367 $as_echo "$as_me: loading cache $cache_file" >&6;}
3369 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3370 *) .
"./$cache_file";;
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3375 $as_echo "$as_me: creating cache $cache_file" >&6;}
3379 gl_func_list
="$gl_func_list canonicalize_file_name"
3380 gl_func_list
="$gl_func_list getcwd"
3381 gl_func_list
="$gl_func_list readlink"
3382 gl_func_list
="$gl_func_list realpath"
3383 gl_header_list
="$gl_header_list sys/param.h"
3384 gl_header_list
="$gl_header_list unistd.h"
3385 gl_func_list
="$gl_func_list _set_invalid_parameter_handler"
3386 gl_header_list
="$gl_header_list sys/socket.h"
3387 gl_func_list
="$gl_func_list fchdir"
3388 gl_header_list
="$gl_header_list dirent.h"
3389 gl_func_list
="$gl_func_list fcntl"
3390 gl_func_list
="$gl_func_list symlink"
3391 gl_func_list
="$gl_func_list fdopendir"
3392 gl_func_list
="$gl_func_list mempcpy"
3393 gl_func_list
="$gl_func_list btowc"
3394 gl_func_list
="$gl_func_list isblank"
3395 gl_func_list
="$gl_func_list iswctype"
3396 gl_func_list
="$gl_func_list mbsrtowcs"
3397 gl_func_list
="$gl_func_list wmemchr"
3398 gl_func_list
="$gl_func_list wmemcpy"
3399 gl_func_list
="$gl_func_list wmempcpy"
3400 gl_header_list
="$gl_header_list wctype.h"
3401 gl_fnmatch_required
=GNU
3402 gl_header_list
="$gl_header_list sys/stat.h"
3403 gl_func_list
="$gl_func_list fstatat"
3404 gl_func_list
="$gl_func_list getdtablesize"
3405 gl_func_list
="$gl_func_list getlogin_r"
3406 gl_func_list
="$gl_func_list getprogname"
3407 gl_func_list
="$gl_func_list getexecname"
3408 gl_header_list
="$gl_header_list sys/time.h"
3409 gl_func_list
="$gl_func_list gettimeofday"
3410 gl_header_list
="$gl_header_list sys/cdefs.h"
3411 gl_func_list
="$gl_func_list getpwnam_r"
3412 gl_header_list
="$gl_header_list limits.h"
3413 gl_header_list
="$gl_header_list wchar.h"
3414 gl_header_list
="$gl_header_list stdint.h"
3415 gl_header_list
="$gl_header_list inttypes.h"
3416 gl_func_list
="$gl_func_list lstat"
3417 gl_header_list
="$gl_header_list math.h"
3418 gl_func_list
="$gl_func_list mbsinit"
3419 gl_func_list
="$gl_func_list mbrtowc"
3420 gl_header_list
="$gl_header_list sys/mman.h"
3421 gl_func_list
="$gl_func_list mprotect"
3422 gl_func_list
="$gl_func_list mkstemp"
3423 gl_func_list
="$gl_func_list openat"
3424 gl_func_list
="$gl_func_list link"
3425 gl_func_list
="$gl_func_list secure_getenv"
3426 gl_func_list
="$gl_func_list getuid"
3427 gl_func_list
="$gl_func_list geteuid"
3428 gl_func_list
="$gl_func_list getgid"
3429 gl_func_list
="$gl_func_list getegid"
3430 gl_func_list
="$gl_func_list setenv"
3431 gl_func_list
="$gl_func_list strdup"
3432 gl_func_list
="$gl_func_list pipe"
3433 gl_header_list
="$gl_header_list features.h"
3434 gl_func_list
="$gl_func_list iswcntrl"
3435 # Check that the precious variables saved in the cache have kept the same
3437 ac_cache_corrupted
=false
3438 for ac_var
in $ac_precious_vars; do
3439 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3440 eval ac_new_set
=\
$ac_env_${ac_var}_set
3441 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3442 eval ac_new_val
=\
$ac_env_${ac_var}_value
3443 case $ac_old_set,$ac_new_set in
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3446 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3447 ac_cache_corrupted
=: ;;
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3450 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3451 ac_cache_corrupted
=: ;;
3454 if test "x$ac_old_val" != "x$ac_new_val"; then
3455 # differences in whitespace do not lead to failure.
3456 ac_old_val_w
=`echo x $ac_old_val`
3457 ac_new_val_w
=`echo x $ac_new_val`
3458 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3460 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3461 ac_cache_corrupted
=:
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3464 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3465 eval $ac_var=\
$ac_old_val
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3468 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3470 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3473 # Pass precious variables to config.status.
3474 if test "$ac_new_set" = set; then
3476 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3477 *) ac_arg
=$ac_var=$ac_new_val ;;
3479 case " $ac_configure_args " in
3480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3481 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3485 if $ac_cache_corrupted; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3489 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3490 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3492 ## -------------------- ##
3493 ## Main body of script. ##
3494 ## -------------------- ##
3497 ac_cpp
='$CPP $CPPFLAGS'
3498 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3504 ac_config_headers
="$ac_config_headers config.h:config.in"
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3508 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3509 # Check whether --enable-maintainer-mode was given.
3510 if test "${enable_maintainer_mode+set}" = set; then :
3511 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3513 USE_MAINTAINER_MODE
=no
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3517 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3518 if test $USE_MAINTAINER_MODE = yes; then
3519 MAINTAINER_MODE_TRUE
=
3520 MAINTAINER_MODE_FALSE
='#'
3522 MAINTAINER_MODE_TRUE
='#'
3523 MAINTAINER_MODE_FALSE
=
3526 MAINT
=$MAINTAINER_MODE_TRUE
3531 ac_cpp
='$CPP $CPPFLAGS'
3532 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3537 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CC+:} false
; then :
3541 $as_echo_n "(cached) " >&6
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC
="$CC" # Let the user override the test.
3546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir
=.
3551 for ac_exec_ext
in '' $ac_executable_extensions; do
3552 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 if test -n "$CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3574 if test -z "$ac_cv_prog_CC"; then
3576 # Extract the first word of "gcc", so it can be a program name with args.
3577 set dummy gcc
; ac_word
=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3581 $as_echo_n "(cached) " >&6
3583 if test -n "$ac_ct_CC"; then
3584 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir
=.
3591 for ac_exec_ext
in '' $ac_executable_extensions; do
3592 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_ac_ct_CC
="gcc"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3604 if test -n "$ac_ct_CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3606 $as_echo "$ac_ct_CC" >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3612 if test "x$ac_ct_CC" = x
; then
3615 case $cross_compiling:$ac_tool_warned in
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned
=yes ;;
3627 if test -z "$CC"; then
3628 if test -n "$ac_tool_prefix"; then
3629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3630 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_CC+:} false
; then :
3634 $as_echo_n "(cached) " >&6
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC
="$CC" # Let the user override the test.
3639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir
=.
3644 for ac_exec_ext
in '' $ac_executable_extensions; do
3645 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 if test -n "$CC"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659 $as_echo "$CC" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3668 if test -z "$CC"; then
3669 # Extract the first word of "cc", so it can be a program name with args.
3670 set dummy cc
; ac_word
=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_CC+:} false
; then :
3674 $as_echo_n "(cached) " >&6
3676 if test -n "$CC"; then
3677 ac_cv_prog_CC
="$CC" # Let the user override the test.
3680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir
=.
3685 for ac_exec_ext
in '' $ac_executable_extensions; do
3686 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3687 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3688 ac_prog_rejected
=yes
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 if test $ac_prog_rejected = yes; then
3700 # We found a bogon in the path, so make sure we never use it.
3701 set dummy
$ac_cv_prog_CC
3703 if test $# != 0; then
3704 # We chose a different compiler from the bogus one.
3705 # However, it has the same basename, so the bogon will be chosen
3706 # first if we set CC to just the basename; use the full file name.
3708 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3724 if test -z "$CC"; then
3725 if test -n "$ac_tool_prefix"; then
3726 for ac_prog
in cl.exe
3728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if ${ac_cv_prog_CC+:} false
; then :
3733 $as_echo_n "(cached) " >&6
3735 if test -n "$CC"; then
3736 ac_cv_prog_CC
="$CC" # Let the user override the test.
3738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir
=.
3743 for ac_exec_ext
in '' $ac_executable_extensions; do
3744 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 if test -n "$CC"; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758 $as_echo "$CC" >&6; }
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3765 test -n "$CC" && break
3768 if test -z "$CC"; then
3770 for ac_prog
in cl.exe
3772 # Extract the first word of "$ac_prog", so it can be a program name with args.
3773 set dummy
$ac_prog; ac_word
=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3777 $as_echo_n "(cached) " >&6
3779 if test -n "$ac_ct_CC"; then
3780 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3786 test -z "$as_dir" && as_dir
=.
3787 for ac_exec_ext
in '' $ac_executable_extensions; do
3788 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3789 ac_cv_prog_ac_ct_CC
="$ac_prog"
3790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3800 if test -n "$ac_ct_CC"; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3802 $as_echo "$ac_ct_CC" >&6; }
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3809 test -n "$ac_ct_CC" && break
3812 if test "x$ac_ct_CC" = x
; then
3815 case $cross_compiling:$ac_tool_warned in
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3819 ac_tool_warned
=yes ;;
3828 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $?
"no acceptable C compiler found in \$PATH
3831 See \`config.log' for more details" "$LINENO" 5; }
3833 # Provide some information about the compiler.
3834 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3837 for ac_option
in --version -v -V -qversion; do
3838 { { ac_try
="$ac_compiler $ac_option >&5"
3840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3847 if test -s conftest.err; then
3849 ... rest of stderr output deleted ...
3850 10q' conftest.err >conftest.er1
3851 cat conftest.er1 >&5
3853 rm -f conftest.er1 conftest.err
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3869 ac_clean_files_save=$ac_clean_files
3870 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3871 # Try to create an executable without -o first, disregard a.out.
3872 # It will help us diagnose broken compilers, and finding out an intuition
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3875 $as_echo_n "checking whether the C compiler works... " >&6; }
3876 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3878 # The possible output files:
3879 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3882 for ac_file in $ac_files
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3891 if { { ac_try="$ac_link_default"
3893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3894 *) ac_try_echo
=$ac_try;;
3896 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link_default") 2>&5
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; then :
3902 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3903 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3904 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3905 # so that the user can short-circuit this test for compilers unknown to
3907 for ac_file
in $ac_files ''
3909 test -f "$ac_file" ||
continue
3911 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3914 # We found the default executable, but exeext='' is most
3918 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3920 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3922 # We set ac_cv_exeext here because the later test for it is not
3923 # safe: cross compilers may not add the suffix if given an `-o'
3924 # argument, so we may need to know it at that point already.
3925 # Even if this section looks crufty: it has the advantage of
3932 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3937 if test -z "$ac_file"; then :
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 $as_echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.
$ac_ext >&5
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error
77 "C compiler cannot create executables
3946 See \`config.log' for more details" "$LINENO" 5; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3952 $as_echo_n "checking for C compiler default output file name... " >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3954 $as_echo "$ac_file" >&6; }
3955 ac_exeext
=$ac_cv_exeext
3957 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3958 ac_clean_files
=$ac_clean_files_save
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3960 $as_echo_n "checking for suffix of executables... " >&6; }
3961 if { { ac_try
="$ac_link"
3963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_link") 2>&5
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; then :
3972 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3973 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3974 # work properly (i.e., refer to `conftest.exe'), while it won't with
3976 for ac_file
in conftest.exe conftest conftest.
*; do
3977 test -f "$ac_file" ||
continue
3979 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3980 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3989 See \`config.log' for more details" "$LINENO" 5; }
3991 rm -f conftest conftest
$ac_cv_exeext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3993 $as_echo "$ac_cv_exeext" >&6; }
3995 rm -f conftest.
$ac_ext
3996 EXEEXT
=$ac_cv_exeext
3998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4004 FILE *f = fopen ("conftest.out", "w");
4005 return ferror (f) || fclose (f) != 0;
4011 ac_clean_files
="$ac_clean_files conftest.out"
4012 # Check that the compiler produces executables we can run. If not, either
4013 # the compiler is broken, or we cross compile.
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4015 $as_echo_n "checking whether we are cross compiling... " >&6; }
4016 if test "$cross_compiling" != yes; then
4017 { { ac_try
="$ac_link"
4019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 $as_echo "$ac_try_echo"; } >&5
4024 (eval "$ac_link") 2>&5
4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027 test $ac_status = 0; }
4028 if { ac_try='./conftest$ac_cv_exeext'
4029 { { case "(($ac_try" in
4030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4031 *) ac_try_echo
=$ac_try;;
4033 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_try") 2>&5
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; }; then
4041 if test "$cross_compiling" = maybe
; then
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 as_fn_error $?
"cannot run C compiled programs.
4047 If you meant to cross compile, use \`--host'.
4048 See \`config.log' for more details" "$LINENO" 5; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4053 $as_echo "$cross_compiling" >&6; }
4055 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4056 ac_clean_files
=$ac_clean_files_save
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4058 $as_echo_n "checking for suffix of object files... " >&6; }
4059 if ${ac_cv_objext+:} false
; then :
4060 $as_echo_n "(cached) " >&6
4062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 rm -f conftest.o conftest.obj
4074 if { { ac_try
="$ac_compile"
4076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_compile") 2>&5
4083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084 test $ac_status = 0; }; then :
4085 for ac_file in conftest.o conftest.obj conftest.*; do
4086 test -f "$ac_file" || continue;
4088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4089 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4094 $as_echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4100 See \
`config.log' for more details" "$LINENO" 5; }
4102 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4105 $as_echo "$ac_cv_objext" >&6; }
4106 OBJEXT=$ac_cv_objext
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4109 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4110 if ${ac_cv_c_compiler_gnu+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4127 if ac_fn_c_try_compile "$LINENO"; then :
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4137 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4138 if test $ac_compiler_gnu = yes; then
4143 ac_test_CFLAGS=${CFLAGS+set}
4144 ac_save_CFLAGS=$CFLAGS
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4146 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4147 if ${ac_cv_prog_cc_g+:} false; then :
4148 $as_echo_n "(cached) " >&6
4150 ac_save_c_werror_flag=$ac_c_werror_flag
4151 ac_c_werror_flag=yes
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4165 if ac_fn_c_try_compile "$LINENO"; then :
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4180 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4196 if ac_fn_c_try_compile "$LINENO"; then :
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4207 $as_echo "$ac_cv_prog_cc_g" >&6; }
4208 if test "$ac_test_CFLAGS" = set; then
4209 CFLAGS=$ac_save_CFLAGS
4210 elif test $ac_cv_prog_cc_g = yes; then
4211 if test "$GCC" = yes; then
4217 if test "$GCC" = yes; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4224 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4225 if ${ac_cv_prog_cc_c89+:} false; then :
4226 $as_echo_n "(cached) " >&6
4228 ac_cv_prog_cc_c89=no
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4236 struct buf { int x; };
4237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238 static char *e (p, i)
4244 static char *f (char * (*g) (char **, int), char **p, ...)
4249 s = g (p, va_arg (v,int));
4254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4255 function prototypes and stuff, but not '\xHH' hex character constants.
4256 These don't provoke an error unfortunately, instead are silently treated
4257 as 'x'. The following induces an error, until -std is added to get
4258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4259 array size at least. It's necessary to write '\x00'==0 to get something
4260 that's true only with -std. */
4261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264 inside strings and character constants. */
4266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4268 int test (int i, double x);
4269 struct s1 {int (*f) (int a);};
4270 struct s2 {int (*f) (double a);};
4271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_prog_cc_c89=$ac_arg
4289 rm -f core conftest.err conftest.$ac_objext
4290 test "x$ac_cv_prog_cc_c89" != "xno" && break
4292 rm -f conftest.$ac_ext
4297 case "x$ac_cv_prog_cc_c89" in
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300 $as_echo "none needed" >&6; } ;;
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303 $as_echo "unsupported" >&6; } ;;
4305 CC="$CC $ac_cv_prog_cc_c89"
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4307 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4309 if test "x$ac_cv_prog_cc_c89" != xno; then :
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4321 if test -f "$ac_dir/install-sh"; then
4323 ac_install_sh="$ac_aux_dir/install-sh -c"
4325 elif test -f "$ac_dir/install.sh"; then
4327 ac_install_sh="$ac_aux_dir/install.sh -c"
4329 elif test -f "$ac_dir/shtool"; then
4331 ac_install_sh="$ac_aux_dir/shtool install -c"
4335 if test -z "$ac_aux_dir"; then
4336 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4339 # These three variables are undocumented and unsupported,
4340 # and are intended to be withdrawn in a future Autoconf release.
4341 # They can cause serious problems if a builder's source tree is in a directory
4342 # whose full name contains unusual characters.
4343 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4344 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4345 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4348 # Expand $ac_aux_dir to an absolute path.
4349 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4357 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4358 if ${am_cv_prog_cc_c_o+:} false; then :
4359 $as_echo_n "(cached) " >&6
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4372 # Make sure it works both with $CC and with simple cc.
4373 # Following AC_PROG_CC_C_O, we do the test twice because some
4374 # compilers refuse to overwrite an existing .o file with -o,
4375 # though they will create one.
4376 am_cv_prog_cc_c_o=yes
4378 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4379 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } \
4383 && test -f conftest2.$ac_objext; then
4386 am_cv_prog_cc_c_o=no
4390 rm -f core conftest*
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4394 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4395 if test "$am_cv_prog_cc_c_o" != yes; then
4396 # Losing compiler, so override with the script.
4397 # FIXME: It is wrong to rewrite CC.
4398 # But if we don't then we get into trouble of one sort or another.
4399 # A longer-term fix would be to have automake use am__CC in this case,
4400 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4401 CC="$am_aux_dir/compile $CC"
4404 ac_cpp='$CPP $CPPFLAGS'
4405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4417 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4418 # On Suns, sometimes $CPP names a directory.
4419 if test -n "$CPP" && test -d "$CPP"; then
4422 if test -z "$CPP"; then
4423 if ${ac_cv_prog_CPP+:} false; then :
4424 $as_echo_n "(cached) " >&6
4426 # Double quotes because CPP needs to be expanded
4427 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4430 for ac_c_preproc_warn_flag in '' yes
4432 # Use a header file that comes with gcc, so configuring glibc
4433 # with a fresh cross-compiler works.
4434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435 # <limits.h> exists even on freestanding compilers.
4436 # On the NeXT, cc -E runs the code through the compiler's parser,
4437 # not just through cpp. "Syntax error" is here to catch this case.
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4441 # include <limits.h>
4443 # include <assert.h>
4447 if ac_fn_c_try_cpp "$LINENO"; then :
4450 # Broken: fails on valid input.
4453 rm -f conftest.err conftest.i conftest.$ac_ext
4455 # OK, works on sane cases. Now check whether nonexistent headers
4456 # can be detected and how.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <ac_nonexistent.h>
4461 if ac_fn_c_try_cpp "$LINENO"; then :
4462 # Broken: success on invalid input.
4465 # Passes both tests.
4469 rm -f conftest.err conftest.i conftest.$ac_ext
4472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4473 rm -f conftest.i conftest.err conftest.
$ac_ext
4474 if $ac_preproc_ok; then :
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4487 $as_echo "$CPP" >&6; }
4489 for ac_c_preproc_warn_flag
in '' yes
4491 # Use a header file that comes with gcc, so configuring glibc
4492 # with a fresh cross-compiler works.
4493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4494 # <limits.h> exists even on freestanding compilers.
4495 # On the NeXT, cc -E runs the code through the compiler's parser,
4496 # not just through cpp. "Syntax error" is here to catch this case.
4497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4500 # include <limits.h>
4502 # include <assert.h>
4506 if ac_fn_c_try_cpp
"$LINENO"; then :
4509 # Broken: fails on valid input.
4512 rm -f conftest.err conftest.i conftest.
$ac_ext
4514 # OK, works on sane cases. Now check whether nonexistent headers
4515 # can be detected and how.
4516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 #include <ac_nonexistent.h>
4520 if ac_fn_c_try_cpp
"$LINENO"; then :
4521 # Broken: success on invalid input.
4524 # Passes both tests.
4528 rm -f conftest.err conftest.i conftest.
$ac_ext
4531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4532 rm -f conftest.i conftest.err conftest.
$ac_ext
4533 if $ac_preproc_ok; then :
4536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4539 See \`config.log' for more details" "$LINENO" 5; }
4543 ac_cpp
='$CPP $CPPFLAGS'
4544 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4545 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4550 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4551 if ${ac_cv_path_GREP+:} false
; then :
4552 $as_echo_n "(cached) " >&6
4554 if test -z "$GREP"; then
4555 ac_path_GREP_found
=false
4556 # Loop through the user's path and test for each of PROGNAME-LIST
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4558 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_prog
in grep ggrep
; do
4563 for ac_exec_ext
in '' $ac_executable_extensions; do
4564 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4565 as_fn_executable_p
"$ac_path_GREP" ||
continue
4566 # Check for GNU ac_path_GREP and select it if it is found.
4567 # Check for GNU $ac_path_GREP
4568 case `"$ac_path_GREP" --version 2>&1` in
4570 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4573 $as_echo_n 0123456789 >"conftest.in"
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 $as_echo 'GREP' >> "conftest.nl"
4580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4581 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4582 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_GREP
="$ac_path_GREP"
4586 ac_path_GREP_max
=$ac_count
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4591 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4594 $ac_path_GREP_found && break 3
4599 if test -z "$ac_cv_path_GREP"; then
4600 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603 ac_cv_path_GREP
=$GREP
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4608 $as_echo "$ac_cv_path_GREP" >&6; }
4609 GREP
="$ac_cv_path_GREP"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4613 $as_echo_n "checking for egrep... " >&6; }
4614 if ${ac_cv_path_EGREP+:} false
; then :
4615 $as_echo_n "(cached) " >&6
4617 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4618 then ac_cv_path_EGREP
="$GREP -E"
4620 if test -z "$EGREP"; then
4621 ac_path_EGREP_found
=false
4622 # Loop through the user's path and test for each of PROGNAME-LIST
4623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4624 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4627 test -z "$as_dir" && as_dir
=.
4628 for ac_prog
in egrep; do
4629 for ac_exec_ext
in '' $ac_executable_extensions; do
4630 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4631 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4632 # Check for GNU ac_path_EGREP and select it if it is found.
4633 # Check for GNU $ac_path_EGREP
4634 case `"$ac_path_EGREP" --version 2>&1` in
4636 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4639 $as_echo_n 0123456789 >"conftest.in"
4642 cat "conftest.in" "conftest.in" >"conftest.tmp"
4643 mv "conftest.tmp" "conftest.in"
4644 cp "conftest.in" "conftest.nl"
4645 $as_echo 'EGREP' >> "conftest.nl"
4646 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4647 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4648 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4649 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4650 # Best one so far, save it but keep looking for a better one
4651 ac_cv_path_EGREP
="$ac_path_EGREP"
4652 ac_path_EGREP_max
=$ac_count
4654 # 10*(2^10) chars as input seems more than enough
4655 test $ac_count -gt 10 && break
4657 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4660 $ac_path_EGREP_found && break 3
4665 if test -z "$ac_cv_path_EGREP"; then
4666 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669 ac_cv_path_EGREP
=$EGREP
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4675 $as_echo "$ac_cv_path_EGREP" >&6; }
4676 EGREP
="$ac_cv_path_EGREP"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4680 $as_echo_n "checking for ANSI C header files... " >&6; }
4681 if ${ac_cv_header_stdc+:} false
; then :
4682 $as_echo_n "(cached) " >&6
4684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4699 if ac_fn_c_try_compile
"$LINENO"; then :
4700 ac_cv_header_stdc
=yes
4702 ac_cv_header_stdc
=no
4704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4706 if test $ac_cv_header_stdc = yes; then
4707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4714 $EGREP "memchr" >/dev
/null
2>&1; then :
4717 ac_cv_header_stdc
=no
4723 if test $ac_cv_header_stdc = yes; then
4724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4731 $EGREP "free" >/dev
/null
2>&1; then :
4734 ac_cv_header_stdc
=no
4740 if test $ac_cv_header_stdc = yes; then
4741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4742 if test "$cross_compiling" = yes; then :
4745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4749 #if ((' ' & 0x0FF) == 0x020)
4750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4753 # define ISLOWER(c) \
4754 (('a' <= (c) && (c) <= 'i') \
4755 || ('j' <= (c) && (c) <= 'r') \
4756 || ('s' <= (c) && (c) <= 'z'))
4757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4765 for (i = 0; i < 256; i++)
4766 if (XOR (islower (i), ISLOWER (i))
4767 || toupper (i) != TOUPPER (i))
4772 if ac_fn_c_try_run
"$LINENO"; then :
4775 ac_cv_header_stdc
=no
4777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4784 $as_echo "$ac_cv_header_stdc" >&6; }
4785 if test $ac_cv_header_stdc = yes; then
4787 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4791 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4792 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4793 inttypes.h stdint.h unistd.h
4795 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4796 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4798 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4799 cat >>confdefs.h
<<_ACEOF
4800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4809 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4810 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4817 if test "$MINIX" = yes; then
4819 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4822 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4825 $as_echo "#define _MINIX 1" >>confdefs.h
4828 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4834 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4835 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4836 $as_echo_n "(cached) " >&6
4838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4841 # define __EXTENSIONS__ 1
4842 $ac_includes_default
4851 if ac_fn_c_try_compile
"$LINENO"; then :
4852 ac_cv_safe_to_define___extensions__
=yes
4854 ac_cv_safe_to_define___extensions__
=no
4856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4859 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4860 test $ac_cv_safe_to_define___extensions__ = yes &&
4861 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4863 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4865 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4867 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4869 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4871 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4873 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4875 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4877 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4879 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4881 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4883 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4885 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4888 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4889 if ${ac_cv_should_define__xopen_source+:} false
; then :
4890 $as_echo_n "(cached) " >&6
4892 ac_cv_should_define__xopen_source
=no
4893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4906 if ac_fn_c_try_compile
"$LINENO"; then :
4909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4912 #define _XOPEN_SOURCE 500
4923 if ac_fn_c_try_compile
"$LINENO"; then :
4924 ac_cv_should_define__xopen_source
=yes
4926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4931 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4932 test $ac_cv_should_define__xopen_source = yes &&
4933 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4946 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4947 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
4948 $as_echo_n "(cached) " >&6
4951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4960 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4961 gl_cv_c_amsterdam_compiler
=yes
4963 gl_cv_c_amsterdam_compiler
=no
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4970 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4972 if test $gl_cv_c_amsterdam_compiler = yes; then
4973 if test -z "$AR"; then
4976 if test -z "$ARFLAGS"; then
4980 if test -n "$ac_tool_prefix"; then
4981 for ac_prog
in ar lib
"link -lib"
4983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4984 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_prog_AR+:} false
; then :
4988 $as_echo_n "(cached) " >&6
4990 if test -n "$AR"; then
4991 ac_cv_prog_AR
="$AR" # Let the user override the test.
4993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir
=.
4998 for ac_exec_ext
in '' $ac_executable_extensions; do
4999 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 if test -n "$AR"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5013 $as_echo "$AR" >&6; }
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5020 test -n "$AR" && break
5023 if test -z "$AR"; then
5025 for ac_prog
in ar lib
"link -lib"
5027 # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy
$ac_prog; ac_word
=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5032 $as_echo_n "(cached) " >&6
5034 if test -n "$ac_ct_AR"; then
5035 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5041 test -z "$as_dir" && as_dir
=.
5042 for ac_exec_ext
in '' $ac_executable_extensions; do
5043 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_ac_ct_AR
="$ac_prog"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5055 if test -n "$ac_ct_AR"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5057 $as_echo "$ac_ct_AR" >&6; }
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5064 test -n "$ac_ct_AR" && break
5067 if test "x$ac_ct_AR" = x
; then
5070 case $cross_compiling:$ac_tool_warned in
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned
=yes ;;
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5083 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5084 if ${am_cv_ar_interface+:} false
; then :
5085 $as_echo_n "(cached) " >&6
5088 ac_cpp
='$CPP $CPPFLAGS'
5089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5093 am_cv_ar_interface
=ar
5094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 int some_variable = 0;
5098 if ac_fn_c_try_compile
"$LINENO"; then :
5099 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
5100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5101 (eval $am_ar_try) 2>&5
5103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5104 test $ac_status = 0; }
5105 if test "$ac_status" -eq 0; then
5106 am_cv_ar_interface
=ar
5108 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5110 (eval $am_ar_try) 2>&5
5112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5113 test $ac_status = 0; }
5114 if test "$ac_status" -eq 0; then
5115 am_cv_ar_interface
=lib
5117 am_cv_ar_interface
=unknown
5120 rm -f conftest.lib libconftest.a
5123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5125 ac_cpp
='$CPP $CPPFLAGS'
5126 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5132 $as_echo "$am_cv_ar_interface" >&6; }
5134 case $am_cv_ar_interface in
5138 # Microsoft lib, so override with the ar-lib wrapper script.
5139 # FIXME: It is wrong to rewrite AR.
5140 # But if we don't then we get into trouble of one sort or another.
5141 # A longer-term fix would be to have automake use am__AR in this case,
5142 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5144 AR
="$am_aux_dir/ar-lib $AR"
5147 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
5153 if test -n "$ac_tool_prefix"; then
5154 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5155 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_AR+:} false
; then :
5159 $as_echo_n "(cached) " >&6
5161 if test -n "$AR"; then
5162 ac_cv_prog_AR
="$AR" # Let the user override the test.
5164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir
=.
5169 for ac_exec_ext
in '' $ac_executable_extensions; do
5170 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 if test -n "$AR"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5184 $as_echo "$AR" >&6; }
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5192 if test -z "$ac_cv_prog_AR"; then
5194 # Extract the first word of "ar", so it can be a program name with args.
5195 set dummy
ar; ac_word
=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5199 $as_echo_n "(cached) " >&6
5201 if test -n "$ac_ct_AR"; then
5202 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5208 test -z "$as_dir" && as_dir
=.
5209 for ac_exec_ext
in '' $ac_executable_extensions; do
5210 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_ac_ct_AR
="ar"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5222 if test -n "$ac_ct_AR"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5224 $as_echo "$ac_ct_AR" >&6; }
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5230 if test "x$ac_ct_AR" = x
; then
5233 case $cross_compiling:$ac_tool_warned in
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5237 ac_tool_warned
=yes ;;
5245 if test -z "$ARFLAGS"; then
5251 if test -z "$RANLIB"; then
5252 if test $gl_cv_c_amsterdam_compiler = yes; then
5255 if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5257 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_RANLIB+:} false
; then :
5261 $as_echo_n "(cached) " >&6
5263 if test -n "$RANLIB"; then
5264 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir
=.
5271 for ac_exec_ext
in '' $ac_executable_extensions; do
5272 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 RANLIB
=$ac_cv_prog_RANLIB
5284 if test -n "$RANLIB"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5286 $as_echo "$RANLIB" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5294 if test -z "$ac_cv_prog_RANLIB"; then
5295 ac_ct_RANLIB
=$RANLIB
5296 # Extract the first word of "ranlib", so it can be a program name with args.
5297 set dummy ranlib
; ac_word
=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5301 $as_echo_n "(cached) " >&6
5303 if test -n "$ac_ct_RANLIB"; then
5304 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5310 test -z "$as_dir" && as_dir
=.
5311 for ac_exec_ext
in '' $ac_executable_extensions; do
5312 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5324 if test -n "$ac_ct_RANLIB"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5326 $as_echo "$ac_ct_RANLIB" >&6; }
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5332 if test "x$ac_ct_RANLIB" = x
; then
5335 case $cross_compiling:$ac_tool_warned in
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned
=yes ;;
5341 RANLIB
=$ac_ct_RANLIB
5344 RANLIB
="$ac_cv_prog_RANLIB"
5351 # Make sure we can run config.sub.
5352 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5353 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5356 $as_echo_n "checking build system type... " >&6; }
5357 if ${ac_cv_build+:} false
; then :
5358 $as_echo_n "(cached) " >&6
5360 ac_build_alias
=$build_alias
5361 test "x$ac_build_alias" = x
&&
5362 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5363 test "x$ac_build_alias" = x
&&
5364 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5365 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5366 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5370 $as_echo "$ac_cv_build" >&6; }
5371 case $ac_cv_build in
5373 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5376 ac_save_IFS
=$IFS; IFS
='-'
5382 # Remember, the first character of IFS is used to create $*,
5383 # except with old shells:
5386 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5390 $as_echo_n "checking host system type... " >&6; }
5391 if ${ac_cv_host+:} false
; then :
5392 $as_echo_n "(cached) " >&6
5394 if test "x$host_alias" = x
; then
5395 ac_cv_host
=$ac_cv_build
5397 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5398 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5403 $as_echo "$ac_cv_host" >&6; }
5406 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5409 ac_save_IFS
=$IFS; IFS
='-'
5415 # Remember, the first character of IFS is used to create $*,
5416 # except with old shells:
5419 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5425 # IEEE behaviour is the default on all CPUs except Alpha and SH
5426 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5427 # and the GCC 4.1.2 manual).
5430 # On Alpha systems, a compiler option provides the behaviour.
5431 # See the ieee(3) manual page, also available at
5432 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5433 if test -n "$GCC"; then
5434 # GCC has the option -mieee.
5435 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5436 CPPFLAGS
="$CPPFLAGS -mieee"
5438 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5439 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5440 CPPFLAGS
="$CPPFLAGS -ieee"
5444 if test -n "$GCC"; then
5445 # GCC has the option -mieee.
5446 CPPFLAGS
="$CPPFLAGS -mieee"
5451 # Check whether --enable-largefile was given.
5452 if test "${enable_largefile+set}" = set; then :
5453 enableval
=$enable_largefile;
5456 if test "$enable_largefile" != no
; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5459 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5460 if ${ac_cv_sys_largefile_CC+:} false
; then :
5461 $as_echo_n "(cached) " >&6
5463 ac_cv_sys_largefile_CC
=no
5464 if test "$GCC" != yes; then
5467 # IRIX 6.2 and later do not support large files by default,
5468 # so use the C compiler's -n32 option if that helps.
5469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <sys/types.h>
5472 /* Check that off_t can represent 2**63 - 1 correctly.
5473 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5474 since some C++ compilers masquerading as C compilers
5475 incorrectly reject 9223372036854775807. */
5476 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5478 && LARGE_OFF_T % 2147483647 == 1)
5488 if ac_fn_c_try_compile
"$LINENO"; then :
5491 rm -f core conftest.err conftest.
$ac_objext
5493 if ac_fn_c_try_compile
"$LINENO"; then :
5494 ac_cv_sys_largefile_CC
=' -n32'; break
5496 rm -f core conftest.err conftest.
$ac_objext
5500 rm -f conftest.
$ac_ext
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5504 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5505 if test "$ac_cv_sys_largefile_CC" != no
; then
5506 CC
=$CC$ac_cv_sys_largefile_CC
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5510 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5511 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5512 $as_echo_n "(cached) " >&6
5515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 #include <sys/types.h>
5518 /* Check that off_t can represent 2**63 - 1 correctly.
5519 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5520 since some C++ compilers masquerading as C compilers
5521 incorrectly reject 9223372036854775807. */
5522 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5523 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5524 && LARGE_OFF_T % 2147483647 == 1)
5534 if ac_fn_c_try_compile
"$LINENO"; then :
5535 ac_cv_sys_file_offset_bits
=no
; break
5537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #define _FILE_OFFSET_BITS 64
5541 #include <sys/types.h>
5542 /* Check that off_t can represent 2**63 - 1 correctly.
5543 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5544 since some C++ compilers masquerading as C compilers
5545 incorrectly reject 9223372036854775807. */
5546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5548 && LARGE_OFF_T % 2147483647 == 1)
5558 if ac_fn_c_try_compile
"$LINENO"; then :
5559 ac_cv_sys_file_offset_bits
=64; break
5561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5562 ac_cv_sys_file_offset_bits
=unknown
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5567 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5568 case $ac_cv_sys_file_offset_bits in #(
5571 cat >>confdefs.h
<<_ACEOF
5572 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5577 if test $ac_cv_sys_file_offset_bits = unknown
; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5579 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5580 if ${ac_cv_sys_large_files+:} false
; then :
5581 $as_echo_n "(cached) " >&6
5584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5603 if ac_fn_c_try_compile
"$LINENO"; then :
5604 ac_cv_sys_large_files
=no
; break
5606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #define _LARGE_FILES 1
5610 #include <sys/types.h>
5611 /* Check that off_t can represent 2**63 - 1 correctly.
5612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5613 since some C++ compilers masquerading as C compilers
5614 incorrectly reject 9223372036854775807. */
5615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5617 && LARGE_OFF_T % 2147483647 == 1)
5627 if ac_fn_c_try_compile
"$LINENO"; then :
5628 ac_cv_sys_large_files
=1; break
5630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5631 ac_cv_sys_large_files
=unknown
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5636 $as_echo "$ac_cv_sys_large_files" >&6; }
5637 case $ac_cv_sys_large_files in #(
5640 cat >>confdefs.h
<<_ACEOF
5641 #define _LARGE_FILES $ac_cv_sys_large_files
5649 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5655 # Pre-early section.
5659 # Code from module absolute-header:
5660 # Code from module alloca:
5661 # Code from module alloca-opt:
5662 # Code from module assure:
5663 # Code from module at-internal:
5664 # Code from module canonicalize-lgpl:
5665 # Code from module chdir:
5666 # Code from module chdir-long:
5667 # Code from module cloexec:
5668 # Code from module close:
5669 # Code from module closedir:
5670 # Code from module configmake:
5671 # Code from module d-ino:
5672 # Code from module d-type:
5673 # Code from module dirent:
5674 # Code from module dirfd:
5675 # Code from module dirname-lgpl:
5676 # Code from module dosname:
5677 # Code from module double-slash-root:
5678 # Code from module dup:
5679 # Code from module dup2:
5680 # Code from module environ:
5681 # Code from module errno:
5682 # Code from module error:
5683 # Code from module exitfail:
5684 # Code from module extensions:
5685 # Code from module extern-inline:
5686 # Code from module fchdir:
5687 # Code from module fcntl:
5688 # Code from module fcntl-h:
5689 # Code from module fd-hook:
5690 # Code from module fdopendir:
5691 # Code from module filename:
5692 # Code from module filenamecat-lgpl:
5693 # Code from module flexmember:
5694 # Code from module float:
5695 # Code from module fnmatch:
5696 # Code from module fnmatch-gnu:
5697 # Code from module fpieee:
5699 # Code from module fpucw:
5700 # Code from module frexp:
5701 # Code from module frexpl:
5702 # Code from module fstat:
5703 # Code from module fstatat:
5704 # Code from module getcwd:
5705 # Code from module getcwd-lgpl:
5706 # Code from module getdtablesize:
5707 # Code from module getlogin_r:
5708 # Code from module getprogname:
5709 # Code from module gettext-h:
5710 # Code from module gettimeofday:
5711 # Code from module glob:
5712 # Code from module hard-locale:
5713 # Code from module include_next:
5714 # Code from module intprops:
5715 # Code from module inttypes:
5716 # Code from module inttypes-incomplete:
5717 # Code from module isnand-nolibm:
5718 # Code from module isnanl-nolibm:
5719 # Code from module largefile:
5721 # Code from module limits-h:
5722 # Code from module localcharset:
5723 # Code from module lstat:
5724 # Code from module malloc-posix:
5725 # Code from module malloca:
5726 # Code from module math:
5727 # Code from module mbrtowc:
5728 # Code from module mbsinit:
5729 # Code from module mbsrtowcs:
5730 # Code from module memchr:
5731 # Code from module memmem:
5732 # Code from module memmem-simple:
5733 # Code from module mempcpy:
5734 # Code from module memrchr:
5735 # Code from module mkstemp:
5736 # Code from module msvc-inval:
5737 # Code from module msvc-nothrow:
5738 # Code from module multiarch:
5739 # Code from module nocrash:
5740 # Code from module open:
5741 # Code from module openat:
5742 # Code from module openat-die:
5743 # Code from module openat-h:
5744 # Code from module opendir:
5745 # Code from module pathmax:
5746 # Code from module rawmemchr:
5747 # Code from module readdir:
5748 # Code from module readlink:
5749 # Code from module realloc-posix:
5750 # Code from module rename:
5751 # Code from module rewinddir:
5752 # Code from module rmdir:
5753 # Code from module same-inode:
5754 # Code from module save-cwd:
5755 # Code from module secure_getenv:
5756 # Code from module setenv:
5757 # Code from module signal-h:
5758 # Code from module snippet/_Noreturn:
5759 # Code from module snippet/arg-nonnull:
5760 # Code from module snippet/c++defs:
5761 # Code from module snippet/warn-on-use:
5762 # Code from module ssize_t:
5763 # Code from module stat:
5764 # Code from module stdbool:
5765 # Code from module stddef:
5766 # Code from module stdint:
5767 # Code from module stdio:
5768 # Code from module stdlib:
5769 # Code from module strchrnul:
5770 # Code from module strdup-posix:
5771 # Code from module streq:
5772 # Code from module strerror:
5773 # Code from module strerror-override:
5774 # Code from module string:
5775 # Code from module strnlen1:
5776 # Code from module strstr:
5777 # Code from module strstr-simple:
5778 # Code from module strtok_r:
5779 # Code from module sys_stat:
5780 # Code from module sys_time:
5781 # Code from module sys_types:
5782 # Code from module tempname:
5783 # Code from module time:
5784 # Code from module unistd:
5785 # Code from module unistd-safer:
5786 # Code from module unsetenv:
5787 # Code from module update-copyright:
5788 # Code from module verify:
5789 # Code from module wchar:
5790 # Code from module wctype-h:
5793 ac_cpp
='$CPP $CPPFLAGS'
5794 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5797 if test -n "$ac_tool_prefix"; then
5798 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5799 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_CC+:} false
; then :
5803 $as_echo_n "(cached) " >&6
5805 if test -n "$CC"; then
5806 ac_cv_prog_CC
="$CC" # Let the user override the test.
5808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir
=.
5813 for ac_exec_ext
in '' $ac_executable_extensions; do
5814 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 if test -n "$CC"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5828 $as_echo "$CC" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5836 if test -z "$ac_cv_prog_CC"; then
5838 # Extract the first word of "gcc", so it can be a program name with args.
5839 set dummy gcc
; ac_word
=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5843 $as_echo_n "(cached) " >&6
5845 if test -n "$ac_ct_CC"; then
5846 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir
=.
5853 for ac_exec_ext
in '' $ac_executable_extensions; do
5854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_ac_ct_CC
="gcc"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5866 if test -n "$ac_ct_CC"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5868 $as_echo "$ac_ct_CC" >&6; }
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5874 if test "x$ac_ct_CC" = x
; then
5877 case $cross_compiling:$ac_tool_warned in
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned
=yes ;;
5889 if test -z "$CC"; then
5890 if test -n "$ac_tool_prefix"; then
5891 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5892 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_prog_CC+:} false
; then :
5896 $as_echo_n "(cached) " >&6
5898 if test -n "$CC"; then
5899 ac_cv_prog_CC
="$CC" # Let the user override the test.
5901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir
=.
5906 for ac_exec_ext
in '' $ac_executable_extensions; do
5907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 if test -n "$CC"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5921 $as_echo "$CC" >&6; }
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5930 if test -z "$CC"; then
5931 # Extract the first word of "cc", so it can be a program name with args.
5932 set dummy cc
; ac_word
=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if ${ac_cv_prog_CC+:} false
; then :
5936 $as_echo_n "(cached) " >&6
5938 if test -n "$CC"; then
5939 ac_cv_prog_CC
="$CC" # Let the user override the test.
5942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5946 test -z "$as_dir" && as_dir
=.
5947 for ac_exec_ext
in '' $ac_executable_extensions; do
5948 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5949 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5950 ac_prog_rejected
=yes
5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 if test $ac_prog_rejected = yes; then
5962 # We found a bogon in the path, so make sure we never use it.
5963 set dummy
$ac_cv_prog_CC
5965 if test $# != 0; then
5966 # We chose a different compiler from the bogus one.
5967 # However, it has the same basename, so the bogon will be chosen
5968 # first if we set CC to just the basename; use the full file name.
5970 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5976 if test -n "$CC"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5978 $as_echo "$CC" >&6; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5986 if test -z "$CC"; then
5987 if test -n "$ac_tool_prefix"; then
5988 for ac_prog
in cl.exe
5990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5991 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993 $as_echo_n "checking for $ac_word... " >&6; }
5994 if ${ac_cv_prog_CC+:} false
; then :
5995 $as_echo_n "(cached) " >&6
5997 if test -n "$CC"; then
5998 ac_cv_prog_CC
="$CC" # Let the user override the test.
6000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6004 test -z "$as_dir" && as_dir
=.
6005 for ac_exec_ext
in '' $ac_executable_extensions; do
6006 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6007 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 if test -n "$CC"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6020 $as_echo "$CC" >&6; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6027 test -n "$CC" && break
6030 if test -z "$CC"; then
6032 for ac_prog
in cl.exe
6034 # Extract the first word of "$ac_prog", so it can be a program name with args.
6035 set dummy
$ac_prog; ac_word
=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6039 $as_echo_n "(cached) " >&6
6041 if test -n "$ac_ct_CC"; then
6042 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir
=.
6049 for ac_exec_ext
in '' $ac_executable_extensions; do
6050 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_CC
="$ac_prog"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6062 if test -n "$ac_ct_CC"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6064 $as_echo "$ac_ct_CC" >&6; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6071 test -n "$ac_ct_CC" && break
6074 if test "x$ac_ct_CC" = x
; then
6077 case $cross_compiling:$ac_tool_warned in
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6081 ac_tool_warned
=yes ;;
6090 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6092 as_fn_error $?
"no acceptable C compiler found in \$PATH
6093 See \`config.log' for more details" "$LINENO" 5; }
6095 # Provide some information about the compiler.
6096 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6099 for ac_option
in --version -v -V -qversion; do
6100 { { ac_try
="$ac_compiler $ac_option >&5"
6102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6106 $as_echo "$ac_try_echo"; } >&5
6107 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6109 if test -s conftest.err; then
6111 ... rest of stderr output deleted ...
6112 10q' conftest.err >conftest.er1
6113 cat conftest.er1 >&5
6115 rm -f conftest.er1 conftest.err
6116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117 test $ac_status = 0; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6121 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6122 if ${ac_cv_c_compiler_gnu+:} false; then :
6123 $as_echo_n "(cached) " >&6
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6139 if ac_fn_c_try_compile "$LINENO"; then :
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6149 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6150 if test $ac_compiler_gnu = yes; then
6155 ac_test_CFLAGS=${CFLAGS+set}
6156 ac_save_CFLAGS=$CFLAGS
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6158 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6159 if ${ac_cv_prog_cc_g+:} false; then :
6160 $as_echo_n "(cached) " >&6
6162 ac_save_c_werror_flag=$ac_c_werror_flag
6163 ac_c_werror_flag=yes
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6177 if ac_fn_c_try_compile "$LINENO"; then :
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6192 if ac_fn_c_try_compile "$LINENO"; then :
6195 ac_c_werror_flag=$ac_save_c_werror_flag
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6208 if ac_fn_c_try_compile "$LINENO"; then :
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 ac_c_werror_flag=$ac_save_c_werror_flag
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6219 $as_echo "$ac_cv_prog_cc_g" >&6; }
6220 if test "$ac_test_CFLAGS" = set; then
6221 CFLAGS=$ac_save_CFLAGS
6222 elif test $ac_cv_prog_cc_g = yes; then
6223 if test "$GCC" = yes; then
6229 if test "$GCC" = yes; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6236 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6237 if ${ac_cv_prog_cc_c89+:} false; then :
6238 $as_echo_n "(cached) " >&6
6240 ac_cv_prog_cc_c89=no
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6248 struct buf { int x; };
6249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6250 static char *e (p, i)
6256 static char *f (char * (*g) (char **, int), char **p, ...)
6261 s = g (p, va_arg (v,int));
6266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6267 function prototypes and stuff, but not '\xHH' hex character constants.
6268 These don't provoke an error unfortunately, instead are silently treated
6269 as 'x'. The following induces an error, until -std is added to get
6270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6271 array size at least. It's necessary to write '\x00'==0 to get something
6272 that's true only with -std. */
6273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6276 inside strings and character constants. */
6278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6280 int test (int i, double x);
6281 struct s1 {int (*f) (int a);};
6282 struct s2 {int (*f) (double a);};
6283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6297 CC="$ac_save_CC $ac_arg"
6298 if ac_fn_c_try_compile "$LINENO"; then :
6299 ac_cv_prog_cc_c89=$ac_arg
6301 rm -f core conftest.err conftest.$ac_objext
6302 test "x$ac_cv_prog_cc_c89" != "xno" && break
6304 rm -f conftest.$ac_ext
6309 case "x$ac_cv_prog_cc_c89" in
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6312 $as_echo "none needed" >&6; } ;;
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6315 $as_echo "unsupported" >&6; } ;;
6317 CC="$CC $ac_cv_prog_cc_c89"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6321 if test "x$ac_cv_prog_cc_c89" != xno; then :
6326 ac_cpp='$CPP $CPPFLAGS'
6327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6332 ac_cpp='$CPP $CPPFLAGS'
6333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6337 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6338 if ${am_cv_prog_cc_c_o+:} false; then :
6339 $as_echo_n "(cached) " >&6
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6352 # Make sure it works both with $CC and with simple cc.
6353 # Following AC_PROG_CC_C_O, we do the test twice because some
6354 # compilers refuse to overwrite an existing .o file with -o,
6355 # though they will create one.
6356 am_cv_prog_cc_c_o=yes
6358 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6359 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } \
6363 && test -f conftest2.$ac_objext; then
6366 am_cv_prog_cc_c_o=no
6370 rm -f core conftest*
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6374 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6375 if test "$am_cv_prog_cc_c_o" != yes; then
6376 # Losing compiler, so override with the script.
6377 # FIXME: It is wrong to rewrite CC.
6378 # But if we don't then we get into trouble of one sort or another.
6379 # A longer-term fix would be to have automake use am__CC in this case,
6380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6381 CC="$am_aux_dir/compile $CC"
6384 ac_cpp='$CPP $CPPFLAGS'
6385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6390 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6394 for ac_dir in ../.. "$srcdir"/../..; do
6395 if test -f "$ac_dir/install-sh"; then
6397 ac_install_sh="$ac_aux_dir/install-sh -c"
6399 elif test -f "$ac_dir/install.sh"; then
6401 ac_install_sh="$ac_aux_dir/install.sh -c"
6403 elif test -f "$ac_dir/shtool"; then
6405 ac_install_sh="$ac_aux_dir/shtool install -c"
6409 if test -z "$ac_aux_dir"; then
6410 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
6413 # These three variables are undocumented and unsupported,
6414 # and are intended to be withdrawn in a future Autoconf release.
6415 # They can cause serious problems if a builder's source tree is in a directory
6416 # whose full name contains unusual characters.
6417 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6418 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6419 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6423 $as_echo_n "checking target system type... " >&6; }
6424 if ${ac_cv_target+:} false; then :
6425 $as_echo_n "(cached) " >&6
6427 if test "x$target_alias" = x; then
6428 ac_cv_target=$ac_cv_host
6430 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6436 $as_echo "$ac_cv_target" >&6; }
6437 case $ac_cv_target in
6439 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6441 target=$ac_cv_target
6442 ac_save_IFS=$IFS; IFS='-'
6448 # Remember, the first character of IFS is used to create $*,
6449 # except with old shells:
6452 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
6455 # The aliases save the names the user supplied, while $host etc.
6456 # will get canonicalized.
6457 test -n "$target_alias" &&
6458 test "$program_prefix$program_suffix$program_transform_name" = \
6460 program_prefix=${target_alias}-
6468 LIBC_FATAL_STDERR_=1
6469 export LIBC_FATAL_STDERR_
6471 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6472 if test "x$ac_cv_type_size_t" = xyes; then :
6476 cat >>confdefs.h <<_ACEOF
6477 #define size_t unsigned int
6482 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6483 # for constant arguments. Useless!
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6485 $as_echo_n "checking for working alloca.h... " >&6; }
6486 if ${ac_cv_working_alloca_h+:} false; then :
6487 $as_echo_n "(cached) " >&6
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6495 char *p = (char *) alloca (2 * sizeof (int));
6501 if ac_fn_c_try_link "$LINENO"; then :
6502 ac_cv_working_alloca_h=yes
6504 ac_cv_working_alloca_h=no
6506 rm -f core conftest.err conftest.$ac_objext \
6507 conftest$ac_exeext conftest.$ac_ext
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6510 $as_echo "$ac_cv_working_alloca_h" >&6; }
6511 if test $ac_cv_working_alloca_h = yes; then
6513 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6518 $as_echo_n "checking for alloca... " >&6; }
6519 if ${ac_cv_func_alloca_works+:} false; then :
6520 $as_echo_n "(cached) " >&6
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6525 # define alloca __builtin_alloca
6528 # include <malloc.h>
6529 # define alloca _alloca
6531 # ifdef HAVE_ALLOCA_H
6532 # include <alloca.h>
6537 # ifndef alloca /* predefined by HP cc +Olibcalls */
6538 void *alloca (size_t);
6548 char *p = (char *) alloca (1);
6554 if ac_fn_c_try_link "$LINENO"; then :
6555 ac_cv_func_alloca_works=yes
6557 ac_cv_func_alloca_works=no
6559 rm -f core conftest.err conftest.$ac_objext \
6560 conftest$ac_exeext conftest.$ac_ext
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6563 $as_echo "$ac_cv_func_alloca_works" >&6; }
6565 if test $ac_cv_func_alloca_works = yes; then
6567 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6570 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6571 # that cause trouble. Some versions do not even contain alloca or
6572 # contain a buggy version. If you still want to use their alloca,
6573 # use ar to extract alloca.o from them instead of compiling alloca.c.
6579 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6581 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c
' needs Cray hooks" >&5
6585 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
6586 if ${ac_cv_os_cray+:} false; then :
6587 $as_echo_n "(cached
) " >&6
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591 #if defined CRAY && ! defined CRAY2
6598 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6599 $EGREP "webecray
" >/dev/null 2>&1; then :
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_os_cray" >&5
6608 $as_echo "$ac_cv_os_cray" >&6; }
6609 if test $ac_cv_os_cray = yes; then
6610 for ac_func in _getb67 GETB67 getb67; do
6611 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
6612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6613 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6615 cat >>confdefs.h <<_ACEOF
6616 #define CRAY_STACKSEG_END $ac_func
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction
for C alloca
" >&5
6626 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
6627 if ${ac_cv_c_stack_direction+:} false; then :
6628 $as_echo_n "(cached
) " >&6
6630 if test "$cross_compiling" = yes; then :
6631 ac_cv_c_stack_direction=0
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635 $ac_includes_default
6637 find_stack_direction (int *addr, int depth)
6642 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6643 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6648 main (int argc, char **argv)
6650 return find_stack_direction (0, argc + !argv + 20) < 0;
6653 if ac_fn_c_try_run "$LINENO"; then :
6654 ac_cv_c_stack_direction=1
6656 ac_cv_c_stack_direction=-1
6658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6659 conftest.$ac_objext conftest.beam conftest.$ac_ext
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_stack_direction" >&5
6664 $as_echo "$ac_cv_c_stack_direction" >&6; }
6665 cat >>confdefs.h <<_ACEOF
6666 #define STACK_DIRECTION $ac_cv_c_stack_direction
6675 GNULIB_CALLOC_POSIX=0;
6676 GNULIB_CANONICALIZE_FILE_NAME=0;
6677 GNULIB_GETLOADAVG=0;
6680 GNULIB_MALLOC_POSIX=0;
6687 GNULIB_POSIX_OPENPT=0;
6694 GNULIB_REALLOC_POSIX=0;
6697 GNULIB_SECURE_GETENV=0;
6702 GNULIB_SYSTEM_POSIX=0;
6708 HAVE_CANONICALIZE_FILE_NAME=1;
6709 HAVE_DECL_GETLOADAVG=1;
6717 HAVE_POSIX_OPENPT=1;
6726 HAVE_SECURE_GETENV=1;
6732 HAVE_STRUCT_RANDOM_DATA=1;
6733 HAVE_SYS_LOADAVG_H=0;
6735 HAVE_DECL_UNSETENV=1;
6737 REPLACE_CANONICALIZE_FILE_NAME=0;
6742 REPLACE_PTSNAME_R=0;
6757 for ac_func in $gl_func_list
6759 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
6760 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6761 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6762 cat >>confdefs.h <<_ACEOF
6763 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
// is distinct from
/" >&5
6786 $as_echo_n "checking whether
// is distinct from
/...
" >&6; }
6787 if ${gl_cv_double_slash_root+:} false; then :
6788 $as_echo_n "(cached
) " >&6
6790 if test x"$cross_compiling" = xyes ; then
6791 # When cross-compiling, there is no way to tell whether // is special
6792 # short of a list of hosts. However, the only known hosts to date
6793 # that have a distinct // are Apollo DomainOS (too old to port to),
6794 # Cygwin, and z/OS. If anyone knows of another system for which // has
6795 # special semantics and is distinct from /, please report it to
6796 # <bug-gnulib@gnu.org>.
6798 *-cygwin | i370-ibm-openedition)
6799 gl_cv_double_slash_root=yes ;;
6801 # Be optimistic and assume that / and // are the same when we
6803 gl_cv_double_slash_root='unknown, assuming no' ;;
6806 set x `ls -di / // 2>/dev/null`
6807 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6808 gl_cv_double_slash_root=no
6810 gl_cv_double_slash_root=yes
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gl_cv_double_slash_root" >&5
6815 $as_echo "$gl_cv_double_slash_root" >&6; }
6816 if test "$gl_cv_double_slash_root" = yes; then
6818 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6836 $as_echo_n "checking whether realpath works... " >&6; }
6837 if ${gl_cv_func_realpath_works+:} false
; then :
6838 $as_echo_n "(cached) " >&6
6843 if test "$cross_compiling" = yes; then :
6845 # Guess yes on glibc systems.
6846 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
6847 # If we don't know, assume the worst.
6848 *) gl_cv_func_realpath_works
="guessing no" ;;
6852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6858 #if defined __MACH__ && defined __APPLE__
6859 /* Avoid a crash on Mac OS X. */
6860 #include <mach/mach.h>
6861 #include <mach/mach_error.h>
6862 #include <mach/thread_status.h>
6863 #include <mach/exception.h>
6864 #include <mach/task.h>
6865 #include <pthread.h>
6866 /* The exception port on which our thread listens. */
6867 static mach_port_t our_exception_port;
6868 /* The main function of the thread listening for exceptions of type
6871 mach_exception_thread (void *arg)
6873 /* Buffer for a message to be received. */
6875 mach_msg_header_t head;
6876 mach_msg_body_t msgh_body;
6879 mach_msg_return_t retval;
6880 /* Wait for a message on the exception port. */
6881 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6882 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6883 if (retval != MACH_MSG_SUCCESS)
6890 mach_port_t self = mach_task_self ();
6891 /* Allocate a port on which the thread shall listen for exceptions. */
6892 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6894 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6895 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6896 MACH_MSG_TYPE_MAKE_SEND)
6898 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6900 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6901 /* Create the thread listening on the exception port. */
6902 pthread_attr_t attr;
6904 if (pthread_attr_init (&attr) == 0
6905 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6906 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6907 pthread_attr_destroy (&attr);
6908 /* Replace the exception port info for these exceptions with our own.
6909 Note that we replace the exception port for the entire task, not only
6910 for a particular thread. This has the effect that when our exception
6911 port gets the message, the thread specific exception port has already
6912 been asked, and we don't need to bother about it.
6913 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6914 task_set_exception_ports (self, mask, our_exception_port,
6915 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6920 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6921 /* Avoid a crash on native Windows. */
6922 #define WIN32_LEAN_AND_MEAN
6923 #include <windows.h>
6924 #include <winerror.h>
6926 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6928 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6930 case EXCEPTION_ACCESS_VIOLATION:
6931 case EXCEPTION_IN_PAGE_ERROR:
6932 case EXCEPTION_STACK_OVERFLOW:
6933 case EXCEPTION_GUARD_PAGE:
6934 case EXCEPTION_PRIV_INSTRUCTION:
6935 case EXCEPTION_ILLEGAL_INSTRUCTION:
6936 case EXCEPTION_DATATYPE_MISALIGNMENT:
6937 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6938 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6941 return EXCEPTION_CONTINUE_SEARCH;
6946 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6949 /* Avoid a crash on POSIX systems. */
6952 /* A POSIX signal handler. */
6954 exception_handler (int sig)
6962 signal (SIGSEGV, exception_handler);
6965 signal (SIGBUS, exception_handler);
6979 char *name = realpath ("conftest.a", NULL);
6980 if (!(name && *name == '/'))
6985 char *name = realpath ("conftest.b/../conftest.a", NULL);
6991 char *name = realpath ("conftest.a/", NULL);
6997 char *name1 = realpath (".", NULL);
6998 char *name2 = realpath ("conftest.d//./..", NULL);
6999 if (! name1 || ! name2 || strcmp (name1, name2))
7011 if ac_fn_c_try_run
"$LINENO"; then :
7012 gl_cv_func_realpath_works
=yes
7014 gl_cv_func_realpath_works
=no
7016 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7017 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7020 rm -rf conftest.a conftest.d
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7024 $as_echo "$gl_cv_func_realpath_works" >&6; }
7025 case "$gl_cv_func_realpath_works" in
7028 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7037 for ac_header
in $gl_header_list
7039 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7040 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7041 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7042 cat >>confdefs.h
<<_ACEOF
7043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7087 GNULIB_EUIDACCESS
=0;
7095 GNULIB_GETDOMAINNAME
=0;
7096 GNULIB_GETDTABLESIZE
=0;
7098 GNULIB_GETHOSTNAME
=0;
7100 GNULIB_GETLOGIN_R
=0;
7101 GNULIB_GETPAGESIZE
=0;
7102 GNULIB_GETUSERSHELL
=0;
7103 GNULIB_GROUP_MEMBER
=0;
7115 GNULIB_READLINKAT
=0;
7117 GNULIB_SETHOSTNAME
=0;
7122 GNULIB_UNISTD_H_NONBLOCKING
=0;
7123 GNULIB_UNISTD_H_SIGPIPE
=0;
7138 HAVE_GETDTABLESIZE
=1;
7143 HAVE_GROUP_MEMBER
=1;
7159 HAVE_DECL_ENVIRON
=1;
7161 HAVE_DECL_FDATASYNC
=1;
7162 HAVE_DECL_GETDOMAINNAME
=1;
7163 HAVE_DECL_GETLOGIN_R
=1;
7164 HAVE_DECL_GETPAGESIZE
=1;
7165 HAVE_DECL_GETUSERSHELL
=1;
7166 HAVE_DECL_SETHOSTNAME
=1;
7167 HAVE_DECL_TTYNAME_R
=1;
7175 REPLACE_FTRUNCATE
=0;
7177 REPLACE_GETDOMAINNAME
=0;
7178 REPLACE_GETDTABLESIZE
=0;
7179 REPLACE_GETLOGIN_R
=0;
7180 REPLACE_GETGROUPS
=0;
7181 REPLACE_GETPAGESIZE
=0;
7191 REPLACE_READLINKAT
=0;
7195 REPLACE_SYMLINKAT
=0;
7196 REPLACE_TTYNAME_R
=0;
7201 UNISTD_H_HAVE_WINSOCK2_H
=0;
7202 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7235 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7236 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7238 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7241 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7269 HAVE_DECL_FDOPENDIR
=1;
7276 REPLACE_FDOPENDIR
=0;
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7281 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7282 if ${gl_cv_have_include_next+:} false
; then :
7283 $as_echo_n "(cached) " >&6
7285 rm -rf conftestd1a conftestd1b conftestd2
7286 mkdir conftestd1a conftestd1b conftestd2
7287 cat <<EOF > conftestd1a/conftest.h
7288 #define DEFINED_IN_CONFTESTD1
7289 #include_next <conftest.h>
7290 #ifdef DEFINED_IN_CONFTESTD2
7293 #error "include_next doesn't work"
7296 cat <<EOF > conftestd1b/conftest.h
7297 #define DEFINED_IN_CONFTESTD1
7299 #include_next <conftest.h>
7300 #ifdef DEFINED_IN_CONFTESTD2
7303 #error "include_next doesn't work"
7306 cat <<EOF > conftestd2/conftest.h
7307 #ifndef DEFINED_IN_CONFTESTD1
7308 #error "include_next test doesn't work"
7310 #define DEFINED_IN_CONFTESTD2
7312 gl_save_CPPFLAGS
="$CPPFLAGS"
7313 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 #include <conftest.h>
7318 if ac_fn_c_try_compile
"$LINENO"; then :
7319 gl_cv_have_include_next
=yes
7321 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7324 #include <conftest.h>
7326 if ac_fn_c_try_compile
"$LINENO"; then :
7327 gl_cv_have_include_next
=buggy
7329 gl_cv_have_include_next
=no
7331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7335 CPPFLAGS
="$gl_save_CPPFLAGS"
7336 rm -rf conftestd1a conftestd1b conftestd2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7340 $as_echo "$gl_cv_have_include_next" >&6; }
7341 PRAGMA_SYSTEM_HEADER
=
7342 if test $gl_cv_have_include_next = yes; then
7343 INCLUDE_NEXT
=include_next
7344 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7345 if test -n "$GCC"; then
7346 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7349 if test $gl_cv_have_include_next = buggy
; then
7350 INCLUDE_NEXT
=include
7351 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7353 INCLUDE_NEXT
=include
7354 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7361 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7362 if ${gl_cv_pragma_columns+:} false
; then :
7363 $as_echo_n "(cached) " >&6
7365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7374 $EGREP "choke me" >/dev
/null
2>&1; then :
7375 gl_cv_pragma_columns
=yes
7377 gl_cv_pragma_columns
=no
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7384 $as_echo "$gl_cv_pragma_columns" >&6; }
7385 if test $gl_cv_pragma_columns = yes; then
7386 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7411 $as_echo_n "checking if environ is properly declared... " >&6; }
7412 if ${gt_cv_var_environ_declaration+:} false
; then :
7413 $as_echo_n "(cached) " >&6
7416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7421 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7424 extern struct { int foo; } environ;
7433 if ac_fn_c_try_compile
"$LINENO"; then :
7434 gt_cv_var_environ_declaration
=no
7436 gt_cv_var_environ_declaration
=yes
7438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7442 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7443 if test $gt_cv_var_environ_declaration = yes; then
7445 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7450 if test $gt_cv_var_environ_declaration != yes; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7457 $as_echo_n "checking for complete errno.h... " >&6; }
7458 if ${gl_cv_header_errno_h_complete+:} false
; then :
7459 $as_echo_n "(cached) " >&6
7462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7466 #if !defined ETXTBSY
7475 #if !defined ENOLINK
7481 #if !defined EMULTIHOP
7484 #if !defined EBADMSG
7487 #if !defined EOVERFLOW
7490 #if !defined ENOTSUP
7493 #if !defined ENETRESET
7496 #if !defined ECONNABORTED
7505 #if !defined ECANCELED
7508 #if !defined EOWNERDEAD
7511 #if !defined ENOTRECOVERABLE
7519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7520 $EGREP "booboo" >/dev
/null
2>&1; then :
7521 gl_cv_header_errno_h_complete
=no
7523 gl_cv_header_errno_h_complete
=yes
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7530 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7531 if test $gl_cv_header_errno_h_complete = yes; then
7542 if test $gl_cv_have_include_next = yes; then
7543 gl_cv_next_errno_h
='<'errno.h
'>'
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7546 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7547 if ${gl_cv_next_errno_h+:} false
; then :
7548 $as_echo_n "(cached) " >&6
7553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7558 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7559 *) gl_absname_cpp
="$ac_cpp" ;;
7564 gl_dirsep_regex
='[/\\]'
7567 gl_dirsep_regex
='\/'
7570 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
7571 gl_header_literal_regex
=`echo 'errno.h' \
7572 | sed -e "$gl_make_literal_regex_sed"`
7573 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7574 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7580 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7581 sed -n "$gl_absolute_header_sed"`
7583 gl_header
=$gl_cv_absolute_errno_h
7584 gl_cv_next_errno_h
='"'$gl_header'"'
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7589 $as_echo "$gl_cv_next_errno_h" >&6; }
7591 NEXT_ERRNO_H
=$gl_cv_next_errno_h
7593 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7595 gl_next_as_first_directive
='<'errno.h
'>'
7597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7598 gl_next_as_first_directive
=$gl_cv_next_errno_h
7600 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
7608 if test -n "$ERRNO_H"; then
7609 GL_GENERATE_ERRNO_H_TRUE
=
7610 GL_GENERATE_ERRNO_H_FALSE
='#'
7612 GL_GENERATE_ERRNO_H_TRUE
='#'
7613 GL_GENERATE_ERRNO_H_FALSE
=
7617 if test -n "$ERRNO_H"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7619 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7620 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
7621 $as_echo_n "(cached) " >&6
7624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7634 $EGREP "yes" >/dev
/null
2>&1; then :
7635 gl_cv_header_errno_h_EMULTIHOP
=yes
7637 gl_cv_header_errno_h_EMULTIHOP
=no
7641 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
7642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7645 #define _XOPEN_SOURCE_EXTENDED 1
7652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7653 $EGREP "yes" >/dev
/null
2>&1; then :
7654 gl_cv_header_errno_h_EMULTIHOP
=hidden
7658 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
7659 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7660 #define _XOPEN_SOURCE_EXTENDED 1
7662 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7674 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7675 case $gl_cv_header_errno_h_EMULTIHOP in
7677 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
7680 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
7688 if test -n "$ERRNO_H"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7690 $as_echo_n "checking for ENOLINK value... " >&6; }
7691 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
7692 $as_echo_n "(cached) " >&6
7695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7705 $EGREP "yes" >/dev
/null
2>&1; then :
7706 gl_cv_header_errno_h_ENOLINK
=yes
7708 gl_cv_header_errno_h_ENOLINK
=no
7712 if test $gl_cv_header_errno_h_ENOLINK = no
; then
7713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7714 /* end confdefs.h. */
7716 #define _XOPEN_SOURCE_EXTENDED 1
7723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7724 $EGREP "yes" >/dev
/null
2>&1; then :
7725 gl_cv_header_errno_h_ENOLINK
=hidden
7729 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
7730 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7731 #define _XOPEN_SOURCE_EXTENDED 1
7733 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7745 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7746 case $gl_cv_header_errno_h_ENOLINK in
7748 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
7751 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
7759 if test -n "$ERRNO_H"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7761 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7762 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
7763 $as_echo_n "(cached) " >&6
7766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7776 $EGREP "yes" >/dev
/null
2>&1; then :
7777 gl_cv_header_errno_h_EOVERFLOW
=yes
7779 gl_cv_header_errno_h_EOVERFLOW
=no
7783 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
7784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7787 #define _XOPEN_SOURCE_EXTENDED 1
7794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7795 $EGREP "yes" >/dev
/null
2>&1; then :
7796 gl_cv_header_errno_h_EOVERFLOW
=hidden
7800 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
7801 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7802 #define _XOPEN_SOURCE_EXTENDED 1
7804 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7816 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7817 case $gl_cv_header_errno_h_EOVERFLOW in
7819 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
7822 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
7830 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
7831 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
7837 cat >>confdefs.h
<<_ACEOF
7838 #define HAVE_DECL_STRERROR_R $ac_have_decl
7841 for ac_func
in strerror_r
7843 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
7844 if test "x$ac_cv_func_strerror_r" = xyes
; then :
7845 cat >>confdefs.h
<<_ACEOF
7846 #define HAVE_STRERROR_R 1
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
7853 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7854 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
7855 $as_echo_n "(cached) " >&6
7858 ac_cv_func_strerror_r_char_p
=no
7859 if test $ac_cv_have_decl_strerror_r = yes; then
7860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862 $ac_includes_default
7868 char x = *strerror_r (0, buf, sizeof buf);
7869 char *p = strerror_r (0, buf, sizeof buf);
7876 if ac_fn_c_try_compile
"$LINENO"; then :
7877 ac_cv_func_strerror_r_char_p
=yes
7879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7881 # strerror_r is not declared. Choose between
7882 # systems that have relatively inaccessible declarations for the
7883 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
7884 # former has a strerror_r that returns char*, while the latter
7885 # has a strerror_r that returns `int'.
7886 # This test should segfault on the DEC system.
7887 if test "$cross_compiling" = yes; then :
7890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7892 $ac_includes_default
7893 extern char *strerror_r ();
7898 char x = *strerror_r (0, buf, sizeof buf);
7899 return ! isalpha (x);
7904 if ac_fn_c_try_run
"$LINENO"; then :
7905 ac_cv_func_strerror_r_char_p
=yes
7907 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7908 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
7915 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7916 if test $ac_cv_func_strerror_r_char_p = yes; then
7918 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
7926 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
7927 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
7933 cat >>confdefs.h
<<_ACEOF
7934 #define HAVE_DECL_FCHDIR $ac_have_decl
7940 GNULIB_NONBLOCKING
=0;
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7977 $as_echo_n "checking for working fcntl.h... " >&6; }
7978 if ${gl_cv_header_working_fcntl_h+:} false
; then :
7979 $as_echo_n "(cached) " >&6
7981 if test "$cross_compiling" = yes; then :
7982 gl_cv_header_working_fcntl_h
=cross-compiling
7984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #include <sys/types.h>
7987 #include <sys/stat.h>
7989 # include <unistd.h>
7990 #else /* on Windows with MSVC */
7992 # include <stdlib.h>
7993 # defined sleep(n) _sleep ((n) * 1000)
8000 #define O_NOFOLLOW 0
8002 static int const constants[] =
8004 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8005 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8012 int result = !constants;
8015 static char const sym[] = "conftest.sym";
8016 if (symlink ("/dev/null", sym) != 0)
8020 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8027 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8031 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8042 static char const file[] = "confdefs.h";
8043 int fd = open (file, O_RDONLY | O_NOATIME);
8049 if (fstat (fd, &st0) != 0)
8055 if (read (fd, &c, 1) != 1)
8059 if (close (fd) != 0)
8064 if (stat (file, &st1) != 0)
8067 if (st0.st_atime != st1.st_atime)
8079 if ac_fn_c_try_run
"$LINENO"; then :
8080 gl_cv_header_working_fcntl_h
=yes
8083 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8084 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8085 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8086 *) gl_cv_header_working_fcntl_h
='no';;
8089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8090 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8095 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8097 case $gl_cv_header_working_fcntl_h in #(
8098 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8102 cat >>confdefs.h
<<_ACEOF
8103 #define HAVE_WORKING_O_NOATIME $ac_val
8107 case $gl_cv_header_working_fcntl_h in #(
8108 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8112 cat >>confdefs.h
<<_ACEOF
8113 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8117 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8118 if test "x$ac_cv_type_pid_t" = xyes
; then :
8122 cat >>confdefs.h
<<_ACEOF
8128 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8129 if test "x$ac_cv_type_mode_t" = xyes
; then :
8133 cat >>confdefs.h
<<_ACEOF
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8152 $as_echo_n "checking for mbstate_t... " >&6; }
8153 if ${ac_cv_type_mbstate_t+:} false
; then :
8154 $as_echo_n "(cached) " >&6
8156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8158 $ac_includes_default
8159 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8161 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8162 included before <wchar.h>. */
8170 mbstate_t x; return sizeof x;
8175 if ac_fn_c_try_compile
"$LINENO"; then :
8176 ac_cv_type_mbstate_t
=yes
8178 ac_cv_type_mbstate_t
=no
8180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8183 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8184 if test $ac_cv_type_mbstate_t = yes; then
8186 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8190 $as_echo "#define mbstate_t int" >>confdefs.h
8310 GNULIB_REMAINDERF
=0;
8311 GNULIB_REMAINDERL
=0;
8397 HAVE_DECL_COPYSIGNF
=1;
8414 HAVE_DECL_REMAINDER
=1;
8415 HAVE_DECL_REMAINDERL
=1;
8477 REPLACE_REMAINDER
=0;
8478 REPLACE_REMAINDERF
=0;
8479 REPLACE_REMAINDERL
=0;
8484 REPLACE_SIGNBIT_USING_GCC
=0;
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
8492 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
8493 if ${gl_cv_func_frexp_no_libm+:} false
; then :
8494 $as_echo_n "(cached) " >&6
8497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8504 int e; return frexp (x, &e) > 0;
8509 if ac_fn_c_try_link
"$LINENO"; then :
8510 gl_cv_func_frexp_no_libm
=yes
8512 gl_cv_func_frexp_no_libm
=no
8514 rm -f core conftest.err conftest.
$ac_objext \
8515 conftest
$ac_exeext conftest.
$ac_ext
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
8519 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
8522 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
8523 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
8529 cat >>confdefs.h
<<_ACEOF
8530 #define HAVE_DECL_ALARM $ac_have_decl
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8536 $as_echo_n "checking whether long double and double are the same... " >&6; }
8537 if ${gl_cv_long_double_equals_double+:} false
; then :
8538 $as_echo_n "(cached) " >&6
8540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8546 typedef int check[sizeof (long double) == sizeof (double)
8547 && LDBL_MANT_DIG == DBL_MANT_DIG
8548 && LDBL_MAX_EXP == DBL_MAX_EXP
8549 && LDBL_MIN_EXP == DBL_MIN_EXP
8556 if ac_fn_c_try_compile
"$LINENO"; then :
8557 gl_cv_long_double_equals_double
=yes
8559 gl_cv_long_double_equals_double
=no
8561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8565 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8566 if test $gl_cv_long_double_equals_double = yes; then
8568 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8570 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
8572 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
8609 REPLACE_UTIMENSAT
=0;
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8612 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8613 if ${ac_cv_header_stat_broken+:} false
; then :
8614 $as_echo_n "(cached) " >&6
8616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 #include <sys/types.h>
8619 #include <sys/stat.h>
8621 #if defined S_ISBLK && defined S_IFDIR
8622 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8625 #if defined S_ISBLK && defined S_IFCHR
8626 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8629 #if defined S_ISLNK && defined S_IFREG
8630 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8633 #if defined S_ISSOCK && defined S_IFREG
8634 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8638 if ac_fn_c_try_compile
"$LINENO"; then :
8639 ac_cv_header_stat_broken
=no
8641 ac_cv_header_stat_broken
=yes
8643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8646 $as_echo "$ac_cv_header_stat_broken" >&6; }
8647 if test $ac_cv_header_stat_broken = yes; then
8649 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8663 $as_echo_n "checking for 64-bit off_t... " >&6; }
8664 if ${gl_cv_type_off_t_64+:} false
; then :
8665 $as_echo_n "(cached) " >&6
8667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 #include <sys/types.h>
8670 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8680 if ac_fn_c_try_compile
"$LINENO"; then :
8681 gl_cv_type_off_t_64
=yes
8683 gl_cv_type_off_t_64
=no
8685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8689 $as_echo "$gl_cv_type_off_t_64" >&6; }
8690 if test $gl_cv_type_off_t_64 = no
; then
8691 WINDOWS_64_BIT_OFF_T
=1
8693 WINDOWS_64_BIT_OFF_T
=0
8695 WINDOWS_64_BIT_ST_SIZE
=1
8698 WINDOWS_64_BIT_OFF_T
=0
8699 WINDOWS_64_BIT_ST_SIZE
=0
8723 if test $gl_cv_have_include_next = yes; then
8724 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
8727 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
8728 if ${gl_cv_next_sys_stat_h+:} false
; then :
8729 $as_echo_n "(cached) " >&6
8732 if test $ac_cv_header_sys_stat_h = yes; then
8737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #include <sys/stat.h>
8742 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8743 *) gl_absname_cpp
="$ac_cpp" ;;
8748 gl_dirsep_regex
='[/\\]'
8751 gl_dirsep_regex
='\/'
8754 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8755 gl_header_literal_regex
=`echo 'sys/stat.h' \
8756 | sed -e "$gl_make_literal_regex_sed"`
8757 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8758 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8764 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8765 sed -n "$gl_absolute_header_sed"`
8767 gl_header
=$gl_cv_absolute_sys_stat_h
8768 gl_cv_next_sys_stat_h
='"'$gl_header'"'
8770 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
8776 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
8778 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
8780 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8782 gl_next_as_first_directive
='<'sys
/stat.h
'>'
8784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8785 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
8787 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
8799 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
8801 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
8805 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
8806 #include <sys/stat.h>
8808 if test "x$ac_cv_type_nlink_t" = xyes
; then :
8812 $as_echo "#define nlink_t int" >>confdefs.h
8818 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
8819 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8821 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8822 if eval \
${$as_gl_Symbol+:} false
; then :
8823 $as_echo_n "(cached) " >&6
8825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <sys/stat.h>
8838 if ac_fn_c_try_compile
"$LINENO"; then :
8839 eval "$as_gl_Symbol=yes"
8841 eval "$as_gl_Symbol=no"
8843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8845 eval ac_res
=\$
$as_gl_Symbol
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8847 $as_echo "$ac_res" >&6; }
8848 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
8849 cat >>confdefs.h
<<_ACEOF
8850 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8853 eval ac_cv_have_decl_
$gl_func=yes
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8860 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
8861 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
8862 $as_echo_n "(cached) " >&6
8864 rm -f conftest.sym conftest.
file
8866 if test "$cross_compiling" = yes; then :
8869 # Guess yes on glibc systems.
8870 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
8872 # If we don't know, assume the worst.
8873 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
8877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8879 $ac_includes_default
8884 if (symlink ("conftest.file", "conftest.sym") != 0)
8886 /* Linux will dereference the symlink and fail, as required by
8887 POSIX. That is better in the sense that it means we will not
8888 have to compile and use the lstat wrapper. */
8889 return lstat ("conftest.sym/", &sbuf) == 0;
8895 if ac_fn_c_try_run
"$LINENO"; then :
8896 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
8898 gl_cv_func_lstat_dereferences_slashed_symlink
=no
8900 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8901 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8904 rm -f conftest.sym conftest.
file
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
8908 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8909 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
8912 cat >>confdefs.h
<<_ACEOF
8913 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
8933 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
8934 if ${gl_cv_func_getcwd_null+:} false
; then :
8935 $as_echo_n "(cached) " >&6
8937 if test "$cross_compiling" = yes; then :
8939 # Guess yes on glibc systems.
8940 *-gnu*) gl_cv_func_getcwd_null
="guessing yes";;
8941 # Guess yes on Cygwin.
8942 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
8943 # If we don't know, assume the worst.
8944 *) gl_cv_func_getcwd_null
="guessing no";;
8948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8951 # include <stdlib.h>
8953 # include <unistd.h>
8954 # else /* on Windows with MSVC */
8955 # include <direct.h>
8965 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
8966 /* mingw cwd does not start with '/', but getcwd does allocate.
8967 However, mingw fails to honor non-zero size. */
8969 if (chdir ("/") != 0)
8973 char *f = getcwd (NULL, 0);
8989 if ac_fn_c_try_run
"$LINENO"; then :
8990 gl_cv_func_getcwd_null
=yes
8992 gl_cv_func_getcwd_null
=no
8994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8995 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9000 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9004 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9005 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9006 $as_echo_n "(cached) " >&6
9008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9018 char *getcwd (char *, size_t);
9025 if ac_fn_c_try_compile
"$LINENO"; then :
9026 gl_cv_func_getcwd_posix_signature
=yes
9028 gl_cv_func_getcwd_posix_signature
=no
9030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9034 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9037 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9038 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
9044 cat >>confdefs.h
<<_ACEOF
9045 #define HAVE_DECL_GETCWD $ac_have_decl
9055 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9056 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
9062 cat >>confdefs.h
<<_ACEOF
9063 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9068 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9069 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
9075 cat >>confdefs.h
<<_ACEOF
9076 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9086 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9087 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
9093 cat >>confdefs.h
<<_ACEOF
9094 #define HAVE_DECL_GETLOGIN $ac_have_decl
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9109 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9110 if ${ac_cv_c_restrict+:} false
; then :
9111 $as_echo_n "(cached) " >&6
9114 # The order here caters to the fact that C++ does not require restrict.
9115 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 typedef int *int_ptr;
9119 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9120 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9121 int bar (int ip[$ac_kw]) { return ip[0]; }
9129 return foo (t) + bar (t);
9135 if ac_fn_c_try_compile
"$LINENO"; then :
9136 ac_cv_c_restrict
=$ac_kw
9138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9139 test "$ac_cv_c_restrict" != no
&& break
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9144 $as_echo "$ac_cv_c_restrict" >&6; }
9146 case $ac_cv_c_restrict in
9148 no
) $as_echo "#define restrict /**/" >>confdefs.h
9150 *) cat >>confdefs.h
<<_ACEOF
9151 #define restrict $ac_cv_c_restrict
9157 GNULIB_GETTIMEOFDAY
=0;
9158 HAVE_GETTIMEOFDAY
=1;
9159 HAVE_STRUCT_TIMEVAL
=1;
9162 REPLACE_GETTIMEOFDAY
=0;
9163 REPLACE_STRUCT_TIMEVAL
=0;
9195 if test $gl_cv_have_include_next = yes; then
9196 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9199 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9200 if ${gl_cv_next_sys_time_h+:} false
; then :
9201 $as_echo_n "(cached) " >&6
9204 if test $ac_cv_header_sys_time_h = yes; then
9209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211 #include <sys/time.h>
9214 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9215 *) gl_absname_cpp
="$ac_cpp" ;;
9220 gl_dirsep_regex
='[/\\]'
9223 gl_dirsep_regex
='\/'
9226 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9227 gl_header_literal_regex
=`echo 'sys/time.h' \
9228 | sed -e "$gl_make_literal_regex_sed"`
9229 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9230 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9236 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9237 sed -n "$gl_absolute_header_sed"`
9239 gl_header
=$gl_cv_absolute_sys_time_h
9240 gl_cv_next_sys_time_h
='"'$gl_header'"'
9242 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9248 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9250 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9252 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9253 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9254 gl_next_as_first_directive
='<'sys
/time.h
'>'
9256 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9257 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
9259 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
9265 if test $ac_cv_header_sys_time_h != yes; then
9279 if test $ac_cv_header_sys_socket_h != yes; then
9280 for ac_header
in winsock2.h
9282 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9283 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
9284 cat >>confdefs.h
<<_ACEOF
9285 #define HAVE_WINSOCK2_H 1
9293 if test "$ac_cv_header_winsock2_h" = yes; then
9295 UNISTD_H_HAVE_WINSOCK2_H
=1
9296 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9303 $as_echo_n "checking for struct timeval... " >&6; }
9304 if ${gl_cv_sys_struct_timeval+:} false
; then :
9305 $as_echo_n "(cached) " >&6
9307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9310 #include <sys/time.h>
9314 # include <winsock2.h>
9320 static struct timeval x; x.tv_sec = x.tv_usec;
9325 if ac_fn_c_try_compile
"$LINENO"; then :
9326 gl_cv_sys_struct_timeval
=yes
9328 gl_cv_sys_struct_timeval
=no
9330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9334 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9335 if test $gl_cv_sys_struct_timeval != yes; then
9336 HAVE_STRUCT_TIMEVAL
=0
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9339 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9340 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
9341 $as_echo_n "(cached) " >&6
9343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9346 #include <sys/time.h>
9350 # include <winsock2.h>
9356 static struct timeval x;
9357 typedef int verify_tv_sec_type[
9358 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9365 if ac_fn_c_try_compile
"$LINENO"; then :
9366 gl_cv_sys_struct_timeval_tv_sec
=yes
9368 gl_cv_sys_struct_timeval_tv_sec
=no
9370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9374 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9375 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9376 REPLACE_STRUCT_TIMEVAL
=1
9381 for gl_func
in gettimeofday
; do
9382 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9384 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9385 if eval \
${$as_gl_Symbol+:} false
; then :
9386 $as_echo_n "(cached) " >&6
9388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9392 # include <sys/time.h>
9405 if ac_fn_c_try_compile
"$LINENO"; then :
9406 eval "$as_gl_Symbol=yes"
9408 eval "$as_gl_Symbol=no"
9410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9412 eval ac_res
=\$
$as_gl_Symbol
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9414 $as_echo "$ac_res" >&6; }
9415 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9416 cat >>confdefs.h
<<_ACEOF
9417 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9420 eval ac_cv_have_decl_
$gl_func=yes
9464 if test $gl_cv_have_include_next = yes; then
9465 gl_cv_next_limits_h
='<'limits.h
'>'
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
9468 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
9469 if ${gl_cv_next_limits_h+:} false
; then :
9470 $as_echo_n "(cached) " >&6
9473 if test $ac_cv_header_limits_h = yes; then
9478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9483 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9484 *) gl_absname_cpp
="$ac_cpp" ;;
9489 gl_dirsep_regex
='[/\\]'
9492 gl_dirsep_regex
='\/'
9495 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9496 gl_header_literal_regex
=`echo 'limits.h' \
9497 | sed -e "$gl_make_literal_regex_sed"`
9498 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9499 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9505 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9506 sed -n "$gl_absolute_header_sed"`
9508 gl_header
=$gl_cv_absolute_limits_h
9509 gl_cv_next_limits_h
='"'$gl_header'"'
9511 gl_cv_next_limits_h
='<'limits.h
'>'
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
9517 $as_echo "$gl_cv_next_limits_h" >&6; }
9519 NEXT_LIMITS_H
=$gl_cv_next_limits_h
9521 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9522 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9523 gl_next_as_first_directive
='<'limits.h
'>'
9525 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9526 gl_next_as_first_directive
=$gl_cv_next_limits_h
9528 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
9535 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
9536 if ${gl_cv_header_limits_width+:} false
; then :
9537 $as_echo_n "(cached) " >&6
9539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
9542 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
9545 int ullw = ULLONG_WIDTH;
9554 if ac_fn_c_try_compile
"$LINENO"; then :
9555 gl_cv_header_limits_width
=yes
9557 gl_cv_header_limits_width
=no
9559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
9562 $as_echo "$gl_cv_header_limits_width" >&6; }
9563 if test "$gl_cv_header_limits_width" = yes; then
9569 if test -n "$LIMITS_H"; then
9570 GL_GENERATE_LIMITS_H_TRUE
=
9571 GL_GENERATE_LIMITS_H_FALSE
='#'
9573 GL_GENERATE_LIMITS_H_TRUE
='#'
9574 GL_GENERATE_LIMITS_H_FALSE
=
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
9580 $as_echo_n "checking for unsigned long long int... " >&6; }
9581 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
9582 $as_echo_n "(cached) " >&6
9584 ac_cv_type_unsigned_long_long_int
=yes
9585 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
9586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9589 /* For now, do not test the preprocessor; as of 2007 there are too many
9590 implementations with broken preprocessors. Perhaps this can
9591 be revisited in 2012. In the meantime, code should not expect
9592 #if to work with literals wider than 32 bits. */
9593 /* Test literals. */
9594 long long int ll = 9223372036854775807ll;
9595 long long int nll = -9223372036854775807LL;
9596 unsigned long long int ull = 18446744073709551615ULL;
9597 /* Test constant expressions. */
9598 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9600 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9606 /* Test availability of runtime routines for shift and division. */
9607 long long int llmax = 9223372036854775807ll;
9608 unsigned long long int ullmax = 18446744073709551615ull;
9609 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9610 | (llmax / ll) | (llmax % ll)
9611 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9612 | (ullmax / ull) | (ullmax % ull));
9618 if ac_fn_c_try_link
"$LINENO"; then :
9621 ac_cv_type_unsigned_long_long_int
=no
9623 rm -f core conftest.err conftest.
$ac_objext \
9624 conftest
$ac_exeext conftest.
$ac_ext
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
9628 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9629 if test $ac_cv_type_unsigned_long_long_int = yes; then
9631 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9638 $as_echo_n "checking for long long int... " >&6; }
9639 if ${ac_cv_type_long_long_int+:} false
; then :
9640 $as_echo_n "(cached) " >&6
9642 ac_cv_type_long_long_int
=yes
9643 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
9644 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
9645 if test $ac_cv_type_long_long_int = yes; then
9646 if test "$cross_compiling" = yes; then :
9649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9654 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9655 # define LLONG_MAX (HALF - 1 + HALF)
9660 long long int n = 1;
9664 long long int m = n << i;
9667 if (LLONG_MAX / 2 < m)
9675 if ac_fn_c_try_run
"$LINENO"; then :
9678 ac_cv_type_long_long_int
=no
9680 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9681 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9688 $as_echo "$ac_cv_type_long_long_int" >&6; }
9689 if test $ac_cv_type_long_long_int = yes; then
9691 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9706 gl_cv_c_multiarch
=no
9707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9709 #ifndef __APPLE_CC__
9710 not a universal capable compiler
9715 if ac_fn_c_try_compile
"$LINENO"; then :
9719 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
9720 if test -n "$prev"; then
9722 i?
86 | x86_64 | ppc | ppc64
)
9723 if test -z "$arch" ||
test "$arch" = "$word"; then
9726 gl_cv_c_multiarch
=yes
9732 if test "x$word" = "x-arch"; then
9739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9740 if test $gl_cv_c_multiarch = yes; then
9741 APPLE_UNIVERSAL_BUILD
=1
9743 APPLE_UNIVERSAL_BUILD
=0
9752 if test $ac_cv_type_long_long_int = yes; then
9753 HAVE_LONG_LONG_INT
=1
9755 HAVE_LONG_LONG_INT
=0
9759 if test $ac_cv_type_unsigned_long_long_int = yes; then
9760 HAVE_UNSIGNED_LONG_LONG_INT
=1
9762 HAVE_UNSIGNED_LONG_LONG_INT
=0
9773 if test $ac_cv_header_wchar_h = yes; then
9780 if test $ac_cv_header_inttypes_h = yes; then
9787 if test $ac_cv_header_sys_types_h = yes; then
9809 if test $gl_cv_have_include_next = yes; then
9810 gl_cv_next_stdint_h
='<'stdint.h
'>'
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
9813 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
9814 if ${gl_cv_next_stdint_h+:} false
; then :
9815 $as_echo_n "(cached) " >&6
9818 if test $ac_cv_header_stdint_h = yes; then
9823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9828 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9829 *) gl_absname_cpp
="$ac_cpp" ;;
9834 gl_dirsep_regex
='[/\\]'
9837 gl_dirsep_regex
='\/'
9840 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9841 gl_header_literal_regex
=`echo 'stdint.h' \
9842 | sed -e "$gl_make_literal_regex_sed"`
9843 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9844 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9850 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9851 sed -n "$gl_absolute_header_sed"`
9853 gl_header
=$gl_cv_absolute_stdint_h
9854 gl_cv_next_stdint_h
='"'$gl_header'"'
9856 gl_cv_next_stdint_h
='<'stdint.h
'>'
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
9862 $as_echo "$gl_cv_next_stdint_h" >&6; }
9864 NEXT_STDINT_H
=$gl_cv_next_stdint_h
9866 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9867 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9868 gl_next_as_first_directive
='<'stdint.h
'>'
9870 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9871 gl_next_as_first_directive
=$gl_cv_next_stdint_h
9873 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
9878 if test $ac_cv_header_stdint_h = yes; then
9885 if test $ac_cv_header_stdint_h = yes; then
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
9887 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
9888 if ${gl_cv_header_working_stdint_h+:} false
; then :
9889 $as_echo_n "(cached) " >&6
9891 gl_cv_header_working_stdint_h
=no
9892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9896 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9897 #define __STDC_CONSTANT_MACROS 1
9898 #define __STDC_LIMIT_MACROS 1
9900 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
9901 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
9902 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
9906 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9907 included before <wchar.h>. */
9918 int8_t a1 = INT8_MAX;
9919 int8_t a1min = INT8_MIN;
9922 int16_t a2 = INT16_MAX;
9923 int16_t a2min = INT16_MIN;
9926 int32_t a3 = INT32_MAX;
9927 int32_t a3min = INT32_MIN;
9930 int64_t a4 = INT64_MAX;
9931 int64_t a4min = INT64_MIN;
9934 uint8_t b1 = UINT8_MAX;
9936 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
9939 uint16_t b2 = UINT16_MAX;
9942 uint32_t b3 = UINT32_MAX;
9945 uint64_t b4 = UINT64_MAX;
9947 int_least8_t c1 = INT8_C (0x7f);
9948 int_least8_t c1max = INT_LEAST8_MAX;
9949 int_least8_t c1min = INT_LEAST8_MIN;
9950 int_least16_t c2 = INT16_C (0x7fff);
9951 int_least16_t c2max = INT_LEAST16_MAX;
9952 int_least16_t c2min = INT_LEAST16_MIN;
9953 int_least32_t c3 = INT32_C (0x7fffffff);
9954 int_least32_t c3max = INT_LEAST32_MAX;
9955 int_least32_t c3min = INT_LEAST32_MIN;
9956 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
9957 int_least64_t c4max = INT_LEAST64_MAX;
9958 int_least64_t c4min = INT_LEAST64_MIN;
9959 uint_least8_t d1 = UINT8_C (0xff);
9960 uint_least8_t d1max = UINT_LEAST8_MAX;
9961 uint_least16_t d2 = UINT16_C (0xffff);
9962 uint_least16_t d2max = UINT_LEAST16_MAX;
9963 uint_least32_t d3 = UINT32_C (0xffffffff);
9964 uint_least32_t d3max = UINT_LEAST32_MAX;
9965 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
9966 uint_least64_t d4max = UINT_LEAST64_MAX;
9967 int_fast8_t e1 = INT_FAST8_MAX;
9968 int_fast8_t e1min = INT_FAST8_MIN;
9969 int_fast16_t e2 = INT_FAST16_MAX;
9970 int_fast16_t e2min = INT_FAST16_MIN;
9971 int_fast32_t e3 = INT_FAST32_MAX;
9972 int_fast32_t e3min = INT_FAST32_MIN;
9973 int_fast64_t e4 = INT_FAST64_MAX;
9974 int_fast64_t e4min = INT_FAST64_MIN;
9975 uint_fast8_t f1 = UINT_FAST8_MAX;
9976 uint_fast16_t f2 = UINT_FAST16_MAX;
9977 uint_fast32_t f3 = UINT_FAST32_MAX;
9978 uint_fast64_t f4 = UINT_FAST64_MAX;
9980 intptr_t g = INTPTR_MAX;
9981 intptr_t gmin = INTPTR_MIN;
9984 uintptr_t h = UINTPTR_MAX;
9986 intmax_t i = INTMAX_MAX;
9987 uintmax_t j = UINTMAX_MAX;
9989 /* Check that SIZE_MAX has the correct type, if possible. */
9990 #if 201112 <= __STDC_VERSION__
9991 int k = _Generic (SIZE_MAX, size_t: 0);
9992 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
9993 || (0x5110 <= __SUNPRO_C && !__STDC__))
9995 extern __typeof__ (SIZE_MAX) k;
9998 #include <limits.h> /* for CHAR_BIT */
9999 #define TYPE_MINIMUM(t) \
10000 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10001 #define TYPE_MAXIMUM(t) \
10002 ((t) ((t) 0 < (t) -1 \
10004 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10007 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10008 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10010 /* Detect bug in FreeBSD 6.0 / ia64. */
10011 int check_SIG_ATOMIC:
10012 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10013 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10015 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10017 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10018 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10020 /* Detect bug in mingw. */
10022 WINT_MIN == TYPE_MINIMUM (wint_t)
10023 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10026 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10028 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10029 int check_UINT16_C:
10030 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10032 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10034 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10037 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10040 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10043 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10045 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10046 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10047 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10048 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10049 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10050 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10051 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10052 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10053 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10054 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10055 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10066 if ac_fn_c_try_compile
"$LINENO"; then :
10067 if test "$cross_compiling" = yes; then :
10068 gl_cv_header_working_stdint_h
=yes
10071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10075 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10076 #define __STDC_CONSTANT_MACROS 1
10077 #define __STDC_LIMIT_MACROS 1
10078 #include <stdint.h>
10081 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10082 included before <wchar.h>. */
10083 #include <stddef.h>
10084 #include <signal.h>
10086 # include <stdio.h>
10088 # include <wchar.h>
10093 #include <string.h>
10094 #define MVAL(macro) MVAL1(macro)
10095 #define MVAL1(expression) #expression
10096 static const char *macro_values[] =
10130 for (mv = macro_values; *mv != NULL; mv++)
10132 const char *value = *mv;
10133 /* Test whether it looks like a cast expression. */
10134 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10135 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10136 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10137 || strncmp (value, "((int)"/*)*/, 6) == 0
10138 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10139 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10140 return mv - macro_values + 1;
10148 if ac_fn_c_try_run
"$LINENO"; then :
10149 gl_cv_header_working_stdint_h
=yes
10151 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10152 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10161 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10164 HAVE_C99_STDINT_H
=0
10165 HAVE_SYS_BITYPES_H
=0
10166 HAVE_SYS_INTTYPES_H
=0
10168 if test "$gl_cv_header_working_stdint_h" = yes; then
10169 HAVE_C99_STDINT_H
=1
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
10171 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
10172 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
10173 $as_echo_n "(cached) " >&6
10175 gl_cv_header_stdint_predates_cxx11_h
=yes
10176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10180 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10181 #include <stdint.h>
10184 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10185 included before <wchar.h>. */
10186 #include <stddef.h>
10187 #include <signal.h>
10189 # include <stdio.h>
10191 # include <wchar.h>
10195 intmax_t im = INTMAX_MAX;
10196 int32_t i32 = INT32_C (0x7fffffff);
10206 if ac_fn_c_try_compile
"$LINENO"; then :
10207 gl_cv_header_stdint_predates_cxx11_h
=no
10209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
10212 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
10214 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
10216 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
10219 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
10223 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
10224 if ${gl_cv_header_stdint_width+:} false
; then :
10225 $as_echo_n "(cached) " >&6
10227 gl_cv_header_stdint_width
=no
10228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10231 /* Work if build is not clean. */
10232 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
10233 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10234 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10236 #include <stdint.h>
10238 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10239 included before <wchar.h>. */
10240 #include <stddef.h>
10241 #include <signal.h>
10243 # include <stdio.h>
10245 # include <wchar.h>
10248 int iw = UINTMAX_WIDTH;
10258 if ac_fn_c_try_compile
"$LINENO"; then :
10259 gl_cv_header_stdint_width
=yes
10261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
10264 $as_echo "$gl_cv_header_stdint_width" >&6; }
10265 if test "$gl_cv_header_stdint_width" = yes; then
10269 for ac_header
in sys
/inttypes.h sys
/bitypes.h
10271 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10272 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10273 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10274 cat >>confdefs.h
<<_ACEOF
10275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10282 if test $ac_cv_header_sys_inttypes_h = yes; then
10283 HAVE_SYS_INTTYPES_H
=1
10285 if test $ac_cv_header_sys_bitypes_h = yes; then
10286 HAVE_SYS_BITYPES_H
=1
10290 if test $APPLE_UNIVERSAL_BUILD = 0; then
10293 for gltype
in ptrdiff_t size_t
; do
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10295 $as_echo_n "checking for bit size of $gltype... " >&6; }
10296 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
10297 $as_echo_n "(cached) " >&6
10299 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10300 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10301 included before <wchar.h>. */
10302 #include <stddef.h>
10303 #include <signal.h>
10305 # include <stdio.h>
10307 # include <wchar.h>
10310 #include <limits.h>"; then :
10316 eval gl_cv_bitsizeof_
${gltype}=\
$result
10319 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10321 $as_echo "$ac_res" >&6; }
10322 eval result
=\
$gl_cv_bitsizeof_${gltype}
10323 if test $result = unknown
; then
10326 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10327 cat >>confdefs.h
<<_ACEOF
10328 #define BITSIZEOF_${GLTYPE} $result
10331 eval BITSIZEOF_
${GLTYPE}=\
$result
10338 for gltype
in sig_atomic_t wchar_t wint_t
; do
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10340 $as_echo_n "checking for bit size of $gltype... " >&6; }
10341 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
10342 $as_echo_n "(cached) " >&6
10344 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10345 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10346 included before <wchar.h>. */
10347 #include <stddef.h>
10348 #include <signal.h>
10350 # include <stdio.h>
10352 # include <wchar.h>
10355 #include <limits.h>"; then :
10361 eval gl_cv_bitsizeof_
${gltype}=\
$result
10364 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10366 $as_echo "$ac_res" >&6; }
10367 eval result
=\
$gl_cv_bitsizeof_${gltype}
10368 if test $result = unknown
; then
10371 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10372 cat >>confdefs.h
<<_ACEOF
10373 #define BITSIZEOF_${GLTYPE} $result
10376 eval BITSIZEOF_
${GLTYPE}=\
$result
10382 for gltype
in sig_atomic_t wchar_t wint_t
; do
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
10384 $as_echo_n "checking whether $gltype is signed... " >&6; }
10385 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
10386 $as_echo_n "(cached) " >&6
10388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10391 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10392 included before <wchar.h>. */
10393 #include <stddef.h>
10394 #include <signal.h>
10396 # include <stdio.h>
10398 # include <wchar.h>
10401 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10410 if ac_fn_c_try_compile
"$LINENO"; then :
10415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10416 eval gl_cv_type_
${gltype}_signed
=\
$result
10419 eval ac_res
=\
$gl_cv_type_${gltype}_signed
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10421 $as_echo "$ac_res" >&6; }
10422 eval result
=\
$gl_cv_type_${gltype}_signed
10423 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10424 if test "$result" = yes; then
10425 cat >>confdefs.h
<<_ACEOF
10426 #define HAVE_SIGNED_${GLTYPE} 1
10429 eval HAVE_SIGNED_
${GLTYPE}=1
10431 eval HAVE_SIGNED_
${GLTYPE}=0
10436 gl_cv_type_ptrdiff_t_signed
=yes
10437 gl_cv_type_size_t_signed
=no
10438 if test $APPLE_UNIVERSAL_BUILD = 0; then
10441 for gltype
in ptrdiff_t size_t
; do
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10443 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10444 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
10445 $as_echo_n "(cached) " >&6
10447 eval gl_cv_type_
${gltype}_suffix
=no
10448 eval result
=\
$gl_cv_type_${gltype}_signed
10449 if test "$result" = yes; then
10454 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
10456 '') gltype1
='int';;
10457 l
) gltype1
='long int';;
10458 ll
) gltype1
='long long int';;
10459 i64
) gltype1
='__int64';;
10460 u
) gltype1
='unsigned int';;
10461 ul
) gltype1
='unsigned long int';;
10462 ull
) gltype1
='unsigned long long int';;
10463 ui64
)gltype1
='unsigned __int64';;
10465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10468 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10469 included before <wchar.h>. */
10470 #include <stddef.h>
10471 #include <signal.h>
10473 # include <stdio.h>
10475 # include <wchar.h>
10478 extern $gltype foo;
10479 extern $gltype1 foo;
10488 if ac_fn_c_try_compile
"$LINENO"; then :
10489 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
10491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10492 eval result
=\
$gl_cv_type_${gltype}_suffix
10493 test "$result" != no
&& break
10496 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10498 $as_echo "$ac_res" >&6; }
10499 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10500 eval result
=\
$gl_cv_type_${gltype}_suffix
10501 test "$result" = no
&& result
=
10502 eval ${GLTYPE}_SUFFIX
=\
$result
10503 cat >>confdefs.h
<<_ACEOF
10504 #define ${GLTYPE}_SUFFIX $result
10513 for gltype
in sig_atomic_t wchar_t wint_t
; do
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10515 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10516 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
10517 $as_echo_n "(cached) " >&6
10519 eval gl_cv_type_
${gltype}_suffix
=no
10520 eval result
=\
$gl_cv_type_${gltype}_signed
10521 if test "$result" = yes; then
10526 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
10528 '') gltype1
='int';;
10529 l
) gltype1
='long int';;
10530 ll
) gltype1
='long long int';;
10531 i64
) gltype1
='__int64';;
10532 u
) gltype1
='unsigned int';;
10533 ul
) gltype1
='unsigned long int';;
10534 ull
) gltype1
='unsigned long long int';;
10535 ui64
)gltype1
='unsigned __int64';;
10537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10540 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10541 included before <wchar.h>. */
10542 #include <stddef.h>
10543 #include <signal.h>
10545 # include <stdio.h>
10547 # include <wchar.h>
10550 extern $gltype foo;
10551 extern $gltype1 foo;
10560 if ac_fn_c_try_compile
"$LINENO"; then :
10561 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
10563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10564 eval result
=\
$gl_cv_type_${gltype}_suffix
10565 test "$result" != no
&& break
10568 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10570 $as_echo "$ac_res" >&6; }
10571 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10572 eval result
=\
$gl_cv_type_${gltype}_suffix
10573 test "$result" = no
&& result
=
10574 eval ${GLTYPE}_SUFFIX
=\
$result
10575 cat >>confdefs.h
<<_ACEOF
10576 #define ${GLTYPE}_SUFFIX $result
10583 if test $BITSIZEOF_WINT_T -lt 32; then
10584 BITSIZEOF_WINT_T
=32
10589 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
10591 if test -n "$LIMITS_H"; then
10592 GL_GENERATE_LIMITS_H_TRUE
=
10593 GL_GENERATE_LIMITS_H_FALSE
='#'
10595 GL_GENERATE_LIMITS_H_TRUE
='#'
10596 GL_GENERATE_LIMITS_H_FALSE
=
10604 if test -n "$STDINT_H"; then
10605 GL_GENERATE_STDINT_H_TRUE
=
10606 GL_GENERATE_STDINT_H_FALSE
='#'
10608 GL_GENERATE_STDINT_H_TRUE
='#'
10609 GL_GENERATE_STDINT_H_FALSE
=
10621 GNULIB_STRTOIMAX
=0;
10622 GNULIB_STRTOUMAX
=0;
10623 HAVE_DECL_IMAXABS
=1;
10624 HAVE_DECL_IMAXDIV
=1;
10625 HAVE_DECL_STRTOIMAX
=1;
10626 HAVE_DECL_STRTOUMAX
=1;
10627 REPLACE_STRTOIMAX
=0;
10628 REPLACE_STRTOUMAX
=0;
10629 INT32_MAX_LT_INTMAX_MAX
=1;
10630 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
10631 PRI_MACROS_BROKEN
=0;
10632 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
10633 UINT32_MAX_LT_UINTMAX_MAX
=1;
10634 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
10662 if test $gl_cv_have_include_next = yes; then
10663 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
10666 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
10667 if ${gl_cv_next_inttypes_h+:} false
; then :
10668 $as_echo_n "(cached) " >&6
10671 if test $ac_cv_header_inttypes_h = yes; then
10676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10678 #include <inttypes.h>
10681 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10682 *) gl_absname_cpp
="$ac_cpp" ;;
10687 gl_dirsep_regex
='[/\\]'
10690 gl_dirsep_regex
='\/'
10693 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10694 gl_header_literal_regex
=`echo 'inttypes.h' \
10695 | sed -e "$gl_make_literal_regex_sed"`
10696 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10697 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10703 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10704 sed -n "$gl_absolute_header_sed"`
10706 gl_header
=$gl_cv_absolute_inttypes_h
10707 gl_cv_next_inttypes_h
='"'$gl_header'"'
10709 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
10715 $as_echo "$gl_cv_next_inttypes_h" >&6; }
10717 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
10719 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10721 gl_next_as_first_directive
='<'inttypes.h
'>'
10723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10724 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
10726 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
10735 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
10736 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10738 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10739 if eval \
${$as_gl_Symbol+:} false
; then :
10740 $as_echo_n "(cached) " >&6
10742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 #include <inttypes.h>
10755 if ac_fn_c_try_compile
"$LINENO"; then :
10756 eval "$as_gl_Symbol=yes"
10758 eval "$as_gl_Symbol=no"
10760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10762 eval ac_res
=\$
$as_gl_Symbol
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10764 $as_echo "$ac_res" >&6; }
10765 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
10766 cat >>confdefs.h
<<_ACEOF
10767 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10770 eval ac_cv_have_decl_
$gl_func=yes
10776 for ac_header
in inttypes.h
10778 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10779 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
10780 cat >>confdefs.h
<<_ACEOF
10781 #define HAVE_INTTYPES_H 1
10788 if test $ac_cv_header_inttypes_h = yes; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
10790 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
10791 if ${gt_cv_inttypes_pri_broken+:} false
; then :
10792 $as_echo_n "(cached) " >&6
10795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10798 #include <inttypes.h>
10811 if ac_fn_c_try_compile
"$LINENO"; then :
10812 gt_cv_inttypes_pri_broken
=no
10814 gt_cv_inttypes_pri_broken
=yes
10816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
10820 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
10822 if test "$gt_cv_inttypes_pri_broken" = yes; then
10824 cat >>confdefs.h
<<_ACEOF
10825 #define PRI_MACROS_BROKEN 1
10828 PRI_MACROS_BROKEN
=1
10830 PRI_MACROS_BROKEN
=0
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
10836 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
10837 if ${gl_cv_cc_double_expbit0+:} false
; then :
10838 $as_echo_n "(cached) " >&6
10841 if test "$cross_compiling" = yes; then :
10843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10846 #if defined arm || defined __arm || defined __arm__
10851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10852 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
10853 gl_cv_cc_double_expbit0
="unknown"
10857 if ${ac_cv_c_bigendian+:} false
; then :
10858 $as_echo_n "(cached) " >&6
10860 ac_cv_c_bigendian
=unknown
10861 # See if we're dealing with a universal compiler.
10862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864 #ifndef __APPLE_CC__
10865 not a universal capable compiler
10870 if ac_fn_c_try_compile
"$LINENO"; then :
10872 # Check for potential -arch flags. It is not universal unless
10873 # there are at least two -arch flags with different values.
10876 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10877 if test -n "$ac_prev"; then
10879 i?
86 | x86_64 | ppc | ppc64
)
10880 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10883 ac_cv_c_bigendian
=universal
10889 elif test "x$ac_word" = "x-arch"; then
10894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10895 if test $ac_cv_c_bigendian = unknown
; then
10896 # See if sys/param.h defines the BYTE_ORDER macro.
10897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10899 #include <sys/types.h>
10900 #include <sys/param.h>
10905 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10906 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10908 bogus endian macros
10915 if ac_fn_c_try_compile
"$LINENO"; then :
10916 # It does; now see whether it defined to BIG_ENDIAN or not.
10917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10919 #include <sys/types.h>
10920 #include <sys/param.h>
10925 #if BYTE_ORDER != BIG_ENDIAN
10933 if ac_fn_c_try_compile
"$LINENO"; then :
10934 ac_cv_c_bigendian
=yes
10936 ac_cv_c_bigendian
=no
10938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10942 if test $ac_cv_c_bigendian = unknown
; then
10943 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946 #include <limits.h>
10951 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10952 bogus endian macros
10959 if ac_fn_c_try_compile
"$LINENO"; then :
10960 # It does; now see whether it defined to _BIG_ENDIAN or not.
10961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10963 #include <limits.h>
10968 #ifndef _BIG_ENDIAN
10976 if ac_fn_c_try_compile
"$LINENO"; then :
10977 ac_cv_c_bigendian
=yes
10979 ac_cv_c_bigendian
=no
10981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10985 if test $ac_cv_c_bigendian = unknown
; then
10986 # Compile a test program.
10987 if test "$cross_compiling" = yes; then :
10988 # Try to guess by grepping values from an object file.
10989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991 short int ascii_mm[] =
10992 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10993 short int ascii_ii[] =
10994 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10995 int use_ascii (int i) {
10996 return ascii_mm[i] + ascii_ii[i];
10998 short int ebcdic_ii[] =
10999 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11000 short int ebcdic_mm[] =
11001 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11002 int use_ebcdic (int i) {
11003 return ebcdic_mm[i] + ebcdic_ii[i];
11010 return use_ascii (foo) == use_ebcdic (foo);
11015 if ac_fn_c_try_compile
"$LINENO"; then :
11016 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11017 ac_cv_c_bigendian
=yes
11019 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11020 if test "$ac_cv_c_bigendian" = unknown
; then
11021 ac_cv_c_bigendian
=no
11023 # finding both strings is unlikely to happen, but who knows?
11024 ac_cv_c_bigendian
=unknown
11028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11032 $ac_includes_default
11037 /* Are we little or big endian? From Harbison&Steele. */
11041 char c[sizeof (long int)];
11044 return u.c[sizeof (long int) - 1] == 1;
11050 if ac_fn_c_try_run
"$LINENO"; then :
11051 ac_cv_c_bigendian
=no
11053 ac_cv_c_bigendian
=yes
11055 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11056 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11062 case $ac_cv_c_bigendian in #(
11064 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
11066 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
11069 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11073 gl_cv_cc_double_expbit0
="unknown" ;;
11082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11086 #include <stddef.h>
11088 #include <string.h>
11090 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11091 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
11092 static unsigned int ored_words[NWORDS];
11093 static unsigned int anded_words[NWORDS];
11094 static void add_to_ored_words (double x)
11098 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
11099 memset (&m, 0, sizeof (memory_double));
11101 for (i = 0; i < NWORDS; i++)
11103 ored_words[i] |= m.word[i];
11104 anded_words[i] &= m.word[i];
11110 FILE *fp = fopen ("conftest.out", "w");
11113 for (j = 0; j < NWORDS; j++)
11114 anded_words[j] = ~ (unsigned int) 0;
11115 add_to_ored_words (0.25);
11116 add_to_ored_words (0.5);
11117 add_to_ored_words (1.0);
11118 add_to_ored_words (2.0);
11119 add_to_ored_words (4.0);
11120 /* Remove bits that are common (e.g. if representation of the first mantissa
11121 bit is explicit). */
11122 for (j = 0; j < NWORDS; j++)
11123 ored_words[j] &= ~anded_words[j];
11124 /* Now find the nonzero word. */
11125 for (j = 0; j < NWORDS; j++)
11126 if (ored_words[j] != 0)
11131 for (i = j + 1; i < NWORDS; i++)
11132 if (ored_words[i] != 0)
11134 fprintf (fp, "unknown");
11135 return (fclose (fp) != 0);
11138 if ((ored_words[j] >> i) & 1)
11140 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11141 return (fclose (fp) != 0);
11144 fprintf (fp, "unknown");
11145 return (fclose (fp) != 0);
11149 if ac_fn_c_try_run
"$LINENO"; then :
11150 gl_cv_cc_double_expbit0
=`cat conftest.out`
11152 gl_cv_cc_double_expbit0
="unknown"
11154 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11155 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
11162 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
11163 case "$gl_cv_cc_double_expbit0" in
11165 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11166 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
11168 cat >>confdefs.h
<<_ACEOF
11169 #define DBL_EXPBIT0_WORD $word
11173 cat >>confdefs.h
<<_ACEOF
11174 #define DBL_EXPBIT0_BIT $bit
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11182 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11183 if ${ac_cv_c_bigendian+:} false
; then :
11184 $as_echo_n "(cached) " >&6
11186 ac_cv_c_bigendian
=unknown
11187 # See if we're dealing with a universal compiler.
11188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11190 #ifndef __APPLE_CC__
11191 not a universal capable compiler
11196 if ac_fn_c_try_compile
"$LINENO"; then :
11198 # Check for potential -arch flags. It is not universal unless
11199 # there are at least two -arch flags with different values.
11202 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11203 if test -n "$ac_prev"; then
11205 i?
86 | x86_64 | ppc | ppc64
)
11206 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11209 ac_cv_c_bigendian
=universal
11215 elif test "x$ac_word" = "x-arch"; then
11220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11221 if test $ac_cv_c_bigendian = unknown
; then
11222 # See if sys/param.h defines the BYTE_ORDER macro.
11223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225 #include <sys/types.h>
11226 #include <sys/param.h>
11231 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11232 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11234 bogus endian macros
11241 if ac_fn_c_try_compile
"$LINENO"; then :
11242 # It does; now see whether it defined to BIG_ENDIAN or not.
11243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245 #include <sys/types.h>
11246 #include <sys/param.h>
11251 #if BYTE_ORDER != BIG_ENDIAN
11259 if ac_fn_c_try_compile
"$LINENO"; then :
11260 ac_cv_c_bigendian
=yes
11262 ac_cv_c_bigendian
=no
11264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11268 if test $ac_cv_c_bigendian = unknown
; then
11269 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11272 #include <limits.h>
11277 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11278 bogus endian macros
11285 if ac_fn_c_try_compile
"$LINENO"; then :
11286 # It does; now see whether it defined to _BIG_ENDIAN or not.
11287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11289 #include <limits.h>
11294 #ifndef _BIG_ENDIAN
11302 if ac_fn_c_try_compile
"$LINENO"; then :
11303 ac_cv_c_bigendian
=yes
11305 ac_cv_c_bigendian
=no
11307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11311 if test $ac_cv_c_bigendian = unknown
; then
11312 # Compile a test program.
11313 if test "$cross_compiling" = yes; then :
11314 # Try to guess by grepping values from an object file.
11315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11317 short int ascii_mm[] =
11318 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11319 short int ascii_ii[] =
11320 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11321 int use_ascii (int i) {
11322 return ascii_mm[i] + ascii_ii[i];
11324 short int ebcdic_ii[] =
11325 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11326 short int ebcdic_mm[] =
11327 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11328 int use_ebcdic (int i) {
11329 return ebcdic_mm[i] + ebcdic_ii[i];
11336 return use_ascii (foo) == use_ebcdic (foo);
11341 if ac_fn_c_try_compile
"$LINENO"; then :
11342 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11343 ac_cv_c_bigendian
=yes
11345 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11346 if test "$ac_cv_c_bigendian" = unknown
; then
11347 ac_cv_c_bigendian
=no
11349 # finding both strings is unlikely to happen, but who knows?
11350 ac_cv_c_bigendian
=unknown
11354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358 $ac_includes_default
11363 /* Are we little or big endian? From Harbison&Steele. */
11367 char c[sizeof (long int)];
11370 return u.c[sizeof (long int) - 1] == 1;
11376 if ac_fn_c_try_run
"$LINENO"; then :
11377 ac_cv_c_bigendian
=no
11379 ac_cv_c_bigendian
=yes
11381 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11382 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11388 $as_echo "$ac_cv_c_bigendian" >&6; }
11389 case $ac_cv_c_bigendian in #(
11391 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11397 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11401 as_fn_error $?
"unknown endianness
11402 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11408 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11409 if ${am_cv_langinfo_codeset+:} false
; then :
11410 $as_echo_n "(cached) " >&6
11412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414 #include <langinfo.h>
11418 char* cs = nl_langinfo(CODESET); return !cs;
11423 if ac_fn_c_try_link
"$LINENO"; then :
11424 am_cv_langinfo_codeset
=yes
11426 am_cv_langinfo_codeset
=no
11428 rm -f core conftest.err conftest.
$ac_objext \
11429 conftest
$ac_exeext conftest.
$ac_ext
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11433 $as_echo "$am_cv_langinfo_codeset" >&6; }
11434 if test $am_cv_langinfo_codeset = yes; then
11436 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11441 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
11442 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
11448 cat >>confdefs.h
<<_ACEOF
11449 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
11455 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
11456 if ${ac_cv_gnu_library_2_1+:} false
; then :
11457 $as_echo_n "(cached) " >&6
11459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11462 #include <features.h>
11463 #ifdef __GNU_LIBRARY__
11464 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11474 $EGREP "Lucky" >/dev
/null
2>&1; then :
11475 ac_cv_gnu_library_2_1
=yes
11477 ac_cv_gnu_library_2_1
=no
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11485 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11487 GLIBC21
="$ac_cv_gnu_library_2_1"
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
11497 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
11498 if ${gl_cv_func_malloc_posix+:} false
; then :
11499 $as_echo_n "(cached) " >&6
11502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11508 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
11516 if ac_fn_c_try_compile
"$LINENO"; then :
11517 gl_cv_func_malloc_posix
=yes
11519 gl_cv_func_malloc_posix
=no
11521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
11525 $as_echo "$gl_cv_func_malloc_posix" >&6; }
11529 for ac_header
in stdlib.h
11531 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11532 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
11533 cat >>confdefs.h
<<_ACEOF
11534 #define HAVE_STDLIB_H 1
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11542 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11543 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
11544 $as_echo_n "(cached) " >&6
11546 if test "$cross_compiling" = yes; then :
11548 # Guess yes on platforms where we know the result.
11549 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
11550 | hpux
* | solaris
* | cygwin
* | mingw
*)
11551 ac_cv_func_malloc_0_nonnull
=yes ;;
11552 # If we don't know, assume the worst.
11553 *) ac_cv_func_malloc_0_nonnull
=no
;;
11557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11560 # include <stdlib.h>
11568 char *p = malloc (0);
11577 if ac_fn_c_try_run
"$LINENO"; then :
11578 ac_cv_func_malloc_0_nonnull
=yes
11580 ac_cv_func_malloc_0_nonnull
=no
11582 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11583 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11589 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11590 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11591 gl_cv_func_malloc_0_nonnull
=1
11593 gl_cv_func_malloc_0_nonnull
=0
11597 cat >>confdefs.h
<<_ACEOF
11598 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
11613 GNULIB_MBSRTOWCS
=0;
11614 GNULIB_MBSNRTOWCS
=0;
11616 GNULIB_WCSRTOMBS
=0;
11617 GNULIB_WCSNRTOMBS
=0;
11634 GNULIB_WCSCASECMP
=0;
11635 GNULIB_WCSNCASECMP
=0;
11672 HAVE_WCSNCASECMP
=1;
11685 HAVE_DECL_WCWIDTH
=1;
11686 REPLACE_MBSTATE_T
=0;
11692 REPLACE_MBSRTOWCS
=0;
11693 REPLACE_MBSNRTOWCS
=0;
11695 REPLACE_WCSRTOMBS
=0;
11696 REPLACE_WCSNRTOMBS
=0;
11698 REPLACE_WCSWIDTH
=0;
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
11714 $as_echo_n "checking for a traditional japanese locale... " >&6; }
11715 if ${gt_cv_locale_ja+:} false
; then :
11716 $as_echo_n "(cached) " >&6
11719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11722 #include <locale.h>
11724 #if HAVE_LANGINFO_CODESET
11725 # include <langinfo.h>
11727 #include <stdlib.h>
11728 #include <string.h>
11734 /* Check whether the given locale name is recognized by the system. */
11735 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11736 /* On native Windows, setlocale(category, "") looks at the system settings,
11737 not at the environment variables. Also, when an encoding suffix such
11738 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11739 category of the locale to "C". */
11740 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11741 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11744 if (setlocale (LC_ALL, "") == NULL) return 1;
11746 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11747 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11748 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11749 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11750 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11751 some unit tests fail.
11752 On MirBSD 10, when an unsupported locale is specified, setlocale()
11753 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11754 #if HAVE_LANGINFO_CODESET
11756 const char *cs = nl_langinfo (CODESET);
11757 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11758 || strcmp (cs, "UTF-8") == 0)
11763 /* On Cygwin, avoid locale names without encoding suffix, because the
11764 locale_charset() function relies on the encoding suffix. Note that
11765 LC_ALL is set on the command line. */
11766 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11768 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
11769 on Cygwin 1.5.x. */
11770 if (MB_CUR_MAX == 1)
11772 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
11773 This excludes the UTF-8 encoding (except on MirBSD). */
11774 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11775 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
11776 for (p = buf; *p != '\0'; p++)
11777 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
11783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11784 (eval $ac_link) 2>&5
11786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11787 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11789 # Handle native Windows specially, because there setlocale() interprets
11790 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11791 # "fr" or "fra" as "French" or "French_France.1252",
11792 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11793 # "ja" as "Japanese" or "Japanese_Japan.932",
11796 # Note that on native Windows, the Japanese locale is
11797 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
11798 # cannot use it here.
11799 gt_cv_locale_ja
=none
11802 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11803 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11804 # configure script would override the LC_ALL setting. Likewise for
11805 # LC_CTYPE, which is also set at the beginning of the configure script.
11806 # Test for the AIX locale name.
11807 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11808 gt_cv_locale_ja
=ja_JP
11810 # Test for the locale name with explicit encoding suffix.
11811 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11812 gt_cv_locale_ja
=ja_JP.EUC-JP
11814 # Test for the HP-UX, OSF/1, NetBSD locale name.
11815 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11816 gt_cv_locale_ja
=ja_JP.eucJP
11818 # Test for the IRIX, FreeBSD locale name.
11819 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11820 gt_cv_locale_ja
=ja_JP.EUC
11822 # Test for the Solaris 7 locale name.
11823 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11826 # Special test for NetBSD 1.6.
11827 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
11828 gt_cv_locale_ja
=ja_JP.eucJP
11831 gt_cv_locale_ja
=none
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
11845 $as_echo "$gt_cv_locale_ja" >&6; }
11846 LOCALE_JA
=$gt_cv_locale_ja
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
11853 $as_echo_n "checking for a transitional chinese locale... " >&6; }
11854 if ${gt_cv_locale_zh_CN+:} false
; then :
11855 $as_echo_n "(cached) " >&6
11858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11861 #include <locale.h>
11862 #include <stdlib.h>
11864 #if HAVE_LANGINFO_CODESET
11865 # include <langinfo.h>
11867 #include <stdlib.h>
11868 #include <string.h>
11874 /* Check whether the given locale name is recognized by the system. */
11875 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11876 /* On native Windows, setlocale(category, "") looks at the system settings,
11877 not at the environment variables. Also, when an encoding suffix such
11878 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11879 category of the locale to "C". */
11880 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11881 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11884 if (setlocale (LC_ALL, "") == NULL) return 1;
11886 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11887 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11888 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11889 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11890 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11891 some unit tests fail.
11892 On MirBSD 10, when an unsupported locale is specified, setlocale()
11893 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11894 #if HAVE_LANGINFO_CODESET
11896 const char *cs = nl_langinfo (CODESET);
11897 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11898 || strcmp (cs, "UTF-8") == 0)
11903 /* On Cygwin, avoid locale names without encoding suffix, because the
11904 locale_charset() function relies on the encoding suffix. Note that
11905 LC_ALL is set on the command line. */
11906 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11908 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
11909 This excludes the UTF-8 encoding (except on MirBSD). */
11910 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11911 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
11912 for (p = buf; *p != '\0'; p++)
11913 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
11915 /* Check whether a typical GB18030 multibyte sequence is recognized as a
11916 single wide character. This excludes the GB2312 and GBK encodings. */
11917 if (mblen ("\203\062\332\066", 5) != 4)
11923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11924 (eval $ac_link) 2>&5
11926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11927 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
11929 # Handle native Windows specially, because there setlocale() interprets
11930 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11931 # "fr" or "fra" as "French" or "French_France.1252",
11932 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11933 # "ja" as "Japanese" or "Japanese_Japan.932",
11936 # Test for the hypothetical native Windows locale name.
11937 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11938 gt_cv_locale_zh_CN
=Chinese_China
.54936
11941 gt_cv_locale_zh_CN
=none
11945 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
11946 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
11947 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
11948 gt_cv_locale_zh_CN
=none
11951 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11952 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11953 # configure script would override the LC_ALL setting. Likewise for
11954 # LC_CTYPE, which is also set at the beginning of the configure script.
11955 # Test for the locale name without encoding suffix.
11956 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11957 gt_cv_locale_zh_CN
=zh_CN
11959 # Test for the locale name with explicit encoding suffix.
11960 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
11961 gt_cv_locale_zh_CN
=zh_CN.GB18030
11964 gt_cv_locale_zh_CN
=none
11970 # If there was a link error, due to mblen(), the system is so old that
11971 # it certainly doesn't have a chinese locale.
11972 gt_cv_locale_zh_CN
=none
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
11978 $as_echo "$gt_cv_locale_zh_CN" >&6; }
11979 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
11985 $as_echo_n "checking for a french Unicode locale... " >&6; }
11986 if ${gt_cv_locale_fr_utf8+:} false
; then :
11987 $as_echo_n "(cached) " >&6
11990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11993 #include <locale.h>
11995 #if HAVE_LANGINFO_CODESET
11996 # include <langinfo.h>
11998 #include <stdlib.h>
11999 #include <string.h>
12003 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12004 imitates locale dependent behaviour by looking at the environment
12005 variables, and all locales use the UTF-8 encoding. */
12006 #if !(defined __BEOS__ || defined __HAIKU__)
12007 /* Check whether the given locale name is recognized by the system. */
12008 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12009 /* On native Windows, setlocale(category, "") looks at the system settings,
12010 not at the environment variables. Also, when an encoding suffix such
12011 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12012 category of the locale to "C". */
12013 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12014 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12017 if (setlocale (LC_ALL, "") == NULL) return 1;
12019 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12020 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12021 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12022 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12023 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12024 some unit tests fail. */
12025 # if HAVE_LANGINFO_CODESET
12027 const char *cs = nl_langinfo (CODESET);
12028 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12033 /* On Cygwin, avoid locale names without encoding suffix, because the
12034 locale_charset() function relies on the encoding suffix. Note that
12035 LC_ALL is set on the command line. */
12036 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12038 /* Check whether in the abbreviation of the second month, the second
12039 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12040 two bytes long, with UTF-8 encoding. */
12041 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12042 if (strftime (buf, sizeof (buf), "%b", &t) < 4
12043 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12046 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12047 /* Check whether the decimal separator is a comma.
12048 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12049 are nl_langinfo(RADIXCHAR) are both ".". */
12050 if (localeconv () ->decimal_point[0] != ',') return 1;
12056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12057 (eval $ac_link) 2>&5
12059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12060 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12062 # Handle native Windows specially, because there setlocale() interprets
12063 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12064 # "fr" or "fra" as "French" or "French_France.1252",
12065 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12066 # "ja" as "Japanese" or "Japanese_Japan.932",
12069 # Test for the hypothetical native Windows locale name.
12070 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12071 gt_cv_locale_fr_utf8
=French_France
.65001
12074 gt_cv_locale_fr_utf8
=none
12078 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12079 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12080 # configure script would override the LC_ALL setting. Likewise for
12081 # LC_CTYPE, which is also set at the beginning of the configure script.
12082 # Test for the usual locale name.
12083 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12084 gt_cv_locale_fr_utf8
=fr_FR
12086 # Test for the locale name with explicit encoding suffix.
12087 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12088 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
12090 # Test for the Solaris 7 locale name.
12091 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12092 gt_cv_locale_fr_utf8
=fr.UTF-8
12095 gt_cv_locale_fr_utf8
=none
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12106 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
12107 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
12114 $as_echo_n "checking for a traditional french locale... " >&6; }
12115 if ${gt_cv_locale_fr+:} false
; then :
12116 $as_echo_n "(cached) " >&6
12119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12122 #include <locale.h>
12124 #if HAVE_LANGINFO_CODESET
12125 # include <langinfo.h>
12127 #include <stdlib.h>
12128 #include <string.h>
12132 /* Check whether the given locale name is recognized by the system. */
12133 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12134 /* On native Windows, setlocale(category, "") looks at the system settings,
12135 not at the environment variables. Also, when an encoding suffix such
12136 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12137 category of the locale to "C". */
12138 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12139 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12142 if (setlocale (LC_ALL, "") == NULL) return 1;
12144 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12145 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12146 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12147 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12148 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12149 some unit tests fail.
12150 On MirBSD 10, when an unsupported locale is specified, setlocale()
12151 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12152 #if HAVE_LANGINFO_CODESET
12154 const char *cs = nl_langinfo (CODESET);
12155 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12156 || strcmp (cs, "UTF-8") == 0)
12161 /* On Cygwin, avoid locale names without encoding suffix, because the
12162 locale_charset() function relies on the encoding suffix. Note that
12163 LC_ALL is set on the command line. */
12164 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12166 /* Check whether in the abbreviation of the second month, the second
12167 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
12168 one byte long. This excludes the UTF-8 encoding. */
12169 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12170 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
12171 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12172 /* Check whether the decimal separator is a comma.
12173 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12174 are nl_langinfo(RADIXCHAR) are both ".". */
12175 if (localeconv () ->decimal_point[0] != ',') return 1;
12181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12182 (eval $ac_link) 2>&5
12184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12185 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12187 # Handle native Windows specially, because there setlocale() interprets
12188 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12189 # "fr" or "fra" as "French" or "French_France.1252",
12190 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12191 # "ja" as "Japanese" or "Japanese_Japan.932",
12194 # Test for the native Windows locale name.
12195 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12196 gt_cv_locale_fr
=French_France
.1252
12199 gt_cv_locale_fr
=none
12203 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12204 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12205 # configure script would override the LC_ALL setting. Likewise for
12206 # LC_CTYPE, which is also set at the beginning of the configure script.
12207 # Test for the usual locale name.
12208 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12209 gt_cv_locale_fr
=fr_FR
12211 # Test for the locale name with explicit encoding suffix.
12212 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12213 gt_cv_locale_fr
=fr_FR.ISO-8859-1
12215 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
12216 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12217 gt_cv_locale_fr
=fr_FR.ISO8859-1
12219 # Test for the HP-UX locale name.
12220 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12221 gt_cv_locale_fr
=fr_FR.iso88591
12223 # Test for the Solaris 7 locale name.
12224 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12228 gt_cv_locale_fr
=none
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
12241 $as_echo "$gt_cv_locale_fr" >&6; }
12242 LOCALE_FR
=$gt_cv_locale_fr
12262 GNULIB_RAWMEMCHR
=0;
12265 GNULIB_STRCHRNUL
=0;
12273 GNULIB_STRCASESTR
=0;
12280 GNULIB_MBSCASECMP
=0;
12281 GNULIB_MBSNCASECMP
=0;
12282 GNULIB_MBSPCASECMP
=0;
12283 GNULIB_MBSCASESTR
=0;
12290 GNULIB_STRERROR_R
=0;
12291 GNULIB_STRSIGNAL
=0;
12292 GNULIB_STRVERSCMP
=0;
12297 HAVE_DECL_MEMMEM
=1;
12299 HAVE_DECL_MEMRCHR
=1;
12304 HAVE_DECL_STRDUP
=1;
12305 HAVE_DECL_STRNDUP
=1;
12306 HAVE_DECL_STRNLEN
=1;
12310 HAVE_DECL_STRTOK_R
=1;
12311 HAVE_DECL_STRERROR_R
=1;
12312 HAVE_DECL_STRSIGNAL
=1;
12319 REPLACE_STRCASESTR
=0;
12320 REPLACE_STRCHRNUL
=0;
12321 REPLACE_STRERROR
=0;
12322 REPLACE_STRERROR_R
=0;
12326 REPLACE_STRSIGNAL
=0;
12327 REPLACE_STRTOK_R
=0;
12328 UNDEFINE_STRTOK_R
=0;
12334 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
12335 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
12336 # irrelevant for anonymous mappings.
12337 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
12338 if test "x$ac_cv_func_mmap" = xyes
; then :
12345 # Try to allow MAP_ANONYMOUS.
12346 gl_have_mmap_anonymous
=no
12347 if test $gl_have_mmap = yes; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
12349 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
12350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12353 #include <sys/mman.h>
12354 #ifdef MAP_ANONYMOUS
12355 I cannot identify this map
12359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12360 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
12361 gl_have_mmap_anonymous
=yes
12365 if test $gl_have_mmap_anonymous != yes; then
12366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12369 #include <sys/mman.h>
12371 I cannot identify this map
12375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12376 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
12378 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
12380 gl_have_mmap_anonymous
=yes
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
12386 $as_echo "$gl_have_mmap_anonymous" >&6; }
12387 if test $gl_have_mmap_anonymous = yes; then
12389 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
12411 if test $HAVE_MEMCHR = 1; then
12412 # Detect platform-specific bugs in some versions of glibc:
12413 # memchr should not dereference anything with length 0
12414 # http://bugzilla.redhat.com/499689
12415 # memchr should not dereference overestimated length after a match
12416 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
12417 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
12418 # Assume that memchr works on platforms that lack mprotect.
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
12420 $as_echo_n "checking whether memchr works... " >&6; }
12421 if ${gl_cv_func_memchr_works+:} false
; then :
12422 $as_echo_n "(cached) " >&6
12424 if test "$cross_compiling" = yes; then :
12425 gl_cv_func_memchr_works
="guessing no"
12427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12430 #include <string.h>
12431 #if HAVE_SYS_MMAN_H
12432 # include <fcntl.h>
12433 # include <unistd.h>
12434 # include <sys/types.h>
12435 # include <sys/mman.h>
12437 # define MAP_FILE 0
12446 char *fence = NULL;
12447 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
12448 # if HAVE_MAP_ANONYMOUS
12449 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
12451 # else /* !HAVE_MAP_ANONYMOUS */
12452 const int flags = MAP_FILE | MAP_PRIVATE;
12453 int fd = open ("/dev/zero", O_RDONLY, 0666);
12457 int pagesize = getpagesize ();
12459 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
12461 if (two_pages != (char *)(-1)
12462 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
12463 fence = two_pages + pagesize;
12468 if (memchr (fence, 0, 0))
12470 strcpy (fence - 9, "12345678");
12471 if (memchr (fence - 9, 0, 79) != fence - 1)
12473 if (memchr (fence - 1, 0, 3) != fence - 1)
12482 if ac_fn_c_try_run
"$LINENO"; then :
12483 gl_cv_func_memchr_works
=yes
12485 gl_cv_func_memchr_works
=no
12487 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12488 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
12493 $as_echo "$gl_cv_func_memchr_works" >&6; }
12494 if test "$gl_cv_func_memchr_works" != yes; then
12500 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
12501 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
12507 cat >>confdefs.h
<<_ACEOF
12508 #define HAVE_DECL_MEMMEM $ac_have_decl
12516 for ac_func
in memmem
12518 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
12519 if test "x$ac_cv_func_memmem" = xyes
; then :
12520 cat >>confdefs.h
<<_ACEOF
12521 #define HAVE_MEMMEM 1
12527 if test $ac_cv_func_memmem = yes; then
12539 if test $ac_cv_have_decl_memmem = no
; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12543 $as_echo_n "checking whether memmem works... " >&6; }
12544 if ${gl_cv_func_memmem_works_always+:} false
; then :
12545 $as_echo_n "(cached) " >&6
12547 if test "$cross_compiling" = yes; then :
12548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12551 #ifdef __GNU_LIBRARY__
12552 #include <features.h>
12553 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12554 || __GLIBC_MINOR__ > 12)) \
12555 || (__GLIBC__ > 2)) \
12556 || defined __UCLIBC__
12559 #elif defined __CYGWIN__
12560 #include <cygwin/version.h>
12561 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12570 $EGREP "Lucky user" >/dev
/null
2>&1; then :
12571 gl_cv_func_memmem_works_always
="guessing yes"
12573 gl_cv_func_memmem_works_always
="guessing no"
12579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12582 #include <string.h> /* for memmem */
12583 #define P "_EF_BF_BD"
12584 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12585 #define NEEDLE P P P P P
12592 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12594 /* Check for empty needle behavior. */
12596 const char *haystack = "AAA";
12597 if (memmem (haystack, 3, NULL, 0) != haystack)
12606 if ac_fn_c_try_run
"$LINENO"; then :
12607 gl_cv_func_memmem_works_always
=yes
12609 gl_cv_func_memmem_works_always
=no
12611 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12612 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12618 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
12619 case "$gl_cv_func_memmem_works_always" in
12629 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
12630 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
12636 cat >>confdefs.h
<<_ACEOF
12637 #define HAVE_DECL_MEMRCHR $ac_have_decl
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
12652 $as_echo_n "checking for promoted mode_t type... " >&6; }
12653 if ${gl_cv_promoted_mode_t+:} false
; then :
12654 $as_echo_n "(cached) " >&6
12657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659 #include <sys/types.h>
12663 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
12668 if ac_fn_c_try_compile
"$LINENO"; then :
12669 gl_cv_promoted_mode_t
='int'
12671 gl_cv_promoted_mode_t
='mode_t'
12673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
12677 $as_echo "$gl_cv_promoted_mode_t" >&6; }
12679 cat >>confdefs.h
<<_ACEOF
12680 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
12698 GNULIB_FPRINTF_POSIX
=0;
12714 GNULIB_OBSTACK_PRINTF
=0;
12715 GNULIB_OBSTACK_PRINTF_POSIX
=0;
12720 GNULIB_PRINTF_POSIX
=0;
12729 GNULIB_SPRINTF_POSIX
=0;
12730 GNULIB_STDIO_H_NONBLOCKING
=0;
12731 GNULIB_STDIO_H_SIGPIPE
=0;
12733 GNULIB_VASPRINTF
=0;
12738 GNULIB_VFPRINTF_POSIX
=0;
12740 GNULIB_VPRINTF_POSIX
=0;
12741 GNULIB_VSNPRINTF
=0;
12742 GNULIB_VSPRINTF_POSIX
=0;
12743 HAVE_DECL_FPURGE
=1;
12744 HAVE_DECL_FSEEKO
=1;
12745 HAVE_DECL_FTELLO
=1;
12746 HAVE_DECL_GETDELIM
=1;
12747 HAVE_DECL_GETLINE
=1;
12748 HAVE_DECL_OBSTACK_PRINTF
=1;
12749 HAVE_DECL_SNPRINTF
=1;
12750 HAVE_DECL_VSNPRINTF
=1;
12771 REPLACE_GETDELIM
=0;
12773 REPLACE_OBSTACK_PRINTF
=0;
12779 REPLACE_RENAMEAT
=0;
12780 REPLACE_SNPRINTF
=0;
12782 REPLACE_STDIO_READ_FUNCS
=0;
12783 REPLACE_STDIO_WRITE_FUNCS
=0;
12785 REPLACE_VASPRINTF
=0;
12786 REPLACE_VDPRINTF
=0;
12787 REPLACE_VFPRINTF
=0;
12789 REPLACE_VSNPRINTF
=0;
12790 REPLACE_VSPRINTF
=0;
12823 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
12824 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
12830 cat >>confdefs.h
<<_ACEOF
12831 #define HAVE_DECL_SETENV $ac_have_decl
12849 if test $ac_cv_have_decl_setenv = no
; then
12869 for ac_header
in search.h
12871 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
12872 if test "x$ac_cv_header_search_h" = xyes
; then :
12873 cat >>confdefs.h
<<_ACEOF
12874 #define HAVE_SEARCH_H 1
12881 for ac_func
in tsearch
12883 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
12884 if test "x$ac_cv_func_tsearch" = xyes
; then :
12885 cat >>confdefs.h
<<_ACEOF
12886 #define HAVE_TSEARCH 1
12895 GNULIB_PTHREAD_SIGMASK
=0;
12897 GNULIB_SIGNAL_H_SIGPIPE
=0;
12898 GNULIB_SIGPROCMASK
=0;
12899 GNULIB_SIGACTION
=0;
12900 HAVE_POSIX_SIGNALBLOCKING
=1;
12901 HAVE_PTHREAD_SIGMASK
=1;
12906 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
12908 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
12910 HAVE_SIGHANDLER_T
=1;
12911 REPLACE_PTHREAD_SIGMASK
=0;
12915 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
12916 #include <signal.h>
12917 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
12918 #include <sys/types.h>
12921 if test "x$ac_cv_type_sigset_t" = xyes
; then :
12923 cat >>confdefs.h
<<_ACEOF
12924 #define HAVE_SIGSET_T 1
12927 gl_cv_type_sigset_t
=yes
12929 gl_cv_type_sigset_t
=no
12932 if test $gl_cv_type_sigset_t != yes; then
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12937 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12938 if ${ac_cv_type_uid_t+:} false
; then :
12939 $as_echo_n "(cached) " >&6
12941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12943 #include <sys/types.h>
12946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12947 $EGREP "uid_t" >/dev
/null
2>&1; then :
12948 ac_cv_type_uid_t
=yes
12950 ac_cv_type_uid_t
=no
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12956 $as_echo "$ac_cv_type_uid_t" >&6; }
12957 if test $ac_cv_type_uid_t = no
; then
12959 $as_echo "#define uid_t int" >>confdefs.h
12962 $as_echo "#define gid_t int" >>confdefs.h
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12967 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12968 if ${ac_cv_header_stdbool_h+:} false
; then :
12969 $as_echo_n "(cached) " >&6
12971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12974 #include <stdbool.h>
12979 typedef _Bool Bool;
12981 "error: bool is not defined"
12984 "error: false is not defined"
12987 "error: false is not 0"
12990 "error: true is not defined"
12993 "error: true is not 1"
12997 #ifndef __bool_true_false_are_defined
12998 "error: __bool_true_false_are_defined is not defined"
13001 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
13003 char a[true == 1 ? 1 : -1];
13004 char b[false == 0 ? 1 : -1];
13005 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13006 char d[(bool) 0.5 == true ? 1 : -1];
13007 /* See body of main program for 'e'. */
13008 char f[(Bool) 0.0 == false ? 1 : -1];
13010 char h[sizeof (Bool)];
13011 char i[sizeof s.t];
13012 enum { j = false, k = true, l = false * true, m = true * 256 };
13013 /* The following fails for
13014 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13016 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13017 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13018 /* Catch a bug in an HP-UX C compiler. See
13019 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13020 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13031 *pq |= q; *pq |= ! q;
13032 *qq |= q; *qq |= ! q;
13033 /* Refer to every declared value, to avoid compiler optimizations. */
13034 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13035 + !m + !n + !o + !p + !q + !pq + !qq);
13041 if ac_fn_c_try_compile
"$LINENO"; then :
13042 ac_cv_header_stdbool_h
=yes
13044 ac_cv_header_stdbool_h
=no
13046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13049 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13050 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13051 if test "x$ac_cv_type__Bool" = xyes
; then :
13053 cat >>confdefs.h
<<_ACEOF
13054 #define HAVE__BOOL 1
13063 HAVE_MAX_ALIGN_T
=1;
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13068 $as_echo_n "checking for wchar_t... " >&6; }
13069 if ${gt_cv_c_wchar_t+:} false
; then :
13070 $as_echo_n "(cached) " >&6
13072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13073 /* end confdefs.h. */
13074 #include <stddef.h>
13075 wchar_t foo = (wchar_t)'\0';
13084 if ac_fn_c_try_compile
"$LINENO"; then :
13085 gt_cv_c_wchar_t
=yes
13089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13092 $as_echo "$gt_cv_c_wchar_t" >&6; }
13093 if test $gt_cv_c_wchar_t = yes; then
13095 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13105 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
13106 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
13112 cat >>confdefs.h
<<_ACEOF
13113 #define HAVE_DECL_STRDUP $ac_have_decl
13118 REPLACE_STRERROR_0
=0
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
13120 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
13121 if ${gl_cv_func_strerror_0_works+:} false
; then :
13122 $as_echo_n "(cached) " >&6
13124 if test "$cross_compiling" = yes; then :
13126 # Guess yes on glibc systems.
13127 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
13128 # If we don't know, assume the worst.
13129 *) gl_cv_func_strerror_0_works
="guessing no" ;;
13133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135 #include <string.h>
13144 str = strerror (0);
13145 if (!*str) result |= 1;
13146 if (errno) result |= 2;
13147 if (strstr (str, "nknown") || strstr (str, "ndefined"))
13154 if ac_fn_c_try_run
"$LINENO"; then :
13155 gl_cv_func_strerror_0_works
=yes
13157 gl_cv_func_strerror_0_works
=no
13159 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13160 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
13166 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
13167 case "$gl_cv_func_strerror_0_works" in
13170 REPLACE_STRERROR_0
=1
13172 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
13188 if test $gl_cv_have_include_next = yes; then
13189 gl_cv_next_string_h
='<'string.h
'>'
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13192 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13193 if ${gl_cv_next_string_h+:} false
; then :
13194 $as_echo_n "(cached) " >&6
13199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 #include <string.h>
13204 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13205 *) gl_absname_cpp
="$ac_cpp" ;;
13210 gl_dirsep_regex
='[/\\]'
13213 gl_dirsep_regex
='\/'
13216 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13217 gl_header_literal_regex
=`echo 'string.h' \
13218 | sed -e "$gl_make_literal_regex_sed"`
13219 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13220 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13226 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13227 sed -n "$gl_absolute_header_sed"`
13229 gl_header
=$gl_cv_absolute_string_h
13230 gl_cv_next_string_h
='"'$gl_header'"'
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13235 $as_echo "$gl_cv_next_string_h" >&6; }
13237 NEXT_STRING_H
=$gl_cv_next_string_h
13239 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13241 gl_next_as_first_directive
='<'string.h
'>'
13243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13244 gl_next_as_first_directive
=$gl_cv_next_string_h
13246 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
13253 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
13254 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13256 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13257 if eval \
${$as_gl_Symbol+:} false
; then :
13258 $as_echo_n "(cached) " >&6
13260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13262 #include <string.h>
13273 if ac_fn_c_try_compile
"$LINENO"; then :
13274 eval "$as_gl_Symbol=yes"
13276 eval "$as_gl_Symbol=no"
13278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13280 eval ac_res
=\$
$as_gl_Symbol
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13282 $as_echo "$ac_res" >&6; }
13283 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
13284 cat >>confdefs.h
<<_ACEOF
13285 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13288 eval ac_cv_have_decl_
$gl_func=yes
13296 if test "$gl_cv_func_memchr_works" != yes; then
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13300 $as_echo_n "checking whether strstr works... " >&6; }
13301 if ${gl_cv_func_strstr_works_always+:} false
; then :
13302 $as_echo_n "(cached) " >&6
13304 if test "$cross_compiling" = yes; then :
13305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13308 #ifdef __GNU_LIBRARY__
13309 #include <features.h>
13310 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13311 || defined __UCLIBC__
13314 #elif defined __CYGWIN__
13315 #include <cygwin/version.h>
13316 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13325 $EGREP "Lucky user" >/dev
/null
2>&1; then :
13326 gl_cv_func_strstr_works_always
="guessing yes"
13328 gl_cv_func_strstr_works_always
="guessing no"
13334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13337 #include <string.h> /* for strstr */
13338 #define P "_EF_BF_BD"
13339 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13340 #define NEEDLE P P P P P
13345 return !!strstr (HAYSTACK, NEEDLE);
13351 if ac_fn_c_try_run
"$LINENO"; then :
13352 gl_cv_func_strstr_works_always
=yes
13354 gl_cv_func_strstr_works_always
=no
13356 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13357 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
13363 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
13364 case "$gl_cv_func_strstr_works_always" in
13373 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
13374 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
13380 cat >>confdefs.h
<<_ACEOF
13381 #define HAVE_DECL_STRTOK_R $ac_have_decl
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13386 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13387 if test -z "$MKDIR_P"; then
13388 if ${ac_cv_path_mkdir+:} false
; then :
13389 $as_echo_n "(cached) " >&6
13391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13392 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
13395 test -z "$as_dir" && as_dir
=.
13396 for ac_prog
in mkdir gmkdir
; do
13397 for ac_exec_ext
in '' $ac_executable_extensions; do
13398 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
13399 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13400 'mkdir (GNU coreutils) '* | \
13401 'mkdir (coreutils) '* | \
13402 'mkdir (fileutils) '4.1*)
13403 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
13413 test -d .
/--version && rmdir .
/--version
13414 if test "${ac_cv_path_mkdir+set}" = set; then
13415 MKDIR_P
="$ac_cv_path_mkdir -p"
13417 # As a last resort, use the slow shell script. Don't cache a
13418 # value for MKDIR_P within a source directory, because that will
13419 # break other packages using the cache if that directory is
13420 # removed, or if the value is a relative name.
13421 MKDIR_P
="$ac_install_sh -d"
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13425 $as_echo "$MKDIR_P" >&6; }
13445 if test $gl_cv_have_include_next = yes; then
13446 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
13449 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
13450 if ${gl_cv_next_sys_types_h+:} false
; then :
13451 $as_echo_n "(cached) " >&6
13456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13458 #include <sys/types.h>
13461 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13462 *) gl_absname_cpp
="$ac_cpp" ;;
13467 gl_dirsep_regex
='[/\\]'
13470 gl_dirsep_regex
='\/'
13473 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13474 gl_header_literal_regex
=`echo 'sys/types.h' \
13475 | sed -e "$gl_make_literal_regex_sed"`
13476 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13477 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13483 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13484 sed -n "$gl_absolute_header_sed"`
13486 gl_header
=$gl_cv_absolute_sys_types_h
13487 gl_cv_next_sys_types_h
='"'$gl_header'"'
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
13492 $as_echo "$gl_cv_next_sys_types_h" >&6; }
13494 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
13496 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13497 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13498 gl_next_as_first_directive
='<'sys
/types.h
'>'
13500 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13501 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
13503 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
13517 GNULIB_NANOSLEEP
=0;
13522 HAVE_DECL_LOCALTIME_R
=1;
13526 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
13527 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
13528 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
13529 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
13531 : ${GNULIB_GETTIMEOFDAY=0};
13533 REPLACE_LOCALTIME
=0;
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
13544 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
13545 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
13546 $as_echo_n "(cached) " >&6
13548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13555 static struct timespec x; x.tv_sec = x.tv_nsec;
13560 if ac_fn_c_try_compile
"$LINENO"; then :
13561 gl_cv_sys_struct_timespec_in_time_h
=yes
13563 gl_cv_sys_struct_timespec_in_time_h
=no
13565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
13568 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
13570 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
13571 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
13572 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
13573 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
13574 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
13575 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
13578 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
13579 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
13580 $as_echo_n "(cached) " >&6
13582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584 #include <sys/time.h>
13589 static struct timespec x; x.tv_sec = x.tv_nsec;
13594 if ac_fn_c_try_compile
"$LINENO"; then :
13595 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
13597 gl_cv_sys_struct_timespec_in_sys_time_h
=no
13599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
13602 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
13603 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
13604 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
13607 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
13608 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
13609 $as_echo_n "(cached) " >&6
13611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613 #include <pthread.h>
13618 static struct timespec x; x.tv_sec = x.tv_nsec;
13623 if ac_fn_c_try_compile
"$LINENO"; then :
13624 gl_cv_sys_struct_timespec_in_pthread_h
=yes
13626 gl_cv_sys_struct_timespec_in_pthread_h
=no
13628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
13631 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
13632 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
13633 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
13636 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
13637 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
13638 $as_echo_n "(cached) " >&6
13640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 #include <unistd.h>
13647 static struct timespec x; x.tv_sec = x.tv_nsec;
13652 if ac_fn_c_try_compile
"$LINENO"; then :
13653 gl_cv_sys_struct_timespec_in_unistd_h
=yes
13655 gl_cv_sys_struct_timespec_in_unistd_h
=no
13657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
13660 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
13661 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
13662 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
13683 if test $gl_cv_have_include_next = yes; then
13684 gl_cv_next_time_h
='<'time.h
'>'
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
13687 $as_echo_n "checking absolute name of <time.h>... " >&6; }
13688 if ${gl_cv_next_time_h+:} false
; then :
13689 $as_echo_n "(cached) " >&6
13694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13699 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13700 *) gl_absname_cpp
="$ac_cpp" ;;
13705 gl_dirsep_regex
='[/\\]'
13708 gl_dirsep_regex
='\/'
13711 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13712 gl_header_literal_regex
=`echo 'time.h' \
13713 | sed -e "$gl_make_literal_regex_sed"`
13714 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13715 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13721 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13722 sed -n "$gl_absolute_header_sed"`
13724 gl_header
=$gl_cv_absolute_time_h
13725 gl_cv_next_time_h
='"'$gl_header'"'
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
13730 $as_echo "$gl_cv_next_time_h" >&6; }
13732 NEXT_TIME_H
=$gl_cv_next_time_h
13734 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13736 gl_next_as_first_directive
='<'time.h
'>'
13738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13739 gl_next_as_first_directive
=$gl_cv_next_time_h
13741 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
13754 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
13755 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
13761 cat >>confdefs.h
<<_ACEOF
13762 #define HAVE_DECL_UNSETENV $ac_have_decl
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
13768 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
13769 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
13770 $as_echo_n "(cached) " >&6
13772 gl_cv_header_wchar_h_correct_inline
=yes
13773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13776 #define wcstod renamed_wcstod
13777 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13779 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13780 included before <wchar.h>. */
13781 #include <stddef.h>
13785 extern int zero (void);
13786 int main () { return zero(); }
13789 save_ac_compile
="$ac_compile"
13790 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
13791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13792 (eval $ac_compile) 2>&5
13794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13795 test $ac_status = 0; }; then
13796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13799 #define wcstod renamed_wcstod
13800 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13802 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13803 included before <wchar.h>. */
13804 #include <stddef.h>
13808 int zero (void) { return 0; }
13811 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
13812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13813 (eval $ac_compile) 2>&5
13815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13816 test $ac_status = 0; }; then
13817 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
13820 gl_cv_header_wchar_h_correct_inline
=no
13824 ac_compile
="$save_ac_compile"
13825 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
13829 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
13830 if test $gl_cv_header_wchar_h_correct_inline = no
; then
13831 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
13832 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
13833 C99 mode. You have four options:
13834 - Add the flag -fgnu89-inline to CC and reconfigure, or
13835 - Fix your include files, using parts of
13836 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
13837 - Use a gcc version older than 4.3, or
13838 - Don't use the flags -std=c99 or -std=gnu99.
13839 Configuration aborted." "$LINENO" 5
13855 if test $ac_cv_header_features_h = yes; then
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
13864 $as_echo_n "checking for wint_t... " >&6; }
13865 if ${gt_cv_c_wint_t+:} false
; then :
13866 $as_echo_n "(cached) " >&6
13868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13871 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13873 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
13874 before <wchar.h>. */
13875 #include <stddef.h>
13879 wint_t foo = (wchar_t)'\0';
13888 if ac_fn_c_try_compile
"$LINENO"; then :
13893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
13896 $as_echo "$gt_cv_c_wint_t" >&6; }
13897 if test $gt_cv_c_wint_t = yes; then
13899 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
13908 GNULIB_TOWCTRANS
=0;
13912 REPLACE_ISWBLANK
=0;
13921 GL_COND_LIBTOOL_TRUE
=
13922 GL_COND_LIBTOOL_FALSE
='#'
13924 GL_COND_LIBTOOL_TRUE
='#'
13925 GL_COND_LIBTOOL_FALSE
=
13928 gl_cond_libtool
=false
13931 gl_m4_base
='import/m4'
13941 gl_source_base
='import'
13944 if test $ac_cv_func_alloca_works = no
; then
13948 # Define an additional variable used in the Makefile substitution.
13949 if test $ac_cv_working_alloca_h = yes; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13951 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13952 if ${gl_cv_rpl_alloca+:} false
; then :
13953 $as_echo_n "(cached) " >&6
13956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13959 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
13964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13965 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
13966 gl_cv_rpl_alloca
=yes
13968 gl_cv_rpl_alloca
=no
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13975 $as_echo "$gl_cv_rpl_alloca" >&6; }
13976 if test $gl_cv_rpl_alloca = yes; then
13978 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13988 if test -n "$ALLOCA_H"; then
13989 GL_GENERATE_ALLOCA_H_TRUE
=
13990 GL_GENERATE_ALLOCA_H_FALSE
='#'
13992 GL_GENERATE_ALLOCA_H_TRUE
='#'
13993 GL_GENERATE_ALLOCA_H_FALSE
=
14005 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
14010 if test $ac_cv_func_canonicalize_file_name = no
; then
14011 HAVE_CANONICALIZE_FILE_NAME
=0
14012 if test $ac_cv_func_realpath = no
; then
14015 case "$gl_cv_func_realpath_works" in
14017 *) REPLACE_REALPATH
=1 ;;
14021 case "$gl_cv_func_realpath_works" in
14025 REPLACE_CANONICALIZE_FILE_NAME
=1
14031 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
14040 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
14045 cat >>confdefs.h
<<_ACEOF
14046 #define GNULIB_CANONICALIZE_LGPL 1
14055 GNULIB_CANONICALIZE_FILE_NAME
=1
14061 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
14076 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
14091 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
14098 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
14099 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
14100 $as_echo_n "(cached) " >&6
14102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14105 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
14107 # include <unistd.h>
14109 #include <limits.h>
14110 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
14111 # include <sys/param.h>
14113 #if !defined PATH_MAX && defined MAXPATHLEN
14114 # define PATH_MAX MAXPATHLEN
14118 # define PATH_MAX 1024
14120 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14122 # define PATH_MAX 260
14126 have_arbitrary_file_name_length_limit
14129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14130 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
14131 gl_cv_have_arbitrary_file_name_length_limit
=yes
14133 gl_cv_have_arbitrary_file_name_length_limit
=no
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
14139 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
14141 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
14150 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
14156 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
14162 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14176 if test $ac_cv_header_sys_socket_h != yes; then
14177 for ac_header
in winsock2.h
14179 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14180 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
14181 cat >>confdefs.h
<<_ACEOF
14182 #define HAVE_WINSOCK2_H 1
14190 if test "$ac_cv_header_winsock2_h" = yes; then
14192 UNISTD_H_HAVE_WINSOCK2_H
=1
14193 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
14199 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
14204 if test $REPLACE_CLOSE = 0; then
14214 if test $ac_cv_func_fchdir = no
; then
14218 if test $HAVE_FCHDIR = 0; then
14224 if test $REPLACE_CLOSE = 1; then
14233 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
14247 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
14254 for ac_func
in closedir
14256 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
14257 if test "x$ac_cv_func_closedir" = xyes
; then :
14258 cat >>confdefs.h
<<_ACEOF
14259 #define HAVE_CLOSEDIR 1
14265 if test $ac_cv_func_closedir = no
; then
14278 if test $ac_cv_func_fchdir = no
; then
14282 if test $HAVE_FCHDIR = 0; then
14283 if test $HAVE_CLOSEDIR = 1; then
14288 case $host_os,$HAVE_CLOSEDIR in
14290 REPLACE_CLOSEDIR
=1;;
14293 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
14302 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
14316 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
14321 if test "x$datarootdir" = x
; then
14322 datarootdir
='${datadir}'
14325 if test "x$docdir" = x
; then
14326 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
14329 if test "x$htmldir" = x
; then
14330 htmldir
='${docdir}'
14333 if test "x$dvidir" = x
; then
14337 if test "x$pdfdir" = x
; then
14341 if test "x$psdir" = x
; then
14345 if test "x$lispdir" = x
; then
14346 lispdir
='${datarootdir}/emacs/site-lisp'
14349 if test "x$localedir" = x
; then
14350 localedir
='${datarootdir}/locale'
14353 if test "x$runstatedir" = x
; then
14354 runstatedir
='${localstatedir}/run'
14358 pkglibexecdir
='${libexecdir}/${PACKAGE}'
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
14362 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
14363 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
14364 $as_echo_n "(cached) " >&6
14366 if test "$cross_compiling" = yes; then :
14368 # Guess yes on glibc systems with Linux kernel.
14369 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
14370 # If we don't know, assume the worst.
14371 *) gl_cv_struct_dirent_d_ino
="guessing no" ;;
14375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377 #include <sys/types.h>
14378 #include <sys/stat.h>
14379 #include <dirent.h>
14384 DIR *dp = opendir (".");
14392 if (lstat (e->d_name, &st) != 0)
14394 if (e->d_ino != st.st_ino)
14403 if ac_fn_c_try_run
"$LINENO"; then :
14404 gl_cv_struct_dirent_d_ino
=yes
14406 gl_cv_struct_dirent_d_ino
=no
14408 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14409 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
14414 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
14415 case "$gl_cv_struct_dirent_d_ino" in
14418 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
14425 $as_echo_n "checking for d_type member in directory struct... " >&6; }
14426 if ${gl_cv_struct_dirent_d_type+:} false
; then :
14427 $as_echo_n "(cached) " >&6
14429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14432 #include <sys/types.h>
14433 #include <dirent.h>
14438 struct dirent dp; dp.d_type = 0;
14443 if ac_fn_c_try_link
"$LINENO"; then :
14444 gl_cv_struct_dirent_d_type
=yes
14446 gl_cv_struct_dirent_d_type
=no
14448 rm -f core conftest.err conftest.
$ac_objext \
14449 conftest
$ac_exeext conftest.
$ac_ext
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
14454 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
14455 if test $gl_cv_struct_dirent_d_type = yes; then
14457 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
14480 if test $gl_cv_have_include_next = yes; then
14481 gl_cv_next_dirent_h
='<'dirent.h
'>'
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
14484 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
14485 if ${gl_cv_next_dirent_h+:} false
; then :
14486 $as_echo_n "(cached) " >&6
14489 if test $ac_cv_header_dirent_h = yes; then
14494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496 #include <dirent.h>
14499 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14500 *) gl_absname_cpp
="$ac_cpp" ;;
14505 gl_dirsep_regex
='[/\\]'
14508 gl_dirsep_regex
='\/'
14511 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14512 gl_header_literal_regex
=`echo 'dirent.h' \
14513 | sed -e "$gl_make_literal_regex_sed"`
14514 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14515 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14521 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14522 sed -n "$gl_absolute_header_sed"`
14524 gl_header
=$gl_cv_absolute_dirent_h
14525 gl_cv_next_dirent_h
='"'$gl_header'"'
14527 gl_cv_next_dirent_h
='<'dirent.h
'>'
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
14533 $as_echo "$gl_cv_next_dirent_h" >&6; }
14535 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
14537 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14539 gl_next_as_first_directive
='<'dirent.h
'>'
14541 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14542 gl_next_as_first_directive
=$gl_cv_next_dirent_h
14544 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
14549 if test $ac_cv_header_dirent_h = yes; then
14557 for gl_func
in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir
; do
14558 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14560 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14561 if eval \
${$as_gl_Symbol+:} false
; then :
14562 $as_echo_n "(cached) " >&6
14564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566 #include <dirent.h>
14577 if ac_fn_c_try_compile
"$LINENO"; then :
14578 eval "$as_gl_Symbol=yes"
14580 eval "$as_gl_Symbol=no"
14582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14584 eval ac_res
=\$
$as_gl_Symbol
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14586 $as_echo "$ac_res" >&6; }
14587 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
14588 cat >>confdefs.h
<<_ACEOF
14589 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14592 eval ac_cv_have_decl_
$gl_func=yes
14602 for ac_func
in dirfd
14604 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
14605 if test "x$ac_cv_func_dirfd" = xyes
; then :
14606 cat >>confdefs.h
<<_ACEOF
14607 #define HAVE_DIRFD 1
14613 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
14614 #include <dirent.h>
14616 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
14622 cat >>confdefs.h
<<_ACEOF
14623 #define HAVE_DECL_DIRFD $ac_have_decl
14626 if test $ac_cv_have_decl_dirfd = no
; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
14631 $as_echo_n "checking whether dirfd is a macro... " >&6; }
14632 if ${gl_cv_func_dirfd_macro+:} false
; then :
14633 $as_echo_n "(cached) " >&6
14635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14638 #include <sys/types.h>
14639 #include <dirent.h>
14641 dirent_header_defines_dirfd
14644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14645 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
14646 gl_cv_func_dirfd_macro
=yes
14648 gl_cv_func_dirfd_macro
=no
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
14654 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
14656 # Use the replacement if we have no function or macro with that name,
14657 # or if OS/2 kLIBC whose dirfd() does not work.
14658 # Replace only if the system declares dirfd already.
14659 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
14660 no
,no
,*,yes |
*,*,os2
*,yes)
14663 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
14667 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
14668 ||
test $REPLACE_DIRFD = 1; then
14677 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
14681 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
14682 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
14683 $as_echo_n "(cached) " >&6
14686 dirfd_save_CFLAGS
=$CFLAGS
14687 for ac_expr
in d_fd dd_fd
; do
14689 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
14690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14693 #include <sys/types.h>
14694 #include <dirent.h>
14698 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
14703 if ac_fn_c_try_compile
"$LINENO"; then :
14707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14708 CFLAGS
=$dirfd_save_CFLAGS
14709 test "$dir_fd_found" = yes && break
14711 test "$dir_fd_found" = yes || ac_expr
=no_such_member
14713 gl_cv_sys_dir_fd_member_name
=$ac_expr
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
14718 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
14719 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
14721 cat >>confdefs.h
<<_ACEOF
14722 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
14740 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
14751 $as_echo_n "checking whether // is distinct from /... " >&6; }
14752 if ${gl_cv_double_slash_root+:} false
; then :
14753 $as_echo_n "(cached) " >&6
14755 if test x
"$cross_compiling" = xyes
; then
14756 # When cross-compiling, there is no way to tell whether // is special
14757 # short of a list of hosts. However, the only known hosts to date
14758 # that have a distinct // are Apollo DomainOS (too old to port to),
14759 # Cygwin, and z/OS. If anyone knows of another system for which // has
14760 # special semantics and is distinct from /, please report it to
14761 # <bug-gnulib@gnu.org>.
14763 *-cygwin | i370-ibm-openedition
)
14764 gl_cv_double_slash_root
=yes ;;
14766 # Be optimistic and assume that / and // are the same when we
14768 gl_cv_double_slash_root
='unknown, assuming no' ;;
14771 set x
`ls -di / // 2>/dev/null`
14772 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
14773 gl_cv_double_slash_root
=no
14775 gl_cv_double_slash_root
=yes
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
14780 $as_echo "$gl_cv_double_slash_root" >&6; }
14781 if test "$gl_cv_double_slash_root" = yes; then
14783 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
14790 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14803 if test $ac_cv_func_fchdir = no
; then
14807 if test $HAVE_FCHDIR = 0; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
14812 $as_echo_n "checking whether dup works... " >&6; }
14813 if ${gl_cv_func_dup_works+:} false
; then :
14814 $as_echo_n "(cached) " >&6
14816 if test "$cross_compiling" = yes; then :
14817 gl_cv_func_dup_works
='guessing yes'
14819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14821 #include <unistd.h>
14827 /* On OS/2 kLIBC, dup does not work on a directory fd. */
14828 int fd = open (".", O_RDONLY);
14829 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
14836 if ac_fn_c_try_run
"$LINENO"; then :
14837 gl_cv_func_dup_works
=yes
14839 gl_cv_func_dup_works
=no
14841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
14848 $as_echo "$gl_cv_func_dup_works" >&6; }
14849 case "$gl_cv_func_dup_works" in
14856 if test $REPLACE_DUP = 1; then
14865 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
14880 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
14889 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
14892 if test $HAVE_DUP2 = 1; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
14894 $as_echo_n "checking whether dup2 works... " >&6; }
14895 if ${gl_cv_func_dup2_works+:} false
; then :
14896 $as_echo_n "(cached) " >&6
14898 if test "$cross_compiling" = yes; then :
14900 mingw
*) # on this platform, dup2 always returns 0 for success
14901 gl_cv_func_dup2_works
="guessing no" ;;
14902 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
14903 gl_cv_func_dup2_works
="guessing no" ;;
14905 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
14907 gl_cv_func_dup2_works
="guessing no" ;;
14908 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
14909 gl_cv_func_dup2_works
="guessing no" ;;
14910 *-android*) # implemented using dup3(), which fails if oldfd == newfd
14911 gl_cv_func_dup2_works
="guessing no" ;;
14912 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
14913 gl_cv_func_dup2_works
="guessing no" ;;
14914 *) gl_cv_func_dup2_works
="guessing yes" ;;
14917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14922 #include <limits.h>
14923 #include <sys/resource.h>
14924 #include <unistd.h>
14925 #ifndef RLIM_SAVED_CUR
14926 # define RLIM_SAVED_CUR RLIM_INFINITY
14928 #ifndef RLIM_SAVED_MAX
14929 # define RLIM_SAVED_MAX RLIM_INFINITY
14936 int bad_fd = INT_MAX;
14937 struct rlimit rlim;
14938 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
14939 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
14940 && rlim.rlim_cur != RLIM_INFINITY
14941 && rlim.rlim_cur != RLIM_SAVED_MAX
14942 && rlim.rlim_cur != RLIM_SAVED_CUR)
14943 bad_fd = rlim.rlim_cur;
14945 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
14948 if (dup2 (1, 1) != 1)
14951 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
14955 if (dup2 (0, 0) != -1)
14957 /* Many gnulib modules require POSIX conformance of EBADF. */
14958 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
14960 /* Flush out some cygwin core dumps. */
14961 if (dup2 (2, -1) != -1 || errno != EBADF)
14965 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
14967 int fd = open (".", O_RDONLY);
14970 else if (dup2 (fd, fd + 1) == -1)
14981 if ac_fn_c_try_run
"$LINENO"; then :
14982 gl_cv_func_dup2_works
=yes
14984 gl_cv_func_dup2_works
=no
14986 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14987 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
14993 $as_echo "$gl_cv_func_dup2_works" >&6; }
14994 case "$gl_cv_func_dup2_works" in
14998 for ac_func
in setdtablesize
15000 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
15001 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
15002 cat >>confdefs.h
<<_ACEOF
15003 #define HAVE_SETDTABLESIZE 1
15022 if test $ac_cv_func_fchdir = no
; then
15026 if test $HAVE_FCHDIR = 0; then
15027 if test $HAVE_DUP2 = 1; then
15033 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
15042 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
15057 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
15073 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15080 $as_echo_n "checking for error_at_line... " >&6; }
15081 if ${ac_cv_lib_error_at_line+:} false
; then :
15082 $as_echo_n "(cached) " >&6
15084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15090 error_at_line (0, 0, "", 0, "an error occurred");
15095 if ac_fn_c_try_link
"$LINENO"; then :
15096 ac_cv_lib_error_at_line
=yes
15098 ac_cv_lib_error_at_line
=no
15100 rm -f core conftest.err conftest.
$ac_objext \
15101 conftest
$ac_exeext conftest.
$ac_ext
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15104 $as_echo "$ac_cv_lib_error_at_line" >&6; }
15106 if test $ac_cv_lib_error_at_line = no
; then
15115 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
15135 if test $ac_cv_have_decl_fchdir = no
; then
15140 if test $HAVE_FCHDIR = 0; then
15149 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
15153 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
15156 $as_echo_n "checking whether open can visit directories... " >&6; }
15157 if ${gl_cv_func_open_directory_works+:} false
; then :
15158 $as_echo_n "(cached) " >&6
15160 if test "$cross_compiling" = yes; then :
15162 # Guess yes on glibc systems.
15163 *-gnu*) gl_cv_func_open_directory_works
="guessing yes" ;;
15164 # If we don't know, assume the worst.
15165 *) gl_cv_func_open_directory_works
="guessing no" ;;
15169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15176 return open(".", O_RDONLY) < 0;
15181 if ac_fn_c_try_run
"$LINENO"; then :
15182 gl_cv_func_open_directory_works
=yes
15184 gl_cv_func_open_directory_works
=no
15186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15187 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
15192 $as_echo "$gl_cv_func_open_directory_works" >&6; }
15193 case "$gl_cv_func_open_directory_works" in
15197 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
15214 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
15229 if test $ac_cv_func_fcntl = no
; then
15239 if test $ac_cv_func_fcntl = no
; then
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
15247 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
15248 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
15249 $as_echo_n "(cached) " >&6
15251 if test "$cross_compiling" = yes; then :
15253 aix
* | cygwin
* | haiku
*)
15254 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
15255 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
15258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15262 #include <limits.h>
15263 #include <sys/resource.h>
15264 #include <unistd.h>
15265 #ifndef RLIM_SAVED_CUR
15266 # define RLIM_SAVED_CUR RLIM_INFINITY
15268 #ifndef RLIM_SAVED_MAX
15269 # define RLIM_SAVED_MAX RLIM_INFINITY
15276 int bad_fd = INT_MAX;
15277 struct rlimit rlim;
15278 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
15279 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
15280 && rlim.rlim_cur != RLIM_INFINITY
15281 && rlim.rlim_cur != RLIM_SAVED_MAX
15282 && rlim.rlim_cur != RLIM_SAVED_CUR)
15283 bad_fd = rlim.rlim_cur;
15284 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
15285 if (errno != EINVAL) result |= 2;
15286 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
15287 if (errno != EINVAL) result |= 8;
15288 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
15291 fd = open (".", O_RDONLY);
15294 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
15304 if ac_fn_c_try_run
"$LINENO"; then :
15305 gl_cv_func_fcntl_f_dupfd_works
=yes
15307 gl_cv_func_fcntl_f_dupfd_works
=no
15309 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15310 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
15315 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
15316 case $gl_cv_func_fcntl_f_dupfd_works in
15327 if test $ac_cv_func_fcntl = no
; then
15334 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
15339 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
15340 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
15341 $as_echo_n "(cached) " >&6
15343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15347 #ifndef F_DUPFD_CLOEXEC
15359 if ac_fn_c_try_compile
"$LINENO"; then :
15360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15364 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
15365 it to support the semantics on older kernels that failed with EINVAL. */
15377 if ac_fn_c_try_compile
"$LINENO"; then :
15378 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
15380 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
15382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15384 gl_cv_func_fcntl_f_dupfd_cloexec
=no
15386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
15389 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
15390 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
15400 if test $ac_cv_func_fcntl = no
; then
15418 if test $ac_cv_func_fchdir = no
; then
15422 if test $HAVE_FCHDIR = 0; then
15432 if test $ac_cv_func_fcntl = no
; then
15441 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
15450 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
15464 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
15479 if test $gl_cv_have_include_next = yes; then
15480 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
15483 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
15484 if ${gl_cv_next_fcntl_h+:} false
; then :
15485 $as_echo_n "(cached) " >&6
15490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15495 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15496 *) gl_absname_cpp
="$ac_cpp" ;;
15501 gl_dirsep_regex
='[/\\]'
15504 gl_dirsep_regex
='\/'
15507 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15508 gl_header_literal_regex
=`echo 'fcntl.h' \
15509 | sed -e "$gl_make_literal_regex_sed"`
15510 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15511 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15517 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15518 sed -n "$gl_absolute_header_sed"`
15520 gl_header
=$gl_cv_absolute_fcntl_h
15521 gl_cv_next_fcntl_h
='"'$gl_header'"'
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
15526 $as_echo "$gl_cv_next_fcntl_h" >&6; }
15528 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
15530 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15531 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15532 gl_next_as_first_directive
='<'fcntl.h
'>'
15534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15535 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
15537 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
15548 for gl_func
in fcntl openat
; do
15549 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15551 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15552 if eval \
${$as_gl_Symbol+:} false
; then :
15553 $as_echo_n "(cached) " >&6
15555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15568 if ac_fn_c_try_compile
"$LINENO"; then :
15569 eval "$as_gl_Symbol=yes"
15571 eval "$as_gl_Symbol=no"
15573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15575 eval ac_res
=\$
$as_gl_Symbol
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15577 $as_echo "$ac_res" >&6; }
15578 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15579 cat >>confdefs.h
<<_ACEOF
15580 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15583 eval ac_cv_have_decl_
$gl_func=yes
15593 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
15594 #include <dirent.h>
15597 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
15603 cat >>confdefs.h
<<_ACEOF
15604 #define HAVE_DECL_FDOPENDIR $ac_have_decl
15606 if test $ac_have_decl = 1; then :
15609 HAVE_DECL_FDOPENDIR
=0
15619 if test $ac_cv_func_fdopendir = no
; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
15623 $as_echo_n "checking whether fdopendir works... " >&6; }
15624 if ${gl_cv_func_fdopendir_works+:} false
; then :
15625 $as_echo_n "(cached) " >&6
15627 if test "$cross_compiling" = yes; then :
15629 # Guess yes on glibc systems.
15630 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
15631 # If we don't know, assume the worst.
15632 *) gl_cv_func_fdopendir_works
="guessing no" ;;
15636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15639 #include <dirent.h>
15641 #include <unistd.h>
15642 #if !HAVE_DECL_FDOPENDIR
15644 # ifdef __cplusplus
15647 DIR *fdopendir (int);
15654 int fd = open ("conftest.c", O_RDONLY);
15655 if (fd < 0) result |= 1;
15656 if (fdopendir (fd)) result |= 2;
15657 if (close (fd)) result |= 4;
15663 if ac_fn_c_try_run
"$LINENO"; then :
15664 gl_cv_func_fdopendir_works
=yes
15666 gl_cv_func_fdopendir_works
=no
15668 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15669 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
15674 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
15675 case "$gl_cv_func_fdopendir_works" in
15678 REPLACE_FDOPENDIR
=1
15683 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
15692 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
15706 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
15712 cat >>confdefs.h
<<_ACEOF
15713 #define GNULIB_FDOPENDIR 1
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
15728 $as_echo_n "checking for flexible array member... " >&6; }
15729 if ${ac_cv_c_flexmember+:} false
; then :
15730 $as_echo_n "(cached) " >&6
15732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15733 /* end confdefs.h. */
15734 #include <stdlib.h>
15736 #include <stddef.h>
15737 struct s { int n; double d[]; };
15741 int m = getchar ();
15742 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
15743 nbytes += sizeof (struct s) - 1;
15744 nbytes -= nbytes % sizeof (struct s);
15745 struct s *p = malloc (nbytes);
15747 return p->d != (double *) NULL;
15752 if ac_fn_c_try_compile
"$LINENO"; then :
15753 ac_cv_c_flexmember
=yes
15755 ac_cv_c_flexmember
=no
15757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
15760 $as_echo "$ac_cv_c_flexmember" >&6; }
15761 if test $ac_cv_c_flexmember = yes; then
15763 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
15766 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
15774 REPLACE_FLOAT_LDBL
=0
15776 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
15780 case "$host_cpu" in
15785 # On x86_64 systems, the C compiler may still be generating
15787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h. */
15789 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
15793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15794 $EGREP "yes" >/dev
/null
2>&1; then :
15805 case "$host_cpu" in
15813 aix
* | freebsd
* | linux
*)
15814 if test -n "$FLOAT_H"; then
15815 REPLACE_FLOAT_LDBL
=1
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
15822 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
15823 if ${gl_cv_func_itold_works+:} false
; then :
15824 $as_echo_n "(cached) " >&6
15827 if test "$cross_compiling" = yes; then :
15830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15831 /* end confdefs.h. */
15832 #if defined __LP64__ || defined __arch64__
15836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15837 $EGREP "yes" >/dev
/null
2>&1; then :
15838 gl_cv_func_itold_works
="guessing no"
15840 gl_cv_func_itold_works
="guessing yes"
15845 *) gl_cv_func_itold_works
="guessing yes" ;;
15849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15853 volatile long double ld;
15862 if ac_fn_c_try_run
"$LINENO"; then :
15863 gl_cv_func_itold_works
=yes
15865 gl_cv_func_itold_works
=no
15867 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15868 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
15874 $as_echo "$gl_cv_func_itold_works" >&6; }
15875 case "$gl_cv_func_itold_works" in
15882 if test -n "$FLOAT_H"; then
15891 if test $gl_cv_have_include_next = yes; then
15892 gl_cv_next_float_h
='<'float.h
'>'
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
15895 $as_echo_n "checking absolute name of <float.h>... " >&6; }
15896 if ${gl_cv_next_float_h+:} false
; then :
15897 $as_echo_n "(cached) " >&6
15902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15907 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15908 *) gl_absname_cpp
="$ac_cpp" ;;
15913 gl_dirsep_regex
='[/\\]'
15916 gl_dirsep_regex
='\/'
15919 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15920 gl_header_literal_regex
=`echo 'float.h' \
15921 | sed -e "$gl_make_literal_regex_sed"`
15922 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15923 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15929 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15930 sed -n "$gl_absolute_header_sed"`
15932 gl_header
=$gl_cv_absolute_float_h
15933 gl_cv_next_float_h
='"'$gl_header'"'
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
15938 $as_echo "$gl_cv_next_float_h" >&6; }
15940 NEXT_FLOAT_H
=$gl_cv_next_float_h
15942 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15943 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15944 gl_next_as_first_directive
='<'float.h
'>'
15946 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15947 gl_next_as_first_directive
=$gl_cv_next_float_h
15949 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
15956 if test -n "$FLOAT_H"; then
15957 GL_GENERATE_FLOAT_H_TRUE
=
15958 GL_GENERATE_FLOAT_H_FALSE
='#'
15960 GL_GENERATE_FLOAT_H_TRUE
='#'
15961 GL_GENERATE_FLOAT_H_FALSE
=
15966 if test $REPLACE_FLOAT_LDBL = 1; then
15975 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
15978 if test $REPLACE_ITOLD = 1; then
15987 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
15996 gl_fnmatch_required_lowercase
=`
15997 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
15999 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
16001 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
16002 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
16003 $as_echo_n "(cached) " >&6
16005 if test $gl_fnmatch_required = GNU
; then
16006 gl_fnmatch_gnu_start
=
16007 gl_fnmatch_gnu_end
=
16009 gl_fnmatch_gnu_start
='#if 0'
16010 gl_fnmatch_gnu_end
='#endif'
16012 if test "$cross_compiling" = yes; then :
16013 eval "$gl_fnmatch_cache_var=\"guessing no\""
16015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16017 #include <fnmatch.h>
16019 y (char const *pattern, char const *string, int flags)
16021 return fnmatch (pattern, string, flags) == 0;
16024 n (char const *pattern, char const *string, int flags)
16026 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
16032 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
16033 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
16034 static char const A_1[] = { 'A' - 1, 0 };
16035 static char const A01[] = { 'A' + 1, 0 };
16036 static char const a_1[] = { 'a' - 1, 0 };
16037 static char const a01[] = { 'a' + 1, 0 };
16038 static char const bs_1[] = { '\\\\' - 1, 0 };
16039 static char const bs01[] = { '\\\\' + 1, 0 };
16041 if (!n ("a*", "", 0))
16043 if (!y ("a*", "abc", 0))
16045 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
16047 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
16049 if (!y ("a\\\\bc", "abc", 0))
16051 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
16053 if (!y ("*x", ".x", 0))
16055 if (!n ("*x", ".x", FNM_PERIOD))
16057 if (!y (Apat, "\\\\", 0))
16059 if (!y (Apat, "A", 0))
16061 if (!y (apat, "\\\\", 0))
16063 if (!y (apat, "a", 0))
16065 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
16067 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
16069 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
16071 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
16073 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
16075 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
16077 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
16079 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
16081 $gl_fnmatch_gnu_start
16082 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
16084 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
16086 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
16088 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
16090 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
16092 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
16094 $gl_fnmatch_gnu_end
16101 if ac_fn_c_try_run
"$LINENO"; then :
16102 eval "$gl_fnmatch_cache_var=yes"
16104 eval "$gl_fnmatch_cache_var=no"
16106 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16107 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16112 eval ac_res
=\$
$gl_fnmatch_cache_var
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16114 $as_echo "$ac_res" >&6; }
16115 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
16116 if test "$gl_fnmatch_result" = yes; then
16117 rm -f "$gl_source_base/fnmatch.h"
16119 FNMATCH_H
=fnmatch.h
16122 if test -n "$FNMATCH_H"; then
16123 GL_GENERATE_FNMATCH_H_TRUE
=
16124 GL_GENERATE_FNMATCH_H_FALSE
='#'
16126 GL_GENERATE_FNMATCH_H_TRUE
='#'
16127 GL_GENERATE_FNMATCH_H_FALSE
=
16131 if test -n "$FNMATCH_H"; then
16140 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
16144 cat >>confdefs.h
<<_ACEOF
16145 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16149 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16151 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
16157 cat >>confdefs.h
<<_ACEOF
16158 #define HAVE_DECL_ISBLANK $ac_have_decl
16203 if test -n "$FNMATCH_H"; then
16212 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
16216 cat >>confdefs.h
<<_ACEOF
16217 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16221 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16223 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
16229 cat >>confdefs.h
<<_ACEOF
16230 #define HAVE_DECL_ISBLANK $ac_have_decl
16274 if test $gl_cv_func_frexp_no_libm = no
; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
16276 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
16277 if ${gl_cv_func_frexp_in_libm+:} false
; then :
16278 $as_echo_n "(cached) " >&6
16283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16290 int e; return frexp (x, &e) > 0;
16295 if ac_fn_c_try_link
"$LINENO"; then :
16296 gl_cv_func_frexp_in_libm
=yes
16298 gl_cv_func_frexp_in_libm
=no
16300 rm -f core conftest.err conftest.
$ac_objext \
16301 conftest
$ac_exeext conftest.
$ac_ext
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
16306 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
16307 if test $gl_cv_func_frexp_in_libm = yes; then
16311 if test $gl_cv_func_frexp_no_libm = yes \
16312 ||
test $gl_cv_func_frexp_in_libm = yes; then
16314 LIBS
="$LIBS $FREXP_LIBM"
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
16325 $as_echo_n "checking whether frexp works... " >&6; }
16326 if ${gl_cv_func_frexp_works+:} false
; then :
16327 $as_echo_n "(cached) " >&6
16330 if test "$cross_compiling" = yes; then :
16332 netbsd
* | irix
* | mingw
*) gl_cv_func_frexp_works
="guessing no";;
16333 *) gl_cv_func_frexp_works
="guessing yes";;
16337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16342 #include <string.h>
16343 #if HAVE_DECL_ALARM
16344 # include <signal.h>
16345 # include <unistd.h>
16347 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
16348 ICC 10.0 has a bug when optimizing the expression -zero.
16349 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
16350 to PowerPC on Mac OS X 10.5. */
16351 #if defined __hpux || defined __sgi || defined __ICC
16353 compute_minus_zero (void)
16355 return -DBL_MIN * DBL_MIN;
16357 # define minus_zero compute_minus_zero ()
16359 double minus_zero = -0.0;
16367 #if HAVE_DECL_ALARM
16368 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
16369 number. Let the test fail in this case. */
16370 signal (SIGALRM, SIG_DFL);
16373 /* Test on denormalized numbers. */
16374 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
16379 double y = frexp (x, &exp);
16380 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
16381 On NetBSD: y = 0.75. Correct: y = 0.5. */
16385 /* Test on infinite numbers. */
16389 double y = frexp (x, &exp);
16393 /* Test on negative zero. */
16397 double y = frexp (x, &exp);
16398 if (memcmp (&y, &x, sizeof x))
16404 if ac_fn_c_try_run
"$LINENO"; then :
16405 gl_cv_func_frexp_works
=yes
16407 gl_cv_func_frexp_works
=no
16409 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16410 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
16416 $as_echo "$gl_cv_func_frexp_works" >&6; }
16419 case "$gl_cv_func_frexp_works" in
16420 *yes) gl_func_frexp
=yes ;;
16421 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
16426 if test $gl_func_frexp = yes; then
16428 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
16433 if test $gl_func_frexp != yes; then
16442 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
16456 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
16466 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
16468 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
16476 if test $HAVE_DECL_FREXPL = 1; then
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
16479 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
16480 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
16481 $as_echo_n "(cached) " >&6
16484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16485 /* end confdefs.h. */
16491 int e; return frexpl (x, &e) > 0;
16496 if ac_fn_c_try_link
"$LINENO"; then :
16497 gl_cv_func_frexpl_no_libm
=yes
16499 gl_cv_func_frexpl_no_libm
=no
16501 rm -f core conftest.err conftest.
$ac_objext \
16502 conftest
$ac_exeext conftest.
$ac_ext
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
16506 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
16508 if test $gl_cv_func_frexpl_no_libm = no
; then
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
16510 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
16511 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
16512 $as_echo_n "(cached) " >&6
16517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h. */
16524 int e; return frexpl (x, &e) > 0;
16529 if ac_fn_c_try_link
"$LINENO"; then :
16530 gl_cv_func_frexpl_in_libm
=yes
16532 gl_cv_func_frexpl_in_libm
=no
16534 rm -f core conftest.err conftest.
$ac_objext \
16535 conftest
$ac_exeext conftest.
$ac_ext
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
16540 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
16541 if test $gl_cv_func_frexpl_in_libm = yes; then
16545 if test $gl_cv_func_frexpl_no_libm = yes \
16546 ||
test $gl_cv_func_frexpl_in_libm = yes; then
16548 LIBS
="$LIBS $FREXPL_LIBM"
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
16552 $as_echo_n "checking whether frexpl works... " >&6; }
16553 if ${gl_cv_func_frexpl_works+:} false
; then :
16554 $as_echo_n "(cached) " >&6
16557 if test "$cross_compiling" = yes; then :
16560 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
16561 gl_cv_func_frexpl_works
="guessing no";;
16562 *) gl_cv_func_frexpl_works
="guessing yes";;
16566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16571 /* Override the values of <float.h>, like done in float.in.h. */
16572 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
16573 # undef LDBL_MIN_EXP
16574 # define LDBL_MIN_EXP (-16381)
16576 #if defined __i386__ && defined __FreeBSD__
16577 # undef LDBL_MIN_EXP
16578 # define LDBL_MIN_EXP (-16381)
16580 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
16581 # undef LDBL_MIN_EXP
16582 # define LDBL_MIN_EXP DBL_MIN_EXP
16584 #if defined __sgi && (LDBL_MANT_DIG >= 106)
16585 # if defined __GNUC__
16586 # undef LDBL_MIN_EXP
16587 # define LDBL_MIN_EXP DBL_MIN_EXP
16594 long double frexpl (long double, int *);
16598 volatile long double x;
16599 /* Test on finite numbers that fails on AIX 5.1. */
16607 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
16608 function returns an invalid (incorrectly normalized) value: it returns
16609 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
16610 but the correct result is
16611 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
16615 long double y = frexpl (x, &exp);
16616 if (!(exp == 1 && y == 0.505L))
16619 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
16620 LDBL_MAX_EXP = 16384.
16621 In the loop end test, we test x against Infinity, rather than comparing
16622 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
16625 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
16636 /* Test on denormalized numbers. */
16639 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
16644 long double y = frexpl (x, &exp);
16645 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
16646 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
16647 if (exp != LDBL_MIN_EXP - 1)
16651 /* Test on infinite numbers. */
16655 long double y = frexpl (x, &exp);
16662 if ac_fn_c_try_run
"$LINENO"; then :
16663 gl_cv_func_frexpl_works
=yes
16665 gl_cv_func_frexpl_works
=no
16667 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16668 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
16674 $as_echo "$gl_cv_func_frexpl_works" >&6; }
16677 case "$gl_cv_func_frexpl_works" in
16678 *yes) gl_func_frexpl
=yes ;;
16679 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
16684 if test $gl_func_frexpl = yes; then
16686 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
16690 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
16691 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
16693 FREXPL_LIBM
="$FREXP_LIBM"
16700 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
16709 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
16723 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
16731 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
16736 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
16750 if test $ac_cv_func_fchdir = no
; then
16754 if test $HAVE_FCHDIR = 0; then
16755 case "$gl_cv_func_open_directory_works" in
16764 if test $REPLACE_FSTAT = 1; then
16773 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
16788 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
16804 if test $ac_cv_func_fstatat = no
; then
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
16808 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
16809 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
16810 $as_echo_n "(cached) " >&6
16812 if test "$cross_compiling" = yes; then :
16814 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
16815 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
16819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16820 /* end confdefs.h. */
16823 #include <sys/stat.h>
16828 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
16832 if ac_fn_c_try_run
"$LINENO"; then :
16833 gl_cv_func_fstatat_zero_flag
=yes
16835 gl_cv_func_fstatat_zero_flag
=no
16837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
16844 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
16846 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
16848 *) REPLACE_FSTATAT
=1
16849 case $gl_cv_func_fstatat_zero_flag in
16852 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
16860 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
16869 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
16883 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
16895 gl_cv_func_getcwd_path_max
=yes
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
16916 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
16917 if ${gl_cv_func_getcwd_path_max+:} false
; then :
16918 $as_echo_n "(cached) " >&6
16920 # Arrange for deletion of the temporary directory this test creates.
16921 ac_clean_files
="$ac_clean_files confdir3"
16922 if test "$cross_compiling" = yes; then :
16924 aix
*) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
16925 *) gl_cv_func_getcwd_path_max
=no
;;
16928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h. */
16932 #include <stdlib.h>
16934 # include <unistd.h>
16936 # include <direct.h>
16938 #include <string.h>
16939 #include <limits.h>
16940 #include <sys/stat.h>
16941 #include <sys/types.h>
16945 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
16947 # include <unistd.h>
16949 #include <limits.h>
16950 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
16951 # include <sys/param.h>
16953 #if !defined PATH_MAX && defined MAXPATHLEN
16954 # define PATH_MAX MAXPATHLEN
16958 # define PATH_MAX 1024
16960 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16962 # define PATH_MAX 260
16967 # define AT_FDCWD 0
16969 #ifdef ENAMETOOLONG
16970 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
16972 # define is_ENAMETOOLONG(x) 0
16975 /* Use the getcwd function, not any macro. */
16978 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
16982 # define S_IRWXU 0700
16985 /* The length of this name must be 8. */
16986 #define DIR_NAME "confdir3"
16987 #define DIR_NAME_LEN 8
16988 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
16990 /* The length of "../". */
16991 #define DOTDOTSLASH_LEN 3
16993 /* Leftover bytes in the buffer, to work around library or OS bugs. */
16994 #define BUF_SLOP 20
17000 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
17001 at least not on a local file system. And if we were to start worrying
17002 about remote file systems, we'd have to enable the wrapper function
17003 all of the time, just to be safe. That's not worth the cost. */
17005 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
17006 - DIR_NAME_SIZE - BUF_SLOP) \
17008 /* FIXME: Assuming there's a system for which this is true,
17009 this should be done in a compile test. */
17012 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
17013 + DIR_NAME_SIZE + BUF_SLOP];
17014 char *cwd = getcwd (buf, PATH_MAX);
17015 size_t initial_cwd_len;
17018 size_t n_chdirs = 0;
17023 cwd_len = initial_cwd_len = strlen (cwd);
17027 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
17030 cwd_len += DIR_NAME_SIZE;
17031 /* If mkdir or chdir fails, it could be that this system cannot create
17032 any file with an absolute name longer than PATH_MAX, such as cygwin.
17033 If so, leave fail as 0, because the current working directory can't
17034 be too long for getcwd if it can't even be created. For other
17035 errors, be pessimistic and consider that as a failure, too. */
17036 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
17038 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17043 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
17047 c = getcwd (buf, PATH_MAX);
17048 if (!c && errno == ENOENT)
17058 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17064 /* Our replacement needs to be able to stat() long ../../paths,
17065 so generate a path larger than PATH_MAX to check,
17066 avoiding the replacement if we can't stat(). */
17067 c = getcwd (buf, cwd_len + 1);
17068 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
17075 if (dotdot_max <= cwd_len - initial_cwd_len)
17077 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
17079 c = getcwd (buf, cwd_len + 1);
17082 if (! (errno == ERANGE || errno == ENOENT
17083 || is_ENAMETOOLONG (errno)))
17088 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
17096 if (c && strlen (c) != cwd_len)
17104 /* Leaving behind such a deep directory is not polite.
17105 So clean up here, right away, even though the driving
17106 shell script would also clean up. */
17110 /* Try rmdir first, in case the chdir failed. */
17112 for (i = 0; i <= n_chdirs; i++)
17114 if (chdir ("..") < 0)
17116 if (rmdir (DIR_NAME) != 0)
17126 if ac_fn_c_try_run
"$LINENO"; then :
17127 gl_cv_func_getcwd_path_max
=yes
17130 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
17131 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
17132 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
17133 *) gl_cv_func_getcwd_path_max
=no
;;
17136 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17137 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
17143 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
17145 case "$gl_cv_func_getcwd_null" in
17163 for ac_func
in getpagesize
17165 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17166 if test "x$ac_cv_func_getpagesize" = xyes
; then :
17167 cat >>confdefs.h
<<_ACEOF
17168 #define HAVE_GETPAGESIZE 1
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
17175 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
17176 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
17177 $as_echo_n "(cached) " >&6
17179 # Remove any remnants of a previous test.
17180 rm -rf confdir-14B---
17181 # Arrange for deletion of the temporary directory this test creates.
17182 ac_clean_files
="$ac_clean_files confdir-14B---"
17183 if test "$cross_compiling" = yes; then :
17184 gl_cv_func_getcwd_abort_bug
=yes
17186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17190 #include <stdlib.h>
17192 # include <unistd.h>
17193 #else /* on Windows with MSVC */
17194 # include <direct.h>
17196 #include <string.h>
17197 #include <sys/stat.h>
17200 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17202 # include <unistd.h>
17204 #include <limits.h>
17205 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17206 # include <sys/param.h>
17208 #if !defined PATH_MAX && defined MAXPATHLEN
17209 # define PATH_MAX MAXPATHLEN
17213 # define PATH_MAX 1024
17215 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17217 # define PATH_MAX 260
17221 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
17225 # define S_IRWXU 0700
17228 /* FIXME: skip the run-test altogether on systems without getpagesize. */
17229 #if ! HAVE_GETPAGESIZE
17230 # define getpagesize() 0
17233 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
17234 the 16kB pagesize on ia64 linux. Those conditions make the code below
17235 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
17236 #define TARGET_LEN (5 * 1024)
17242 size_t initial_cwd_len;
17245 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
17246 this relatively expensive and invasive test if that's not true. */
17248 int bug_possible = PATH_MAX < getpagesize ();
17250 int bug_possible = 0;
17252 if (! bug_possible)
17255 cwd = getcwd (NULL, 0);
17259 initial_cwd_len = strlen (cwd);
17264 static char const dir_name[] = "confdir-14B---";
17265 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
17266 / sizeof dir_name);
17268 for (d = 0; d < desired_depth; d++)
17270 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
17272 if (! (errno == ERANGE || errno == ENAMETOOLONG
17273 || errno == ENOENT))
17274 fail = 3; /* Unable to construct deep hierarchy. */
17279 /* If libc has the bug in question, this invocation of getcwd
17280 results in a failed assertion. */
17281 cwd = getcwd (NULL, 0);
17283 fail = 4; /* getcwd didn't assert, but it failed for a long name
17284 where the answer could have been learned. */
17287 /* Call rmdir first, in case the above chdir failed. */
17291 if (chdir ("..") < 0)
17304 if ac_fn_c_try_run
"$LINENO"; then :
17305 gl_cv_func_getcwd_abort_bug
=no
17308 if test $ret -ge 128 ||
test $ret = 4; then
17309 gl_cv_func_getcwd_abort_bug
=yes
17311 gl_cv_func_getcwd_abort_bug
=no
17314 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17315 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
17321 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
17322 if test $gl_cv_func_getcwd_abort_bug = yes; then :
17330 case "$gl_cv_func_getcwd_path_max" in
17331 "no"|
"no, it has the AIX bug") ;;
17334 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
17338 case "$gl_cv_func_getcwd_path_max" in
17339 "no, but it is partly working")
17341 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
17344 "yes, but with shorter paths")
17346 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
17351 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
17352 ||
test $gl_cv_func_getcwd_posix_signature != yes \
17353 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
17354 ||
test $gl_abort_bug = yes; then
17358 if test $REPLACE_GETCWD = 1; then
17367 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
17377 cat >>confdefs.h
<<_ACEOF
17378 #define GNULIB_GETCWD 1
17393 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
17402 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
17409 if test $REPLACE_GETCWD = 1; then
17418 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
17432 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
17453 if test $ac_cv_func_getdtablesize = yes &&
17454 test $ac_cv_have_decl_getdtablesize = yes; then
17455 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
17456 # up to an unchangeable hard limit; all other platforms correctly
17457 # require setrlimit before getdtablesize() can report a larger value.
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
17459 $as_echo_n "checking whether getdtablesize works... " >&6; }
17460 if ${gl_cv_func_getdtablesize_works+:} false
; then :
17461 $as_echo_n "(cached) " >&6
17463 if test "$cross_compiling" = yes; then :
17465 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
17466 gl_cv_func_getdtablesize_works
="guessing no" ;;
17467 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
17470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17471 /* end confdefs.h. */
17473 #include <unistd.h>
17477 int size = getdtablesize();
17478 if (dup2 (0, getdtablesize()) != -1)
17480 if (size != getdtablesize())
17487 if ac_fn_c_try_run
"$LINENO"; then :
17488 gl_cv_func_getdtablesize_works
=yes
17490 gl_cv_func_getdtablesize_works
=no
17492 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17493 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
17499 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
17500 case "$gl_cv_func_getdtablesize_works" in
17502 *) REPLACE_GETDTABLESIZE
=1 ;;
17505 HAVE_GETDTABLESIZE
=0
17508 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
17517 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
17526 GNULIB_GETDTABLESIZE
=1
17532 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
17548 if test $ac_cv_have_decl_getlogin_r = no
; then
17549 HAVE_DECL_GETLOGIN_R
=0
17559 if test $ac_cv_func_getlogin_r = no
; then
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
17565 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
17566 if ${gl_cv_func_getlogin_r_works+:} false
; then :
17567 $as_echo_n "(cached) " >&6
17571 # Guess no on OSF/1.
17572 osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
17573 # Guess yes otherwise.
17574 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
17576 if test "$cross_compiling" = yes; then :
17579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17582 #include <stddef.h>
17583 #include <unistd.h>
17584 #if !HAVE_DECL_GETLOGIN_R
17586 # ifdef __cplusplus
17589 int getlogin_r (char *, size_t);
17597 if (getlogin_r (buf, 0) == 0)
17599 if (getlogin_r (buf, 1) == 0)
17604 if ac_fn_c_try_run
"$LINENO"; then :
17605 gl_cv_func_getlogin_r_works
=yes
17608 16 |
17) gl_cv_func_getlogin_r_works
=no
;;
17612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
17619 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
17620 case "$gl_cv_func_getlogin_r_works" in
17622 *) REPLACE_GETLOGIN_R
=1 ;;
17626 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
17635 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
17652 GNULIB_GETLOGIN_R
=1
17658 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
17675 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
17677 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
17683 cat >>confdefs.h
<<_ACEOF
17684 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
17686 if test $ac_have_decl = 1; then :
17690 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
17692 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
17698 cat >>confdefs.h
<<_ACEOF
17699 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
17701 if test $ac_have_decl = 1; then :
17705 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
17707 if test "x$ac_cv_have_decl___argv" = xyes
; then :
17713 cat >>confdefs.h
<<_ACEOF
17714 #define HAVE_DECL___ARGV $ac_have_decl
17716 if test $ac_have_decl = 1; then :
17721 # Incur the cost of this test only if none of the above worked.
17722 if test $ac_found = 0; then
17723 # On OpenBSD 5.1, using the global __progname variable appears to be
17724 # the only way to implement getprogname.
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
17726 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
17727 if ${gl_cv_var___progname+:} false
; then :
17728 $as_echo_n "(cached) " >&6
17731 gl_cv_var___progname
=
17732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17733 /* end confdefs.h. */
17734 extern char *__progname;
17738 return *__progname;
17744 if ac_fn_c_try_link
"$LINENO"; then :
17745 gl_cv_var___progname
=yes
17748 rm -f core conftest.err conftest.
$ac_objext \
17749 conftest
$ac_exeext conftest.
$ac_ext
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
17754 $as_echo "$gl_cv_var___progname" >&6; }
17755 if test "$gl_cv_var___progname" = yes; then
17757 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
17776 gl_gettimeofday_timezone
=void
17777 if test $ac_cv_func_gettimeofday != yes; then
17778 HAVE_GETTIMEOFDAY
=0
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
17784 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
17785 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
17786 $as_echo_n "(cached) " >&6
17788 if test "$cross_compiling" = yes; then :
17789 # When cross-compiling:
17791 # Guess all is fine on glibc systems.
17792 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
17793 # If we don't know, assume the worst.
17794 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
17798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17800 #include <string.h>
17801 #include <sys/time.h>
17803 #include <stdlib.h>
17811 struct tm saved_lt;
17813 lt = localtime (&t);
17815 gettimeofday (&tv, NULL);
17816 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
17822 if ac_fn_c_try_run
"$LINENO"; then :
17823 gl_cv_func_gettimeofday_clobber
=no
17825 gl_cv_func_gettimeofday_clobber
=yes
17827 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17828 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
17833 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
17835 case "$gl_cv_func_gettimeofday_clobber" in
17837 REPLACE_GETTIMEOFDAY
=1
17840 REPLACE_LOCALTIME
=1
17843 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
17849 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
17850 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
17851 $as_echo_n "(cached) " >&6
17853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h. */
17855 #include <sys/time.h>
17857 int gettimeofday (struct timeval *restrict, void *restrict);
17862 /* glibc uses struct timezone * rather than the POSIX void *
17863 if _GNU_SOURCE is defined. However, since the only portable
17864 use of gettimeofday uses NULL as the second parameter, and
17865 since the glibc definition is actually more typesafe, it is
17866 not worth wrapping this to get a compliant signature. */
17867 int (*f) (struct timeval *restrict, void *restrict)
17870 return !(x | c.tv_sec | c.tv_usec);
17876 if ac_fn_c_try_compile
"$LINENO"; then :
17877 gl_cv_func_gettimeofday_posix_signature
=yes
17879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17881 #include <sys/time.h>
17882 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
17892 if ac_fn_c_try_compile
"$LINENO"; then :
17893 gl_cv_func_gettimeofday_posix_signature
=almost
17895 gl_cv_func_gettimeofday_posix_signature
=no
17897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
17902 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
17903 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
17904 gl_gettimeofday_timezone
='struct timezone'
17905 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
17906 REPLACE_GETTIMEOFDAY
=1
17908 if test $REPLACE_STRUCT_TIMEVAL = 1; then
17909 REPLACE_GETTIMEOFDAY
=1
17914 cat >>confdefs.h
<<_ACEOF
17915 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
17919 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
17928 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
17931 for ac_header
in sys
/timeb.h
17933 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
17934 if test "x$ac_cv_header_sys_timeb_h" = xyes
; then :
17935 cat >>confdefs.h
<<_ACEOF
17936 #define HAVE_SYS_TIMEB_H 1
17943 for ac_func
in _ftime
17945 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
17946 if test "x$ac_cv_func__ftime" = xyes
; then :
17947 cat >>confdefs.h
<<_ACEOF
17948 #define HAVE__FTIME 1
17961 GNULIB_GETTIMEOFDAY
=1
17967 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
17972 for ac_header
in glob.h
17974 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
17975 if test "x$ac_cv_header_glob_h" = xyes
; then :
17976 cat >>confdefs.h
<<_ACEOF
17977 #define HAVE_GLOB_H 1
17987 if test -z "$GLOB_H"; then
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
17989 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
17990 if ${gl_cv_gnu_glob_interface_version_1+:} false
; then :
17991 $as_echo_n "(cached) " >&6
17993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h. */
17995 #include <gnu-versions.h>
17996 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
17998 if ac_fn_c_try_compile
"$LINENO"; then :
17999 gl_cv_gnu_glob_interface_version_1
=yes
18001 gl_cv_gnu_glob_interface_version_1
=no
18003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
18006 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
18008 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
18013 if test -z "$GLOB_H"; then
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
18015 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
18016 if ${gl_cv_glob_lists_symlinks+:} false
; then :
18017 $as_echo_n "(cached) " >&6
18019 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
18020 gl_cv_glob_lists_symlinks
=maybe
18022 # If we can't make a symlink, then we cannot test this issue. Be
18023 # pessimistic about this.
18024 gl_cv_glob_lists_symlinks
=no
18027 if test $gl_cv_glob_lists_symlinks = maybe
; then
18028 if test "$cross_compiling" = yes; then :
18029 gl_cv_glob_lists_symlinks
=no
18031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18032 /* end confdefs.h. */
18034 #include <stddef.h>
18040 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
18045 if ac_fn_c_try_run
"$LINENO"; then :
18046 gl_cv_glob_lists_symlinks
=yes
18048 gl_cv_glob_lists_symlinks
=no
18050 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18051 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
18057 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
18059 if test $gl_cv_glob_lists_symlinks = no
; then
18064 rm -f conf$$
-globtest
18067 if test -n "$GLOB_H"; then
18068 GL_GENERATE_GLOB_H_TRUE
=
18069 GL_GENERATE_GLOB_H_FALSE
='#'
18071 GL_GENERATE_GLOB_H_TRUE
='#'
18072 GL_GENERATE_GLOB_H_FALSE
=
18076 if test -n "$GLOB_H"; then
18085 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
18097 if test $ac_cv_header_sys_cdefs_h = yes; then
18126 if test -n "$STDINT_H"; then
18127 PRIPTR_PREFIX
='"l"'
18129 for glpfx
in '' l ll I64
; do
18131 '') gltype1
='int';;
18132 l
) gltype1
='long int';;
18133 ll
) gltype1
='long long int';;
18134 I64
) gltype1
='__int64';;
18136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18138 #include <stdint.h>
18139 extern intptr_t foo;
18140 extern $gltype1 foo;
18149 if ac_fn_c_try_compile
"$LINENO"; then :
18150 PRIPTR_PREFIX
='"'$glpfx'"'
18152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18153 test -n "$PRIPTR_PREFIX" && break
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
18160 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
18161 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
18162 $as_echo_n "(cached) " >&6
18164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h. */
18166 /* Work also in C++ mode. */
18167 #define __STDC_LIMIT_MACROS 1
18169 /* Work if build is not clean. */
18170 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18172 #include <limits.h>
18174 #include <stdint.h>
18177 #if defined INT32_MAX && defined INTMAX_MAX
18178 #define CONDITION (INT32_MAX < INTMAX_MAX)
18179 #elif HAVE_LONG_LONG_INT
18180 #define CONDITION (sizeof (int) < sizeof (long long int))
18182 #define CONDITION 0
18184 int test[CONDITION ? 1 : -1];
18193 if ac_fn_c_try_compile
"$LINENO"; then :
18194 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
18196 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
18198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
18201 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
18202 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
18203 INT32_MAX_LT_INTMAX_MAX
=1;
18205 INT32_MAX_LT_INTMAX_MAX
=0;
18209 if test $APPLE_UNIVERSAL_BUILD = 0; then
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
18212 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
18213 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
18214 $as_echo_n "(cached) " >&6
18216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18217 /* end confdefs.h. */
18218 /* Work also in C++ mode. */
18219 #define __STDC_LIMIT_MACROS 1
18221 /* Work if build is not clean. */
18222 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18224 #include <limits.h>
18226 #include <stdint.h>
18229 #if defined INT64_MAX
18230 #define CONDITION (INT64_MAX == LONG_MAX)
18231 #elif HAVE_LONG_LONG_INT
18232 #define CONDITION (sizeof (long long int) == sizeof (long int))
18234 #define CONDITION 0
18236 int test[CONDITION ? 1 : -1];
18245 if ac_fn_c_try_compile
"$LINENO"; then :
18246 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
18248 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
18250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
18253 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
18254 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
18255 INT64_MAX_EQ_LONG_MAX
=1;
18257 INT64_MAX_EQ_LONG_MAX
=0;
18262 INT64_MAX_EQ_LONG_MAX
=-1
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
18266 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
18267 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
18268 $as_echo_n "(cached) " >&6
18270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18272 /* Work also in C++ mode. */
18273 #define __STDC_LIMIT_MACROS 1
18275 /* Work if build is not clean. */
18276 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18278 #include <limits.h>
18280 #include <stdint.h>
18283 #if defined UINT32_MAX && defined UINTMAX_MAX
18284 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
18285 #elif HAVE_LONG_LONG_INT
18286 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
18288 #define CONDITION 0
18290 int test[CONDITION ? 1 : -1];
18299 if ac_fn_c_try_compile
"$LINENO"; then :
18300 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
18302 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
18304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
18307 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
18308 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
18309 UINT32_MAX_LT_UINTMAX_MAX
=1;
18311 UINT32_MAX_LT_UINTMAX_MAX
=0;
18315 if test $APPLE_UNIVERSAL_BUILD = 0; then
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
18318 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
18319 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
18320 $as_echo_n "(cached) " >&6
18322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18324 /* Work also in C++ mode. */
18325 #define __STDC_LIMIT_MACROS 1
18327 /* Work if build is not clean. */
18328 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18330 #include <limits.h>
18332 #include <stdint.h>
18335 #if defined UINT64_MAX
18336 #define CONDITION (UINT64_MAX == ULONG_MAX)
18337 #elif HAVE_LONG_LONG_INT
18338 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
18340 #define CONDITION 0
18342 int test[CONDITION ? 1 : -1];
18351 if ac_fn_c_try_compile
"$LINENO"; then :
18352 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
18354 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
18356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
18359 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
18360 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
18361 UINT64_MAX_EQ_ULONG_MAX
=1;
18363 UINT64_MAX_EQ_ULONG_MAX
=0;
18368 UINT64_MAX_EQ_ULONG_MAX
=-1
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
18376 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
18377 if ${gl_cv_func_isnand_no_libm+:} false
; then :
18378 $as_echo_n "(cached) " >&6
18381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18382 /* end confdefs.h. */
18386 # define isnand(x) __builtin_isnan ((double)(x))
18389 # define isnand(x) isnan ((double)(x))
18400 if ac_fn_c_try_link
"$LINENO"; then :
18401 gl_cv_func_isnand_no_libm
=yes
18403 gl_cv_func_isnand_no_libm
=no
18405 rm -f core conftest.err conftest.
$ac_objext \
18406 conftest
$ac_exeext conftest.
$ac_ext
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
18410 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
18412 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
18413 if test $gl_cv_func_isnand_no_libm = yes; then
18415 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
18419 if test $gl_func_isnand_no_libm != yes; then
18428 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
18437 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
18438 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
18439 $as_echo_n "(cached) " >&6
18442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18443 /* end confdefs.h. */
18447 # define isnanl(x) __builtin_isnanl ((long double)(x))
18448 #elif defined isnan
18450 # define isnanl(x) isnan ((long double)(x))
18461 if ac_fn_c_try_link
"$LINENO"; then :
18462 gl_cv_func_isnanl_no_libm
=yes
18464 gl_cv_func_isnanl_no_libm
=no
18466 rm -f core conftest.err conftest.
$ac_objext \
18467 conftest
$ac_exeext conftest.
$ac_ext
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
18471 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
18473 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
18474 if test $gl_func_isnanl_no_libm = yes; then
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
18480 $as_echo_n "checking whether isnanl works... " >&6; }
18481 if ${gl_cv_func_isnanl_works+:} false
; then :
18482 $as_echo_n "(cached) " >&6
18485 if test "$cross_compiling" = yes; then :
18486 gl_cv_func_isnanl_works
="guessing yes"
18488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18492 #include <limits.h>
18496 # define isnanl(x) __builtin_isnanl ((long double)(x))
18497 #elif defined isnan
18499 # define isnanl(x) isnan ((long double)(x))
18502 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
18503 typedef union { unsigned int word[NWORDS]; long double value; }
18504 memory_long_double;
18505 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
18506 runtime type conversion. */
18508 static long double NaNl ()
18511 return zero / zero;
18514 # define NaNl() (0.0L / 0.0L)
18520 if (!isnanl (NaNl ()))
18524 memory_long_double m;
18527 /* The isnanl function should be immune against changes in the sign bit and
18528 in the mantissa bits. The xor operation twiddles a bit that can only be
18529 a sign bit or a mantissa bit (since the exponent never extends to
18532 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
18533 for (i = 0; i < NWORDS; i++)
18535 if (!isnanl (m.value))
18539 #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
18540 /* Representation of an 80-bit 'long double' as an initializer for a sequence
18541 of 'unsigned int' words. */
18542 # ifdef WORDS_BIGENDIAN
18543 # define LDBL80_WORDS(exponent,manthi,mantlo) \
18544 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
18545 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
18546 (unsigned int) (mantlo) << 16 \
18549 # define LDBL80_WORDS(exponent,manthi,mantlo) \
18550 { mantlo, manthi, exponent }
18553 static memory_long_double x =
18554 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
18555 if (!isnanl (x.value))
18559 /* Signalling NaN. */
18560 static memory_long_double x =
18561 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
18562 if (!isnanl (x.value))
18565 /* isnanl should return something even for noncanonical values. */
18566 { /* Pseudo-NaN. */
18567 static memory_long_double x =
18568 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
18569 if (isnanl (x.value) && !isnanl (x.value))
18572 { /* Pseudo-Infinity. */
18573 static memory_long_double x =
18574 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
18575 if (isnanl (x.value) && !isnanl (x.value))
18578 { /* Pseudo-Zero. */
18579 static memory_long_double x =
18580 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
18581 if (isnanl (x.value) && !isnanl (x.value))
18584 { /* Unnormalized number. */
18585 static memory_long_double x =
18586 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
18587 if (isnanl (x.value) && !isnanl (x.value))
18590 { /* Pseudo-Denormal. */
18591 static memory_long_double x =
18592 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
18593 if (isnanl (x.value) && !isnanl (x.value))
18601 if ac_fn_c_try_run
"$LINENO"; then :
18602 gl_cv_func_isnanl_works
=yes
18604 gl_cv_func_isnanl_works
=no
18606 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18607 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
18613 $as_echo "$gl_cv_func_isnanl_works" >&6; }
18615 case "$gl_cv_func_isnanl_works" in
18617 *) gl_func_isnanl_no_libm
=no
;;
18620 if test $gl_func_isnanl_no_libm = yes; then
18622 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
18626 if test $gl_func_isnanl_no_libm != yes; then
18635 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
18641 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
18642 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
18643 $as_echo_n "(cached) " >&6
18646 if test "$cross_compiling" = yes; then :
18648 gl_cv_cc_long_double_expbit0
="unknown"
18651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18652 /* end confdefs.h. */
18655 #include <stddef.h>
18657 #include <string.h>
18659 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
18660 typedef union { long double value; unsigned int word[NWORDS]; }
18661 memory_long_double;
18662 static unsigned int ored_words[NWORDS];
18663 static unsigned int anded_words[NWORDS];
18664 static void add_to_ored_words (long double x)
18666 memory_long_double m;
18668 /* Clear it first, in case
18669 sizeof (long double) < sizeof (memory_long_double). */
18670 memset (&m, 0, sizeof (memory_long_double));
18672 for (i = 0; i < NWORDS; i++)
18674 ored_words[i] |= m.word[i];
18675 anded_words[i] &= m.word[i];
18681 FILE *fp = fopen ("conftest.out", "w");
18684 for (j = 0; j < NWORDS; j++)
18685 anded_words[j] = ~ (unsigned int) 0;
18686 add_to_ored_words (0.25L);
18687 add_to_ored_words (0.5L);
18688 add_to_ored_words (1.0L);
18689 add_to_ored_words (2.0L);
18690 add_to_ored_words (4.0L);
18691 /* Remove bits that are common (e.g. if representation of the first mantissa
18692 bit is explicit). */
18693 for (j = 0; j < NWORDS; j++)
18694 ored_words[j] &= ~anded_words[j];
18695 /* Now find the nonzero word. */
18696 for (j = 0; j < NWORDS; j++)
18697 if (ored_words[j] != 0)
18702 for (i = j + 1; i < NWORDS; i++)
18703 if (ored_words[i] != 0)
18705 fprintf (fp, "unknown");
18706 return (fclose (fp) != 0);
18709 if ((ored_words[j] >> i) & 1)
18711 fprintf (fp, "word %d bit %d", (int) j, (int) i);
18712 return (fclose (fp) != 0);
18715 fprintf (fp, "unknown");
18716 return (fclose (fp) != 0);
18720 if ac_fn_c_try_run
"$LINENO"; then :
18721 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
18723 gl_cv_cc_long_double_expbit0
="unknown"
18725 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18726 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
18733 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
18734 case "$gl_cv_cc_long_double_expbit0" in
18736 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
18737 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
18739 cat >>confdefs.h
<<_ACEOF
18740 #define LDBL_EXPBIT0_WORD $word
18744 cat >>confdefs.h
<<_ACEOF
18745 #define LDBL_EXPBIT0_BIT $bit
18770 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
18781 if test $ac_cv_func_lstat = yes; then
18783 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18792 if test $REPLACE_LSTAT = 1; then
18801 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
18816 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
18823 if test $gl_cv_func_malloc_posix = yes; then
18825 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
18831 if test $REPLACE_MALLOC = 1; then
18840 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
18848 GNULIB_MALLOC_POSIX
=1
18854 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
18879 if test $gl_cv_have_include_next = yes; then
18880 gl_cv_next_math_h
='<'math.h
'>'
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
18883 $as_echo_n "checking absolute name of <math.h>... " >&6; }
18884 if ${gl_cv_next_math_h+:} false
; then :
18885 $as_echo_n "(cached) " >&6
18888 if test $ac_cv_header_math_h = yes; then
18893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h. */
18898 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18899 *) gl_absname_cpp
="$ac_cpp" ;;
18904 gl_dirsep_regex
='[/\\]'
18907 gl_dirsep_regex
='\/'
18910 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18911 gl_header_literal_regex
=`echo 'math.h' \
18912 | sed -e "$gl_make_literal_regex_sed"`
18913 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18914 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18920 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18921 sed -n "$gl_absolute_header_sed"`
18923 gl_header
=$gl_cv_absolute_math_h
18924 gl_cv_next_math_h
='"'$gl_header'"'
18926 gl_cv_next_math_h
='<'math.h
'>'
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
18932 $as_echo "$gl_cv_next_math_h" >&6; }
18934 NEXT_MATH_H
=$gl_cv_next_math_h
18936 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18938 gl_next_as_first_directive
='<'math.h
'>'
18940 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18941 gl_next_as_first_directive
=$gl_cv_next_math_h
18943 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
18950 $as_echo_n "checking whether NAN macro works... " >&6; }
18951 if ${gl_cv_header_math_nan_works+:} false
; then :
18952 $as_echo_n "(cached) " >&6
18954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18960 /* Solaris 10 has a broken definition of NAN. Other platforms
18961 fail to provide NAN, or provide it only in C99 mode; this
18962 test only needs to fail when NAN is provided but wrong. */
18972 if ac_fn_c_try_compile
"$LINENO"; then :
18973 gl_cv_header_math_nan_works
=yes
18975 gl_cv_header_math_nan_works
=no
18977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
18980 $as_echo "$gl_cv_header_math_nan_works" >&6; }
18981 if test $gl_cv_header_math_nan_works = no
; then
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
18985 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
18986 if ${gl_cv_header_math_huge_val_works+:} false
; then :
18987 $as_echo_n "(cached) " >&6
18989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18990 /* end confdefs.h. */
18995 /* Solaris 10 has a broken definition of HUGE_VAL. */
18996 double d = HUGE_VAL;
19002 if ac_fn_c_try_compile
"$LINENO"; then :
19003 gl_cv_header_math_huge_val_works
=yes
19005 gl_cv_header_math_huge_val_works
=no
19007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
19010 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
19011 if test $gl_cv_header_math_huge_val_works = no
; then
19016 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
19017 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19019 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19020 if eval \
${$as_gl_Symbol+:} false
; then :
19021 $as_echo_n "(cached) " >&6
19023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19035 if ac_fn_c_try_compile
"$LINENO"; then :
19036 eval "$as_gl_Symbol=yes"
19038 eval "$as_gl_Symbol=no"
19040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19042 eval ac_res
=\$
$as_gl_Symbol
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19044 $as_echo "$ac_res" >&6; }
19045 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
19046 cat >>confdefs.h
<<_ACEOF
19047 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19050 eval ac_cv_have_decl_
$gl_func=yes
19077 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19082 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19083 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
19084 $as_echo_n "(cached) " >&6
19088 # Guess no on AIX and OSF/1.
19089 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
19090 # Guess yes otherwise.
19091 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
19093 if test $LOCALE_JA != none
; then
19094 if test "$cross_compiling" = yes; then :
19097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19098 /* end confdefs.h. */
19100 #include <locale.h>
19101 #include <string.h>
19102 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19104 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19105 included before <wchar.h>. */
19106 #include <stddef.h>
19112 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19114 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19118 memset (&state, '\0', sizeof (mbstate_t));
19119 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19120 if (mbsinit (&state))
19126 if ac_fn_c_try_run
"$LINENO"; then :
19127 gl_cv_func_mbrtowc_incomplete_state
=yes
19129 gl_cv_func_mbrtowc_incomplete_state
=no
19131 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19132 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19139 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19145 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19146 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
19147 $as_echo_n "(cached) " >&6
19151 # Guess no on Solaris 8.
19152 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
19153 # Guess yes otherwise.
19154 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
19156 if test $LOCALE_ZH_CN != none
; then
19157 if test "$cross_compiling" = yes; then :
19160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19163 #include <locale.h>
19164 #include <stdlib.h>
19165 #include <string.h>
19166 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19168 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19169 included before <wchar.h>. */
19170 #include <stddef.h>
19176 /* This fails on Solaris 8:
19177 mbrtowc returns 2, and sets wc to 0x00F0.
19178 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19179 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19181 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19185 memset (&state, '\0', sizeof (mbstate_t));
19186 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19187 && mbtowc (&wc, input + 3, 6) == 4)
19193 if ac_fn_c_try_run
"$LINENO"; then :
19194 gl_cv_func_mbrtowc_sanitycheck
=yes
19196 gl_cv_func_mbrtowc_sanitycheck
=no
19198 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19199 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19206 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19208 REPLACE_MBSTATE_T
=0
19209 case "$gl_cv_func_mbrtowc_incomplete_state" in
19211 *) REPLACE_MBSTATE_T
=1 ;;
19213 case "$gl_cv_func_mbrtowc_sanitycheck" in
19215 *) REPLACE_MBSTATE_T
=1 ;;
19218 REPLACE_MBSTATE_T
=1
19229 if test $ac_cv_func_mbrtowc = no
; then
19231 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
19232 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19234 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19235 included before <wchar.h>. */
19236 #include <stddef.h>
19242 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
19248 cat >>confdefs.h
<<_ACEOF
19249 #define HAVE_DECL_MBRTOWC $ac_have_decl
19252 if test $ac_cv_have_decl_mbrtowc = yes; then
19256 if test $REPLACE_MBSTATE_T = 1; then
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
19263 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
19264 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
19265 $as_echo_n "(cached) " >&6
19269 # Guess no on Solaris.
19270 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
19271 # Guess yes otherwise.
19272 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
19274 if test $LOCALE_FR_UTF8 != none
; then
19275 if test "$cross_compiling" = yes; then :
19278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19281 #include <locale.h>
19282 #include <stdlib.h>
19283 #include <string.h>
19284 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19286 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19287 included before <wchar.h>. */
19288 #include <stddef.h>
19296 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19298 char input[] = "\303\237er";
19303 memset (&state, '\0', sizeof (mbstate_t));
19304 wc = (wchar_t) 0xBADFACE;
19305 ret = mbrtowc (&wc, input, 5, &state);
19308 if (!mbsinit (&state))
19311 memset (&state, '\0', sizeof (mbstate_t));
19312 ret = mbrtowc (NULL, input, 5, &state);
19313 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
19315 if (!mbsinit (&state))
19321 if ac_fn_c_try_run
"$LINENO"; then :
19322 gl_cv_func_mbrtowc_null_arg1
=yes
19324 gl_cv_func_mbrtowc_null_arg1
=no
19326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19327 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
19334 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
19340 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
19341 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
19342 $as_echo_n "(cached) " >&6
19346 # Guess no on OSF/1.
19347 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
19348 # Guess yes otherwise.
19349 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
19351 if test $LOCALE_FR_UTF8 != none
; then
19352 if test "$cross_compiling" = yes; then :
19355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19358 #include <locale.h>
19359 #include <string.h>
19360 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19362 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19363 included before <wchar.h>. */
19364 #include <stddef.h>
19370 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19376 memset (&state, '\0', sizeof (mbstate_t));
19377 wc = (wchar_t) 0xBADFACE;
19378 mbrtowc (&wc, NULL, 5, &state);
19379 /* Check that wc was not modified. */
19380 if (wc != (wchar_t) 0xBADFACE)
19386 if ac_fn_c_try_run
"$LINENO"; then :
19387 gl_cv_func_mbrtowc_null_arg2
=yes
19389 gl_cv_func_mbrtowc_null_arg2
=no
19391 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19392 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
19399 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
19407 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
19408 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
19409 $as_echo_n "(cached) " >&6
19413 # Guess no on HP-UX, Solaris, native Windows.
19414 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
19415 # Guess yes otherwise.
19416 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
19418 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
19419 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
19420 if test "$cross_compiling" = yes; then :
19423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h. */
19426 #include <locale.h>
19427 #include <string.h>
19428 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19430 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19431 included before <wchar.h>. */
19432 #include <stddef.h>
19439 int found_some_locale = 0;
19440 /* This fails on Solaris. */
19441 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19443 char input[] = "B\303\274\303\237er"; /* "Büßer" */
19447 memset (&state, '\0', sizeof (mbstate_t));
19448 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19451 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
19454 found_some_locale = 1;
19456 /* This fails on HP-UX 11.11. */
19457 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19459 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19463 memset (&state, '\0', sizeof (mbstate_t));
19464 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19467 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
19470 found_some_locale = 1;
19472 /* This fails on native Windows. */
19473 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
19475 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
19479 memset (&state, '\0', sizeof (mbstate_t));
19480 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19483 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19486 found_some_locale = 1;
19488 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
19490 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
19494 memset (&state, '\0', sizeof (mbstate_t));
19495 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19498 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19501 found_some_locale = 1;
19503 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
19505 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
19509 memset (&state, '\0', sizeof (mbstate_t));
19510 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19513 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19516 found_some_locale = 1;
19518 return (found_some_locale ? result : 77);
19521 if ac_fn_c_try_run
"$LINENO"; then :
19522 gl_cv_func_mbrtowc_retval
=yes
19524 if test $?
!= 77; then
19525 gl_cv_func_mbrtowc_retval
=no
19529 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19530 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
19537 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
19543 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
19544 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
19545 $as_echo_n "(cached) " >&6
19549 # Guess no on Solaris 8 and 9.
19550 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
19551 # Guess yes otherwise.
19552 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
19554 if test $LOCALE_ZH_CN != none
; then
19555 if test "$cross_compiling" = yes; then :
19558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19559 /* end confdefs.h. */
19561 #include <locale.h>
19562 #include <string.h>
19563 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19565 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19566 included before <wchar.h>. */
19567 #include <stddef.h>
19573 /* This fails on Solaris 8 and 9. */
19574 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19579 memset (&state, '\0', sizeof (mbstate_t));
19580 if (mbrtowc (&wc, "", 1, &state) != 0)
19586 if ac_fn_c_try_run
"$LINENO"; then :
19587 gl_cv_func_mbrtowc_nul_retval
=yes
19589 gl_cv_func_mbrtowc_nul_retval
=no
19591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19592 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
19599 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
19604 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
19605 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
19606 $as_echo_n "(cached) " >&6
19610 # Guess no on AIX and glibc systems.
19612 gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
19613 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
19615 if test "$cross_compiling" = yes; then :
19618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19623 static mbstate_t mbs;
19627 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
19630 if ac_fn_c_try_run
"$LINENO"; then :
19631 gl_cv_func_mbrtowc_empty_input
=yes
19633 gl_cv_func_mbrtowc_empty_input
=no
19635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19636 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
19642 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
19646 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
19647 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
19648 $as_echo_n "(cached) " >&6
19651 gl_cv_C_locale_sans_EILSEQ
="guessing no"
19653 if test "$cross_compiling" = yes; then :
19656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19657 /* end confdefs.h. */
19658 #include <limits.h>
19659 #include <locale.h>
19667 char *locale = setlocale (LC_ALL, "C");
19670 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
19674 mbstate_t mbs = { 0, };
19675 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
19685 if ac_fn_c_try_run
"$LINENO"; then :
19686 gl_cv_C_locale_sans_EILSEQ
=yes
19688 gl_cv_C_locale_sans_EILSEQ
=no
19690 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19691 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
19696 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
19698 case "$gl_cv_func_mbrtowc_null_arg1" in
19701 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
19706 case "$gl_cv_func_mbrtowc_null_arg2" in
19709 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
19714 case "$gl_cv_func_mbrtowc_retval" in
19717 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
19722 case "$gl_cv_func_mbrtowc_nul_retval" in
19725 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
19730 case "$gl_cv_func_mbrtowc_empty_input" in
19733 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
19738 case $gl_cv_C_locale_sans_EILSEQ in
19741 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
19749 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
19758 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
19775 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
19802 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19807 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19808 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
19809 $as_echo_n "(cached) " >&6
19813 # Guess no on AIX and OSF/1.
19814 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
19815 # Guess yes otherwise.
19816 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
19818 if test $LOCALE_JA != none
; then
19819 if test "$cross_compiling" = yes; then :
19822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h. */
19825 #include <locale.h>
19826 #include <string.h>
19827 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19829 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19830 included before <wchar.h>. */
19831 #include <stddef.h>
19837 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19839 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19843 memset (&state, '\0', sizeof (mbstate_t));
19844 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19845 if (mbsinit (&state))
19851 if ac_fn_c_try_run
"$LINENO"; then :
19852 gl_cv_func_mbrtowc_incomplete_state
=yes
19854 gl_cv_func_mbrtowc_incomplete_state
=no
19856 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19857 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19864 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19870 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19871 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
19872 $as_echo_n "(cached) " >&6
19876 # Guess no on Solaris 8.
19877 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
19878 # Guess yes otherwise.
19879 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
19881 if test $LOCALE_ZH_CN != none
; then
19882 if test "$cross_compiling" = yes; then :
19885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19886 /* end confdefs.h. */
19888 #include <locale.h>
19889 #include <stdlib.h>
19890 #include <string.h>
19891 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19893 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19894 included before <wchar.h>. */
19895 #include <stddef.h>
19901 /* This fails on Solaris 8:
19902 mbrtowc returns 2, and sets wc to 0x00F0.
19903 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19904 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19906 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19910 memset (&state, '\0', sizeof (mbstate_t));
19911 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19912 && mbtowc (&wc, input + 3, 6) == 4)
19918 if ac_fn_c_try_run
"$LINENO"; then :
19919 gl_cv_func_mbrtowc_sanitycheck
=yes
19921 gl_cv_func_mbrtowc_sanitycheck
=no
19923 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19924 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19931 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19933 REPLACE_MBSTATE_T
=0
19934 case "$gl_cv_func_mbrtowc_incomplete_state" in
19936 *) REPLACE_MBSTATE_T
=1 ;;
19938 case "$gl_cv_func_mbrtowc_sanitycheck" in
19940 *) REPLACE_MBSTATE_T
=1 ;;
19943 REPLACE_MBSTATE_T
=1
19954 if test $ac_cv_func_mbsinit = no
; then
19956 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
19957 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19959 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19960 included before <wchar.h>. */
19961 #include <stddef.h>
19967 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
19973 cat >>confdefs.h
<<_ACEOF
19974 #define HAVE_DECL_MBSINIT $ac_have_decl
19977 if test $ac_cv_have_decl_mbsinit = yes; then
19981 if test $REPLACE_MBSTATE_T = 1; then
19985 mingw
*) REPLACE_MBSINIT
=1 ;;
19990 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
19999 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
20016 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
20042 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20047 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20048 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20049 $as_echo_n "(cached) " >&6
20053 # Guess no on AIX and OSF/1.
20054 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20055 # Guess yes otherwise.
20056 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20058 if test $LOCALE_JA != none
; then
20059 if test "$cross_compiling" = yes; then :
20062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20063 /* end confdefs.h. */
20065 #include <locale.h>
20066 #include <string.h>
20067 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20069 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20070 included before <wchar.h>. */
20071 #include <stddef.h>
20077 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20079 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20083 memset (&state, '\0', sizeof (mbstate_t));
20084 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20085 if (mbsinit (&state))
20091 if ac_fn_c_try_run
"$LINENO"; then :
20092 gl_cv_func_mbrtowc_incomplete_state
=yes
20094 gl_cv_func_mbrtowc_incomplete_state
=no
20096 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20097 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20104 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20110 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20111 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
20112 $as_echo_n "(cached) " >&6
20116 # Guess no on Solaris 8.
20117 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
20118 # Guess yes otherwise.
20119 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
20121 if test $LOCALE_ZH_CN != none
; then
20122 if test "$cross_compiling" = yes; then :
20125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20126 /* end confdefs.h. */
20128 #include <locale.h>
20129 #include <stdlib.h>
20130 #include <string.h>
20131 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20133 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20134 included before <wchar.h>. */
20135 #include <stddef.h>
20141 /* This fails on Solaris 8:
20142 mbrtowc returns 2, and sets wc to 0x00F0.
20143 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20144 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20146 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20150 memset (&state, '\0', sizeof (mbstate_t));
20151 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20152 && mbtowc (&wc, input + 3, 6) == 4)
20158 if ac_fn_c_try_run
"$LINENO"; then :
20159 gl_cv_func_mbrtowc_sanitycheck
=yes
20161 gl_cv_func_mbrtowc_sanitycheck
=no
20163 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20164 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20171 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20173 REPLACE_MBSTATE_T
=0
20174 case "$gl_cv_func_mbrtowc_incomplete_state" in
20176 *) REPLACE_MBSTATE_T
=1 ;;
20178 case "$gl_cv_func_mbrtowc_sanitycheck" in
20180 *) REPLACE_MBSTATE_T
=1 ;;
20183 REPLACE_MBSTATE_T
=1
20194 if test $ac_cv_func_mbsrtowcs = no
; then
20196 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
20197 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20199 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20200 included before <wchar.h>. */
20201 #include <stddef.h>
20207 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
20213 cat >>confdefs.h
<<_ACEOF
20214 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
20217 if test $ac_cv_have_decl_mbsrtowcs = yes; then
20218 REPLACE_MBSRTOWCS
=1
20221 if test $REPLACE_MBSTATE_T = 1; then
20222 REPLACE_MBSRTOWCS
=1
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
20231 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
20232 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
20233 $as_echo_n "(cached) " >&6
20237 # Guess no on HP-UX, Solaris, mingw.
20238 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
20239 # Guess yes otherwise.
20240 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
20242 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
20243 if test "$cross_compiling" = yes; then :
20246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20247 /* end confdefs.h. */
20249 #include <locale.h>
20250 #include <string.h>
20251 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20253 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20254 included before <wchar.h>. */
20255 #include <stddef.h>
20262 /* Test whether the function supports a NULL destination argument.
20263 This fails on native Windows. */
20264 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
20266 const char input[] = "\337er";
20267 const char *src = input;
20270 memset (&state, '\0', sizeof (mbstate_t));
20271 if (mbsrtowcs (NULL, &src, 1, &state) != 3
20275 /* Test whether the function works when started with a conversion state
20276 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
20277 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20279 const char input[] = "B\303\274\303\237er";
20282 memset (&state, '\0', sizeof (mbstate_t));
20283 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
20284 if (!mbsinit (&state))
20286 const char *src = input + 2;
20287 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
20291 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20293 const char input[] = "<\306\374\313\334\270\354>";
20296 memset (&state, '\0', sizeof (mbstate_t));
20297 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
20298 if (!mbsinit (&state))
20300 const char *src = input + 4;
20301 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
20305 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20307 const char input[] = "B\250\271\201\060\211\070er";
20310 memset (&state, '\0', sizeof (mbstate_t));
20311 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
20312 if (!mbsinit (&state))
20314 const char *src = input + 2;
20315 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
20322 if ac_fn_c_try_run
"$LINENO"; then :
20323 gl_cv_func_mbsrtowcs_works
=yes
20325 gl_cv_func_mbsrtowcs_works
=no
20327 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20328 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
20335 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
20337 case "$gl_cv_func_mbsrtowcs_works" in
20339 *) REPLACE_MBSRTOWCS
=1 ;;
20344 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
20353 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
20363 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
20380 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
20385 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
20394 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
20397 for ac_header
in bp-sym.h
20399 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
20400 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
20401 cat >>confdefs.h
<<_ACEOF
20402 #define HAVE_BP_SYM_H 1
20422 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
20428 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
20430 $as_echo_n "checking whether memmem works in linear time... " >&6; }
20431 if ${gl_cv_func_memmem_works_fast+:} false
; then :
20432 $as_echo_n "(cached) " >&6
20434 if test "$cross_compiling" = yes; then :
20435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20436 /* end confdefs.h. */
20438 #include <features.h>
20439 #ifdef __GNU_LIBRARY__
20440 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
20441 && !defined __UCLIBC__
20446 #include <cygwin/version.h>
20447 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
20453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20454 $EGREP "Lucky user" >/dev
/null
2>&1; then :
20455 gl_cv_func_memmem_works_fast
="guessing yes"
20457 gl_cv_func_memmem_works_fast
="guessing no"
20463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20464 /* end confdefs.h. */
20466 #include <signal.h> /* for signal */
20467 #include <string.h> /* for memmem */
20468 #include <stdlib.h> /* for malloc */
20469 #include <unistd.h> /* for alarm */
20470 static void quit (int sig) { _exit (sig + 128); }
20477 size_t m = 1000000;
20478 char *haystack = (char *) malloc (2 * m + 1);
20479 char *needle = (char *) malloc (m + 1);
20480 /* Failure to compile this test due to missing alarm is okay,
20481 since all such platforms (mingw) also lack memmem. */
20482 signal (SIGALRM, quit);
20484 /* Check for quadratic performance. */
20485 if (haystack && needle)
20487 memset (haystack, 'A', 2 * m);
20488 haystack[2 * m] = 'B';
20489 memset (needle, 'A', m);
20491 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
20500 if ac_fn_c_try_run
"$LINENO"; then :
20501 gl_cv_func_memmem_works_fast
=yes
20503 gl_cv_func_memmem_works_fast
=no
20505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
20512 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
20513 case "$gl_cv_func_memmem_works_fast" in
20521 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
20530 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
20537 for ac_func
in memmem
20539 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
20540 if test "x$ac_cv_func_memmem" = xyes
; then :
20541 cat >>confdefs.h
<<_ACEOF
20542 #define HAVE_MEMMEM 1
20548 if test $ac_cv_func_memmem = yes; then
20560 if test $ac_cv_have_decl_memmem = no
; then
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
20564 $as_echo_n "checking whether memmem works... " >&6; }
20565 if ${gl_cv_func_memmem_works_always+:} false
; then :
20566 $as_echo_n "(cached) " >&6
20568 if test "$cross_compiling" = yes; then :
20569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20570 /* end confdefs.h. */
20572 #ifdef __GNU_LIBRARY__
20573 #include <features.h>
20574 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
20575 || __GLIBC_MINOR__ > 12)) \
20576 || (__GLIBC__ > 2)) \
20577 || defined __UCLIBC__
20580 #elif defined __CYGWIN__
20581 #include <cygwin/version.h>
20582 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
20590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20591 $EGREP "Lucky user" >/dev
/null
2>&1; then :
20592 gl_cv_func_memmem_works_always
="guessing yes"
20594 gl_cv_func_memmem_works_always
="guessing no"
20600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20601 /* end confdefs.h. */
20603 #include <string.h> /* for memmem */
20604 #define P "_EF_BF_BD"
20605 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
20606 #define NEEDLE P P P P P
20613 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
20615 /* Check for empty needle behavior. */
20617 const char *haystack = "AAA";
20618 if (memmem (haystack, 3, NULL, 0) != haystack)
20627 if ac_fn_c_try_run
"$LINENO"; then :
20628 gl_cv_func_memmem_works_always
=yes
20630 gl_cv_func_memmem_works_always
=no
20632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
20639 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
20640 case "$gl_cv_func_memmem_works_always" in
20649 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
20658 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
20672 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
20682 for ac_func
in mempcpy
20684 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
20685 if test "x$ac_cv_func_mempcpy" = xyes
; then :
20686 cat >>confdefs.h
<<_ACEOF
20687 #define HAVE_MEMPCPY 1
20693 if test $ac_cv_func_mempcpy = no
; then
20697 if test $HAVE_MEMPCPY = 0; then
20706 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
20723 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
20738 if test $ac_cv_have_decl_memrchr = no
; then
20739 HAVE_DECL_MEMRCHR
=0
20742 for ac_func
in memrchr
20744 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
20745 if test "x$ac_cv_func_memrchr" = xyes
; then :
20746 cat >>confdefs.h
<<_ACEOF
20747 #define HAVE_MEMRCHR 1
20754 if test $ac_cv_func_memrchr = no
; then
20763 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
20778 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
20792 if test $ac_cv_func_mkstemp = yes; then
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
20794 $as_echo_n "checking for working mkstemp... " >&6; }
20795 if ${gl_cv_func_working_mkstemp+:} false
; then :
20796 $as_echo_n "(cached) " >&6
20799 mkdir conftest.mkstemp
20800 if test "$cross_compiling" = yes; then :
20802 # Guess yes on glibc systems.
20803 *-gnu*) gl_cv_func_working_mkstemp
="guessing yes" ;;
20804 # If we don't know, assume the worst.
20805 *) gl_cv_func_working_mkstemp
="guessing no" ;;
20809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20810 /* end confdefs.h. */
20811 $ac_includes_default
20817 off_t large = (off_t) 4294967295u;
20819 large = 2147483647;
20821 for (i = 0; i < 70; i++)
20823 char templ[] = "conftest.mkstemp/coXXXXXX";
20824 int (*mkstemp_function) (char *) = mkstemp;
20825 int fd = mkstemp_function (templ);
20831 if (lseek (fd, large, SEEK_SET) != large)
20833 if (fstat (fd, &st) < 0)
20835 else if (st.st_mode & 0077)
20846 if ac_fn_c_try_run
"$LINENO"; then :
20847 gl_cv_func_working_mkstemp
=yes
20849 gl_cv_func_working_mkstemp
=no
20851 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20852 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20855 rm -rf conftest.mkstemp
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
20859 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
20860 case "$gl_cv_func_working_mkstemp" in
20870 if test $HAVE_MKSTEMP = 0 ||
test $REPLACE_MKSTEMP = 1; then
20879 gl_LIBOBJS
="$gl_LIBOBJS mkstemp.$ac_objext"
20895 $as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
20900 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20909 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
20913 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20922 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
20941 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
20942 if ${gl_cv_func_open_slash+:} false
; then :
20943 $as_echo_n "(cached) " >&6
20945 # Assume that if we have lstat, we can also check symlinks.
20946 if test $ac_cv_func_lstat = yes; then
20948 ln -s conftest.tmp conftest.lnk
20950 if test "$cross_compiling" = yes; then :
20953 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
20954 gl_cv_func_open_slash
="guessing no" ;;
20956 gl_cv_func_open_slash
="guessing yes" ;;
20960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20961 /* end confdefs.h. */
20965 # include <unistd.h>
20971 if (open ("conftest.lnk/", O_RDONLY) != -1)
20974 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
20979 if ac_fn_c_try_run
"$LINENO"; then :
20980 gl_cv_func_open_slash
=yes
20982 gl_cv_func_open_slash
=no
20984 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20985 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20988 rm -f conftest.sl conftest.tmp conftest.lnk
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
20992 $as_echo "$gl_cv_func_open_slash" >&6; }
20993 case "$gl_cv_func_open_slash" in
20996 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
21004 if test $REPLACE_OPEN = 0; then
21014 if test $ac_cv_func_fchdir = no
; then
21018 if test $HAVE_FCHDIR = 0; then
21025 if test $REPLACE_OPEN = 1; then
21034 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
21052 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
21067 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
21071 # Solaris 9 has *at functions, but uniformly mishandles trailing
21072 # slash in all of them.
21080 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
21089 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
21098 cat >>confdefs.h
<<_ACEOF
21099 #define GNULIB_OPENAT 1
21113 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
21120 for ac_func
in opendir
21122 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
21123 if test "x$ac_cv_func_opendir" = xyes
; then :
21124 cat >>confdefs.h
<<_ACEOF
21125 #define HAVE_OPENDIR 1
21131 if test $ac_cv_func_opendir = no
; then
21144 if test $ac_cv_func_fchdir = no
; then
21148 if test $HAVE_FCHDIR = 0; then
21149 if test $HAVE_OPENDIR = 1; then
21154 case $host_os,$HAVE_OPENDIR in
21156 REPLACE_OPENDIR
=1;;
21159 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
21168 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
21182 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
21199 for ac_func
in rawmemchr
21201 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
21202 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
21203 cat >>confdefs.h
<<_ACEOF
21204 #define HAVE_RAWMEMCHR 1
21210 if test $ac_cv_func_rawmemchr = no
; then
21214 if test $HAVE_RAWMEMCHR = 0; then
21223 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
21238 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
21245 for ac_func
in readdir
21247 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
21248 if test "x$ac_cv_func_readdir" = xyes
; then :
21249 cat >>confdefs.h
<<_ACEOF
21250 #define HAVE_READDIR 1
21256 if test $ac_cv_func_readdir = no
; then
21260 if test $HAVE_READDIR = 0; then
21269 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
21283 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
21296 if test $ac_cv_func_readlink = no
; then
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21300 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21301 if ${gl_cv_decl_readlink_works+:} false
; then :
21302 $as_echo_n "(cached) " >&6
21304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21305 /* end confdefs.h. */
21306 #include <unistd.h>
21307 /* Cause compilation failure if original declaration has wrong type. */
21308 ssize_t readlink (const char *, char *, size_t);
21317 if ac_fn_c_try_compile
"$LINENO"; then :
21318 gl_cv_decl_readlink_works
=yes
21320 gl_cv_decl_readlink_works
=no
21322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21325 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21327 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21328 if ${gl_cv_func_readlink_works+:} false
; then :
21329 $as_echo_n "(cached) " >&6
21331 # We have readlink, so assume ln -s works.
21332 ln -s conftest.no-such conftest.link
21333 ln -s conftest.link conftest.lnk2
21334 if test "$cross_compiling" = yes; then :
21336 # Guess yes on glibc systems.
21337 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
21338 # If we don't know, assume the worst.
21339 *) gl_cv_func_readlink_works
="guessing no" ;;
21343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21344 /* end confdefs.h. */
21345 #include <unistd.h>
21351 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21356 if ac_fn_c_try_run
"$LINENO"; then :
21357 gl_cv_func_readlink_works
=yes
21359 gl_cv_func_readlink_works
=no
21361 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21362 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21365 rm -f conftest.link conftest.lnk2
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21368 $as_echo "$gl_cv_func_readlink_works" >&6; }
21369 case "$gl_cv_func_readlink_works" in
21371 if test "$gl_cv_decl_readlink_works" != yes; then
21377 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21384 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21393 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
21410 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
21417 if test $gl_cv_func_malloc_posix = yes; then
21419 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
21425 if test $REPLACE_REALLOC = 1; then
21434 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
21442 GNULIB_REALLOC_POSIX
=1
21448 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
21464 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
21465 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
21466 $as_echo_n "(cached) " >&6
21468 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
21469 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
21470 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
21471 # Assume that if we have lstat, we can also check symlinks.
21472 if test $ac_cv_func_lstat = yes; then
21473 ln -s conftest.f conftest.lnk
21475 if test "$cross_compiling" = yes; then :
21477 # Guess yes on glibc systems.
21478 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
21479 # If we don't know, assume the worst.
21480 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
21484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21487 # include <stdio.h>
21488 # include <stdlib.h>
21494 if (rename ("conftest.f1", "conftest.f2/") == 0)
21496 if (rename ("conftest.d1", "conftest.d2/") != 0)
21499 if (rename ("conftest.f", "conftest.lnk/") == 0)
21508 if ac_fn_c_try_run
"$LINENO"; then :
21509 gl_cv_func_rename_slash_dst_works
=yes
21511 gl_cv_func_rename_slash_dst_works
=no
21513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21517 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
21521 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
21522 case "$gl_cv_func_rename_slash_dst_works" in
21527 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
21533 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
21534 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
21535 $as_echo_n "(cached) " >&6
21537 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
21538 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
21539 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
21540 # Assume that if we have lstat, we can also check symlinks.
21541 if test $ac_cv_func_lstat = yes; then
21542 ln -s conftest.f conftest.lnk
21544 if test "$cross_compiling" = yes; then :
21546 # Guess yes on glibc systems.
21547 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
21548 # If we don't know, assume the worst.
21549 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
21553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21554 /* end confdefs.h. */
21556 # include <stdio.h>
21557 # include <stdlib.h>
21563 if (rename ("conftest.f1/", "conftest.d3") == 0)
21565 if (rename ("conftest.d1/", "conftest.d2") != 0)
21568 if (rename ("conftest.lnk/", "conftest.f") == 0)
21577 if ac_fn_c_try_run
"$LINENO"; then :
21578 gl_cv_func_rename_slash_src_works
=yes
21580 gl_cv_func_rename_slash_src_works
=no
21582 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21583 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21586 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
21590 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
21591 case "$gl_cv_func_rename_slash_src_works" in
21596 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
21609 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
21610 if ${gl_cv_func_rename_link_works+:} false
; then :
21611 $as_echo_n "(cached) " >&6
21613 if test $ac_cv_func_link = yes; then
21614 rm -rf conftest.f conftest.f1
21615 if touch conftest.f
&& ln conftest.f conftest.f1
&&
21616 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
21617 if test "$cross_compiling" = yes; then :
21619 # Guess yes on glibc systems.
21620 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
21621 # If we don't know, assume the worst.
21622 *) gl_cv_func_rename_link_works
="guessing no" ;;
21626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21627 /* end confdefs.h. */
21629 # include <stdio.h>
21630 # include <stdlib.h>
21631 # include <unistd.h>
21637 if (rename ("conftest.f", "conftest.f1"))
21639 if (unlink ("conftest.f1"))
21641 if (rename ("conftest.f", "conftest.f"))
21643 if (rename ("conftest.f1", "conftest.f1") == 0)
21651 if ac_fn_c_try_run
"$LINENO"; then :
21652 gl_cv_func_rename_link_works
=yes
21654 gl_cv_func_rename_link_works
=no
21656 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21657 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21661 gl_cv_func_rename_link_works
="guessing no"
21663 rm -rf conftest.f conftest.f1
21665 gl_cv_func_rename_link_works
=yes
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
21670 $as_echo "$gl_cv_func_rename_link_works" >&6; }
21671 case "$gl_cv_func_rename_link_works" in
21676 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
21682 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
21683 if ${gl_cv_func_rename_dest_works+:} false
; then :
21684 $as_echo_n "(cached) " >&6
21686 rm -rf conftest.f conftest.d1 conftest.d2
21687 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
21688 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
21689 if test "$cross_compiling" = yes; then :
21691 # Guess yes on glibc systems.
21692 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
21693 # If we don't know, assume the worst.
21694 *) gl_cv_func_rename_dest_works
="guessing no" ;;
21698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21699 /* end confdefs.h. */
21701 # include <stdio.h>
21702 # include <stdlib.h>
21708 if (rename ("conftest.d1", "conftest.d2") != 0)
21710 if (rename ("conftest.d2", "conftest.f") == 0)
21718 if ac_fn_c_try_run
"$LINENO"; then :
21719 gl_cv_func_rename_dest_works
=yes
21721 gl_cv_func_rename_dest_works
=no
21723 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21724 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21727 rm -rf conftest.f conftest.d1 conftest.d2
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
21731 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
21732 case "$gl_cv_func_rename_dest_works" in
21737 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
21742 if test $REPLACE_RENAME = 1; then
21751 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
21765 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
21772 for ac_func
in rewinddir
21774 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
21775 if test "x$ac_cv_func_rewinddir" = xyes
; then :
21776 cat >>confdefs.h
<<_ACEOF
21777 #define HAVE_REWINDDIR 1
21783 if test $ac_cv_func_rewinddir = no
; then
21787 if test $HAVE_REWINDDIR = 0; then
21796 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
21810 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
21824 $as_echo_n "checking whether rmdir works... " >&6; }
21825 if ${gl_cv_func_rmdir_works+:} false
; then :
21826 $as_echo_n "(cached) " >&6
21829 touch conftest.
file
21830 if test "$cross_compiling" = yes; then :
21832 # Guess yes on glibc systems.
21833 *-gnu*) gl_cv_func_rmdir_works
="guessing yes" ;;
21834 # If we don't know, assume the worst.
21835 *) gl_cv_func_rmdir_works
="guessing no" ;;
21839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21840 /* end confdefs.h. */
21844 # include <unistd.h>
21845 #else /* on Windows with MSVC */
21846 # include <direct.h>
21853 if (!rmdir ("conftest.file/"))
21855 else if (errno != ENOTDIR)
21857 if (!rmdir ("conftest.dir/./"))
21865 if ac_fn_c_try_run
"$LINENO"; then :
21866 gl_cv_func_rmdir_works
=yes
21868 gl_cv_func_rmdir_works
=no
21870 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21871 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21874 rm -rf conftest.dir conftest.
file
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
21877 $as_echo "$gl_cv_func_rmdir_works" >&6; }
21878 case "$gl_cv_func_rmdir_works" in
21885 if test $REPLACE_RMDIR = 1; then
21894 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
21908 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
21932 if test $ac_cv_func_secure_getenv = no
; then
21933 HAVE_SECURE_GETENV
=0
21936 if test $HAVE_SECURE_GETENV = 0; then
21945 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
21948 for ac_func
in __secure_getenv
21950 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
21951 if test "x$ac_cv_func___secure_getenv" = xyes
; then :
21952 cat >>confdefs.h
<<_ACEOF
21953 #define HAVE___SECURE_GETENV 1
21959 if test $ac_cv_func___secure_getenv = no
; then
21960 for ac_func
in issetugid
21962 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
21963 if test "x$ac_cv_func_issetugid" = xyes
; then :
21964 cat >>confdefs.h
<<_ACEOF
21965 #define HAVE_ISSETUGID 1
21995 GNULIB_SECURE_GETENV
=1
22001 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
22007 if test $ac_cv_func_setenv = no
; then
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
22011 $as_echo_n "checking whether setenv validates arguments... " >&6; }
22012 if ${gl_cv_func_setenv_works+:} false
; then :
22013 $as_echo_n "(cached) " >&6
22015 if test "$cross_compiling" = yes; then :
22017 # Guess yes on glibc systems.
22018 *-gnu*) gl_cv_func_setenv_works
="guessing yes" ;;
22019 # If we don't know, assume the worst.
22020 *) gl_cv_func_setenv_works
="guessing no" ;;
22024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22025 /* end confdefs.h. */
22027 #include <stdlib.h>
22029 #include <string.h>
22037 if (setenv ("", "", 0) != -1)
22039 else if (errno != EINVAL)
22043 if (setenv ("a", "=", 1) != 0)
22045 else if (strcmp (getenv ("a"), "=") != 0)
22054 if ac_fn_c_try_run
"$LINENO"; then :
22055 gl_cv_func_setenv_works
=yes
22057 gl_cv_func_setenv_works
=no
22059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
22065 $as_echo "$gl_cv_func_setenv_works" >&6; }
22066 case "$gl_cv_func_setenv_works" in
22074 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
22083 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
22097 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
22112 if test $gl_cv_have_include_next = yes; then
22113 gl_cv_next_signal_h
='<'signal.h
'>'
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22116 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22117 if ${gl_cv_next_signal_h+:} false
; then :
22118 $as_echo_n "(cached) " >&6
22123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22125 #include <signal.h>
22128 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22129 *) gl_absname_cpp
="$ac_cpp" ;;
22134 gl_dirsep_regex
='[/\\]'
22137 gl_dirsep_regex
='\/'
22140 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22141 gl_header_literal_regex
=`echo 'signal.h' \
22142 | sed -e "$gl_make_literal_regex_sed"`
22143 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22144 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22150 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22151 sed -n "$gl_absolute_header_sed"`
22153 gl_header
=$gl_cv_absolute_signal_h
22154 gl_cv_next_signal_h
='"'$gl_header'"'
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22159 $as_echo "$gl_cv_next_signal_h" >&6; }
22161 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
22163 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22164 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22165 gl_next_as_first_directive
='<'signal.h
'>'
22167 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22168 gl_next_as_first_directive
=$gl_cv_next_signal_h
22170 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
22176 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22177 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22178 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22179 #include <signal.h>
22182 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
22185 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
22194 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22195 #include <signal.h>
22198 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
22201 HAVE_SIGHANDLER_T
=0
22206 for gl_func
in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask
; do
22207 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22209 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22210 if eval \
${$as_gl_Symbol+:} false
; then :
22211 $as_echo_n "(cached) " >&6
22213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22214 /* end confdefs.h. */
22215 #include <signal.h>
22226 if ac_fn_c_try_compile
"$LINENO"; then :
22227 eval "$as_gl_Symbol=yes"
22229 eval "$as_gl_Symbol=no"
22231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22233 eval ac_res
=\$
$as_gl_Symbol
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22235 $as_echo "$ac_res" >&6; }
22236 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
22237 cat >>confdefs.h
<<_ACEOF
22238 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22241 eval ac_cv_have_decl_
$gl_func=yes
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22248 $as_echo_n "checking for ssize_t... " >&6; }
22249 if ${gt_cv_ssize_t+:} false
; then :
22250 $as_echo_n "(cached) " >&6
22252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h. */
22254 #include <sys/types.h>
22258 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22264 if ac_fn_c_try_compile
"$LINENO"; then :
22269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22272 $as_echo "$gt_cv_ssize_t" >&6; }
22273 if test $gt_cv_ssize_t = no
; then
22275 $as_echo "#define ssize_t int" >>confdefs.h
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
22289 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
22290 if ${gl_cv_func_stat_dir_slash+:} false
; then :
22291 $as_echo_n "(cached) " >&6
22293 if test "$cross_compiling" = yes; then :
22295 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
22296 *) gl_cv_func_stat_dir_slash
="guessing yes";;
22299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22300 /* end confdefs.h. */
22301 #include <sys/stat.h>
22306 struct stat st; return stat (".", &st) != stat ("./", &st);
22311 if ac_fn_c_try_run
"$LINENO"; then :
22312 gl_cv_func_stat_dir_slash
=yes
22314 gl_cv_func_stat_dir_slash
=no
22316 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22317 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
22322 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22324 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22325 if ${gl_cv_func_stat_file_slash+:} false
; then :
22326 $as_echo_n "(cached) " >&6
22329 # Assume that if we have lstat, we can also check symlinks.
22330 if test $ac_cv_func_lstat = yes; then
22331 ln -s conftest.tmp conftest.lnk
22333 if test "$cross_compiling" = yes; then :
22335 # Guess yes on glibc systems.
22336 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
22337 # If we don't know, assume the worst.
22338 *) gl_cv_func_stat_file_slash
="guessing no" ;;
22342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22343 /* end confdefs.h. */
22344 #include <sys/stat.h>
22351 if (!stat ("conftest.tmp/", &st))
22354 if (!stat ("conftest.lnk/", &st))
22363 if ac_fn_c_try_run
"$LINENO"; then :
22364 gl_cv_func_stat_file_slash
=yes
22366 gl_cv_func_stat_file_slash
=no
22368 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22369 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22372 rm -f conftest.tmp conftest.lnk
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22375 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22376 case $gl_cv_func_stat_dir_slash in
22377 *no
) REPLACE_STAT
=1
22379 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
22382 case $gl_cv_func_stat_file_slash in
22383 *no
) REPLACE_STAT
=1
22385 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22389 if test $REPLACE_STAT = 1; then
22398 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
22413 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
22420 # Define two additional variables used in the Makefile substitution.
22422 if test "$ac_cv_header_stdbool_h" = yes; then
22425 STDBOOL_H
='stdbool.h'
22428 if test -n "$STDBOOL_H"; then
22429 GL_GENERATE_STDBOOL_H_TRUE
=
22430 GL_GENERATE_STDBOOL_H_FALSE
='#'
22432 GL_GENERATE_STDBOOL_H_TRUE
='#'
22433 GL_GENERATE_STDBOOL_H_FALSE
=
22437 if test "$ac_cv_type__Bool" = yes; then
22448 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
22451 if test "x$ac_cv_type_max_align_t" = xyes
; then :
22454 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
22457 if test $gt_cv_c_wchar_t = no
; then
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22462 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22463 if ${gl_cv_decl_null_works+:} false
; then :
22464 $as_echo_n "(cached) " >&6
22466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22467 /* end confdefs.h. */
22468 #include <stddef.h>
22469 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22479 if ac_fn_c_try_compile
"$LINENO"; then :
22480 gl_cv_decl_null_works
=yes
22482 gl_cv_decl_null_works
=no
22484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22487 $as_echo "$gl_cv_decl_null_works" >&6; }
22488 if test $gl_cv_decl_null_works = no
; then
22493 if test -n "$STDDEF_H"; then
22494 GL_GENERATE_STDDEF_H_TRUE
=
22495 GL_GENERATE_STDDEF_H_FALSE
='#'
22497 GL_GENERATE_STDDEF_H_TRUE
='#'
22498 GL_GENERATE_STDDEF_H_FALSE
=
22501 if test -n "$STDDEF_H"; then
22510 if test $gl_cv_have_include_next = yes; then
22511 gl_cv_next_stddef_h
='<'stddef.h
'>'
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22514 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22515 if ${gl_cv_next_stddef_h+:} false
; then :
22516 $as_echo_n "(cached) " >&6
22521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22522 /* end confdefs.h. */
22523 #include <stddef.h>
22526 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22527 *) gl_absname_cpp
="$ac_cpp" ;;
22532 gl_dirsep_regex
='[/\\]'
22535 gl_dirsep_regex
='\/'
22538 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22539 gl_header_literal_regex
=`echo 'stddef.h' \
22540 | sed -e "$gl_make_literal_regex_sed"`
22541 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22542 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22548 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22549 sed -n "$gl_absolute_header_sed"`
22551 gl_header
=$gl_cv_absolute_stddef_h
22552 gl_cv_next_stddef_h
='"'$gl_header'"'
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22557 $as_echo "$gl_cv_next_stddef_h" >&6; }
22559 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
22561 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22563 gl_next_as_first_directive
='<'stddef.h
'>'
22565 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22566 gl_next_as_first_directive
=$gl_cv_next_stddef_h
22568 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
22578 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
22589 if test $gl_cv_have_include_next = yes; then
22590 gl_cv_next_stdio_h
='<'stdio.h
'>'
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22593 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22594 if ${gl_cv_next_stdio_h+:} false
; then :
22595 $as_echo_n "(cached) " >&6
22600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22601 /* end confdefs.h. */
22605 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22606 *) gl_absname_cpp
="$ac_cpp" ;;
22611 gl_dirsep_regex
='[/\\]'
22614 gl_dirsep_regex
='\/'
22617 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22618 gl_header_literal_regex
=`echo 'stdio.h' \
22619 | sed -e "$gl_make_literal_regex_sed"`
22620 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22621 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22627 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22628 sed -n "$gl_absolute_header_sed"`
22630 gl_header
=$gl_cv_absolute_stdio_h
22631 gl_cv_next_stdio_h
='"'$gl_header'"'
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22636 $as_echo "$gl_cv_next_stdio_h" >&6; }
22638 NEXT_STDIO_H
=$gl_cv_next_stdio_h
22640 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22641 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22642 gl_next_as_first_directive
='<'stdio.h
'>'
22644 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22645 gl_next_as_first_directive
=$gl_cv_next_stdio_h
22647 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
22654 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
22655 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
22656 $as_echo_n "(cached) " >&6
22658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22659 /* end confdefs.h. */
22661 #define __STDC_FORMAT_MACROS 1
22663 #include <inttypes.h>
22664 /* For non-mingw systems, compilation will trivially succeed.
22665 For mingw, compilation will succeed for older mingw (system
22666 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
22667 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
22668 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
22669 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
22680 if ac_fn_c_try_compile
"$LINENO"; then :
22681 gl_cv_func_printf_attribute_flavor
=system
22683 gl_cv_func_printf_attribute_flavor
=gnu
22685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
22688 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
22689 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
22691 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
22698 cat >>confdefs.h
<<_ACEOF
22699 #define GNULIB_FSCANF 1
22706 cat >>confdefs.h
<<_ACEOF
22707 #define GNULIB_SCANF 1
22732 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
22733 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22735 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22736 if eval \
${$as_gl_Symbol+:} false
; then :
22737 $as_echo_n "(cached) " >&6
22739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22740 /* end confdefs.h. */
22752 if ac_fn_c_try_compile
"$LINENO"; then :
22753 eval "$as_gl_Symbol=yes"
22755 eval "$as_gl_Symbol=no"
22757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22759 eval ac_res
=\$
$as_gl_Symbol
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22761 $as_echo "$ac_res" >&6; }
22762 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
22763 cat >>confdefs.h
<<_ACEOF
22764 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22767 eval ac_cv_have_decl_
$gl_func=yes
22782 if test $gl_cv_have_include_next = yes; then
22783 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22786 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22787 if ${gl_cv_next_stdlib_h+:} false
; then :
22788 $as_echo_n "(cached) " >&6
22793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22794 /* end confdefs.h. */
22795 #include <stdlib.h>
22798 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22799 *) gl_absname_cpp
="$ac_cpp" ;;
22804 gl_dirsep_regex
='[/\\]'
22807 gl_dirsep_regex
='\/'
22810 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22811 gl_header_literal_regex
=`echo 'stdlib.h' \
22812 | sed -e "$gl_make_literal_regex_sed"`
22813 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22814 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22820 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22821 sed -n "$gl_absolute_header_sed"`
22823 gl_header
=$gl_cv_absolute_stdlib_h
22824 gl_cv_next_stdlib_h
='"'$gl_header'"'
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22829 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22831 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
22833 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22835 gl_next_as_first_directive
='<'stdlib.h
'>'
22837 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22838 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
22840 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
22847 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 qsort_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv
; do
22848 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22850 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22851 if eval \
${$as_gl_Symbol+:} false
; then :
22852 $as_echo_n "(cached) " >&6
22854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22855 /* end confdefs.h. */
22856 #include <stdlib.h>
22857 #if HAVE_SYS_LOADAVG_H
22858 # include <sys/loadavg.h>
22861 # include <random.h>
22873 if ac_fn_c_try_compile
"$LINENO"; then :
22874 eval "$as_gl_Symbol=yes"
22876 eval "$as_gl_Symbol=no"
22878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22880 eval ac_res
=\$
$as_gl_Symbol
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22882 $as_echo "$ac_res" >&6; }
22883 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
22884 cat >>confdefs.h
<<_ACEOF
22885 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22888 eval ac_cv_have_decl_
$gl_func=yes
22897 for ac_func
in strchrnul
22899 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
22900 if test "x$ac_cv_func_strchrnul" = xyes
; then :
22901 cat >>confdefs.h
<<_ACEOF
22902 #define HAVE_STRCHRNUL 1
22908 if test $ac_cv_func_strchrnul = no
; then
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
22912 $as_echo_n "checking whether strchrnul works... " >&6; }
22913 if ${gl_cv_func_strchrnul_works+:} false
; then :
22914 $as_echo_n "(cached) " >&6
22916 if test "$cross_compiling" = yes; then :
22917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22918 /* end confdefs.h. */
22920 #if defined __CYGWIN__
22921 #include <cygwin/version.h>
22922 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
22930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22931 $EGREP "Lucky user" >/dev
/null
2>&1; then :
22932 gl_cv_func_strchrnul_works
="guessing yes"
22934 gl_cv_func_strchrnul_works
="guessing no"
22940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22941 /* end confdefs.h. */
22943 #include <string.h> /* for strchrnul */
22948 const char *buf = "a";
22949 return strchrnul (buf, 'b') != buf + 1;
22955 if ac_fn_c_try_run
"$LINENO"; then :
22956 gl_cv_func_strchrnul_works
=yes
22958 gl_cv_func_strchrnul_works
=no
22960 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22961 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
22967 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
22968 case "$gl_cv_func_strchrnul_works" in
22970 *) REPLACE_STRCHRNUL
=1 ;;
22974 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
22983 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
22998 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
23012 if test $ac_cv_func_strdup = yes; then
23013 if test $gl_cv_func_malloc_posix != yes; then
23024 if test $ac_cv_have_decl_strdup = no
; then
23028 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
23037 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
23052 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
23061 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
23063 $as_echo_n "checking for working strerror function... " >&6; }
23064 if ${gl_cv_func_working_strerror+:} false
; then :
23065 $as_echo_n "(cached) " >&6
23067 if test "$cross_compiling" = yes; then :
23069 # Guess yes on glibc systems.
23070 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
23071 # If we don't know, assume the worst.
23072 *) gl_cv_func_working_strerror
="guessing no" ;;
23076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23077 /* end confdefs.h. */
23078 #include <string.h>
23083 if (!*strerror (-2)) return 1;
23088 if ac_fn_c_try_run
"$LINENO"; then :
23089 gl_cv_func_working_strerror
=yes
23091 gl_cv_func_working_strerror
=no
23093 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23094 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
23100 $as_echo "$gl_cv_func_working_strerror" >&6; }
23101 case "$gl_cv_func_working_strerror" in
23112 if test $REPLACE_STRERROR = 1; then
23121 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
23126 cat >>confdefs.h
<<_ACEOF
23127 #define GNULIB_STRERROR 1
23142 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
23148 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
23157 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
23169 if test $ac_cv_header_sys_socket_h != yes; then
23170 for ac_header
in winsock2.h
23172 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23173 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
23174 cat >>confdefs.h
<<_ACEOF
23175 #define HAVE_WINSOCK2_H 1
23183 if test "$ac_cv_header_winsock2_h" = yes; then
23185 UNISTD_H_HAVE_WINSOCK2_H
=1
23186 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23198 if test $REPLACE_STRSTR = 0; then
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
23200 $as_echo_n "checking whether strstr works in linear time... " >&6; }
23201 if ${gl_cv_func_strstr_linear+:} false
; then :
23202 $as_echo_n "(cached) " >&6
23204 if test "$cross_compiling" = yes; then :
23205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23206 /* end confdefs.h. */
23208 #include <features.h>
23209 #ifdef __GNU_LIBRARY__
23210 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
23211 && !(defined __i386__ || defined __x86_64__) \
23212 && !defined __UCLIBC__
23217 #include <cygwin/version.h>
23218 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
23224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23225 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23226 gl_cv_func_strstr_linear
="guessing yes"
23228 gl_cv_func_strstr_linear
="guessing no"
23234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23235 /* end confdefs.h. */
23238 /* z/OS does not deliver signals while strstr() is running (thanks to
23239 restrictions on its LE runtime), which prevents us from limiting the
23240 running time of this test. */
23241 # error "This test does not work properly on z/OS"
23243 #include <signal.h> /* for signal */
23244 #include <string.h> /* for strstr */
23245 #include <stdlib.h> /* for malloc */
23246 #include <unistd.h> /* for alarm */
23247 static void quit (int sig) { _exit (sig + 128); }
23254 size_t m = 1000000;
23255 char *haystack = (char *) malloc (2 * m + 2);
23256 char *needle = (char *) malloc (m + 2);
23257 /* Failure to compile this test due to missing alarm is okay,
23258 since all such platforms (mingw) also have quadratic strstr. */
23259 signal (SIGALRM, quit);
23261 /* Check for quadratic performance. */
23262 if (haystack && needle)
23264 memset (haystack, 'A', 2 * m);
23265 haystack[2 * m] = 'B';
23266 haystack[2 * m + 1] = 0;
23267 memset (needle, 'A', m);
23270 if (!strstr (haystack, needle))
23279 if ac_fn_c_try_run
"$LINENO"; then :
23280 gl_cv_func_strstr_linear
=yes
23282 gl_cv_func_strstr_linear
=no
23284 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23285 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
23291 $as_echo "$gl_cv_func_strstr_linear" >&6; }
23292 case "$gl_cv_func_strstr_linear" in
23300 if test $REPLACE_STRSTR = 1; then
23309 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
23315 if test "$gl_cv_func_memchr_works" != yes; then
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
23319 $as_echo_n "checking whether strstr works... " >&6; }
23320 if ${gl_cv_func_strstr_works_always+:} false
; then :
23321 $as_echo_n "(cached) " >&6
23323 if test "$cross_compiling" = yes; then :
23324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23325 /* end confdefs.h. */
23327 #ifdef __GNU_LIBRARY__
23328 #include <features.h>
23329 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
23330 || defined __UCLIBC__
23333 #elif defined __CYGWIN__
23334 #include <cygwin/version.h>
23335 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
23343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23344 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23345 gl_cv_func_strstr_works_always
="guessing yes"
23347 gl_cv_func_strstr_works_always
="guessing no"
23353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23354 /* end confdefs.h. */
23356 #include <string.h> /* for strstr */
23357 #define P "_EF_BF_BD"
23358 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
23359 #define NEEDLE P P P P P
23364 return !!strstr (HAYSTACK, NEEDLE);
23370 if ac_fn_c_try_run
"$LINENO"; then :
23371 gl_cv_func_strstr_works_always
=yes
23373 gl_cv_func_strstr_works_always
=no
23375 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23376 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
23382 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
23383 case "$gl_cv_func_strstr_works_always" in
23391 if test $REPLACE_STRSTR = 1; then
23400 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
23414 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
23422 for ac_func
in strtok_r
23424 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
23425 if test "x$ac_cv_func_strtok_r" = xyes
; then :
23426 cat >>confdefs.h
<<_ACEOF
23427 #define HAVE_STRTOK_R 1
23433 if test $ac_cv_func_strtok_r = yes; then
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
23436 $as_echo_n "checking whether strtok_r works... " >&6; }
23437 if ${gl_cv_func_strtok_r_works+:} false
; then :
23438 $as_echo_n "(cached) " >&6
23440 if test "$cross_compiling" = yes; then :
23443 # Guess no on glibc systems.
23444 *-gnu*) gl_cv_func_strtok_r_works
="guessing no";;
23445 *) gl_cv_func_strtok_r_works
="guessing yes";;
23449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23450 /* end confdefs.h. */
23452 #ifndef __OPTIMIZE__
23453 # define __OPTIMIZE__ 1
23455 #undef __OPTIMIZE_SIZE__
23456 #undef __NO_INLINE__
23457 #include <stdlib.h>
23458 #include <string.h>
23463 static const char dummy[] = "\177\01a";
23464 char delimiters[] = "xxxxxxxx";
23465 char *save_ptr = (char *) dummy;
23466 strtok_r (delimiters, "x", &save_ptr);
23467 strtok_r (NULL, "x", &save_ptr);
23475 if ac_fn_c_try_run
"$LINENO"; then :
23476 gl_cv_func_strtok_r_works
=yes
23478 gl_cv_func_strtok_r_works
=no
23480 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23481 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
23487 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
23488 case "$gl_cv_func_strtok_r_works" in
23490 UNDEFINE_STRTOK_R
=1
23503 if test $ac_cv_have_decl_strtok_r = no
; then
23504 HAVE_DECL_STRTOK_R
=0
23507 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
23516 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
23533 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
23557 if test $gl_cv_have_include_next = yes; then
23558 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23561 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23562 if ${gl_cv_next_sys_stat_h+:} false
; then :
23563 $as_echo_n "(cached) " >&6
23566 if test $ac_cv_header_sys_stat_h = yes; then
23571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23572 /* end confdefs.h. */
23573 #include <sys/stat.h>
23576 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23577 *) gl_absname_cpp
="$ac_cpp" ;;
23582 gl_dirsep_regex
='[/\\]'
23585 gl_dirsep_regex
='\/'
23588 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23589 gl_header_literal_regex
=`echo 'sys/stat.h' \
23590 | sed -e "$gl_make_literal_regex_sed"`
23591 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23592 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23598 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23599 sed -n "$gl_absolute_header_sed"`
23601 gl_header
=$gl_cv_absolute_sys_stat_h
23602 gl_cv_next_sys_stat_h
='"'$gl_header'"'
23604 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23610 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23612 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
23614 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23615 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23616 gl_next_as_first_directive
='<'sys
/stat.h
'>'
23618 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23619 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
23621 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
23633 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23635 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23639 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23640 #include <sys/stat.h>
23642 if test "x$ac_cv_type_nlink_t" = xyes
; then :
23646 $as_echo "#define nlink_t int" >>confdefs.h
23652 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
23653 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23655 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23656 if eval \
${$as_gl_Symbol+:} false
; then :
23657 $as_echo_n "(cached) " >&6
23659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23660 /* end confdefs.h. */
23661 #include <sys/stat.h>
23672 if ac_fn_c_try_compile
"$LINENO"; then :
23673 eval "$as_gl_Symbol=yes"
23675 eval "$as_gl_Symbol=no"
23677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23679 eval ac_res
=\$
$as_gl_Symbol
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23681 $as_echo "$ac_res" >&6; }
23682 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
23683 cat >>confdefs.h
<<_ACEOF
23684 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23687 eval ac_cv_have_decl_
$gl_func=yes
23725 if test $gl_cv_have_include_next = yes; then
23726 gl_cv_next_unistd_h
='<'unistd.h
'>'
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23729 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23730 if ${gl_cv_next_unistd_h+:} false
; then :
23731 $as_echo_n "(cached) " >&6
23734 if test $ac_cv_header_unistd_h = yes; then
23739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23740 /* end confdefs.h. */
23741 #include <unistd.h>
23744 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23745 *) gl_absname_cpp
="$ac_cpp" ;;
23750 gl_dirsep_regex
='[/\\]'
23753 gl_dirsep_regex
='\/'
23756 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23757 gl_header_literal_regex
=`echo 'unistd.h' \
23758 | sed -e "$gl_make_literal_regex_sed"`
23759 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23760 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23766 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23767 sed -n "$gl_absolute_header_sed"`
23769 gl_header
=$gl_cv_absolute_unistd_h
23770 gl_cv_next_unistd_h
='"'$gl_header'"'
23772 gl_cv_next_unistd_h
='<'unistd.h
'>'
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23778 $as_echo "$gl_cv_next_unistd_h" >&6; }
23780 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
23782 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23784 gl_next_as_first_directive
='<'unistd.h
'>'
23786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23787 gl_next_as_first_directive
=$gl_cv_next_unistd_h
23789 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
23794 if test $ac_cv_header_unistd_h = yes; then
23806 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
23807 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23809 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23810 if eval \
${$as_gl_Symbol+:} false
; then :
23811 $as_echo_n "(cached) " >&6
23813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23814 /* end confdefs.h. */
23817 # include <unistd.h>
23819 /* Some systems declare various items in the wrong headers. */
23820 #if !(defined __GLIBC__ && !defined __UCLIBC__)
23821 # include <fcntl.h>
23822 # include <stdio.h>
23823 # include <stdlib.h>
23824 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
23838 if ac_fn_c_try_compile
"$LINENO"; then :
23839 eval "$as_gl_Symbol=yes"
23841 eval "$as_gl_Symbol=no"
23843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23845 eval ac_res
=\$
$as_gl_Symbol
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23847 $as_echo "$ac_res" >&6; }
23848 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
23849 cat >>confdefs.h
<<_ACEOF
23850 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23853 eval ac_cv_have_decl_
$gl_func=yes
23876 if test $ac_cv_have_decl_unsetenv = no
; then
23877 HAVE_DECL_UNSETENV
=0
23879 for ac_func
in unsetenv
23881 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
23882 if test "x$ac_cv_func_unsetenv" = xyes
; then :
23883 cat >>confdefs.h
<<_ACEOF
23884 #define HAVE_UNSETENV 1
23890 if test $ac_cv_func_unsetenv = no
; then
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
23895 $as_echo_n "checking for unsetenv() return type... " >&6; }
23896 if ${gt_cv_func_unsetenv_ret+:} false
; then :
23897 $as_echo_n "(cached) " >&6
23899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23900 /* end confdefs.h. */
23903 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
23904 #include <stdlib.h>
23909 int unsetenv (const char *name);
23919 if ac_fn_c_try_compile
"$LINENO"; then :
23920 gt_cv_func_unsetenv_ret
='int'
23922 gt_cv_func_unsetenv_ret
='void'
23924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
23927 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
23928 if test $gt_cv_func_unsetenv_ret = 'void'; then
23930 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
23936 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
23937 if ${gl_cv_func_unsetenv_works+:} false
; then :
23938 $as_echo_n "(cached) " >&6
23940 if test "$cross_compiling" = yes; then :
23942 # Guess yes on glibc systems.
23943 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
23944 # If we don't know, assume the worst.
23945 *) gl_cv_func_unsetenv_works
="guessing no" ;;
23949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23950 /* end confdefs.h. */
23952 #include <stdlib.h>
23954 extern char **environ;
23960 char entry1[] = "a=1";
23961 char entry2[] = "b=2";
23962 char *env[] = { entry1, entry2, NULL };
23963 if (putenv ((char *) "a=1")) return 1;
23964 if (putenv (entry2)) return 2;
23967 if (getenv ("a")) return 3;
23968 if (!unsetenv ("") || errno != EINVAL) return 4;
23971 if (!getenv ("a")) return 5;
23974 if (getenv ("a")) return 6;
23980 if ac_fn_c_try_run
"$LINENO"; then :
23981 gl_cv_func_unsetenv_works
=yes
23983 gl_cv_func_unsetenv_works
=no
23985 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23986 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
23991 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
23992 case "$gl_cv_func_unsetenv_works" in
24000 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
24009 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
24033 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
24055 if test $gl_cv_have_include_next = yes; then
24056 gl_cv_next_wchar_h
='<'wchar.h
'>'
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24059 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24060 if ${gl_cv_next_wchar_h+:} false
; then :
24061 $as_echo_n "(cached) " >&6
24064 if test $ac_cv_header_wchar_h = yes; then
24069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24070 /* end confdefs.h. */
24074 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24075 *) gl_absname_cpp
="$ac_cpp" ;;
24080 gl_dirsep_regex
='[/\\]'
24083 gl_dirsep_regex
='\/'
24086 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24087 gl_header_literal_regex
=`echo 'wchar.h' \
24088 | sed -e "$gl_make_literal_regex_sed"`
24089 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24090 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24096 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24097 sed -n "$gl_absolute_header_sed"`
24099 gl_header
=$gl_cv_absolute_wchar_h
24100 gl_cv_next_wchar_h
='"'$gl_header'"'
24102 gl_cv_next_wchar_h
='<'wchar.h
'>'
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24108 $as_echo "$gl_cv_next_wchar_h" >&6; }
24110 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
24112 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24114 gl_next_as_first_directive
='<'wchar.h
'>'
24116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24117 gl_next_as_first_directive
=$gl_cv_next_wchar_h
24119 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
24124 if test $ac_cv_header_wchar_h = yes; then
24134 if test $gt_cv_c_wint_t = yes; then
24142 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
24143 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24145 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24146 if eval \
${$as_gl_Symbol+:} false
; then :
24147 $as_echo_n "(cached) " >&6
24149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24150 /* end confdefs.h. */
24152 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24154 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24155 included before <wchar.h>. */
24156 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24157 # include <stddef.h>
24158 # include <stdio.h>
24172 if ac_fn_c_try_compile
"$LINENO"; then :
24173 eval "$as_gl_Symbol=yes"
24175 eval "$as_gl_Symbol=no"
24177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24179 eval ac_res
=\$
$as_gl_Symbol
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24181 $as_echo "$ac_res" >&6; }
24182 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24183 cat >>confdefs.h
<<_ACEOF
24184 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24187 eval ac_cv_have_decl_
$gl_func=yes
24203 if test $ac_cv_func_iswcntrl = yes; then
24211 if test $gt_cv_c_wint_t = yes; then
24233 if test $gl_cv_have_include_next = yes; then
24234 gl_cv_next_wctype_h
='<'wctype.h
'>'
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
24237 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
24238 if ${gl_cv_next_wctype_h+:} false
; then :
24239 $as_echo_n "(cached) " >&6
24242 if test $ac_cv_header_wctype_h = yes; then
24247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24248 /* end confdefs.h. */
24249 #include <wctype.h>
24252 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24253 *) gl_absname_cpp
="$ac_cpp" ;;
24258 gl_dirsep_regex
='[/\\]'
24261 gl_dirsep_regex
='\/'
24264 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24265 gl_header_literal_regex
=`echo 'wctype.h' \
24266 | sed -e "$gl_make_literal_regex_sed"`
24267 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24268 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24274 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24275 sed -n "$gl_absolute_header_sed"`
24277 gl_header
=$gl_cv_absolute_wctype_h
24278 gl_cv_next_wctype_h
='"'$gl_header'"'
24280 gl_cv_next_wctype_h
='<'wctype.h
'>'
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
24286 $as_echo "$gl_cv_next_wctype_h" >&6; }
24288 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
24290 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24291 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24292 gl_next_as_first_directive
='<'wctype.h
'>'
24294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24295 gl_next_as_first_directive
=$gl_cv_next_wctype_h
24297 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
24302 if test $ac_cv_header_wctype_h = yes; then
24303 if test $ac_cv_func_iswcntrl = yes; then
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
24305 $as_echo_n "checking whether iswcntrl works... " >&6; }
24306 if ${gl_cv_func_iswcntrl_works+:} false
; then :
24307 $as_echo_n "(cached) " >&6
24310 if test "$cross_compiling" = yes; then :
24311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24312 /* end confdefs.h. */
24313 #include <stdlib.h>
24314 #if __GNU_LIBRARY__ == 1
24315 Linux libc5 i18n is broken.
24325 if ac_fn_c_try_compile
"$LINENO"; then :
24326 gl_cv_func_iswcntrl_works
="guessing yes"
24328 gl_cv_func_iswcntrl_works
="guessing no"
24330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24334 /* end confdefs.h. */
24336 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24337 included before <wchar.h>.
24338 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24339 must be included before <wchar.h>. */
24340 #include <stddef.h>
24344 #include <wctype.h>
24345 int main () { return iswprint ('x') == 0; }
24348 if ac_fn_c_try_run
"$LINENO"; then :
24349 gl_cv_func_iswcntrl_works
=yes
24351 gl_cv_func_iswcntrl_works
=no
24353 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24354 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
24360 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
24368 case "$gl_cv_func_iswcntrl_works" in
24369 *yes) REPLACE_ISWCNTRL
=0 ;;
24370 *) REPLACE_ISWCNTRL
=1 ;;
24374 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
24378 if test $REPLACE_ISWCNTRL = 1; then
24381 for ac_func
in towlower
24383 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
24384 if test "x$ac_cv_func_towlower" = xyes
; then :
24385 cat >>confdefs.h
<<_ACEOF
24386 #define HAVE_TOWLOWER 1
24392 if test $ac_cv_func_towlower = yes; then
24395 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24396 included before <wchar.h>.
24397 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24398 must be included before <wchar.h>. */
24399 #include <stddef.h>
24404 # include <wctype.h>
24408 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
24414 cat >>confdefs.h
<<_ACEOF
24415 #define HAVE_DECL_TOWLOWER $ac_have_decl
24418 if test $ac_cv_have_decl_towlower = yes; then
24427 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
24432 $as_echo_n "checking for wctype_t... " >&6; }
24433 if ${gl_cv_type_wctype_t+:} false
; then :
24434 $as_echo_n "(cached) " >&6
24436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h. */
24438 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24439 included before <wchar.h>.
24440 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24441 must be included before <wchar.h>. */
24442 #include <stddef.h>
24447 # include <wctype.h>
24459 if ac_fn_c_try_compile
"$LINENO"; then :
24460 gl_cv_type_wctype_t
=yes
24462 gl_cv_type_wctype_t
=no
24464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
24468 $as_echo "$gl_cv_type_wctype_t" >&6; }
24469 if test $gl_cv_type_wctype_t = no
; then
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
24474 $as_echo_n "checking for wctrans_t... " >&6; }
24475 if ${gl_cv_type_wctrans_t+:} false
; then :
24476 $as_echo_n "(cached) " >&6
24478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24479 /* end confdefs.h. */
24480 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24481 included before <wchar.h>.
24482 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24483 must be included before <wchar.h>. */
24484 #include <stddef.h>
24488 #include <wctype.h>
24499 if ac_fn_c_try_compile
"$LINENO"; then :
24500 gl_cv_type_wctrans_t
=yes
24502 gl_cv_type_wctrans_t
=no
24504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
24508 $as_echo "$gl_cv_type_wctrans_t" >&6; }
24509 if test $gl_cv_type_wctrans_t = no
; then
24514 for gl_func
in wctype iswctype wctrans towctrans
; do
24515 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24517 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24518 if eval \
${$as_gl_Symbol+:} false
; then :
24519 $as_echo_n "(cached) " >&6
24521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24522 /* end confdefs.h. */
24524 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24526 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24527 included before <wchar.h>. */
24528 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24529 # include <stddef.h>
24530 # include <stdio.h>
24532 # include <wchar.h>
24534 #include <wctype.h>
24545 if ac_fn_c_try_compile
"$LINENO"; then :
24546 eval "$as_gl_Symbol=yes"
24548 eval "$as_gl_Symbol=no"
24550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24552 eval ac_res
=\$
$as_gl_Symbol
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24554 $as_echo "$ac_res" >&6; }
24555 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24556 cat >>confdefs.h
<<_ACEOF
24557 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24560 eval ac_cv_have_decl_
$gl_func=yes
24565 # End of code from modules
24586 gl_source_base
='tests'
24587 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
24589 gl_module_indicator_condition
=$gltests_WITNESS
24599 LIBGNU_LIBDEPS
="$gl_libdeps"
24601 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
24605 # We don't use automake, but gnulib does. This line lets us generate
24607 am__api_version
='1.15'
24609 # Find a good install program. We prefer a C program (faster),
24610 # so one script is as good as another. But avoid the broken or
24611 # incompatible versions:
24612 # SysV /etc/install, /usr/sbin/install
24613 # SunOS /usr/etc/install
24614 # IRIX /sbin/install
24616 # AmigaOS /C/install, which installs bootblocks on floppy discs
24617 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
24618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
24619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
24620 # OS/2's system install, which has a completely different semantic
24621 # ./install, which can be erroneously created by make from ./install.sh.
24622 # Reject install programs that cannot install multiple files.
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
24624 $as_echo_n "checking for a BSD-compatible install... " >&6; }
24625 if test -z "$INSTALL"; then
24626 if ${ac_cv_path_install+:} false
; then :
24627 $as_echo_n "(cached) " >&6
24629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24630 for as_dir
in $PATH
24633 test -z "$as_dir" && as_dir
=.
24634 # Account for people who put trailing slashes in PATH elements.
24635 case $as_dir/ in #((
24636 .
/ | .
// |
/[cC
]/* | \
24637 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
24638 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
24641 # OSF1 and SCO ODT 3.0 have their own names for install.
24642 # Don't use installbsd from OSF since it installs stuff as root
24644 for ac_prog
in ginstall scoinst
install; do
24645 for ac_exec_ext
in '' $ac_executable_extensions; do
24646 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
24647 if test $ac_prog = install &&
24648 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
24649 # AIX install. It has an incompatible calling convention.
24651 elif test $ac_prog = install &&
24652 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
24653 # program-specific install script used by HP pwplus--don't use.
24656 rm -rf conftest.one conftest.two conftest.dir
24657 echo one
> conftest.one
24658 echo two
> conftest.two
24660 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
24661 test -s conftest.one
&& test -s conftest.two
&&
24662 test -s conftest.dir
/conftest.one
&&
24663 test -s conftest.dir
/conftest.two
24665 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
24678 rm -rf conftest.one conftest.two conftest.dir
24681 if test "${ac_cv_path_install+set}" = set; then
24682 INSTALL
=$ac_cv_path_install
24684 # As a last resort, use the slow shell script. Don't cache a
24685 # value for INSTALL within a source directory, because that will
24686 # break other packages using the cache if that directory is
24687 # removed, or if the value is a relative name.
24688 INSTALL
=$ac_install_sh
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
24692 $as_echo "$INSTALL" >&6; }
24694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
24695 # It thinks the first close brace ends the variable substitution.
24696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
24698 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
24700 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
24703 $as_echo_n "checking whether build environment is sane... " >&6; }
24704 # Reject unsafe characters in $srcdir or the absolute working directory
24705 # name. Accept space and tab only in the latter.
24709 *[\\\"\
#\$\&\'\`$am_lf]*)
24710 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
24713 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
24714 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
24717 # Do 'set' in a subshell so we don't clobber the current shell's
24718 # arguments. Must try -L first in case configure is actually a
24719 # symlink; some systems play weird games with the mod time of symlinks
24720 # (eg FreeBSD returns the mod time of the symlink's containing
24724 for am_try
in 1 2; do
24725 echo "timestamp, slept: $am_has_slept" > conftest.
file
24726 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
24727 if test "$*" = "X"; then
24729 set X
`ls -t "$srcdir/configure" conftest.file`
24731 if test "$*" != "X $srcdir/configure conftest.file" \
24732 && test "$*" != "X conftest.file $srcdir/configure"; then
24734 # If neither matched, then we have a broken ls. This can happen
24735 # if, for instance, CONFIG_SHELL is bash and it inherits a
24736 # broken ls alias from the environment. This has actually
24737 # happened. Such a system could not be considered "sane".
24738 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
24739 alias in your environment" "$LINENO" 5
24741 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
24748 test "$2" = conftest.
file
24754 as_fn_error $?
"newly created file is older than distributed files!
24755 Check your system clock" "$LINENO" 5
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24758 $as_echo "yes" >&6; }
24759 # If we didn't sleep, we still need to ensure time stamps of config.status and
24760 # generated files are strictly newer.
24762 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
24767 rm -f conftest.
file
24769 test "$program_prefix" != NONE
&&
24770 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
24771 # Use a double $ so make ignores it.
24772 test "$program_suffix" != NONE
&&
24773 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
24774 # Double any \ or $.
24775 # By default was `s,x,x', remove it if useless.
24776 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
24777 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
24779 if test x
"${MISSING+set}" != xset
; then
24780 case $am_aux_dir in
24782 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
24784 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
24787 # Use eval to expand $SHELL
24788 if eval "$MISSING --is-lightweight"; then
24789 am_missing_run
="$MISSING "
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
24793 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
24796 if test x
"${install_sh+set}" != xset
; then
24797 case $am_aux_dir in
24799 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
24801 install_sh
="\${SHELL} $am_aux_dir/install-sh"
24805 # Installed binaries are usually stripped using 'strip' when the user
24806 # run "make install-strip". However 'strip' might not be the right
24807 # tool to use in cross-compilation environments, therefore Automake
24808 # will honor the 'STRIP' environment variable to overrule this program.
24809 if test "$cross_compiling" != no
; then
24810 if test -n "$ac_tool_prefix"; then
24811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24812 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24814 $as_echo_n "checking for $ac_word... " >&6; }
24815 if ${ac_cv_prog_STRIP+:} false
; then :
24816 $as_echo_n "(cached) " >&6
24818 if test -n "$STRIP"; then
24819 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
24821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24822 for as_dir
in $PATH
24825 test -z "$as_dir" && as_dir
=.
24826 for ac_exec_ext
in '' $ac_executable_extensions; do
24827 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24828 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
24829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24838 STRIP
=$ac_cv_prog_STRIP
24839 if test -n "$STRIP"; then
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
24841 $as_echo "$STRIP" >&6; }
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24844 $as_echo "no" >&6; }
24849 if test -z "$ac_cv_prog_STRIP"; then
24851 # Extract the first word of "strip", so it can be a program name with args.
24852 set dummy strip
; ac_word
=$2
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24854 $as_echo_n "checking for $ac_word... " >&6; }
24855 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
24856 $as_echo_n "(cached) " >&6
24858 if test -n "$ac_ct_STRIP"; then
24859 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
24861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24862 for as_dir
in $PATH
24865 test -z "$as_dir" && as_dir
=.
24866 for ac_exec_ext
in '' $ac_executable_extensions; do
24867 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24868 ac_cv_prog_ac_ct_STRIP
="strip"
24869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24878 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
24879 if test -n "$ac_ct_STRIP"; then
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
24881 $as_echo "$ac_ct_STRIP" >&6; }
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24884 $as_echo "no" >&6; }
24887 if test "x$ac_ct_STRIP" = x
; then
24890 case $cross_compiling:$ac_tool_warned in
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24894 ac_tool_warned
=yes ;;
24899 STRIP
="$ac_cv_prog_STRIP"
24903 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
24905 for ac_prog
in gawk mawk nawk
awk
24907 # Extract the first word of "$ac_prog", so it can be a program name with args.
24908 set dummy
$ac_prog; ac_word
=$2
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24910 $as_echo_n "checking for $ac_word... " >&6; }
24911 if ${ac_cv_prog_AWK+:} false
; then :
24912 $as_echo_n "(cached) " >&6
24914 if test -n "$AWK"; then
24915 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
24917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24918 for as_dir
in $PATH
24921 test -z "$as_dir" && as_dir
=.
24922 for ac_exec_ext
in '' $ac_executable_extensions; do
24923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
24924 ac_cv_prog_AWK
="$ac_prog"
24925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24934 AWK
=$ac_cv_prog_AWK
24935 if test -n "$AWK"; then
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24937 $as_echo "$AWK" >&6; }
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24940 $as_echo "no" >&6; }
24944 test -n "$AWK" && break
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
24948 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
24950 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
24951 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
24952 $as_echo_n "(cached) " >&6
24954 cat >conftest.
make <<\_ACEOF
24957 @
echo '@@@%%%=$(MAKE)=@@@%%%'
24959 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24960 case `${MAKE-make} -f conftest.make 2>/dev/null` in
24961 *@@@
%%%=?
*=@@@
%%%*)
24962 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
24964 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
24966 rm -f conftest.
make
24968 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24970 $as_echo "yes" >&6; }
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24974 $as_echo "no" >&6; }
24975 SET_MAKE
="MAKE=${MAKE-make}"
24978 rm -rf .tst
2>/dev
/null
24979 mkdir .tst
2>/dev
/null
24980 if test -d .tst
; then
24985 rmdir .tst
2>/dev
/null
24987 DEPDIR
="${am__leading_dot}deps"
24989 ac_config_commands
="$ac_config_commands depfiles"
24992 am_make
=${MAKE-make}
24993 cat > confinc
<< 'END'
24995 @
echo this is the am__doit target
24998 # If we don't find an include directive, just comment out the code.
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
25000 $as_echo_n "checking for style of include used by $am_make... " >&6; }
25004 # First try GNU make style include.
25005 echo "include confinc" > confmf
25006 # Ignore all kinds of additional output from 'make'.
25007 case `$am_make -s -f confmf 2> /dev/null` in #(
25008 *the\ am__doit\ target
*)
25009 am__include
=include
25014 # Now try BSD make style include.
25015 if test "$am__include" = "#"; then
25016 echo '.include "confinc"' > confmf
25017 case `$am_make -s -f confmf 2> /dev/null` in #(
25018 *the\ am__doit\ target
*)
25019 am__include
=.include
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
25028 $as_echo "$_am_result" >&6; }
25029 rm -f confinc confmf
25031 # Check whether --enable-dependency-tracking was given.
25032 if test "${enable_dependency_tracking+set}" = set; then :
25033 enableval
=$enable_dependency_tracking;
25036 if test "x$enable_dependency_tracking" != xno
; then
25037 am_depcomp
="$ac_aux_dir/depcomp"
25041 if test "x$enable_dependency_tracking" != xno; then
25050 # Check whether --enable-silent-rules was given.
25051 if test "${enable_silent_rules+set}" = set; then :
25052 enableval
=$enable_silent_rules;
25055 case $enable_silent_rules in # (((
25056 yes) AM_DEFAULT_VERBOSITY
=0;;
25057 no
) AM_DEFAULT_VERBOSITY
=1;;
25058 *) AM_DEFAULT_VERBOSITY
=1;;
25060 am_make
=${MAKE-make}
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
25062 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
25063 if ${am_cv_make_support_nested_variables+:} false
; then :
25064 $as_echo_n "(cached) " >&6
25066 if $as_echo 'TRUE=$(BAR$(V))
25072 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
25073 am_cv_make_support_nested_variables
=yes
25075 am_cv_make_support_nested_variables
=no
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
25079 $as_echo "$am_cv_make_support_nested_variables" >&6; }
25080 if test $am_cv_make_support_nested_variables = yes; then
25082 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
25084 AM_V
=$AM_DEFAULT_VERBOSITY
25085 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
25089 if test "`cd $srcdir && pwd`" != "`pwd`"; then
25090 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
25091 # is not polluted with repeated "-I."
25092 am__isrc
=' -I$(srcdir)'
25093 # test to see if srcdir already configured
25094 if test -f $srcdir/config.status
; then
25095 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
25099 # test whether we have cygpath
25100 if test -z "$CYGPATH_W"; then
25101 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
25102 CYGPATH_W
='cygpath -w'
25109 # Define the identity of the package.
25111 VERSION
='UNUSED-VERSION'
25114 # Some tools Automake needs.
25116 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
25119 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
25122 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
25125 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
25128 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
25130 # For better backward compatibility. To be removed once Automake 1.9.x
25131 # dies out for good. For more background, see:
25132 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
25133 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
25134 mkdir_p
='$(MKDIR_P)'
25136 # We need awk for the "check" target (and possibly the TAP driver). The
25137 # system "awk" is bad on some platforms.
25138 # Always define AMTAR for backward compatibility. Yes, it's still used
25139 # in the wild :-( We should find a proper way to deprecate it ...
25140 AMTAR
='$${TAR-tar}'
25143 # We'll loop over all known methods to create a tar archive until one works.
25144 _am_tools
='gnutar pax cpio none'
25146 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
25152 depcc
="$CC" am_compiler_list
=
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25155 $as_echo_n "checking dependency style of $depcc... " >&6; }
25156 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
25157 $as_echo_n "(cached) " >&6
25159 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25160 # We make a subdir and do the tests there. Otherwise we can end up
25161 # making bogus files that we don't know about and never remove. For
25162 # instance it was reported that on HP-UX the gcc test will end up
25163 # making a dummy file named 'D' -- because '-MD' means "put the output
25165 rm -rf conftest.dir
25167 # Copy depcomp to subdir because otherwise we won't find it if we're
25168 # using a relative directory.
25169 cp "$am_depcomp" conftest.dir
25171 # We will build objects and dependencies in a subdirectory because
25172 # it helps to detect inapplicable dependency modes. For instance
25173 # both Tru64's cc and ICC support -MD to output dependencies as a
25174 # side effect of compilation, but ICC will put the dependencies in
25175 # the current directory while Tru64 will put them in the object
25179 am_cv_CC_dependencies_compiler_type
=none
25180 if test "$am_compiler_list" = ""; then
25181 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25183 am__universal
=false
25184 case " $depcc " in #(
25185 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
25188 for depmode
in $am_compiler_list; do
25189 # Setup a source with many dependencies, because some compilers
25190 # like to wrap large dependency lists on column 80 (with \), and
25191 # we should not choose a depcomp mode which is confused by this.
25193 # We need to recreate these files for each test, as the compiler may
25194 # overwrite some of them when testing with obscure command lines.
25195 # This happens at least with the AIX C compiler.
25197 for i
in 1 2 3 4 5 6; do
25198 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
25199 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25200 # Solaris 10 /bin/sh.
25201 echo '/* dummy */' > sub
/conftst
$i.h
25203 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25205 # We check with '-c' and '-o' for the sake of the "dashmstdout"
25206 # mode. It turns out that the SunPro C++ compiler does not properly
25207 # handle '-M -o', and we need to detect this. Also, some Intel
25208 # versions had trouble with output in subdirs.
25209 am__obj
=sub
/conftest.
${OBJEXT-o}
25210 am__minus_obj
="-o $am__obj"
25213 # This depmode causes a compiler race in universal mode.
25214 test "$am__universal" = false ||
continue
25217 # After this tag, mechanisms are not by side-effect, so they'll
25218 # only be used when explicitly requested.
25219 if test "x$enable_dependency_tracking" = xyes
; then
25225 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
25226 # This compiler won't grok '-c -o', but also, the minuso test has
25227 # not run yet. These depmodes are late enough in the game, and
25228 # so weak that their functioning should not be impacted.
25229 am__obj
=conftest.
${OBJEXT-o}
25234 if depmode
=$depmode \
25235 source=sub
/conftest.c object
=$am__obj \
25236 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
25237 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
25238 >/dev
/null
2>conftest.err
&&
25239 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
25240 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
25241 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
25242 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
25243 # icc doesn't choke on unknown options, it will just issue warnings
25244 # or remarks (even with -Werror). So we grep stderr for any message
25245 # that says an option was ignored or not supported.
25246 # When given -MP, icc 7.0 and 7.1 complain thusly:
25247 # icc: Command line warning: ignoring option '-M'; no argument required
25248 # The diagnosis changed in icc 8.0:
25249 # icc: Command line remark: option '-MP' not supported
25250 if (grep 'ignoring option' conftest.err ||
25251 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
25252 am_cv_CC_dependencies_compiler_type
=$depmode
25259 rm -rf conftest.dir
25261 am_cv_CC_dependencies_compiler_type
=none
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
25266 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
25267 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
25270 test "x$enable_dependency_tracking" != xno \
25271 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
25272 am__fastdepCC_TRUE
=
25273 am__fastdepCC_FALSE
='#'
25275 am__fastdepCC_TRUE
='#'
25276 am__fastdepCC_FALSE
=
25281 # POSIX will say in a future version that running "rm -f" with no argument
25282 # is OK; and we want to be able to make that assumption in our Makefile
25283 # recipes. So use an aggressive probe to check that the usage we want is
25284 # actually supported "in the wild" to an acceptable degree.
25285 # See automake bug#10828.
25286 # To make any issue more visible, cause the running configure to be aborted
25287 # by default if the 'rm' program in use doesn't match our expectations; the
25288 # user can still override this though.
25289 if rm -f && rm -fr && rm -rf; then : OK
; else
25293 Your 'rm' program seems unable to run without file operands specified
25294 on the command line, even when the '-f' option is present. This is contrary
25295 to the behaviour of most rm programs out there, and not conforming with
25296 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
25298 Please tell bug-automake@gnu.org about your system, including the value
25299 of your $PATH and any error possibly output before this message. This
25300 can help us improve future automake versions.
25303 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
25304 echo 'Configuration will proceed anyway, since you have set the' >&2
25305 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
25309 Aborting the configuration process, to ensure you take notice of the issue.
25311 You can download and install GNU coreutils to get an 'rm' implementation
25312 that behaves properly: <http://www.gnu.org/software/coreutils/>.
25314 If you want to complete the configuration process using your problematic
25315 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
25316 to "yes", and re-run configure.
25319 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
25324 # Check whether --enable-silent-rules was given.
25325 if test "${enable_silent_rules+set}" = set; then :
25326 enableval
=$enable_silent_rules;
25329 case $enable_silent_rules in # (((
25330 yes) AM_DEFAULT_VERBOSITY
=0;;
25331 no
) AM_DEFAULT_VERBOSITY
=1;;
25332 *) AM_DEFAULT_VERBOSITY
=0;;
25334 am_make
=${MAKE-make}
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
25336 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
25337 if ${am_cv_make_support_nested_variables+:} false
; then :
25338 $as_echo_n "(cached) " >&6
25340 if $as_echo 'TRUE=$(BAR$(V))
25346 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
25347 am_cv_make_support_nested_variables
=yes
25349 am_cv_make_support_nested_variables
=no
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
25353 $as_echo "$am_cv_make_support_nested_variables" >&6; }
25354 if test $am_cv_make_support_nested_variables = yes; then
25356 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
25358 AM_V
=$AM_DEFAULT_VERBOSITY
25359 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
25364 # --------------------- #
25365 # Checks for programs. #
25366 # --------------------- #
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25370 $as_echo_n "checking whether ln -s works... " >&6; }
25372 if test "$LN_S" = "ln -s"; then
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25374 $as_echo "yes" >&6; }
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25377 $as_echo "no, using $LN_S" >&6; }
25380 if test -n "$ac_tool_prefix"; then
25381 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
25382 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25384 $as_echo_n "checking for $ac_word... " >&6; }
25385 if ${ac_cv_prog_RANLIB+:} false; then :
25386 $as_echo_n "(cached) " >&6
25388 if test -n "$RANLIB"; then
25389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
25391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25392 for as_dir in $PATH
25395 test -z "$as_dir" && as_dir=.
25396 for ac_exec_ext in '' $ac_executable_extensions; do
25397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25398 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
25399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25408 RANLIB=$ac_cv_prog_RANLIB
25409 if test -n "$RANLIB"; then
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
25411 $as_echo "$RANLIB" >&6; }
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25414 $as_echo "no" >&6; }
25419 if test -z "$ac_cv_prog_RANLIB"; then
25420 ac_ct_RANLIB=$RANLIB
25421 # Extract the first word of "ranlib", so it can be a program name with args.
25422 set dummy ranlib; ac_word=$2
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25424 $as_echo_n "checking for $ac_word... " >&6; }
25425 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
25426 $as_echo_n "(cached) " >&6
25428 if test -n "$ac_ct_RANLIB"; then
25429 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
25431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25432 for as_dir in $PATH
25435 test -z "$as_dir" && as_dir=.
25436 for ac_exec_ext in '' $ac_executable_extensions; do
25437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25438 ac_cv_prog_ac_ct_RANLIB="ranlib"
25439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25448 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
25449 if test -n "$ac_ct_RANLIB"; then
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
25451 $as_echo "$ac_ct_RANLIB" >&6; }
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25454 $as_echo "no" >&6; }
25457 if test "x$ac_ct_RANLIB" = x; then
25460 case $cross_compiling:$ac_tool_warned in
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25464 ac_tool_warned=yes ;;
25466 RANLIB=$ac_ct_RANLIB
25469 RANLIB="$ac_cv_prog_RANLIB"
25473 if test -n "$ac_tool_prefix"; then
25474 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
25475 set dummy ${ac_tool_prefix}ar; ac_word=$2
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25477 $as_echo_n "checking for $ac_word... " >&6; }
25478 if ${ac_cv_prog_AR+:} false; then :
25479 $as_echo_n "(cached) " >&6
25481 if test -n "$AR"; then
25482 ac_cv_prog_AR="$AR" # Let the user override the test.
25484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25485 for as_dir in $PATH
25488 test -z "$as_dir" && as_dir=.
25489 for ac_exec_ext in '' $ac_executable_extensions; do
25490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25491 ac_cv_prog_AR="${ac_tool_prefix}ar"
25492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25502 if test -n "$AR"; then
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
25504 $as_echo "$AR" >&6; }
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25507 $as_echo "no" >&6; }
25512 if test -z "$ac_cv_prog_AR"; then
25514 # Extract the first word of "ar", so it can be a program name with args.
25515 set dummy ar; ac_word=$2
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25517 $as_echo_n "checking for $ac_word... " >&6; }
25518 if ${ac_cv_prog_ac_ct_AR+:} false; then :
25519 $as_echo_n "(cached) " >&6
25521 if test -n "$ac_ct_AR"; then
25522 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
25524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25525 for as_dir in $PATH
25528 test -z "$as_dir" && as_dir=.
25529 for ac_exec_ext in '' $ac_executable_extensions; do
25530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25531 ac_cv_prog_ac_ct_AR="ar"
25532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25541 ac_ct_AR=$ac_cv_prog_ac_ct_AR
25542 if test -n "$ac_ct_AR"; then
25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
25544 $as_echo "$ac_ct_AR" >&6; }
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25547 $as_echo "no" >&6; }
25550 if test "x$ac_ct_AR" = x; then
25553 case $cross_compiling:$ac_tool_warned in
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25557 ac_tool_warned=yes ;;
25562 AR="$ac_cv_prog_AR"
25566 # ---------------------- #
25567 # Checks for libraries. #
25568 # ---------------------- #
25570 ac_config_files="$ac_config_files Makefile import/Makefile"
25572 ac_config_commands="$ac_config_commands default"
25574 cat >confcache <<\_ACEOF
25575 # This file is a shell script that caches the results of configure
25576 # tests run on this system so they can be shared between configure
25577 # scripts and configure runs, see configure's option
--config-cache.
25578 # It is not useful on other systems. If it contains results you don't
25579 # want to keep, you may remove or edit it.
25581 # config.status only pays attention to the cache file if you give it
25582 # the --recheck option to rerun configure.
25584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25586 # following values.
25590 # The following way of writing the cache mishandles newlines in values,
25591 # but we know of no workaround that is simple, portable, and efficient.
25592 # So, we kill variables containing newlines.
25593 # Ultrix sh set writes to stderr and can't be redirected directly,
25594 # and sets the high bit in the cache file unless we assign to the vars.
25596 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25597 eval ac_val
=\$
$ac_var
25601 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25602 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25605 _ | IFS | as_nl
) ;; #(
25606 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25607 *) { eval $ac_var=; unset $ac_var;} ;;
25613 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25614 *${as_nl}ac_space
=\
*)
25615 # `set' does not quote correctly, so add quotes: double-quote
25616 # substitution turns \\\\ into \\, and sed turns \\ into \.
25619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25622 # `set' quotes correctly as required by POSIX, so do not add quotes.
25623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25634 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25636 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25637 if test -w "$cache_file"; then
25638 if test "x$cache_file" != "x/dev/null"; then
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25640 $as_echo "$as_me: updating cache $cache_file" >&6;}
25641 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
25642 cat confcache
>"$cache_file"
25644 case $cache_file in #(
25646 mv -f confcache
"$cache_file"$$
&&
25647 mv -f "$cache_file"$$
"$cache_file" ;; #(
25649 mv -f confcache
"$cache_file" ;;
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25655 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25660 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25661 # Let make expand exec_prefix.
25662 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25664 DEFS
=-DHAVE_CONFIG_H
25668 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25669 # 1. Remove the extension, and $U if already installed.
25670 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25671 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25672 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25673 # will be set to the directory where LIBOBJS objects are built.
25674 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25675 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25677 LIBOBJS
=$ac_libobjs
25679 LTLIBOBJS
=$ac_ltlibobjs
25682 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25683 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
25684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25686 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25687 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
25688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25690 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25691 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25694 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25695 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
25696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25698 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
25699 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
25700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25702 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
25703 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
25704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25706 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
25707 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
25708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25710 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
25711 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
25712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25714 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
25715 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
25716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25718 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25719 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
25720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25724 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25725 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25728 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25729 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25735 if test -n "$gl_LIBOBJS"; then
25736 # Remove the extension.
25737 sed_drop_objext
='s/\.o$//;s/\.obj$//'
25738 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25739 gl_libobjs
="$gl_libobjs $i.$ac_objext"
25740 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
25743 gl_LIBOBJS
=$gl_libobjs
25745 gl_LTLIBOBJS
=$gl_ltlibobjs
25751 if test -n "$gltests_LIBOBJS"; then
25752 # Remove the extension.
25753 sed_drop_objext
='s/\.o$//;s/\.obj$//'
25754 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25755 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
25756 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
25759 gltests_LIBOBJS
=$gltests_libobjs
25761 gltests_LTLIBOBJS
=$gltests_ltlibobjs
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25765 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25766 if test -n "$am_sleep_pid"; then
25767 # Hide warnings about reused PIDs.
25768 wait $am_sleep_pid 2>/dev
/null
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25771 $as_echo "done" >&6; }
25772 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25773 as_fn_error $?
"conditional \"AMDEP\" was never defined.
25774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25776 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25777 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
25778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25780 if test -n "$EXEEXT"; then
25782 am__EXEEXT_FALSE
='#'
25784 am__EXEEXT_TRUE
='#'
25789 : "${CONFIG_STATUS=./config.status}"
25791 ac_clean_files_save
=$ac_clean_files
25792 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25794 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25796 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25798 # Generated by $as_me.
25799 # Run this file to recreate the current configuration.
25800 # Compiler output produced by configure, useful for debugging
25801 # configure, is in config.log if it exists.
25804 ac_cs_recheck=false
25807 SHELL=\${CONFIG_SHELL-$SHELL}
25810 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25811 ## -------------------- ##
25812 ## M4sh Initialization. ##
25813 ## -------------------- ##
25815 # Be more Bourne compatible
25816 DUALCASE
=1; export DUALCASE
# for MKS sh
25817 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25821 # is contrary to our usage. Disable this feature.
25822 alias -g '${1+"$@"}'='"$@"'
25823 setopt NO_GLOB_SUBST
25825 case `(set -o) 2>/dev/null` in #(
25837 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25838 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25841 # Prefer a ksh shell builtin over an external printf program on Solaris,
25842 # but without wasting forks for bash or zsh.
25843 if test -z "$BASH_VERSION$ZSH_VERSION" \
25844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25845 as_echo='print
-r --'
25846 as_echo_n='print
-rn --'
25847 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25848 as_echo='printf %s
\n'
25849 as_echo_n='printf %s
'
25851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25852 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25853 as_echo_n='/usr
/ucb
/echo -n'
25855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25856 as_echo_n_body='eval
25860 expr "X$arg" : "X\\(.*\\)$as_nl";
25861 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25863 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25865 export as_echo_n_body
25866 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25868 export as_echo_body
25869 as_echo='sh
-c $as_echo_body as_echo
'
25872 # The user is always right.
25873 if test "${PATH_SEPARATOR+set}" != set; then
25875 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25876 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25883 # We need space, tab and new line, in precisely that order. Quoting is
25884 # there to prevent editors from complaining about space-tab.
25885 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25886 # splitting by setting IFS to empty value.)
25889 # Find who we are. Look in the path if we contain no directory separator.
25892 *[\\/]* ) as_myself=$0 ;;
25893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25894 for as_dir in $PATH
25897 test -z "$as_dir" && as_dir=.
25898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25904 # We did not find ourselves, most probably we were run as `sh COMMAND'
25905 # in which case we are not to be found in the path.
25906 if test "x$as_myself" = x
; then
25909 if test ! -f "$as_myself"; then
25910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25914 # Unset variables that we do not need and which cause bugs (e.g. in
25915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25916 # suppresses any "Segmentation fault" message there. '((' could
25917 # trigger a bug in pdksh 5.2.14.
25918 for as_var
in BASH_ENV ENV MAIL MAILPATH
25919 do eval test x\
${$as_var+set} = xset \
25920 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
25933 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
25936 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25937 # ----------------------------------------
25938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25940 # script with STATUS, using 1 if that was 0.
25943 as_status
=$1; test $as_status -eq 0 && as_status
=1
25945 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
25946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25948 $as_echo "$as_me: error: $2" >&2
25949 as_fn_exit
$as_status
25953 # as_fn_set_status STATUS
25954 # -----------------------
25955 # Set $? to STATUS, without forking.
25956 as_fn_set_status
()
25959 } # as_fn_set_status
25961 # as_fn_exit STATUS
25962 # -----------------
25963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25967 as_fn_set_status
$1
25973 # Portably unset VAR.
25976 { eval $1=; unset $1;}
25978 as_unset
=as_fn_unset
25979 # as_fn_append VAR VALUE
25980 # ----------------------
25981 # Append the text in VALUE to the end of the definition contained in VAR. Take
25982 # advantage of any shell optimizations that allow amortized linear growth over
25983 # repeated appends, instead of the typical quadratic growth present in naive
25985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
25986 eval 'as_fn_append ()
25997 # as_fn_arith ARG...
25998 # ------------------
25999 # Perform arithmetic evaluation on the ARGs, and store the result in the
26000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26001 # must be portable across $(()) and expr.
26002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26003 eval 'as_fn_arith ()
26010 as_val
=`expr "$@" || test $? -eq 1`
26015 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26016 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26022 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26023 as_basename
=basename
26028 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26034 as_me
=`$as_basename -- "$0" ||
26035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26036 X"$0" : 'X\(//\)$' \| \
26037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26039 sed '/^.*\/\([^/][^/]*\)\/*$/{
26053 # Avoid depending upon Character Ranges.
26054 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26055 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26056 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26057 as_cr_digits
='0123456789'
26058 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26060 ECHO_C
= ECHO_N
= ECHO_T
=
26061 case `echo -n x` in #(((((
26063 case `echo 'xy\c'` in
26064 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26066 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26073 rm -f conf$$ conf$$.exe conf$$.
file
26074 if test -d conf$$.dir
; then
26075 rm -f conf$$.dir
/conf$$.
file
26078 mkdir conf$$.dir
2>/dev
/null
26080 if (echo >conf$$.
file) 2>/dev
/null
; then
26081 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26083 # ... but there are two gotchas:
26084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26086 # In both cases, we have to default to `cp -pR'.
26087 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26089 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26097 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26098 rmdir conf$$.dir
2>/dev
/null
26103 # Create "$as_dir" as a directory, including parents if necessary.
26108 -*) as_dir
=.
/$as_dir;;
26110 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26114 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26115 *) as_qdir
=$as_dir;;
26117 as_dirs
="'$as_qdir' $as_dirs"
26118 as_dir
=`$as_dirname -- "$as_dir" ||
26119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26120 X"$as_dir" : 'X\(//\)[^/]' \| \
26121 X"$as_dir" : 'X\(//\)$' \| \
26122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26123 $as_echo X"$as_dir" |
26124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26128 /^X\(\/\/\)[^/].*/{
26141 test -d "$as_dir" && break
26143 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26144 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
26148 if mkdir
-p .
2>/dev
/null
; then
26149 as_mkdir_p
='mkdir -p "$as_dir"'
26151 test -d .
/-p && rmdir .
/-p
26156 # as_fn_executable_p FILE
26157 # -----------------------
26158 # Test if FILE is an executable regular file.
26159 as_fn_executable_p
()
26161 test -f "$1" && test -x "$1"
26162 } # as_fn_executable_p
26163 as_test_x
='test -x'
26164 as_executable_p
=as_fn_executable_p
26166 # Sed expression to map a string onto a valid CPP name.
26167 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26169 # Sed expression to map a string onto a valid variable name.
26170 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26174 ## ----------------------------------- ##
26175 ## Main body of $CONFIG_STATUS script. ##
26176 ## ----------------------------------- ##
26178 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26181 # Save the log message, to keep $0 and so on meaningful, and to
26182 # report actual input values of CONFIG_FILES etc. instead of their
26183 # values after options handling.
26185 This file was extended by libgnu $as_me UNUSED-VERSION, which was
26186 generated by GNU Autoconf 2.69. Invocation command line was
26188 CONFIG_FILES = $CONFIG_FILES
26189 CONFIG_HEADERS = $CONFIG_HEADERS
26190 CONFIG_LINKS = $CONFIG_LINKS
26191 CONFIG_COMMANDS = $CONFIG_COMMANDS
26194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26199 case $ac_config_files in *"
26200 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26203 case $ac_config_headers in *"
26204 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26209 # Files that config.status was made for.
26210 config_files="$ac_config_files"
26211 config_headers="$ac_config_headers"
26212 config_commands="$ac_config_commands"
26216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26218 \`$as_me' instantiates files and other configuration actions
26219 from templates according to the current configuration. Unless the files
26220 and actions are specified as TAGs, all are instantiated by default.
26222 Usage: $0 [OPTION]... [TAG]...
26224 -h, --help print this help, then exit
26225 -V, --version print version number and configuration settings, then exit
26226 --config print configuration, then exit
26227 -q, --quiet, --silent
26228 do not print progress messages
26229 -d, --debug don't remove temporary files
26230 --recheck update $as_me by reconfiguring in the same conditions
26231 --file=FILE[:TEMPLATE]
26232 instantiate the configuration file FILE
26233 --header=FILE[:TEMPLATE]
26234 instantiate the configuration header FILE
26236 Configuration files:
26239 Configuration headers:
26242 Configuration commands:
26245 Report bugs to the package provider."
26248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26249 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26251 libgnu config.status UNUSED-VERSION
26252 configured by $0, generated by GNU Autoconf 2.69,
26253 with options \\"\$ac_cs_config\\"
26255 Copyright (C) 2012 Free Software Foundation, Inc.
26256 This config.status script is free software; the Free Software Foundation
26257 gives unlimited permission to copy, distribute and modify it."
26264 test -n "\$AWK" || AWK=awk
26267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26268 # The default lists apply if the user does not specify any file.
26274 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26275 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26279 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26291 # Handling of the options.
26292 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26294 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26295 $as_echo "$ac_cs_version"; exit ;;
26296 --config |
--confi |
--conf |
--con |
--co |
--c )
26297 $as_echo "$ac_cs_config"; exit ;;
26298 --debug |
--debu |
--deb |
--de |
--d |
-d )
26300 --file |
--fil |
--fi |
--f )
26303 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26304 '') as_fn_error $?
"missing file argument" ;;
26306 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26307 ac_need_defaults
=false
;;
26308 --header |
--heade |
--head |
--hea )
26311 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26313 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26314 ac_need_defaults
=false
;;
26316 # Conflict between --help and --header
26317 as_fn_error $?
"ambiguous option: \`$1'
26318 Try \`$0 --help' for more information.";;
26319 --help |
--hel |
-h )
26320 $as_echo "$ac_cs_usage"; exit ;;
26321 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26322 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26325 # This is an error.
26326 -*) as_fn_error $?
"unrecognized option: \`$1'
26327 Try \`$0 --help' for more information." ;;
26329 *) as_fn_append ac_config_targets
" $1"
26330 ac_need_defaults
=false
;;
26336 ac_configure_extra_args
=
26338 if $ac_cs_silent; then
26340 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26345 if \$ac_cs_recheck; then
26346 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26348 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26349 CONFIG_SHELL='$SHELL'
26350 export CONFIG_SHELL
26355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26359 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26360 ## Running $as_me. ##
26366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26370 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26376 # Handling of arguments.
26377 for ac_config_target
in $ac_config_targets
26379 case $ac_config_target in
26380 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
26381 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26382 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26383 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
26384 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26386 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26391 # If the user did not use the arguments to specify the items to instantiate,
26392 # then the envvar interface is used. Set only those that are not.
26393 # We use the long form for the default assignment because of an extremely
26394 # bizarre bug on SunOS 4.1.3.
26395 if $ac_need_defaults; then
26396 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26397 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26398 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26401 # Have a temporary directory for convenience. Make it in the build tree
26402 # simply because there is no reason against having it here, and in addition,
26403 # creating and moving files from /tmp can sometimes cause problems.
26404 # Hook for its removal unless debugging.
26405 # Note that there is a small window in which the directory will not be cleaned:
26406 # after its creation but before its name has been assigned to `$tmp'.
26410 trap 'exit_status=$?
26411 : "${ac_tmp:=$tmp}"
26412 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26414 trap 'as_fn_exit 1' 1 2 13 15
26416 # Create a (secure) tmp directory for tmp files.
26419 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26423 tmp
=.
/conf$$
-$RANDOM
26424 (umask 077 && mkdir
"$tmp")
26425 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
26428 # Set up the scripts for CONFIG_FILES section.
26429 # No need to generate them if there are no CONFIG_FILES.
26430 # This happens for instance with `./config.status config.h'.
26431 if test -n "$CONFIG_FILES"; then
26434 ac_cr
=`echo X | tr X '\015'`
26435 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26436 # But we know of no other shell where ac_cr would be empty at this
26437 # point, so we can use a bashism as a fallback.
26438 if test "x$ac_cr" = x
; then
26439 eval ac_cr
=\$
\'\\r
\'
26441 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26442 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26445 ac_cs_awk_cr
=$ac_cr
26448 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26453 echo "cat >conf$$subs.awk <<_ACEOF" &&
26454 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26456 } >conf$$subs.sh ||
26457 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26458 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26460 for ac_last_try in false false false false false :; do
26461 . ./conf$$subs.sh ||
26462 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26464 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26465 if test $ac_delim_n = $ac_delim_num; then
26467 elif $ac_last_try; then
26468 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26470 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26473 rm -f conf$$subs.sh
26475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26476 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
26480 s/^/S["/; s
/!.
*/"]=/
26490 s/\(.\{148\}\)..*/\1/
26492 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26497 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26504 s/\(.\{148\}\)..*/\1/
26506 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26510 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26515 ' <conf$$subs.awk | sed '
26520 ' >>$CONFIG_STATUS || ac_write_fail=1
26521 rm -f conf$$subs.awk
26522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26524 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
26525 for (key in S) S_is_set[key] = 1
26531 nfields = split(line, field, "@
")
26533 len = length(field[1])
26534 for (i = 2; i < nfields; i++) {
26536 keylen = length(key)
26537 if (S_is_set[key]) {
26539 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26540 len += length(value) + length(field[++i])
26551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26552 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26553 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26556 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
26557 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
26560 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26561 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
26562 # trailing colons and then remove the whole line if VPATH becomes empty
26563 # (actually we leave an empty line to preserve line numbers).
26564 if test "x
$srcdir" = x.; then
26565 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26584 fi # test -n "$CONFIG_FILES"
26586 # Set up the scripts for CONFIG_HEADERS section.
26587 # No need to generate them if there are no CONFIG_HEADERS.
26588 # This happens for instance with `./config.status Makefile'.
26589 if test -n "$CONFIG_HEADERS"; then
26590 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
26594 # Transform confdefs.h into an awk script `defines.awk', embedded as
26595 # here-document in config.status, that substitutes the proper values into
26596 # config.h.in to produce config.h.
26598 # Create a delimiter string that does not exist in confdefs.h, to ease
26599 # handling of long lines.
26601 for ac_last_try in false false :; do
26602 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
26603 if test -z "$ac_tt"; then
26605 elif $ac_last_try; then
26606 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
26608 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26612 # For the awk script, D is an array of macro values keyed by name,
26613 # likewise P contains macro parameters if any. Preserve backslash
26614 # newline sequences.
26616 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26618 s/.\{148\}/&'"$ac_delim"'/g
26621 s/^[ ]*#[ ]*define[ ][ ]*/ /
26628 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26630 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26634 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26635 D["\
1"]=" \
3\\\\\\n
"\\/p
26637 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26642 s/.\{148\}/&'"$ac_delim"'/g
26647 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26650 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26652 ' <confdefs.h | sed '
26653 s/'"$ac_delim"'/"\\\
26654 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26657 for (key in D) D_is_set[key] = 1
26660 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26662 split(line, arg, " ")
26663 if (arg[1] == "#") {
26667 defundef
= substr
(arg
[1], 2)
26670 split(mac1
, mac2
, "(") #)
26672 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26673 if (D_is_set
[macro
]) {
26674 # Preserve the white space surrounding the "#".
26675 print prefix
"define", macro P
[macro
] D
[macro
]
26678 # Replace #undef with comments. This is necessary, for example,
26679 # in the case of _POSIX_SOURCE, which is predefined and required
26680 # on some systems where configure will not decide to define it.
26681 if (defundef
== "undef") {
26682 print
"/*", prefix defundef
, macro
, "*/"
26690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26691 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
26692 fi # test -n "$CONFIG_HEADERS"
26695 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26700 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26702 case $ac_mode$ac_tag in
26704 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26705 :[FH
]-) ac_tag
=-:-;;
26706 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26723 -) ac_f
="$ac_tmp/stdin";;
26724 *) # Look for the file first in the build tree, then in the source tree
26725 # (if the path is not absolute). The absolute path cannot be DOS-style,
26726 # because $ac_f cannot contain `:'.
26730 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26732 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26734 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26735 as_fn_append ac_file_inputs
" '$ac_f'"
26738 # Let's still pretend it is `configure' which instantiates (i.e., don't
26739 # use $as_me), people would be surprised to read:
26740 # /* config.h. Generated by config.status. */
26741 configure_input
='Generated from '`
26742 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26744 if test x
"$ac_file" != x-
; then
26745 configure_input
="$ac_file. $configure_input"
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26747 $as_echo "$as_me: creating $ac_file" >&6;}
26749 # Neutralize special characters interpreted by sed in replacement strings.
26750 case $configure_input in #(
26751 *\
&* |
*\|
* |
*\\* )
26752 ac_sed_conf_input
=`$as_echo "$configure_input" |
26753 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26754 *) ac_sed_conf_input
=$configure_input;;
26758 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
26759 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
26764 ac_dir
=`$as_dirname -- "$ac_file" ||
26765 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26766 X"$ac_file" : 'X\(//\)[^/]' \| \
26767 X"$ac_file" : 'X\(//\)$' \| \
26768 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26769 $as_echo X"$ac_file" |
26770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26774 /^X\(\/\/\)[^/].*/{
26787 as_dir
="$ac_dir"; as_fn_mkdir_p
26791 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26793 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26794 # A ".." for each directory in $ac_dir_suffix.
26795 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26796 case $ac_top_builddir_sub in
26797 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26798 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26801 ac_abs_top_builddir
=$ac_pwd
26802 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26803 # for backward compatibility:
26804 ac_top_builddir
=$ac_top_build_prefix
26807 .
) # We are building in place.
26809 ac_top_srcdir
=$ac_top_builddir_sub
26810 ac_abs_top_srcdir
=$ac_pwd ;;
26811 [\\/]* | ?
:[\\/]* ) # Absolute name.
26812 ac_srcdir
=$srcdir$ac_dir_suffix;
26813 ac_top_srcdir
=$srcdir
26814 ac_abs_top_srcdir
=$srcdir ;;
26815 *) # Relative name.
26816 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26817 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26818 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26820 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26830 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26831 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26833 ac_MKDIR_P
=$MKDIR_P
26835 [\\/$
]* | ?
:[\\/]* ) ;;
26836 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26841 # If the template does not know about datarootdir, expand it.
26842 # FIXME: This hack should be removed a few years after 2.60.
26843 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26854 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26855 *datarootdir
*) ac_datarootdir_seen
=yes;;
26856 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26858 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26861 ac_datarootdir_hack='
26862 s&@datadir@&$datadir&g
26863 s&@docdir@&$docdir&g
26864 s&@infodir@&$infodir&g
26865 s&@localedir@&$localedir&g
26866 s&@mandir@&$mandir&g
26867 s&\\\${datarootdir}&$datarootdir&g' ;;
26871 # Neutralize VPATH when `$srcdir' = `.'.
26872 # Shell code in configure.ac might set extrasub.
26873 # FIXME: do we really want to maintain this feature?
26874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26875 ac_sed_extra="$ac_vpsub
26878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26880 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26881 s|@configure_input@|
$ac_sed_conf_input|
;t t
26882 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26883 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26884 s
&@srcdir@
&$ac_srcdir&;t t
26885 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26886 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26887 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26888 s
&@builddir@
&$ac_builddir&;t t
26889 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26890 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26891 s
&@INSTALL@
&$ac_INSTALL&;t t
26892 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
26893 $ac_datarootdir_hack
26895 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
26896 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
26898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26899 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
26900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26901 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26903 which seems to be undefined. Please make sure it is defined" >&5
26904 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26905 which seems to be undefined. Please make sure it is defined" >&2;}
26907 rm -f "$ac_tmp/stdin"
26909 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26910 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26918 if test x"$ac_file" != x-; then
26920 $as_echo "/* $configure_input */" \
26921 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26922 } >"$ac_tmp/config.h" \
26923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26924 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26926 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26929 mv "$ac_tmp/config.h" "$ac_file" \
26930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26933 $as_echo "/* $configure_input */" \
26934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26935 || as_fn_error $? "could not create -" "$LINENO" 5
26937 # Compute "$ac_file"'s index
in $config_headers.
26940 for _am_header
in $config_headers :; do
26941 case $_am_header in
26942 $_am_arg |
$_am_arg:* )
26945 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
26948 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26949 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26950 X"$_am_arg" : 'X\(//\)[^/]' \| \
26951 X"$_am_arg" : 'X\(//\)$' \| \
26952 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26953 $as_echo X"$_am_arg" |
26954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26958 /^X\(\/\/\)[^/].*/{
26970 s/.*/./; q'`/stamp-h
$_am_stamp_count
26973 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26974 $as_echo "$as_me: executing $ac_file commands" >&6;}
26979 case $ac_file$ac_mode in
26980 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
26981 # Older Autoconf quotes --file arguments for eval, but not when files
26982 # are listed without --file. Let's play safe and only enable the eval
26983 # if we detect the quoting.
26984 case $CONFIG_FILES in
26985 *\'*) eval set x
"$CONFIG_FILES" ;;
26986 *) set x
$CONFIG_FILES ;;
26991 # Strip MF so we end up with the name of the file.
26992 mf
=`echo "$mf" | sed -e 's/:.*$//'`
26993 # Check whether this is an Automake generated Makefile or not.
26994 # We used to match only the files named 'Makefile.in', but
26995 # some people rename them; so instead we look at the file content.
26996 # Grep'ing the first line is not enough: some people post-process
26997 # each Makefile.in and add a new line on top of each file to say so.
26998 # Grep'ing the whole file is not good either: AIX grep has a line
26999 # limit of 2048, but all sed's we know have understand at least 4000.
27000 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
27001 dirpart
=`$as_dirname -- "$mf" ||
27002 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27003 X"$mf" : 'X\(//\)[^/]' \| \
27004 X"$mf" : 'X\(//\)$' \| \
27005 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27011 /^X\(\/\/\)[^/].*/{
27027 # Extract the definition of DEPDIR, am__include, and am__quote
27028 # from the Makefile without running 'make'.
27029 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27030 test -z "$DEPDIR" && continue
27031 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27032 test -z "$am__include" && continue
27033 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27034 # Find all dependency output files, they are included files with
27035 # $(DEPDIR) in their names. We invoke sed twice because it is the
27036 # simplest approach to changing $(DEPDIR) to its actual value in the
27038 for file in `sed -n "
27039 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27040 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27041 # Make sure the directory exists.
27042 test -f "$dirpart/$file" && continue
27043 fdir
=`$as_dirname -- "$file" ||
27044 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27045 X"$file" : 'X\(//\)[^/]' \| \
27046 X"$file" : 'X\(//\)$' \| \
27047 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27048 $as_echo X"$file" |
27049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27053 /^X\(\/\/\)[^/].*/{
27066 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
27067 # echo "creating $dirpart/$file"
27068 echo '# dummy' > "$dirpart/$file"
27074 case x
$CONFIG_HEADERS in
27075 xconfig.h
:config.
in)
27086 ac_clean_files
=$ac_clean_files_save
27088 test $ac_write_fail = 0 ||
27089 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
27092 # configure is writing to config.log, and then calls config.status.
27093 # config.status does its own redirection, appending to config.log.
27094 # Unfortunately, on DOS this fails, as config.log is still kept open
27095 # by configure, so config.status won't be able to write to it; its
27096 # output is simply discarded. So we exec the FD to /dev/null,
27097 # effectively closing config.log, so it can be properly (re)opened and
27098 # appended to by config.status. When coming back to configure, we
27099 # need to make the FD available again.
27100 if test "$no_create" != yes; then
27102 ac_config_status_args
=
27103 test "$silent" = yes &&
27104 ac_config_status_args
="$ac_config_status_args --quiet"
27106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27109 # would make configure fail if this is the last instruction.
27110 $ac_cs_success || as_fn_exit
1
27112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}