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
689 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
692 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
694 UNISTD_H_DEFINES_STRUCT_TIMESPEC
695 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
696 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
697 TIME_H_DEFINES_STRUCT_TIMESPEC
698 NEXT_AS_FIRST_DIRECTIVE_TIME_H
709 HAVE_DECL_LOCALTIME_R
717 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
720 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
722 NEXT_AS_FIRST_DIRECTIVE_STRING_H
724 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
726 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
728 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
730 GL_GENERATE_STDDEF_H_FALSE
731 GL_GENERATE_STDDEF_H_TRUE
737 GL_GENERATE_STDBOOL_H_FALSE
738 GL_GENERATE_STDBOOL_H_TRUE
740 GL_GENERATE_STDALIGN_H_FALSE
741 GL_GENERATE_STDALIGN_H_TRUE
743 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
746 REPLACE_PTHREAD_SIGMASK
748 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
749 HAVE_STRUCT_SIGACTION_SA_SIGACTION
755 HAVE_POSIX_SIGNALBLOCKING
758 GNULIB_SIGNAL_H_SIGPIPE
760 GNULIB_PTHREAD_SIGMASK
768 REPLACE_STDIO_WRITE_FUNCS
769 REPLACE_STDIO_READ_FUNCS
778 REPLACE_OBSTACK_PRINTF
803 HAVE_DECL_OBSTACK_PRINTF
809 GNULIB_VSPRINTF_POSIX
813 GNULIB_VFPRINTF_POSIX
820 GNULIB_STDIO_H_SIGPIPE
821 GNULIB_STDIO_H_NONBLOCKING
836 GNULIB_OBSTACK_PRINTF_POSIX
837 GNULIB_OBSTACK_PRINTF
862 GL_GENERATE_NETINET_IN_H_FALSE
863 GL_GENERATE_NETINET_IN_H_TRUE
866 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1036 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1038 LOCALCHARSET_TESTS_ENVIRONMENT
1040 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1042 UINT64_MAX_EQ_ULONG_MAX
1043 UINT32_MAX_LT_UINTMAX_MAX
1046 INT64_MAX_EQ_LONG_MAX
1047 INT32_MAX_LT_INTMAX_MAX
1058 GL_GENERATE_STDINT_H_FALSE
1059 GL_GENERATE_STDINT_H_TRUE
1071 HAVE_SIGNED_SIG_ATOMIC_T
1074 BITSIZEOF_SIG_ATOMIC_T
1077 APPLE_UNIVERSAL_BUILD
1079 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1084 HAVE_UNSIGNED_LONG_LONG_INT
1086 GL_GENERATE_LIMITS_H_FALSE
1087 GL_GENERATE_LIMITS_H_TRUE
1089 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1093 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1097 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1098 HAVE_STRUCT_SOCKADDR_STORAGE
1116 GL_GENERATE_GLOB_H_FALSE
1117 GL_GENERATE_GLOB_H_TRUE
1119 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1121 REPLACE_STRUCT_TIMEVAL
1122 REPLACE_GETTIMEOFDAY
1130 WINDOWS_64_BIT_ST_SIZE
1131 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1167 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1173 REPLACE_SIGNBIT_USING_GCC
1242 HAVE_DECL_REMAINDERL
1423 GL_GENERATE_FNMATCH_H_FALSE
1424 GL_GENERATE_FNMATCH_H_TRUE
1427 GL_GENERATE_FLOAT_H_FALSE
1428 GL_GENERATE_FLOAT_H_TRUE
1430 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1432 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1449 GL_GENERATE_ERRNO_H_FALSE
1450 GL_GENERATE_ERRNO_H_TRUE
1452 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1455 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1482 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1483 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1484 UNISTD_H_HAVE_WINSOCK2_H
1507 REPLACE_GETDTABLESIZE
1508 REPLACE_GETDOMAINNAME
1519 HAVE_DECL_SETHOSTNAME
1520 HAVE_DECL_GETUSERSHELL
1521 HAVE_DECL_GETPAGESIZE
1522 HAVE_DECL_GETLOGIN_R
1523 HAVE_DECL_GETDOMAINNAME
1562 GNULIB_UNISTD_H_SIGPIPE
1563 GNULIB_UNISTD_H_NONBLOCKING
1589 GNULIB_GETDTABLESIZE
1590 GNULIB_GETDOMAINNAME
1620 REPLACE_CANONICALIZE_FILE_NAME
1625 HAVE_STRUCT_RANDOM_DATA
1648 HAVE_DECL_GETLOADAVG
1649 HAVE_CANONICALIZE_FILE_NAME
1660 GNULIB_SECURE_GETENV
1663 GNULIB_REALLOC_POSIX
1681 GNULIB_CANONICALIZE_FILE_NAME
1687 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1690 PRAGMA_SYSTEM_HEADER
1691 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1700 GL_GENERATE_ALLOCA_H_FALSE
1701 GL_GENERATE_ALLOCA_H_TRUE
1704 GL_COND_LIBTOOL_FALSE
1705 GL_COND_LIBTOOL_TRUE
1733 MAINTAINER_MODE_FALSE
1734 MAINTAINER_MODE_TRUE
1762 program_transform_name
1775 enable_option_checking
1776 enable_maintainer_mode
1778 enable_dependency_tracking
1781 ac_precious_vars
='build_alias
1792 # Initialize some variables set by options.
1794 ac_init_version
=false
1795 ac_unrecognized_opts
=
1796 ac_unrecognized_sep
=
1797 # The variables have the same names as the options, with
1798 # dashes changed to underlines.
1799 cache_file
=/dev
/null
1806 program_transform_name
=s
,x
,x
,
1814 # Installation directory options.
1815 # These are left unexpanded so users can "make install exec_prefix=/foo"
1816 # and all the variables that are supposed to be based on exec_prefix
1817 # by default will actually change.
1818 # Use braces instead of parens because sh, perl, etc. also accept them.
1819 # (The list follows the same order as the GNU Coding Standards.)
1820 bindir
='${exec_prefix}/bin'
1821 sbindir
='${exec_prefix}/sbin'
1822 libexecdir
='${exec_prefix}/libexec'
1823 datarootdir
='${prefix}/share'
1824 datadir
='${datarootdir}'
1825 sysconfdir
='${prefix}/etc'
1826 sharedstatedir
='${prefix}/com'
1827 localstatedir
='${prefix}/var'
1828 includedir
='${prefix}/include'
1829 oldincludedir
='/usr/include'
1830 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1831 infodir
='${datarootdir}/info'
1836 libdir
='${exec_prefix}/lib'
1837 localedir
='${datarootdir}/locale'
1838 mandir
='${datarootdir}/man'
1844 # If the previous option needs an argument, assign it.
1845 if test -n "$ac_prev"; then
1846 eval $ac_prev=\
$ac_option
1852 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1857 # Accept the important Cygnus configure options, so we can diagnose typos.
1859 case $ac_dashdash$ac_option in
1863 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1865 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1866 bindir
=$ac_optarg ;;
1868 -build |
--build |
--buil |
--bui |
--bu)
1869 ac_prev
=build_alias
;;
1870 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1871 build_alias
=$ac_optarg ;;
1873 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1874 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1875 ac_prev
=cache_file
;;
1876 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1877 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1878 cache_file
=$ac_optarg ;;
1880 --config-cache |
-C)
1881 cache_file
=config.cache
;;
1883 -datadir |
--datadir |
--datadi |
--datad)
1885 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1886 datadir
=$ac_optarg ;;
1888 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1889 |
--dataroo |
--dataro |
--datar)
1890 ac_prev
=datarootdir
;;
1891 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1892 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1893 datarootdir
=$ac_optarg ;;
1895 -disable-* |
--disable-*)
1896 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1897 # Reject names that are not valid shell variable names.
1898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1899 as_fn_error $?
"invalid feature name: $ac_useropt"
1900 ac_useropt_orig
=$ac_useropt
1901 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1902 case $ac_user_opts in
1904 "enable_
$ac_useropt"
1906 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1907 ac_unrecognized_sep
=', ';;
1909 eval enable_
$ac_useropt=no
;;
1911 -docdir |
--docdir |
--docdi |
--doc |
--do)
1913 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1914 docdir
=$ac_optarg ;;
1916 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1918 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1919 dvidir
=$ac_optarg ;;
1921 -enable-* |
--enable-*)
1922 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1923 # Reject names that are not valid shell variable names.
1924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1925 as_fn_error $?
"invalid feature name: $ac_useropt"
1926 ac_useropt_orig
=$ac_useropt
1927 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1928 case $ac_user_opts in
1930 "enable_
$ac_useropt"
1932 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1933 ac_unrecognized_sep
=', ';;
1935 eval enable_
$ac_useropt=\
$ac_optarg ;;
1937 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1938 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1939 |
--exec |
--exe |
--ex)
1940 ac_prev
=exec_prefix
;;
1941 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1942 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1943 |
--exec=* |
--exe=* |
--ex=*)
1944 exec_prefix
=$ac_optarg ;;
1946 -gas |
--gas |
--ga |
--g)
1947 # Obsolete; use --with-gas.
1950 -help |
--help |
--hel |
--he |
-h)
1951 ac_init_help
=long
;;
1952 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1953 ac_init_help
=recursive
;;
1954 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1955 ac_init_help
=short
;;
1957 -host |
--host |
--hos |
--ho)
1958 ac_prev
=host_alias
;;
1959 -host=* |
--host=* |
--hos=* |
--ho=*)
1960 host_alias
=$ac_optarg ;;
1962 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1964 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1966 htmldir
=$ac_optarg ;;
1968 -includedir |
--includedir |
--includedi |
--included |
--include \
1969 |
--includ |
--inclu |
--incl |
--inc)
1970 ac_prev
=includedir
;;
1971 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1972 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1973 includedir
=$ac_optarg ;;
1975 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1977 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1978 infodir
=$ac_optarg ;;
1980 -libdir |
--libdir |
--libdi |
--libd)
1982 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1983 libdir
=$ac_optarg ;;
1985 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1986 |
--libexe |
--libex |
--libe)
1987 ac_prev
=libexecdir
;;
1988 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1989 |
--libexe=* |
--libex=* |
--libe=*)
1990 libexecdir
=$ac_optarg ;;
1992 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1993 ac_prev
=localedir
;;
1994 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1995 localedir
=$ac_optarg ;;
1997 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1998 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1999 ac_prev
=localstatedir
;;
2000 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2001 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2002 localstatedir
=$ac_optarg ;;
2004 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2006 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2007 mandir
=$ac_optarg ;;
2009 -nfp |
--nfp |
--nf)
2010 # Obsolete; use --without-fp.
2013 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2014 |
--no-cr |
--no-c |
-n)
2017 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2018 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2021 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2022 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2023 |
--oldin |
--oldi |
--old |
--ol |
--o)
2024 ac_prev
=oldincludedir
;;
2025 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2026 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2027 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2028 oldincludedir
=$ac_optarg ;;
2030 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2032 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2033 prefix
=$ac_optarg ;;
2035 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2036 |
--program-pre |
--program-pr |
--program-p)
2037 ac_prev
=program_prefix
;;
2038 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2039 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2040 program_prefix
=$ac_optarg ;;
2042 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2043 |
--program-suf |
--program-su |
--program-s)
2044 ac_prev
=program_suffix
;;
2045 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2046 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2047 program_suffix
=$ac_optarg ;;
2049 -program-transform-name |
--program-transform-name \
2050 |
--program-transform-nam |
--program-transform-na \
2051 |
--program-transform-n |
--program-transform- \
2052 |
--program-transform |
--program-transfor \
2053 |
--program-transfo |
--program-transf \
2054 |
--program-trans |
--program-tran \
2055 |
--progr-tra |
--program-tr |
--program-t)
2056 ac_prev
=program_transform_name
;;
2057 -program-transform-name=* |
--program-transform-name=* \
2058 |
--program-transform-nam=* |
--program-transform-na=* \
2059 |
--program-transform-n=* |
--program-transform-=* \
2060 |
--program-transform=* |
--program-transfor=* \
2061 |
--program-transfo=* |
--program-transf=* \
2062 |
--program-trans=* |
--program-tran=* \
2063 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2064 program_transform_name
=$ac_optarg ;;
2066 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2068 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2069 pdfdir
=$ac_optarg ;;
2071 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2073 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2076 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2077 |
-silent |
--silent |
--silen |
--sile |
--sil)
2080 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2082 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2084 sbindir
=$ac_optarg ;;
2086 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2087 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2088 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2090 ac_prev
=sharedstatedir
;;
2091 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2092 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2093 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2095 sharedstatedir
=$ac_optarg ;;
2097 -site |
--site |
--sit)
2099 -site=* |
--site=* |
--sit=*)
2102 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2104 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2105 srcdir
=$ac_optarg ;;
2107 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2108 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2109 ac_prev
=sysconfdir
;;
2110 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2111 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2112 sysconfdir
=$ac_optarg ;;
2114 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2115 ac_prev
=target_alias
;;
2116 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2117 target_alias
=$ac_optarg ;;
2119 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2122 -version |
--version |
--versio |
--versi |
--vers |
-V)
2123 ac_init_version
=: ;;
2126 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2127 # Reject names that are not valid shell variable names.
2128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2129 as_fn_error $?
"invalid package name: $ac_useropt"
2130 ac_useropt_orig
=$ac_useropt
2131 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2132 case $ac_user_opts in
2136 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2137 ac_unrecognized_sep
=', ';;
2139 eval with_
$ac_useropt=\
$ac_optarg ;;
2141 -without-* |
--without-*)
2142 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2143 # Reject names that are not valid shell variable names.
2144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2145 as_fn_error $?
"invalid package name: $ac_useropt"
2146 ac_useropt_orig
=$ac_useropt
2147 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2148 case $ac_user_opts in
2152 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2153 ac_unrecognized_sep
=', ';;
2155 eval with_
$ac_useropt=no
;;
2158 # Obsolete; use --with-x.
2161 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2162 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2163 ac_prev
=x_includes
;;
2164 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2165 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2166 x_includes
=$ac_optarg ;;
2168 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2169 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2170 ac_prev
=x_libraries
;;
2171 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2172 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2173 x_libraries
=$ac_optarg ;;
2175 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2176 Try \`$0 --help' for more information"
2180 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2181 # Reject names that are not valid shell variable names.
2182 case $ac_envvar in #(
2183 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2184 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2186 eval $ac_envvar=\
$ac_optarg
2187 export $ac_envvar ;;
2190 # FIXME: should be removed in autoconf 3.0.
2191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2200 if test -n "$ac_prev"; then
2201 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2202 as_fn_error $?
"missing argument to $ac_option"
2205 if test -n "$ac_unrecognized_opts"; then
2206 case $enable_option_checking in
2208 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2213 # Check all directory arguments for consistency.
2214 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2215 datadir sysconfdir sharedstatedir localstatedir includedir \
2216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2217 libdir localedir mandir
2219 eval ac_val
=\$
$ac_var
2220 # Remove trailing slashes.
2223 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2224 eval $ac_var=\
$ac_val;;
2226 # Be sure to have absolute directory names.
2228 [\\/$
]* | ?
:[\\/]* ) continue;;
2229 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2231 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2234 # There might be people who depend on the old broken behavior: `$host'
2235 # used to hold the argument of --host etc.
2236 # FIXME: To remove some day.
2239 target
=$target_alias
2241 # FIXME: To remove some day.
2242 if test "x$host_alias" != x
; then
2243 if test "x$build_alias" = x
; then
2244 cross_compiling
=maybe
2245 elif test "x$build_alias" != "x$host_alias"; then
2251 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2253 test "$silent" = yes && exec 6>/dev
/null
2256 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2257 ac_ls_di
=`ls -di .` &&
2258 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2259 as_fn_error $?
"working directory cannot be determined"
2260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2261 as_fn_error $?
"pwd does not report name of working directory"
2264 # Find the source files, if location was not specified.
2265 if test -z "$srcdir"; then
2266 ac_srcdir_defaulted
=yes
2267 # Try the directory containing this script, then the parent directory.
2268 ac_confdir
=`$as_dirname -- "$as_myself" ||
2269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2270 X"$as_myself" : 'X\(//\)[^/]' \| \
2271 X"$as_myself" : 'X\(//\)$' \| \
2272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2273 $as_echo X"$as_myself" |
2274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2292 if test ! -r "$srcdir/$ac_unique_file"; then
2296 ac_srcdir_defaulted
=no
2298 if test ! -r "$srcdir/$ac_unique_file"; then
2299 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2300 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2302 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2306 # When building in place, set srcdir=.
2307 if test "$ac_abs_confdir" = "$ac_pwd"; then
2310 # Remove unnecessary trailing slashes from srcdir.
2311 # Double slashes in file names in object file debugging info
2312 # mess up M-x gdb in Emacs.
2314 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2316 for ac_var
in $ac_precious_vars; do
2317 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2318 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2319 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2320 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2324 # Report the --help message.
2326 if test "$ac_init_help" = "long"; then
2327 # Omit some internal or obsolete options to make the list less imposing.
2328 # This message is too long to be a string in the A/UX 3.1 sh.
2330 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2332 Usage: $0 [OPTION]... [VAR=VALUE]...
2334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2335 VAR=VALUE. See below for descriptions of some of the useful variables.
2337 Defaults for the options are specified in brackets.
2340 -h, --help display this help and exit
2341 --help=short display options specific to this package
2342 --help=recursive display the short help of all the included packages
2343 -V, --version display version information and exit
2344 -q, --quiet, --silent do not print \`checking ...' messages
2345 --cache-file=FILE cache test results in FILE [disabled]
2346 -C, --config-cache alias for \`--cache-file=config.cache'
2347 -n, --no-create do not create output files
2348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2350 Installation directories:
2351 --prefix=PREFIX install architecture-independent files in PREFIX
2352 [$ac_default_prefix]
2353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2356 By default, \`make install' will install all the files in
2357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2359 for instance \`--prefix=\$HOME'.
2361 For better control, use the options below.
2363 Fine tuning of the installation directories:
2364 --bindir=DIR user executables [EPREFIX/bin]
2365 --sbindir=DIR system admin executables [EPREFIX/sbin]
2366 --libexecdir=DIR program executables [EPREFIX/libexec]
2367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2370 --libdir=DIR object code libraries [EPREFIX/lib]
2371 --includedir=DIR C header files [PREFIX/include]
2372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2375 --infodir=DIR info documentation [DATAROOTDIR/info]
2376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2377 --mandir=DIR man documentation [DATAROOTDIR/man]
2378 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2379 --htmldir=DIR html documentation [DOCDIR]
2380 --dvidir=DIR dvi documentation [DOCDIR]
2381 --pdfdir=DIR pdf documentation [DOCDIR]
2382 --psdir=DIR ps documentation [DOCDIR]
2388 --program-prefix=PREFIX prepend PREFIX to installed program names
2389 --program-suffix=SUFFIX append SUFFIX to installed program names
2390 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2393 --build=BUILD configure
for building on BUILD
[guessed
]
2394 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2395 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2399 if test -n "$ac_init_help"; then
2400 case $ac_init_help in
2401 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2406 --disable-option-checking ignore unrecognized
--enable/--with options
2407 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2408 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2409 --enable-maintainer-mode
2410 enable make rules and dependencies not useful
(and
2411 sometimes confusing
) to the casual installer
2412 --disable-largefile omit support
for large files
2413 --enable-dependency-tracking
2414 do not reject slow dependency extractors
2415 --disable-dependency-tracking
2416 speeds up one-time build
2417 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2418 --disable-silent-rules verbose build output
(undo
: "make V=0")
2420 Some influential environment variables
:
2421 CC C compiler
command
2422 CFLAGS C compiler flags
2423 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2424 nonstandard directory
<lib dir
>
2425 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2426 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2427 you have headers
in a nonstandard directory
<include dir
>
2430 Use these variables to override the choices made by
`configure' or to help
2431 it to find libraries and programs with nonstandard names/locations.
2433 Report bugs to the package provider.
2438 if test "$ac_init_help" = "recursive"; then
2439 # If there are subdirs, report their specific --help.
2440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2441 test -d "$ac_dir" ||
2442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2449 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2450 # A ".." for each directory in $ac_dir_suffix.
2451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2452 case $ac_top_builddir_sub in
2453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2457 ac_abs_top_builddir=$ac_pwd
2458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2459 # for backward compatibility:
2460 ac_top_builddir=$ac_top_build_prefix
2463 .) # We are building in place.
2465 ac_top_srcdir=$ac_top_builddir_sub
2466 ac_abs_top_srcdir=$ac_pwd ;;
2467 [\\/]* | ?:[\\/]* ) # Absolute name.
2468 ac_srcdir=$srcdir$ac_dir_suffix;
2469 ac_top_srcdir=$srcdir
2470 ac_abs_top_srcdir=$srcdir ;;
2472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2473 ac_top_srcdir=$ac_top_build_prefix$srcdir
2474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2478 cd "$ac_dir" || { ac_status=$?; continue; }
2479 # Check for guested configure.
2480 if test -f "$ac_srcdir/configure.gnu"; then
2482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2483 elif test -f "$ac_srcdir/configure"; then
2485 $SHELL "$ac_srcdir/configure" --help=recursive
2487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2489 cd "$ac_pwd" || { ac_status=$?; break; }
2493 test -n "$ac_init_help" && exit $ac_status
2494 if $ac_init_version; then
2496 libgnu configure UNUSED-VERSION
2497 generated by GNU Autoconf 2.69
2499 Copyright (C) 2012 Free Software Foundation, Inc.
2500 This configure script is free software; the Free Software Foundation
2501 gives unlimited permission to copy, distribute and modify it.
2506 ## ------------------------ ##
2507 ## Autoconf initialization. ##
2508 ## ------------------------ ##
2510 # ac_fn_c_try_compile LINENO
2511 # --------------------------
2512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2513 ac_fn_c_try_compile ()
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 rm -f conftest.$ac_objext
2517 if { { ac_try="$ac_compile"
2519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2520 *) ac_try_echo
=$ac_try;;
2522 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2523 $as_echo "$ac_try_echo"; } >&5
2524 (eval "$ac_compile") 2>conftest.err
2526 if test -s conftest.err
; then
2527 grep -v '^ *+' conftest.err
>conftest.er1
2528 cat conftest.er1
>&5
2529 mv -f conftest.er1 conftest.err
2531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2532 test $ac_status = 0; } && {
2533 test -z "$ac_c_werror_flag" ||
2534 test ! -s conftest.err
2535 } && test -s conftest.
$ac_objext; then :
2538 $as_echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.
$ac_ext >&5
2543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2544 as_fn_set_status
$ac_retval
2546 } # ac_fn_c_try_compile
2548 # ac_fn_c_try_cpp LINENO
2549 # ----------------------
2550 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2553 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2554 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2560 $as_echo "$ac_try_echo"; } >&5
2561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2563 if test -s conftest.err; then
2564 grep -v '^ *+' conftest.err >conftest.er1
2565 cat conftest.er1 >&5
2566 mv -f conftest.er1 conftest.err
2568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569 test $ac_status = 0; } > conftest.i && {
2570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2571 test ! -s conftest.err
2575 $as_echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2581 as_fn_set_status $ac_retval
2585 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2586 # -------------------------------------------------------
2587 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2588 # the include files in INCLUDES and setting the cache variable VAR
2590 ac_fn_c_check_header_mongrel ()
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 if eval \${$3+:} false; then :
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2595 $as_echo_n "checking for $2... " >&6; }
2596 if eval \${$3+:} false; then :
2597 $as_echo_n "(cached) " >&6
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 $as_echo "$ac_res" >&6; }
2603 # Is the header compilable?
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2605 $as_echo_n "checking $2 usability... " >&6; }
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h. */
2611 if ac_fn_c_try_compile "$LINENO"; then :
2612 ac_header_compiler=yes
2614 ac_header_compiler=no
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2618 $as_echo "$ac_header_compiler" >&6; }
2620 # Is the header present?
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2622 $as_echo_n "checking $2 presence... " >&6; }
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2627 if ac_fn_c_try_cpp "$LINENO"; then :
2628 ac_header_preproc=yes
2630 ac_header_preproc=no
2632 rm -f conftest.err conftest.i conftest.$ac_ext
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2634 $as_echo "$ac_header_preproc" >&6; }
2636 # So? What about this header?
2637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2640 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2642 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2646 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2648 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2650 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2652 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2658 $as_echo_n "checking for $2... " >&6; }
2659 if eval \${$3+:} false; then :
2660 $as_echo_n "(cached) " >&6
2662 eval "$3=\$ac_header_compiler"
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2666 $as_echo "$ac_res" >&6; }
2668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2670 } # ac_fn_c_check_header_mongrel
2672 # ac_fn_c_try_run LINENO
2673 # ----------------------
2674 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2675 # that executables *can* be run.
2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679 if { { ac_try="$ac_link"
2681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2682 *) ac_try_echo
=$ac_try;;
2684 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685 $as_echo "$ac_try_echo"; } >&5
2686 (eval "$ac_link") 2>&5
2688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2690 { { case "(($ac_try" in
2691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2695 $as_echo "$ac_try_echo"; } >&5
2696 (eval "$ac_try") 2>&5
2698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2699 test $ac_status = 0; }; }; then :
2702 $as_echo "$as_me: program exited with status $ac_status" >&5
2703 $as_echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2706 ac_retval=$ac_status
2708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2710 as_fn_set_status $ac_retval
2714 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2715 # -------------------------------------------------------
2716 # Tests whether HEADER exists and can be compiled using the include files in
2717 # INCLUDES, setting the cache variable VAR accordingly.
2718 ac_fn_c_check_header_compile ()
2720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2722 $as_echo_n "checking for $2... " >&6; }
2723 if eval \${$3+:} false; then :
2724 $as_echo_n "(cached) " >&6
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2731 if ac_fn_c_try_compile "$LINENO"; then :
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2740 $as_echo "$ac_res" >&6; }
2741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2743 } # ac_fn_c_check_header_compile
2745 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2746 # -------------------------------------------
2747 # Tests whether TYPE exists after having included INCLUDES, setting cache
2748 # variable VAR accordingly.
2749 ac_fn_c_check_type ()
2751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2753 $as_echo_n "checking for $2... " >&6; }
2754 if eval \${$3+:} false; then :
2755 $as_echo_n "(cached) " >&6
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2770 if ac_fn_c_try_compile "$LINENO"; then :
2771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772 /* end confdefs.h. */
2783 if ac_fn_c_try_compile "$LINENO"; then :
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2794 $as_echo "$ac_res" >&6; }
2795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2797 } # ac_fn_c_check_type
2799 # ac_fn_c_try_link LINENO
2800 # -----------------------
2801 # Try to link conftest.$ac_ext, and return whether this succeeded.
2804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2805 rm -f conftest.$ac_objext conftest$ac_exeext
2806 if { { ac_try="$ac_link"
2808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2809 *) ac_try_echo
=$ac_try;;
2811 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813 (eval "$ac_link") 2>conftest.err
2815 if test -s conftest.err
; then
2816 grep -v '^ *+' conftest.err
>conftest.er1
2817 cat conftest.er1
>&5
2818 mv -f conftest.er1 conftest.err
2820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821 test $ac_status = 0; } && {
2822 test -z "$ac_c_werror_flag" ||
2823 test ! -s conftest.err
2824 } && test -s conftest
$ac_exeext && {
2825 test "$cross_compiling" = yes ||
2826 test -x conftest
$ac_exeext
2830 $as_echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.
$ac_ext >&5
2835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2837 # interfere with the next link command; also delete a directory that is
2838 # left behind by Apple's compiler. We do this before executing the actions.
2839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2841 as_fn_set_status
$ac_retval
2843 } # ac_fn_c_try_link
2845 # ac_fn_c_check_func LINENO FUNC VAR
2846 # ----------------------------------
2847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2848 ac_fn_c_check_func
()
2850 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2852 $as_echo_n "checking for $2... " >&6; }
2853 if eval \
${$3+:} false
; then :
2854 $as_echo_n "(cached) " >&6
2856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2857 /* end confdefs.h. */
2858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2860 #define $2 innocuous_$2
2862 /* System header to define __stub macros and hopefully few prototypes,
2863 which can conflict with char $2 (); below.
2864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2865 <limits.h> exists even on freestanding compilers. */
2868 # include <limits.h>
2870 # include <assert.h>
2875 /* Override any GCC internal prototype to avoid an error.
2876 Use char because int might match the return type of a GCC
2877 builtin and then its argument prototype would still apply. */
2882 /* The GNU C library defines this for functions which it implements
2883 to always fail with ENOSYS. Some functions are actually named
2884 something starting with __ and the normal name is an alias. */
2885 #if defined __stub_$2 || defined __stub___$2
2897 if ac_fn_c_try_link
"$LINENO"; then :
2902 rm -f core conftest.err conftest.
$ac_objext \
2903 conftest
$ac_exeext conftest.
$ac_ext
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2907 $as_echo "$ac_res" >&6; }
2908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2910 } # ac_fn_c_check_func
2912 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2913 # ---------------------------------------------
2914 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2916 ac_fn_c_check_decl
()
2918 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2919 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2920 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2922 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2923 if eval \
${$3+:} false
; then :
2924 $as_echo_n "(cached) " >&6
2926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2932 #ifndef $as_decl_name
2934 (void) $as_decl_use;
2936 (void) $as_decl_name;
2944 if ac_fn_c_try_compile
"$LINENO"; then :
2949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2953 $as_echo "$ac_res" >&6; }
2954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2956 } # ac_fn_c_check_decl
2958 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2959 # --------------------------------------------
2960 # Tries to find the compile-time value of EXPR in a program that includes
2961 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2963 ac_fn_c_compute_int
()
2965 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2966 if test "$cross_compiling" = yes; then
2967 # Depending upon the size, compute the lo and hi bounds.
2968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2969 /* end confdefs.h. */
2974 static int test_array [1 - 2 * !(($2) >= 0)];
2976 return test_array [0];
2982 if ac_fn_c_try_compile
"$LINENO"; then :
2985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2991 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2993 return test_array [0];
2999 if ac_fn_c_try_compile
"$LINENO"; then :
3000 ac_hi
=$ac_mid; break
3002 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3003 if test $ac_lo -le $ac_mid; then
3007 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3018 static int test_array [1 - 2 * !(($2) < 0)];
3020 return test_array [0];
3026 if ac_fn_c_try_compile
"$LINENO"; then :
3029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3035 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3037 return test_array [0];
3043 if ac_fn_c_try_compile
"$LINENO"; then :
3044 ac_lo
=$ac_mid; break
3046 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3047 if test $ac_mid -le $ac_hi; then
3051 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3061 # Binary search between lo and hi bounds.
3062 while test "x$ac_lo" != "x$ac_hi"; do
3063 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3070 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3072 return test_array [0];
3078 if ac_fn_c_try_compile
"$LINENO"; then :
3081 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3086 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3093 static long int longval () { return $2; }
3094 static unsigned long int ulongval () { return $2; }
3101 FILE *f = fopen ("conftest.val", "w");
3106 long int i = longval ();
3109 fprintf (f, "%ld", i);
3113 unsigned long int i = ulongval ();
3116 fprintf (f, "%lu", i);
3118 /* Do not output a trailing newline, as this causes \r\n confusion
3119 on some platforms. */
3120 return ferror (f) || fclose (f) != 0;
3126 if ac_fn_c_try_run
"$LINENO"; then :
3127 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3131 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3132 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3137 as_fn_set_status
$ac_retval
3139 } # ac_fn_c_compute_int
3141 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3142 # ----------------------------------------------------
3143 # Tries to find if the field MEMBER exists in type AGGR, after including
3144 # INCLUDES, setting cache variable VAR accordingly.
3145 ac_fn_c_check_member
()
3147 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3149 $as_echo_n "checking for $2.$3... " >&6; }
3150 if eval \
${$4+:} false
; then :
3151 $as_echo_n "(cached) " >&6
3153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3166 if ac_fn_c_try_compile
"$LINENO"; then :
3169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3176 if (sizeof ac_aggr.$3)
3182 if ac_fn_c_try_compile
"$LINENO"; then :
3187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3193 $as_echo "$ac_res" >&6; }
3194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3196 } # ac_fn_c_check_member
3197 cat >config.log
<<_ACEOF
3198 This file contains any messages produced by compilers while
3199 running configure, to aid debugging if configure makes a mistake.
3201 It was created by libgnu $as_me UNUSED-VERSION, which was
3202 generated by GNU Autoconf 2.69. Invocation command line was
3214 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3215 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3216 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3217 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3218 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3220 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3221 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3223 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3224 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3226 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3227 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3228 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3229 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir
=.
3238 $as_echo "PATH: $as_dir"
3254 # Keep a trace of the command line.
3255 # Strip out --no-create and --no-recursion so they do not pile up.
3256 # Strip out --silent because we don't want to record it for future runs.
3257 # Also quote any args containing shell meta-characters.
3258 # Make two passes to allow for proper duplicate-argument suppression.
3262 ac_must_keep_next
=false
3268 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3269 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3270 |
-silent |
--silent |
--silen |
--sile |
--sil)
3273 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3276 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3278 as_fn_append ac_configure_args1
" '$ac_arg'"
3279 if test $ac_must_keep_next = true
; then
3280 ac_must_keep_next
=false
# Got value, back to normal.
3283 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3284 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3285 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3286 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3287 case "$ac_configure_args0 " in
3288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3291 -* ) ac_must_keep_next
=true
;;
3294 as_fn_append ac_configure_args
" '$ac_arg'"
3299 { ac_configure_args0
=; unset ac_configure_args0
;}
3300 { ac_configure_args1
=; unset ac_configure_args1
;}
3302 # When interrupted or exit'd, cleanup temporary files, and complete
3303 # config.log. We remove comments because anyway the quotes in there
3304 # would cause problems or look ugly.
3305 # WARNING: Use '\'' to represent an apostrophe within the trap.
3306 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3307 trap 'exit_status=$?
3308 # Save into config.log some information that might help in debugging.
3312 $as_echo "## ---------------- ##
3313 ## Cache variables. ##
3314 ## ---------------- ##"
3316 # The following way of writing the cache mishandles newlines in values,
3318 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3319 eval ac_val=\$$ac_var
3323 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3324 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3327 _ | IFS | as_nl) ;; #(
3328 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3329 *) { eval $ac_var=; unset $ac_var;} ;;
3334 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3335 *${as_nl}ac_space=\ *)
3337 "s/'\''/'\''\\\\'\'''\''/g;
3338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3348 $as_echo "## ----------------- ##
3349 ## Output variables. ##
3350 ## ----------------- ##"
3352 for ac_var in $ac_subst_vars
3354 eval ac_val=\$$ac_var
3356 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3358 $as_echo "$ac_var='\''$ac_val'\''"
3362 if test -n "$ac_subst_files"; then
3363 $as_echo "## ------------------- ##
3364 ## File substitutions. ##
3365 ## ------------------- ##"
3367 for ac_var
in $ac_subst_files
3369 eval ac_val
=\$
$ac_var
3371 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3373 $as_echo "$ac_var='\''$ac_val'\''"
3378 if test -s confdefs.h; then
3379 $as_echo "## ----------- ##
3386 test "$ac_signal" != 0 &&
3387 $as_echo "$as_me: caught signal $ac_signal"
3388 $as_echo "$as_me: exit $exit_status"
3390 rm -f core *.core core.conftest.* &&
3391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3394 for ac_signal
in 1 2 13 15; do
3395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3400 rm -f -r conftest
* confdefs.h
3402 $as_echo "/* confdefs.h */" > confdefs.h
3404 # Predefined preprocessor variables.
3406 cat >>confdefs.h
<<_ACEOF
3407 #define PACKAGE_NAME "$PACKAGE_NAME"
3410 cat >>confdefs.h
<<_ACEOF
3411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3414 cat >>confdefs.h
<<_ACEOF
3415 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3418 cat >>confdefs.h
<<_ACEOF
3419 #define PACKAGE_STRING "$PACKAGE_STRING"
3422 cat >>confdefs.h
<<_ACEOF
3423 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3426 cat >>confdefs.h
<<_ACEOF
3427 #define PACKAGE_URL "$PACKAGE_URL"
3431 # Let the site file select an alternate cache file if it wants to.
3432 # Prefer an explicitly selected file to automatically selected ones.
3435 if test -n "$CONFIG_SITE"; then
3436 # We do not want a PATH search for config.site.
3437 case $CONFIG_SITE in #((
3438 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3439 */*) ac_site_file1
=$CONFIG_SITE;;
3440 *) ac_site_file1
=.
/$CONFIG_SITE;;
3442 elif test "x$prefix" != xNONE
; then
3443 ac_site_file1
=$prefix/share
/config.site
3444 ac_site_file2
=$prefix/etc
/config.site
3446 ac_site_file1
=$ac_default_prefix/share
/config.site
3447 ac_site_file2
=$ac_default_prefix/etc
/config.site
3449 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3451 test "x$ac_site_file" = xNONE
&& continue
3452 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3454 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3455 sed 's/^/| /' "$ac_site_file" >&5
3457 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error $?
"failed to load site script $ac_site_file
3460 See \`config.log' for more details" "$LINENO" 5; }
3464 if test -r "$cache_file"; then
3465 # Some versions of bash will fail to source /dev/null (special files
3466 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3467 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3469 $as_echo "$as_me: loading cache $cache_file" >&6;}
3471 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3472 *) .
"./$cache_file";;
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3477 $as_echo "$as_me: creating cache $cache_file" >&6;}
3481 gl_header_list
="$gl_header_list arpa/inet.h"
3482 gl_header_list
="$gl_header_list features.h"
3483 gl_func_list
="$gl_func_list canonicalize_file_name"
3484 gl_func_list
="$gl_func_list getcwd"
3485 gl_func_list
="$gl_func_list readlink"
3486 gl_func_list
="$gl_func_list realpath"
3487 gl_header_list
="$gl_header_list sys/param.h"
3488 gl_header_list
="$gl_header_list unistd.h"
3489 gl_func_list
="$gl_func_list _set_invalid_parameter_handler"
3490 gl_header_list
="$gl_header_list sys/socket.h"
3491 gl_func_list
="$gl_func_list fchdir"
3492 gl_header_list
="$gl_header_list dirent.h"
3493 gl_func_list
="$gl_func_list fcntl"
3494 gl_func_list
="$gl_func_list symlink"
3495 gl_func_list
="$gl_func_list fdopendir"
3496 gl_func_list
="$gl_func_list mempcpy"
3497 gl_func_list
="$gl_func_list btowc"
3498 gl_func_list
="$gl_func_list isblank"
3499 gl_func_list
="$gl_func_list iswctype"
3500 gl_func_list
="$gl_func_list mbsrtowcs"
3501 gl_func_list
="$gl_func_list wmemchr"
3502 gl_func_list
="$gl_func_list wmemcpy"
3503 gl_func_list
="$gl_func_list wmempcpy"
3504 gl_header_list
="$gl_header_list wctype.h"
3505 gl_fnmatch_required
=GNU
3506 gl_header_list
="$gl_header_list sys/stat.h"
3507 gl_func_list
="$gl_func_list fstatat"
3508 gl_func_list
="$gl_func_list getdtablesize"
3509 gl_func_list
="$gl_func_list getlogin_r"
3510 gl_func_list
="$gl_func_list getprogname"
3511 gl_func_list
="$gl_func_list getexecname"
3512 gl_header_list
="$gl_header_list sys/time.h"
3513 gl_func_list
="$gl_func_list gettimeofday"
3514 gl_header_list
="$gl_header_list sys/cdefs.h"
3515 gl_func_list
="$gl_func_list getpwnam_r"
3516 gl_header_list
="$gl_header_list netdb.h"
3517 gl_header_list
="$gl_header_list netinet/in.h"
3518 gl_header_list
="$gl_header_list limits.h"
3519 gl_header_list
="$gl_header_list wchar.h"
3520 gl_header_list
="$gl_header_list stdint.h"
3521 gl_header_list
="$gl_header_list inttypes.h"
3522 gl_func_list
="$gl_func_list lstat"
3523 gl_header_list
="$gl_header_list math.h"
3524 gl_func_list
="$gl_func_list mbsinit"
3525 gl_func_list
="$gl_func_list mbrtowc"
3526 gl_header_list
="$gl_header_list sys/mman.h"
3527 gl_func_list
="$gl_func_list mprotect"
3528 gl_func_list
="$gl_func_list mkostemp"
3529 gl_func_list
="$gl_func_list openat"
3530 gl_func_list
="$gl_func_list link"
3531 gl_func_list
="$gl_func_list secure_getenv"
3532 gl_func_list
="$gl_func_list getuid"
3533 gl_func_list
="$gl_func_list geteuid"
3534 gl_func_list
="$gl_func_list getgid"
3535 gl_func_list
="$gl_func_list getegid"
3536 gl_func_list
="$gl_func_list setenv"
3537 gl_func_list
="$gl_func_list strdup"
3538 gl_header_list
="$gl_header_list sys/uio.h"
3539 gl_func_list
="$gl_func_list pipe"
3540 gl_func_list
="$gl_func_list iswcntrl"
3541 # Check that the precious variables saved in the cache have kept the same
3543 ac_cache_corrupted
=false
3544 for ac_var
in $ac_precious_vars; do
3545 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3546 eval ac_new_set
=\
$ac_env_${ac_var}_set
3547 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3548 eval ac_new_val
=\
$ac_env_${ac_var}_value
3549 case $ac_old_set,$ac_new_set in
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3552 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3553 ac_cache_corrupted
=: ;;
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3556 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3557 ac_cache_corrupted
=: ;;
3560 if test "x$ac_old_val" != "x$ac_new_val"; then
3561 # differences in whitespace do not lead to failure.
3562 ac_old_val_w
=`echo x $ac_old_val`
3563 ac_new_val_w
=`echo x $ac_new_val`
3564 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3566 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3567 ac_cache_corrupted
=:
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3570 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3571 eval $ac_var=\
$ac_old_val
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3574 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3576 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3579 # Pass precious variables to config.status.
3580 if test "$ac_new_set" = set; then
3582 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3583 *) ac_arg
=$ac_var=$ac_new_val ;;
3585 case " $ac_configure_args " in
3586 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3587 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3591 if $ac_cache_corrupted; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3595 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3596 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3598 ## -------------------- ##
3599 ## Main body of script. ##
3600 ## -------------------- ##
3603 ac_cpp
='$CPP $CPPFLAGS'
3604 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3610 ac_config_headers
="$ac_config_headers config.h:config.in"
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3614 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3615 # Check whether --enable-maintainer-mode was given.
3616 if test "${enable_maintainer_mode+set}" = set; then :
3617 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3619 USE_MAINTAINER_MODE
=no
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3623 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3624 if test $USE_MAINTAINER_MODE = yes; then
3625 MAINTAINER_MODE_TRUE
=
3626 MAINTAINER_MODE_FALSE
='#'
3628 MAINTAINER_MODE_TRUE
='#'
3629 MAINTAINER_MODE_FALSE
=
3632 MAINT
=$MAINTAINER_MODE_TRUE
3637 ac_cpp
='$CPP $CPPFLAGS'
3638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3643 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_CC+:} false
; then :
3647 $as_echo_n "(cached) " >&6
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC
="$CC" # Let the user override the test.
3652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir
=.
3657 for ac_exec_ext
in '' $ac_executable_extensions; do
3658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3680 if test -z "$ac_cv_prog_CC"; then
3682 # Extract the first word of "gcc", so it can be a program name with args.
3683 set dummy gcc
; ac_word
=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3687 $as_echo_n "(cached) " >&6
3689 if test -n "$ac_ct_CC"; then
3690 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3696 test -z "$as_dir" && as_dir
=.
3697 for ac_exec_ext
in '' $ac_executable_extensions; do
3698 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3699 ac_cv_prog_ac_ct_CC
="gcc"
3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3710 if test -n "$ac_ct_CC"; then
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3712 $as_echo "$ac_ct_CC" >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 $as_echo "no" >&6; }
3718 if test "x$ac_ct_CC" = x
; then
3721 case $cross_compiling:$ac_tool_warned in
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3725 ac_tool_warned
=yes ;;
3733 if test -z "$CC"; then
3734 if test -n "$ac_tool_prefix"; then
3735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3736 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CC+:} false
; then :
3740 $as_echo_n "(cached) " >&6
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC
="$CC" # Let the user override the test.
3745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3749 test -z "$as_dir" && as_dir
=.
3750 for ac_exec_ext
in '' $ac_executable_extensions; do
3751 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3752 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3774 if test -z "$CC"; then
3775 # Extract the first word of "cc", so it can be a program name with args.
3776 set dummy cc
; ac_word
=$2
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778 $as_echo_n "checking for $ac_word... " >&6; }
3779 if ${ac_cv_prog_CC+:} false
; then :
3780 $as_echo_n "(cached) " >&6
3782 if test -n "$CC"; then
3783 ac_cv_prog_CC
="$CC" # Let the user override the test.
3786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir
=.
3791 for ac_exec_ext
in '' $ac_executable_extensions; do
3792 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3794 ac_prog_rejected
=yes
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 if test $ac_prog_rejected = yes; then
3806 # We found a bogon in the path, so make sure we never use it.
3807 set dummy
$ac_cv_prog_CC
3809 if test $# != 0; then
3810 # We chose a different compiler from the bogus one.
3811 # However, it has the same basename, so the bogon will be chosen
3812 # first if we set CC to just the basename; use the full file name.
3814 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3820 if test -n "$CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3822 $as_echo "$CC" >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3830 if test -z "$CC"; then
3831 if test -n "$ac_tool_prefix"; then
3832 for ac_prog
in cl.exe
3834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3835 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_prog_CC+:} false
; then :
3839 $as_echo_n "(cached) " >&6
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC
="$CC" # Let the user override the test.
3844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3848 test -z "$as_dir" && as_dir
=.
3849 for ac_exec_ext
in '' $ac_executable_extensions; do
3850 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3851 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 if test -n "$CC"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864 $as_echo "$CC" >&6; }
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3871 test -n "$CC" && break
3874 if test -z "$CC"; then
3876 for ac_prog
in cl.exe
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy
$ac_prog; ac_word
=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3883 $as_echo_n "(cached) " >&6
3885 if test -n "$ac_ct_CC"; then
3886 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3892 test -z "$as_dir" && as_dir
=.
3893 for ac_exec_ext
in '' $ac_executable_extensions; do
3894 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_ac_ct_CC
="$ac_prog"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3906 if test -n "$ac_ct_CC"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3908 $as_echo "$ac_ct_CC" >&6; }
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3915 test -n "$ac_ct_CC" && break
3918 if test "x$ac_ct_CC" = x
; then
3921 case $cross_compiling:$ac_tool_warned in
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925 ac_tool_warned
=yes ;;
3934 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error $?
"no acceptable C compiler found in \$PATH
3937 See \`config.log' for more details" "$LINENO" 5; }
3939 # Provide some information about the compiler.
3940 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3943 for ac_option
in --version -v -V -qversion; do
3944 { { ac_try
="$ac_compiler $ac_option >&5"
3946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3953 if test -s conftest.err; then
3955 ... rest of stderr output deleted ...
3956 10q' conftest.err >conftest.er1
3957 cat conftest.er1 >&5
3959 rm -f conftest.er1 conftest.err
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3975 ac_clean_files_save=$ac_clean_files
3976 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3977 # Try to create an executable without -o first, disregard a.out.
3978 # It will help us diagnose broken compilers, and finding out an intuition
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3981 $as_echo_n "checking whether the C compiler works... " >&6; }
3982 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3984 # The possible output files:
3985 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3988 for ac_file in $ac_files
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3992 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3997 if { { ac_try="$ac_link_default"
3999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4000 *) ac_try_echo
=$ac_try;;
4002 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_link_default") 2>&5
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4009 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4010 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4011 # so that the user can short-circuit this test for compilers unknown to
4013 for ac_file
in $ac_files ''
4015 test -f "$ac_file" ||
continue
4017 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4020 # We found the default executable, but exeext='' is most
4024 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4026 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4028 # We set ac_cv_exeext here because the later test for it is not
4029 # safe: cross compilers may not add the suffix if given an `-o'
4030 # argument, so we may need to know it at that point already.
4031 # Even if this section looks crufty: it has the advantage of
4038 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4043 if test -z "$ac_file"; then :
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4046 $as_echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.
$ac_ext >&5
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error
77 "C compiler cannot create executables
4052 See \`config.log' for more details" "$LINENO" 5; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4055 $as_echo "yes" >&6; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4058 $as_echo_n "checking for C compiler default output file name... " >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4060 $as_echo "$ac_file" >&6; }
4061 ac_exeext
=$ac_cv_exeext
4063 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4064 ac_clean_files
=$ac_clean_files_save
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4066 $as_echo_n "checking for suffix of executables... " >&6; }
4067 if { { ac_try
="$ac_link"
4069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_link") 2>&5
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; then :
4078 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4079 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4080 # work properly (i.e., refer to `conftest.exe'), while it won't with
4082 for ac_file
in conftest.exe conftest conftest.
*; do
4083 test -f "$ac_file" ||
continue
4085 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4086 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4094 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4095 See \`config.log' for more details" "$LINENO" 5; }
4097 rm -f conftest conftest
$ac_cv_exeext
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4099 $as_echo "$ac_cv_exeext" >&6; }
4101 rm -f conftest.
$ac_ext
4102 EXEEXT
=$ac_cv_exeext
4104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4110 FILE *f = fopen ("conftest.out", "w");
4111 return ferror (f) || fclose (f) != 0;
4117 ac_clean_files
="$ac_clean_files conftest.out"
4118 # Check that the compiler produces executables we can run. If not, either
4119 # the compiler is broken, or we cross compile.
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4121 $as_echo_n "checking whether we are cross compiling... " >&6; }
4122 if test "$cross_compiling" != yes; then
4123 { { ac_try
="$ac_link"
4125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4129 $as_echo "$ac_try_echo"; } >&5
4130 (eval "$ac_link") 2>&5
4132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4133 test $ac_status = 0; }
4134 if { ac_try='./conftest$ac_cv_exeext'
4135 { { case "(($ac_try" in
4136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4137 *) ac_try_echo
=$ac_try;;
4139 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140 $as_echo "$ac_try_echo"; } >&5
4141 (eval "$ac_try") 2>&5
4143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144 test $ac_status = 0; }; }; then
4147 if test "$cross_compiling" = maybe
; then
4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152 as_fn_error $?
"cannot run C compiled programs.
4153 If you meant to cross compile, use \`--host'.
4154 See \`config.log' for more details" "$LINENO" 5; }
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4159 $as_echo "$cross_compiling" >&6; }
4161 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4162 ac_clean_files
=$ac_clean_files_save
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4164 $as_echo_n "checking for suffix of object files... " >&6; }
4165 if ${ac_cv_objext+:} false
; then :
4166 $as_echo_n "(cached) " >&6
4168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4179 rm -f conftest.o conftest.obj
4180 if { { ac_try
="$ac_compile"
4182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 $as_echo "$ac_try_echo"; } >&5
4187 (eval "$ac_compile") 2>&5
4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; }; then :
4191 for ac_file in conftest.o conftest.obj conftest.*; do
4192 test -f "$ac_file" || continue;
4194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4200 $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4206 See \
`config.log' for more details" "$LINENO" 5; }
4208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4211 $as_echo "$ac_cv_objext" >&6; }
4212 OBJEXT=$ac_cv_objext
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4215 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4216 if ${ac_cv_c_compiler_gnu+:} false; then :
4217 $as_echo_n "(cached) " >&6
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4233 if ac_fn_c_try_compile "$LINENO"; then :
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4243 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4244 if test $ac_compiler_gnu = yes; then
4249 ac_test_CFLAGS=${CFLAGS+set}
4250 ac_save_CFLAGS=$CFLAGS
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4252 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4253 if ${ac_cv_prog_cc_g+:} false; then :
4254 $as_echo_n "(cached) " >&6
4256 ac_save_c_werror_flag=$ac_c_werror_flag
4257 ac_c_werror_flag=yes
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4271 if ac_fn_c_try_compile "$LINENO"; then :
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4286 if ac_fn_c_try_compile "$LINENO"; then :
4289 ac_c_werror_flag=$ac_save_c_werror_flag
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4302 if ac_fn_c_try_compile "$LINENO"; then :
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 ac_c_werror_flag=$ac_save_c_werror_flag
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4313 $as_echo "$ac_cv_prog_cc_g" >&6; }
4314 if test "$ac_test_CFLAGS" = set; then
4315 CFLAGS=$ac_save_CFLAGS
4316 elif test $ac_cv_prog_cc_g = yes; then
4317 if test "$GCC" = yes; then
4323 if test "$GCC" = yes; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4330 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4331 if ${ac_cv_prog_cc_c89+:} false; then :
4332 $as_echo_n "(cached) " >&6
4334 ac_cv_prog_cc_c89=no
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4341 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4342 struct buf { int x; };
4343 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4344 static char *e (p, i)
4350 static char *f (char * (*g) (char **, int), char **p, ...)
4355 s = g (p, va_arg (v,int));
4360 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4361 function prototypes and stuff, but not '\xHH' hex character constants.
4362 These don't provoke an error unfortunately, instead are silently treated
4363 as 'x'. The following induces an error, until -std is added to get
4364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4365 array size at least. It's necessary to write '\x00'==0 to get something
4366 that's true only with -std. */
4367 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4369 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4370 inside strings and character constants. */
4372 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4374 int test (int i, double x);
4375 struct s1 {int (*f) (int a);};
4376 struct s2 {int (*f) (double a);};
4377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4383 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4388 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4391 CC="$ac_save_CC $ac_arg"
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_prog_cc_c89=$ac_arg
4395 rm -f core conftest.err conftest.$ac_objext
4396 test "x$ac_cv_prog_cc_c89" != "xno" && break
4398 rm -f conftest.$ac_ext
4403 case "x$ac_cv_prog_cc_c89" in
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4406 $as_echo "none needed" >&6; } ;;
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4409 $as_echo "unsupported" >&6; } ;;
4411 CC="$CC $ac_cv_prog_cc_c89"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4413 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4415 if test "x$ac_cv_prog_cc_c89" != xno; then :
4420 ac_cpp='$CPP $CPPFLAGS'
4421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4427 if test -f "$ac_dir/install-sh"; then
4429 ac_install_sh="$ac_aux_dir/install-sh -c"
4431 elif test -f "$ac_dir/install.sh"; then
4433 ac_install_sh="$ac_aux_dir/install.sh -c"
4435 elif test -f "$ac_dir/shtool"; then
4437 ac_install_sh="$ac_aux_dir/shtool install -c"
4441 if test -z "$ac_aux_dir"; then
4442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4445 # These three variables are undocumented and unsupported,
4446 # and are intended to be withdrawn in a future Autoconf release.
4447 # They can cause serious problems if a builder's source tree is in a directory
4448 # whose full name contains unusual characters.
4449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4454 # Expand $ac_aux_dir to an absolute path.
4455 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4458 ac_cpp='$CPP $CPPFLAGS'
4459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4463 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4464 if ${am_cv_prog_cc_c_o+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4478 # Make sure it works both with $CC and with simple cc.
4479 # Following AC_PROG_CC_C_O, we do the test twice because some
4480 # compilers refuse to overwrite an existing .o file with -o,
4481 # though they will create one.
4482 am_cv_prog_cc_c_o=yes
4484 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4485 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } \
4489 && test -f conftest2.$ac_objext; then
4492 am_cv_prog_cc_c_o=no
4496 rm -f core conftest*
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4500 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4501 if test "$am_cv_prog_cc_c_o" != yes; then
4502 # Losing compiler, so override with the script.
4503 # FIXME: It is wrong to rewrite CC.
4504 # But if we don't then we get into trouble of one sort or another.
4505 # A longer-term fix would be to have automake use am__CC in this case,
4506 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4507 CC="$am_aux_dir/compile $CC"
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4523 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4524 # On Suns, sometimes $CPP names a directory.
4525 if test -n "$CPP" && test -d "$CPP"; then
4528 if test -z "$CPP"; then
4529 if ${ac_cv_prog_CPP+:} false; then :
4530 $as_echo_n "(cached) " >&6
4532 # Double quotes because CPP needs to be expanded
4533 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4536 for ac_c_preproc_warn_flag in '' yes
4538 # Use a header file that comes with gcc, so configuring glibc
4539 # with a fresh cross-compiler works.
4540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541 # <limits.h> exists even on freestanding compilers.
4542 # On the NeXT, cc -E runs the code through the compiler's parser,
4543 # not just through cpp. "Syntax error" is here to catch this case.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4547 # include <limits.h>
4549 # include <assert.h>
4553 if ac_fn_c_try_cpp "$LINENO"; then :
4556 # Broken: fails on valid input.
4559 rm -f conftest.err conftest.i conftest.$ac_ext
4561 # OK, works on sane cases. Now check whether nonexistent headers
4562 # can be detected and how.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <ac_nonexistent.h>
4567 if ac_fn_c_try_cpp "$LINENO"; then :
4568 # Broken: success on invalid input.
4571 # Passes both tests.
4575 rm -f conftest.err conftest.i conftest.$ac_ext
4578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4579 rm -f conftest.i conftest.err conftest.
$ac_ext
4580 if $ac_preproc_ok; then :
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4593 $as_echo "$CPP" >&6; }
4595 for ac_c_preproc_warn_flag
in '' yes
4597 # Use a header file that comes with gcc, so configuring glibc
4598 # with a fresh cross-compiler works.
4599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4600 # <limits.h> exists even on freestanding compilers.
4601 # On the NeXT, cc -E runs the code through the compiler's parser,
4602 # not just through cpp. "Syntax error" is here to catch this case.
4603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4606 # include <limits.h>
4608 # include <assert.h>
4612 if ac_fn_c_try_cpp
"$LINENO"; then :
4615 # Broken: fails on valid input.
4618 rm -f conftest.err conftest.i conftest.
$ac_ext
4620 # OK, works on sane cases. Now check whether nonexistent headers
4621 # can be detected and how.
4622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <ac_nonexistent.h>
4626 if ac_fn_c_try_cpp
"$LINENO"; then :
4627 # Broken: success on invalid input.
4630 # Passes both tests.
4634 rm -f conftest.err conftest.i conftest.
$ac_ext
4637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4638 rm -f conftest.i conftest.err conftest.
$ac_ext
4639 if $ac_preproc_ok; then :
4642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4644 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4645 See \`config.log' for more details" "$LINENO" 5; }
4649 ac_cpp
='$CPP $CPPFLAGS'
4650 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4656 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4657 if ${ac_cv_path_GREP+:} false
; then :
4658 $as_echo_n "(cached) " >&6
4660 if test -z "$GREP"; then
4661 ac_path_GREP_found
=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4664 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4667 test -z "$as_dir" && as_dir
=.
4668 for ac_prog
in grep ggrep
; do
4669 for ac_exec_ext
in '' $ac_executable_extensions; do
4670 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4671 as_fn_executable_p
"$ac_path_GREP" ||
continue
4672 # Check for GNU ac_path_GREP and select it if it is found.
4673 # Check for GNU $ac_path_GREP
4674 case `"$ac_path_GREP" --version 2>&1` in
4676 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4679 $as_echo_n 0123456789 >"conftest.in"
4682 cat "conftest.in" "conftest.in" >"conftest.tmp"
4683 mv "conftest.tmp" "conftest.in"
4684 cp "conftest.in" "conftest.nl"
4685 $as_echo 'GREP' >> "conftest.nl"
4686 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4687 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4688 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4689 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4690 # Best one so far, save it but keep looking for a better one
4691 ac_cv_path_GREP
="$ac_path_GREP"
4692 ac_path_GREP_max
=$ac_count
4694 # 10*(2^10) chars as input seems more than enough
4695 test $ac_count -gt 10 && break
4697 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4700 $ac_path_GREP_found && break 3
4705 if test -z "$ac_cv_path_GREP"; then
4706 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709 ac_cv_path_GREP
=$GREP
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4714 $as_echo "$ac_cv_path_GREP" >&6; }
4715 GREP
="$ac_cv_path_GREP"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4719 $as_echo_n "checking for egrep... " >&6; }
4720 if ${ac_cv_path_EGREP+:} false
; then :
4721 $as_echo_n "(cached) " >&6
4723 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4724 then ac_cv_path_EGREP
="$GREP -E"
4726 if test -z "$EGREP"; then
4727 ac_path_EGREP_found
=false
4728 # Loop through the user's path and test for each of PROGNAME-LIST
4729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4730 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4733 test -z "$as_dir" && as_dir
=.
4734 for ac_prog
in egrep; do
4735 for ac_exec_ext
in '' $ac_executable_extensions; do
4736 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4737 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4738 # Check for GNU ac_path_EGREP and select it if it is found.
4739 # Check for GNU $ac_path_EGREP
4740 case `"$ac_path_EGREP" --version 2>&1` in
4742 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4745 $as_echo_n 0123456789 >"conftest.in"
4748 cat "conftest.in" "conftest.in" >"conftest.tmp"
4749 mv "conftest.tmp" "conftest.in"
4750 cp "conftest.in" "conftest.nl"
4751 $as_echo 'EGREP' >> "conftest.nl"
4752 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4753 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4754 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4755 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4756 # Best one so far, save it but keep looking for a better one
4757 ac_cv_path_EGREP
="$ac_path_EGREP"
4758 ac_path_EGREP_max
=$ac_count
4760 # 10*(2^10) chars as input seems more than enough
4761 test $ac_count -gt 10 && break
4763 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4766 $ac_path_EGREP_found && break 3
4771 if test -z "$ac_cv_path_EGREP"; then
4772 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4775 ac_cv_path_EGREP
=$EGREP
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4781 $as_echo "$ac_cv_path_EGREP" >&6; }
4782 EGREP
="$ac_cv_path_EGREP"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4786 $as_echo_n "checking for ANSI C header files... " >&6; }
4787 if ${ac_cv_header_stdc+:} false
; then :
4788 $as_echo_n "(cached) " >&6
4790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4805 if ac_fn_c_try_compile
"$LINENO"; then :
4806 ac_cv_header_stdc
=yes
4808 ac_cv_header_stdc
=no
4810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4812 if test $ac_cv_header_stdc = yes; then
4813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820 $EGREP "memchr" >/dev
/null
2>&1; then :
4823 ac_cv_header_stdc
=no
4829 if test $ac_cv_header_stdc = yes; then
4830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4837 $EGREP "free" >/dev
/null
2>&1; then :
4840 ac_cv_header_stdc
=no
4846 if test $ac_cv_header_stdc = yes; then
4847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4848 if test "$cross_compiling" = yes; then :
4851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4855 #if ((' ' & 0x0FF) == 0x020)
4856 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4857 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4859 # define ISLOWER(c) \
4860 (('a' <= (c) && (c) <= 'i') \
4861 || ('j' <= (c) && (c) <= 'r') \
4862 || ('s' <= (c) && (c) <= 'z'))
4863 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4871 for (i = 0; i < 256; i++)
4872 if (XOR (islower (i), ISLOWER (i))
4873 || toupper (i) != TOUPPER (i))
4878 if ac_fn_c_try_run
"$LINENO"; then :
4881 ac_cv_header_stdc
=no
4883 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4884 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4890 $as_echo "$ac_cv_header_stdc" >&6; }
4891 if test $ac_cv_header_stdc = yes; then
4893 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4897 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4898 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4899 inttypes.h stdint.h unistd.h
4901 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4902 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4904 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4905 cat >>confdefs.h
<<_ACEOF
4906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4915 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4916 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4923 if test "$MINIX" = yes; then
4925 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4928 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4931 $as_echo "#define _MINIX 1" >>confdefs.h
4934 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4940 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4941 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4942 $as_echo_n "(cached) " >&6
4944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4947 # define __EXTENSIONS__ 1
4948 $ac_includes_default
4957 if ac_fn_c_try_compile
"$LINENO"; then :
4958 ac_cv_safe_to_define___extensions__
=yes
4960 ac_cv_safe_to_define___extensions__
=no
4962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4965 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4966 test $ac_cv_safe_to_define___extensions__ = yes &&
4967 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4969 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4971 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4973 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4975 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4977 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4979 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4981 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4983 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4985 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4987 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4989 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4991 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4994 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4995 if ${ac_cv_should_define__xopen_source+:} false
; then :
4996 $as_echo_n "(cached) " >&6
4998 ac_cv_should_define__xopen_source
=no
4999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5012 if ac_fn_c_try_compile
"$LINENO"; then :
5015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5018 #define _XOPEN_SOURCE 500
5029 if ac_fn_c_try_compile
"$LINENO"; then :
5030 ac_cv_should_define__xopen_source
=yes
5032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5037 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5038 test $ac_cv_should_define__xopen_source = yes &&
5039 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5052 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5053 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
5054 $as_echo_n "(cached) " >&6
5057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5066 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
5067 gl_cv_c_amsterdam_compiler
=yes
5069 gl_cv_c_amsterdam_compiler
=no
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5076 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5078 if test $gl_cv_c_amsterdam_compiler = yes; then
5079 if test -z "$AR"; then
5082 if test -z "$ARFLAGS"; then
5086 if test -n "$ac_tool_prefix"; then
5087 for ac_prog
in ar lib
"link -lib"
5089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5090 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_prog_AR+:} false
; then :
5094 $as_echo_n "(cached) " >&6
5096 if test -n "$AR"; then
5097 ac_cv_prog_AR
="$AR" # Let the user override the test.
5099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir
=.
5104 for ac_exec_ext
in '' $ac_executable_extensions; do
5105 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 if test -n "$AR"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5119 $as_echo "$AR" >&6; }
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5126 test -n "$AR" && break
5129 if test -z "$AR"; then
5131 for ac_prog
in ar lib
"link -lib"
5133 # Extract the first word of "$ac_prog", so it can be a program name with args.
5134 set dummy
$ac_prog; ac_word
=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5138 $as_echo_n "(cached) " >&6
5140 if test -n "$ac_ct_AR"; then
5141 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5147 test -z "$as_dir" && as_dir
=.
5148 for ac_exec_ext
in '' $ac_executable_extensions; do
5149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5150 ac_cv_prog_ac_ct_AR
="$ac_prog"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5161 if test -n "$ac_ct_AR"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5163 $as_echo "$ac_ct_AR" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5170 test -n "$ac_ct_AR" && break
5173 if test "x$ac_ct_AR" = x
; then
5176 case $cross_compiling:$ac_tool_warned in
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned
=yes ;;
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5189 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5190 if ${am_cv_ar_interface+:} false
; then :
5191 $as_echo_n "(cached) " >&6
5194 ac_cpp
='$CPP $CPPFLAGS'
5195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5199 am_cv_ar_interface
=ar
5200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 int some_variable = 0;
5204 if ac_fn_c_try_compile
"$LINENO"; then :
5205 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
5206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5207 (eval $am_ar_try) 2>&5
5209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5210 test $ac_status = 0; }
5211 if test "$ac_status" -eq 0; then
5212 am_cv_ar_interface
=ar
5214 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5216 (eval $am_ar_try) 2>&5
5218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219 test $ac_status = 0; }
5220 if test "$ac_status" -eq 0; then
5221 am_cv_ar_interface
=lib
5223 am_cv_ar_interface
=unknown
5226 rm -f conftest.lib libconftest.a
5229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5231 ac_cpp
='$CPP $CPPFLAGS'
5232 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5238 $as_echo "$am_cv_ar_interface" >&6; }
5240 case $am_cv_ar_interface in
5244 # Microsoft lib, so override with the ar-lib wrapper script.
5245 # FIXME: It is wrong to rewrite AR.
5246 # But if we don't then we get into trouble of one sort or another.
5247 # A longer-term fix would be to have automake use am__AR in this case,
5248 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5250 AR
="$am_aux_dir/ar-lib $AR"
5253 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
5259 if test -n "$ac_tool_prefix"; then
5260 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5261 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_prog_AR+:} false
; then :
5265 $as_echo_n "(cached) " >&6
5267 if test -n "$AR"; then
5268 ac_cv_prog_AR
="$AR" # Let the user override the test.
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_exec_ext
in '' $ac_executable_extensions; do
5276 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 if test -n "$AR"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5290 $as_echo "$AR" >&6; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5298 if test -z "$ac_cv_prog_AR"; then
5300 # Extract the first word of "ar", so it can be a program name with args.
5301 set dummy
ar; ac_word
=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5305 $as_echo_n "(cached) " >&6
5307 if test -n "$ac_ct_AR"; then
5308 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir
=.
5315 for ac_exec_ext
in '' $ac_executable_extensions; do
5316 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_ac_ct_AR
="ar"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5328 if test -n "$ac_ct_AR"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5330 $as_echo "$ac_ct_AR" >&6; }
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5336 if test "x$ac_ct_AR" = x
; then
5339 case $cross_compiling:$ac_tool_warned in
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5343 ac_tool_warned
=yes ;;
5351 if test -z "$ARFLAGS"; then
5357 if test -z "$RANLIB"; then
5358 if test $gl_cv_c_amsterdam_compiler = yes; then
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5363 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if ${ac_cv_prog_RANLIB+:} false
; then :
5367 $as_echo_n "(cached) " >&6
5369 if test -n "$RANLIB"; then
5370 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5376 test -z "$as_dir" && as_dir
=.
5377 for ac_exec_ext
in '' $ac_executable_extensions; do
5378 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5379 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 RANLIB
=$ac_cv_prog_RANLIB
5390 if test -n "$RANLIB"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5392 $as_echo "$RANLIB" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5400 if test -z "$ac_cv_prog_RANLIB"; then
5401 ac_ct_RANLIB
=$RANLIB
5402 # Extract the first word of "ranlib", so it can be a program name with args.
5403 set dummy ranlib
; ac_word
=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5407 $as_echo_n "(cached) " >&6
5409 if test -n "$ac_ct_RANLIB"; then
5410 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir
=.
5417 for ac_exec_ext
in '' $ac_executable_extensions; do
5418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5430 if test -n "$ac_ct_RANLIB"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5432 $as_echo "$ac_ct_RANLIB" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5438 if test "x$ac_ct_RANLIB" = x
; then
5441 case $cross_compiling:$ac_tool_warned in
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5445 ac_tool_warned
=yes ;;
5447 RANLIB
=$ac_ct_RANLIB
5450 RANLIB
="$ac_cv_prog_RANLIB"
5457 # Make sure we can run config.sub.
5458 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5459 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5462 $as_echo_n "checking build system type... " >&6; }
5463 if ${ac_cv_build+:} false
; then :
5464 $as_echo_n "(cached) " >&6
5466 ac_build_alias
=$build_alias
5467 test "x$ac_build_alias" = x
&&
5468 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5469 test "x$ac_build_alias" = x
&&
5470 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5471 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5472 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5476 $as_echo "$ac_cv_build" >&6; }
5477 case $ac_cv_build in
5479 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5482 ac_save_IFS
=$IFS; IFS
='-'
5488 # Remember, the first character of IFS is used to create $*,
5489 # except with old shells:
5492 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5496 $as_echo_n "checking host system type... " >&6; }
5497 if ${ac_cv_host+:} false
; then :
5498 $as_echo_n "(cached) " >&6
5500 if test "x$host_alias" = x
; then
5501 ac_cv_host
=$ac_cv_build
5503 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5504 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5509 $as_echo "$ac_cv_host" >&6; }
5512 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5515 ac_save_IFS
=$IFS; IFS
='-'
5521 # Remember, the first character of IFS is used to create $*,
5522 # except with old shells:
5525 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5531 # IEEE behaviour is the default on all CPUs except Alpha and SH
5532 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5533 # and the GCC 4.1.2 manual).
5536 # On Alpha systems, a compiler option provides the behaviour.
5537 # See the ieee(3) manual page, also available at
5538 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5539 if test -n "$GCC"; then
5540 # GCC has the option -mieee.
5541 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5542 CPPFLAGS
="$CPPFLAGS -mieee"
5544 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5545 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5546 CPPFLAGS
="$CPPFLAGS -ieee"
5550 if test -n "$GCC"; then
5551 # GCC has the option -mieee.
5552 CPPFLAGS
="$CPPFLAGS -mieee"
5557 # Check whether --enable-largefile was given.
5558 if test "${enable_largefile+set}" = set; then :
5559 enableval
=$enable_largefile;
5562 if test "$enable_largefile" != no
; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5565 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5566 if ${ac_cv_sys_largefile_CC+:} false
; then :
5567 $as_echo_n "(cached) " >&6
5569 ac_cv_sys_largefile_CC
=no
5570 if test "$GCC" != yes; then
5573 # IRIX 6.2 and later do not support large files by default,
5574 # so use the C compiler's -n32 option if that helps.
5575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #include <sys/types.h>
5578 /* Check that off_t can represent 2**63 - 1 correctly.
5579 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5580 since some C++ compilers masquerading as C compilers
5581 incorrectly reject 9223372036854775807. */
5582 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5583 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5584 && LARGE_OFF_T % 2147483647 == 1)
5594 if ac_fn_c_try_compile
"$LINENO"; then :
5597 rm -f core conftest.err conftest.
$ac_objext
5599 if ac_fn_c_try_compile
"$LINENO"; then :
5600 ac_cv_sys_largefile_CC
=' -n32'; break
5602 rm -f core conftest.err conftest.
$ac_objext
5606 rm -f conftest.
$ac_ext
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5610 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5611 if test "$ac_cv_sys_largefile_CC" != no
; then
5612 CC
=$CC$ac_cv_sys_largefile_CC
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5616 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5617 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5618 $as_echo_n "(cached) " >&6
5621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 #include <sys/types.h>
5624 /* Check that off_t can represent 2**63 - 1 correctly.
5625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5626 since some C++ compilers masquerading as C compilers
5627 incorrectly reject 9223372036854775807. */
5628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5630 && LARGE_OFF_T % 2147483647 == 1)
5640 if ac_fn_c_try_compile
"$LINENO"; then :
5641 ac_cv_sys_file_offset_bits
=no
; break
5643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 #define _FILE_OFFSET_BITS 64
5647 #include <sys/types.h>
5648 /* Check that off_t can represent 2**63 - 1 correctly.
5649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5650 since some C++ compilers masquerading as C compilers
5651 incorrectly reject 9223372036854775807. */
5652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5654 && LARGE_OFF_T % 2147483647 == 1)
5664 if ac_fn_c_try_compile
"$LINENO"; then :
5665 ac_cv_sys_file_offset_bits
=64; break
5667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5668 ac_cv_sys_file_offset_bits
=unknown
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5673 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5674 case $ac_cv_sys_file_offset_bits in #(
5677 cat >>confdefs.h
<<_ACEOF
5678 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5683 if test $ac_cv_sys_file_offset_bits = unknown
; then
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5685 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5686 if ${ac_cv_sys_large_files+:} false
; then :
5687 $as_echo_n "(cached) " >&6
5690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #include <sys/types.h>
5693 /* Check that off_t can represent 2**63 - 1 correctly.
5694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695 since some C++ compilers masquerading as C compilers
5696 incorrectly reject 9223372036854775807. */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699 && LARGE_OFF_T % 2147483647 == 1)
5709 if ac_fn_c_try_compile
"$LINENO"; then :
5710 ac_cv_sys_large_files
=no
; break
5712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #define _LARGE_FILES 1
5716 #include <sys/types.h>
5717 /* Check that off_t can represent 2**63 - 1 correctly.
5718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5719 since some C++ compilers masquerading as C compilers
5720 incorrectly reject 9223372036854775807. */
5721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5723 && LARGE_OFF_T % 2147483647 == 1)
5733 if ac_fn_c_try_compile
"$LINENO"; then :
5734 ac_cv_sys_large_files
=1; break
5736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5737 ac_cv_sys_large_files
=unknown
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5742 $as_echo "$ac_cv_sys_large_files" >&6; }
5743 case $ac_cv_sys_large_files in #(
5746 cat >>confdefs.h
<<_ACEOF
5747 #define _LARGE_FILES $ac_cv_sys_large_files
5755 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5761 # Pre-early section.
5765 # Code from module absolute-header:
5766 # Code from module alloca:
5767 # Code from module alloca-opt:
5768 # Code from module arpa_inet:
5769 # Code from module assure:
5770 # Code from module at-internal:
5771 # Code from module canonicalize-lgpl:
5772 # Code from module chdir:
5773 # Code from module chdir-long:
5774 # Code from module cloexec:
5775 # Code from module close:
5776 # Code from module closedir:
5777 # Code from module configmake:
5778 # Code from module d-ino:
5779 # Code from module d-type:
5780 # Code from module dirent:
5781 # Code from module dirfd:
5782 # Code from module dirname-lgpl:
5783 # Code from module dosname:
5784 # Code from module double-slash-root:
5785 # Code from module dup:
5786 # Code from module dup2:
5787 # Code from module environ:
5788 # Code from module errno:
5789 # Code from module error:
5790 # Code from module exitfail:
5791 # Code from module extensions:
5792 # Code from module extern-inline:
5793 # Code from module fchdir:
5794 # Code from module fcntl:
5795 # Code from module fcntl-h:
5796 # Code from module fd-hook:
5797 # Code from module fdopendir:
5798 # Code from module filename:
5799 # Code from module filenamecat-lgpl:
5800 # Code from module flexmember:
5801 # Code from module float:
5802 # Code from module fnmatch:
5803 # Code from module fnmatch-gnu:
5804 # Code from module fpieee:
5806 # Code from module fpucw:
5807 # Code from module frexp:
5808 # Code from module frexpl:
5809 # Code from module fstat:
5810 # Code from module fstatat:
5811 # Code from module getcwd:
5812 # Code from module getcwd-lgpl:
5813 # Code from module getdtablesize:
5814 # Code from module getlogin_r:
5815 # Code from module getprogname:
5816 # Code from module gettext-h:
5817 # Code from module gettimeofday:
5818 # Code from module glob:
5819 # Code from module hard-locale:
5820 # Code from module include_next:
5821 # Code from module inet_ntop:
5822 # Code from module intprops:
5823 # Code from module inttypes:
5824 # Code from module inttypes-incomplete:
5825 # Code from module isnand-nolibm:
5826 # Code from module isnanl-nolibm:
5827 # Code from module largefile:
5829 # Code from module limits-h:
5830 # Code from module localcharset:
5831 # Code from module lstat:
5832 # Code from module malloc-posix:
5833 # Code from module malloca:
5834 # Code from module math:
5835 # Code from module mbrtowc:
5836 # Code from module mbsinit:
5837 # Code from module mbsrtowcs:
5838 # Code from module memchr:
5839 # Code from module memmem:
5840 # Code from module memmem-simple:
5841 # Code from module mempcpy:
5842 # Code from module memrchr:
5843 # Code from module mkdir:
5844 # Code from module mkdtemp:
5845 # Code from module mkostemp:
5846 # Code from module msvc-inval:
5847 # Code from module msvc-nothrow:
5848 # Code from module multiarch:
5849 # Code from module netinet_in:
5850 # Code from module nocrash:
5851 # Code from module open:
5852 # Code from module openat:
5853 # Code from module openat-die:
5854 # Code from module openat-h:
5855 # Code from module opendir:
5856 # Code from module pathmax:
5857 # Code from module rawmemchr:
5858 # Code from module readdir:
5859 # Code from module readlink:
5860 # Code from module realloc-posix:
5861 # Code from module rename:
5862 # Code from module rewinddir:
5863 # Code from module rmdir:
5864 # Code from module same-inode:
5865 # Code from module save-cwd:
5866 # Code from module secure_getenv:
5867 # Code from module setenv:
5868 # Code from module signal-h:
5869 # Code from module snippet/_Noreturn:
5870 # Code from module snippet/arg-nonnull:
5871 # Code from module snippet/c++defs:
5872 # Code from module snippet/warn-on-use:
5873 # Code from module socklen:
5874 # Code from module ssize_t:
5875 # Code from module stat:
5876 # Code from module stdalign:
5877 # Code from module stdbool:
5878 # Code from module stddef:
5879 # Code from module stdint:
5880 # Code from module stdio:
5881 # Code from module stdlib:
5882 # Code from module strchrnul:
5883 # Code from module strdup-posix:
5884 # Code from module streq:
5885 # Code from module strerror:
5886 # Code from module strerror-override:
5887 # Code from module string:
5888 # Code from module strnlen1:
5889 # Code from module strstr:
5890 # Code from module strstr-simple:
5891 # Code from module strtok_r:
5892 # Code from module sys_socket:
5893 # Code from module sys_stat:
5894 # Code from module sys_time:
5895 # Code from module sys_types:
5896 # Code from module sys_uio:
5897 # Code from module tempname:
5898 # Code from module time:
5899 # Code from module unistd:
5900 # Code from module unistd-safer:
5901 # Code from module unsetenv:
5902 # Code from module update-copyright:
5903 # Code from module verify:
5904 # Code from module wchar:
5905 # Code from module wctype-h:
5908 ac_cpp
='$CPP $CPPFLAGS'
5909 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5912 if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5914 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if ${ac_cv_prog_CC+:} false
; then :
5918 $as_echo_n "(cached) " >&6
5920 if test -n "$CC"; then
5921 ac_cv_prog_CC
="$CC" # Let the user override the test.
5923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir
=.
5928 for ac_exec_ext
in '' $ac_executable_extensions; do
5929 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 if test -n "$CC"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5943 $as_echo "$CC" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5951 if test -z "$ac_cv_prog_CC"; then
5953 # Extract the first word of "gcc", so it can be a program name with args.
5954 set dummy gcc
; ac_word
=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5958 $as_echo_n "(cached) " >&6
5960 if test -n "$ac_ct_CC"; then
5961 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5967 test -z "$as_dir" && as_dir
=.
5968 for ac_exec_ext
in '' $ac_executable_extensions; do
5969 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5970 ac_cv_prog_ac_ct_CC
="gcc"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5981 if test -n "$ac_ct_CC"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5983 $as_echo "$ac_ct_CC" >&6; }
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5989 if test "x$ac_ct_CC" = x
; then
5992 case $cross_compiling:$ac_tool_warned in
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996 ac_tool_warned
=yes ;;
6004 if test -z "$CC"; then
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6007 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_CC+:} false
; then :
6011 $as_echo_n "(cached) " >&6
6013 if test -n "$CC"; then
6014 ac_cv_prog_CC
="$CC" # Let the user override the test.
6016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6020 test -z "$as_dir" && as_dir
=.
6021 for ac_exec_ext
in '' $ac_executable_extensions; do
6022 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 if test -n "$CC"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6036 $as_echo "$CC" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6045 if test -z "$CC"; then
6046 # Extract the first word of "cc", so it can be a program name with args.
6047 set dummy cc
; ac_word
=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if ${ac_cv_prog_CC+:} false
; then :
6051 $as_echo_n "(cached) " >&6
6053 if test -n "$CC"; then
6054 ac_cv_prog_CC
="$CC" # Let the user override the test.
6057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir
=.
6062 for ac_exec_ext
in '' $ac_executable_extensions; do
6063 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6065 ac_prog_rejected
=yes
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 if test $ac_prog_rejected = yes; then
6077 # We found a bogon in the path, so make sure we never use it.
6078 set dummy
$ac_cv_prog_CC
6080 if test $# != 0; then
6081 # We chose a different compiler from the bogus one.
6082 # However, it has the same basename, so the bogon will be chosen
6083 # first if we set CC to just the basename; use the full file name.
6085 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6091 if test -n "$CC"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6093 $as_echo "$CC" >&6; }
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6101 if test -z "$CC"; then
6102 if test -n "$ac_tool_prefix"; then
6103 for ac_prog
in cl.exe
6105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6106 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if ${ac_cv_prog_CC+:} false
; then :
6110 $as_echo_n "(cached) " >&6
6112 if test -n "$CC"; then
6113 ac_cv_prog_CC
="$CC" # Let the user override the test.
6115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir
=.
6120 for ac_exec_ext
in '' $ac_executable_extensions; do
6121 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6122 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 if test -n "$CC"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6135 $as_echo "$CC" >&6; }
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6142 test -n "$CC" && break
6145 if test -z "$CC"; then
6147 for ac_prog
in cl.exe
6149 # Extract the first word of "$ac_prog", so it can be a program name with args.
6150 set dummy
$ac_prog; ac_word
=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6154 $as_echo_n "(cached) " >&6
6156 if test -n "$ac_ct_CC"; then
6157 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6163 test -z "$as_dir" && as_dir
=.
6164 for ac_exec_ext
in '' $ac_executable_extensions; do
6165 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6166 ac_cv_prog_ac_ct_CC
="$ac_prog"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6177 if test -n "$ac_ct_CC"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6179 $as_echo "$ac_ct_CC" >&6; }
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6186 test -n "$ac_ct_CC" && break
6189 if test "x$ac_ct_CC" = x
; then
6192 case $cross_compiling:$ac_tool_warned in
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned
=yes ;;
6205 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6207 as_fn_error $?
"no acceptable C compiler found in \$PATH
6208 See \`config.log' for more details" "$LINENO" 5; }
6210 # Provide some information about the compiler.
6211 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6214 for ac_option
in --version -v -V -qversion; do
6215 { { ac_try
="$ac_compiler $ac_option >&5"
6217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6221 $as_echo "$ac_try_echo"; } >&5
6222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6224 if test -s conftest.err; then
6226 ... rest of stderr output deleted ...
6227 10q' conftest.err >conftest.er1
6228 cat conftest.er1 >&5
6230 rm -f conftest.er1 conftest.err
6231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6232 test $ac_status = 0; }
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6236 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6237 if ${ac_cv_c_compiler_gnu+:} false; then :
6238 $as_echo_n "(cached) " >&6
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6254 if ac_fn_c_try_compile "$LINENO"; then :
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6264 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6265 if test $ac_compiler_gnu = yes; then
6270 ac_test_CFLAGS=${CFLAGS+set}
6271 ac_save_CFLAGS=$CFLAGS
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6273 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6274 if ${ac_cv_prog_cc_g+:} false; then :
6275 $as_echo_n "(cached) " >&6
6277 ac_save_c_werror_flag=$ac_c_werror_flag
6278 ac_c_werror_flag=yes
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6292 if ac_fn_c_try_compile "$LINENO"; then :
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6307 if ac_fn_c_try_compile "$LINENO"; then :
6310 ac_c_werror_flag=$ac_save_c_werror_flag
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6323 if ac_fn_c_try_compile "$LINENO"; then :
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 ac_c_werror_flag=$ac_save_c_werror_flag
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6334 $as_echo "$ac_cv_prog_cc_g" >&6; }
6335 if test "$ac_test_CFLAGS" = set; then
6336 CFLAGS=$ac_save_CFLAGS
6337 elif test $ac_cv_prog_cc_g = yes; then
6338 if test "$GCC" = yes; then
6344 if test "$GCC" = yes; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6351 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6352 if ${ac_cv_prog_cc_c89+:} false; then :
6353 $as_echo_n "(cached) " >&6
6355 ac_cv_prog_cc_c89=no
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6363 struct buf { int x; };
6364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6365 static char *e (p, i)
6371 static char *f (char * (*g) (char **, int), char **p, ...)
6376 s = g (p, va_arg (v,int));
6381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6382 function prototypes and stuff, but not '\xHH' hex character constants.
6383 These don't provoke an error unfortunately, instead are silently treated
6384 as 'x'. The following induces an error, until -std is added to get
6385 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6386 array size at least. It's necessary to write '\x00'==0 to get something
6387 that's true only with -std. */
6388 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6391 inside strings and character constants. */
6393 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6395 int test (int i, double x);
6396 struct s1 {int (*f) (int a);};
6397 struct s2 {int (*f) (double a);};
6398 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6404 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6409 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6410 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6412 CC="$ac_save_CC $ac_arg"
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 ac_cv_prog_cc_c89=$ac_arg
6416 rm -f core conftest.err conftest.$ac_objext
6417 test "x$ac_cv_prog_cc_c89" != "xno" && break
6419 rm -f conftest.$ac_ext
6424 case "x$ac_cv_prog_cc_c89" in
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6427 $as_echo "none needed" >&6; } ;;
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6430 $as_echo "unsupported" >&6; } ;;
6432 CC="$CC $ac_cv_prog_cc_c89"
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6434 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6436 if test "x$ac_cv_prog_cc_c89" != xno; then :
6441 ac_cpp='$CPP $CPPFLAGS'
6442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6447 ac_cpp='$CPP $CPPFLAGS'
6448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6452 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6453 if ${am_cv_prog_cc_c_o+:} false; then :
6454 $as_echo_n "(cached) " >&6
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6467 # Make sure it works both with $CC and with simple cc.
6468 # Following AC_PROG_CC_C_O, we do the test twice because some
6469 # compilers refuse to overwrite an existing .o file with -o,
6470 # though they will create one.
6471 am_cv_prog_cc_c_o=yes
6473 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6474 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } \
6478 && test -f conftest2.$ac_objext; then
6481 am_cv_prog_cc_c_o=no
6485 rm -f core conftest*
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6489 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6490 if test "$am_cv_prog_cc_c_o" != yes; then
6491 # Losing compiler, so override with the script.
6492 # FIXME: It is wrong to rewrite CC.
6493 # But if we don't then we get into trouble of one sort or another.
6494 # A longer-term fix would be to have automake use am__CC in this case,
6495 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6496 CC="$am_aux_dir/compile $CC"
6499 ac_cpp='$CPP $CPPFLAGS'
6500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6505 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6509 for ac_dir in ../.. "$srcdir"/../..; do
6510 if test -f "$ac_dir/install-sh"; then
6512 ac_install_sh="$ac_aux_dir/install-sh -c"
6514 elif test -f "$ac_dir/install.sh"; then
6516 ac_install_sh="$ac_aux_dir/install.sh -c"
6518 elif test -f "$ac_dir/shtool"; then
6520 ac_install_sh="$ac_aux_dir/shtool install -c"
6524 if test -z "$ac_aux_dir"; then
6525 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
6528 # These three variables are undocumented and unsupported,
6529 # and are intended to be withdrawn in a future Autoconf release.
6530 # They can cause serious problems if a builder's source tree is in a directory
6531 # whose full name contains unusual characters.
6532 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6533 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6534 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6538 $as_echo_n "checking target system type... " >&6; }
6539 if ${ac_cv_target+:} false; then :
6540 $as_echo_n "(cached) " >&6
6542 if test "x$target_alias" = x; then
6543 ac_cv_target=$ac_cv_host
6545 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6546 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6551 $as_echo "$ac_cv_target" >&6; }
6552 case $ac_cv_target in
6554 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6556 target=$ac_cv_target
6557 ac_save_IFS=$IFS; IFS='-'
6563 # Remember, the first character of IFS is used to create $*,
6564 # except with old shells:
6567 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
6570 # The aliases save the names the user supplied, while $host etc.
6571 # will get canonicalized.
6572 test -n "$target_alias" &&
6573 test "$program_prefix$program_suffix$program_transform_name" = \
6575 program_prefix=${target_alias}-
6583 LIBC_FATAL_STDERR_=1
6584 export LIBC_FATAL_STDERR_
6586 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6587 if test "x$ac_cv_type_size_t" = xyes; then :
6591 cat >>confdefs.h <<_ACEOF
6592 #define size_t unsigned int
6597 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6598 # for constant arguments. Useless!
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6600 $as_echo_n "checking for working alloca.h... " >&6; }
6601 if ${ac_cv_working_alloca_h+:} false; then :
6602 $as_echo_n "(cached) " >&6
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6610 char *p = (char *) alloca (2 * sizeof (int));
6616 if ac_fn_c_try_link "$LINENO"; then :
6617 ac_cv_working_alloca_h=yes
6619 ac_cv_working_alloca_h=no
6621 rm -f core conftest.err conftest.$ac_objext \
6622 conftest$ac_exeext conftest.$ac_ext
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6625 $as_echo "$ac_cv_working_alloca_h" >&6; }
6626 if test $ac_cv_working_alloca_h = yes; then
6628 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6633 $as_echo_n "checking for alloca... " >&6; }
6634 if ${ac_cv_func_alloca_works+:} false; then :
6635 $as_echo_n "(cached) " >&6
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6640 # define alloca __builtin_alloca
6643 # include <malloc.h>
6644 # define alloca _alloca
6646 # ifdef HAVE_ALLOCA_H
6647 # include <alloca.h>
6652 # ifndef alloca /* predefined by HP cc +Olibcalls */
6653 void *alloca (size_t);
6663 char *p = (char *) alloca (1);
6669 if ac_fn_c_try_link "$LINENO"; then :
6670 ac_cv_func_alloca_works=yes
6672 ac_cv_func_alloca_works=no
6674 rm -f core conftest.err conftest.$ac_objext \
6675 conftest$ac_exeext conftest.$ac_ext
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6678 $as_echo "$ac_cv_func_alloca_works" >&6; }
6680 if test $ac_cv_func_alloca_works = yes; then
6682 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6685 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6686 # that cause trouble. Some versions do not even contain alloca or
6687 # contain a buggy version. If you still want to use their alloca,
6688 # use ar to extract alloca.o from them instead of compiling alloca.c.
6694 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6696 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c
' needs Cray hooks" >&5
6700 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
6701 if ${ac_cv_os_cray+:} false; then :
6702 $as_echo_n "(cached
) " >&6
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6706 #if defined CRAY && ! defined CRAY2
6713 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6714 $EGREP "webecray
" >/dev/null 2>&1; then :
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_os_cray" >&5
6723 $as_echo "$ac_cv_os_cray" >&6; }
6724 if test $ac_cv_os_cray = yes; then
6725 for ac_func in _getb67 GETB67 getb67; do
6726 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
6727 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6728 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6730 cat >>confdefs.h <<_ACEOF
6731 #define CRAY_STACKSEG_END $ac_func
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction
for C alloca
" >&5
6741 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
6742 if ${ac_cv_c_stack_direction+:} false; then :
6743 $as_echo_n "(cached
) " >&6
6745 if test "$cross_compiling" = yes; then :
6746 ac_cv_c_stack_direction=0
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 $ac_includes_default
6752 find_stack_direction (int *addr, int depth)
6757 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6758 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6763 main (int argc, char **argv)
6765 return find_stack_direction (0, argc + !argv + 20) < 0;
6768 if ac_fn_c_try_run "$LINENO"; then :
6769 ac_cv_c_stack_direction=1
6771 ac_cv_c_stack_direction=-1
6773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6774 conftest.$ac_objext conftest.beam conftest.$ac_ext
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_stack_direction" >&5
6779 $as_echo "$ac_cv_c_stack_direction" >&6; }
6780 cat >>confdefs.h <<_ACEOF
6781 #define STACK_DIRECTION $ac_cv_c_stack_direction
6790 HAVE_DECL_INET_NTOP=1;
6791 HAVE_DECL_INET_PTON=1;
6792 REPLACE_INET_NTOP=0;
6793 REPLACE_INET_PTON=0;
6799 for ac_header in $gl_header_list
6801 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
6802 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6803 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6804 cat >>confdefs.h <<_ACEOF
6805 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next
" >&5
6819 $as_echo_n "checking whether the preprocessor supports include_next...
" >&6; }
6820 if ${gl_cv_have_include_next+:} false; then :
6821 $as_echo_n "(cached
) " >&6
6823 rm -rf conftestd1a conftestd1b conftestd2
6824 mkdir conftestd1a conftestd1b conftestd2
6825 cat <<EOF > conftestd1a/conftest.h
6826 #define DEFINED_IN_CONFTESTD1
6827 #include_next <conftest.h>
6828 #ifdef DEFINED_IN_CONFTESTD2
6831 #error "include_next doesn
't work"
6834 cat <<EOF > conftestd1b/conftest.h
6835 #define DEFINED_IN_CONFTESTD1
6837 #include_next <conftest.h>
6838 #ifdef DEFINED_IN_CONFTESTD2
6841 #error "include_next doesn't work
"
6844 cat <<EOF > conftestd2/conftest.h
6845 #ifndef DEFINED_IN_CONFTESTD1
6846 #error "include_next
test doesn
't work"
6848 #define DEFINED_IN_CONFTESTD2
6850 gl_save_CPPFLAGS="$CPPFLAGS"
6851 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 #include <conftest.h>
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 gl_cv_have_include_next=yes
6859 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h. */
6862 #include <conftest.h>
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 gl_cv_have_include_next=buggy
6867 gl_cv_have_include_next=no
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 CPPFLAGS="$gl_save_CPPFLAGS"
6874 rm -rf conftestd1a conftestd1b conftestd2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6878 $as_echo "$gl_cv_have_include_next" >&6; }
6879 PRAGMA_SYSTEM_HEADER=
6880 if test $gl_cv_have_include_next = yes; then
6881 INCLUDE_NEXT=include_next
6882 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6883 if test -n "$GCC"; then
6884 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6887 if test $gl_cv_have_include_next = buggy
; then
6888 INCLUDE_NEXT
=include
6889 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
6891 INCLUDE_NEXT
=include
6892 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6899 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6900 if ${gl_cv_pragma_columns+:} false
; then :
6901 $as_echo_n "(cached) " >&6
6903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912 $EGREP "choke me" >/dev
/null
2>&1; then :
6913 gl_cv_pragma_columns
=yes
6915 gl_cv_pragma_columns
=no
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6922 $as_echo "$gl_cv_pragma_columns" >&6; }
6923 if test $gl_cv_pragma_columns = yes; then
6924 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
6943 if test $ac_cv_header_features_h = yes; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6951 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6952 if test -z "$MKDIR_P"; then
6953 if ${ac_cv_path_mkdir+:} false
; then :
6954 $as_echo_n "(cached) " >&6
6956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6957 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
6960 test -z "$as_dir" && as_dir
=.
6961 for ac_prog
in mkdir gmkdir
; do
6962 for ac_exec_ext
in '' $ac_executable_extensions; do
6963 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
6964 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6965 'mkdir (GNU coreutils) '* | \
6966 'mkdir (coreutils) '* | \
6967 'mkdir (fileutils) '4.1*)
6968 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
6978 test -d .
/--version && rmdir .
/--version
6979 if test "${ac_cv_path_mkdir+set}" = set; then
6980 MKDIR_P
="$ac_cv_path_mkdir -p"
6982 # As a last resort, use the slow shell script. Don't cache a
6983 # value for MKDIR_P within a source directory, because that will
6984 # break other packages using the cache if that directory is
6985 # removed, or if the value is a relative name.
6986 MKDIR_P
="$ac_install_sh -d"
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6990 $as_echo "$MKDIR_P" >&6; }
6995 GNULIB_CALLOC_POSIX
=0;
6996 GNULIB_CANONICALIZE_FILE_NAME
=0;
6997 GNULIB_GETLOADAVG
=0;
7000 GNULIB_MALLOC_POSIX
=0;
7007 GNULIB_POSIX_OPENPT
=0;
7014 GNULIB_REALLOC_POSIX
=0;
7017 GNULIB_SECURE_GETENV
=0;
7022 GNULIB_SYSTEM_POSIX
=0;
7028 HAVE_CANONICALIZE_FILE_NAME
=1;
7029 HAVE_DECL_GETLOADAVG
=1;
7037 HAVE_POSIX_OPENPT
=1;
7046 HAVE_SECURE_GETENV
=1;
7052 HAVE_STRUCT_RANDOM_DATA
=1;
7053 HAVE_SYS_LOADAVG_H
=0;
7055 HAVE_DECL_UNSETENV
=1;
7057 REPLACE_CANONICALIZE_FILE_NAME
=0;
7062 REPLACE_PTSNAME_R
=0;
7077 for ac_func
in $gl_func_list
7079 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7080 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7081 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7082 cat >>confdefs.h
<<_ACEOF
7083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7106 $as_echo_n "checking whether // is distinct from /... " >&6; }
7107 if ${gl_cv_double_slash_root+:} false
; then :
7108 $as_echo_n "(cached) " >&6
7110 if test x
"$cross_compiling" = xyes
; then
7111 # When cross-compiling, there is no way to tell whether // is special
7112 # short of a list of hosts. However, the only known hosts to date
7113 # that have a distinct // are Apollo DomainOS (too old to port to),
7114 # Cygwin, and z/OS. If anyone knows of another system for which // has
7115 # special semantics and is distinct from /, please report it to
7116 # <bug-gnulib@gnu.org>.
7118 *-cygwin | i370-ibm-openedition
)
7119 gl_cv_double_slash_root
=yes ;;
7121 # Be optimistic and assume that / and // are the same when we
7123 gl_cv_double_slash_root
='unknown, assuming no' ;;
7126 set x
`ls -di / // 2>/dev/null`
7127 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7128 gl_cv_double_slash_root
=no
7130 gl_cv_double_slash_root
=yes
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7135 $as_echo "$gl_cv_double_slash_root" >&6; }
7136 if test "$gl_cv_double_slash_root" = yes; then
7138 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7156 $as_echo_n "checking whether realpath works... " >&6; }
7157 if ${gl_cv_func_realpath_works+:} false
; then :
7158 $as_echo_n "(cached) " >&6
7163 if test "$cross_compiling" = yes; then :
7165 # Guess yes on glibc systems.
7166 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7167 # If we don't know, assume the worst.
7168 *) gl_cv_func_realpath_works
="guessing no" ;;
7172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7178 #if defined __MACH__ && defined __APPLE__
7179 /* Avoid a crash on Mac OS X. */
7180 #include <mach/mach.h>
7181 #include <mach/mach_error.h>
7182 #include <mach/thread_status.h>
7183 #include <mach/exception.h>
7184 #include <mach/task.h>
7185 #include <pthread.h>
7186 /* The exception port on which our thread listens. */
7187 static mach_port_t our_exception_port;
7188 /* The main function of the thread listening for exceptions of type
7191 mach_exception_thread (void *arg)
7193 /* Buffer for a message to be received. */
7195 mach_msg_header_t head;
7196 mach_msg_body_t msgh_body;
7199 mach_msg_return_t retval;
7200 /* Wait for a message on the exception port. */
7201 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7202 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7203 if (retval != MACH_MSG_SUCCESS)
7210 mach_port_t self = mach_task_self ();
7211 /* Allocate a port on which the thread shall listen for exceptions. */
7212 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7214 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7215 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7216 MACH_MSG_TYPE_MAKE_SEND)
7218 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7220 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7221 /* Create the thread listening on the exception port. */
7222 pthread_attr_t attr;
7224 if (pthread_attr_init (&attr) == 0
7225 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7226 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7227 pthread_attr_destroy (&attr);
7228 /* Replace the exception port info for these exceptions with our own.
7229 Note that we replace the exception port for the entire task, not only
7230 for a particular thread. This has the effect that when our exception
7231 port gets the message, the thread specific exception port has already
7232 been asked, and we don't need to bother about it.
7233 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7234 task_set_exception_ports (self, mask, our_exception_port,
7235 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7240 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
7241 /* Avoid a crash on native Windows. */
7242 #define WIN32_LEAN_AND_MEAN
7243 #include <windows.h>
7244 #include <winerror.h>
7246 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7248 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7250 case EXCEPTION_ACCESS_VIOLATION:
7251 case EXCEPTION_IN_PAGE_ERROR:
7252 case EXCEPTION_STACK_OVERFLOW:
7253 case EXCEPTION_GUARD_PAGE:
7254 case EXCEPTION_PRIV_INSTRUCTION:
7255 case EXCEPTION_ILLEGAL_INSTRUCTION:
7256 case EXCEPTION_DATATYPE_MISALIGNMENT:
7257 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7258 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7261 return EXCEPTION_CONTINUE_SEARCH;
7266 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7269 /* Avoid a crash on POSIX systems. */
7272 /* A POSIX signal handler. */
7274 exception_handler (int sig)
7282 signal (SIGSEGV, exception_handler);
7285 signal (SIGBUS, exception_handler);
7299 char *name = realpath ("conftest.a", NULL);
7300 if (!(name && *name == '/'))
7305 char *name = realpath ("conftest.b/../conftest.a", NULL);
7311 char *name = realpath ("conftest.a/", NULL);
7317 char *name1 = realpath (".", NULL);
7318 char *name2 = realpath ("conftest.d//./..", NULL);
7319 if (! name1 || ! name2 || strcmp (name1, name2))
7331 if ac_fn_c_try_run
"$LINENO"; then :
7332 gl_cv_func_realpath_works
=yes
7334 gl_cv_func_realpath_works
=no
7336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7337 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7340 rm -rf conftest.a conftest.d
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7344 $as_echo "$gl_cv_func_realpath_works" >&6; }
7345 case "$gl_cv_func_realpath_works" in
7348 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7391 GNULIB_EUIDACCESS
=0;
7399 GNULIB_GETDOMAINNAME
=0;
7400 GNULIB_GETDTABLESIZE
=0;
7402 GNULIB_GETHOSTNAME
=0;
7404 GNULIB_GETLOGIN_R
=0;
7405 GNULIB_GETPAGESIZE
=0;
7406 GNULIB_GETUSERSHELL
=0;
7407 GNULIB_GROUP_MEMBER
=0;
7419 GNULIB_READLINKAT
=0;
7421 GNULIB_SETHOSTNAME
=0;
7426 GNULIB_UNISTD_H_NONBLOCKING
=0;
7427 GNULIB_UNISTD_H_SIGPIPE
=0;
7442 HAVE_GETDTABLESIZE
=1;
7447 HAVE_GROUP_MEMBER
=1;
7463 HAVE_DECL_ENVIRON
=1;
7465 HAVE_DECL_FDATASYNC
=1;
7466 HAVE_DECL_GETDOMAINNAME
=1;
7467 HAVE_DECL_GETLOGIN_R
=1;
7468 HAVE_DECL_GETPAGESIZE
=1;
7469 HAVE_DECL_GETUSERSHELL
=1;
7470 HAVE_DECL_SETHOSTNAME
=1;
7471 HAVE_DECL_TTYNAME_R
=1;
7479 REPLACE_FTRUNCATE
=0;
7481 REPLACE_GETDOMAINNAME
=0;
7482 REPLACE_GETDTABLESIZE
=0;
7483 REPLACE_GETLOGIN_R
=0;
7484 REPLACE_GETGROUPS
=0;
7485 REPLACE_GETPAGESIZE
=0;
7495 REPLACE_READLINKAT
=0;
7499 REPLACE_SYMLINKAT
=0;
7500 REPLACE_TTYNAME_R
=0;
7505 UNISTD_H_HAVE_WINSOCK2_H
=0;
7506 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7539 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7540 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7542 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7545 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7573 HAVE_DECL_FDOPENDIR
=1;
7580 REPLACE_FDOPENDIR
=0;
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7601 $as_echo_n "checking if environ is properly declared... " >&6; }
7602 if ${gt_cv_var_environ_declaration+:} false
; then :
7603 $as_echo_n "(cached) " >&6
7606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7611 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7614 extern struct { int foo; } environ;
7623 if ac_fn_c_try_compile
"$LINENO"; then :
7624 gt_cv_var_environ_declaration
=no
7626 gt_cv_var_environ_declaration
=yes
7628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7632 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7633 if test $gt_cv_var_environ_declaration = yes; then
7635 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7640 if test $gt_cv_var_environ_declaration != yes; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7647 $as_echo_n "checking for complete errno.h... " >&6; }
7648 if ${gl_cv_header_errno_h_complete+:} false
; then :
7649 $as_echo_n "(cached) " >&6
7652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7656 #if !defined ETXTBSY
7665 #if !defined ENOLINK
7671 #if !defined EMULTIHOP
7674 #if !defined EBADMSG
7677 #if !defined EOVERFLOW
7680 #if !defined ENOTSUP
7683 #if !defined ENETRESET
7686 #if !defined ECONNABORTED
7695 #if !defined ECANCELED
7698 #if !defined EOWNERDEAD
7701 #if !defined ENOTRECOVERABLE
7709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7710 $EGREP "booboo" >/dev
/null
2>&1; then :
7711 gl_cv_header_errno_h_complete
=no
7713 gl_cv_header_errno_h_complete
=yes
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7720 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7721 if test $gl_cv_header_errno_h_complete = yes; then
7732 if test $gl_cv_have_include_next = yes; then
7733 gl_cv_next_errno_h
='<'errno.h
'>'
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7736 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7737 if ${gl_cv_next_errno_h+:} false
; then :
7738 $as_echo_n "(cached) " >&6
7743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7748 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7749 *) gl_absname_cpp
="$ac_cpp" ;;
7754 gl_dirsep_regex
='[/\\]'
7757 gl_dirsep_regex
='\/'
7760 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
7761 gl_header_literal_regex
=`echo 'errno.h' \
7762 | sed -e "$gl_make_literal_regex_sed"`
7763 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7764 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7770 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7771 sed -n "$gl_absolute_header_sed"`
7773 gl_header
=$gl_cv_absolute_errno_h
7774 gl_cv_next_errno_h
='"'$gl_header'"'
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7779 $as_echo "$gl_cv_next_errno_h" >&6; }
7781 NEXT_ERRNO_H
=$gl_cv_next_errno_h
7783 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7785 gl_next_as_first_directive
='<'errno.h
'>'
7787 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7788 gl_next_as_first_directive
=$gl_cv_next_errno_h
7790 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
7798 if test -n "$ERRNO_H"; then
7799 GL_GENERATE_ERRNO_H_TRUE
=
7800 GL_GENERATE_ERRNO_H_FALSE
='#'
7802 GL_GENERATE_ERRNO_H_TRUE
='#'
7803 GL_GENERATE_ERRNO_H_FALSE
=
7807 if test -n "$ERRNO_H"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7809 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7810 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
7811 $as_echo_n "(cached) " >&6
7814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7824 $EGREP "yes" >/dev
/null
2>&1; then :
7825 gl_cv_header_errno_h_EMULTIHOP
=yes
7827 gl_cv_header_errno_h_EMULTIHOP
=no
7831 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
7832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7835 #define _XOPEN_SOURCE_EXTENDED 1
7842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7843 $EGREP "yes" >/dev
/null
2>&1; then :
7844 gl_cv_header_errno_h_EMULTIHOP
=hidden
7848 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
7849 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7850 #define _XOPEN_SOURCE_EXTENDED 1
7852 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7864 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7865 case $gl_cv_header_errno_h_EMULTIHOP in
7867 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
7870 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
7878 if test -n "$ERRNO_H"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7880 $as_echo_n "checking for ENOLINK value... " >&6; }
7881 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
7882 $as_echo_n "(cached) " >&6
7885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895 $EGREP "yes" >/dev
/null
2>&1; then :
7896 gl_cv_header_errno_h_ENOLINK
=yes
7898 gl_cv_header_errno_h_ENOLINK
=no
7902 if test $gl_cv_header_errno_h_ENOLINK = no
; then
7903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7906 #define _XOPEN_SOURCE_EXTENDED 1
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914 $EGREP "yes" >/dev
/null
2>&1; then :
7915 gl_cv_header_errno_h_ENOLINK
=hidden
7919 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
7920 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7921 #define _XOPEN_SOURCE_EXTENDED 1
7923 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7935 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7936 case $gl_cv_header_errno_h_ENOLINK in
7938 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
7941 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
7949 if test -n "$ERRNO_H"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7951 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7952 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
7953 $as_echo_n "(cached) " >&6
7956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7966 $EGREP "yes" >/dev
/null
2>&1; then :
7967 gl_cv_header_errno_h_EOVERFLOW
=yes
7969 gl_cv_header_errno_h_EOVERFLOW
=no
7973 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
7974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7977 #define _XOPEN_SOURCE_EXTENDED 1
7984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7985 $EGREP "yes" >/dev
/null
2>&1; then :
7986 gl_cv_header_errno_h_EOVERFLOW
=hidden
7990 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
7991 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7992 #define _XOPEN_SOURCE_EXTENDED 1
7994 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8006 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8007 case $gl_cv_header_errno_h_EOVERFLOW in
8009 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8012 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8020 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8021 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
8027 cat >>confdefs.h
<<_ACEOF
8028 #define HAVE_DECL_STRERROR_R $ac_have_decl
8031 for ac_func
in strerror_r
8033 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8034 if test "x$ac_cv_func_strerror_r" = xyes
; then :
8035 cat >>confdefs.h
<<_ACEOF
8036 #define HAVE_STRERROR_R 1
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8043 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8044 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
8045 $as_echo_n "(cached) " >&6
8048 ac_cv_func_strerror_r_char_p
=no
8049 if test $ac_cv_have_decl_strerror_r = yes; then
8050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 $ac_includes_default
8058 char x = *strerror_r (0, buf, sizeof buf);
8059 char *p = strerror_r (0, buf, sizeof buf);
8066 if ac_fn_c_try_compile
"$LINENO"; then :
8067 ac_cv_func_strerror_r_char_p
=yes
8069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8071 # strerror_r is not declared. Choose between
8072 # systems that have relatively inaccessible declarations for the
8073 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8074 # former has a strerror_r that returns char*, while the latter
8075 # has a strerror_r that returns `int'.
8076 # This test should segfault on the DEC system.
8077 if test "$cross_compiling" = yes; then :
8080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082 $ac_includes_default
8083 extern char *strerror_r ();
8088 char x = *strerror_r (0, buf, sizeof buf);
8089 return ! isalpha (x);
8094 if ac_fn_c_try_run
"$LINENO"; then :
8095 ac_cv_func_strerror_r_char_p
=yes
8097 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8098 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8105 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8106 if test $ac_cv_func_strerror_r_char_p = yes; then
8108 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8116 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8117 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8123 cat >>confdefs.h
<<_ACEOF
8124 #define HAVE_DECL_FCHDIR $ac_have_decl
8130 GNULIB_NONBLOCKING
=0;
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8167 $as_echo_n "checking for working fcntl.h... " >&6; }
8168 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8169 $as_echo_n "(cached) " >&6
8171 if test "$cross_compiling" = yes; then :
8172 gl_cv_header_working_fcntl_h
=cross-compiling
8174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 #include <sys/types.h>
8177 #include <sys/stat.h>
8179 # include <unistd.h>
8180 #else /* on Windows with MSVC */
8182 # include <stdlib.h>
8183 # defined sleep(n) _sleep ((n) * 1000)
8190 #define O_NOFOLLOW 0
8192 static int const constants[] =
8194 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8195 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8202 int result = !constants;
8205 static char const sym[] = "conftest.sym";
8206 if (symlink ("/dev/null", sym) != 0)
8210 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8217 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8221 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8232 static char const file[] = "confdefs.h";
8233 int fd = open (file, O_RDONLY | O_NOATIME);
8239 if (fstat (fd, &st0) != 0)
8245 if (read (fd, &c, 1) != 1)
8249 if (close (fd) != 0)
8254 if (stat (file, &st1) != 0)
8257 if (st0.st_atime != st1.st_atime)
8269 if ac_fn_c_try_run
"$LINENO"; then :
8270 gl_cv_header_working_fcntl_h
=yes
8273 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8274 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8275 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8276 *) gl_cv_header_working_fcntl_h
='no';;
8279 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8280 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8285 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8287 case $gl_cv_header_working_fcntl_h in #(
8288 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8292 cat >>confdefs.h
<<_ACEOF
8293 #define HAVE_WORKING_O_NOATIME $ac_val
8297 case $gl_cv_header_working_fcntl_h in #(
8298 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8302 cat >>confdefs.h
<<_ACEOF
8303 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8307 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8308 if test "x$ac_cv_type_pid_t" = xyes
; then :
8312 cat >>confdefs.h
<<_ACEOF
8318 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8319 if test "x$ac_cv_type_mode_t" = xyes
; then :
8323 cat >>confdefs.h
<<_ACEOF
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8342 $as_echo_n "checking for mbstate_t... " >&6; }
8343 if ${ac_cv_type_mbstate_t+:} false
; then :
8344 $as_echo_n "(cached) " >&6
8346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 $ac_includes_default
8349 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8351 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8352 included before <wchar.h>. */
8360 mbstate_t x; return sizeof x;
8365 if ac_fn_c_try_compile
"$LINENO"; then :
8366 ac_cv_type_mbstate_t
=yes
8368 ac_cv_type_mbstate_t
=no
8370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8373 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8374 if test $ac_cv_type_mbstate_t = yes; then
8376 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8380 $as_echo "#define mbstate_t int" >>confdefs.h
8500 GNULIB_REMAINDERF
=0;
8501 GNULIB_REMAINDERL
=0;
8587 HAVE_DECL_COPYSIGNF
=1;
8604 HAVE_DECL_REMAINDER
=1;
8605 HAVE_DECL_REMAINDERL
=1;
8667 REPLACE_REMAINDER
=0;
8668 REPLACE_REMAINDERF
=0;
8669 REPLACE_REMAINDERL
=0;
8674 REPLACE_SIGNBIT_USING_GCC
=0;
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
8682 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
8683 if ${gl_cv_func_frexp_no_libm+:} false
; then :
8684 $as_echo_n "(cached) " >&6
8687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8694 int e; return frexp (x, &e) > 0;
8699 if ac_fn_c_try_link
"$LINENO"; then :
8700 gl_cv_func_frexp_no_libm
=yes
8702 gl_cv_func_frexp_no_libm
=no
8704 rm -f core conftest.err conftest.
$ac_objext \
8705 conftest
$ac_exeext conftest.
$ac_ext
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
8709 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
8712 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
8713 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
8719 cat >>confdefs.h
<<_ACEOF
8720 #define HAVE_DECL_ALARM $ac_have_decl
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8726 $as_echo_n "checking whether long double and double are the same... " >&6; }
8727 if ${gl_cv_long_double_equals_double+:} false
; then :
8728 $as_echo_n "(cached) " >&6
8730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8736 typedef int check[sizeof (long double) == sizeof (double)
8737 && LDBL_MANT_DIG == DBL_MANT_DIG
8738 && LDBL_MAX_EXP == DBL_MAX_EXP
8739 && LDBL_MIN_EXP == DBL_MIN_EXP
8746 if ac_fn_c_try_compile
"$LINENO"; then :
8747 gl_cv_long_double_equals_double
=yes
8749 gl_cv_long_double_equals_double
=no
8751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8755 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8756 if test $gl_cv_long_double_equals_double = yes; then
8758 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8760 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
8762 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
8799 REPLACE_UTIMENSAT
=0;
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8802 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8803 if ${ac_cv_header_stat_broken+:} false
; then :
8804 $as_echo_n "(cached) " >&6
8806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 #include <sys/types.h>
8809 #include <sys/stat.h>
8811 #if defined S_ISBLK && defined S_IFDIR
8812 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8815 #if defined S_ISBLK && defined S_IFCHR
8816 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8819 #if defined S_ISLNK && defined S_IFREG
8820 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8823 #if defined S_ISSOCK && defined S_IFREG
8824 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8828 if ac_fn_c_try_compile
"$LINENO"; then :
8829 ac_cv_header_stat_broken
=no
8831 ac_cv_header_stat_broken
=yes
8833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8836 $as_echo "$ac_cv_header_stat_broken" >&6; }
8837 if test $ac_cv_header_stat_broken = yes; then
8839 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8853 $as_echo_n "checking for 64-bit off_t... " >&6; }
8854 if ${gl_cv_type_off_t_64+:} false
; then :
8855 $as_echo_n "(cached) " >&6
8857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 #include <sys/types.h>
8860 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8870 if ac_fn_c_try_compile
"$LINENO"; then :
8871 gl_cv_type_off_t_64
=yes
8873 gl_cv_type_off_t_64
=no
8875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8879 $as_echo "$gl_cv_type_off_t_64" >&6; }
8880 if test $gl_cv_type_off_t_64 = no
; then
8881 WINDOWS_64_BIT_OFF_T
=1
8883 WINDOWS_64_BIT_OFF_T
=0
8885 WINDOWS_64_BIT_ST_SIZE
=1
8888 WINDOWS_64_BIT_OFF_T
=0
8889 WINDOWS_64_BIT_ST_SIZE
=0
8913 if test $gl_cv_have_include_next = yes; then
8914 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
8917 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
8918 if ${gl_cv_next_sys_stat_h+:} false
; then :
8919 $as_echo_n "(cached) " >&6
8922 if test $ac_cv_header_sys_stat_h = yes; then
8927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 #include <sys/stat.h>
8932 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8933 *) gl_absname_cpp
="$ac_cpp" ;;
8938 gl_dirsep_regex
='[/\\]'
8941 gl_dirsep_regex
='\/'
8944 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8945 gl_header_literal_regex
=`echo 'sys/stat.h' \
8946 | sed -e "$gl_make_literal_regex_sed"`
8947 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8948 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8954 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8955 sed -n "$gl_absolute_header_sed"`
8957 gl_header
=$gl_cv_absolute_sys_stat_h
8958 gl_cv_next_sys_stat_h
='"'$gl_header'"'
8960 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
8966 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
8968 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
8970 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8971 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8972 gl_next_as_first_directive
='<'sys
/stat.h
'>'
8974 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8975 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
8977 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
8989 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
8991 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
8995 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
8996 #include <sys/stat.h>
8998 if test "x$ac_cv_type_nlink_t" = xyes
; then :
9002 $as_echo "#define nlink_t int" >>confdefs.h
9008 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
9009 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9011 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9012 if eval \
${$as_gl_Symbol+:} false
; then :
9013 $as_echo_n "(cached) " >&6
9015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017 #include <sys/stat.h>
9028 if ac_fn_c_try_compile
"$LINENO"; then :
9029 eval "$as_gl_Symbol=yes"
9031 eval "$as_gl_Symbol=no"
9033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9035 eval ac_res
=\$
$as_gl_Symbol
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9037 $as_echo "$ac_res" >&6; }
9038 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9039 cat >>confdefs.h
<<_ACEOF
9040 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9043 eval ac_cv_have_decl_
$gl_func=yes
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9050 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9051 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
9052 $as_echo_n "(cached) " >&6
9054 rm -f conftest.sym conftest.
file
9056 if test "$cross_compiling" = yes; then :
9059 # Guess yes on glibc systems.
9060 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9062 # If we don't know, assume the worst.
9063 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
9067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 $ac_includes_default
9074 if (symlink ("conftest.file", "conftest.sym") != 0)
9076 /* Linux will dereference the symlink and fail, as required by
9077 POSIX. That is better in the sense that it means we will not
9078 have to compile and use the lstat wrapper. */
9079 return lstat ("conftest.sym/", &sbuf) == 0;
9085 if ac_fn_c_try_run
"$LINENO"; then :
9086 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
9088 gl_cv_func_lstat_dereferences_slashed_symlink
=no
9090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9094 rm -f conftest.sym conftest.
file
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9098 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9099 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9102 cat >>confdefs.h
<<_ACEOF
9103 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9123 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9124 if ${gl_cv_func_getcwd_null+:} false
; then :
9125 $as_echo_n "(cached) " >&6
9127 if test "$cross_compiling" = yes; then :
9129 # Guess yes on glibc systems.
9130 *-gnu*) gl_cv_func_getcwd_null
="guessing yes";;
9131 # Guess yes on Cygwin.
9132 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
9133 # If we don't know, assume the worst.
9134 *) gl_cv_func_getcwd_null
="guessing no";;
9138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9141 # include <stdlib.h>
9143 # include <unistd.h>
9144 # else /* on Windows with MSVC */
9145 # include <direct.h>
9155 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9156 /* mingw cwd does not start with '/', but getcwd does allocate.
9157 However, mingw fails to honor non-zero size. */
9159 if (chdir ("/") != 0)
9163 char *f = getcwd (NULL, 0);
9179 if ac_fn_c_try_run
"$LINENO"; then :
9180 gl_cv_func_getcwd_null
=yes
9182 gl_cv_func_getcwd_null
=no
9184 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9185 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9190 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9194 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9195 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9196 $as_echo_n "(cached) " >&6
9198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9208 char *getcwd (char *, size_t);
9215 if ac_fn_c_try_compile
"$LINENO"; then :
9216 gl_cv_func_getcwd_posix_signature
=yes
9218 gl_cv_func_getcwd_posix_signature
=no
9220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9224 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9227 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9228 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
9234 cat >>confdefs.h
<<_ACEOF
9235 #define HAVE_DECL_GETCWD $ac_have_decl
9245 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9246 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
9252 cat >>confdefs.h
<<_ACEOF
9253 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9258 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9259 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
9265 cat >>confdefs.h
<<_ACEOF
9266 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9276 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9277 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
9283 cat >>confdefs.h
<<_ACEOF
9284 #define HAVE_DECL_GETLOGIN $ac_have_decl
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9299 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9300 if ${ac_cv_c_restrict+:} false
; then :
9301 $as_echo_n "(cached) " >&6
9304 # The order here caters to the fact that C++ does not require restrict.
9305 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 typedef int *int_ptr;
9309 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9310 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9311 int bar (int ip[$ac_kw]) { return ip[0]; }
9319 return foo (t) + bar (t);
9325 if ac_fn_c_try_compile
"$LINENO"; then :
9326 ac_cv_c_restrict
=$ac_kw
9328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9329 test "$ac_cv_c_restrict" != no
&& break
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9334 $as_echo "$ac_cv_c_restrict" >&6; }
9336 case $ac_cv_c_restrict in
9338 no
) $as_echo "#define restrict /**/" >>confdefs.h
9340 *) cat >>confdefs.h
<<_ACEOF
9341 #define restrict $ac_cv_c_restrict
9347 GNULIB_GETTIMEOFDAY
=0;
9348 HAVE_GETTIMEOFDAY
=1;
9349 HAVE_STRUCT_TIMEVAL
=1;
9352 REPLACE_GETTIMEOFDAY
=0;
9353 REPLACE_STRUCT_TIMEVAL
=0;
9385 if test $gl_cv_have_include_next = yes; then
9386 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9389 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9390 if ${gl_cv_next_sys_time_h+:} false
; then :
9391 $as_echo_n "(cached) " >&6
9394 if test $ac_cv_header_sys_time_h = yes; then
9399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 #include <sys/time.h>
9404 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9405 *) gl_absname_cpp
="$ac_cpp" ;;
9410 gl_dirsep_regex
='[/\\]'
9413 gl_dirsep_regex
='\/'
9416 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9417 gl_header_literal_regex
=`echo 'sys/time.h' \
9418 | sed -e "$gl_make_literal_regex_sed"`
9419 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9420 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9426 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9427 sed -n "$gl_absolute_header_sed"`
9429 gl_header
=$gl_cv_absolute_sys_time_h
9430 gl_cv_next_sys_time_h
='"'$gl_header'"'
9432 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9438 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9440 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9442 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9444 gl_next_as_first_directive
='<'sys
/time.h
'>'
9446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9447 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
9449 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
9455 if test $ac_cv_header_sys_time_h != yes; then
9469 if test $ac_cv_header_sys_socket_h != yes; then
9470 for ac_header
in winsock2.h
9472 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9473 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
9474 cat >>confdefs.h
<<_ACEOF
9475 #define HAVE_WINSOCK2_H 1
9483 if test "$ac_cv_header_winsock2_h" = yes; then
9485 UNISTD_H_HAVE_WINSOCK2_H
=1
9486 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9493 $as_echo_n "checking for struct timeval... " >&6; }
9494 if ${gl_cv_sys_struct_timeval+:} false
; then :
9495 $as_echo_n "(cached) " >&6
9497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9500 #include <sys/time.h>
9504 # include <winsock2.h>
9510 static struct timeval x; x.tv_sec = x.tv_usec;
9515 if ac_fn_c_try_compile
"$LINENO"; then :
9516 gl_cv_sys_struct_timeval
=yes
9518 gl_cv_sys_struct_timeval
=no
9520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9524 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9525 if test $gl_cv_sys_struct_timeval != yes; then
9526 HAVE_STRUCT_TIMEVAL
=0
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9529 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9530 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
9531 $as_echo_n "(cached) " >&6
9533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9536 #include <sys/time.h>
9540 # include <winsock2.h>
9546 static struct timeval x;
9547 typedef int verify_tv_sec_type[
9548 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9555 if ac_fn_c_try_compile
"$LINENO"; then :
9556 gl_cv_sys_struct_timeval_tv_sec
=yes
9558 gl_cv_sys_struct_timeval_tv_sec
=no
9560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9564 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9565 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9566 REPLACE_STRUCT_TIMEVAL
=1
9571 for gl_func
in gettimeofday
; do
9572 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9574 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9575 if eval \
${$as_gl_Symbol+:} false
; then :
9576 $as_echo_n "(cached) " >&6
9578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9582 # include <sys/time.h>
9595 if ac_fn_c_try_compile
"$LINENO"; then :
9596 eval "$as_gl_Symbol=yes"
9598 eval "$as_gl_Symbol=no"
9600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9602 eval ac_res
=\$
$as_gl_Symbol
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9604 $as_echo "$ac_res" >&6; }
9605 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9606 cat >>confdefs.h
<<_ACEOF
9607 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9610 eval ac_cv_have_decl_
$gl_func=yes
9643 GNULIB_GETPEERNAME
=0;
9644 GNULIB_GETSOCKNAME
=0;
9645 GNULIB_GETSOCKOPT
=0;
9651 GNULIB_SETSOCKOPT
=0;
9654 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
9655 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
9667 if test $ac_cv_header_sys_socket_h = no
; then
9668 for ac_header
in ws2tcpip.h
9670 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
9671 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
9672 cat >>confdefs.h
<<_ACEOF
9673 #define HAVE_WS2TCPIP_H 1
9689 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
9695 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
9696 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
9697 $as_echo_n "(cached) " >&6
9700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 #include <sys/socket.h>
9711 if ac_fn_c_try_compile
"$LINENO"; then :
9712 gl_cv_header_sys_socket_h_selfcontained
=yes
9714 gl_cv_header_sys_socket_h_selfcontained
=no
9716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
9720 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
9721 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
9722 for ac_func
in shutdown
9724 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
9725 if test "x$ac_cv_func_shutdown" = xyes
; then :
9726 cat >>confdefs.h
<<_ACEOF
9727 #define HAVE_SHUTDOWN 1
9733 if test $ac_cv_func_shutdown = yes; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
9735 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
9736 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
9737 $as_echo_n "(cached) " >&6
9740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9742 #include <sys/socket.h>
9746 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
9751 if ac_fn_c_try_compile
"$LINENO"; then :
9752 gl_cv_header_sys_socket_h_shut
=yes
9754 gl_cv_header_sys_socket_h_shut
=no
9756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
9760 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
9761 if test $gl_cv_header_sys_socket_h_shut = no
; then
9762 SYS_SOCKET_H
='sys/socket.h'
9766 # We need to check for ws2tcpip.h now.
9784 if test $gl_cv_have_include_next = yes; then
9785 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
9788 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
9789 if ${gl_cv_next_sys_socket_h+:} false
; then :
9790 $as_echo_n "(cached) " >&6
9793 if test $ac_cv_header_sys_socket_h = yes; then
9798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 #include <sys/socket.h>
9803 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9804 *) gl_absname_cpp
="$ac_cpp" ;;
9809 gl_dirsep_regex
='[/\\]'
9812 gl_dirsep_regex
='\/'
9815 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9816 gl_header_literal_regex
=`echo 'sys/socket.h' \
9817 | sed -e "$gl_make_literal_regex_sed"`
9818 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9819 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9825 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9826 sed -n "$gl_absolute_header_sed"`
9828 gl_header
=$gl_cv_absolute_sys_socket_h
9829 gl_cv_next_sys_socket_h
='"'$gl_header'"'
9831 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
9837 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
9839 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
9841 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9843 gl_next_as_first_directive
='<'sys
/socket.h
'>'
9845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9846 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
9848 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
9853 if test $ac_cv_header_sys_socket_h = yes; then
9858 if test $ac_cv_header_ws2tcpip_h = yes; then
9867 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
9868 /* sys/types.h is not needed according to POSIX, but the
9869 sys/socket.h in i386-unknown-freebsd4.10 and
9870 powerpc-apple-darwin5.5 required it. */
9871 #include <sys/types.h>
9872 #ifdef HAVE_SYS_SOCKET_H
9873 #include <sys/socket.h>
9875 #ifdef HAVE_WS2TCPIP_H
9876 #include <ws2tcpip.h>
9880 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
9882 cat >>confdefs.h
<<_ACEOF
9883 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9888 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
9889 /* sys/types.h is not needed according to POSIX, but the
9890 sys/socket.h in i386-unknown-freebsd4.10 and
9891 powerpc-apple-darwin5.5 required it. */
9892 #include <sys/types.h>
9893 #ifdef HAVE_SYS_SOCKET_H
9894 #include <sys/socket.h>
9896 #ifdef HAVE_WS2TCPIP_H
9897 #include <ws2tcpip.h>
9901 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
9903 cat >>confdefs.h
<<_ACEOF
9904 #define HAVE_SA_FAMILY_T 1
9910 if test $ac_cv_type_struct_sockaddr_storage = no
; then
9911 HAVE_STRUCT_SOCKADDR_STORAGE
=0
9913 if test $ac_cv_type_sa_family_t = no
; then
9916 if test $ac_cv_type_struct_sockaddr_storage != no
; then
9917 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
9918 #ifdef HAVE_SYS_SOCKET_H
9919 #include <sys/socket.h>
9921 #ifdef HAVE_WS2TCPIP_H
9922 #include <ws2tcpip.h>
9926 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
9928 cat >>confdefs.h
<<_ACEOF
9929 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9934 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
9938 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
9939 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
9940 SYS_SOCKET_H
='sys/socket.h'
9952 if test $ac_cv_header_sys_socket_h != yes; then
9953 for ac_header
in winsock2.h
9955 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9956 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
9957 cat >>confdefs.h
<<_ACEOF
9958 #define HAVE_WINSOCK2_H 1
9966 if test "$ac_cv_header_winsock2_h" = yes; then
9968 UNISTD_H_HAVE_WINSOCK2_H
=1
9969 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9977 for gl_func
in socket connect accept
bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4
; do
9978 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9980 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9981 if eval \
${$as_gl_Symbol+:} false
; then :
9982 $as_echo_n "(cached) " >&6
9984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9987 /* Some systems require prerequisite headers. */
9988 #include <sys/types.h>
9989 #include <sys/socket.h>
10000 if ac_fn_c_try_compile
"$LINENO"; then :
10001 eval "$as_gl_Symbol=yes"
10003 eval "$as_gl_Symbol=no"
10005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10007 eval ac_res
=\$
$as_gl_Symbol
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10009 $as_echo "$ac_res" >&6; }
10010 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
10011 cat >>confdefs.h
<<_ACEOF
10012 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10015 eval ac_cv_have_decl_
$gl_func=yes
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
10036 $as_echo_n "checking for IPv4 sockets... " >&6; }
10037 if ${gl_cv_socket_ipv4+:} false
; then :
10038 $as_echo_n "(cached) " >&6
10040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 #include <sys/types.h>
10043 #ifdef HAVE_SYS_SOCKET_H
10044 #include <sys/socket.h>
10046 #ifdef HAVE_NETINET_IN_H
10047 #include <netinet/in.h>
10049 #ifdef HAVE_WINSOCK2_H
10050 #include <winsock2.h>
10055 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10056 if (&x && &y && &z) return 0;
10061 if ac_fn_c_try_compile
"$LINENO"; then :
10062 gl_cv_socket_ipv4
=yes
10064 gl_cv_socket_ipv4
=no
10066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
10070 $as_echo "$gl_cv_socket_ipv4" >&6; }
10071 if test $gl_cv_socket_ipv4 = yes; then
10073 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
10078 $as_echo_n "checking for IPv6 sockets... " >&6; }
10079 if ${gl_cv_socket_ipv6+:} false
; then :
10080 $as_echo_n "(cached) " >&6
10082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10084 #include <sys/types.h>
10085 #ifdef HAVE_SYS_SOCKET_H
10086 #include <sys/socket.h>
10088 #ifdef HAVE_NETINET_IN_H
10089 #include <netinet/in.h>
10091 #ifdef HAVE_WINSOCK2_H
10092 #include <winsock2.h>
10094 #ifdef HAVE_WS2TCPIP_H
10095 #include <ws2tcpip.h>
10100 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10101 if (&x && &y && &z) return 0;
10106 if ac_fn_c_try_compile
"$LINENO"; then :
10107 gl_cv_socket_ipv6
=yes
10109 gl_cv_socket_ipv6
=no
10111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
10115 $as_echo "$gl_cv_socket_ipv6" >&6; }
10116 if test $gl_cv_socket_ipv6 = yes; then
10118 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
10143 if test $gl_cv_have_include_next = yes; then
10144 gl_cv_next_limits_h
='<'limits.h
'>'
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
10147 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
10148 if ${gl_cv_next_limits_h+:} false
; then :
10149 $as_echo_n "(cached) " >&6
10152 if test $ac_cv_header_limits_h = yes; then
10157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159 #include <limits.h>
10162 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10163 *) gl_absname_cpp
="$ac_cpp" ;;
10168 gl_dirsep_regex
='[/\\]'
10171 gl_dirsep_regex
='\/'
10174 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10175 gl_header_literal_regex
=`echo 'limits.h' \
10176 | sed -e "$gl_make_literal_regex_sed"`
10177 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10178 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10184 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10185 sed -n "$gl_absolute_header_sed"`
10187 gl_header
=$gl_cv_absolute_limits_h
10188 gl_cv_next_limits_h
='"'$gl_header'"'
10190 gl_cv_next_limits_h
='<'limits.h
'>'
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
10196 $as_echo "$gl_cv_next_limits_h" >&6; }
10198 NEXT_LIMITS_H
=$gl_cv_next_limits_h
10200 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10201 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10202 gl_next_as_first_directive
='<'limits.h
'>'
10204 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10205 gl_next_as_first_directive
=$gl_cv_next_limits_h
10207 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
10214 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
10215 if ${gl_cv_header_limits_width+:} false
; then :
10216 $as_echo_n "(cached) " >&6
10218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10221 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10223 #include <limits.h>
10224 int ullw = ULLONG_WIDTH;
10233 if ac_fn_c_try_compile
"$LINENO"; then :
10234 gl_cv_header_limits_width
=yes
10236 gl_cv_header_limits_width
=no
10238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
10241 $as_echo "$gl_cv_header_limits_width" >&6; }
10242 if test "$gl_cv_header_limits_width" = yes; then
10248 if test -n "$LIMITS_H"; then
10249 GL_GENERATE_LIMITS_H_TRUE
=
10250 GL_GENERATE_LIMITS_H_FALSE
='#'
10252 GL_GENERATE_LIMITS_H_TRUE
='#'
10253 GL_GENERATE_LIMITS_H_FALSE
=
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10259 $as_echo_n "checking for unsigned long long int... " >&6; }
10260 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
10261 $as_echo_n "(cached) " >&6
10263 ac_cv_type_unsigned_long_long_int
=yes
10264 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10268 /* For now, do not test the preprocessor; as of 2007 there are too many
10269 implementations with broken preprocessors. Perhaps this can
10270 be revisited in 2012. In the meantime, code should not expect
10271 #if to work with literals wider than 32 bits. */
10272 /* Test literals. */
10273 long long int ll = 9223372036854775807ll;
10274 long long int nll = -9223372036854775807LL;
10275 unsigned long long int ull = 18446744073709551615ULL;
10276 /* Test constant expressions. */
10277 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10279 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10285 /* Test availability of runtime routines for shift and division. */
10286 long long int llmax = 9223372036854775807ll;
10287 unsigned long long int ullmax = 18446744073709551615ull;
10288 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10289 | (llmax / ll) | (llmax % ll)
10290 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10291 | (ullmax / ull) | (ullmax % ull));
10297 if ac_fn_c_try_link
"$LINENO"; then :
10300 ac_cv_type_unsigned_long_long_int
=no
10302 rm -f core conftest.err conftest.
$ac_objext \
10303 conftest
$ac_exeext conftest.
$ac_ext
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10307 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10308 if test $ac_cv_type_unsigned_long_long_int = yes; then
10310 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10317 $as_echo_n "checking for long long int... " >&6; }
10318 if ${ac_cv_type_long_long_int+:} false
; then :
10319 $as_echo_n "(cached) " >&6
10321 ac_cv_type_long_long_int
=yes
10322 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10323 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
10324 if test $ac_cv_type_long_long_int = yes; then
10325 if test "$cross_compiling" = yes; then :
10328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 #include <limits.h>
10333 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10334 # define LLONG_MAX (HALF - 1 + HALF)
10339 long long int n = 1;
10343 long long int m = n << i;
10346 if (LLONG_MAX / 2 < m)
10354 if ac_fn_c_try_run
"$LINENO"; then :
10357 ac_cv_type_long_long_int
=no
10359 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10360 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10367 $as_echo "$ac_cv_type_long_long_int" >&6; }
10368 if test $ac_cv_type_long_long_int = yes; then
10370 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10385 gl_cv_c_multiarch
=no
10386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 #ifndef __APPLE_CC__
10389 not a universal capable compiler
10394 if ac_fn_c_try_compile
"$LINENO"; then :
10398 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10399 if test -n "$prev"; then
10401 i?
86 | x86_64 | ppc | ppc64
)
10402 if test -z "$arch" ||
test "$arch" = "$word"; then
10405 gl_cv_c_multiarch
=yes
10411 if test "x$word" = "x-arch"; then
10418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10419 if test $gl_cv_c_multiarch = yes; then
10420 APPLE_UNIVERSAL_BUILD
=1
10422 APPLE_UNIVERSAL_BUILD
=0
10431 if test $ac_cv_type_long_long_int = yes; then
10432 HAVE_LONG_LONG_INT
=1
10434 HAVE_LONG_LONG_INT
=0
10438 if test $ac_cv_type_unsigned_long_long_int = yes; then
10439 HAVE_UNSIGNED_LONG_LONG_INT
=1
10441 HAVE_UNSIGNED_LONG_LONG_INT
=0
10452 if test $ac_cv_header_wchar_h = yes; then
10459 if test $ac_cv_header_inttypes_h = yes; then
10466 if test $ac_cv_header_sys_types_h = yes; then
10488 if test $gl_cv_have_include_next = yes; then
10489 gl_cv_next_stdint_h
='<'stdint.h
'>'
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10492 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10493 if ${gl_cv_next_stdint_h+:} false
; then :
10494 $as_echo_n "(cached) " >&6
10497 if test $ac_cv_header_stdint_h = yes; then
10502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504 #include <stdint.h>
10507 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10508 *) gl_absname_cpp
="$ac_cpp" ;;
10513 gl_dirsep_regex
='[/\\]'
10516 gl_dirsep_regex
='\/'
10519 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10520 gl_header_literal_regex
=`echo 'stdint.h' \
10521 | sed -e "$gl_make_literal_regex_sed"`
10522 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10523 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10529 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10530 sed -n "$gl_absolute_header_sed"`
10532 gl_header
=$gl_cv_absolute_stdint_h
10533 gl_cv_next_stdint_h
='"'$gl_header'"'
10535 gl_cv_next_stdint_h
='<'stdint.h
'>'
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10541 $as_echo "$gl_cv_next_stdint_h" >&6; }
10543 NEXT_STDINT_H
=$gl_cv_next_stdint_h
10545 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10546 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10547 gl_next_as_first_directive
='<'stdint.h
'>'
10549 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10550 gl_next_as_first_directive
=$gl_cv_next_stdint_h
10552 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
10557 if test $ac_cv_header_stdint_h = yes; then
10564 if test $ac_cv_header_stdint_h = yes; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10566 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10567 if ${gl_cv_header_working_stdint_h+:} false
; then :
10568 $as_echo_n "(cached) " >&6
10570 gl_cv_header_working_stdint_h
=no
10571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10575 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10576 #define __STDC_CONSTANT_MACROS 1
10577 #define __STDC_LIMIT_MACROS 1
10578 #include <stdint.h>
10579 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10580 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10581 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10585 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10586 included before <wchar.h>. */
10587 #include <stddef.h>
10588 #include <signal.h>
10590 # include <stdio.h>
10592 # include <wchar.h>
10597 int8_t a1 = INT8_MAX;
10598 int8_t a1min = INT8_MIN;
10601 int16_t a2 = INT16_MAX;
10602 int16_t a2min = INT16_MIN;
10605 int32_t a3 = INT32_MAX;
10606 int32_t a3min = INT32_MIN;
10609 int64_t a4 = INT64_MAX;
10610 int64_t a4min = INT64_MIN;
10613 uint8_t b1 = UINT8_MAX;
10615 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10618 uint16_t b2 = UINT16_MAX;
10621 uint32_t b3 = UINT32_MAX;
10624 uint64_t b4 = UINT64_MAX;
10626 int_least8_t c1 = INT8_C (0x7f);
10627 int_least8_t c1max = INT_LEAST8_MAX;
10628 int_least8_t c1min = INT_LEAST8_MIN;
10629 int_least16_t c2 = INT16_C (0x7fff);
10630 int_least16_t c2max = INT_LEAST16_MAX;
10631 int_least16_t c2min = INT_LEAST16_MIN;
10632 int_least32_t c3 = INT32_C (0x7fffffff);
10633 int_least32_t c3max = INT_LEAST32_MAX;
10634 int_least32_t c3min = INT_LEAST32_MIN;
10635 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10636 int_least64_t c4max = INT_LEAST64_MAX;
10637 int_least64_t c4min = INT_LEAST64_MIN;
10638 uint_least8_t d1 = UINT8_C (0xff);
10639 uint_least8_t d1max = UINT_LEAST8_MAX;
10640 uint_least16_t d2 = UINT16_C (0xffff);
10641 uint_least16_t d2max = UINT_LEAST16_MAX;
10642 uint_least32_t d3 = UINT32_C (0xffffffff);
10643 uint_least32_t d3max = UINT_LEAST32_MAX;
10644 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10645 uint_least64_t d4max = UINT_LEAST64_MAX;
10646 int_fast8_t e1 = INT_FAST8_MAX;
10647 int_fast8_t e1min = INT_FAST8_MIN;
10648 int_fast16_t e2 = INT_FAST16_MAX;
10649 int_fast16_t e2min = INT_FAST16_MIN;
10650 int_fast32_t e3 = INT_FAST32_MAX;
10651 int_fast32_t e3min = INT_FAST32_MIN;
10652 int_fast64_t e4 = INT_FAST64_MAX;
10653 int_fast64_t e4min = INT_FAST64_MIN;
10654 uint_fast8_t f1 = UINT_FAST8_MAX;
10655 uint_fast16_t f2 = UINT_FAST16_MAX;
10656 uint_fast32_t f3 = UINT_FAST32_MAX;
10657 uint_fast64_t f4 = UINT_FAST64_MAX;
10659 intptr_t g = INTPTR_MAX;
10660 intptr_t gmin = INTPTR_MIN;
10663 uintptr_t h = UINTPTR_MAX;
10665 intmax_t i = INTMAX_MAX;
10666 uintmax_t j = UINTMAX_MAX;
10668 /* Check that SIZE_MAX has the correct type, if possible. */
10669 #if 201112 <= __STDC_VERSION__
10670 int k = _Generic (SIZE_MAX, size_t: 0);
10671 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
10672 || (0x5110 <= __SUNPRO_C && !__STDC__))
10674 extern __typeof__ (SIZE_MAX) k;
10677 #include <limits.h> /* for CHAR_BIT */
10678 #define TYPE_MINIMUM(t) \
10679 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10680 #define TYPE_MAXIMUM(t) \
10681 ((t) ((t) 0 < (t) -1 \
10683 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10686 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10687 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10689 /* Detect bug in FreeBSD 6.0 / ia64. */
10690 int check_SIG_ATOMIC:
10691 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10692 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10694 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10696 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10697 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10699 /* Detect bug in mingw. */
10701 WINT_MIN == TYPE_MINIMUM (wint_t)
10702 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10705 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10707 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10708 int check_UINT16_C:
10709 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10711 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10713 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10716 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10719 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10722 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10724 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10725 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10726 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10727 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10728 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10729 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10730 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10731 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10732 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10733 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10734 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10745 if ac_fn_c_try_compile
"$LINENO"; then :
10746 if test "$cross_compiling" = yes; then :
10747 gl_cv_header_working_stdint_h
=yes
10750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10754 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10755 #define __STDC_CONSTANT_MACROS 1
10756 #define __STDC_LIMIT_MACROS 1
10757 #include <stdint.h>
10760 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10761 included before <wchar.h>. */
10762 #include <stddef.h>
10763 #include <signal.h>
10765 # include <stdio.h>
10767 # include <wchar.h>
10772 #include <string.h>
10773 #define MVAL(macro) MVAL1(macro)
10774 #define MVAL1(expression) #expression
10775 static const char *macro_values[] =
10809 for (mv = macro_values; *mv != NULL; mv++)
10811 const char *value = *mv;
10812 /* Test whether it looks like a cast expression. */
10813 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10814 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10815 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10816 || strncmp (value, "((int)"/*)*/, 6) == 0
10817 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10818 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10819 return mv - macro_values + 1;
10827 if ac_fn_c_try_run
"$LINENO"; then :
10828 gl_cv_header_working_stdint_h
=yes
10830 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10831 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10840 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10843 HAVE_C99_STDINT_H
=0
10844 HAVE_SYS_BITYPES_H
=0
10845 HAVE_SYS_INTTYPES_H
=0
10847 if test "$gl_cv_header_working_stdint_h" = yes; then
10848 HAVE_C99_STDINT_H
=1
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
10850 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
10851 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
10852 $as_echo_n "(cached) " >&6
10854 gl_cv_header_stdint_predates_cxx11_h
=yes
10855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10859 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10860 #include <stdint.h>
10863 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10864 included before <wchar.h>. */
10865 #include <stddef.h>
10866 #include <signal.h>
10868 # include <stdio.h>
10870 # include <wchar.h>
10874 intmax_t im = INTMAX_MAX;
10875 int32_t i32 = INT32_C (0x7fffffff);
10885 if ac_fn_c_try_compile
"$LINENO"; then :
10886 gl_cv_header_stdint_predates_cxx11_h
=no
10888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
10891 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
10893 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
10895 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
10898 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
10902 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
10903 if ${gl_cv_header_stdint_width+:} false
; then :
10904 $as_echo_n "(cached) " >&6
10906 gl_cv_header_stdint_width
=no
10907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10910 /* Work if build is not clean. */
10911 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
10912 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10913 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10915 #include <stdint.h>
10917 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10918 included before <wchar.h>. */
10919 #include <stddef.h>
10920 #include <signal.h>
10922 # include <stdio.h>
10924 # include <wchar.h>
10927 int iw = UINTMAX_WIDTH;
10937 if ac_fn_c_try_compile
"$LINENO"; then :
10938 gl_cv_header_stdint_width
=yes
10940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
10943 $as_echo "$gl_cv_header_stdint_width" >&6; }
10944 if test "$gl_cv_header_stdint_width" = yes; then
10948 for ac_header
in sys
/inttypes.h sys
/bitypes.h
10950 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10951 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10952 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10953 cat >>confdefs.h
<<_ACEOF
10954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10961 if test $ac_cv_header_sys_inttypes_h = yes; then
10962 HAVE_SYS_INTTYPES_H
=1
10964 if test $ac_cv_header_sys_bitypes_h = yes; then
10965 HAVE_SYS_BITYPES_H
=1
10969 if test $APPLE_UNIVERSAL_BUILD = 0; then
10972 for gltype
in ptrdiff_t size_t
; do
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10974 $as_echo_n "checking for bit size of $gltype... " >&6; }
10975 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
10976 $as_echo_n "(cached) " >&6
10978 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10979 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10980 included before <wchar.h>. */
10981 #include <stddef.h>
10982 #include <signal.h>
10984 # include <stdio.h>
10986 # include <wchar.h>
10989 #include <limits.h>"; then :
10995 eval gl_cv_bitsizeof_
${gltype}=\
$result
10998 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11000 $as_echo "$ac_res" >&6; }
11001 eval result
=\
$gl_cv_bitsizeof_${gltype}
11002 if test $result = unknown
; then
11005 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11006 cat >>confdefs.h
<<_ACEOF
11007 #define BITSIZEOF_${GLTYPE} $result
11010 eval BITSIZEOF_
${GLTYPE}=\
$result
11017 for gltype
in sig_atomic_t wchar_t wint_t
; do
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11019 $as_echo_n "checking for bit size of $gltype... " >&6; }
11020 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11021 $as_echo_n "(cached) " >&6
11023 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11024 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11025 included before <wchar.h>. */
11026 #include <stddef.h>
11027 #include <signal.h>
11029 # include <stdio.h>
11031 # include <wchar.h>
11034 #include <limits.h>"; then :
11040 eval gl_cv_bitsizeof_
${gltype}=\
$result
11043 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11045 $as_echo "$ac_res" >&6; }
11046 eval result
=\
$gl_cv_bitsizeof_${gltype}
11047 if test $result = unknown
; then
11050 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11051 cat >>confdefs.h
<<_ACEOF
11052 #define BITSIZEOF_${GLTYPE} $result
11055 eval BITSIZEOF_
${GLTYPE}=\
$result
11061 for gltype
in sig_atomic_t wchar_t wint_t
; do
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11063 $as_echo_n "checking whether $gltype is signed... " >&6; }
11064 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
11065 $as_echo_n "(cached) " >&6
11067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11070 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11071 included before <wchar.h>. */
11072 #include <stddef.h>
11073 #include <signal.h>
11075 # include <stdio.h>
11077 # include <wchar.h>
11080 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11089 if ac_fn_c_try_compile
"$LINENO"; then :
11094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11095 eval gl_cv_type_
${gltype}_signed
=\
$result
11098 eval ac_res
=\
$gl_cv_type_${gltype}_signed
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11100 $as_echo "$ac_res" >&6; }
11101 eval result
=\
$gl_cv_type_${gltype}_signed
11102 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11103 if test "$result" = yes; then
11104 cat >>confdefs.h
<<_ACEOF
11105 #define HAVE_SIGNED_${GLTYPE} 1
11108 eval HAVE_SIGNED_
${GLTYPE}=1
11110 eval HAVE_SIGNED_
${GLTYPE}=0
11115 gl_cv_type_ptrdiff_t_signed
=yes
11116 gl_cv_type_size_t_signed
=no
11117 if test $APPLE_UNIVERSAL_BUILD = 0; then
11120 for gltype
in ptrdiff_t size_t
; do
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11122 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11123 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11124 $as_echo_n "(cached) " >&6
11126 eval gl_cv_type_
${gltype}_suffix
=no
11127 eval result
=\
$gl_cv_type_${gltype}_signed
11128 if test "$result" = yes; then
11133 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11135 '') gltype1
='int';;
11136 l
) gltype1
='long int';;
11137 ll
) gltype1
='long long int';;
11138 i64
) gltype1
='__int64';;
11139 u
) gltype1
='unsigned int';;
11140 ul
) gltype1
='unsigned long int';;
11141 ull
) gltype1
='unsigned long long int';;
11142 ui64
)gltype1
='unsigned __int64';;
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11148 included before <wchar.h>. */
11149 #include <stddef.h>
11150 #include <signal.h>
11152 # include <stdio.h>
11154 # include <wchar.h>
11157 extern $gltype foo;
11158 extern $gltype1 foo;
11167 if ac_fn_c_try_compile
"$LINENO"; then :
11168 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11171 eval result
=\
$gl_cv_type_${gltype}_suffix
11172 test "$result" != no
&& break
11175 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11177 $as_echo "$ac_res" >&6; }
11178 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11179 eval result
=\
$gl_cv_type_${gltype}_suffix
11180 test "$result" = no
&& result
=
11181 eval ${GLTYPE}_SUFFIX
=\
$result
11182 cat >>confdefs.h
<<_ACEOF
11183 #define ${GLTYPE}_SUFFIX $result
11192 for gltype
in sig_atomic_t wchar_t wint_t
; do
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11194 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11195 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11196 $as_echo_n "(cached) " >&6
11198 eval gl_cv_type_
${gltype}_suffix
=no
11199 eval result
=\
$gl_cv_type_${gltype}_signed
11200 if test "$result" = yes; then
11205 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11207 '') gltype1
='int';;
11208 l
) gltype1
='long int';;
11209 ll
) gltype1
='long long int';;
11210 i64
) gltype1
='__int64';;
11211 u
) gltype1
='unsigned int';;
11212 ul
) gltype1
='unsigned long int';;
11213 ull
) gltype1
='unsigned long long int';;
11214 ui64
)gltype1
='unsigned __int64';;
11216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11219 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11220 included before <wchar.h>. */
11221 #include <stddef.h>
11222 #include <signal.h>
11224 # include <stdio.h>
11226 # include <wchar.h>
11229 extern $gltype foo;
11230 extern $gltype1 foo;
11239 if ac_fn_c_try_compile
"$LINENO"; then :
11240 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11243 eval result
=\
$gl_cv_type_${gltype}_suffix
11244 test "$result" != no
&& break
11247 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11249 $as_echo "$ac_res" >&6; }
11250 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11251 eval result
=\
$gl_cv_type_${gltype}_suffix
11252 test "$result" = no
&& result
=
11253 eval ${GLTYPE}_SUFFIX
=\
$result
11254 cat >>confdefs.h
<<_ACEOF
11255 #define ${GLTYPE}_SUFFIX $result
11262 if test $BITSIZEOF_WINT_T -lt 32; then
11263 BITSIZEOF_WINT_T
=32
11268 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
11270 if test -n "$LIMITS_H"; then
11271 GL_GENERATE_LIMITS_H_TRUE
=
11272 GL_GENERATE_LIMITS_H_FALSE
='#'
11274 GL_GENERATE_LIMITS_H_TRUE
='#'
11275 GL_GENERATE_LIMITS_H_FALSE
=
11283 if test -n "$STDINT_H"; then
11284 GL_GENERATE_STDINT_H_TRUE
=
11285 GL_GENERATE_STDINT_H_FALSE
='#'
11287 GL_GENERATE_STDINT_H_TRUE
='#'
11288 GL_GENERATE_STDINT_H_FALSE
=
11300 GNULIB_STRTOIMAX
=0;
11301 GNULIB_STRTOUMAX
=0;
11302 HAVE_DECL_IMAXABS
=1;
11303 HAVE_DECL_IMAXDIV
=1;
11304 HAVE_DECL_STRTOIMAX
=1;
11305 HAVE_DECL_STRTOUMAX
=1;
11306 REPLACE_STRTOIMAX
=0;
11307 REPLACE_STRTOUMAX
=0;
11308 INT32_MAX_LT_INTMAX_MAX
=1;
11309 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
11310 PRI_MACROS_BROKEN
=0;
11311 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
11312 UINT32_MAX_LT_UINTMAX_MAX
=1;
11313 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
11341 if test $gl_cv_have_include_next = yes; then
11342 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11345 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11346 if ${gl_cv_next_inttypes_h+:} false
; then :
11347 $as_echo_n "(cached) " >&6
11350 if test $ac_cv_header_inttypes_h = yes; then
11355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 #include <inttypes.h>
11360 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11361 *) gl_absname_cpp
="$ac_cpp" ;;
11366 gl_dirsep_regex
='[/\\]'
11369 gl_dirsep_regex
='\/'
11372 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11373 gl_header_literal_regex
=`echo 'inttypes.h' \
11374 | sed -e "$gl_make_literal_regex_sed"`
11375 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11376 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11382 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11383 sed -n "$gl_absolute_header_sed"`
11385 gl_header
=$gl_cv_absolute_inttypes_h
11386 gl_cv_next_inttypes_h
='"'$gl_header'"'
11388 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11394 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11396 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
11398 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11399 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11400 gl_next_as_first_directive
='<'inttypes.h
'>'
11402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11403 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
11405 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
11414 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
11415 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11417 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11418 if eval \
${$as_gl_Symbol+:} false
; then :
11419 $as_echo_n "(cached) " >&6
11421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11423 #include <inttypes.h>
11434 if ac_fn_c_try_compile
"$LINENO"; then :
11435 eval "$as_gl_Symbol=yes"
11437 eval "$as_gl_Symbol=no"
11439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11441 eval ac_res
=\$
$as_gl_Symbol
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11443 $as_echo "$ac_res" >&6; }
11444 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
11445 cat >>confdefs.h
<<_ACEOF
11446 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11449 eval ac_cv_have_decl_
$gl_func=yes
11455 for ac_header
in inttypes.h
11457 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11458 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
11459 cat >>confdefs.h
<<_ACEOF
11460 #define HAVE_INTTYPES_H 1
11467 if test $ac_cv_header_inttypes_h = yes; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
11469 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
11470 if ${gt_cv_inttypes_pri_broken+:} false
; then :
11471 $as_echo_n "(cached) " >&6
11474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11477 #include <inttypes.h>
11490 if ac_fn_c_try_compile
"$LINENO"; then :
11491 gt_cv_inttypes_pri_broken
=no
11493 gt_cv_inttypes_pri_broken
=yes
11495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
11499 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11501 if test "$gt_cv_inttypes_pri_broken" = yes; then
11503 cat >>confdefs.h
<<_ACEOF
11504 #define PRI_MACROS_BROKEN 1
11507 PRI_MACROS_BROKEN
=1
11509 PRI_MACROS_BROKEN
=0
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
11515 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
11516 if ${gl_cv_cc_double_expbit0+:} false
; then :
11517 $as_echo_n "(cached) " >&6
11520 if test "$cross_compiling" = yes; then :
11522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11525 #if defined arm || defined __arm || defined __arm__
11530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11531 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
11532 gl_cv_cc_double_expbit0
="unknown"
11536 if ${ac_cv_c_bigendian+:} false
; then :
11537 $as_echo_n "(cached) " >&6
11539 ac_cv_c_bigendian
=unknown
11540 # See if we're dealing with a universal compiler.
11541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543 #ifndef __APPLE_CC__
11544 not a universal capable compiler
11549 if ac_fn_c_try_compile
"$LINENO"; then :
11551 # Check for potential -arch flags. It is not universal unless
11552 # there are at least two -arch flags with different values.
11555 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11556 if test -n "$ac_prev"; then
11558 i?
86 | x86_64 | ppc | ppc64
)
11559 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11562 ac_cv_c_bigendian
=universal
11568 elif test "x$ac_word" = "x-arch"; then
11573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11574 if test $ac_cv_c_bigendian = unknown
; then
11575 # See if sys/param.h defines the BYTE_ORDER macro.
11576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578 #include <sys/types.h>
11579 #include <sys/param.h>
11584 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11585 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11587 bogus endian macros
11594 if ac_fn_c_try_compile
"$LINENO"; then :
11595 # It does; now see whether it defined to BIG_ENDIAN or not.
11596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11598 #include <sys/types.h>
11599 #include <sys/param.h>
11604 #if BYTE_ORDER != BIG_ENDIAN
11612 if ac_fn_c_try_compile
"$LINENO"; then :
11613 ac_cv_c_bigendian
=yes
11615 ac_cv_c_bigendian
=no
11617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11621 if test $ac_cv_c_bigendian = unknown
; then
11622 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11625 #include <limits.h>
11630 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11631 bogus endian macros
11638 if ac_fn_c_try_compile
"$LINENO"; then :
11639 # It does; now see whether it defined to _BIG_ENDIAN or not.
11640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11642 #include <limits.h>
11647 #ifndef _BIG_ENDIAN
11655 if ac_fn_c_try_compile
"$LINENO"; then :
11656 ac_cv_c_bigendian
=yes
11658 ac_cv_c_bigendian
=no
11660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11664 if test $ac_cv_c_bigendian = unknown
; then
11665 # Compile a test program.
11666 if test "$cross_compiling" = yes; then :
11667 # Try to guess by grepping values from an object file.
11668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11670 short int ascii_mm[] =
11671 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11672 short int ascii_ii[] =
11673 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11674 int use_ascii (int i) {
11675 return ascii_mm[i] + ascii_ii[i];
11677 short int ebcdic_ii[] =
11678 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11679 short int ebcdic_mm[] =
11680 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11681 int use_ebcdic (int i) {
11682 return ebcdic_mm[i] + ebcdic_ii[i];
11689 return use_ascii (foo) == use_ebcdic (foo);
11694 if ac_fn_c_try_compile
"$LINENO"; then :
11695 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11696 ac_cv_c_bigendian
=yes
11698 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11699 if test "$ac_cv_c_bigendian" = unknown
; then
11700 ac_cv_c_bigendian
=no
11702 # finding both strings is unlikely to happen, but who knows?
11703 ac_cv_c_bigendian
=unknown
11707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 $ac_includes_default
11716 /* Are we little or big endian? From Harbison&Steele. */
11720 char c[sizeof (long int)];
11723 return u.c[sizeof (long int) - 1] == 1;
11729 if ac_fn_c_try_run
"$LINENO"; then :
11730 ac_cv_c_bigendian
=no
11732 ac_cv_c_bigendian
=yes
11734 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11735 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11741 case $ac_cv_c_bigendian in #(
11743 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
11745 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
11748 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11752 gl_cv_cc_double_expbit0
="unknown" ;;
11761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11765 #include <stddef.h>
11767 #include <string.h>
11769 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11770 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
11771 static unsigned int ored_words[NWORDS];
11772 static unsigned int anded_words[NWORDS];
11773 static void add_to_ored_words (double x)
11777 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
11778 memset (&m, 0, sizeof (memory_double));
11780 for (i = 0; i < NWORDS; i++)
11782 ored_words[i] |= m.word[i];
11783 anded_words[i] &= m.word[i];
11789 FILE *fp = fopen ("conftest.out", "w");
11792 for (j = 0; j < NWORDS; j++)
11793 anded_words[j] = ~ (unsigned int) 0;
11794 add_to_ored_words (0.25);
11795 add_to_ored_words (0.5);
11796 add_to_ored_words (1.0);
11797 add_to_ored_words (2.0);
11798 add_to_ored_words (4.0);
11799 /* Remove bits that are common (e.g. if representation of the first mantissa
11800 bit is explicit). */
11801 for (j = 0; j < NWORDS; j++)
11802 ored_words[j] &= ~anded_words[j];
11803 /* Now find the nonzero word. */
11804 for (j = 0; j < NWORDS; j++)
11805 if (ored_words[j] != 0)
11810 for (i = j + 1; i < NWORDS; i++)
11811 if (ored_words[i] != 0)
11813 fprintf (fp, "unknown");
11814 return (fclose (fp) != 0);
11817 if ((ored_words[j] >> i) & 1)
11819 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11820 return (fclose (fp) != 0);
11823 fprintf (fp, "unknown");
11824 return (fclose (fp) != 0);
11828 if ac_fn_c_try_run
"$LINENO"; then :
11829 gl_cv_cc_double_expbit0
=`cat conftest.out`
11831 gl_cv_cc_double_expbit0
="unknown"
11833 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11834 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
11841 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
11842 case "$gl_cv_cc_double_expbit0" in
11844 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11845 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
11847 cat >>confdefs.h
<<_ACEOF
11848 #define DBL_EXPBIT0_WORD $word
11852 cat >>confdefs.h
<<_ACEOF
11853 #define DBL_EXPBIT0_BIT $bit
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11861 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11862 if ${ac_cv_c_bigendian+:} false
; then :
11863 $as_echo_n "(cached) " >&6
11865 ac_cv_c_bigendian
=unknown
11866 # See if we're dealing with a universal compiler.
11867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11869 #ifndef __APPLE_CC__
11870 not a universal capable compiler
11875 if ac_fn_c_try_compile
"$LINENO"; then :
11877 # Check for potential -arch flags. It is not universal unless
11878 # there are at least two -arch flags with different values.
11881 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11882 if test -n "$ac_prev"; then
11884 i?
86 | x86_64 | ppc | ppc64
)
11885 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11888 ac_cv_c_bigendian
=universal
11894 elif test "x$ac_word" = "x-arch"; then
11899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11900 if test $ac_cv_c_bigendian = unknown
; then
11901 # See if sys/param.h defines the BYTE_ORDER macro.
11902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904 #include <sys/types.h>
11905 #include <sys/param.h>
11910 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11911 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11913 bogus endian macros
11920 if ac_fn_c_try_compile
"$LINENO"; then :
11921 # It does; now see whether it defined to BIG_ENDIAN or not.
11922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11924 #include <sys/types.h>
11925 #include <sys/param.h>
11930 #if BYTE_ORDER != BIG_ENDIAN
11938 if ac_fn_c_try_compile
"$LINENO"; then :
11939 ac_cv_c_bigendian
=yes
11941 ac_cv_c_bigendian
=no
11943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11947 if test $ac_cv_c_bigendian = unknown
; then
11948 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11951 #include <limits.h>
11956 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11957 bogus endian macros
11964 if ac_fn_c_try_compile
"$LINENO"; then :
11965 # It does; now see whether it defined to _BIG_ENDIAN or not.
11966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 #include <limits.h>
11973 #ifndef _BIG_ENDIAN
11981 if ac_fn_c_try_compile
"$LINENO"; then :
11982 ac_cv_c_bigendian
=yes
11984 ac_cv_c_bigendian
=no
11986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11990 if test $ac_cv_c_bigendian = unknown
; then
11991 # Compile a test program.
11992 if test "$cross_compiling" = yes; then :
11993 # Try to guess by grepping values from an object file.
11994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 short int ascii_mm[] =
11997 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11998 short int ascii_ii[] =
11999 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12000 int use_ascii (int i) {
12001 return ascii_mm[i] + ascii_ii[i];
12003 short int ebcdic_ii[] =
12004 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12005 short int ebcdic_mm[] =
12006 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12007 int use_ebcdic (int i) {
12008 return ebcdic_mm[i] + ebcdic_ii[i];
12015 return use_ascii (foo) == use_ebcdic (foo);
12020 if ac_fn_c_try_compile
"$LINENO"; then :
12021 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12022 ac_cv_c_bigendian
=yes
12024 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12025 if test "$ac_cv_c_bigendian" = unknown
; then
12026 ac_cv_c_bigendian
=no
12028 # finding both strings is unlikely to happen, but who knows?
12029 ac_cv_c_bigendian
=unknown
12033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037 $ac_includes_default
12042 /* Are we little or big endian? From Harbison&Steele. */
12046 char c[sizeof (long int)];
12049 return u.c[sizeof (long int) - 1] == 1;
12055 if ac_fn_c_try_run
"$LINENO"; then :
12056 ac_cv_c_bigendian
=no
12058 ac_cv_c_bigendian
=yes
12060 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12061 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12067 $as_echo "$ac_cv_c_bigendian" >&6; }
12068 case $ac_cv_c_bigendian in #(
12070 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12076 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12080 as_fn_error $?
"unknown endianness
12081 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12087 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12088 if ${am_cv_langinfo_codeset+:} false
; then :
12089 $as_echo_n "(cached) " >&6
12091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093 #include <langinfo.h>
12097 char* cs = nl_langinfo(CODESET); return !cs;
12102 if ac_fn_c_try_link
"$LINENO"; then :
12103 am_cv_langinfo_codeset
=yes
12105 am_cv_langinfo_codeset
=no
12107 rm -f core conftest.err conftest.
$ac_objext \
12108 conftest
$ac_exeext conftest.
$ac_ext
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12112 $as_echo "$am_cv_langinfo_codeset" >&6; }
12113 if test $am_cv_langinfo_codeset = yes; then
12115 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12120 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12121 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
12127 cat >>confdefs.h
<<_ACEOF
12128 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
12134 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
12135 if ${ac_cv_gnu_library_2_1+:} false
; then :
12136 $as_echo_n "(cached) " >&6
12138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h. */
12141 #include <features.h>
12142 #ifdef __GNU_LIBRARY__
12143 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12153 $EGREP "Lucky" >/dev
/null
2>&1; then :
12154 ac_cv_gnu_library_2_1
=yes
12156 ac_cv_gnu_library_2_1
=no
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12164 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12166 GLIBC21
="$ac_cv_gnu_library_2_1"
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12176 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12177 if ${gl_cv_func_malloc_posix+:} false
; then :
12178 $as_echo_n "(cached) " >&6
12181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12187 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
12195 if ac_fn_c_try_compile
"$LINENO"; then :
12196 gl_cv_func_malloc_posix
=yes
12198 gl_cv_func_malloc_posix
=no
12200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12204 $as_echo "$gl_cv_func_malloc_posix" >&6; }
12208 for ac_header
in stdlib.h
12210 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12211 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
12212 cat >>confdefs.h
<<_ACEOF
12213 #define HAVE_STDLIB_H 1
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12221 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12222 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
12223 $as_echo_n "(cached) " >&6
12225 if test "$cross_compiling" = yes; then :
12227 # Guess yes on platforms where we know the result.
12228 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
12229 | hpux
* | solaris
* | cygwin
* | mingw
*)
12230 ac_cv_func_malloc_0_nonnull
=yes ;;
12231 # If we don't know, assume the worst.
12232 *) ac_cv_func_malloc_0_nonnull
=no
;;
12236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12239 # include <stdlib.h>
12247 char *p = malloc (0);
12256 if ac_fn_c_try_run
"$LINENO"; then :
12257 ac_cv_func_malloc_0_nonnull
=yes
12259 ac_cv_func_malloc_0_nonnull
=no
12261 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12262 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12268 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12269 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12270 gl_cv_func_malloc_0_nonnull
=1
12272 gl_cv_func_malloc_0_nonnull
=0
12276 cat >>confdefs.h
<<_ACEOF
12277 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
12292 GNULIB_MBSRTOWCS
=0;
12293 GNULIB_MBSNRTOWCS
=0;
12295 GNULIB_WCSRTOMBS
=0;
12296 GNULIB_WCSNRTOMBS
=0;
12313 GNULIB_WCSCASECMP
=0;
12314 GNULIB_WCSNCASECMP
=0;
12351 HAVE_WCSNCASECMP
=1;
12364 HAVE_DECL_WCWIDTH
=1;
12365 REPLACE_MBSTATE_T
=0;
12371 REPLACE_MBSRTOWCS
=0;
12372 REPLACE_MBSNRTOWCS
=0;
12374 REPLACE_WCSRTOMBS
=0;
12375 REPLACE_WCSNRTOMBS
=0;
12377 REPLACE_WCSWIDTH
=0;
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
12393 $as_echo_n "checking for a traditional japanese locale... " >&6; }
12394 if ${gt_cv_locale_ja+:} false
; then :
12395 $as_echo_n "(cached) " >&6
12398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12401 #include <locale.h>
12403 #if HAVE_LANGINFO_CODESET
12404 # include <langinfo.h>
12406 #include <stdlib.h>
12407 #include <string.h>
12413 /* Check whether the given locale name is recognized by the system. */
12414 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12415 /* On native Windows, setlocale(category, "") looks at the system settings,
12416 not at the environment variables. Also, when an encoding suffix such
12417 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12418 category of the locale to "C". */
12419 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12420 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12423 if (setlocale (LC_ALL, "") == NULL) return 1;
12425 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12426 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12427 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12428 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12429 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12430 some unit tests fail.
12431 On MirBSD 10, when an unsupported locale is specified, setlocale()
12432 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12433 #if HAVE_LANGINFO_CODESET
12435 const char *cs = nl_langinfo (CODESET);
12436 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12437 || strcmp (cs, "UTF-8") == 0)
12442 /* On Cygwin, avoid locale names without encoding suffix, because the
12443 locale_charset() function relies on the encoding suffix. Note that
12444 LC_ALL is set on the command line. */
12445 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12447 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
12448 on Cygwin 1.5.x. */
12449 if (MB_CUR_MAX == 1)
12451 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12452 This excludes the UTF-8 encoding (except on MirBSD). */
12453 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12454 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12455 for (p = buf; *p != '\0'; p++)
12456 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12463 (eval $ac_link) 2>&5
12465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12466 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12468 # Handle native Windows specially, because there setlocale() interprets
12469 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12470 # "fr" or "fra" as "French" or "French_France.1252",
12471 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12472 # "ja" as "Japanese" or "Japanese_Japan.932",
12475 # Note that on native Windows, the Japanese locale is
12476 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
12477 # cannot use it here.
12478 gt_cv_locale_ja
=none
12481 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12482 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12483 # configure script would override the LC_ALL setting. Likewise for
12484 # LC_CTYPE, which is also set at the beginning of the configure script.
12485 # Test for the AIX locale name.
12486 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12487 gt_cv_locale_ja
=ja_JP
12489 # Test for the locale name with explicit encoding suffix.
12490 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12491 gt_cv_locale_ja
=ja_JP.EUC-JP
12493 # Test for the HP-UX, OSF/1, NetBSD locale name.
12494 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12495 gt_cv_locale_ja
=ja_JP.eucJP
12497 # Test for the IRIX, FreeBSD locale name.
12498 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12499 gt_cv_locale_ja
=ja_JP.EUC
12501 # Test for the Solaris 7 locale name.
12502 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12505 # Special test for NetBSD 1.6.
12506 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
12507 gt_cv_locale_ja
=ja_JP.eucJP
12510 gt_cv_locale_ja
=none
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
12524 $as_echo "$gt_cv_locale_ja" >&6; }
12525 LOCALE_JA
=$gt_cv_locale_ja
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12532 $as_echo_n "checking for a transitional chinese locale... " >&6; }
12533 if ${gt_cv_locale_zh_CN+:} false
; then :
12534 $as_echo_n "(cached) " >&6
12537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12540 #include <locale.h>
12541 #include <stdlib.h>
12543 #if HAVE_LANGINFO_CODESET
12544 # include <langinfo.h>
12546 #include <stdlib.h>
12547 #include <string.h>
12553 /* Check whether the given locale name is recognized by the system. */
12554 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12555 /* On native Windows, setlocale(category, "") looks at the system settings,
12556 not at the environment variables. Also, when an encoding suffix such
12557 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12558 category of the locale to "C". */
12559 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12560 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12563 if (setlocale (LC_ALL, "") == NULL) return 1;
12565 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12566 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12567 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12568 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12569 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12570 some unit tests fail.
12571 On MirBSD 10, when an unsupported locale is specified, setlocale()
12572 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12573 #if HAVE_LANGINFO_CODESET
12575 const char *cs = nl_langinfo (CODESET);
12576 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12577 || strcmp (cs, "UTF-8") == 0)
12582 /* On Cygwin, avoid locale names without encoding suffix, because the
12583 locale_charset() function relies on the encoding suffix. Note that
12584 LC_ALL is set on the command line. */
12585 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12587 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12588 This excludes the UTF-8 encoding (except on MirBSD). */
12589 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12590 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12591 for (p = buf; *p != '\0'; p++)
12592 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12594 /* Check whether a typical GB18030 multibyte sequence is recognized as a
12595 single wide character. This excludes the GB2312 and GBK encodings. */
12596 if (mblen ("\203\062\332\066", 5) != 4)
12602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12603 (eval $ac_link) 2>&5
12605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12606 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12608 # Handle native Windows specially, because there setlocale() interprets
12609 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12610 # "fr" or "fra" as "French" or "French_France.1252",
12611 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12612 # "ja" as "Japanese" or "Japanese_Japan.932",
12615 # Test for the hypothetical native Windows locale name.
12616 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12617 gt_cv_locale_zh_CN
=Chinese_China
.54936
12620 gt_cv_locale_zh_CN
=none
12624 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
12625 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
12626 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
12627 gt_cv_locale_zh_CN
=none
12630 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12631 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12632 # configure script would override the LC_ALL setting. Likewise for
12633 # LC_CTYPE, which is also set at the beginning of the configure script.
12634 # Test for the locale name without encoding suffix.
12635 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12636 gt_cv_locale_zh_CN
=zh_CN
12638 # Test for the locale name with explicit encoding suffix.
12639 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12640 gt_cv_locale_zh_CN
=zh_CN.GB18030
12643 gt_cv_locale_zh_CN
=none
12649 # If there was a link error, due to mblen(), the system is so old that
12650 # it certainly doesn't have a chinese locale.
12651 gt_cv_locale_zh_CN
=none
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
12657 $as_echo "$gt_cv_locale_zh_CN" >&6; }
12658 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
12664 $as_echo_n "checking for a french Unicode locale... " >&6; }
12665 if ${gt_cv_locale_fr_utf8+:} false
; then :
12666 $as_echo_n "(cached) " >&6
12669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h. */
12672 #include <locale.h>
12674 #if HAVE_LANGINFO_CODESET
12675 # include <langinfo.h>
12677 #include <stdlib.h>
12678 #include <string.h>
12682 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12683 imitates locale dependent behaviour by looking at the environment
12684 variables, and all locales use the UTF-8 encoding. */
12685 #if !(defined __BEOS__ || defined __HAIKU__)
12686 /* Check whether the given locale name is recognized by the system. */
12687 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12688 /* On native Windows, setlocale(category, "") looks at the system settings,
12689 not at the environment variables. Also, when an encoding suffix such
12690 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12691 category of the locale to "C". */
12692 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12693 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12696 if (setlocale (LC_ALL, "") == NULL) return 1;
12698 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12699 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12700 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12701 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12702 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12703 some unit tests fail. */
12704 # if HAVE_LANGINFO_CODESET
12706 const char *cs = nl_langinfo (CODESET);
12707 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12712 /* On Cygwin, avoid locale names without encoding suffix, because the
12713 locale_charset() function relies on the encoding suffix. Note that
12714 LC_ALL is set on the command line. */
12715 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12717 /* Check whether in the abbreviation of the second month, the second
12718 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12719 two bytes long, with UTF-8 encoding. */
12720 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12721 if (strftime (buf, sizeof (buf), "%b", &t) < 4
12722 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12725 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12726 /* Check whether the decimal separator is a comma.
12727 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12728 are nl_langinfo(RADIXCHAR) are both ".". */
12729 if (localeconv () ->decimal_point[0] != ',') return 1;
12735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12736 (eval $ac_link) 2>&5
12738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12739 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12741 # Handle native Windows specially, because there setlocale() interprets
12742 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12743 # "fr" or "fra" as "French" or "French_France.1252",
12744 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12745 # "ja" as "Japanese" or "Japanese_Japan.932",
12748 # Test for the hypothetical native Windows locale name.
12749 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12750 gt_cv_locale_fr_utf8
=French_France
.65001
12753 gt_cv_locale_fr_utf8
=none
12757 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12758 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12759 # configure script would override the LC_ALL setting. Likewise for
12760 # LC_CTYPE, which is also set at the beginning of the configure script.
12761 # Test for the usual locale name.
12762 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12763 gt_cv_locale_fr_utf8
=fr_FR
12765 # Test for the locale name with explicit encoding suffix.
12766 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12767 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
12769 # Test for the Solaris 7 locale name.
12770 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12771 gt_cv_locale_fr_utf8
=fr.UTF-8
12774 gt_cv_locale_fr_utf8
=none
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12785 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
12786 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
12793 $as_echo_n "checking for a traditional french locale... " >&6; }
12794 if ${gt_cv_locale_fr+:} false
; then :
12795 $as_echo_n "(cached) " >&6
12798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12801 #include <locale.h>
12803 #if HAVE_LANGINFO_CODESET
12804 # include <langinfo.h>
12806 #include <stdlib.h>
12807 #include <string.h>
12811 /* Check whether the given locale name is recognized by the system. */
12812 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
12813 /* On native Windows, setlocale(category, "") looks at the system settings,
12814 not at the environment variables. Also, when an encoding suffix such
12815 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12816 category of the locale to "C". */
12817 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12818 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12821 if (setlocale (LC_ALL, "") == NULL) return 1;
12823 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12824 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12825 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12826 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12827 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12828 some unit tests fail.
12829 On MirBSD 10, when an unsupported locale is specified, setlocale()
12830 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12831 #if HAVE_LANGINFO_CODESET
12833 const char *cs = nl_langinfo (CODESET);
12834 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12835 || strcmp (cs, "UTF-8") == 0)
12840 /* On Cygwin, avoid locale names without encoding suffix, because the
12841 locale_charset() function relies on the encoding suffix. Note that
12842 LC_ALL is set on the command line. */
12843 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12845 /* Check whether in the abbreviation of the second month, the second
12846 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
12847 one byte long. This excludes the UTF-8 encoding. */
12848 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12849 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
12850 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12851 /* Check whether the decimal separator is a comma.
12852 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12853 are nl_langinfo(RADIXCHAR) are both ".". */
12854 if (localeconv () ->decimal_point[0] != ',') return 1;
12860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12861 (eval $ac_link) 2>&5
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12866 # Handle native Windows specially, because there setlocale() interprets
12867 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12868 # "fr" or "fra" as "French" or "French_France.1252",
12869 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12870 # "ja" as "Japanese" or "Japanese_Japan.932",
12873 # Test for the native Windows locale name.
12874 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12875 gt_cv_locale_fr
=French_France
.1252
12878 gt_cv_locale_fr
=none
12882 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12883 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12884 # configure script would override the LC_ALL setting. Likewise for
12885 # LC_CTYPE, which is also set at the beginning of the configure script.
12886 # Test for the usual locale name.
12887 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12888 gt_cv_locale_fr
=fr_FR
12890 # Test for the locale name with explicit encoding suffix.
12891 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12892 gt_cv_locale_fr
=fr_FR.ISO-8859-1
12894 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
12895 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12896 gt_cv_locale_fr
=fr_FR.ISO8859-1
12898 # Test for the HP-UX locale name.
12899 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12900 gt_cv_locale_fr
=fr_FR.iso88591
12902 # Test for the Solaris 7 locale name.
12903 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12907 gt_cv_locale_fr
=none
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
12920 $as_echo "$gt_cv_locale_fr" >&6; }
12921 LOCALE_FR
=$gt_cv_locale_fr
12941 GNULIB_RAWMEMCHR
=0;
12944 GNULIB_STRCHRNUL
=0;
12952 GNULIB_STRCASESTR
=0;
12959 GNULIB_MBSCASECMP
=0;
12960 GNULIB_MBSNCASECMP
=0;
12961 GNULIB_MBSPCASECMP
=0;
12962 GNULIB_MBSCASESTR
=0;
12969 GNULIB_STRERROR_R
=0;
12970 GNULIB_STRSIGNAL
=0;
12971 GNULIB_STRVERSCMP
=0;
12976 HAVE_DECL_MEMMEM
=1;
12978 HAVE_DECL_MEMRCHR
=1;
12983 HAVE_DECL_STRDUP
=1;
12984 HAVE_DECL_STRNDUP
=1;
12985 HAVE_DECL_STRNLEN
=1;
12989 HAVE_DECL_STRTOK_R
=1;
12990 HAVE_DECL_STRERROR_R
=1;
12991 HAVE_DECL_STRSIGNAL
=1;
12998 REPLACE_STRCASESTR
=0;
12999 REPLACE_STRCHRNUL
=0;
13000 REPLACE_STRERROR
=0;
13001 REPLACE_STRERROR_R
=0;
13005 REPLACE_STRSIGNAL
=0;
13006 REPLACE_STRTOK_R
=0;
13007 UNDEFINE_STRTOK_R
=0;
13013 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
13014 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
13015 # irrelevant for anonymous mappings.
13016 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
13017 if test "x$ac_cv_func_mmap" = xyes
; then :
13024 # Try to allow MAP_ANONYMOUS.
13025 gl_have_mmap_anonymous
=no
13026 if test $gl_have_mmap = yes; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
13028 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
13029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13032 #include <sys/mman.h>
13033 #ifdef MAP_ANONYMOUS
13034 I cannot identify this map
13038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13039 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
13040 gl_have_mmap_anonymous
=yes
13044 if test $gl_have_mmap_anonymous != yes; then
13045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13048 #include <sys/mman.h>
13050 I cannot identify this map
13054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13055 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
13057 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
13059 gl_have_mmap_anonymous
=yes
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
13065 $as_echo "$gl_have_mmap_anonymous" >&6; }
13066 if test $gl_have_mmap_anonymous = yes; then
13068 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
13090 if test $HAVE_MEMCHR = 1; then
13091 # Detect platform-specific bugs in some versions of glibc:
13092 # memchr should not dereference anything with length 0
13093 # http://bugzilla.redhat.com/499689
13094 # memchr should not dereference overestimated length after a match
13095 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
13096 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
13097 # Assume that memchr works on platforms that lack mprotect.
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
13099 $as_echo_n "checking whether memchr works... " >&6; }
13100 if ${gl_cv_func_memchr_works+:} false
; then :
13101 $as_echo_n "(cached) " >&6
13103 if test "$cross_compiling" = yes; then :
13104 gl_cv_func_memchr_works
="guessing no"
13106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13109 #include <string.h>
13110 #if HAVE_SYS_MMAN_H
13111 # include <fcntl.h>
13112 # include <unistd.h>
13113 # include <sys/types.h>
13114 # include <sys/mman.h>
13116 # define MAP_FILE 0
13125 char *fence = NULL;
13126 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
13127 # if HAVE_MAP_ANONYMOUS
13128 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
13130 # else /* !HAVE_MAP_ANONYMOUS */
13131 const int flags = MAP_FILE | MAP_PRIVATE;
13132 int fd = open ("/dev/zero", O_RDONLY, 0666);
13136 int pagesize = getpagesize ();
13138 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
13140 if (two_pages != (char *)(-1)
13141 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
13142 fence = two_pages + pagesize;
13147 if (memchr (fence, 0, 0))
13149 strcpy (fence - 9, "12345678");
13150 if (memchr (fence - 9, 0, 79) != fence - 1)
13152 if (memchr (fence - 1, 0, 3) != fence - 1)
13161 if ac_fn_c_try_run
"$LINENO"; then :
13162 gl_cv_func_memchr_works
=yes
13164 gl_cv_func_memchr_works
=no
13166 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13167 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
13172 $as_echo "$gl_cv_func_memchr_works" >&6; }
13173 if test "$gl_cv_func_memchr_works" != yes; then
13179 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
13180 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
13186 cat >>confdefs.h
<<_ACEOF
13187 #define HAVE_DECL_MEMMEM $ac_have_decl
13195 for ac_func
in memmem
13197 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
13198 if test "x$ac_cv_func_memmem" = xyes
; then :
13199 cat >>confdefs.h
<<_ACEOF
13200 #define HAVE_MEMMEM 1
13206 if test $ac_cv_func_memmem = yes; then
13218 if test $ac_cv_have_decl_memmem = no
; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13222 $as_echo_n "checking whether memmem works... " >&6; }
13223 if ${gl_cv_func_memmem_works_always+:} false
; then :
13224 $as_echo_n "(cached) " >&6
13226 if test "$cross_compiling" = yes; then :
13227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13230 #ifdef __GNU_LIBRARY__
13231 #include <features.h>
13232 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13233 || __GLIBC_MINOR__ > 12)) \
13234 || (__GLIBC__ > 2)) \
13235 || defined __UCLIBC__
13238 #elif defined __CYGWIN__
13239 #include <cygwin/version.h>
13240 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13249 $EGREP "Lucky user" >/dev
/null
2>&1; then :
13250 gl_cv_func_memmem_works_always
="guessing yes"
13252 gl_cv_func_memmem_works_always
="guessing no"
13258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13261 #include <string.h> /* for memmem */
13262 #define P "_EF_BF_BD"
13263 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13264 #define NEEDLE P P P P P
13271 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13273 /* Check for empty needle behavior. */
13275 const char *haystack = "AAA";
13276 if (memmem (haystack, 3, NULL, 0) != haystack)
13285 if ac_fn_c_try_run
"$LINENO"; then :
13286 gl_cv_func_memmem_works_always
=yes
13288 gl_cv_func_memmem_works_always
=no
13290 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13291 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13297 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13298 case "$gl_cv_func_memmem_works_always" in
13308 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
13309 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
13315 cat >>confdefs.h
<<_ACEOF
13316 #define HAVE_DECL_MEMRCHR $ac_have_decl
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
13331 $as_echo_n "checking for promoted mode_t type... " >&6; }
13332 if ${gl_cv_promoted_mode_t+:} false
; then :
13333 $as_echo_n "(cached) " >&6
13336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13338 #include <sys/types.h>
13342 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
13347 if ac_fn_c_try_compile
"$LINENO"; then :
13348 gl_cv_promoted_mode_t
='int'
13350 gl_cv_promoted_mode_t
='mode_t'
13352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
13356 $as_echo "$gl_cv_promoted_mode_t" >&6; }
13358 cat >>confdefs.h
<<_ACEOF
13359 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
13377 GNULIB_FPRINTF_POSIX
=0;
13393 GNULIB_OBSTACK_PRINTF
=0;
13394 GNULIB_OBSTACK_PRINTF_POSIX
=0;
13399 GNULIB_PRINTF_POSIX
=0;
13408 GNULIB_SPRINTF_POSIX
=0;
13409 GNULIB_STDIO_H_NONBLOCKING
=0;
13410 GNULIB_STDIO_H_SIGPIPE
=0;
13412 GNULIB_VASPRINTF
=0;
13417 GNULIB_VFPRINTF_POSIX
=0;
13419 GNULIB_VPRINTF_POSIX
=0;
13420 GNULIB_VSNPRINTF
=0;
13421 GNULIB_VSPRINTF_POSIX
=0;
13422 HAVE_DECL_FPURGE
=1;
13423 HAVE_DECL_FSEEKO
=1;
13424 HAVE_DECL_FTELLO
=1;
13425 HAVE_DECL_GETDELIM
=1;
13426 HAVE_DECL_GETLINE
=1;
13427 HAVE_DECL_OBSTACK_PRINTF
=1;
13428 HAVE_DECL_SNPRINTF
=1;
13429 HAVE_DECL_VSNPRINTF
=1;
13450 REPLACE_GETDELIM
=0;
13452 REPLACE_OBSTACK_PRINTF
=0;
13458 REPLACE_RENAMEAT
=0;
13459 REPLACE_SNPRINTF
=0;
13461 REPLACE_STDIO_READ_FUNCS
=0;
13462 REPLACE_STDIO_WRITE_FUNCS
=0;
13464 REPLACE_VASPRINTF
=0;
13465 REPLACE_VDPRINTF
=0;
13466 REPLACE_VFPRINTF
=0;
13468 REPLACE_VSNPRINTF
=0;
13469 REPLACE_VSPRINTF
=0;
13502 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
13503 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
13509 cat >>confdefs.h
<<_ACEOF
13510 #define HAVE_DECL_SETENV $ac_have_decl
13528 if test $ac_cv_have_decl_setenv = no
; then
13548 for ac_header
in search.h
13550 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
13551 if test "x$ac_cv_header_search_h" = xyes
; then :
13552 cat >>confdefs.h
<<_ACEOF
13553 #define HAVE_SEARCH_H 1
13560 for ac_func
in tsearch
13562 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
13563 if test "x$ac_cv_func_tsearch" = xyes
; then :
13564 cat >>confdefs.h
<<_ACEOF
13565 #define HAVE_TSEARCH 1
13574 GNULIB_PTHREAD_SIGMASK
=0;
13576 GNULIB_SIGNAL_H_SIGPIPE
=0;
13577 GNULIB_SIGPROCMASK
=0;
13578 GNULIB_SIGACTION
=0;
13579 HAVE_POSIX_SIGNALBLOCKING
=1;
13580 HAVE_PTHREAD_SIGMASK
=1;
13585 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
13587 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
13589 HAVE_SIGHANDLER_T
=1;
13590 REPLACE_PTHREAD_SIGMASK
=0;
13594 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
13595 #include <signal.h>
13596 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
13597 #include <sys/types.h>
13600 if test "x$ac_cv_type_sigset_t" = xyes
; then :
13602 cat >>confdefs.h
<<_ACEOF
13603 #define HAVE_SIGSET_T 1
13606 gl_cv_type_sigset_t
=yes
13608 gl_cv_type_sigset_t
=no
13611 if test $gl_cv_type_sigset_t != yes; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13616 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13617 if ${ac_cv_type_uid_t+:} false
; then :
13618 $as_echo_n "(cached) " >&6
13620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622 #include <sys/types.h>
13625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13626 $EGREP "uid_t" >/dev
/null
2>&1; then :
13627 ac_cv_type_uid_t
=yes
13629 ac_cv_type_uid_t
=no
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13635 $as_echo "$ac_cv_type_uid_t" >&6; }
13636 if test $ac_cv_type_uid_t = no
; then
13638 $as_echo "#define uid_t int" >>confdefs.h
13641 $as_echo "#define gid_t int" >>confdefs.h
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13646 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13647 if ${ac_cv_header_stdbool_h+:} false
; then :
13648 $as_echo_n "(cached) " >&6
13650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13653 #include <stdbool.h>
13658 typedef _Bool Bool;
13660 "error: bool is not defined"
13663 "error: false is not defined"
13666 "error: false is not 0"
13669 "error: true is not defined"
13672 "error: true is not 1"
13676 #ifndef __bool_true_false_are_defined
13677 "error: __bool_true_false_are_defined is not defined"
13680 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
13682 char a[true == 1 ? 1 : -1];
13683 char b[false == 0 ? 1 : -1];
13684 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13685 char d[(bool) 0.5 == true ? 1 : -1];
13686 /* See body of main program for 'e'. */
13687 char f[(Bool) 0.0 == false ? 1 : -1];
13689 char h[sizeof (Bool)];
13690 char i[sizeof s.t];
13691 enum { j = false, k = true, l = false * true, m = true * 256 };
13692 /* The following fails for
13693 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13695 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13696 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13697 /* Catch a bug in an HP-UX C compiler. See
13698 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13699 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13710 *pq |= q; *pq |= ! q;
13711 *qq |= q; *qq |= ! q;
13712 /* Refer to every declared value, to avoid compiler optimizations. */
13713 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13714 + !m + !n + !o + !p + !q + !pq + !qq);
13720 if ac_fn_c_try_compile
"$LINENO"; then :
13721 ac_cv_header_stdbool_h
=yes
13723 ac_cv_header_stdbool_h
=no
13725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13728 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13729 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13730 if test "x$ac_cv_type__Bool" = xyes
; then :
13732 cat >>confdefs.h
<<_ACEOF
13733 #define HAVE__BOOL 1
13742 HAVE_MAX_ALIGN_T
=1;
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13747 $as_echo_n "checking for wchar_t... " >&6; }
13748 if ${gt_cv_c_wchar_t+:} false
; then :
13749 $as_echo_n "(cached) " >&6
13751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13753 #include <stddef.h>
13754 wchar_t foo = (wchar_t)'\0';
13763 if ac_fn_c_try_compile
"$LINENO"; then :
13764 gt_cv_c_wchar_t
=yes
13768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13771 $as_echo "$gt_cv_c_wchar_t" >&6; }
13772 if test $gt_cv_c_wchar_t = yes; then
13774 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13784 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
13785 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
13791 cat >>confdefs.h
<<_ACEOF
13792 #define HAVE_DECL_STRDUP $ac_have_decl
13797 REPLACE_STRERROR_0
=0
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
13799 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
13800 if ${gl_cv_func_strerror_0_works+:} false
; then :
13801 $as_echo_n "(cached) " >&6
13803 if test "$cross_compiling" = yes; then :
13805 # Guess yes on glibc systems.
13806 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
13807 # If we don't know, assume the worst.
13808 *) gl_cv_func_strerror_0_works
="guessing no" ;;
13812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 #include <string.h>
13823 str = strerror (0);
13824 if (!*str) result |= 1;
13825 if (errno) result |= 2;
13826 if (strstr (str, "nknown") || strstr (str, "ndefined"))
13833 if ac_fn_c_try_run
"$LINENO"; then :
13834 gl_cv_func_strerror_0_works
=yes
13836 gl_cv_func_strerror_0_works
=no
13838 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13839 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
13845 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
13846 case "$gl_cv_func_strerror_0_works" in
13849 REPLACE_STRERROR_0
=1
13851 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
13867 if test $gl_cv_have_include_next = yes; then
13868 gl_cv_next_string_h
='<'string.h
'>'
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13871 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13872 if ${gl_cv_next_string_h+:} false
; then :
13873 $as_echo_n "(cached) " >&6
13878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 #include <string.h>
13883 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13884 *) gl_absname_cpp
="$ac_cpp" ;;
13889 gl_dirsep_regex
='[/\\]'
13892 gl_dirsep_regex
='\/'
13895 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13896 gl_header_literal_regex
=`echo 'string.h' \
13897 | sed -e "$gl_make_literal_regex_sed"`
13898 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13899 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13905 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13906 sed -n "$gl_absolute_header_sed"`
13908 gl_header
=$gl_cv_absolute_string_h
13909 gl_cv_next_string_h
='"'$gl_header'"'
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13914 $as_echo "$gl_cv_next_string_h" >&6; }
13916 NEXT_STRING_H
=$gl_cv_next_string_h
13918 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13920 gl_next_as_first_directive
='<'string.h
'>'
13922 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13923 gl_next_as_first_directive
=$gl_cv_next_string_h
13925 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
13932 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
13933 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13935 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13936 if eval \
${$as_gl_Symbol+:} false
; then :
13937 $as_echo_n "(cached) " >&6
13939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941 #include <string.h>
13952 if ac_fn_c_try_compile
"$LINENO"; then :
13953 eval "$as_gl_Symbol=yes"
13955 eval "$as_gl_Symbol=no"
13957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13959 eval ac_res
=\$
$as_gl_Symbol
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13961 $as_echo "$ac_res" >&6; }
13962 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
13963 cat >>confdefs.h
<<_ACEOF
13964 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13967 eval ac_cv_have_decl_
$gl_func=yes
13975 if test "$gl_cv_func_memchr_works" != yes; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13979 $as_echo_n "checking whether strstr works... " >&6; }
13980 if ${gl_cv_func_strstr_works_always+:} false
; then :
13981 $as_echo_n "(cached) " >&6
13983 if test "$cross_compiling" = yes; then :
13984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13987 #ifdef __GNU_LIBRARY__
13988 #include <features.h>
13989 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13990 || defined __UCLIBC__
13993 #elif defined __CYGWIN__
13994 #include <cygwin/version.h>
13995 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14004 $EGREP "Lucky user" >/dev
/null
2>&1; then :
14005 gl_cv_func_strstr_works_always
="guessing yes"
14007 gl_cv_func_strstr_works_always
="guessing no"
14013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14016 #include <string.h> /* for strstr */
14017 #define P "_EF_BF_BD"
14018 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14019 #define NEEDLE P P P P P
14024 return !!strstr (HAYSTACK, NEEDLE);
14030 if ac_fn_c_try_run
"$LINENO"; then :
14031 gl_cv_func_strstr_works_always
=yes
14033 gl_cv_func_strstr_works_always
=no
14035 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14036 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14042 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
14043 case "$gl_cv_func_strstr_works_always" in
14052 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
14053 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
14059 cat >>confdefs.h
<<_ACEOF
14060 #define HAVE_DECL_STRTOK_R $ac_have_decl
14082 if test $gl_cv_have_include_next = yes; then
14083 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14086 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14087 if ${gl_cv_next_sys_types_h+:} false
; then :
14088 $as_echo_n "(cached) " >&6
14093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095 #include <sys/types.h>
14098 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14099 *) gl_absname_cpp
="$ac_cpp" ;;
14104 gl_dirsep_regex
='[/\\]'
14107 gl_dirsep_regex
='\/'
14110 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14111 gl_header_literal_regex
=`echo 'sys/types.h' \
14112 | sed -e "$gl_make_literal_regex_sed"`
14113 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14114 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14120 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14121 sed -n "$gl_absolute_header_sed"`
14123 gl_header
=$gl_cv_absolute_sys_types_h
14124 gl_cv_next_sys_types_h
='"'$gl_header'"'
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14129 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14131 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
14133 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14135 gl_next_as_first_directive
='<'sys
/types.h
'>'
14137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14138 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
14140 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
14161 GNULIB_NANOSLEEP
=0;
14166 HAVE_DECL_LOCALTIME_R
=1;
14170 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
14171 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
14172 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
14173 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
14175 : ${GNULIB_GETTIMEOFDAY=0};
14177 REPLACE_LOCALTIME
=0;
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14188 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14189 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
14190 $as_echo_n "(cached) " >&6
14192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14199 static struct timespec x; x.tv_sec = x.tv_nsec;
14204 if ac_fn_c_try_compile
"$LINENO"; then :
14205 gl_cv_sys_struct_timespec_in_time_h
=yes
14207 gl_cv_sys_struct_timespec_in_time_h
=no
14209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14212 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14214 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14215 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14216 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14217 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
14218 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14219 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14222 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14223 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14224 $as_echo_n "(cached) " >&6
14226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228 #include <sys/time.h>
14233 static struct timespec x; x.tv_sec = x.tv_nsec;
14238 if ac_fn_c_try_compile
"$LINENO"; then :
14239 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14241 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14246 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14247 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14248 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14251 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14252 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14253 $as_echo_n "(cached) " >&6
14255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 #include <pthread.h>
14262 static struct timespec x; x.tv_sec = x.tv_nsec;
14267 if ac_fn_c_try_compile
"$LINENO"; then :
14268 gl_cv_sys_struct_timespec_in_pthread_h
=yes
14270 gl_cv_sys_struct_timespec_in_pthread_h
=no
14272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14275 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14276 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14277 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
14280 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
14281 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
14282 $as_echo_n "(cached) " >&6
14284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14286 #include <unistd.h>
14291 static struct timespec x; x.tv_sec = x.tv_nsec;
14296 if ac_fn_c_try_compile
"$LINENO"; then :
14297 gl_cv_sys_struct_timespec_in_unistd_h
=yes
14299 gl_cv_sys_struct_timespec_in_unistd_h
=no
14301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
14304 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
14305 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
14306 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
14327 if test $gl_cv_have_include_next = yes; then
14328 gl_cv_next_time_h
='<'time.h
'>'
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14331 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14332 if ${gl_cv_next_time_h+:} false
; then :
14333 $as_echo_n "(cached) " >&6
14338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14343 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14344 *) gl_absname_cpp
="$ac_cpp" ;;
14349 gl_dirsep_regex
='[/\\]'
14352 gl_dirsep_regex
='\/'
14355 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14356 gl_header_literal_regex
=`echo 'time.h' \
14357 | sed -e "$gl_make_literal_regex_sed"`
14358 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14359 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14365 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14366 sed -n "$gl_absolute_header_sed"`
14368 gl_header
=$gl_cv_absolute_time_h
14369 gl_cv_next_time_h
='"'$gl_header'"'
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14374 $as_echo "$gl_cv_next_time_h" >&6; }
14376 NEXT_TIME_H
=$gl_cv_next_time_h
14378 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14380 gl_next_as_first_directive
='<'time.h
'>'
14382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14383 gl_next_as_first_directive
=$gl_cv_next_time_h
14385 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
14398 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
14399 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
14405 cat >>confdefs.h
<<_ACEOF
14406 #define HAVE_DECL_UNSETENV $ac_have_decl
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
14412 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
14413 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
14414 $as_echo_n "(cached) " >&6
14416 gl_cv_header_wchar_h_correct_inline
=yes
14417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14420 #define wcstod renamed_wcstod
14421 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14423 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14424 included before <wchar.h>. */
14425 #include <stddef.h>
14429 extern int zero (void);
14430 int main () { return zero(); }
14433 save_ac_compile
="$ac_compile"
14434 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
14435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14436 (eval $ac_compile) 2>&5
14438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14439 test $ac_status = 0; }; then
14440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14443 #define wcstod renamed_wcstod
14444 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14446 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14447 included before <wchar.h>. */
14448 #include <stddef.h>
14452 int zero (void) { return 0; }
14455 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
14456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14457 (eval $ac_compile) 2>&5
14459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14460 test $ac_status = 0; }; then
14461 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
14464 gl_cv_header_wchar_h_correct_inline
=no
14468 ac_compile
="$save_ac_compile"
14469 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
14473 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
14474 if test $gl_cv_header_wchar_h_correct_inline = no
; then
14475 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
14476 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
14477 C99 mode. You have four options:
14478 - Add the flag -fgnu89-inline to CC and reconfigure, or
14479 - Fix your include files, using parts of
14480 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
14481 - Use a gcc version older than 4.3, or
14482 - Don't use the flags -std=c99 or -std=gnu99.
14483 Configuration aborted." "$LINENO" 5
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
14488 $as_echo_n "checking for wint_t... " >&6; }
14489 if ${gt_cv_c_wint_t+:} false
; then :
14490 $as_echo_n "(cached) " >&6
14492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14495 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14497 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
14498 before <wchar.h>. */
14499 #include <stddef.h>
14503 wint_t foo = (wchar_t)'\0';
14512 if ac_fn_c_try_compile
"$LINENO"; then :
14517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
14520 $as_echo "$gt_cv_c_wint_t" >&6; }
14521 if test $gt_cv_c_wint_t = yes; then
14523 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
14532 GNULIB_TOWCTRANS
=0;
14536 REPLACE_ISWBLANK
=0;
14545 GL_COND_LIBTOOL_TRUE
=
14546 GL_COND_LIBTOOL_FALSE
='#'
14548 GL_COND_LIBTOOL_TRUE
='#'
14549 GL_COND_LIBTOOL_FALSE
=
14552 gl_cond_libtool
=false
14555 gl_m4_base
='import/m4'
14565 gl_source_base
='import'
14568 if test $ac_cv_func_alloca_works = no
; then
14572 # Define an additional variable used in the Makefile substitution.
14573 if test $ac_cv_working_alloca_h = yes; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
14575 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
14576 if ${gl_cv_rpl_alloca+:} false
; then :
14577 $as_echo_n "(cached) " >&6
14580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14583 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
14588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14589 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
14590 gl_cv_rpl_alloca
=yes
14592 gl_cv_rpl_alloca
=no
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
14599 $as_echo "$gl_cv_rpl_alloca" >&6; }
14600 if test $gl_cv_rpl_alloca = yes; then
14602 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14612 if test -n "$ALLOCA_H"; then
14613 GL_GENERATE_ALLOCA_H_TRUE
=
14614 GL_GENERATE_ALLOCA_H_FALSE
='#'
14616 GL_GENERATE_ALLOCA_H_TRUE
='#'
14617 GL_GENERATE_ALLOCA_H_FALSE
=
14631 if test $ac_cv_header_arpa_inet_h = yes; then
14652 if test $gl_cv_have_include_next = yes; then
14653 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
14656 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
14657 if ${gl_cv_next_arpa_inet_h+:} false
; then :
14658 $as_echo_n "(cached) " >&6
14661 if test $ac_cv_header_arpa_inet_h = yes; then
14666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14668 #include <arpa/inet.h>
14671 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14672 *) gl_absname_cpp
="$ac_cpp" ;;
14677 gl_dirsep_regex
='[/\\]'
14680 gl_dirsep_regex
='\/'
14683 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14684 gl_header_literal_regex
=`echo 'arpa/inet.h' \
14685 | sed -e "$gl_make_literal_regex_sed"`
14686 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14687 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14693 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14694 sed -n "$gl_absolute_header_sed"`
14696 gl_header
=$gl_cv_absolute_arpa_inet_h
14697 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
14699 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
14705 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
14707 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
14709 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14710 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14711 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
14713 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14714 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
14716 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
14725 for gl_func
in inet_ntop inet_pton
; do
14726 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14728 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14729 if eval \
${$as_gl_Symbol+:} false
; then :
14730 $as_echo_n "(cached) " >&6
14732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14735 /* On some systems, this header is not self-consistent. */
14736 #if !(defined __GLIBC__ || defined __UCLIBC__)
14737 # include <sys/socket.h>
14740 # include <netdb.h>
14742 #include <arpa/inet.h>
14753 if ac_fn_c_try_compile
"$LINENO"; then :
14754 eval "$as_gl_Symbol=yes"
14756 eval "$as_gl_Symbol=no"
14758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14760 eval ac_res
=\$
$as_gl_Symbol
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14762 $as_echo "$ac_res" >&6; }
14763 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
14764 cat >>confdefs.h
<<_ACEOF
14765 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14768 eval ac_cv_have_decl_
$gl_func=yes
14782 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
14787 if test $ac_cv_func_canonicalize_file_name = no
; then
14788 HAVE_CANONICALIZE_FILE_NAME
=0
14789 if test $ac_cv_func_realpath = no
; then
14792 case "$gl_cv_func_realpath_works" in
14794 *) REPLACE_REALPATH
=1 ;;
14798 case "$gl_cv_func_realpath_works" in
14802 REPLACE_CANONICALIZE_FILE_NAME
=1
14808 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
14817 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
14822 cat >>confdefs.h
<<_ACEOF
14823 #define GNULIB_CANONICALIZE_LGPL 1
14832 GNULIB_CANONICALIZE_FILE_NAME
=1
14838 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
14853 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
14868 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
14875 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
14876 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
14877 $as_echo_n "(cached) " >&6
14879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14882 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
14884 # include <unistd.h>
14886 #include <limits.h>
14887 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
14888 # include <sys/param.h>
14890 #if !defined PATH_MAX && defined MAXPATHLEN
14891 # define PATH_MAX MAXPATHLEN
14895 # define PATH_MAX 1024
14897 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14899 # define PATH_MAX 260
14903 have_arbitrary_file_name_length_limit
14906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14907 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
14908 gl_cv_have_arbitrary_file_name_length_limit
=yes
14910 gl_cv_have_arbitrary_file_name_length_limit
=no
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
14916 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
14918 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
14927 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
14933 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
14939 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14953 if test $ac_cv_header_sys_socket_h != yes; then
14954 for ac_header
in winsock2.h
14956 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14957 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
14958 cat >>confdefs.h
<<_ACEOF
14959 #define HAVE_WINSOCK2_H 1
14967 if test "$ac_cv_header_winsock2_h" = yes; then
14969 UNISTD_H_HAVE_WINSOCK2_H
=1
14970 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
14976 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
14981 if test $REPLACE_CLOSE = 0; then
14991 if test $ac_cv_func_fchdir = no
; then
14995 if test $HAVE_FCHDIR = 0; then
15001 if test $REPLACE_CLOSE = 1; then
15010 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
15024 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
15031 for ac_func
in closedir
15033 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
15034 if test "x$ac_cv_func_closedir" = xyes
; then :
15035 cat >>confdefs.h
<<_ACEOF
15036 #define HAVE_CLOSEDIR 1
15042 if test $ac_cv_func_closedir = no
; then
15055 if test $ac_cv_func_fchdir = no
; then
15059 if test $HAVE_FCHDIR = 0; then
15060 if test $HAVE_CLOSEDIR = 1; then
15065 case $host_os,$HAVE_CLOSEDIR in
15067 REPLACE_CLOSEDIR
=1;;
15070 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
15079 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
15093 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
15098 if test "x$datarootdir" = x
; then
15099 datarootdir
='${datadir}'
15102 if test "x$docdir" = x
; then
15103 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
15106 if test "x$htmldir" = x
; then
15107 htmldir
='${docdir}'
15110 if test "x$dvidir" = x
; then
15114 if test "x$pdfdir" = x
; then
15118 if test "x$psdir" = x
; then
15122 if test "x$lispdir" = x
; then
15123 lispdir
='${datarootdir}/emacs/site-lisp'
15126 if test "x$localedir" = x
; then
15127 localedir
='${datarootdir}/locale'
15130 if test "x$runstatedir" = x
; then
15131 runstatedir
='${localstatedir}/run'
15135 pkglibexecdir
='${libexecdir}/${PACKAGE}'
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
15139 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
15140 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
15141 $as_echo_n "(cached) " >&6
15143 if test "$cross_compiling" = yes; then :
15145 # Guess yes on glibc systems with Linux kernel.
15146 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
15147 # If we don't know, assume the worst.
15148 *) gl_cv_struct_dirent_d_ino
="guessing no" ;;
15152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154 #include <sys/types.h>
15155 #include <sys/stat.h>
15156 #include <dirent.h>
15161 DIR *dp = opendir (".");
15169 if (lstat (e->d_name, &st) != 0)
15171 if (e->d_ino != st.st_ino)
15180 if ac_fn_c_try_run
"$LINENO"; then :
15181 gl_cv_struct_dirent_d_ino
=yes
15183 gl_cv_struct_dirent_d_ino
=no
15185 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15186 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
15191 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
15192 case "$gl_cv_struct_dirent_d_ino" in
15195 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
15202 $as_echo_n "checking for d_type member in directory struct... " >&6; }
15203 if ${gl_cv_struct_dirent_d_type+:} false
; then :
15204 $as_echo_n "(cached) " >&6
15206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15207 /* end confdefs.h. */
15209 #include <sys/types.h>
15210 #include <dirent.h>
15215 struct dirent dp; dp.d_type = 0;
15220 if ac_fn_c_try_link
"$LINENO"; then :
15221 gl_cv_struct_dirent_d_type
=yes
15223 gl_cv_struct_dirent_d_type
=no
15225 rm -f core conftest.err conftest.
$ac_objext \
15226 conftest
$ac_exeext conftest.
$ac_ext
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
15231 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
15232 if test $gl_cv_struct_dirent_d_type = yes; then
15234 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
15257 if test $gl_cv_have_include_next = yes; then
15258 gl_cv_next_dirent_h
='<'dirent.h
'>'
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
15261 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
15262 if ${gl_cv_next_dirent_h+:} false
; then :
15263 $as_echo_n "(cached) " >&6
15266 if test $ac_cv_header_dirent_h = yes; then
15271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 #include <dirent.h>
15276 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15277 *) gl_absname_cpp
="$ac_cpp" ;;
15282 gl_dirsep_regex
='[/\\]'
15285 gl_dirsep_regex
='\/'
15288 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15289 gl_header_literal_regex
=`echo 'dirent.h' \
15290 | sed -e "$gl_make_literal_regex_sed"`
15291 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15292 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15298 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15299 sed -n "$gl_absolute_header_sed"`
15301 gl_header
=$gl_cv_absolute_dirent_h
15302 gl_cv_next_dirent_h
='"'$gl_header'"'
15304 gl_cv_next_dirent_h
='<'dirent.h
'>'
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
15310 $as_echo "$gl_cv_next_dirent_h" >&6; }
15312 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
15314 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15315 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15316 gl_next_as_first_directive
='<'dirent.h
'>'
15318 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15319 gl_next_as_first_directive
=$gl_cv_next_dirent_h
15321 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
15326 if test $ac_cv_header_dirent_h = yes; then
15334 for gl_func
in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir
; do
15335 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15337 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15338 if eval \
${$as_gl_Symbol+:} false
; then :
15339 $as_echo_n "(cached) " >&6
15341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15343 #include <dirent.h>
15354 if ac_fn_c_try_compile
"$LINENO"; then :
15355 eval "$as_gl_Symbol=yes"
15357 eval "$as_gl_Symbol=no"
15359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15361 eval ac_res
=\$
$as_gl_Symbol
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15363 $as_echo "$ac_res" >&6; }
15364 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15365 cat >>confdefs.h
<<_ACEOF
15366 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15369 eval ac_cv_have_decl_
$gl_func=yes
15379 for ac_func
in dirfd
15381 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
15382 if test "x$ac_cv_func_dirfd" = xyes
; then :
15383 cat >>confdefs.h
<<_ACEOF
15384 #define HAVE_DIRFD 1
15390 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
15391 #include <dirent.h>
15393 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
15399 cat >>confdefs.h
<<_ACEOF
15400 #define HAVE_DECL_DIRFD $ac_have_decl
15403 if test $ac_cv_have_decl_dirfd = no
; then
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
15408 $as_echo_n "checking whether dirfd is a macro... " >&6; }
15409 if ${gl_cv_func_dirfd_macro+:} false
; then :
15410 $as_echo_n "(cached) " >&6
15412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15415 #include <sys/types.h>
15416 #include <dirent.h>
15418 dirent_header_defines_dirfd
15421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15422 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
15423 gl_cv_func_dirfd_macro
=yes
15425 gl_cv_func_dirfd_macro
=no
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
15431 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
15433 # Use the replacement if we have no function or macro with that name,
15434 # or if OS/2 kLIBC whose dirfd() does not work.
15435 # Replace only if the system declares dirfd already.
15436 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
15437 no
,no
,*,yes |
*,*,os2
*,yes)
15440 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
15444 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
15445 ||
test $REPLACE_DIRFD = 1; then
15454 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
15458 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
15459 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
15460 $as_echo_n "(cached) " >&6
15463 dirfd_save_CFLAGS
=$CFLAGS
15464 for ac_expr
in d_fd dd_fd
; do
15466 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
15467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h. */
15470 #include <sys/types.h>
15471 #include <dirent.h>
15475 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
15480 if ac_fn_c_try_compile
"$LINENO"; then :
15484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15485 CFLAGS
=$dirfd_save_CFLAGS
15486 test "$dir_fd_found" = yes && break
15488 test "$dir_fd_found" = yes || ac_expr
=no_such_member
15490 gl_cv_sys_dir_fd_member_name
=$ac_expr
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
15495 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
15496 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
15498 cat >>confdefs.h
<<_ACEOF
15499 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
15517 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15528 $as_echo_n "checking whether // is distinct from /... " >&6; }
15529 if ${gl_cv_double_slash_root+:} false
; then :
15530 $as_echo_n "(cached) " >&6
15532 if test x
"$cross_compiling" = xyes
; then
15533 # When cross-compiling, there is no way to tell whether // is special
15534 # short of a list of hosts. However, the only known hosts to date
15535 # that have a distinct // are Apollo DomainOS (too old to port to),
15536 # Cygwin, and z/OS. If anyone knows of another system for which // has
15537 # special semantics and is distinct from /, please report it to
15538 # <bug-gnulib@gnu.org>.
15540 *-cygwin | i370-ibm-openedition
)
15541 gl_cv_double_slash_root
=yes ;;
15543 # Be optimistic and assume that / and // are the same when we
15545 gl_cv_double_slash_root
='unknown, assuming no' ;;
15548 set x
`ls -di / // 2>/dev/null`
15549 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
15550 gl_cv_double_slash_root
=no
15552 gl_cv_double_slash_root
=yes
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15557 $as_echo "$gl_cv_double_slash_root" >&6; }
15558 if test "$gl_cv_double_slash_root" = yes; then
15560 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15567 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
15580 if test $ac_cv_func_fchdir = no
; then
15584 if test $HAVE_FCHDIR = 0; then
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
15589 $as_echo_n "checking whether dup works... " >&6; }
15590 if ${gl_cv_func_dup_works+:} false
; then :
15591 $as_echo_n "(cached) " >&6
15593 if test "$cross_compiling" = yes; then :
15594 gl_cv_func_dup_works
='guessing yes'
15596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h. */
15598 #include <unistd.h>
15604 /* On OS/2 kLIBC, dup does not work on a directory fd. */
15605 int fd = open (".", O_RDONLY);
15606 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
15613 if ac_fn_c_try_run
"$LINENO"; then :
15614 gl_cv_func_dup_works
=yes
15616 gl_cv_func_dup_works
=no
15618 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15619 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
15625 $as_echo "$gl_cv_func_dup_works" >&6; }
15626 case "$gl_cv_func_dup_works" in
15633 if test $REPLACE_DUP = 1; then
15642 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
15657 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
15666 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
15669 if test $HAVE_DUP2 = 1; then
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
15671 $as_echo_n "checking whether dup2 works... " >&6; }
15672 if ${gl_cv_func_dup2_works+:} false
; then :
15673 $as_echo_n "(cached) " >&6
15675 if test "$cross_compiling" = yes; then :
15677 mingw
*) # on this platform, dup2 always returns 0 for success
15678 gl_cv_func_dup2_works
="guessing no" ;;
15679 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
15680 gl_cv_func_dup2_works
="guessing no" ;;
15682 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
15684 gl_cv_func_dup2_works
="guessing no" ;;
15685 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
15686 gl_cv_func_dup2_works
="guessing no" ;;
15687 *-android*) # implemented using dup3(), which fails if oldfd == newfd
15688 gl_cv_func_dup2_works
="guessing no" ;;
15689 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
15690 gl_cv_func_dup2_works
="guessing no" ;;
15691 *) gl_cv_func_dup2_works
="guessing yes" ;;
15694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15699 #include <limits.h>
15700 #include <sys/resource.h>
15701 #include <unistd.h>
15702 #ifndef RLIM_SAVED_CUR
15703 # define RLIM_SAVED_CUR RLIM_INFINITY
15705 #ifndef RLIM_SAVED_MAX
15706 # define RLIM_SAVED_MAX RLIM_INFINITY
15713 int bad_fd = INT_MAX;
15714 struct rlimit rlim;
15715 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
15716 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
15717 && rlim.rlim_cur != RLIM_INFINITY
15718 && rlim.rlim_cur != RLIM_SAVED_MAX
15719 && rlim.rlim_cur != RLIM_SAVED_CUR)
15720 bad_fd = rlim.rlim_cur;
15722 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
15725 if (dup2 (1, 1) != 1)
15728 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
15732 if (dup2 (0, 0) != -1)
15734 /* Many gnulib modules require POSIX conformance of EBADF. */
15735 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
15737 /* Flush out some cygwin core dumps. */
15738 if (dup2 (2, -1) != -1 || errno != EBADF)
15742 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
15744 int fd = open (".", O_RDONLY);
15747 else if (dup2 (fd, fd + 1) == -1)
15758 if ac_fn_c_try_run
"$LINENO"; then :
15759 gl_cv_func_dup2_works
=yes
15761 gl_cv_func_dup2_works
=no
15763 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15764 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
15770 $as_echo "$gl_cv_func_dup2_works" >&6; }
15771 case "$gl_cv_func_dup2_works" in
15775 for ac_func
in setdtablesize
15777 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
15778 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
15779 cat >>confdefs.h
<<_ACEOF
15780 #define HAVE_SETDTABLESIZE 1
15799 if test $ac_cv_func_fchdir = no
; then
15803 if test $HAVE_FCHDIR = 0; then
15804 if test $HAVE_DUP2 = 1; then
15810 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
15819 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
15834 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
15850 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15857 $as_echo_n "checking for error_at_line... " >&6; }
15858 if ${ac_cv_lib_error_at_line+:} false
; then :
15859 $as_echo_n "(cached) " >&6
15861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h. */
15867 error_at_line (0, 0, "", 0, "an error occurred");
15872 if ac_fn_c_try_link
"$LINENO"; then :
15873 ac_cv_lib_error_at_line
=yes
15875 ac_cv_lib_error_at_line
=no
15877 rm -f core conftest.err conftest.
$ac_objext \
15878 conftest
$ac_exeext conftest.
$ac_ext
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15881 $as_echo "$ac_cv_lib_error_at_line" >&6; }
15883 if test $ac_cv_lib_error_at_line = no
; then
15892 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
15912 if test $ac_cv_have_decl_fchdir = no
; then
15917 if test $HAVE_FCHDIR = 0; then
15926 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
15930 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
15933 $as_echo_n "checking whether open can visit directories... " >&6; }
15934 if ${gl_cv_func_open_directory_works+:} false
; then :
15935 $as_echo_n "(cached) " >&6
15937 if test "$cross_compiling" = yes; then :
15939 # Guess yes on glibc systems.
15940 *-gnu*) gl_cv_func_open_directory_works
="guessing yes" ;;
15941 # If we don't know, assume the worst.
15942 *) gl_cv_func_open_directory_works
="guessing no" ;;
15946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15947 /* end confdefs.h. */
15953 return open(".", O_RDONLY) < 0;
15958 if ac_fn_c_try_run
"$LINENO"; then :
15959 gl_cv_func_open_directory_works
=yes
15961 gl_cv_func_open_directory_works
=no
15963 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15964 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
15969 $as_echo "$gl_cv_func_open_directory_works" >&6; }
15970 case "$gl_cv_func_open_directory_works" in
15974 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
15991 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
16006 if test $ac_cv_func_fcntl = no
; then
16016 if test $ac_cv_func_fcntl = no
; then
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
16024 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
16025 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
16026 $as_echo_n "(cached) " >&6
16028 if test "$cross_compiling" = yes; then :
16030 aix
* | cygwin
* | haiku
*)
16031 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
16032 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
16035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16039 #include <limits.h>
16040 #include <sys/resource.h>
16041 #include <unistd.h>
16042 #ifndef RLIM_SAVED_CUR
16043 # define RLIM_SAVED_CUR RLIM_INFINITY
16045 #ifndef RLIM_SAVED_MAX
16046 # define RLIM_SAVED_MAX RLIM_INFINITY
16053 int bad_fd = INT_MAX;
16054 struct rlimit rlim;
16055 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
16056 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
16057 && rlim.rlim_cur != RLIM_INFINITY
16058 && rlim.rlim_cur != RLIM_SAVED_MAX
16059 && rlim.rlim_cur != RLIM_SAVED_CUR)
16060 bad_fd = rlim.rlim_cur;
16061 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
16062 if (errno != EINVAL) result |= 2;
16063 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
16064 if (errno != EINVAL) result |= 8;
16065 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
16068 fd = open (".", O_RDONLY);
16071 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
16081 if ac_fn_c_try_run
"$LINENO"; then :
16082 gl_cv_func_fcntl_f_dupfd_works
=yes
16084 gl_cv_func_fcntl_f_dupfd_works
=no
16086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
16092 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
16093 case $gl_cv_func_fcntl_f_dupfd_works in
16104 if test $ac_cv_func_fcntl = no
; then
16111 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
16116 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
16117 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
16118 $as_echo_n "(cached) " >&6
16120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16124 #ifndef F_DUPFD_CLOEXEC
16136 if ac_fn_c_try_compile
"$LINENO"; then :
16137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16141 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
16142 it to support the semantics on older kernels that failed with EINVAL. */
16154 if ac_fn_c_try_compile
"$LINENO"; then :
16155 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
16157 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
16159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16161 gl_cv_func_fcntl_f_dupfd_cloexec
=no
16163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
16166 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
16167 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
16177 if test $ac_cv_func_fcntl = no
; then
16195 if test $ac_cv_func_fchdir = no
; then
16199 if test $HAVE_FCHDIR = 0; then
16209 if test $ac_cv_func_fcntl = no
; then
16218 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
16227 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
16241 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
16256 if test $gl_cv_have_include_next = yes; then
16257 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
16260 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
16261 if ${gl_cv_next_fcntl_h+:} false
; then :
16262 $as_echo_n "(cached) " >&6
16267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16272 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16273 *) gl_absname_cpp
="$ac_cpp" ;;
16278 gl_dirsep_regex
='[/\\]'
16281 gl_dirsep_regex
='\/'
16284 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16285 gl_header_literal_regex
=`echo 'fcntl.h' \
16286 | sed -e "$gl_make_literal_regex_sed"`
16287 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16288 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16294 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16295 sed -n "$gl_absolute_header_sed"`
16297 gl_header
=$gl_cv_absolute_fcntl_h
16298 gl_cv_next_fcntl_h
='"'$gl_header'"'
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
16303 $as_echo "$gl_cv_next_fcntl_h" >&6; }
16305 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
16307 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16308 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16309 gl_next_as_first_directive
='<'fcntl.h
'>'
16311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16312 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
16314 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
16325 for gl_func
in fcntl openat
; do
16326 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16328 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16329 if eval \
${$as_gl_Symbol+:} false
; then :
16330 $as_echo_n "(cached) " >&6
16332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16345 if ac_fn_c_try_compile
"$LINENO"; then :
16346 eval "$as_gl_Symbol=yes"
16348 eval "$as_gl_Symbol=no"
16350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16352 eval ac_res
=\$
$as_gl_Symbol
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16354 $as_echo "$ac_res" >&6; }
16355 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
16356 cat >>confdefs.h
<<_ACEOF
16357 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16360 eval ac_cv_have_decl_
$gl_func=yes
16370 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
16371 #include <dirent.h>
16374 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
16380 cat >>confdefs.h
<<_ACEOF
16381 #define HAVE_DECL_FDOPENDIR $ac_have_decl
16383 if test $ac_have_decl = 1; then :
16386 HAVE_DECL_FDOPENDIR
=0
16396 if test $ac_cv_func_fdopendir = no
; then
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
16400 $as_echo_n "checking whether fdopendir works... " >&6; }
16401 if ${gl_cv_func_fdopendir_works+:} false
; then :
16402 $as_echo_n "(cached) " >&6
16404 if test "$cross_compiling" = yes; then :
16406 # Guess yes on glibc systems.
16407 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
16408 # If we don't know, assume the worst.
16409 *) gl_cv_func_fdopendir_works
="guessing no" ;;
16413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16416 #include <dirent.h>
16418 #include <unistd.h>
16419 #if !HAVE_DECL_FDOPENDIR
16421 # ifdef __cplusplus
16424 DIR *fdopendir (int);
16431 int fd = open ("conftest.c", O_RDONLY);
16432 if (fd < 0) result |= 1;
16433 if (fdopendir (fd)) result |= 2;
16434 if (close (fd)) result |= 4;
16440 if ac_fn_c_try_run
"$LINENO"; then :
16441 gl_cv_func_fdopendir_works
=yes
16443 gl_cv_func_fdopendir_works
=no
16445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
16451 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
16452 case "$gl_cv_func_fdopendir_works" in
16455 REPLACE_FDOPENDIR
=1
16460 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
16469 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
16483 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
16489 cat >>confdefs.h
<<_ACEOF
16490 #define GNULIB_FDOPENDIR 1
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
16505 $as_echo_n "checking for flexible array member... " >&6; }
16506 if ${ac_cv_c_flexmember+:} false
; then :
16507 $as_echo_n "(cached) " >&6
16509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16510 /* end confdefs.h. */
16511 #include <stdlib.h>
16513 #include <stddef.h>
16514 struct s { int n; double d[]; };
16518 int m = getchar ();
16519 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
16520 nbytes += sizeof (struct s) - 1;
16521 nbytes -= nbytes % sizeof (struct s);
16522 struct s *p = malloc (nbytes);
16524 return p->d != (double *) NULL;
16529 if ac_fn_c_try_compile
"$LINENO"; then :
16530 ac_cv_c_flexmember
=yes
16532 ac_cv_c_flexmember
=no
16534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
16537 $as_echo "$ac_cv_c_flexmember" >&6; }
16538 if test $ac_cv_c_flexmember = yes; then
16540 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
16543 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
16551 REPLACE_FLOAT_LDBL
=0
16553 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
16557 case "$host_cpu" in
16562 # On x86_64 systems, the C compiler may still be generating
16564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16565 /* end confdefs.h. */
16566 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
16570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16571 $EGREP "yes" >/dev
/null
2>&1; then :
16582 case "$host_cpu" in
16590 aix
* | freebsd
* | linux
*)
16591 if test -n "$FLOAT_H"; then
16592 REPLACE_FLOAT_LDBL
=1
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
16599 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
16600 if ${gl_cv_func_itold_works+:} false
; then :
16601 $as_echo_n "(cached) " >&6
16604 if test "$cross_compiling" = yes; then :
16607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h. */
16609 #if defined __LP64__ || defined __arch64__
16613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16614 $EGREP "yes" >/dev
/null
2>&1; then :
16615 gl_cv_func_itold_works
="guessing no"
16617 gl_cv_func_itold_works
="guessing yes"
16622 *) gl_cv_func_itold_works
="guessing yes" ;;
16626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16627 /* end confdefs.h. */
16630 volatile long double ld;
16639 if ac_fn_c_try_run
"$LINENO"; then :
16640 gl_cv_func_itold_works
=yes
16642 gl_cv_func_itold_works
=no
16644 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16645 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
16651 $as_echo "$gl_cv_func_itold_works" >&6; }
16652 case "$gl_cv_func_itold_works" in
16659 if test -n "$FLOAT_H"; then
16668 if test $gl_cv_have_include_next = yes; then
16669 gl_cv_next_float_h
='<'float.h
'>'
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
16672 $as_echo_n "checking absolute name of <float.h>... " >&6; }
16673 if ${gl_cv_next_float_h+:} false
; then :
16674 $as_echo_n "(cached) " >&6
16679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16680 /* end confdefs.h. */
16684 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16685 *) gl_absname_cpp
="$ac_cpp" ;;
16690 gl_dirsep_regex
='[/\\]'
16693 gl_dirsep_regex
='\/'
16696 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16697 gl_header_literal_regex
=`echo 'float.h' \
16698 | sed -e "$gl_make_literal_regex_sed"`
16699 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16700 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16706 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16707 sed -n "$gl_absolute_header_sed"`
16709 gl_header
=$gl_cv_absolute_float_h
16710 gl_cv_next_float_h
='"'$gl_header'"'
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
16715 $as_echo "$gl_cv_next_float_h" >&6; }
16717 NEXT_FLOAT_H
=$gl_cv_next_float_h
16719 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16720 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16721 gl_next_as_first_directive
='<'float.h
'>'
16723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16724 gl_next_as_first_directive
=$gl_cv_next_float_h
16726 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
16733 if test -n "$FLOAT_H"; then
16734 GL_GENERATE_FLOAT_H_TRUE
=
16735 GL_GENERATE_FLOAT_H_FALSE
='#'
16737 GL_GENERATE_FLOAT_H_TRUE
='#'
16738 GL_GENERATE_FLOAT_H_FALSE
=
16743 if test $REPLACE_FLOAT_LDBL = 1; then
16752 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
16755 if test $REPLACE_ITOLD = 1; then
16764 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
16773 gl_fnmatch_required_lowercase
=`
16774 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
16776 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
16778 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
16779 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
16780 $as_echo_n "(cached) " >&6
16782 if test $gl_fnmatch_required = GNU
; then
16783 gl_fnmatch_gnu_start
=
16784 gl_fnmatch_gnu_end
=
16786 gl_fnmatch_gnu_start
='#if 0'
16787 gl_fnmatch_gnu_end
='#endif'
16789 if test "$cross_compiling" = yes; then :
16790 eval "$gl_fnmatch_cache_var=\"guessing no\""
16792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16793 /* end confdefs.h. */
16794 #include <fnmatch.h>
16796 y (char const *pattern, char const *string, int flags)
16798 return fnmatch (pattern, string, flags) == 0;
16801 n (char const *pattern, char const *string, int flags)
16803 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
16809 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
16810 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
16811 static char const A_1[] = { 'A' - 1, 0 };
16812 static char const A01[] = { 'A' + 1, 0 };
16813 static char const a_1[] = { 'a' - 1, 0 };
16814 static char const a01[] = { 'a' + 1, 0 };
16815 static char const bs_1[] = { '\\\\' - 1, 0 };
16816 static char const bs01[] = { '\\\\' + 1, 0 };
16818 if (!n ("a*", "", 0))
16820 if (!y ("a*", "abc", 0))
16822 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
16824 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
16826 if (!y ("a\\\\bc", "abc", 0))
16828 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
16830 if (!y ("*x", ".x", 0))
16832 if (!n ("*x", ".x", FNM_PERIOD))
16834 if (!y (Apat, "\\\\", 0))
16836 if (!y (Apat, "A", 0))
16838 if (!y (apat, "\\\\", 0))
16840 if (!y (apat, "a", 0))
16842 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
16844 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
16846 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
16848 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
16850 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
16852 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
16854 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
16856 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
16858 $gl_fnmatch_gnu_start
16859 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
16861 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
16863 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
16865 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
16867 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
16869 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
16871 $gl_fnmatch_gnu_end
16878 if ac_fn_c_try_run
"$LINENO"; then :
16879 eval "$gl_fnmatch_cache_var=yes"
16881 eval "$gl_fnmatch_cache_var=no"
16883 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16884 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16889 eval ac_res
=\$
$gl_fnmatch_cache_var
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16891 $as_echo "$ac_res" >&6; }
16892 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
16893 if test "$gl_fnmatch_result" = yes; then
16894 rm -f "$gl_source_base/fnmatch.h"
16896 FNMATCH_H
=fnmatch.h
16899 if test -n "$FNMATCH_H"; then
16900 GL_GENERATE_FNMATCH_H_TRUE
=
16901 GL_GENERATE_FNMATCH_H_FALSE
='#'
16903 GL_GENERATE_FNMATCH_H_TRUE
='#'
16904 GL_GENERATE_FNMATCH_H_FALSE
=
16908 if test -n "$FNMATCH_H"; then
16917 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
16921 cat >>confdefs.h
<<_ACEOF
16922 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16926 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16928 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
16934 cat >>confdefs.h
<<_ACEOF
16935 #define HAVE_DECL_ISBLANK $ac_have_decl
16980 if test -n "$FNMATCH_H"; then
16989 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
16993 cat >>confdefs.h
<<_ACEOF
16994 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
16998 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
17000 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
17006 cat >>confdefs.h
<<_ACEOF
17007 #define HAVE_DECL_ISBLANK $ac_have_decl
17051 if test $gl_cv_func_frexp_no_libm = no
; then
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
17053 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
17054 if ${gl_cv_func_frexp_in_libm+:} false
; then :
17055 $as_echo_n "(cached) " >&6
17060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h. */
17067 int e; return frexp (x, &e) > 0;
17072 if ac_fn_c_try_link
"$LINENO"; then :
17073 gl_cv_func_frexp_in_libm
=yes
17075 gl_cv_func_frexp_in_libm
=no
17077 rm -f core conftest.err conftest.
$ac_objext \
17078 conftest
$ac_exeext conftest.
$ac_ext
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
17083 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
17084 if test $gl_cv_func_frexp_in_libm = yes; then
17088 if test $gl_cv_func_frexp_no_libm = yes \
17089 ||
test $gl_cv_func_frexp_in_libm = yes; then
17091 LIBS
="$LIBS $FREXP_LIBM"
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
17102 $as_echo_n "checking whether frexp works... " >&6; }
17103 if ${gl_cv_func_frexp_works+:} false
; then :
17104 $as_echo_n "(cached) " >&6
17107 if test "$cross_compiling" = yes; then :
17109 netbsd
* | irix
* | mingw
*) gl_cv_func_frexp_works
="guessing no";;
17110 *) gl_cv_func_frexp_works
="guessing yes";;
17114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17115 /* end confdefs.h. */
17119 #include <string.h>
17120 #if HAVE_DECL_ALARM
17121 # include <signal.h>
17122 # include <unistd.h>
17124 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
17125 ICC 10.0 has a bug when optimizing the expression -zero.
17126 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
17127 to PowerPC on Mac OS X 10.5. */
17128 #if defined __hpux || defined __sgi || defined __ICC
17130 compute_minus_zero (void)
17132 return -DBL_MIN * DBL_MIN;
17134 # define minus_zero compute_minus_zero ()
17136 double minus_zero = -0.0;
17144 #if HAVE_DECL_ALARM
17145 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
17146 number. Let the test fail in this case. */
17147 signal (SIGALRM, SIG_DFL);
17150 /* Test on denormalized numbers. */
17151 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
17156 double y = frexp (x, &exp);
17157 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
17158 On NetBSD: y = 0.75. Correct: y = 0.5. */
17162 /* Test on infinite numbers. */
17166 double y = frexp (x, &exp);
17170 /* Test on negative zero. */
17174 double y = frexp (x, &exp);
17175 if (memcmp (&y, &x, sizeof x))
17181 if ac_fn_c_try_run
"$LINENO"; then :
17182 gl_cv_func_frexp_works
=yes
17184 gl_cv_func_frexp_works
=no
17186 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17187 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
17193 $as_echo "$gl_cv_func_frexp_works" >&6; }
17196 case "$gl_cv_func_frexp_works" in
17197 *yes) gl_func_frexp
=yes ;;
17198 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
17203 if test $gl_func_frexp = yes; then
17205 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
17210 if test $gl_func_frexp != yes; then
17219 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
17233 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
17243 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
17245 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
17253 if test $HAVE_DECL_FREXPL = 1; then
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
17256 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
17257 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
17258 $as_echo_n "(cached) " >&6
17261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17262 /* end confdefs.h. */
17268 int e; return frexpl (x, &e) > 0;
17273 if ac_fn_c_try_link
"$LINENO"; then :
17274 gl_cv_func_frexpl_no_libm
=yes
17276 gl_cv_func_frexpl_no_libm
=no
17278 rm -f core conftest.err conftest.
$ac_objext \
17279 conftest
$ac_exeext conftest.
$ac_ext
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
17283 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
17285 if test $gl_cv_func_frexpl_no_libm = no
; then
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
17287 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
17288 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
17289 $as_echo_n "(cached) " >&6
17294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17295 /* end confdefs.h. */
17301 int e; return frexpl (x, &e) > 0;
17306 if ac_fn_c_try_link
"$LINENO"; then :
17307 gl_cv_func_frexpl_in_libm
=yes
17309 gl_cv_func_frexpl_in_libm
=no
17311 rm -f core conftest.err conftest.
$ac_objext \
17312 conftest
$ac_exeext conftest.
$ac_ext
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
17317 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
17318 if test $gl_cv_func_frexpl_in_libm = yes; then
17322 if test $gl_cv_func_frexpl_no_libm = yes \
17323 ||
test $gl_cv_func_frexpl_in_libm = yes; then
17325 LIBS
="$LIBS $FREXPL_LIBM"
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
17329 $as_echo_n "checking whether frexpl works... " >&6; }
17330 if ${gl_cv_func_frexpl_works+:} false
; then :
17331 $as_echo_n "(cached) " >&6
17334 if test "$cross_compiling" = yes; then :
17337 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
17338 gl_cv_func_frexpl_works
="guessing no";;
17339 *) gl_cv_func_frexpl_works
="guessing yes";;
17343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17348 /* Override the values of <float.h>, like done in float.in.h. */
17349 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
17350 # undef LDBL_MIN_EXP
17351 # define LDBL_MIN_EXP (-16381)
17353 #if defined __i386__ && defined __FreeBSD__
17354 # undef LDBL_MIN_EXP
17355 # define LDBL_MIN_EXP (-16381)
17357 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
17358 # undef LDBL_MIN_EXP
17359 # define LDBL_MIN_EXP DBL_MIN_EXP
17361 #if defined __sgi && (LDBL_MANT_DIG >= 106)
17362 # if defined __GNUC__
17363 # undef LDBL_MIN_EXP
17364 # define LDBL_MIN_EXP DBL_MIN_EXP
17371 long double frexpl (long double, int *);
17375 volatile long double x;
17376 /* Test on finite numbers that fails on AIX 5.1. */
17384 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
17385 function returns an invalid (incorrectly normalized) value: it returns
17386 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
17387 but the correct result is
17388 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
17392 long double y = frexpl (x, &exp);
17393 if (!(exp == 1 && y == 0.505L))
17396 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
17397 LDBL_MAX_EXP = 16384.
17398 In the loop end test, we test x against Infinity, rather than comparing
17399 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
17402 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
17413 /* Test on denormalized numbers. */
17416 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
17421 long double y = frexpl (x, &exp);
17422 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
17423 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
17424 if (exp != LDBL_MIN_EXP - 1)
17428 /* Test on infinite numbers. */
17432 long double y = frexpl (x, &exp);
17439 if ac_fn_c_try_run
"$LINENO"; then :
17440 gl_cv_func_frexpl_works
=yes
17442 gl_cv_func_frexpl_works
=no
17444 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17445 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
17451 $as_echo "$gl_cv_func_frexpl_works" >&6; }
17454 case "$gl_cv_func_frexpl_works" in
17455 *yes) gl_func_frexpl
=yes ;;
17456 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
17461 if test $gl_func_frexpl = yes; then
17463 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
17467 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
17468 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
17470 FREXPL_LIBM
="$FREXP_LIBM"
17477 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
17486 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
17500 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
17508 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17513 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
17527 if test $ac_cv_func_fchdir = no
; then
17531 if test $HAVE_FCHDIR = 0; then
17532 case "$gl_cv_func_open_directory_works" in
17541 if test $REPLACE_FSTAT = 1; then
17550 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
17565 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
17581 if test $ac_cv_func_fstatat = no
; then
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
17585 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
17586 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
17587 $as_echo_n "(cached) " >&6
17589 if test "$cross_compiling" = yes; then :
17591 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
17592 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
17596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h. */
17600 #include <sys/stat.h>
17605 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
17609 if ac_fn_c_try_run
"$LINENO"; then :
17610 gl_cv_func_fstatat_zero_flag
=yes
17612 gl_cv_func_fstatat_zero_flag
=no
17614 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17615 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
17621 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
17623 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
17625 *) REPLACE_FSTATAT
=1
17626 case $gl_cv_func_fstatat_zero_flag in
17629 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
17637 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
17646 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
17660 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
17672 gl_cv_func_getcwd_path_max
=yes
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
17693 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
17694 if ${gl_cv_func_getcwd_path_max+:} false
; then :
17695 $as_echo_n "(cached) " >&6
17697 # Arrange for deletion of the temporary directory this test creates.
17698 ac_clean_files
="$ac_clean_files confdir3"
17699 if test "$cross_compiling" = yes; then :
17700 # Cross-compilation guesses:
17702 aix
*) # On AIX, it has the AIX bug.
17703 gl_cv_func_getcwd_path_max
='no, it has the AIX bug' ;;
17704 gnu
*) # On Hurd, it is 'yes'.
17705 gl_cv_func_getcwd_path_max
=yes ;;
17706 linux
* | kfreebsd
*)
17707 # On older Linux+glibc it's 'no, but it is partly working',
17708 # on newer Linux+glibc it's 'yes'.
17709 # On Linux+musl libc, it's 'no, but it is partly working'.
17710 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
17711 gl_cv_func_getcwd_path_max
='no, but it is partly working' ;;
17712 *) # If we don't know, assume the worst.
17713 gl_cv_func_getcwd_path_max
=no
;;
17717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17721 #include <stdlib.h>
17723 # include <unistd.h>
17725 # include <direct.h>
17727 #include <string.h>
17728 #include <limits.h>
17729 #include <sys/stat.h>
17730 #include <sys/types.h>
17734 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17736 # include <unistd.h>
17738 #include <limits.h>
17739 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17740 # include <sys/param.h>
17742 #if !defined PATH_MAX && defined MAXPATHLEN
17743 # define PATH_MAX MAXPATHLEN
17747 # define PATH_MAX 1024
17749 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17751 # define PATH_MAX 260
17756 # define AT_FDCWD 0
17758 #ifdef ENAMETOOLONG
17759 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
17761 # define is_ENAMETOOLONG(x) 0
17764 /* Use the getcwd function, not any macro. */
17767 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
17771 # define S_IRWXU 0700
17774 /* The length of this name must be 8. */
17775 #define DIR_NAME "confdir3"
17776 #define DIR_NAME_LEN 8
17777 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
17779 /* The length of "../". */
17780 #define DOTDOTSLASH_LEN 3
17782 /* Leftover bytes in the buffer, to work around library or OS bugs. */
17783 #define BUF_SLOP 20
17789 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
17790 at least not on a local file system. And if we were to start worrying
17791 about remote file systems, we'd have to enable the wrapper function
17792 all of the time, just to be safe. That's not worth the cost. */
17794 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
17795 - DIR_NAME_SIZE - BUF_SLOP) \
17797 /* FIXME: Assuming there's a system for which this is true,
17798 this should be done in a compile test. */
17801 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
17802 + DIR_NAME_SIZE + BUF_SLOP];
17803 char *cwd = getcwd (buf, PATH_MAX);
17804 size_t initial_cwd_len;
17807 size_t n_chdirs = 0;
17812 cwd_len = initial_cwd_len = strlen (cwd);
17816 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
17819 cwd_len += DIR_NAME_SIZE;
17820 /* If mkdir or chdir fails, it could be that this system cannot create
17821 any file with an absolute name longer than PATH_MAX, such as cygwin.
17822 If so, leave fail as 0, because the current working directory can't
17823 be too long for getcwd if it can't even be created. For other
17824 errors, be pessimistic and consider that as a failure, too. */
17825 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
17827 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17832 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
17836 c = getcwd (buf, PATH_MAX);
17837 if (!c && errno == ENOENT)
17847 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17853 /* Our replacement needs to be able to stat() long ../../paths,
17854 so generate a path larger than PATH_MAX to check,
17855 avoiding the replacement if we can't stat(). */
17856 c = getcwd (buf, cwd_len + 1);
17857 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
17864 if (dotdot_max <= cwd_len - initial_cwd_len)
17866 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
17868 c = getcwd (buf, cwd_len + 1);
17871 if (! (errno == ERANGE || errno == ENOENT
17872 || is_ENAMETOOLONG (errno)))
17877 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
17885 if (c && strlen (c) != cwd_len)
17893 /* Leaving behind such a deep directory is not polite.
17894 So clean up here, right away, even though the driving
17895 shell script would also clean up. */
17899 /* Try rmdir first, in case the chdir failed. */
17901 for (i = 0; i <= n_chdirs; i++)
17903 if (chdir ("..") < 0)
17905 if (rmdir (DIR_NAME) != 0)
17915 if ac_fn_c_try_run
"$LINENO"; then :
17916 gl_cv_func_getcwd_path_max
=yes
17919 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
17920 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
17921 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
17922 *) gl_cv_func_getcwd_path_max
=no
;;
17925 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17926 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
17932 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
17934 case "$gl_cv_func_getcwd_null" in
17952 for ac_func
in getpagesize
17954 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17955 if test "x$ac_cv_func_getpagesize" = xyes
; then :
17956 cat >>confdefs.h
<<_ACEOF
17957 #define HAVE_GETPAGESIZE 1
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
17964 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
17965 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
17966 $as_echo_n "(cached) " >&6
17968 # Remove any remnants of a previous test.
17969 rm -rf confdir-14B---
17970 # Arrange for deletion of the temporary directory this test creates.
17971 ac_clean_files
="$ac_clean_files confdir-14B---"
17972 if test "$cross_compiling" = yes; then :
17973 gl_cv_func_getcwd_abort_bug
=yes
17975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17979 #include <stdlib.h>
17981 # include <unistd.h>
17982 #else /* on Windows with MSVC */
17983 # include <direct.h>
17985 #include <string.h>
17986 #include <sys/stat.h>
17989 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17991 # include <unistd.h>
17993 #include <limits.h>
17994 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17995 # include <sys/param.h>
17997 #if !defined PATH_MAX && defined MAXPATHLEN
17998 # define PATH_MAX MAXPATHLEN
18002 # define PATH_MAX 1024
18004 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18006 # define PATH_MAX 260
18010 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
18014 # define S_IRWXU 0700
18017 /* FIXME: skip the run-test altogether on systems without getpagesize. */
18018 #if ! HAVE_GETPAGESIZE
18019 # define getpagesize() 0
18022 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
18023 the 16kB pagesize on ia64 linux. Those conditions make the code below
18024 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
18025 #define TARGET_LEN (5 * 1024)
18031 size_t initial_cwd_len;
18034 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
18035 this relatively expensive and invasive test if that's not true. */
18037 int bug_possible = PATH_MAX < getpagesize ();
18039 int bug_possible = 0;
18041 if (! bug_possible)
18044 cwd = getcwd (NULL, 0);
18048 initial_cwd_len = strlen (cwd);
18053 static char const dir_name[] = "confdir-14B---";
18054 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
18055 / sizeof dir_name);
18057 for (d = 0; d < desired_depth; d++)
18059 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
18061 if (! (errno == ERANGE || errno == ENAMETOOLONG
18062 || errno == ENOENT))
18063 fail = 3; /* Unable to construct deep hierarchy. */
18068 /* If libc has the bug in question, this invocation of getcwd
18069 results in a failed assertion. */
18070 cwd = getcwd (NULL, 0);
18072 fail = 4; /* getcwd didn't assert, but it failed for a long name
18073 where the answer could have been learned. */
18076 /* Call rmdir first, in case the above chdir failed. */
18080 if (chdir ("..") < 0)
18093 if ac_fn_c_try_run
"$LINENO"; then :
18094 gl_cv_func_getcwd_abort_bug
=no
18097 if test $ret -ge 128 ||
test $ret = 4; then
18098 gl_cv_func_getcwd_abort_bug
=yes
18100 gl_cv_func_getcwd_abort_bug
=no
18103 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18104 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
18110 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
18111 if test $gl_cv_func_getcwd_abort_bug = yes; then :
18119 case "$gl_cv_func_getcwd_path_max" in
18120 "no"|
"no, it has the AIX bug") ;;
18123 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
18127 case "$gl_cv_func_getcwd_path_max" in
18128 "no, but it is partly working")
18130 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
18133 "yes, but with shorter paths")
18135 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
18140 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
18141 ||
test $gl_cv_func_getcwd_posix_signature != yes \
18142 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
18143 ||
test $gl_abort_bug = yes; then
18147 if test $REPLACE_GETCWD = 1; then
18156 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
18166 cat >>confdefs.h
<<_ACEOF
18167 #define GNULIB_GETCWD 1
18182 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18191 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
18198 if test $REPLACE_GETCWD = 1; then
18207 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
18221 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18242 if test $ac_cv_func_getdtablesize = yes &&
18243 test $ac_cv_have_decl_getdtablesize = yes; then
18244 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
18245 # up to an unchangeable hard limit; all other platforms correctly
18246 # require setrlimit before getdtablesize() can report a larger value.
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
18248 $as_echo_n "checking whether getdtablesize works... " >&6; }
18249 if ${gl_cv_func_getdtablesize_works+:} false
; then :
18250 $as_echo_n "(cached) " >&6
18252 if test "$cross_compiling" = yes; then :
18254 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
18255 gl_cv_func_getdtablesize_works
="guessing no" ;;
18256 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
18259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18260 /* end confdefs.h. */
18262 #include <unistd.h>
18266 int size = getdtablesize();
18267 if (dup2 (0, getdtablesize()) != -1)
18269 if (size != getdtablesize())
18276 if ac_fn_c_try_run
"$LINENO"; then :
18277 gl_cv_func_getdtablesize_works
=yes
18279 gl_cv_func_getdtablesize_works
=no
18281 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18282 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
18288 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
18289 case "$gl_cv_func_getdtablesize_works" in
18291 *) REPLACE_GETDTABLESIZE
=1 ;;
18294 HAVE_GETDTABLESIZE
=0
18297 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
18306 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
18315 GNULIB_GETDTABLESIZE
=1
18321 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
18337 if test $ac_cv_have_decl_getlogin_r = no
; then
18338 HAVE_DECL_GETLOGIN_R
=0
18348 if test $ac_cv_func_getlogin_r = no
; then
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
18354 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
18355 if ${gl_cv_func_getlogin_r_works+:} false
; then :
18356 $as_echo_n "(cached) " >&6
18360 # Guess no on OSF/1.
18361 osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
18362 # Guess yes otherwise.
18363 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
18365 if test "$cross_compiling" = yes; then :
18368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18371 #include <stddef.h>
18372 #include <unistd.h>
18373 #if !HAVE_DECL_GETLOGIN_R
18375 # ifdef __cplusplus
18378 int getlogin_r (char *, size_t);
18386 if (getlogin_r (buf, 0) == 0)
18388 if (getlogin_r (buf, 1) == 0)
18393 if ac_fn_c_try_run
"$LINENO"; then :
18394 gl_cv_func_getlogin_r_works
=yes
18397 16 |
17) gl_cv_func_getlogin_r_works
=no
;;
18401 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18402 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
18408 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
18409 case "$gl_cv_func_getlogin_r_works" in
18411 *) REPLACE_GETLOGIN_R
=1 ;;
18415 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
18424 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
18441 GNULIB_GETLOGIN_R
=1
18447 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
18464 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
18466 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
18472 cat >>confdefs.h
<<_ACEOF
18473 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
18475 if test $ac_have_decl = 1; then :
18479 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
18481 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
18487 cat >>confdefs.h
<<_ACEOF
18488 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
18490 if test $ac_have_decl = 1; then :
18494 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
18496 if test "x$ac_cv_have_decl___argv" = xyes
; then :
18502 cat >>confdefs.h
<<_ACEOF
18503 #define HAVE_DECL___ARGV $ac_have_decl
18505 if test $ac_have_decl = 1; then :
18510 # Incur the cost of this test only if none of the above worked.
18511 if test $ac_found = 0; then
18512 # On OpenBSD 5.1, using the global __progname variable appears to be
18513 # the only way to implement getprogname.
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
18515 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
18516 if ${gl_cv_var___progname+:} false
; then :
18517 $as_echo_n "(cached) " >&6
18520 gl_cv_var___progname
=
18521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18523 extern char *__progname;
18527 return *__progname;
18533 if ac_fn_c_try_link
"$LINENO"; then :
18534 gl_cv_var___progname
=yes
18537 rm -f core conftest.err conftest.
$ac_objext \
18538 conftest
$ac_exeext conftest.
$ac_ext
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
18543 $as_echo "$gl_cv_var___progname" >&6; }
18544 if test "$gl_cv_var___progname" = yes; then
18546 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
18565 gl_gettimeofday_timezone
=void
18566 if test $ac_cv_func_gettimeofday != yes; then
18567 HAVE_GETTIMEOFDAY
=0
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
18573 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
18574 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
18575 $as_echo_n "(cached) " >&6
18577 if test "$cross_compiling" = yes; then :
18578 # When cross-compiling:
18580 # Guess all is fine on glibc systems.
18581 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
18582 # If we don't know, assume the worst.
18583 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
18587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18589 #include <string.h>
18590 #include <sys/time.h>
18592 #include <stdlib.h>
18600 struct tm saved_lt;
18602 lt = localtime (&t);
18604 gettimeofday (&tv, NULL);
18605 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
18611 if ac_fn_c_try_run
"$LINENO"; then :
18612 gl_cv_func_gettimeofday_clobber
=no
18614 gl_cv_func_gettimeofday_clobber
=yes
18616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18617 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
18622 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
18624 case "$gl_cv_func_gettimeofday_clobber" in
18626 REPLACE_GETTIMEOFDAY
=1
18629 REPLACE_LOCALTIME
=1
18632 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
18638 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
18639 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
18640 $as_echo_n "(cached) " >&6
18642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h. */
18644 #include <sys/time.h>
18646 int gettimeofday (struct timeval *restrict, void *restrict);
18651 /* glibc uses struct timezone * rather than the POSIX void *
18652 if _GNU_SOURCE is defined. However, since the only portable
18653 use of gettimeofday uses NULL as the second parameter, and
18654 since the glibc definition is actually more typesafe, it is
18655 not worth wrapping this to get a compliant signature. */
18656 int (*f) (struct timeval *restrict, void *restrict)
18659 return !(x | c.tv_sec | c.tv_usec);
18665 if ac_fn_c_try_compile
"$LINENO"; then :
18666 gl_cv_func_gettimeofday_posix_signature
=yes
18668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18670 #include <sys/time.h>
18671 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
18681 if ac_fn_c_try_compile
"$LINENO"; then :
18682 gl_cv_func_gettimeofday_posix_signature
=almost
18684 gl_cv_func_gettimeofday_posix_signature
=no
18686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
18691 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
18692 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
18693 gl_gettimeofday_timezone
='struct timezone'
18694 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
18695 REPLACE_GETTIMEOFDAY
=1
18697 if test $REPLACE_STRUCT_TIMEVAL = 1; then
18698 REPLACE_GETTIMEOFDAY
=1
18703 cat >>confdefs.h
<<_ACEOF
18704 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
18708 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
18717 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
18720 for ac_header
in sys
/timeb.h
18722 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
18723 if test "x$ac_cv_header_sys_timeb_h" = xyes
; then :
18724 cat >>confdefs.h
<<_ACEOF
18725 #define HAVE_SYS_TIMEB_H 1
18732 for ac_func
in _ftime
18734 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
18735 if test "x$ac_cv_func__ftime" = xyes
; then :
18736 cat >>confdefs.h
<<_ACEOF
18737 #define HAVE__FTIME 1
18750 GNULIB_GETTIMEOFDAY
=1
18756 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
18761 for ac_header
in glob.h
18763 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
18764 if test "x$ac_cv_header_glob_h" = xyes
; then :
18765 cat >>confdefs.h
<<_ACEOF
18766 #define HAVE_GLOB_H 1
18776 if test -z "$GLOB_H"; then
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
18778 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
18779 if ${gl_cv_gnu_glob_interface_version_1+:} false
; then :
18780 $as_echo_n "(cached) " >&6
18782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18784 #include <gnu-versions.h>
18785 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
18787 if ac_fn_c_try_compile
"$LINENO"; then :
18788 gl_cv_gnu_glob_interface_version_1
=yes
18790 gl_cv_gnu_glob_interface_version_1
=no
18792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
18795 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
18797 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
18802 if test -z "$GLOB_H"; then
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
18804 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
18805 if ${gl_cv_glob_lists_symlinks+:} false
; then :
18806 $as_echo_n "(cached) " >&6
18808 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
18809 gl_cv_glob_lists_symlinks
=maybe
18811 # If we can't make a symlink, then we cannot test this issue. Be
18812 # pessimistic about this.
18813 gl_cv_glob_lists_symlinks
=no
18816 if test $gl_cv_glob_lists_symlinks = maybe
; then
18817 if test "$cross_compiling" = yes; then :
18818 gl_cv_glob_lists_symlinks
=no
18820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18823 #include <stddef.h>
18829 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
18834 if ac_fn_c_try_run
"$LINENO"; then :
18835 gl_cv_glob_lists_symlinks
=yes
18837 gl_cv_glob_lists_symlinks
=no
18839 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18840 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
18846 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
18848 if test $gl_cv_glob_lists_symlinks = no
; then
18853 rm -f conf$$
-globtest
18856 if test -n "$GLOB_H"; then
18857 GL_GENERATE_GLOB_H_TRUE
=
18858 GL_GENERATE_GLOB_H_FALSE
='#'
18860 GL_GENERATE_GLOB_H_TRUE
='#'
18861 GL_GENERATE_GLOB_H_FALSE
=
18865 if test -n "$GLOB_H"; then
18874 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
18886 if test $ac_cv_header_sys_cdefs_h = yes; then
18928 if test $ac_cv_header_sys_socket_h != yes; then
18929 for ac_header
in winsock2.h
18931 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18932 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
18933 cat >>confdefs.h
<<_ACEOF
18934 #define HAVE_WINSOCK2_H 1
18942 if test "$ac_cv_header_winsock2_h" = yes; then
18944 UNISTD_H_HAVE_WINSOCK2_H
=1
18945 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18951 if test $HAVE_WINSOCK2_H = 1; then
18952 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
18954 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
18960 cat >>confdefs.h
<<_ACEOF
18961 #define HAVE_DECL_INET_NTOP $ac_have_decl
18964 if test $ac_cv_have_decl_inet_ntop = yes; then
18965 REPLACE_INET_NTOP
=1
18966 INET_NTOP_LIB
="-lws2_32"
18968 HAVE_DECL_INET_NTOP
=0
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18974 $as_echo_n "checking for library containing inet_ntop... " >&6; }
18975 if ${ac_cv_search_inet_ntop+:} false
; then :
18976 $as_echo_n "(cached) " >&6
18978 ac_func_search_save_LIBS
=$LIBS
18979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18980 /* end confdefs.h. */
18982 /* Override any GCC internal prototype to avoid an error.
18983 Use char because int might match the return type of a GCC
18984 builtin and then its argument prototype would still apply. */
18992 return inet_ntop ();
18997 for ac_lib
in '' nsl resolv
; do
18998 if test -z "$ac_lib"; then
18999 ac_res
="none required"
19002 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19004 if ac_fn_c_try_link
"$LINENO"; then :
19005 ac_cv_search_inet_ntop
=$ac_res
19007 rm -f core conftest.err conftest.
$ac_objext \
19009 if ${ac_cv_search_inet_ntop+:} false
; then :
19013 if ${ac_cv_search_inet_ntop+:} false
; then :
19016 ac_cv_search_inet_ntop
=no
19018 rm conftest.
$ac_ext
19019 LIBS
=$ac_func_search_save_LIBS
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
19022 $as_echo "$ac_cv_search_inet_ntop" >&6; }
19023 ac_res
=$ac_cv_search_inet_ntop
19024 if test "$ac_res" != no
; then :
19025 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19028 for ac_func
in inet_ntop
19030 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19031 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
19032 cat >>confdefs.h
<<_ACEOF
19033 #define HAVE_INET_NTOP 1
19039 if test $ac_cv_func_inet_ntop = no
; then
19047 if test "$ac_cv_search_inet_ntop" != "no" \
19048 && test "$ac_cv_search_inet_ntop" != "none required"; then
19049 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
19059 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
19061 # include <netdb.h>
19065 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
19071 cat >>confdefs.h
<<_ACEOF
19072 #define HAVE_DECL_INET_NTOP $ac_have_decl
19075 if test $ac_cv_have_decl_inet_ntop = no
; then
19076 HAVE_DECL_INET_NTOP
=0
19081 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
19090 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
19112 if test -n "$STDINT_H"; then
19113 PRIPTR_PREFIX
='"l"'
19115 for glpfx
in '' l ll I64
; do
19117 '') gltype1
='int';;
19118 l
) gltype1
='long int';;
19119 ll
) gltype1
='long long int';;
19120 I64
) gltype1
='__int64';;
19122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h. */
19124 #include <stdint.h>
19125 extern intptr_t foo;
19126 extern $gltype1 foo;
19135 if ac_fn_c_try_compile
"$LINENO"; then :
19136 PRIPTR_PREFIX
='"'$glpfx'"'
19138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19139 test -n "$PRIPTR_PREFIX" && break
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
19146 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
19147 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
19148 $as_echo_n "(cached) " >&6
19150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h. */
19152 /* Work also in C++ mode. */
19153 #define __STDC_LIMIT_MACROS 1
19155 /* Work if build is not clean. */
19156 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19158 #include <limits.h>
19160 #include <stdint.h>
19163 #if defined INT32_MAX && defined INTMAX_MAX
19164 #define CONDITION (INT32_MAX < INTMAX_MAX)
19165 #elif HAVE_LONG_LONG_INT
19166 #define CONDITION (sizeof (int) < sizeof (long long int))
19168 #define CONDITION 0
19170 int test[CONDITION ? 1 : -1];
19179 if ac_fn_c_try_compile
"$LINENO"; then :
19180 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
19182 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
19184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
19187 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
19188 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
19189 INT32_MAX_LT_INTMAX_MAX
=1;
19191 INT32_MAX_LT_INTMAX_MAX
=0;
19195 if test $APPLE_UNIVERSAL_BUILD = 0; then
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
19198 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
19199 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
19200 $as_echo_n "(cached) " >&6
19202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19203 /* end confdefs.h. */
19204 /* Work also in C++ mode. */
19205 #define __STDC_LIMIT_MACROS 1
19207 /* Work if build is not clean. */
19208 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19210 #include <limits.h>
19212 #include <stdint.h>
19215 #if defined INT64_MAX
19216 #define CONDITION (INT64_MAX == LONG_MAX)
19217 #elif HAVE_LONG_LONG_INT
19218 #define CONDITION (sizeof (long long int) == sizeof (long int))
19220 #define CONDITION 0
19222 int test[CONDITION ? 1 : -1];
19231 if ac_fn_c_try_compile
"$LINENO"; then :
19232 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
19234 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
19236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
19239 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
19240 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
19241 INT64_MAX_EQ_LONG_MAX
=1;
19243 INT64_MAX_EQ_LONG_MAX
=0;
19248 INT64_MAX_EQ_LONG_MAX
=-1
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
19252 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
19253 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
19254 $as_echo_n "(cached) " >&6
19256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19257 /* end confdefs.h. */
19258 /* Work also in C++ mode. */
19259 #define __STDC_LIMIT_MACROS 1
19261 /* Work if build is not clean. */
19262 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19264 #include <limits.h>
19266 #include <stdint.h>
19269 #if defined UINT32_MAX && defined UINTMAX_MAX
19270 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
19271 #elif HAVE_LONG_LONG_INT
19272 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
19274 #define CONDITION 0
19276 int test[CONDITION ? 1 : -1];
19285 if ac_fn_c_try_compile
"$LINENO"; then :
19286 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
19288 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
19290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
19293 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
19294 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
19295 UINT32_MAX_LT_UINTMAX_MAX
=1;
19297 UINT32_MAX_LT_UINTMAX_MAX
=0;
19301 if test $APPLE_UNIVERSAL_BUILD = 0; then
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
19304 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
19305 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
19306 $as_echo_n "(cached) " >&6
19308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h. */
19310 /* Work also in C++ mode. */
19311 #define __STDC_LIMIT_MACROS 1
19313 /* Work if build is not clean. */
19314 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19316 #include <limits.h>
19318 #include <stdint.h>
19321 #if defined UINT64_MAX
19322 #define CONDITION (UINT64_MAX == ULONG_MAX)
19323 #elif HAVE_LONG_LONG_INT
19324 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
19326 #define CONDITION 0
19328 int test[CONDITION ? 1 : -1];
19337 if ac_fn_c_try_compile
"$LINENO"; then :
19338 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
19340 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
19342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
19345 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
19346 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
19347 UINT64_MAX_EQ_ULONG_MAX
=1;
19349 UINT64_MAX_EQ_ULONG_MAX
=0;
19354 UINT64_MAX_EQ_ULONG_MAX
=-1
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
19362 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
19363 if ${gl_cv_func_isnand_no_libm+:} false
; then :
19364 $as_echo_n "(cached) " >&6
19367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19372 # define isnand(x) __builtin_isnan ((double)(x))
19375 # define isnand(x) isnan ((double)(x))
19386 if ac_fn_c_try_link
"$LINENO"; then :
19387 gl_cv_func_isnand_no_libm
=yes
19389 gl_cv_func_isnand_no_libm
=no
19391 rm -f core conftest.err conftest.
$ac_objext \
19392 conftest
$ac_exeext conftest.
$ac_ext
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
19396 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
19398 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
19399 if test $gl_cv_func_isnand_no_libm = yes; then
19401 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
19405 if test $gl_func_isnand_no_libm != yes; then
19414 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
19423 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
19424 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
19425 $as_echo_n "(cached) " >&6
19428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h. */
19433 # define isnanl(x) __builtin_isnanl ((long double)(x))
19434 #elif defined isnan
19436 # define isnanl(x) isnan ((long double)(x))
19447 if ac_fn_c_try_link
"$LINENO"; then :
19448 gl_cv_func_isnanl_no_libm
=yes
19450 gl_cv_func_isnanl_no_libm
=no
19452 rm -f core conftest.err conftest.
$ac_objext \
19453 conftest
$ac_exeext conftest.
$ac_ext
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
19457 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
19459 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
19460 if test $gl_func_isnanl_no_libm = yes; then
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
19466 $as_echo_n "checking whether isnanl works... " >&6; }
19467 if ${gl_cv_func_isnanl_works+:} false
; then :
19468 $as_echo_n "(cached) " >&6
19471 if test "$cross_compiling" = yes; then :
19472 gl_cv_func_isnanl_works
="guessing yes"
19474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19478 #include <limits.h>
19482 # define isnanl(x) __builtin_isnanl ((long double)(x))
19483 #elif defined isnan
19485 # define isnanl(x) isnan ((long double)(x))
19488 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19489 typedef union { unsigned int word[NWORDS]; long double value; }
19490 memory_long_double;
19491 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
19492 runtime type conversion. */
19494 static long double NaNl ()
19497 return zero / zero;
19500 # define NaNl() (0.0L / 0.0L)
19506 if (!isnanl (NaNl ()))
19510 memory_long_double m;
19513 /* The isnanl function should be immune against changes in the sign bit and
19514 in the mantissa bits. The xor operation twiddles a bit that can only be
19515 a sign bit or a mantissa bit (since the exponent never extends to
19518 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
19519 for (i = 0; i < NWORDS; i++)
19521 if (!isnanl (m.value))
19525 #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
19526 /* Representation of an 80-bit 'long double' as an initializer for a sequence
19527 of 'unsigned int' words. */
19528 # ifdef WORDS_BIGENDIAN
19529 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19530 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
19531 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
19532 (unsigned int) (mantlo) << 16 \
19535 # define LDBL80_WORDS(exponent,manthi,mantlo) \
19536 { mantlo, manthi, exponent }
19539 static memory_long_double x =
19540 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
19541 if (!isnanl (x.value))
19545 /* Signalling NaN. */
19546 static memory_long_double x =
19547 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
19548 if (!isnanl (x.value))
19551 /* isnanl should return something even for noncanonical values. */
19552 { /* Pseudo-NaN. */
19553 static memory_long_double x =
19554 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
19555 if (isnanl (x.value) && !isnanl (x.value))
19558 { /* Pseudo-Infinity. */
19559 static memory_long_double x =
19560 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
19561 if (isnanl (x.value) && !isnanl (x.value))
19564 { /* Pseudo-Zero. */
19565 static memory_long_double x =
19566 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
19567 if (isnanl (x.value) && !isnanl (x.value))
19570 { /* Unnormalized number. */
19571 static memory_long_double x =
19572 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
19573 if (isnanl (x.value) && !isnanl (x.value))
19576 { /* Pseudo-Denormal. */
19577 static memory_long_double x =
19578 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
19579 if (isnanl (x.value) && !isnanl (x.value))
19587 if ac_fn_c_try_run
"$LINENO"; then :
19588 gl_cv_func_isnanl_works
=yes
19590 gl_cv_func_isnanl_works
=no
19592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
19599 $as_echo "$gl_cv_func_isnanl_works" >&6; }
19601 case "$gl_cv_func_isnanl_works" in
19603 *) gl_func_isnanl_no_libm
=no
;;
19606 if test $gl_func_isnanl_no_libm = yes; then
19608 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
19612 if test $gl_func_isnanl_no_libm != yes; then
19621 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
19627 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
19628 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
19629 $as_echo_n "(cached) " >&6
19632 if test "$cross_compiling" = yes; then :
19634 gl_cv_cc_long_double_expbit0
="unknown"
19637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19641 #include <stddef.h>
19643 #include <string.h>
19645 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19646 typedef union { long double value; unsigned int word[NWORDS]; }
19647 memory_long_double;
19648 static unsigned int ored_words[NWORDS];
19649 static unsigned int anded_words[NWORDS];
19650 static void add_to_ored_words (long double x)
19652 memory_long_double m;
19654 /* Clear it first, in case
19655 sizeof (long double) < sizeof (memory_long_double). */
19656 memset (&m, 0, sizeof (memory_long_double));
19658 for (i = 0; i < NWORDS; i++)
19660 ored_words[i] |= m.word[i];
19661 anded_words[i] &= m.word[i];
19667 FILE *fp = fopen ("conftest.out", "w");
19670 for (j = 0; j < NWORDS; j++)
19671 anded_words[j] = ~ (unsigned int) 0;
19672 add_to_ored_words (0.25L);
19673 add_to_ored_words (0.5L);
19674 add_to_ored_words (1.0L);
19675 add_to_ored_words (2.0L);
19676 add_to_ored_words (4.0L);
19677 /* Remove bits that are common (e.g. if representation of the first mantissa
19678 bit is explicit). */
19679 for (j = 0; j < NWORDS; j++)
19680 ored_words[j] &= ~anded_words[j];
19681 /* Now find the nonzero word. */
19682 for (j = 0; j < NWORDS; j++)
19683 if (ored_words[j] != 0)
19688 for (i = j + 1; i < NWORDS; i++)
19689 if (ored_words[i] != 0)
19691 fprintf (fp, "unknown");
19692 return (fclose (fp) != 0);
19695 if ((ored_words[j] >> i) & 1)
19697 fprintf (fp, "word %d bit %d", (int) j, (int) i);
19698 return (fclose (fp) != 0);
19701 fprintf (fp, "unknown");
19702 return (fclose (fp) != 0);
19706 if ac_fn_c_try_run
"$LINENO"; then :
19707 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
19709 gl_cv_cc_long_double_expbit0
="unknown"
19711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
19719 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
19720 case "$gl_cv_cc_long_double_expbit0" in
19722 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
19723 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
19725 cat >>confdefs.h
<<_ACEOF
19726 #define LDBL_EXPBIT0_WORD $word
19730 cat >>confdefs.h
<<_ACEOF
19731 #define LDBL_EXPBIT0_BIT $bit
19756 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
19767 if test $ac_cv_func_lstat = yes; then
19769 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19778 if test $REPLACE_LSTAT = 1; then
19787 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
19802 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
19809 if test $gl_cv_func_malloc_posix = yes; then
19811 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
19817 if test $REPLACE_MALLOC = 1; then
19826 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
19834 GNULIB_MALLOC_POSIX
=1
19840 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
19865 if test $gl_cv_have_include_next = yes; then
19866 gl_cv_next_math_h
='<'math.h
'>'
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
19869 $as_echo_n "checking absolute name of <math.h>... " >&6; }
19870 if ${gl_cv_next_math_h+:} false
; then :
19871 $as_echo_n "(cached) " >&6
19874 if test $ac_cv_header_math_h = yes; then
19879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19880 /* end confdefs.h. */
19884 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19885 *) gl_absname_cpp
="$ac_cpp" ;;
19890 gl_dirsep_regex
='[/\\]'
19893 gl_dirsep_regex
='\/'
19896 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19897 gl_header_literal_regex
=`echo 'math.h' \
19898 | sed -e "$gl_make_literal_regex_sed"`
19899 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19900 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19906 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19907 sed -n "$gl_absolute_header_sed"`
19909 gl_header
=$gl_cv_absolute_math_h
19910 gl_cv_next_math_h
='"'$gl_header'"'
19912 gl_cv_next_math_h
='<'math.h
'>'
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
19918 $as_echo "$gl_cv_next_math_h" >&6; }
19920 NEXT_MATH_H
=$gl_cv_next_math_h
19922 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19923 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19924 gl_next_as_first_directive
='<'math.h
'>'
19926 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19927 gl_next_as_first_directive
=$gl_cv_next_math_h
19929 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
19936 $as_echo_n "checking whether NAN macro works... " >&6; }
19937 if ${gl_cv_header_math_nan_works+:} false
; then :
19938 $as_echo_n "(cached) " >&6
19940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19941 /* end confdefs.h. */
19946 /* Solaris 10 has a broken definition of NAN. Other platforms
19947 fail to provide NAN, or provide it only in C99 mode; this
19948 test only needs to fail when NAN is provided but wrong. */
19958 if ac_fn_c_try_compile
"$LINENO"; then :
19959 gl_cv_header_math_nan_works
=yes
19961 gl_cv_header_math_nan_works
=no
19963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
19966 $as_echo "$gl_cv_header_math_nan_works" >&6; }
19967 if test $gl_cv_header_math_nan_works = no
; then
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
19971 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
19972 if ${gl_cv_header_math_huge_val_works+:} false
; then :
19973 $as_echo_n "(cached) " >&6
19975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h. */
19981 /* Solaris 10 has a broken definition of HUGE_VAL. */
19982 double d = HUGE_VAL;
19988 if ac_fn_c_try_compile
"$LINENO"; then :
19989 gl_cv_header_math_huge_val_works
=yes
19991 gl_cv_header_math_huge_val_works
=no
19993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
19996 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
19997 if test $gl_cv_header_math_huge_val_works = no
; then
20002 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
20003 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20005 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20006 if eval \
${$as_gl_Symbol+:} false
; then :
20007 $as_echo_n "(cached) " >&6
20009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h. */
20021 if ac_fn_c_try_compile
"$LINENO"; then :
20022 eval "$as_gl_Symbol=yes"
20024 eval "$as_gl_Symbol=no"
20026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20028 eval ac_res
=\$
$as_gl_Symbol
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20030 $as_echo "$ac_res" >&6; }
20031 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
20032 cat >>confdefs.h
<<_ACEOF
20033 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
20036 eval ac_cv_have_decl_
$gl_func=yes
20063 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20068 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20069 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20070 $as_echo_n "(cached) " >&6
20074 # Guess no on AIX and OSF/1.
20075 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20076 # Guess yes otherwise.
20077 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20079 if test $LOCALE_JA != none
; then
20080 if test "$cross_compiling" = yes; then :
20083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20084 /* end confdefs.h. */
20086 #include <locale.h>
20087 #include <string.h>
20088 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20090 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20091 included before <wchar.h>. */
20092 #include <stddef.h>
20098 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20100 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20104 memset (&state, '\0', sizeof (mbstate_t));
20105 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20106 if (mbsinit (&state))
20112 if ac_fn_c_try_run
"$LINENO"; then :
20113 gl_cv_func_mbrtowc_incomplete_state
=yes
20115 gl_cv_func_mbrtowc_incomplete_state
=no
20117 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20118 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20125 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20131 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20132 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
20133 $as_echo_n "(cached) " >&6
20137 # Guess no on Solaris 8.
20138 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
20139 # Guess yes otherwise.
20140 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
20142 if test $LOCALE_ZH_CN != none
; then
20143 if test "$cross_compiling" = yes; then :
20146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20147 /* end confdefs.h. */
20149 #include <locale.h>
20150 #include <stdlib.h>
20151 #include <string.h>
20152 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20154 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20155 included before <wchar.h>. */
20156 #include <stddef.h>
20162 /* This fails on Solaris 8:
20163 mbrtowc returns 2, and sets wc to 0x00F0.
20164 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20165 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20167 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20171 memset (&state, '\0', sizeof (mbstate_t));
20172 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20173 && mbtowc (&wc, input + 3, 6) == 4)
20179 if ac_fn_c_try_run
"$LINENO"; then :
20180 gl_cv_func_mbrtowc_sanitycheck
=yes
20182 gl_cv_func_mbrtowc_sanitycheck
=no
20184 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20185 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20192 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20194 REPLACE_MBSTATE_T
=0
20195 case "$gl_cv_func_mbrtowc_incomplete_state" in
20197 *) REPLACE_MBSTATE_T
=1 ;;
20199 case "$gl_cv_func_mbrtowc_sanitycheck" in
20201 *) REPLACE_MBSTATE_T
=1 ;;
20204 REPLACE_MBSTATE_T
=1
20215 if test $ac_cv_func_mbrtowc = no
; then
20217 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
20218 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20220 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20221 included before <wchar.h>. */
20222 #include <stddef.h>
20228 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
20234 cat >>confdefs.h
<<_ACEOF
20235 #define HAVE_DECL_MBRTOWC $ac_have_decl
20238 if test $ac_cv_have_decl_mbrtowc = yes; then
20242 if test $REPLACE_MBSTATE_T = 1; then
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
20249 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
20250 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
20251 $as_echo_n "(cached) " >&6
20255 # Guess no on Solaris.
20256 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
20257 # Guess yes otherwise.
20258 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
20260 if test $LOCALE_FR_UTF8 != none
; then
20261 if test "$cross_compiling" = yes; then :
20264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20267 #include <locale.h>
20268 #include <stdlib.h>
20269 #include <string.h>
20270 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20272 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20273 included before <wchar.h>. */
20274 #include <stddef.h>
20282 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20284 char input[] = "\303\237er";
20289 memset (&state, '\0', sizeof (mbstate_t));
20290 wc = (wchar_t) 0xBADFACE;
20291 ret = mbrtowc (&wc, input, 5, &state);
20294 if (!mbsinit (&state))
20297 memset (&state, '\0', sizeof (mbstate_t));
20298 ret = mbrtowc (NULL, input, 5, &state);
20299 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
20301 if (!mbsinit (&state))
20307 if ac_fn_c_try_run
"$LINENO"; then :
20308 gl_cv_func_mbrtowc_null_arg1
=yes
20310 gl_cv_func_mbrtowc_null_arg1
=no
20312 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20313 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
20320 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
20326 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
20327 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
20328 $as_echo_n "(cached) " >&6
20332 # Guess no on OSF/1.
20333 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
20334 # Guess yes otherwise.
20335 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
20337 if test $LOCALE_FR_UTF8 != none
; then
20338 if test "$cross_compiling" = yes; then :
20341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20342 /* end confdefs.h. */
20344 #include <locale.h>
20345 #include <string.h>
20346 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20348 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20349 included before <wchar.h>. */
20350 #include <stddef.h>
20356 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20362 memset (&state, '\0', sizeof (mbstate_t));
20363 wc = (wchar_t) 0xBADFACE;
20364 mbrtowc (&wc, NULL, 5, &state);
20365 /* Check that wc was not modified. */
20366 if (wc != (wchar_t) 0xBADFACE)
20372 if ac_fn_c_try_run
"$LINENO"; then :
20373 gl_cv_func_mbrtowc_null_arg2
=yes
20375 gl_cv_func_mbrtowc_null_arg2
=no
20377 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20378 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
20385 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
20393 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
20394 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
20395 $as_echo_n "(cached) " >&6
20399 # Guess no on HP-UX, Solaris, native Windows.
20400 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
20401 # Guess yes otherwise.
20402 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
20404 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
20405 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
20406 if test "$cross_compiling" = yes; then :
20409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20410 /* end confdefs.h. */
20412 #include <locale.h>
20413 #include <string.h>
20414 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20416 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20417 included before <wchar.h>. */
20418 #include <stddef.h>
20425 int found_some_locale = 0;
20426 /* This fails on Solaris. */
20427 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20429 char input[] = "B\303\274\303\237er"; /* "Büßer" */
20433 memset (&state, '\0', sizeof (mbstate_t));
20434 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20437 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
20440 found_some_locale = 1;
20442 /* This fails on HP-UX 11.11. */
20443 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20445 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20449 memset (&state, '\0', sizeof (mbstate_t));
20450 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20453 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
20456 found_some_locale = 1;
20458 /* This fails on native Windows. */
20459 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
20461 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
20465 memset (&state, '\0', sizeof (mbstate_t));
20466 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20469 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20472 found_some_locale = 1;
20474 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
20476 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
20480 memset (&state, '\0', sizeof (mbstate_t));
20481 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20484 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20487 found_some_locale = 1;
20489 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
20491 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
20495 memset (&state, '\0', sizeof (mbstate_t));
20496 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
20499 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
20502 found_some_locale = 1;
20504 return (found_some_locale ? result : 77);
20507 if ac_fn_c_try_run
"$LINENO"; then :
20508 gl_cv_func_mbrtowc_retval
=yes
20510 if test $?
!= 77; then
20511 gl_cv_func_mbrtowc_retval
=no
20515 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20516 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
20523 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
20529 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
20530 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
20531 $as_echo_n "(cached) " >&6
20535 # Guess no on Solaris 8 and 9.
20536 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
20537 # Guess yes otherwise.
20538 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
20540 if test $LOCALE_ZH_CN != none
; then
20541 if test "$cross_compiling" = yes; then :
20544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20545 /* end confdefs.h. */
20547 #include <locale.h>
20548 #include <string.h>
20549 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20551 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20552 included before <wchar.h>. */
20553 #include <stddef.h>
20559 /* This fails on Solaris 8 and 9. */
20560 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20565 memset (&state, '\0', sizeof (mbstate_t));
20566 if (mbrtowc (&wc, "", 1, &state) != 0)
20572 if ac_fn_c_try_run
"$LINENO"; then :
20573 gl_cv_func_mbrtowc_nul_retval
=yes
20575 gl_cv_func_mbrtowc_nul_retval
=no
20577 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20578 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
20585 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
20590 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
20591 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
20592 $as_echo_n "(cached) " >&6
20596 # Guess no on AIX and glibc systems.
20598 gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
20599 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
20601 if test "$cross_compiling" = yes; then :
20604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h. */
20609 static mbstate_t mbs;
20613 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
20616 if ac_fn_c_try_run
"$LINENO"; then :
20617 gl_cv_func_mbrtowc_empty_input
=yes
20619 gl_cv_func_mbrtowc_empty_input
=no
20621 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20622 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
20628 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
20631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
20632 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
20633 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
20634 $as_echo_n "(cached) " >&6
20637 gl_cv_C_locale_sans_EILSEQ
="guessing no"
20639 if test "$cross_compiling" = yes; then :
20642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20643 /* end confdefs.h. */
20644 #include <limits.h>
20645 #include <locale.h>
20653 char *locale = setlocale (LC_ALL, "C");
20656 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
20660 mbstate_t mbs = { 0, };
20661 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
20671 if ac_fn_c_try_run
"$LINENO"; then :
20672 gl_cv_C_locale_sans_EILSEQ
=yes
20674 gl_cv_C_locale_sans_EILSEQ
=no
20676 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20677 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
20682 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
20684 case "$gl_cv_func_mbrtowc_null_arg1" in
20687 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
20692 case "$gl_cv_func_mbrtowc_null_arg2" in
20695 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
20700 case "$gl_cv_func_mbrtowc_retval" in
20703 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
20708 case "$gl_cv_func_mbrtowc_nul_retval" in
20711 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
20716 case "$gl_cv_func_mbrtowc_empty_input" in
20719 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
20724 case $gl_cv_C_locale_sans_EILSEQ in
20727 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
20735 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
20744 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
20761 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
20788 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20793 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20794 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20795 $as_echo_n "(cached) " >&6
20799 # Guess no on AIX and OSF/1.
20800 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20801 # Guess yes otherwise.
20802 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20804 if test $LOCALE_JA != none
; then
20805 if test "$cross_compiling" = yes; then :
20808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20809 /* end confdefs.h. */
20811 #include <locale.h>
20812 #include <string.h>
20813 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20815 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20816 included before <wchar.h>. */
20817 #include <stddef.h>
20823 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20825 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20829 memset (&state, '\0', sizeof (mbstate_t));
20830 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20831 if (mbsinit (&state))
20837 if ac_fn_c_try_run
"$LINENO"; then :
20838 gl_cv_func_mbrtowc_incomplete_state
=yes
20840 gl_cv_func_mbrtowc_incomplete_state
=no
20842 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20843 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20850 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20856 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20857 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
20858 $as_echo_n "(cached) " >&6
20862 # Guess no on Solaris 8.
20863 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
20864 # Guess yes otherwise.
20865 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
20867 if test $LOCALE_ZH_CN != none
; then
20868 if test "$cross_compiling" = yes; then :
20871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20872 /* end confdefs.h. */
20874 #include <locale.h>
20875 #include <stdlib.h>
20876 #include <string.h>
20877 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20879 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20880 included before <wchar.h>. */
20881 #include <stddef.h>
20887 /* This fails on Solaris 8:
20888 mbrtowc returns 2, and sets wc to 0x00F0.
20889 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20890 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20892 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20896 memset (&state, '\0', sizeof (mbstate_t));
20897 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20898 && mbtowc (&wc, input + 3, 6) == 4)
20904 if ac_fn_c_try_run
"$LINENO"; then :
20905 gl_cv_func_mbrtowc_sanitycheck
=yes
20907 gl_cv_func_mbrtowc_sanitycheck
=no
20909 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20910 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20917 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20919 REPLACE_MBSTATE_T
=0
20920 case "$gl_cv_func_mbrtowc_incomplete_state" in
20922 *) REPLACE_MBSTATE_T
=1 ;;
20924 case "$gl_cv_func_mbrtowc_sanitycheck" in
20926 *) REPLACE_MBSTATE_T
=1 ;;
20929 REPLACE_MBSTATE_T
=1
20940 if test $ac_cv_func_mbsinit = no
; then
20942 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
20943 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20946 included before <wchar.h>. */
20947 #include <stddef.h>
20953 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
20959 cat >>confdefs.h
<<_ACEOF
20960 #define HAVE_DECL_MBSINIT $ac_have_decl
20963 if test $ac_cv_have_decl_mbsinit = yes; then
20967 if test $REPLACE_MBSTATE_T = 1; then
20971 mingw
*) REPLACE_MBSINIT
=1 ;;
20976 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
20985 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
21002 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
21028 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21033 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21034 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
21035 $as_echo_n "(cached) " >&6
21039 # Guess no on AIX and OSF/1.
21040 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
21041 # Guess yes otherwise.
21042 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
21044 if test $LOCALE_JA != none
; then
21045 if test "$cross_compiling" = yes; then :
21048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21049 /* end confdefs.h. */
21051 #include <locale.h>
21052 #include <string.h>
21053 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21055 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21056 included before <wchar.h>. */
21057 #include <stddef.h>
21063 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21065 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21069 memset (&state, '\0', sizeof (mbstate_t));
21070 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21071 if (mbsinit (&state))
21077 if ac_fn_c_try_run
"$LINENO"; then :
21078 gl_cv_func_mbrtowc_incomplete_state
=yes
21080 gl_cv_func_mbrtowc_incomplete_state
=no
21082 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21083 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21090 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21096 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21097 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
21098 $as_echo_n "(cached) " >&6
21102 # Guess no on Solaris 8.
21103 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
21104 # Guess yes otherwise.
21105 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
21107 if test $LOCALE_ZH_CN != none
; then
21108 if test "$cross_compiling" = yes; then :
21111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21112 /* end confdefs.h. */
21114 #include <locale.h>
21115 #include <stdlib.h>
21116 #include <string.h>
21117 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21119 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21120 included before <wchar.h>. */
21121 #include <stddef.h>
21127 /* This fails on Solaris 8:
21128 mbrtowc returns 2, and sets wc to 0x00F0.
21129 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21130 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21132 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21136 memset (&state, '\0', sizeof (mbstate_t));
21137 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21138 && mbtowc (&wc, input + 3, 6) == 4)
21144 if ac_fn_c_try_run
"$LINENO"; then :
21145 gl_cv_func_mbrtowc_sanitycheck
=yes
21147 gl_cv_func_mbrtowc_sanitycheck
=no
21149 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21150 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21157 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21159 REPLACE_MBSTATE_T
=0
21160 case "$gl_cv_func_mbrtowc_incomplete_state" in
21162 *) REPLACE_MBSTATE_T
=1 ;;
21164 case "$gl_cv_func_mbrtowc_sanitycheck" in
21166 *) REPLACE_MBSTATE_T
=1 ;;
21169 REPLACE_MBSTATE_T
=1
21180 if test $ac_cv_func_mbsrtowcs = no
; then
21182 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
21183 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21185 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21186 included before <wchar.h>. */
21187 #include <stddef.h>
21193 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
21199 cat >>confdefs.h
<<_ACEOF
21200 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
21203 if test $ac_cv_have_decl_mbsrtowcs = yes; then
21204 REPLACE_MBSRTOWCS
=1
21207 if test $REPLACE_MBSTATE_T = 1; then
21208 REPLACE_MBSRTOWCS
=1
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
21217 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
21218 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
21219 $as_echo_n "(cached) " >&6
21223 # Guess no on HP-UX, Solaris, mingw.
21224 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
21225 # Guess yes otherwise.
21226 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
21228 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
21229 if test "$cross_compiling" = yes; then :
21232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21233 /* end confdefs.h. */
21235 #include <locale.h>
21236 #include <string.h>
21237 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21239 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21240 included before <wchar.h>. */
21241 #include <stddef.h>
21248 /* Test whether the function supports a NULL destination argument.
21249 This fails on native Windows. */
21250 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
21252 const char input[] = "\337er";
21253 const char *src = input;
21256 memset (&state, '\0', sizeof (mbstate_t));
21257 if (mbsrtowcs (NULL, &src, 1, &state) != 3
21261 /* Test whether the function works when started with a conversion state
21262 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
21263 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21265 const char input[] = "B\303\274\303\237er";
21268 memset (&state, '\0', sizeof (mbstate_t));
21269 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21270 if (!mbsinit (&state))
21272 const char *src = input + 2;
21273 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21277 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21279 const char input[] = "<\306\374\313\334\270\354>";
21282 memset (&state, '\0', sizeof (mbstate_t));
21283 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
21284 if (!mbsinit (&state))
21286 const char *src = input + 4;
21287 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
21291 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21293 const char input[] = "B\250\271\201\060\211\070er";
21296 memset (&state, '\0', sizeof (mbstate_t));
21297 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
21298 if (!mbsinit (&state))
21300 const char *src = input + 2;
21301 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
21308 if ac_fn_c_try_run
"$LINENO"; then :
21309 gl_cv_func_mbsrtowcs_works
=yes
21311 gl_cv_func_mbsrtowcs_works
=no
21313 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21314 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
21321 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
21323 case "$gl_cv_func_mbsrtowcs_works" in
21325 *) REPLACE_MBSRTOWCS
=1 ;;
21330 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
21339 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
21349 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
21366 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
21371 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
21380 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
21383 for ac_header
in bp-sym.h
21385 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21386 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
21387 cat >>confdefs.h
<<_ACEOF
21388 #define HAVE_BP_SYM_H 1
21408 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21414 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
21416 $as_echo_n "checking whether memmem works in linear time... " >&6; }
21417 if ${gl_cv_func_memmem_works_fast+:} false
; then :
21418 $as_echo_n "(cached) " >&6
21420 if test "$cross_compiling" = yes; then :
21421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21422 /* end confdefs.h. */
21424 #include <features.h>
21425 #ifdef __GNU_LIBRARY__
21426 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
21427 && !defined __UCLIBC__
21432 #include <cygwin/version.h>
21433 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
21439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21440 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21441 gl_cv_func_memmem_works_fast
="guessing yes"
21443 gl_cv_func_memmem_works_fast
="guessing no"
21449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21450 /* end confdefs.h. */
21452 #include <signal.h> /* for signal */
21453 #include <string.h> /* for memmem */
21454 #include <stdlib.h> /* for malloc */
21455 #include <unistd.h> /* for alarm */
21456 static void quit (int sig) { _exit (sig + 128); }
21463 size_t m = 1000000;
21464 char *haystack = (char *) malloc (2 * m + 1);
21465 char *needle = (char *) malloc (m + 1);
21466 /* Failure to compile this test due to missing alarm is okay,
21467 since all such platforms (mingw) also lack memmem. */
21468 signal (SIGALRM, quit);
21470 /* Check for quadratic performance. */
21471 if (haystack && needle)
21473 memset (haystack, 'A', 2 * m);
21474 haystack[2 * m] = 'B';
21475 memset (needle, 'A', m);
21477 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
21486 if ac_fn_c_try_run
"$LINENO"; then :
21487 gl_cv_func_memmem_works_fast
=yes
21489 gl_cv_func_memmem_works_fast
=no
21491 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21492 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
21498 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
21499 case "$gl_cv_func_memmem_works_fast" in
21507 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
21516 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
21523 for ac_func
in memmem
21525 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
21526 if test "x$ac_cv_func_memmem" = xyes
; then :
21527 cat >>confdefs.h
<<_ACEOF
21528 #define HAVE_MEMMEM 1
21534 if test $ac_cv_func_memmem = yes; then
21546 if test $ac_cv_have_decl_memmem = no
; then
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
21550 $as_echo_n "checking whether memmem works... " >&6; }
21551 if ${gl_cv_func_memmem_works_always+:} false
; then :
21552 $as_echo_n "(cached) " >&6
21554 if test "$cross_compiling" = yes; then :
21555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21556 /* end confdefs.h. */
21558 #ifdef __GNU_LIBRARY__
21559 #include <features.h>
21560 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
21561 || __GLIBC_MINOR__ > 12)) \
21562 || (__GLIBC__ > 2)) \
21563 || defined __UCLIBC__
21566 #elif defined __CYGWIN__
21567 #include <cygwin/version.h>
21568 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
21576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21577 $EGREP "Lucky user" >/dev
/null
2>&1; then :
21578 gl_cv_func_memmem_works_always
="guessing yes"
21580 gl_cv_func_memmem_works_always
="guessing no"
21586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21587 /* end confdefs.h. */
21589 #include <string.h> /* for memmem */
21590 #define P "_EF_BF_BD"
21591 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
21592 #define NEEDLE P P P P P
21599 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
21601 /* Check for empty needle behavior. */
21603 const char *haystack = "AAA";
21604 if (memmem (haystack, 3, NULL, 0) != haystack)
21613 if ac_fn_c_try_run
"$LINENO"; then :
21614 gl_cv_func_memmem_works_always
=yes
21616 gl_cv_func_memmem_works_always
=no
21618 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21619 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
21625 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
21626 case "$gl_cv_func_memmem_works_always" in
21635 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
21644 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
21658 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
21668 for ac_func
in mempcpy
21670 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
21671 if test "x$ac_cv_func_mempcpy" = xyes
; then :
21672 cat >>confdefs.h
<<_ACEOF
21673 #define HAVE_MEMPCPY 1
21679 if test $ac_cv_func_mempcpy = no
; then
21683 if test $HAVE_MEMPCPY = 0; then
21692 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
21709 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
21724 if test $ac_cv_have_decl_memrchr = no
; then
21725 HAVE_DECL_MEMRCHR
=0
21728 for ac_func
in memrchr
21730 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
21731 if test "x$ac_cv_func_memrchr" = xyes
; then :
21732 cat >>confdefs.h
<<_ACEOF
21733 #define HAVE_MEMRCHR 1
21740 if test $ac_cv_func_memrchr = no
; then
21749 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
21764 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
21777 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
21778 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
21779 $as_echo_n "(cached) " >&6
21781 rm -rf conftest.dir
21782 if test "$cross_compiling" = yes; then :
21784 # Guess yes on glibc systems.
21785 *-gnu*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
21786 # If we don't know, assume the worst.
21787 *) gl_cv_func_mkdir_trailing_slash_works
="guessing no" ;;
21791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21792 /* end confdefs.h. */
21794 # include <sys/types.h>
21795 # include <sys/stat.h>
21800 return mkdir ("conftest.dir/", 0700);
21805 if ac_fn_c_try_run
"$LINENO"; then :
21806 gl_cv_func_mkdir_trailing_slash_works
=yes
21808 gl_cv_func_mkdir_trailing_slash_works
=no
21810 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21811 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21814 rm -rf conftest.dir
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
21819 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
21820 case "$gl_cv_func_mkdir_trailing_slash_works" in
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
21828 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
21829 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
21830 $as_echo_n "(cached) " >&6
21832 rm -rf conftest.dir
21833 if test "$cross_compiling" = yes; then :
21835 # Guess yes on glibc systems.
21836 *-gnu*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
21837 # If we don't know, assume the worst.
21838 *) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
21842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21843 /* end confdefs.h. */
21845 # include <sys/types.h>
21846 # include <sys/stat.h>
21851 return !mkdir ("conftest.dir/./", 0700);
21856 if ac_fn_c_try_run
"$LINENO"; then :
21857 gl_cv_func_mkdir_trailing_dot_works
=yes
21859 gl_cv_func_mkdir_trailing_dot_works
=no
21861 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21862 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21865 rm -rf conftest.dir
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
21870 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
21871 case "$gl_cv_func_mkdir_trailing_dot_works" in
21876 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
21881 if test $REPLACE_MKDIR = 1; then
21890 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
21895 for ac_func
in mkdtemp
21897 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
21898 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
21899 cat >>confdefs.h
<<_ACEOF
21900 #define HAVE_MKDTEMP 1
21906 if test $ac_cv_func_mkdtemp = no
; then
21910 if test $HAVE_MKDTEMP = 0; then
21919 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
21935 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
21951 if test $ac_cv_func_mkostemp != yes; then
21955 if test $HAVE_MKOSTEMP = 0; then
21964 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
21971 cat >>confdefs.h
<<_ACEOF
21972 #define GNULIB_MKOSTEMP 1
21987 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
21992 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22001 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
22005 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22014 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
22020 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
22021 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
22022 $as_echo_n "(cached) " >&6
22025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22026 /* end confdefs.h. */
22027 #include <netinet/in.h>
22036 if ac_fn_c_try_compile
"$LINENO"; then :
22037 gl_cv_header_netinet_in_h_selfcontained
=yes
22039 gl_cv_header_netinet_in_h_selfcontained
=no
22041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
22045 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
22046 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
22049 NETINET_IN_H
='netinet/in.h'
22050 for ac_header
in netinet
/in.h
22052 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22053 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
22054 cat >>confdefs.h
<<_ACEOF
22055 #define HAVE_NETINET_IN_H 1
22077 if test $gl_cv_have_include_next = yes; then
22078 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
22081 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
22082 if ${gl_cv_next_netinet_in_h+:} false
; then :
22083 $as_echo_n "(cached) " >&6
22086 if test $ac_cv_header_netinet_in_h = yes; then
22091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22093 #include <netinet/in.h>
22096 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22097 *) gl_absname_cpp
="$ac_cpp" ;;
22102 gl_dirsep_regex
='[/\\]'
22105 gl_dirsep_regex
='\/'
22108 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22109 gl_header_literal_regex
=`echo 'netinet/in.h' \
22110 | sed -e "$gl_make_literal_regex_sed"`
22111 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22112 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22118 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22119 sed -n "$gl_absolute_header_sed"`
22121 gl_header
=$gl_cv_absolute_netinet_in_h
22122 gl_cv_next_netinet_in_h
='"'$gl_header'"'
22124 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
22130 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
22132 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
22134 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22136 gl_next_as_first_directive
='<'netinet
/in.h
'>'
22138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22139 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
22141 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
22146 if test $ac_cv_header_netinet_in_h = yes; then
22147 HAVE_NETINET_IN_H
=1
22149 HAVE_NETINET_IN_H
=0
22154 if test -n "$NETINET_IN_H"; then
22155 GL_GENERATE_NETINET_IN_H_TRUE
=
22156 GL_GENERATE_NETINET_IN_H_FALSE
='#'
22158 GL_GENERATE_NETINET_IN_H_TRUE
='#'
22159 GL_GENERATE_NETINET_IN_H_FALSE
=
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
22179 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
22180 if ${gl_cv_func_open_slash+:} false
; then :
22181 $as_echo_n "(cached) " >&6
22183 # Assume that if we have lstat, we can also check symlinks.
22184 if test $ac_cv_func_lstat = yes; then
22186 ln -s conftest.tmp conftest.lnk
22188 if test "$cross_compiling" = yes; then :
22191 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
22192 gl_cv_func_open_slash
="guessing no" ;;
22194 gl_cv_func_open_slash
="guessing yes" ;;
22198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h. */
22203 # include <unistd.h>
22209 if (open ("conftest.lnk/", O_RDONLY) != -1)
22212 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
22217 if ac_fn_c_try_run
"$LINENO"; then :
22218 gl_cv_func_open_slash
=yes
22220 gl_cv_func_open_slash
=no
22222 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22223 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22226 rm -f conftest.sl conftest.tmp conftest.lnk
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
22230 $as_echo "$gl_cv_func_open_slash" >&6; }
22231 case "$gl_cv_func_open_slash" in
22234 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
22242 if test $REPLACE_OPEN = 0; then
22252 if test $ac_cv_func_fchdir = no
; then
22256 if test $HAVE_FCHDIR = 0; then
22263 if test $REPLACE_OPEN = 1; then
22272 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
22290 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
22305 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
22309 # Solaris 9 has *at functions, but uniformly mishandles trailing
22310 # slash in all of them.
22318 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
22327 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
22336 cat >>confdefs.h
<<_ACEOF
22337 #define GNULIB_OPENAT 1
22351 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
22358 for ac_func
in opendir
22360 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
22361 if test "x$ac_cv_func_opendir" = xyes
; then :
22362 cat >>confdefs.h
<<_ACEOF
22363 #define HAVE_OPENDIR 1
22369 if test $ac_cv_func_opendir = no
; then
22382 if test $ac_cv_func_fchdir = no
; then
22386 if test $HAVE_FCHDIR = 0; then
22387 if test $HAVE_OPENDIR = 1; then
22392 case $host_os,$HAVE_OPENDIR in
22394 REPLACE_OPENDIR
=1;;
22397 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
22406 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
22420 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
22437 for ac_func
in rawmemchr
22439 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
22440 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
22441 cat >>confdefs.h
<<_ACEOF
22442 #define HAVE_RAWMEMCHR 1
22448 if test $ac_cv_func_rawmemchr = no
; then
22452 if test $HAVE_RAWMEMCHR = 0; then
22461 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
22476 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
22483 for ac_func
in readdir
22485 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
22486 if test "x$ac_cv_func_readdir" = xyes
; then :
22487 cat >>confdefs.h
<<_ACEOF
22488 #define HAVE_READDIR 1
22494 if test $ac_cv_func_readdir = no
; then
22498 if test $HAVE_READDIR = 0; then
22507 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
22521 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
22534 if test $ac_cv_func_readlink = no
; then
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22538 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22539 if ${gl_cv_decl_readlink_works+:} false
; then :
22540 $as_echo_n "(cached) " >&6
22542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22543 /* end confdefs.h. */
22544 #include <unistd.h>
22545 /* Cause compilation failure if original declaration has wrong type. */
22546 ssize_t readlink (const char *, char *, size_t);
22555 if ac_fn_c_try_compile
"$LINENO"; then :
22556 gl_cv_decl_readlink_works
=yes
22558 gl_cv_decl_readlink_works
=no
22560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22563 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22565 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22566 if ${gl_cv_func_readlink_works+:} false
; then :
22567 $as_echo_n "(cached) " >&6
22569 # We have readlink, so assume ln -s works.
22570 ln -s conftest.no-such conftest.link
22571 ln -s conftest.link conftest.lnk2
22572 if test "$cross_compiling" = yes; then :
22574 # Guess yes on glibc systems.
22575 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
22576 # If we don't know, assume the worst.
22577 *) gl_cv_func_readlink_works
="guessing no" ;;
22581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22582 /* end confdefs.h. */
22583 #include <unistd.h>
22589 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22594 if ac_fn_c_try_run
"$LINENO"; then :
22595 gl_cv_func_readlink_works
=yes
22597 gl_cv_func_readlink_works
=no
22599 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22600 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22603 rm -f conftest.link conftest.lnk2
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22606 $as_echo "$gl_cv_func_readlink_works" >&6; }
22607 case "$gl_cv_func_readlink_works" in
22609 if test "$gl_cv_decl_readlink_works" != yes; then
22615 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22622 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
22631 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
22648 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
22655 if test $gl_cv_func_malloc_posix = yes; then
22657 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
22663 if test $REPLACE_REALLOC = 1; then
22672 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
22680 GNULIB_REALLOC_POSIX
=1
22686 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
22702 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
22703 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
22704 $as_echo_n "(cached) " >&6
22706 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
22707 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
22708 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
22709 # Assume that if we have lstat, we can also check symlinks.
22710 if test $ac_cv_func_lstat = yes; then
22711 ln -s conftest.f conftest.lnk
22713 if test "$cross_compiling" = yes; then :
22715 # Guess yes on glibc systems.
22716 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
22717 # If we don't know, assume the worst.
22718 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
22722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22723 /* end confdefs.h. */
22725 # include <stdio.h>
22726 # include <stdlib.h>
22732 if (rename ("conftest.f1", "conftest.f2/") == 0)
22734 if (rename ("conftest.d1", "conftest.d2/") != 0)
22737 if (rename ("conftest.f", "conftest.lnk/") == 0)
22746 if ac_fn_c_try_run
"$LINENO"; then :
22747 gl_cv_func_rename_slash_dst_works
=yes
22749 gl_cv_func_rename_slash_dst_works
=no
22751 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22752 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22755 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
22759 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
22760 case "$gl_cv_func_rename_slash_dst_works" in
22765 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
22771 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
22772 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
22773 $as_echo_n "(cached) " >&6
22775 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22776 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
22777 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
22778 # Assume that if we have lstat, we can also check symlinks.
22779 if test $ac_cv_func_lstat = yes; then
22780 ln -s conftest.f conftest.lnk
22782 if test "$cross_compiling" = yes; then :
22784 # Guess yes on glibc systems.
22785 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
22786 # If we don't know, assume the worst.
22787 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
22791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22792 /* end confdefs.h. */
22794 # include <stdio.h>
22795 # include <stdlib.h>
22801 if (rename ("conftest.f1/", "conftest.d3") == 0)
22803 if (rename ("conftest.d1/", "conftest.d2") != 0)
22806 if (rename ("conftest.lnk/", "conftest.f") == 0)
22815 if ac_fn_c_try_run
"$LINENO"; then :
22816 gl_cv_func_rename_slash_src_works
=yes
22818 gl_cv_func_rename_slash_src_works
=no
22820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22824 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
22828 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
22829 case "$gl_cv_func_rename_slash_src_works" in
22834 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
22847 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
22848 if ${gl_cv_func_rename_link_works+:} false
; then :
22849 $as_echo_n "(cached) " >&6
22851 if test $ac_cv_func_link = yes; then
22852 rm -rf conftest.f conftest.f1
22853 if touch conftest.f
&& ln conftest.f conftest.f1
&&
22854 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
22855 if test "$cross_compiling" = yes; then :
22857 # Guess yes on glibc systems.
22858 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
22859 # If we don't know, assume the worst.
22860 *) gl_cv_func_rename_link_works
="guessing no" ;;
22864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22865 /* end confdefs.h. */
22867 # include <stdio.h>
22868 # include <stdlib.h>
22869 # include <unistd.h>
22875 if (rename ("conftest.f", "conftest.f1"))
22877 if (unlink ("conftest.f1"))
22879 if (rename ("conftest.f", "conftest.f"))
22881 if (rename ("conftest.f1", "conftest.f1") == 0)
22889 if ac_fn_c_try_run
"$LINENO"; then :
22890 gl_cv_func_rename_link_works
=yes
22892 gl_cv_func_rename_link_works
=no
22894 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22895 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22899 gl_cv_func_rename_link_works
="guessing no"
22901 rm -rf conftest.f conftest.f1
22903 gl_cv_func_rename_link_works
=yes
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
22908 $as_echo "$gl_cv_func_rename_link_works" >&6; }
22909 case "$gl_cv_func_rename_link_works" in
22914 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
22920 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
22921 if ${gl_cv_func_rename_dest_works+:} false
; then :
22922 $as_echo_n "(cached) " >&6
22924 rm -rf conftest.f conftest.d1 conftest.d2
22925 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
22926 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
22927 if test "$cross_compiling" = yes; then :
22929 # Guess yes on glibc systems.
22930 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
22931 # If we don't know, assume the worst.
22932 *) gl_cv_func_rename_dest_works
="guessing no" ;;
22936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h. */
22939 # include <stdio.h>
22940 # include <stdlib.h>
22946 if (rename ("conftest.d1", "conftest.d2") != 0)
22948 if (rename ("conftest.d2", "conftest.f") == 0)
22956 if ac_fn_c_try_run
"$LINENO"; then :
22957 gl_cv_func_rename_dest_works
=yes
22959 gl_cv_func_rename_dest_works
=no
22961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22965 rm -rf conftest.f conftest.d1 conftest.d2
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
22969 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
22970 case "$gl_cv_func_rename_dest_works" in
22975 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
22980 if test $REPLACE_RENAME = 1; then
22989 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
23003 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
23010 for ac_func
in rewinddir
23012 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
23013 if test "x$ac_cv_func_rewinddir" = xyes
; then :
23014 cat >>confdefs.h
<<_ACEOF
23015 #define HAVE_REWINDDIR 1
23021 if test $ac_cv_func_rewinddir = no
; then
23025 if test $HAVE_REWINDDIR = 0; then
23034 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
23048 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
23062 $as_echo_n "checking whether rmdir works... " >&6; }
23063 if ${gl_cv_func_rmdir_works+:} false
; then :
23064 $as_echo_n "(cached) " >&6
23067 touch conftest.
file
23068 if test "$cross_compiling" = yes; then :
23070 # Guess yes on glibc systems.
23071 *-gnu*) gl_cv_func_rmdir_works
="guessing yes" ;;
23072 # If we don't know, assume the worst.
23073 *) gl_cv_func_rmdir_works
="guessing no" ;;
23077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h. */
23082 # include <unistd.h>
23083 #else /* on Windows with MSVC */
23084 # include <direct.h>
23091 if (!rmdir ("conftest.file/"))
23093 else if (errno != ENOTDIR)
23095 if (!rmdir ("conftest.dir/./"))
23103 if ac_fn_c_try_run
"$LINENO"; then :
23104 gl_cv_func_rmdir_works
=yes
23106 gl_cv_func_rmdir_works
=no
23108 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23109 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23112 rm -rf conftest.dir conftest.
file
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
23115 $as_echo "$gl_cv_func_rmdir_works" >&6; }
23116 case "$gl_cv_func_rmdir_works" in
23123 if test $REPLACE_RMDIR = 1; then
23132 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
23146 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
23170 if test $ac_cv_func_secure_getenv = no
; then
23171 HAVE_SECURE_GETENV
=0
23174 if test $HAVE_SECURE_GETENV = 0; then
23183 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
23186 for ac_func
in __secure_getenv
23188 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
23189 if test "x$ac_cv_func___secure_getenv" = xyes
; then :
23190 cat >>confdefs.h
<<_ACEOF
23191 #define HAVE___SECURE_GETENV 1
23197 if test $ac_cv_func___secure_getenv = no
; then
23198 for ac_func
in issetugid
23200 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
23201 if test "x$ac_cv_func_issetugid" = xyes
; then :
23202 cat >>confdefs.h
<<_ACEOF
23203 #define HAVE_ISSETUGID 1
23233 GNULIB_SECURE_GETENV
=1
23239 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
23245 if test $ac_cv_func_setenv = no
; then
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
23249 $as_echo_n "checking whether setenv validates arguments... " >&6; }
23250 if ${gl_cv_func_setenv_works+:} false
; then :
23251 $as_echo_n "(cached) " >&6
23253 if test "$cross_compiling" = yes; then :
23255 # Guess yes on glibc systems.
23256 *-gnu*) gl_cv_func_setenv_works
="guessing yes" ;;
23257 # If we don't know, assume the worst.
23258 *) gl_cv_func_setenv_works
="guessing no" ;;
23262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23263 /* end confdefs.h. */
23265 #include <stdlib.h>
23267 #include <string.h>
23275 if (setenv ("", "", 0) != -1)
23277 else if (errno != EINVAL)
23281 if (setenv ("a", "=", 1) != 0)
23283 else if (strcmp (getenv ("a"), "=") != 0)
23292 if ac_fn_c_try_run
"$LINENO"; then :
23293 gl_cv_func_setenv_works
=yes
23295 gl_cv_func_setenv_works
=no
23297 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23298 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
23303 $as_echo "$gl_cv_func_setenv_works" >&6; }
23304 case "$gl_cv_func_setenv_works" in
23312 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
23321 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
23335 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
23350 if test $gl_cv_have_include_next = yes; then
23351 gl_cv_next_signal_h
='<'signal.h
'>'
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23354 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23355 if ${gl_cv_next_signal_h+:} false
; then :
23356 $as_echo_n "(cached) " >&6
23361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23362 /* end confdefs.h. */
23363 #include <signal.h>
23366 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23367 *) gl_absname_cpp
="$ac_cpp" ;;
23372 gl_dirsep_regex
='[/\\]'
23375 gl_dirsep_regex
='\/'
23378 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23379 gl_header_literal_regex
=`echo 'signal.h' \
23380 | sed -e "$gl_make_literal_regex_sed"`
23381 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23382 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23388 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23389 sed -n "$gl_absolute_header_sed"`
23391 gl_header
=$gl_cv_absolute_signal_h
23392 gl_cv_next_signal_h
='"'$gl_header'"'
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23397 $as_echo "$gl_cv_next_signal_h" >&6; }
23399 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
23401 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23403 gl_next_as_first_directive
='<'signal.h
'>'
23405 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23406 gl_next_as_first_directive
=$gl_cv_next_signal_h
23408 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
23414 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23415 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23416 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23417 #include <signal.h>
23420 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
23423 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
23432 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23433 #include <signal.h>
23436 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
23439 HAVE_SIGHANDLER_T
=0
23444 for gl_func
in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask
; do
23445 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23447 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23448 if eval \
${$as_gl_Symbol+:} false
; then :
23449 $as_echo_n "(cached) " >&6
23451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23452 /* end confdefs.h. */
23453 #include <signal.h>
23464 if ac_fn_c_try_compile
"$LINENO"; then :
23465 eval "$as_gl_Symbol=yes"
23467 eval "$as_gl_Symbol=no"
23469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23471 eval ac_res
=\$
$as_gl_Symbol
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23473 $as_echo "$ac_res" >&6; }
23474 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
23475 cat >>confdefs.h
<<_ACEOF
23476 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23479 eval ac_cv_have_decl_
$gl_func=yes
23484 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23485 /* <sys/types.h> is not needed according to POSIX, but the
23486 <sys/socket.h> in i386-unknown-freebsd4.10 and
23487 powerpc-apple-darwin5.5 required it. */
23488 #include <sys/types.h>
23489 #if HAVE_SYS_SOCKET_H
23490 # include <sys/socket.h>
23491 #elif HAVE_WS2TCPIP_H
23492 # include <ws2tcpip.h>
23496 if test "x$ac_cv_type_socklen_t" = xyes
; then :
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23500 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23501 if ${gl_cv_socklen_t_equiv+:} false
; then :
23502 $as_echo_n "(cached) " >&6
23504 # Systems have either "struct sockaddr *" or
23505 # "void *" as the second argument to getpeername
23506 gl_cv_socklen_t_equiv
=
23507 for arg2
in "struct sockaddr" void
; do
23508 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
23509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23510 /* end confdefs.h. */
23511 #include <sys/types.h>
23512 #include <sys/socket.h>
23514 int getpeername (int, $arg2 *, $t *);
23519 getpeername (0, 0, &len);
23524 if ac_fn_c_try_compile
"$LINENO"; then :
23525 gl_cv_socklen_t_equiv
="$t"
23527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23528 test "$gl_cv_socklen_t_equiv" != "" && break
23530 test "$gl_cv_socklen_t_equiv" != "" && break
23535 if test "$gl_cv_socklen_t_equiv" = ""; then
23536 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23539 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23541 cat >>confdefs.h
<<_ACEOF
23542 #define socklen_t $gl_cv_socklen_t_equiv
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23549 $as_echo_n "checking for ssize_t... " >&6; }
23550 if ${gt_cv_ssize_t+:} false
; then :
23551 $as_echo_n "(cached) " >&6
23553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23554 /* end confdefs.h. */
23555 #include <sys/types.h>
23559 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23565 if ac_fn_c_try_compile
"$LINENO"; then :
23570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23573 $as_echo "$gt_cv_ssize_t" >&6; }
23574 if test $gt_cv_ssize_t = no
; then
23576 $as_echo "#define ssize_t int" >>confdefs.h
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23590 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23591 if ${gl_cv_func_stat_dir_slash+:} false
; then :
23592 $as_echo_n "(cached) " >&6
23594 if test "$cross_compiling" = yes; then :
23596 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
23597 *) gl_cv_func_stat_dir_slash
="guessing yes";;
23600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23601 /* end confdefs.h. */
23602 #include <sys/stat.h>
23607 struct stat st; return stat (".", &st) != stat ("./", &st);
23612 if ac_fn_c_try_run
"$LINENO"; then :
23613 gl_cv_func_stat_dir_slash
=yes
23615 gl_cv_func_stat_dir_slash
=no
23617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23618 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23623 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23625 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23626 if ${gl_cv_func_stat_file_slash+:} false
; then :
23627 $as_echo_n "(cached) " >&6
23630 # Assume that if we have lstat, we can also check symlinks.
23631 if test $ac_cv_func_lstat = yes; then
23632 ln -s conftest.tmp conftest.lnk
23634 if test "$cross_compiling" = yes; then :
23636 # Guess yes on glibc systems.
23637 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
23638 # If we don't know, assume the worst.
23639 *) gl_cv_func_stat_file_slash
="guessing no" ;;
23643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23644 /* end confdefs.h. */
23645 #include <sys/stat.h>
23652 if (!stat ("conftest.tmp/", &st))
23655 if (!stat ("conftest.lnk/", &st))
23664 if ac_fn_c_try_run
"$LINENO"; then :
23665 gl_cv_func_stat_file_slash
=yes
23667 gl_cv_func_stat_file_slash
=no
23669 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23670 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23673 rm -f conftest.tmp conftest.lnk
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
23676 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
23677 case $gl_cv_func_stat_dir_slash in
23678 *no
) REPLACE_STAT
=1
23680 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
23683 case $gl_cv_func_stat_file_slash in
23684 *no
) REPLACE_STAT
=1
23686 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
23690 if test $REPLACE_STAT = 1; then
23699 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
23714 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23720 $as_echo_n "checking for working stdalign.h... " >&6; }
23721 if ${gl_cv_header_working_stdalign_h+:} false
; then :
23722 $as_echo_n "(cached) " >&6
23724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23725 /* end confdefs.h. */
23726 #include <stdalign.h>
23727 #include <stddef.h>
23729 /* Test that alignof yields a result consistent with offsetof.
23730 This catches GCC bug 52023
23731 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23733 template <class t> struct alignof_helper { char a; t b; };
23734 # define ao(type) offsetof (alignof_helper<type>, b)
23736 # define ao(type) offsetof (struct { char a; type b; }, b)
23738 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23739 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23740 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23742 /* Test _Alignas only on platforms where gnulib can help. */
23744 ((defined __cplusplus && 201103 <= __cplusplus) \
23745 || (defined __APPLE__ && defined __MACH__ \
23746 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
23748 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
23749 || __ICC || 0x5110 <= __SUNPRO_C \
23750 || 1300 <= _MSC_VER)
23751 struct alignas_test { char c; char alignas (8) alignas_8; };
23752 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
23764 if ac_fn_c_try_compile
"$LINENO"; then :
23765 gl_cv_header_working_stdalign_h
=yes
23767 gl_cv_header_working_stdalign_h
=no
23769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23772 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23774 if test $gl_cv_header_working_stdalign_h = yes; then
23777 STDALIGN_H
='stdalign.h'
23781 if test -n "$STDALIGN_H"; then
23782 GL_GENERATE_STDALIGN_H_TRUE
=
23783 GL_GENERATE_STDALIGN_H_FALSE
='#'
23785 GL_GENERATE_STDALIGN_H_TRUE
='#'
23786 GL_GENERATE_STDALIGN_H_FALSE
=
23793 # Define two additional variables used in the Makefile substitution.
23795 if test "$ac_cv_header_stdbool_h" = yes; then
23798 STDBOOL_H
='stdbool.h'
23801 if test -n "$STDBOOL_H"; then
23802 GL_GENERATE_STDBOOL_H_TRUE
=
23803 GL_GENERATE_STDBOOL_H_FALSE
='#'
23805 GL_GENERATE_STDBOOL_H_TRUE
='#'
23806 GL_GENERATE_STDBOOL_H_FALSE
=
23810 if test "$ac_cv_type__Bool" = yes; then
23821 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
23824 if test "x$ac_cv_type_max_align_t" = xyes
; then :
23827 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
23830 if test $gt_cv_c_wchar_t = no
; then
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23835 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23836 if ${gl_cv_decl_null_works+:} false
; then :
23837 $as_echo_n "(cached) " >&6
23839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h. */
23841 #include <stddef.h>
23842 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23852 if ac_fn_c_try_compile
"$LINENO"; then :
23853 gl_cv_decl_null_works
=yes
23855 gl_cv_decl_null_works
=no
23857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23860 $as_echo "$gl_cv_decl_null_works" >&6; }
23861 if test $gl_cv_decl_null_works = no
; then
23866 if test -n "$STDDEF_H"; then
23867 GL_GENERATE_STDDEF_H_TRUE
=
23868 GL_GENERATE_STDDEF_H_FALSE
='#'
23870 GL_GENERATE_STDDEF_H_TRUE
='#'
23871 GL_GENERATE_STDDEF_H_FALSE
=
23874 if test -n "$STDDEF_H"; then
23883 if test $gl_cv_have_include_next = yes; then
23884 gl_cv_next_stddef_h
='<'stddef.h
'>'
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23887 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23888 if ${gl_cv_next_stddef_h+:} false
; then :
23889 $as_echo_n "(cached) " >&6
23894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h. */
23896 #include <stddef.h>
23899 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23900 *) gl_absname_cpp
="$ac_cpp" ;;
23905 gl_dirsep_regex
='[/\\]'
23908 gl_dirsep_regex
='\/'
23911 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23912 gl_header_literal_regex
=`echo 'stddef.h' \
23913 | sed -e "$gl_make_literal_regex_sed"`
23914 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23915 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23921 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23922 sed -n "$gl_absolute_header_sed"`
23924 gl_header
=$gl_cv_absolute_stddef_h
23925 gl_cv_next_stddef_h
='"'$gl_header'"'
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23930 $as_echo "$gl_cv_next_stddef_h" >&6; }
23932 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
23934 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23936 gl_next_as_first_directive
='<'stddef.h
'>'
23938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23939 gl_next_as_first_directive
=$gl_cv_next_stddef_h
23941 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
23951 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
23962 if test $gl_cv_have_include_next = yes; then
23963 gl_cv_next_stdio_h
='<'stdio.h
'>'
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23966 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23967 if ${gl_cv_next_stdio_h+:} false
; then :
23968 $as_echo_n "(cached) " >&6
23973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23974 /* end confdefs.h. */
23978 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23979 *) gl_absname_cpp
="$ac_cpp" ;;
23984 gl_dirsep_regex
='[/\\]'
23987 gl_dirsep_regex
='\/'
23990 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23991 gl_header_literal_regex
=`echo 'stdio.h' \
23992 | sed -e "$gl_make_literal_regex_sed"`
23993 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23994 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24000 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24001 sed -n "$gl_absolute_header_sed"`
24003 gl_header
=$gl_cv_absolute_stdio_h
24004 gl_cv_next_stdio_h
='"'$gl_header'"'
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24009 $as_echo "$gl_cv_next_stdio_h" >&6; }
24011 NEXT_STDIO_H
=$gl_cv_next_stdio_h
24013 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24015 gl_next_as_first_directive
='<'stdio.h
'>'
24017 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24018 gl_next_as_first_directive
=$gl_cv_next_stdio_h
24020 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
24027 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
24028 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
24029 $as_echo_n "(cached) " >&6
24031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24032 /* end confdefs.h. */
24034 #define __STDC_FORMAT_MACROS 1
24036 #include <inttypes.h>
24037 /* For non-mingw systems, compilation will trivially succeed.
24038 For mingw, compilation will succeed for older mingw (system
24039 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
24040 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
24041 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
24042 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
24053 if ac_fn_c_try_compile
"$LINENO"; then :
24054 gl_cv_func_printf_attribute_flavor
=system
24056 gl_cv_func_printf_attribute_flavor
=gnu
24058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
24061 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
24062 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
24064 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
24071 cat >>confdefs.h
<<_ACEOF
24072 #define GNULIB_FSCANF 1
24079 cat >>confdefs.h
<<_ACEOF
24080 #define GNULIB_SCANF 1
24105 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
24106 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24108 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24109 if eval \
${$as_gl_Symbol+:} false
; then :
24110 $as_echo_n "(cached) " >&6
24112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24113 /* end confdefs.h. */
24125 if ac_fn_c_try_compile
"$LINENO"; then :
24126 eval "$as_gl_Symbol=yes"
24128 eval "$as_gl_Symbol=no"
24130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24132 eval ac_res
=\$
$as_gl_Symbol
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24134 $as_echo "$ac_res" >&6; }
24135 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24136 cat >>confdefs.h
<<_ACEOF
24137 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24140 eval ac_cv_have_decl_
$gl_func=yes
24155 if test $gl_cv_have_include_next = yes; then
24156 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24159 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24160 if ${gl_cv_next_stdlib_h+:} false
; then :
24161 $as_echo_n "(cached) " >&6
24166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24167 /* end confdefs.h. */
24168 #include <stdlib.h>
24171 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24172 *) gl_absname_cpp
="$ac_cpp" ;;
24177 gl_dirsep_regex
='[/\\]'
24180 gl_dirsep_regex
='\/'
24183 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24184 gl_header_literal_regex
=`echo 'stdlib.h' \
24185 | sed -e "$gl_make_literal_regex_sed"`
24186 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24187 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24193 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24194 sed -n "$gl_absolute_header_sed"`
24196 gl_header
=$gl_cv_absolute_stdlib_h
24197 gl_cv_next_stdlib_h
='"'$gl_header'"'
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24202 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24204 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
24206 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24207 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24208 gl_next_as_first_directive
='<'stdlib.h
'>'
24210 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24211 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
24213 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
24220 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
24221 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24223 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24224 if eval \
${$as_gl_Symbol+:} false
; then :
24225 $as_echo_n "(cached) " >&6
24227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24228 /* end confdefs.h. */
24229 #include <stdlib.h>
24230 #if HAVE_SYS_LOADAVG_H
24231 # include <sys/loadavg.h>
24234 # include <random.h>
24246 if ac_fn_c_try_compile
"$LINENO"; then :
24247 eval "$as_gl_Symbol=yes"
24249 eval "$as_gl_Symbol=no"
24251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24253 eval ac_res
=\$
$as_gl_Symbol
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24255 $as_echo "$ac_res" >&6; }
24256 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
24257 cat >>confdefs.h
<<_ACEOF
24258 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24261 eval ac_cv_have_decl_
$gl_func=yes
24270 for ac_func
in strchrnul
24272 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
24273 if test "x$ac_cv_func_strchrnul" = xyes
; then :
24274 cat >>confdefs.h
<<_ACEOF
24275 #define HAVE_STRCHRNUL 1
24281 if test $ac_cv_func_strchrnul = no
; then
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
24285 $as_echo_n "checking whether strchrnul works... " >&6; }
24286 if ${gl_cv_func_strchrnul_works+:} false
; then :
24287 $as_echo_n "(cached) " >&6
24289 if test "$cross_compiling" = yes; then :
24290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24291 /* end confdefs.h. */
24293 #if defined __CYGWIN__
24294 #include <cygwin/version.h>
24295 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
24303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24304 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24305 gl_cv_func_strchrnul_works
="guessing yes"
24307 gl_cv_func_strchrnul_works
="guessing no"
24313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24314 /* end confdefs.h. */
24316 #include <string.h> /* for strchrnul */
24321 const char *buf = "a";
24322 return strchrnul (buf, 'b') != buf + 1;
24328 if ac_fn_c_try_run
"$LINENO"; then :
24329 gl_cv_func_strchrnul_works
=yes
24331 gl_cv_func_strchrnul_works
=no
24333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
24340 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
24341 case "$gl_cv_func_strchrnul_works" in
24343 *) REPLACE_STRCHRNUL
=1 ;;
24347 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
24356 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
24371 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
24385 if test $ac_cv_func_strdup = yes; then
24386 if test $gl_cv_func_malloc_posix != yes; then
24397 if test $ac_cv_have_decl_strdup = no
; then
24401 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
24410 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
24425 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
24434 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
24436 $as_echo_n "checking for working strerror function... " >&6; }
24437 if ${gl_cv_func_working_strerror+:} false
; then :
24438 $as_echo_n "(cached) " >&6
24440 if test "$cross_compiling" = yes; then :
24442 # Guess yes on glibc systems.
24443 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
24444 # If we don't know, assume the worst.
24445 *) gl_cv_func_working_strerror
="guessing no" ;;
24449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24450 /* end confdefs.h. */
24451 #include <string.h>
24456 if (!*strerror (-2)) return 1;
24461 if ac_fn_c_try_run
"$LINENO"; then :
24462 gl_cv_func_working_strerror
=yes
24464 gl_cv_func_working_strerror
=no
24466 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24467 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
24473 $as_echo "$gl_cv_func_working_strerror" >&6; }
24474 case "$gl_cv_func_working_strerror" in
24485 if test $REPLACE_STRERROR = 1; then
24494 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
24499 cat >>confdefs.h
<<_ACEOF
24500 #define GNULIB_STRERROR 1
24515 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
24521 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
24530 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
24542 if test $ac_cv_header_sys_socket_h != yes; then
24543 for ac_header
in winsock2.h
24545 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24546 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
24547 cat >>confdefs.h
<<_ACEOF
24548 #define HAVE_WINSOCK2_H 1
24556 if test "$ac_cv_header_winsock2_h" = yes; then
24558 UNISTD_H_HAVE_WINSOCK2_H
=1
24559 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
24571 if test $REPLACE_STRSTR = 0; then
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
24573 $as_echo_n "checking whether strstr works in linear time... " >&6; }
24574 if ${gl_cv_func_strstr_linear+:} false
; then :
24575 $as_echo_n "(cached) " >&6
24577 if test "$cross_compiling" = yes; then :
24578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24579 /* end confdefs.h. */
24581 #include <features.h>
24582 #ifdef __GNU_LIBRARY__
24583 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
24584 && !(defined __i386__ || defined __x86_64__) \
24585 && !defined __UCLIBC__
24590 #include <cygwin/version.h>
24591 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24598 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24599 gl_cv_func_strstr_linear
="guessing yes"
24601 gl_cv_func_strstr_linear
="guessing no"
24607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24608 /* end confdefs.h. */
24611 /* z/OS does not deliver signals while strstr() is running (thanks to
24612 restrictions on its LE runtime), which prevents us from limiting the
24613 running time of this test. */
24614 # error "This test does not work properly on z/OS"
24616 #include <signal.h> /* for signal */
24617 #include <string.h> /* for strstr */
24618 #include <stdlib.h> /* for malloc */
24619 #include <unistd.h> /* for alarm */
24620 static void quit (int sig) { _exit (sig + 128); }
24627 size_t m = 1000000;
24628 char *haystack = (char *) malloc (2 * m + 2);
24629 char *needle = (char *) malloc (m + 2);
24630 /* Failure to compile this test due to missing alarm is okay,
24631 since all such platforms (mingw) also have quadratic strstr. */
24632 signal (SIGALRM, quit);
24634 /* Check for quadratic performance. */
24635 if (haystack && needle)
24637 memset (haystack, 'A', 2 * m);
24638 haystack[2 * m] = 'B';
24639 haystack[2 * m + 1] = 0;
24640 memset (needle, 'A', m);
24643 if (!strstr (haystack, needle))
24652 if ac_fn_c_try_run
"$LINENO"; then :
24653 gl_cv_func_strstr_linear
=yes
24655 gl_cv_func_strstr_linear
=no
24657 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24658 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
24664 $as_echo "$gl_cv_func_strstr_linear" >&6; }
24665 case "$gl_cv_func_strstr_linear" in
24673 if test $REPLACE_STRSTR = 1; then
24682 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
24688 if test "$gl_cv_func_memchr_works" != yes; then
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
24692 $as_echo_n "checking whether strstr works... " >&6; }
24693 if ${gl_cv_func_strstr_works_always+:} false
; then :
24694 $as_echo_n "(cached) " >&6
24696 if test "$cross_compiling" = yes; then :
24697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24698 /* end confdefs.h. */
24700 #ifdef __GNU_LIBRARY__
24701 #include <features.h>
24702 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
24703 || defined __UCLIBC__
24706 #elif defined __CYGWIN__
24707 #include <cygwin/version.h>
24708 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24717 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24718 gl_cv_func_strstr_works_always
="guessing yes"
24720 gl_cv_func_strstr_works_always
="guessing no"
24726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24727 /* end confdefs.h. */
24729 #include <string.h> /* for strstr */
24730 #define P "_EF_BF_BD"
24731 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
24732 #define NEEDLE P P P P P
24737 return !!strstr (HAYSTACK, NEEDLE);
24743 if ac_fn_c_try_run
"$LINENO"; then :
24744 gl_cv_func_strstr_works_always
=yes
24746 gl_cv_func_strstr_works_always
=no
24748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
24755 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
24756 case "$gl_cv_func_strstr_works_always" in
24764 if test $REPLACE_STRSTR = 1; then
24773 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
24787 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
24795 for ac_func
in strtok_r
24797 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
24798 if test "x$ac_cv_func_strtok_r" = xyes
; then :
24799 cat >>confdefs.h
<<_ACEOF
24800 #define HAVE_STRTOK_R 1
24806 if test $ac_cv_func_strtok_r = yes; then
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
24809 $as_echo_n "checking whether strtok_r works... " >&6; }
24810 if ${gl_cv_func_strtok_r_works+:} false
; then :
24811 $as_echo_n "(cached) " >&6
24813 if test "$cross_compiling" = yes; then :
24816 # Guess no on glibc systems.
24817 *-gnu*) gl_cv_func_strtok_r_works
="guessing no";;
24818 *) gl_cv_func_strtok_r_works
="guessing yes";;
24822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24823 /* end confdefs.h. */
24825 #ifndef __OPTIMIZE__
24826 # define __OPTIMIZE__ 1
24828 #undef __OPTIMIZE_SIZE__
24829 #undef __NO_INLINE__
24830 #include <stdlib.h>
24831 #include <string.h>
24836 static const char dummy[] = "\177\01a";
24837 char delimiters[] = "xxxxxxxx";
24838 char *save_ptr = (char *) dummy;
24839 strtok_r (delimiters, "x", &save_ptr);
24840 strtok_r (NULL, "x", &save_ptr);
24848 if ac_fn_c_try_run
"$LINENO"; then :
24849 gl_cv_func_strtok_r_works
=yes
24851 gl_cv_func_strtok_r_works
=no
24853 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24854 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
24860 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
24861 case "$gl_cv_func_strtok_r_works" in
24863 UNDEFINE_STRTOK_R
=1
24876 if test $ac_cv_have_decl_strtok_r = no
; then
24877 HAVE_DECL_STRTOK_R
=0
24880 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
24889 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
24906 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
24932 if test $gl_cv_have_include_next = yes; then
24933 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24936 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24937 if ${gl_cv_next_sys_stat_h+:} false
; then :
24938 $as_echo_n "(cached) " >&6
24941 if test $ac_cv_header_sys_stat_h = yes; then
24946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24947 /* end confdefs.h. */
24948 #include <sys/stat.h>
24951 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24952 *) gl_absname_cpp
="$ac_cpp" ;;
24957 gl_dirsep_regex
='[/\\]'
24960 gl_dirsep_regex
='\/'
24963 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24964 gl_header_literal_regex
=`echo 'sys/stat.h' \
24965 | sed -e "$gl_make_literal_regex_sed"`
24966 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24967 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24973 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24974 sed -n "$gl_absolute_header_sed"`
24976 gl_header
=$gl_cv_absolute_sys_stat_h
24977 gl_cv_next_sys_stat_h
='"'$gl_header'"'
24979 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24985 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24987 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
24989 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24991 gl_next_as_first_directive
='<'sys
/stat.h
'>'
24993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24994 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
24996 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
25008 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25010 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25014 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25015 #include <sys/stat.h>
25017 if test "x$ac_cv_type_nlink_t" = xyes
; then :
25021 $as_echo "#define nlink_t int" >>confdefs.h
25027 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
25028 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25030 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25031 if eval \
${$as_gl_Symbol+:} false
; then :
25032 $as_echo_n "(cached) " >&6
25034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25035 /* end confdefs.h. */
25036 #include <sys/stat.h>
25047 if ac_fn_c_try_compile
"$LINENO"; then :
25048 eval "$as_gl_Symbol=yes"
25050 eval "$as_gl_Symbol=no"
25052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25054 eval ac_res
=\$
$as_gl_Symbol
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25056 $as_echo "$ac_res" >&6; }
25057 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25058 cat >>confdefs.h
<<_ACEOF
25059 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25062 eval ac_cv_have_decl_
$gl_func=yes
25091 if test $gl_cv_have_include_next = yes; then
25092 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
25095 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
25096 if ${gl_cv_next_sys_uio_h+:} false
; then :
25097 $as_echo_n "(cached) " >&6
25100 if test $ac_cv_header_sys_uio_h = yes; then
25105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25106 /* end confdefs.h. */
25107 #include <sys/uio.h>
25110 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25111 *) gl_absname_cpp
="$ac_cpp" ;;
25116 gl_dirsep_regex
='[/\\]'
25119 gl_dirsep_regex
='\/'
25122 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25123 gl_header_literal_regex
=`echo 'sys/uio.h' \
25124 | sed -e "$gl_make_literal_regex_sed"`
25125 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25126 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25132 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25133 sed -n "$gl_absolute_header_sed"`
25135 gl_header
=$gl_cv_absolute_sys_uio_h
25136 gl_cv_next_sys_uio_h
='"'$gl_header'"'
25138 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
25144 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
25146 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
25148 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25150 gl_next_as_first_directive
='<'sys
/uio.h
'>'
25152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25153 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
25155 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
25160 if test $ac_cv_header_sys_uio_h = yes; then
25194 if test $gl_cv_have_include_next = yes; then
25195 gl_cv_next_unistd_h
='<'unistd.h
'>'
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25198 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25199 if ${gl_cv_next_unistd_h+:} false
; then :
25200 $as_echo_n "(cached) " >&6
25203 if test $ac_cv_header_unistd_h = yes; then
25208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25209 /* end confdefs.h. */
25210 #include <unistd.h>
25213 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25214 *) gl_absname_cpp
="$ac_cpp" ;;
25219 gl_dirsep_regex
='[/\\]'
25222 gl_dirsep_regex
='\/'
25225 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25226 gl_header_literal_regex
=`echo 'unistd.h' \
25227 | sed -e "$gl_make_literal_regex_sed"`
25228 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25229 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25235 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25236 sed -n "$gl_absolute_header_sed"`
25238 gl_header
=$gl_cv_absolute_unistd_h
25239 gl_cv_next_unistd_h
='"'$gl_header'"'
25241 gl_cv_next_unistd_h
='<'unistd.h
'>'
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25247 $as_echo "$gl_cv_next_unistd_h" >&6; }
25249 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
25251 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25253 gl_next_as_first_directive
='<'unistd.h
'>'
25255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25256 gl_next_as_first_directive
=$gl_cv_next_unistd_h
25258 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
25263 if test $ac_cv_header_unistd_h = yes; then
25275 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
25276 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25278 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25279 if eval \
${$as_gl_Symbol+:} false
; then :
25280 $as_echo_n "(cached) " >&6
25282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25283 /* end confdefs.h. */
25286 # include <unistd.h>
25288 /* Some systems declare various items in the wrong headers. */
25289 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25290 # include <fcntl.h>
25291 # include <stdio.h>
25292 # include <stdlib.h>
25293 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25307 if ac_fn_c_try_compile
"$LINENO"; then :
25308 eval "$as_gl_Symbol=yes"
25310 eval "$as_gl_Symbol=no"
25312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25314 eval ac_res
=\$
$as_gl_Symbol
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25316 $as_echo "$ac_res" >&6; }
25317 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25318 cat >>confdefs.h
<<_ACEOF
25319 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25322 eval ac_cv_have_decl_
$gl_func=yes
25345 if test $ac_cv_have_decl_unsetenv = no
; then
25346 HAVE_DECL_UNSETENV
=0
25348 for ac_func
in unsetenv
25350 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25351 if test "x$ac_cv_func_unsetenv" = xyes
; then :
25352 cat >>confdefs.h
<<_ACEOF
25353 #define HAVE_UNSETENV 1
25359 if test $ac_cv_func_unsetenv = no
; then
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25364 $as_echo_n "checking for unsetenv() return type... " >&6; }
25365 if ${gt_cv_func_unsetenv_ret+:} false
; then :
25366 $as_echo_n "(cached) " >&6
25368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h. */
25372 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25373 #include <stdlib.h>
25378 int unsetenv (const char *name);
25388 if ac_fn_c_try_compile
"$LINENO"; then :
25389 gt_cv_func_unsetenv_ret
='int'
25391 gt_cv_func_unsetenv_ret
='void'
25393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25396 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25397 if test $gt_cv_func_unsetenv_ret = 'void'; then
25399 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25405 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25406 if ${gl_cv_func_unsetenv_works+:} false
; then :
25407 $as_echo_n "(cached) " >&6
25409 if test "$cross_compiling" = yes; then :
25411 # Guess yes on glibc systems.
25412 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
25413 # If we don't know, assume the worst.
25414 *) gl_cv_func_unsetenv_works
="guessing no" ;;
25418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25419 /* end confdefs.h. */
25421 #include <stdlib.h>
25423 extern char **environ;
25429 char entry1[] = "a=1";
25430 char entry2[] = "b=2";
25431 char *env[] = { entry1, entry2, NULL };
25432 if (putenv ((char *) "a=1")) return 1;
25433 if (putenv (entry2)) return 2;
25436 if (getenv ("a")) return 3;
25437 if (!unsetenv ("") || errno != EINVAL) return 4;
25440 if (!getenv ("a")) return 5;
25443 if (getenv ("a")) return 6;
25449 if ac_fn_c_try_run
"$LINENO"; then :
25450 gl_cv_func_unsetenv_works
=yes
25452 gl_cv_func_unsetenv_works
=no
25454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25460 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25461 case "$gl_cv_func_unsetenv_works" in
25469 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
25478 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
25502 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
25524 if test $gl_cv_have_include_next = yes; then
25525 gl_cv_next_wchar_h
='<'wchar.h
'>'
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
25528 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
25529 if ${gl_cv_next_wchar_h+:} false
; then :
25530 $as_echo_n "(cached) " >&6
25533 if test $ac_cv_header_wchar_h = yes; then
25538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25539 /* end confdefs.h. */
25543 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25544 *) gl_absname_cpp
="$ac_cpp" ;;
25549 gl_dirsep_regex
='[/\\]'
25552 gl_dirsep_regex
='\/'
25555 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25556 gl_header_literal_regex
=`echo 'wchar.h' \
25557 | sed -e "$gl_make_literal_regex_sed"`
25558 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25559 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25565 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25566 sed -n "$gl_absolute_header_sed"`
25568 gl_header
=$gl_cv_absolute_wchar_h
25569 gl_cv_next_wchar_h
='"'$gl_header'"'
25571 gl_cv_next_wchar_h
='<'wchar.h
'>'
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25577 $as_echo "$gl_cv_next_wchar_h" >&6; }
25579 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
25581 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25582 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25583 gl_next_as_first_directive
='<'wchar.h
'>'
25585 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25586 gl_next_as_first_directive
=$gl_cv_next_wchar_h
25588 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
25593 if test $ac_cv_header_wchar_h = yes; then
25603 if test $gt_cv_c_wint_t = yes; then
25611 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
25612 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25614 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25615 if eval \
${$as_gl_Symbol+:} false
; then :
25616 $as_echo_n "(cached) " >&6
25618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25619 /* end confdefs.h. */
25621 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25623 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25624 included before <wchar.h>. */
25625 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25626 # include <stddef.h>
25627 # include <stdio.h>
25641 if ac_fn_c_try_compile
"$LINENO"; then :
25642 eval "$as_gl_Symbol=yes"
25644 eval "$as_gl_Symbol=no"
25646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25648 eval ac_res
=\$
$as_gl_Symbol
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25650 $as_echo "$ac_res" >&6; }
25651 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25652 cat >>confdefs.h
<<_ACEOF
25653 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25656 eval ac_cv_have_decl_
$gl_func=yes
25672 if test $ac_cv_func_iswcntrl = yes; then
25680 if test $gt_cv_c_wint_t = yes; then
25702 if test $gl_cv_have_include_next = yes; then
25703 gl_cv_next_wctype_h
='<'wctype.h
'>'
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
25706 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
25707 if ${gl_cv_next_wctype_h+:} false
; then :
25708 $as_echo_n "(cached) " >&6
25711 if test $ac_cv_header_wctype_h = yes; then
25716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25717 /* end confdefs.h. */
25718 #include <wctype.h>
25721 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25722 *) gl_absname_cpp
="$ac_cpp" ;;
25727 gl_dirsep_regex
='[/\\]'
25730 gl_dirsep_regex
='\/'
25733 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25734 gl_header_literal_regex
=`echo 'wctype.h' \
25735 | sed -e "$gl_make_literal_regex_sed"`
25736 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25737 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25743 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25744 sed -n "$gl_absolute_header_sed"`
25746 gl_header
=$gl_cv_absolute_wctype_h
25747 gl_cv_next_wctype_h
='"'$gl_header'"'
25749 gl_cv_next_wctype_h
='<'wctype.h
'>'
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
25755 $as_echo "$gl_cv_next_wctype_h" >&6; }
25757 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
25759 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25761 gl_next_as_first_directive
='<'wctype.h
'>'
25763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25764 gl_next_as_first_directive
=$gl_cv_next_wctype_h
25766 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
25771 if test $ac_cv_header_wctype_h = yes; then
25772 if test $ac_cv_func_iswcntrl = yes; then
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
25774 $as_echo_n "checking whether iswcntrl works... " >&6; }
25775 if ${gl_cv_func_iswcntrl_works+:} false
; then :
25776 $as_echo_n "(cached) " >&6
25779 if test "$cross_compiling" = yes; then :
25780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25781 /* end confdefs.h. */
25782 #include <stdlib.h>
25783 #if __GNU_LIBRARY__ == 1
25784 Linux libc5 i18n is broken.
25794 if ac_fn_c_try_compile
"$LINENO"; then :
25795 gl_cv_func_iswcntrl_works
="guessing yes"
25797 gl_cv_func_iswcntrl_works
="guessing no"
25799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25803 /* end confdefs.h. */
25805 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25806 included before <wchar.h>.
25807 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25808 must be included before <wchar.h>. */
25809 #include <stddef.h>
25813 #include <wctype.h>
25814 int main () { return iswprint ('x') == 0; }
25817 if ac_fn_c_try_run
"$LINENO"; then :
25818 gl_cv_func_iswcntrl_works
=yes
25820 gl_cv_func_iswcntrl_works
=no
25822 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25823 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
25829 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
25837 case "$gl_cv_func_iswcntrl_works" in
25838 *yes) REPLACE_ISWCNTRL
=0 ;;
25839 *) REPLACE_ISWCNTRL
=1 ;;
25843 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
25847 if test $REPLACE_ISWCNTRL = 1; then
25850 for ac_func
in towlower
25852 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
25853 if test "x$ac_cv_func_towlower" = xyes
; then :
25854 cat >>confdefs.h
<<_ACEOF
25855 #define HAVE_TOWLOWER 1
25861 if test $ac_cv_func_towlower = yes; then
25864 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25865 included before <wchar.h>.
25866 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25867 must be included before <wchar.h>. */
25868 #include <stddef.h>
25873 # include <wctype.h>
25877 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
25883 cat >>confdefs.h
<<_ACEOF
25884 #define HAVE_DECL_TOWLOWER $ac_have_decl
25887 if test $ac_cv_have_decl_towlower = yes; then
25896 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
25901 $as_echo_n "checking for wctype_t... " >&6; }
25902 if ${gl_cv_type_wctype_t+:} false
; then :
25903 $as_echo_n "(cached) " >&6
25905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25906 /* end confdefs.h. */
25907 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25908 included before <wchar.h>.
25909 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25910 must be included before <wchar.h>. */
25911 #include <stddef.h>
25916 # include <wctype.h>
25928 if ac_fn_c_try_compile
"$LINENO"; then :
25929 gl_cv_type_wctype_t
=yes
25931 gl_cv_type_wctype_t
=no
25933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
25937 $as_echo "$gl_cv_type_wctype_t" >&6; }
25938 if test $gl_cv_type_wctype_t = no
; then
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
25943 $as_echo_n "checking for wctrans_t... " >&6; }
25944 if ${gl_cv_type_wctrans_t+:} false
; then :
25945 $as_echo_n "(cached) " >&6
25947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25948 /* end confdefs.h. */
25949 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
25950 included before <wchar.h>.
25951 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
25952 must be included before <wchar.h>. */
25953 #include <stddef.h>
25957 #include <wctype.h>
25968 if ac_fn_c_try_compile
"$LINENO"; then :
25969 gl_cv_type_wctrans_t
=yes
25971 gl_cv_type_wctrans_t
=no
25973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
25977 $as_echo "$gl_cv_type_wctrans_t" >&6; }
25978 if test $gl_cv_type_wctrans_t = no
; then
25983 for gl_func
in wctype iswctype wctrans towctrans
; do
25984 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25986 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25987 if eval \
${$as_gl_Symbol+:} false
; then :
25988 $as_echo_n "(cached) " >&6
25990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25991 /* end confdefs.h. */
25993 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25995 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25996 included before <wchar.h>. */
25997 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25998 # include <stddef.h>
25999 # include <stdio.h>
26001 # include <wchar.h>
26003 #include <wctype.h>
26014 if ac_fn_c_try_compile
"$LINENO"; then :
26015 eval "$as_gl_Symbol=yes"
26017 eval "$as_gl_Symbol=no"
26019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26021 eval ac_res
=\$
$as_gl_Symbol
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26023 $as_echo "$ac_res" >&6; }
26024 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
26025 cat >>confdefs.h
<<_ACEOF
26026 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26029 eval ac_cv_have_decl_
$gl_func=yes
26034 # End of code from modules
26055 gl_source_base
='tests'
26056 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
26058 gl_module_indicator_condition
=$gltests_WITNESS
26068 LIBGNU_LIBDEPS
="$gl_libdeps"
26070 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
26074 # We don't use automake, but gnulib does. This line lets us generate
26076 am__api_version
='1.15'
26078 # Find a good install program. We prefer a C program (faster),
26079 # so one script is as good as another. But avoid the broken or
26080 # incompatible versions:
26081 # SysV /etc/install, /usr/sbin/install
26082 # SunOS /usr/etc/install
26083 # IRIX /sbin/install
26085 # AmigaOS /C/install, which installs bootblocks on floppy discs
26086 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
26087 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
26088 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
26089 # OS/2's system install, which has a completely different semantic
26090 # ./install, which can be erroneously created by make from ./install.sh.
26091 # Reject install programs that cannot install multiple files.
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
26093 $as_echo_n "checking for a BSD-compatible install... " >&6; }
26094 if test -z "$INSTALL"; then
26095 if ${ac_cv_path_install+:} false
; then :
26096 $as_echo_n "(cached) " >&6
26098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26099 for as_dir
in $PATH
26102 test -z "$as_dir" && as_dir
=.
26103 # Account for people who put trailing slashes in PATH elements.
26104 case $as_dir/ in #((
26105 .
/ | .
// |
/[cC
]/* | \
26106 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
26107 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
26110 # OSF1 and SCO ODT 3.0 have their own names for install.
26111 # Don't use installbsd from OSF since it installs stuff as root
26113 for ac_prog
in ginstall scoinst
install; do
26114 for ac_exec_ext
in '' $ac_executable_extensions; do
26115 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
26116 if test $ac_prog = install &&
26117 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
26118 # AIX install. It has an incompatible calling convention.
26120 elif test $ac_prog = install &&
26121 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
26122 # program-specific install script used by HP pwplus--don't use.
26125 rm -rf conftest.one conftest.two conftest.dir
26126 echo one
> conftest.one
26127 echo two
> conftest.two
26129 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
26130 test -s conftest.one
&& test -s conftest.two
&&
26131 test -s conftest.dir
/conftest.one
&&
26132 test -s conftest.dir
/conftest.two
26134 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
26147 rm -rf conftest.one conftest.two conftest.dir
26150 if test "${ac_cv_path_install+set}" = set; then
26151 INSTALL
=$ac_cv_path_install
26153 # As a last resort, use the slow shell script. Don't cache a
26154 # value for INSTALL within a source directory, because that will
26155 # break other packages using the cache if that directory is
26156 # removed, or if the value is a relative name.
26157 INSTALL
=$ac_install_sh
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
26161 $as_echo "$INSTALL" >&6; }
26163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
26164 # It thinks the first close brace ends the variable substitution.
26165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
26167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
26169 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
26172 $as_echo_n "checking whether build environment is sane... " >&6; }
26173 # Reject unsafe characters in $srcdir or the absolute working directory
26174 # name. Accept space and tab only in the latter.
26178 *[\\\"\
#\$\&\'\`$am_lf]*)
26179 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
26182 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
26183 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
26186 # Do 'set' in a subshell so we don't clobber the current shell's
26187 # arguments. Must try -L first in case configure is actually a
26188 # symlink; some systems play weird games with the mod time of symlinks
26189 # (eg FreeBSD returns the mod time of the symlink's containing
26193 for am_try
in 1 2; do
26194 echo "timestamp, slept: $am_has_slept" > conftest.
file
26195 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
26196 if test "$*" = "X"; then
26198 set X
`ls -t "$srcdir/configure" conftest.file`
26200 if test "$*" != "X $srcdir/configure conftest.file" \
26201 && test "$*" != "X conftest.file $srcdir/configure"; then
26203 # If neither matched, then we have a broken ls. This can happen
26204 # if, for instance, CONFIG_SHELL is bash and it inherits a
26205 # broken ls alias from the environment. This has actually
26206 # happened. Such a system could not be considered "sane".
26207 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
26208 alias in your environment" "$LINENO" 5
26210 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
26217 test "$2" = conftest.
file
26223 as_fn_error $?
"newly created file is older than distributed files!
26224 Check your system clock" "$LINENO" 5
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26227 $as_echo "yes" >&6; }
26228 # If we didn't sleep, we still need to ensure time stamps of config.status and
26229 # generated files are strictly newer.
26231 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
26236 rm -f conftest.
file
26238 test "$program_prefix" != NONE
&&
26239 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
26240 # Use a double $ so make ignores it.
26241 test "$program_suffix" != NONE
&&
26242 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
26243 # Double any \ or $.
26244 # By default was `s,x,x', remove it if useless.
26245 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
26246 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
26248 if test x
"${MISSING+set}" != xset
; then
26249 case $am_aux_dir in
26251 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
26253 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
26256 # Use eval to expand $SHELL
26257 if eval "$MISSING --is-lightweight"; then
26258 am_missing_run
="$MISSING "
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
26262 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26265 if test x
"${install_sh+set}" != xset
; then
26266 case $am_aux_dir in
26268 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
26270 install_sh
="\${SHELL} $am_aux_dir/install-sh"
26274 # Installed binaries are usually stripped using 'strip' when the user
26275 # run "make install-strip". However 'strip' might not be the right
26276 # tool to use in cross-compilation environments, therefore Automake
26277 # will honor the 'STRIP' environment variable to overrule this program.
26278 if test "$cross_compiling" != no
; then
26279 if test -n "$ac_tool_prefix"; then
26280 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26281 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26283 $as_echo_n "checking for $ac_word... " >&6; }
26284 if ${ac_cv_prog_STRIP+:} false
; then :
26285 $as_echo_n "(cached) " >&6
26287 if test -n "$STRIP"; then
26288 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
26290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26291 for as_dir
in $PATH
26294 test -z "$as_dir" && as_dir
=.
26295 for ac_exec_ext
in '' $ac_executable_extensions; do
26296 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26297 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
26298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26307 STRIP
=$ac_cv_prog_STRIP
26308 if test -n "$STRIP"; then
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26310 $as_echo "$STRIP" >&6; }
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26313 $as_echo "no" >&6; }
26318 if test -z "$ac_cv_prog_STRIP"; then
26320 # Extract the first word of "strip", so it can be a program name with args.
26321 set dummy strip
; ac_word
=$2
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26323 $as_echo_n "checking for $ac_word... " >&6; }
26324 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
26325 $as_echo_n "(cached) " >&6
26327 if test -n "$ac_ct_STRIP"; then
26328 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
26330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26331 for as_dir
in $PATH
26334 test -z "$as_dir" && as_dir
=.
26335 for ac_exec_ext
in '' $ac_executable_extensions; do
26336 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26337 ac_cv_prog_ac_ct_STRIP
="strip"
26338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26347 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
26348 if test -n "$ac_ct_STRIP"; then
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
26350 $as_echo "$ac_ct_STRIP" >&6; }
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26353 $as_echo "no" >&6; }
26356 if test "x$ac_ct_STRIP" = x
; then
26359 case $cross_compiling:$ac_tool_warned in
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26363 ac_tool_warned
=yes ;;
26368 STRIP
="$ac_cv_prog_STRIP"
26372 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
26374 for ac_prog
in gawk mawk nawk
awk
26376 # Extract the first word of "$ac_prog", so it can be a program name with args.
26377 set dummy
$ac_prog; ac_word
=$2
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26379 $as_echo_n "checking for $ac_word... " >&6; }
26380 if ${ac_cv_prog_AWK+:} false
; then :
26381 $as_echo_n "(cached) " >&6
26383 if test -n "$AWK"; then
26384 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
26386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26387 for as_dir
in $PATH
26390 test -z "$as_dir" && as_dir
=.
26391 for ac_exec_ext
in '' $ac_executable_extensions; do
26392 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
26393 ac_cv_prog_AWK
="$ac_prog"
26394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26403 AWK
=$ac_cv_prog_AWK
26404 if test -n "$AWK"; then
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
26406 $as_echo "$AWK" >&6; }
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26409 $as_echo "no" >&6; }
26413 test -n "$AWK" && break
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
26417 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
26419 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
26420 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
26421 $as_echo_n "(cached) " >&6
26423 cat >conftest.
make <<\_ACEOF
26426 @
echo '@@@%%%=$(MAKE)=@@@%%%'
26428 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26429 case `${MAKE-make} -f conftest.make 2>/dev/null` in
26430 *@@@
%%%=?
*=@@@
%%%*)
26431 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
26433 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
26435 rm -f conftest.
make
26437 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26439 $as_echo "yes" >&6; }
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26443 $as_echo "no" >&6; }
26444 SET_MAKE
="MAKE=${MAKE-make}"
26447 rm -rf .tst
2>/dev
/null
26448 mkdir .tst
2>/dev
/null
26449 if test -d .tst
; then
26454 rmdir .tst
2>/dev
/null
26456 DEPDIR
="${am__leading_dot}deps"
26458 ac_config_commands
="$ac_config_commands depfiles"
26461 am_make
=${MAKE-make}
26462 cat > confinc
<< 'END'
26464 @
echo this is the am__doit target
26467 # If we don't find an include directive, just comment out the code.
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
26469 $as_echo_n "checking for style of include used by $am_make... " >&6; }
26473 # First try GNU make style include.
26474 echo "include confinc" > confmf
26475 # Ignore all kinds of additional output from 'make'.
26476 case `$am_make -s -f confmf 2> /dev/null` in #(
26477 *the\ am__doit\ target
*)
26478 am__include
=include
26483 # Now try BSD make style include.
26484 if test "$am__include" = "#"; then
26485 echo '.include "confinc"' > confmf
26486 case `$am_make -s -f confmf 2> /dev/null` in #(
26487 *the\ am__doit\ target
*)
26488 am__include
=.include
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
26497 $as_echo "$_am_result" >&6; }
26498 rm -f confinc confmf
26500 # Check whether --enable-dependency-tracking was given.
26501 if test "${enable_dependency_tracking+set}" = set; then :
26502 enableval
=$enable_dependency_tracking;
26505 if test "x$enable_dependency_tracking" != xno
; then
26506 am_depcomp
="$ac_aux_dir/depcomp"
26510 if test "x$enable_dependency_tracking" != xno; then
26519 # Check whether --enable-silent-rules was given.
26520 if test "${enable_silent_rules+set}" = set; then :
26521 enableval
=$enable_silent_rules;
26524 case $enable_silent_rules in # (((
26525 yes) AM_DEFAULT_VERBOSITY
=0;;
26526 no
) AM_DEFAULT_VERBOSITY
=1;;
26527 *) AM_DEFAULT_VERBOSITY
=1;;
26529 am_make
=${MAKE-make}
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
26531 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
26532 if ${am_cv_make_support_nested_variables+:} false
; then :
26533 $as_echo_n "(cached) " >&6
26535 if $as_echo 'TRUE=$(BAR$(V))
26541 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
26542 am_cv_make_support_nested_variables
=yes
26544 am_cv_make_support_nested_variables
=no
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
26548 $as_echo "$am_cv_make_support_nested_variables" >&6; }
26549 if test $am_cv_make_support_nested_variables = yes; then
26551 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
26553 AM_V
=$AM_DEFAULT_VERBOSITY
26554 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
26558 if test "`cd $srcdir && pwd`" != "`pwd`"; then
26559 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
26560 # is not polluted with repeated "-I."
26561 am__isrc
=' -I$(srcdir)'
26562 # test to see if srcdir already configured
26563 if test -f $srcdir/config.status
; then
26564 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
26568 # test whether we have cygpath
26569 if test -z "$CYGPATH_W"; then
26570 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
26571 CYGPATH_W
='cygpath -w'
26578 # Define the identity of the package.
26580 VERSION
='UNUSED-VERSION'
26583 # Some tools Automake needs.
26585 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
26588 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
26591 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
26594 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
26597 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
26599 # For better backward compatibility. To be removed once Automake 1.9.x
26600 # dies out for good. For more background, see:
26601 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
26602 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
26603 mkdir_p
='$(MKDIR_P)'
26605 # We need awk for the "check" target (and possibly the TAP driver). The
26606 # system "awk" is bad on some platforms.
26607 # Always define AMTAR for backward compatibility. Yes, it's still used
26608 # in the wild :-( We should find a proper way to deprecate it ...
26609 AMTAR
='$${TAR-tar}'
26612 # We'll loop over all known methods to create a tar archive until one works.
26613 _am_tools
='gnutar pax cpio none'
26615 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
26621 depcc
="$CC" am_compiler_list
=
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26624 $as_echo_n "checking dependency style of $depcc... " >&6; }
26625 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
26626 $as_echo_n "(cached) " >&6
26628 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26629 # We make a subdir and do the tests there. Otherwise we can end up
26630 # making bogus files that we don't know about and never remove. For
26631 # instance it was reported that on HP-UX the gcc test will end up
26632 # making a dummy file named 'D' -- because '-MD' means "put the output
26634 rm -rf conftest.dir
26636 # Copy depcomp to subdir because otherwise we won't find it if we're
26637 # using a relative directory.
26638 cp "$am_depcomp" conftest.dir
26640 # We will build objects and dependencies in a subdirectory because
26641 # it helps to detect inapplicable dependency modes. For instance
26642 # both Tru64's cc and ICC support -MD to output dependencies as a
26643 # side effect of compilation, but ICC will put the dependencies in
26644 # the current directory while Tru64 will put them in the object
26648 am_cv_CC_dependencies_compiler_type
=none
26649 if test "$am_compiler_list" = ""; then
26650 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26652 am__universal
=false
26653 case " $depcc " in #(
26654 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
26657 for depmode
in $am_compiler_list; do
26658 # Setup a source with many dependencies, because some compilers
26659 # like to wrap large dependency lists on column 80 (with \), and
26660 # we should not choose a depcomp mode which is confused by this.
26662 # We need to recreate these files for each test, as the compiler may
26663 # overwrite some of them when testing with obscure command lines.
26664 # This happens at least with the AIX C compiler.
26666 for i
in 1 2 3 4 5 6; do
26667 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
26668 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26669 # Solaris 10 /bin/sh.
26670 echo '/* dummy */' > sub
/conftst
$i.h
26672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26674 # We check with '-c' and '-o' for the sake of the "dashmstdout"
26675 # mode. It turns out that the SunPro C++ compiler does not properly
26676 # handle '-M -o', and we need to detect this. Also, some Intel
26677 # versions had trouble with output in subdirs.
26678 am__obj
=sub
/conftest.
${OBJEXT-o}
26679 am__minus_obj
="-o $am__obj"
26682 # This depmode causes a compiler race in universal mode.
26683 test "$am__universal" = false ||
continue
26686 # After this tag, mechanisms are not by side-effect, so they'll
26687 # only be used when explicitly requested.
26688 if test "x$enable_dependency_tracking" = xyes
; then
26694 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
26695 # This compiler won't grok '-c -o', but also, the minuso test has
26696 # not run yet. These depmodes are late enough in the game, and
26697 # so weak that their functioning should not be impacted.
26698 am__obj
=conftest.
${OBJEXT-o}
26703 if depmode
=$depmode \
26704 source=sub
/conftest.c object
=$am__obj \
26705 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
26706 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
26707 >/dev
/null
2>conftest.err
&&
26708 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
26709 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
26710 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
26711 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
26712 # icc doesn't choke on unknown options, it will just issue warnings
26713 # or remarks (even with -Werror). So we grep stderr for any message
26714 # that says an option was ignored or not supported.
26715 # When given -MP, icc 7.0 and 7.1 complain thusly:
26716 # icc: Command line warning: ignoring option '-M'; no argument required
26717 # The diagnosis changed in icc 8.0:
26718 # icc: Command line remark: option '-MP' not supported
26719 if (grep 'ignoring option' conftest.err ||
26720 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
26721 am_cv_CC_dependencies_compiler_type
=$depmode
26728 rm -rf conftest.dir
26730 am_cv_CC_dependencies_compiler_type
=none
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
26735 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
26736 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
26739 test "x$enable_dependency_tracking" != xno \
26740 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
26741 am__fastdepCC_TRUE
=
26742 am__fastdepCC_FALSE
='#'
26744 am__fastdepCC_TRUE
='#'
26745 am__fastdepCC_FALSE
=
26750 # POSIX will say in a future version that running "rm -f" with no argument
26751 # is OK; and we want to be able to make that assumption in our Makefile
26752 # recipes. So use an aggressive probe to check that the usage we want is
26753 # actually supported "in the wild" to an acceptable degree.
26754 # See automake bug#10828.
26755 # To make any issue more visible, cause the running configure to be aborted
26756 # by default if the 'rm' program in use doesn't match our expectations; the
26757 # user can still override this though.
26758 if rm -f && rm -fr && rm -rf; then : OK
; else
26762 Your 'rm' program seems unable to run without file operands specified
26763 on the command line, even when the '-f' option is present. This is contrary
26764 to the behaviour of most rm programs out there, and not conforming with
26765 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
26767 Please tell bug-automake@gnu.org about your system, including the value
26768 of your $PATH and any error possibly output before this message. This
26769 can help us improve future automake versions.
26772 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
26773 echo 'Configuration will proceed anyway, since you have set the' >&2
26774 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
26778 Aborting the configuration process, to ensure you take notice of the issue.
26780 You can download and install GNU coreutils to get an 'rm' implementation
26781 that behaves properly: <http://www.gnu.org/software/coreutils/>.
26783 If you want to complete the configuration process using your problematic
26784 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
26785 to "yes", and re-run configure.
26788 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
26793 # Check whether --enable-silent-rules was given.
26794 if test "${enable_silent_rules+set}" = set; then :
26795 enableval
=$enable_silent_rules;
26798 case $enable_silent_rules in # (((
26799 yes) AM_DEFAULT_VERBOSITY
=0;;
26800 no
) AM_DEFAULT_VERBOSITY
=1;;
26801 *) AM_DEFAULT_VERBOSITY
=0;;
26803 am_make
=${MAKE-make}
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
26805 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
26806 if ${am_cv_make_support_nested_variables+:} false
; then :
26807 $as_echo_n "(cached) " >&6
26809 if $as_echo 'TRUE=$(BAR$(V))
26815 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
26816 am_cv_make_support_nested_variables
=yes
26818 am_cv_make_support_nested_variables
=no
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
26822 $as_echo "$am_cv_make_support_nested_variables" >&6; }
26823 if test $am_cv_make_support_nested_variables = yes; then
26825 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
26827 AM_V
=$AM_DEFAULT_VERBOSITY
26828 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
26833 # --------------------- #
26834 # Checks for programs. #
26835 # --------------------- #
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
26839 $as_echo_n "checking whether ln -s works... " >&6; }
26841 if test "$LN_S" = "ln -s"; then
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26843 $as_echo "yes" >&6; }
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
26846 $as_echo "no, using $LN_S" >&6; }
26849 if test -n "$ac_tool_prefix"; then
26850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
26851 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26853 $as_echo_n "checking for $ac_word... " >&6; }
26854 if ${ac_cv_prog_RANLIB+:} false; then :
26855 $as_echo_n "(cached) " >&6
26857 if test -n "$RANLIB"; then
26858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
26860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26861 for as_dir in $PATH
26864 test -z "$as_dir" && as_dir=.
26865 for ac_exec_ext in '' $ac_executable_extensions; do
26866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26867 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
26868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26877 RANLIB=$ac_cv_prog_RANLIB
26878 if test -n "$RANLIB"; then
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
26880 $as_echo "$RANLIB" >&6; }
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26883 $as_echo "no" >&6; }
26888 if test -z "$ac_cv_prog_RANLIB"; then
26889 ac_ct_RANLIB=$RANLIB
26890 # Extract the first word of "ranlib", so it can be a program name with args.
26891 set dummy ranlib; ac_word=$2
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26893 $as_echo_n "checking for $ac_word... " >&6; }
26894 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
26895 $as_echo_n "(cached) " >&6
26897 if test -n "$ac_ct_RANLIB"; then
26898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
26900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26901 for as_dir in $PATH
26904 test -z "$as_dir" && as_dir=.
26905 for ac_exec_ext in '' $ac_executable_extensions; do
26906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26907 ac_cv_prog_ac_ct_RANLIB="ranlib"
26908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26917 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
26918 if test -n "$ac_ct_RANLIB"; then
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
26920 $as_echo "$ac_ct_RANLIB" >&6; }
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26923 $as_echo "no" >&6; }
26926 if test "x$ac_ct_RANLIB" = x; then
26929 case $cross_compiling:$ac_tool_warned in
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26933 ac_tool_warned=yes ;;
26935 RANLIB=$ac_ct_RANLIB
26938 RANLIB="$ac_cv_prog_RANLIB"
26942 if test -n "$ac_tool_prefix"; then
26943 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
26944 set dummy ${ac_tool_prefix}ar; ac_word=$2
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26946 $as_echo_n "checking for $ac_word... " >&6; }
26947 if ${ac_cv_prog_AR+:} false; then :
26948 $as_echo_n "(cached) " >&6
26950 if test -n "$AR"; then
26951 ac_cv_prog_AR="$AR" # Let the user override the test.
26953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26954 for as_dir in $PATH
26957 test -z "$as_dir" && as_dir=.
26958 for ac_exec_ext in '' $ac_executable_extensions; do
26959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26960 ac_cv_prog_AR="${ac_tool_prefix}ar"
26961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26971 if test -n "$AR"; then
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
26973 $as_echo "$AR" >&6; }
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26976 $as_echo "no" >&6; }
26981 if test -z "$ac_cv_prog_AR"; then
26983 # Extract the first word of "ar", so it can be a program name with args.
26984 set dummy ar; ac_word=$2
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26986 $as_echo_n "checking for $ac_word... " >&6; }
26987 if ${ac_cv_prog_ac_ct_AR+:} false; then :
26988 $as_echo_n "(cached) " >&6
26990 if test -n "$ac_ct_AR"; then
26991 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
26993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26994 for as_dir in $PATH
26997 test -z "$as_dir" && as_dir=.
26998 for ac_exec_ext in '' $ac_executable_extensions; do
26999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27000 ac_cv_prog_ac_ct_AR="ar"
27001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27010 ac_ct_AR=$ac_cv_prog_ac_ct_AR
27011 if test -n "$ac_ct_AR"; then
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
27013 $as_echo "$ac_ct_AR" >&6; }
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27016 $as_echo "no" >&6; }
27019 if test "x$ac_ct_AR" = x; then
27022 case $cross_compiling:$ac_tool_warned in
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27026 ac_tool_warned=yes ;;
27031 AR="$ac_cv_prog_AR"
27035 # ---------------------- #
27036 # Checks for libraries. #
27037 # ---------------------- #
27039 ac_config_files="$ac_config_files Makefile import/Makefile"
27041 ac_config_commands="$ac_config_commands default"
27043 cat >confcache <<\_ACEOF
27044 # This file is a shell script that caches the results of configure
27045 # tests run on this system so they can be shared between configure
27046 # scripts and configure runs, see configure's option
--config-cache.
27047 # It is not useful on other systems. If it contains results you don't
27048 # want to keep, you may remove or edit it.
27050 # config.status only pays attention to the cache file if you give it
27051 # the --recheck option to rerun configure.
27053 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27054 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27055 # following values.
27059 # The following way of writing the cache mishandles newlines in values,
27060 # but we know of no workaround that is simple, portable, and efficient.
27061 # So, we kill variables containing newlines.
27062 # Ultrix sh set writes to stderr and can't be redirected directly,
27063 # and sets the high bit in the cache file unless we assign to the vars.
27065 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27066 eval ac_val
=\$
$ac_var
27070 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27074 _ | IFS | as_nl
) ;; #(
27075 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27076 *) { eval $ac_var=; unset $ac_var;} ;;
27082 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27083 *${as_nl}ac_space
=\
*)
27084 # `set' does not quote correctly, so add quotes: double-quote
27085 # substitution turns \\\\ into \\, and sed turns \\ into \.
27088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27091 # `set' quotes correctly as required by POSIX, so do not add quotes.
27092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27101 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27103 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27105 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27106 if test -w "$cache_file"; then
27107 if test "x$cache_file" != "x/dev/null"; then
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27109 $as_echo "$as_me: updating cache $cache_file" >&6;}
27110 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
27111 cat confcache
>"$cache_file"
27113 case $cache_file in #(
27115 mv -f confcache
"$cache_file"$$
&&
27116 mv -f "$cache_file"$$
"$cache_file" ;; #(
27118 mv -f confcache
"$cache_file" ;;
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27124 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27129 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27130 # Let make expand exec_prefix.
27131 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27133 DEFS
=-DHAVE_CONFIG_H
27137 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27138 # 1. Remove the extension, and $U if already installed.
27139 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27140 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27141 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27142 # will be set to the directory where LIBOBJS objects are built.
27143 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27144 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27146 LIBOBJS
=$ac_libobjs
27148 LTLIBOBJS
=$ac_ltlibobjs
27151 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27152 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
27153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27155 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27156 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
27157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27159 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27160 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27163 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
27164 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
27165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27167 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
27168 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
27169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27171 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
27172 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
27173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27175 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
27176 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
27177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27179 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27180 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27183 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
27184 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
27185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27187 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27188 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
27189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27193 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
27194 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
27195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27197 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27198 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27201 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27202 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27205 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27206 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27212 if test -n "$gl_LIBOBJS"; then
27213 # Remove the extension.
27214 sed_drop_objext
='s/\.o$//;s/\.obj$//'
27215 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27216 gl_libobjs
="$gl_libobjs $i.$ac_objext"
27217 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
27220 gl_LIBOBJS
=$gl_libobjs
27222 gl_LTLIBOBJS
=$gl_ltlibobjs
27228 if test -n "$gltests_LIBOBJS"; then
27229 # Remove the extension.
27230 sed_drop_objext
='s/\.o$//;s/\.obj$//'
27231 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27232 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
27233 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
27236 gltests_LIBOBJS
=$gltests_libobjs
27238 gltests_LTLIBOBJS
=$gltests_ltlibobjs
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
27242 $as_echo_n "checking that generated files are newer than configure... " >&6; }
27243 if test -n "$am_sleep_pid"; then
27244 # Hide warnings about reused PIDs.
27245 wait $am_sleep_pid 2>/dev
/null
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
27248 $as_echo "done" >&6; }
27249 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27250 as_fn_error $?
"conditional \"AMDEP\" was never defined.
27251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27253 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27254 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
27255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27257 if test -n "$EXEEXT"; then
27259 am__EXEEXT_FALSE
='#'
27261 am__EXEEXT_TRUE
='#'
27266 : "${CONFIG_STATUS=./config.status}"
27268 ac_clean_files_save
=$ac_clean_files
27269 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27271 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27273 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27275 # Generated by $as_me.
27276 # Run this file to recreate the current configuration.
27277 # Compiler output produced by configure, useful for debugging
27278 # configure, is in config.log if it exists.
27281 ac_cs_recheck=false
27284 SHELL=\${CONFIG_SHELL-$SHELL}
27287 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27288 ## -------------------- ##
27289 ## M4sh Initialization. ##
27290 ## -------------------- ##
27292 # Be more Bourne compatible
27293 DUALCASE
=1; export DUALCASE
# for MKS sh
27294 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27297 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27298 # is contrary to our usage. Disable this feature.
27299 alias -g '${1+"$@"}'='"$@"'
27300 setopt NO_GLOB_SUBST
27302 case `(set -o) 2>/dev/null` in #(
27314 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27315 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27318 # Prefer a ksh shell builtin over an external printf program on Solaris,
27319 # but without wasting forks for bash or zsh.
27320 if test -z "$BASH_VERSION$ZSH_VERSION" \
27321 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27322 as_echo='print
-r --'
27323 as_echo_n='print
-rn --'
27324 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27325 as_echo='printf %s
\n'
27326 as_echo_n='printf %s
'
27328 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27329 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27330 as_echo_n='/usr
/ucb
/echo -n'
27332 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27333 as_echo_n_body='eval
27337 expr "X$arg" : "X\\(.*\\)$as_nl";
27338 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27340 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27342 export as_echo_n_body
27343 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27345 export as_echo_body
27346 as_echo='sh
-c $as_echo_body as_echo
'
27349 # The user is always right.
27350 if test "${PATH_SEPARATOR+set}" != set; then
27352 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27353 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27360 # We need space, tab and new line, in precisely that order. Quoting is
27361 # there to prevent editors from complaining about space-tab.
27362 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27363 # splitting by setting IFS to empty value.)
27366 # Find who we are. Look in the path if we contain no directory separator.
27369 *[\\/]* ) as_myself=$0 ;;
27370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27371 for as_dir in $PATH
27374 test -z "$as_dir" && as_dir=.
27375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27381 # We did not find ourselves, most probably we were run as `sh COMMAND'
27382 # in which case we are not to be found in the path.
27383 if test "x$as_myself" = x
; then
27386 if test ! -f "$as_myself"; then
27387 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27391 # Unset variables that we do not need and which cause bugs (e.g. in
27392 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27393 # suppresses any "Segmentation fault" message there. '((' could
27394 # trigger a bug in pdksh 5.2.14.
27395 for as_var
in BASH_ENV ENV MAIL MAILPATH
27396 do eval test x\
${$as_var+set} = xset \
27397 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27410 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27414 # ----------------------------------------
27415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27417 # script with STATUS, using 1 if that was 0.
27420 as_status
=$1; test $as_status -eq 0 && as_status
=1
27422 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27425 $as_echo "$as_me: error: $2" >&2
27426 as_fn_exit
$as_status
27430 # as_fn_set_status STATUS
27431 # -----------------------
27432 # Set $? to STATUS, without forking.
27433 as_fn_set_status
()
27436 } # as_fn_set_status
27438 # as_fn_exit STATUS
27439 # -----------------
27440 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27444 as_fn_set_status
$1
27450 # Portably unset VAR.
27453 { eval $1=; unset $1;}
27455 as_unset
=as_fn_unset
27456 # as_fn_append VAR VALUE
27457 # ----------------------
27458 # Append the text in VALUE to the end of the definition contained in VAR. Take
27459 # advantage of any shell optimizations that allow amortized linear growth over
27460 # repeated appends, instead of the typical quadratic growth present in naive
27462 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27463 eval 'as_fn_append ()
27474 # as_fn_arith ARG...
27475 # ------------------
27476 # Perform arithmetic evaluation on the ARGs, and store the result in the
27477 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27478 # must be portable across $(()) and expr.
27479 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27480 eval 'as_fn_arith ()
27487 as_val
=`expr "$@" || test $? -eq 1`
27492 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27493 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27499 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27500 as_basename
=basename
27505 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27511 as_me
=`$as_basename -- "$0" ||
27512 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27513 X"$0" : 'X\(//\)$' \| \
27514 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27516 sed '/^.*\/\([^/][^/]*\)\/*$/{
27530 # Avoid depending upon Character Ranges.
27531 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27532 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27533 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27534 as_cr_digits
='0123456789'
27535 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27537 ECHO_C
= ECHO_N
= ECHO_T
=
27538 case `echo -n x` in #(((((
27540 case `echo 'xy\c'` in
27541 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27543 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27550 rm -f conf$$ conf$$.exe conf$$.
file
27551 if test -d conf$$.dir
; then
27552 rm -f conf$$.dir
/conf$$.
file
27555 mkdir conf$$.dir
2>/dev
/null
27557 if (echo >conf$$.
file) 2>/dev
/null
; then
27558 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27560 # ... but there are two gotchas:
27561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27563 # In both cases, we have to default to `cp -pR'.
27564 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27566 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27574 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27575 rmdir conf$$.dir
2>/dev
/null
27580 # Create "$as_dir" as a directory, including parents if necessary.
27585 -*) as_dir
=.
/$as_dir;;
27587 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27591 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27592 *) as_qdir
=$as_dir;;
27594 as_dirs
="'$as_qdir' $as_dirs"
27595 as_dir
=`$as_dirname -- "$as_dir" ||
27596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27597 X"$as_dir" : 'X\(//\)[^/]' \| \
27598 X"$as_dir" : 'X\(//\)$' \| \
27599 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27600 $as_echo X"$as_dir" |
27601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27605 /^X\(\/\/\)[^/].*/{
27618 test -d "$as_dir" && break
27620 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27621 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
27625 if mkdir
-p .
2>/dev
/null
; then
27626 as_mkdir_p
='mkdir -p "$as_dir"'
27628 test -d .
/-p && rmdir .
/-p
27633 # as_fn_executable_p FILE
27634 # -----------------------
27635 # Test if FILE is an executable regular file.
27636 as_fn_executable_p
()
27638 test -f "$1" && test -x "$1"
27639 } # as_fn_executable_p
27640 as_test_x
='test -x'
27641 as_executable_p
=as_fn_executable_p
27643 # Sed expression to map a string onto a valid CPP name.
27644 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27646 # Sed expression to map a string onto a valid variable name.
27647 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27651 ## ----------------------------------- ##
27652 ## Main body of $CONFIG_STATUS script. ##
27653 ## ----------------------------------- ##
27655 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27658 # Save the log message, to keep $0 and so on meaningful, and to
27659 # report actual input values of CONFIG_FILES etc. instead of their
27660 # values after options handling.
27662 This file was extended by libgnu $as_me UNUSED-VERSION, which was
27663 generated by GNU Autoconf 2.69. Invocation command line was
27665 CONFIG_FILES = $CONFIG_FILES
27666 CONFIG_HEADERS = $CONFIG_HEADERS
27667 CONFIG_LINKS = $CONFIG_LINKS
27668 CONFIG_COMMANDS = $CONFIG_COMMANDS
27671 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27676 case $ac_config_files in *"
27677 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27680 case $ac_config_headers in *"
27681 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27686 # Files that config.status was made for.
27687 config_files="$ac_config_files"
27688 config_headers="$ac_config_headers"
27689 config_commands="$ac_config_commands"
27693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27695 \`$as_me' instantiates files and other configuration actions
27696 from templates according to the current configuration. Unless the files
27697 and actions are specified as TAGs, all are instantiated by default.
27699 Usage: $0 [OPTION]... [TAG]...
27701 -h, --help print this help, then exit
27702 -V, --version print version number and configuration settings, then exit
27703 --config print configuration, then exit
27704 -q, --quiet, --silent
27705 do not print progress messages
27706 -d, --debug don't remove temporary files
27707 --recheck update $as_me by reconfiguring in the same conditions
27708 --file=FILE[:TEMPLATE]
27709 instantiate the configuration file FILE
27710 --header=FILE[:TEMPLATE]
27711 instantiate the configuration header FILE
27713 Configuration files:
27716 Configuration headers:
27719 Configuration commands:
27722 Report bugs to the package provider."
27725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27726 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27728 libgnu config.status UNUSED-VERSION
27729 configured by $0, generated by GNU Autoconf 2.69,
27730 with options \\"\$ac_cs_config\\"
27732 Copyright (C) 2012 Free Software Foundation, Inc.
27733 This config.status script is free software; the Free Software Foundation
27734 gives unlimited permission to copy, distribute and modify it."
27741 test -n "\$AWK" || AWK=awk
27744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27745 # The default lists apply if the user does not specify any file.
27751 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27752 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27756 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27768 # Handling of the options.
27769 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27771 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27772 $as_echo "$ac_cs_version"; exit ;;
27773 --config |
--confi |
--conf |
--con |
--co |
--c )
27774 $as_echo "$ac_cs_config"; exit ;;
27775 --debug |
--debu |
--deb |
--de |
--d |
-d )
27777 --file |
--fil |
--fi |
--f )
27780 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27781 '') as_fn_error $?
"missing file argument" ;;
27783 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27784 ac_need_defaults
=false
;;
27785 --header |
--heade |
--head |
--hea )
27788 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27790 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27791 ac_need_defaults
=false
;;
27793 # Conflict between --help and --header
27794 as_fn_error $?
"ambiguous option: \`$1'
27795 Try \`$0 --help' for more information.";;
27796 --help |
--hel |
-h )
27797 $as_echo "$ac_cs_usage"; exit ;;
27798 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27799 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27802 # This is an error.
27803 -*) as_fn_error $?
"unrecognized option: \`$1'
27804 Try \`$0 --help' for more information." ;;
27806 *) as_fn_append ac_config_targets
" $1"
27807 ac_need_defaults
=false
;;
27813 ac_configure_extra_args
=
27815 if $ac_cs_silent; then
27817 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27822 if \$ac_cs_recheck; then
27823 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27825 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27826 CONFIG_SHELL='$SHELL'
27827 export CONFIG_SHELL
27832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27836 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27837 ## Running $as_me. ##
27843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27847 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27853 # Handling of arguments.
27854 for ac_config_target
in $ac_config_targets
27856 case $ac_config_target in
27857 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
27858 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
27859 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27860 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
27861 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27863 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27868 # If the user did not use the arguments to specify the items to instantiate,
27869 # then the envvar interface is used. Set only those that are not.
27870 # We use the long form for the default assignment because of an extremely
27871 # bizarre bug on SunOS 4.1.3.
27872 if $ac_need_defaults; then
27873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27875 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27878 # Have a temporary directory for convenience. Make it in the build tree
27879 # simply because there is no reason against having it here, and in addition,
27880 # creating and moving files from /tmp can sometimes cause problems.
27881 # Hook for its removal unless debugging.
27882 # Note that there is a small window in which the directory will not be cleaned:
27883 # after its creation but before its name has been assigned to `$tmp'.
27887 trap 'exit_status=$?
27888 : "${ac_tmp:=$tmp}"
27889 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27891 trap 'as_fn_exit 1' 1 2 13 15
27893 # Create a (secure) tmp directory for tmp files.
27896 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27900 tmp
=.
/conf$$
-$RANDOM
27901 (umask 077 && mkdir
"$tmp")
27902 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
27905 # Set up the scripts for CONFIG_FILES section.
27906 # No need to generate them if there are no CONFIG_FILES.
27907 # This happens for instance with `./config.status config.h'.
27908 if test -n "$CONFIG_FILES"; then
27911 ac_cr
=`echo X | tr X '\015'`
27912 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27913 # But we know of no other shell where ac_cr would be empty at this
27914 # point, so we can use a bashism as a fallback.
27915 if test "x$ac_cr" = x
; then
27916 eval ac_cr
=\$
\'\\r
\'
27918 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27919 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27922 ac_cs_awk_cr
=$ac_cr
27925 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27930 echo "cat >conf$$subs.awk <<_ACEOF" &&
27931 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27933 } >conf$$subs.sh ||
27934 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27935 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27937 for ac_last_try in false false false false false :; do
27938 . ./conf$$subs.sh ||
27939 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27941 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27942 if test $ac_delim_n = $ac_delim_num; then
27944 elif $ac_last_try; then
27945 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
27947 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27950 rm -f conf$$subs.sh
27952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27953 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
27957 s/^/S["/; s
/!.
*/"]=/
27967 s/\(.\{148\}\)..*/\1/
27969 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27974 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27981 s/\(.\{148\}\)..*/\1/
27983 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27987 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27992 ' <conf$$subs.awk | sed '
27997 ' >>$CONFIG_STATUS || ac_write_fail=1
27998 rm -f conf$$subs.awk
27999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28001 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
28002 for (key in S) S_is_set[key] = 1
28008 nfields = split(line, field, "@
")
28010 len = length(field[1])
28011 for (i = 2; i < nfields; i++) {
28013 keylen = length(key)
28014 if (S_is_set[key]) {
28016 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28017 len += length(value) + length(field[++i])
28028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28029 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28030 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28033 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
28034 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
28037 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28038 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
28039 # trailing colons and then remove the whole line if VPATH becomes empty
28040 # (actually we leave an empty line to preserve line numbers).
28041 if test "x
$srcdir" = x.; then
28042 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28061 fi # test -n "$CONFIG_FILES"
28063 # Set up the scripts for CONFIG_HEADERS section.
28064 # No need to generate them if there are no CONFIG_HEADERS.
28065 # This happens for instance with `./config.status Makefile'.
28066 if test -n "$CONFIG_HEADERS"; then
28067 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
28071 # Transform confdefs.h into an awk script `defines.awk', embedded as
28072 # here-document in config.status, that substitutes the proper values into
28073 # config.h.in to produce config.h.
28075 # Create a delimiter string that does not exist in confdefs.h, to ease
28076 # handling of long lines.
28078 for ac_last_try in false false :; do
28079 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
28080 if test -z "$ac_tt"; then
28082 elif $ac_last_try; then
28083 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
28085 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28089 # For the awk script, D is an array of macro values keyed by name,
28090 # likewise P contains macro parameters if any. Preserve backslash
28091 # newline sequences.
28093 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28095 s/.\{148\}/&'"$ac_delim"'/g
28098 s/^[ ]*#[ ]*define[ ][ ]*/ /
28105 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28107 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28111 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28112 D["\
1"]=" \
3\\\\\\n
"\\/p
28114 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28119 s/.\{148\}/&'"$ac_delim"'/g
28124 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28127 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28129 ' <confdefs.h | sed '
28130 s/'"$ac_delim"'/"\\\
28131 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28134 for (key in D) D_is_set[key] = 1
28137 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28139 split(line, arg, " ")
28140 if (arg[1] == "#") {
28144 defundef
= substr
(arg
[1], 2)
28147 split(mac1
, mac2
, "(") #)
28149 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28150 if (D_is_set
[macro
]) {
28151 # Preserve the white space surrounding the "#".
28152 print prefix
"define", macro P
[macro
] D
[macro
]
28155 # Replace #undef with comments. This is necessary, for example,
28156 # in the case of _POSIX_SOURCE, which is predefined and required
28157 # on some systems where configure will not decide to define it.
28158 if (defundef
== "undef") {
28159 print
"/*", prefix defundef
, macro
, "*/"
28167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28168 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
28169 fi # test -n "$CONFIG_HEADERS"
28172 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28177 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28179 case $ac_mode$ac_tag in
28181 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28182 :[FH
]-) ac_tag
=-:-;;
28183 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28200 -) ac_f
="$ac_tmp/stdin";;
28201 *) # Look for the file first in the build tree, then in the source tree
28202 # (if the path is not absolute). The absolute path cannot be DOS-style,
28203 # because $ac_f cannot contain `:'.
28207 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28209 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28211 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28212 as_fn_append ac_file_inputs
" '$ac_f'"
28215 # Let's still pretend it is `configure' which instantiates (i.e., don't
28216 # use $as_me), people would be surprised to read:
28217 # /* config.h. Generated by config.status. */
28218 configure_input
='Generated from '`
28219 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28221 if test x
"$ac_file" != x-
; then
28222 configure_input
="$ac_file. $configure_input"
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28224 $as_echo "$as_me: creating $ac_file" >&6;}
28226 # Neutralize special characters interpreted by sed in replacement strings.
28227 case $configure_input in #(
28228 *\
&* |
*\|
* |
*\\* )
28229 ac_sed_conf_input
=`$as_echo "$configure_input" |
28230 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28231 *) ac_sed_conf_input
=$configure_input;;
28235 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
28236 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
28241 ac_dir
=`$as_dirname -- "$ac_file" ||
28242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28243 X"$ac_file" : 'X\(//\)[^/]' \| \
28244 X"$ac_file" : 'X\(//\)$' \| \
28245 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28246 $as_echo X"$ac_file" |
28247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28251 /^X\(\/\/\)[^/].*/{
28264 as_dir
="$ac_dir"; as_fn_mkdir_p
28268 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28270 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28271 # A ".." for each directory in $ac_dir_suffix.
28272 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28273 case $ac_top_builddir_sub in
28274 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28275 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28278 ac_abs_top_builddir
=$ac_pwd
28279 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28280 # for backward compatibility:
28281 ac_top_builddir
=$ac_top_build_prefix
28284 .
) # We are building in place.
28286 ac_top_srcdir
=$ac_top_builddir_sub
28287 ac_abs_top_srcdir
=$ac_pwd ;;
28288 [\\/]* | ?
:[\\/]* ) # Absolute name.
28289 ac_srcdir
=$srcdir$ac_dir_suffix;
28290 ac_top_srcdir
=$srcdir
28291 ac_abs_top_srcdir
=$srcdir ;;
28292 *) # Relative name.
28293 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28294 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28295 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28297 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28307 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28308 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28310 ac_MKDIR_P
=$MKDIR_P
28312 [\\/$
]* | ?
:[\\/]* ) ;;
28313 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
28317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28318 # If the template does not know about datarootdir, expand it.
28319 # FIXME: This hack should be removed a few years after 2.60.
28320 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28331 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28332 *datarootdir
*) ac_datarootdir_seen
=yes;;
28333 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28335 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28338 ac_datarootdir_hack='
28339 s&@datadir@&$datadir&g
28340 s&@docdir@&$docdir&g
28341 s&@infodir@&$infodir&g
28342 s&@localedir@&$localedir&g
28343 s&@mandir@&$mandir&g
28344 s&\\\${datarootdir}&$datarootdir&g' ;;
28348 # Neutralize VPATH when `$srcdir' = `.'.
28349 # Shell code in configure.ac might set extrasub.
28350 # FIXME: do we really want to maintain this feature?
28351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28352 ac_sed_extra="$ac_vpsub
28355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28357 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28358 s|@configure_input@|
$ac_sed_conf_input|
;t t
28359 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28360 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28361 s
&@srcdir@
&$ac_srcdir&;t t
28362 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28363 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28364 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28365 s
&@builddir@
&$ac_builddir&;t t
28366 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28367 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28368 s
&@INSTALL@
&$ac_INSTALL&;t t
28369 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
28370 $ac_datarootdir_hack
28372 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
28373 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
28375 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28376 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
28377 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28378 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28380 which seems to be undefined. Please make sure it is defined" >&5
28381 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28382 which seems to be undefined. Please make sure it is defined" >&2;}
28384 rm -f "$ac_tmp/stdin"
28386 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28387 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28389 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28395 if test x"$ac_file" != x-; then
28397 $as_echo "/* $configure_input */" \
28398 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28399 } >"$ac_tmp/config.h" \
28400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28401 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28403 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28406 mv "$ac_tmp/config.h" "$ac_file" \
28407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28410 $as_echo "/* $configure_input */" \
28411 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28412 || as_fn_error $? "could not create -" "$LINENO" 5
28414 # Compute "$ac_file"'s index
in $config_headers.
28417 for _am_header
in $config_headers :; do
28418 case $_am_header in
28419 $_am_arg |
$_am_arg:* )
28422 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
28425 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28426 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28427 X"$_am_arg" : 'X\(//\)[^/]' \| \
28428 X"$_am_arg" : 'X\(//\)$' \| \
28429 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28430 $as_echo X"$_am_arg" |
28431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28435 /^X\(\/\/\)[^/].*/{
28447 s/.*/./; q'`/stamp-h
$_am_stamp_count
28450 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28451 $as_echo "$as_me: executing $ac_file commands" >&6;}
28456 case $ac_file$ac_mode in
28457 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
28458 # Older Autoconf quotes --file arguments for eval, but not when files
28459 # are listed without --file. Let's play safe and only enable the eval
28460 # if we detect the quoting.
28461 case $CONFIG_FILES in
28462 *\'*) eval set x
"$CONFIG_FILES" ;;
28463 *) set x
$CONFIG_FILES ;;
28468 # Strip MF so we end up with the name of the file.
28469 mf
=`echo "$mf" | sed -e 's/:.*$//'`
28470 # Check whether this is an Automake generated Makefile or not.
28471 # We used to match only the files named 'Makefile.in', but
28472 # some people rename them; so instead we look at the file content.
28473 # Grep'ing the first line is not enough: some people post-process
28474 # each Makefile.in and add a new line on top of each file to say so.
28475 # Grep'ing the whole file is not good either: AIX grep has a line
28476 # limit of 2048, but all sed's we know have understand at least 4000.
28477 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
28478 dirpart
=`$as_dirname -- "$mf" ||
28479 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28480 X"$mf" : 'X\(//\)[^/]' \| \
28481 X"$mf" : 'X\(//\)$' \| \
28482 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28488 /^X\(\/\/\)[^/].*/{
28504 # Extract the definition of DEPDIR, am__include, and am__quote
28505 # from the Makefile without running 'make'.
28506 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
28507 test -z "$DEPDIR" && continue
28508 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
28509 test -z "$am__include" && continue
28510 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
28511 # Find all dependency output files, they are included files with
28512 # $(DEPDIR) in their names. We invoke sed twice because it is the
28513 # simplest approach to changing $(DEPDIR) to its actual value in the
28515 for file in `sed -n "
28516 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28517 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28518 # Make sure the directory exists.
28519 test -f "$dirpart/$file" && continue
28520 fdir
=`$as_dirname -- "$file" ||
28521 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28522 X"$file" : 'X\(//\)[^/]' \| \
28523 X"$file" : 'X\(//\)$' \| \
28524 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28525 $as_echo X"$file" |
28526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28530 /^X\(\/\/\)[^/].*/{
28543 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
28544 # echo "creating $dirpart/$file"
28545 echo '# dummy' > "$dirpart/$file"
28551 case x
$CONFIG_HEADERS in
28552 xconfig.h
:config.
in)
28563 ac_clean_files
=$ac_clean_files_save
28565 test $ac_write_fail = 0 ||
28566 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
28569 # configure is writing to config.log, and then calls config.status.
28570 # config.status does its own redirection, appending to config.log.
28571 # Unfortunately, on DOS this fails, as config.log is still kept open
28572 # by configure, so config.status won't be able to write to it; its
28573 # output is simply discarded. So we exec the FD to /dev/null,
28574 # effectively closing config.log, so it can be properly (re)opened and
28575 # appended to by config.status. When coming back to configure, we
28576 # need to make the FD available again.
28577 if test "$no_create" != yes; then
28579 ac_config_status_args
=
28580 test "$silent" = yes &&
28581 ac_config_status_args
="$ac_config_status_args --quiet"
28583 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28585 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28586 # would make configure fail if this is the last instruction.
28587 $ac_cs_success || as_fn_exit
1
28589 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28591 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}