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"
587 # Factoring default headers for most tests.
588 ac_includes_default
="\
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
600 # ifdef HAVE_STDLIB_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
623 gl_use_threads_default
=
624 gl_use_winpthreads_default
=
626 gl_fnmatch_required
=POSIX
627 ac_subst_vars
='am__EXEEXT_FALSE
657 INSTALL_STRIP_PROGRAM
678 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
696 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
699 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
701 TIME_H_DEFINES_TIME_UTC
702 UNISTD_H_DEFINES_STRUCT_TIMESPEC
703 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
704 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
705 TIME_H_DEFINES_STRUCT_TIMESPEC
706 NEXT_AS_FIRST_DIRECTIVE_TIME_H
722 HAVE_DECL_LOCALTIME_R
736 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
740 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
743 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
745 NEXT_AS_FIRST_DIRECTIVE_STRING_H
747 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
749 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
752 GL_GENERATE_STDBOOL_H_FALSE
753 GL_GENERATE_STDBOOL_H_TRUE
755 GL_GENERATE_STDALIGN_H_FALSE
756 GL_GENERATE_STDALIGN_H_TRUE
758 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
761 REPLACE_PTHREAD_SIGMASK
763 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
764 HAVE_STRUCT_SIGACTION_SA_SIGACTION
770 HAVE_POSIX_SIGNALBLOCKING
773 GNULIB_SIGNAL_H_SIGPIPE
775 GNULIB_PTHREAD_SIGMASK
783 REPLACE_STDIO_WRITE_FUNCS
784 REPLACE_STDIO_READ_FUNCS
793 REPLACE_OBSTACK_PRINTF
818 HAVE_DECL_OBSTACK_PRINTF
831 GNULIB_VSPRINTF_POSIX
835 GNULIB_VFPRINTF_POSIX
842 GNULIB_STDIO_H_SIGPIPE
843 GNULIB_STDIO_H_NONBLOCKING
858 GNULIB_OBSTACK_PRINTF_POSIX
859 GNULIB_OBSTACK_PRINTF
884 GL_GENERATE_NETINET_IN_H_FALSE
885 GL_GENERATE_NETINET_IN_H_TRUE
888 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
892 REPLACE_STRERRORNAME_NP
937 GNULIB_STRERRORNAME_NP
973 GNULIB_EXPLICIT_BZERO
980 NEXT_AS_FIRST_DIRECTIVE_MATH_H
987 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
990 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
992 GL_GENERATE_STDDEF_H_FALSE
993 GL_GENERATE_STDDEF_H_TRUE
1009 GNULIB_SETLOCALE_NULL
1012 LOCALCHARSET_TESTS_ENVIRONMENT
1013 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1015 UINT64_MAX_EQ_ULONG_MAX
1016 UINT32_MAX_LT_UINTMAX_MAX
1018 INT64_MAX_EQ_LONG_MAX
1019 INT32_MAX_LT_INTMAX_MAX
1031 GL_GENERATE_STDINT_H_FALSE
1032 GL_GENERATE_STDINT_H_TRUE
1044 HAVE_SIGNED_SIG_ATOMIC_T
1047 BITSIZEOF_SIG_ATOMIC_T
1050 APPLE_UNIVERSAL_BUILD
1052 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1057 GNULIB_OVERRIDES_WINT_T
1058 GL_GENERATE_LIMITS_H_FALSE
1059 GL_GENERATE_LIMITS_H_TRUE
1061 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1064 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1068 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1069 HAVE_STRUCT_SOCKADDR_STORAGE
1091 GL_GENERATE_GLOB_H_FALSE
1092 GL_GENERATE_GLOB_H_TRUE
1095 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
1097 REPLACE_GLOB_PATTERN_P
1102 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1104 REPLACE_STRUCT_TIMEVAL
1105 REPLACE_GETTIMEOFDAY
1117 WINDOWS_64_BIT_ST_SIZE
1118 WINDOWS_STAT_TIMESPEC
1119 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1148 GNULIB_OVERRIDES_STRUCT_STAT
1165 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1176 REPLACE_SIGNBIT_USING_BUILTINS
1256 HAVE_DECL_REMAINDERL
1443 GL_GENERATE_FNMATCH_H_FALSE
1444 GL_GENERATE_FNMATCH_H_TRUE
1447 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
1453 GL_GENERATE_FLOAT_H_FALSE
1454 GL_GENERATE_FLOAT_H_TRUE
1456 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1458 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1479 GL_GENERATE_ERRNO_H_FALSE
1480 GL_GENERATE_ERRNO_H_TRUE
1482 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1485 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1487 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
1513 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1515 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1516 UNISTD_H_HAVE_WINSOCK2_H
1517 UNISTD_H_HAVE_SYS_RANDOM_H
1542 REPLACE_GETDTABLESIZE
1543 REPLACE_GETDOMAINNAME
1564 HAVE_DECL_SETHOSTNAME
1565 HAVE_DECL_GETUSERSHELL
1566 HAVE_DECL_GETPAGESIZE
1567 HAVE_DECL_GETLOGIN_R
1569 HAVE_DECL_GETDOMAINNAME
1606 HAVE_COPY_FILE_RANGE
1633 GNULIB_UNISTD_H_SIGPIPE
1634 GNULIB_UNISTD_H_NONBLOCKING
1664 GNULIB_GETDTABLESIZE
1665 GNULIB_GETDOMAINNAME
1685 GNULIB_COPY_FILE_RANGE
1704 REPLACE_POSIX_MEMALIGN
1710 REPLACE_CANONICALIZE_FILE_NAME
1712 REPLACE_ALIGNED_ALLOC
1716 HAVE_STRUCT_RANDOM_DATA
1747 HAVE_DECL_GETLOADAVG
1751 HAVE_CANONICALIZE_FILE_NAME
1769 GNULIB_SECURE_GETENV
1772 GNULIB_REALLOC_POSIX
1781 GNULIB_POSIX_MEMALIGN
1793 GNULIB_CANONICALIZE_FILE_NAME
1796 GNULIB_ALIGNED_ALLOC
1901 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1904 PRAGMA_SYSTEM_HEADER
1905 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1915 GL_GENERATE_ALLOCA_H_FALSE
1916 GL_GENERATE_ALLOCA_H_TRUE
1919 GL_COND_LIBTOOL_FALSE
1920 GL_COND_LIBTOOL_TRUE
1948 MAINTAINER_MODE_FALSE
1949 MAINTAINER_MODE_TRUE
1977 program_transform_name
1990 enable_option_checking
1991 enable_maintainer_mode
1995 enable_cross_guesses
1996 enable_dependency_tracking
1999 ac_precious_vars
='build_alias
2010 # Initialize some variables set by options.
2012 ac_init_version
=false
2013 ac_unrecognized_opts
=
2014 ac_unrecognized_sep
=
2015 # The variables have the same names as the options, with
2016 # dashes changed to underlines.
2017 cache_file
=/dev
/null
2024 program_transform_name
=s
,x
,x
,
2032 # Installation directory options.
2033 # These are left unexpanded so users can "make install exec_prefix=/foo"
2034 # and all the variables that are supposed to be based on exec_prefix
2035 # by default will actually change.
2036 # Use braces instead of parens because sh, perl, etc. also accept them.
2037 # (The list follows the same order as the GNU Coding Standards.)
2038 bindir
='${exec_prefix}/bin'
2039 sbindir
='${exec_prefix}/sbin'
2040 libexecdir
='${exec_prefix}/libexec'
2041 datarootdir
='${prefix}/share'
2042 datadir
='${datarootdir}'
2043 sysconfdir
='${prefix}/etc'
2044 sharedstatedir
='${prefix}/com'
2045 localstatedir
='${prefix}/var'
2046 includedir
='${prefix}/include'
2047 oldincludedir
='/usr/include'
2048 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
2049 infodir
='${datarootdir}/info'
2054 libdir
='${exec_prefix}/lib'
2055 localedir
='${datarootdir}/locale'
2056 mandir
='${datarootdir}/man'
2062 # If the previous option needs an argument, assign it.
2063 if test -n "$ac_prev"; then
2064 eval $ac_prev=\
$ac_option
2070 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2075 # Accept the important Cygnus configure options, so we can diagnose typos.
2077 case $ac_dashdash$ac_option in
2081 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
2083 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
2084 bindir
=$ac_optarg ;;
2086 -build |
--build |
--buil |
--bui |
--bu)
2087 ac_prev
=build_alias
;;
2088 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
2089 build_alias
=$ac_optarg ;;
2091 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
2092 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
2093 ac_prev
=cache_file
;;
2094 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
2095 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
2096 cache_file
=$ac_optarg ;;
2098 --config-cache |
-C)
2099 cache_file
=config.cache
;;
2101 -datadir |
--datadir |
--datadi |
--datad)
2103 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
2104 datadir
=$ac_optarg ;;
2106 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
2107 |
--dataroo |
--dataro |
--datar)
2108 ac_prev
=datarootdir
;;
2109 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
2110 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
2111 datarootdir
=$ac_optarg ;;
2113 -disable-* |
--disable-*)
2114 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2115 # Reject names that are not valid shell variable names.
2116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2117 as_fn_error $?
"invalid feature name: $ac_useropt"
2118 ac_useropt_orig
=$ac_useropt
2119 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2120 case $ac_user_opts in
2122 "enable_
$ac_useropt"
2124 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2125 ac_unrecognized_sep
=', ';;
2127 eval enable_
$ac_useropt=no
;;
2129 -docdir |
--docdir |
--docdi |
--doc |
--do)
2131 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
2132 docdir
=$ac_optarg ;;
2134 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
2136 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
2137 dvidir
=$ac_optarg ;;
2139 -enable-* |
--enable-*)
2140 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2141 # Reject names that are not valid shell variable names.
2142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2143 as_fn_error $?
"invalid feature name: $ac_useropt"
2144 ac_useropt_orig
=$ac_useropt
2145 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2146 case $ac_user_opts in
2148 "enable_
$ac_useropt"
2150 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2151 ac_unrecognized_sep
=', ';;
2153 eval enable_
$ac_useropt=\
$ac_optarg ;;
2155 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
2156 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
2157 |
--exec |
--exe |
--ex)
2158 ac_prev
=exec_prefix
;;
2159 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
2160 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
2161 |
--exec=* |
--exe=* |
--ex=*)
2162 exec_prefix
=$ac_optarg ;;
2164 -gas |
--gas |
--ga |
--g)
2165 # Obsolete; use --with-gas.
2168 -help |
--help |
--hel |
--he |
-h)
2169 ac_init_help
=long
;;
2170 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
2171 ac_init_help
=recursive
;;
2172 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
2173 ac_init_help
=short
;;
2175 -host |
--host |
--hos |
--ho)
2176 ac_prev
=host_alias
;;
2177 -host=* |
--host=* |
--hos=* |
--ho=*)
2178 host_alias
=$ac_optarg ;;
2180 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
2182 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
2184 htmldir
=$ac_optarg ;;
2186 -includedir |
--includedir |
--includedi |
--included |
--include \
2187 |
--includ |
--inclu |
--incl |
--inc)
2188 ac_prev
=includedir
;;
2189 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
2190 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
2191 includedir
=$ac_optarg ;;
2193 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
2195 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
2196 infodir
=$ac_optarg ;;
2198 -libdir |
--libdir |
--libdi |
--libd)
2200 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
2201 libdir
=$ac_optarg ;;
2203 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
2204 |
--libexe |
--libex |
--libe)
2205 ac_prev
=libexecdir
;;
2206 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
2207 |
--libexe=* |
--libex=* |
--libe=*)
2208 libexecdir
=$ac_optarg ;;
2210 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2211 ac_prev
=localedir
;;
2212 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2213 localedir
=$ac_optarg ;;
2215 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2216 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2217 ac_prev
=localstatedir
;;
2218 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2219 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2220 localstatedir
=$ac_optarg ;;
2222 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2224 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2225 mandir
=$ac_optarg ;;
2227 -nfp |
--nfp |
--nf)
2228 # Obsolete; use --without-fp.
2231 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2232 |
--no-cr |
--no-c |
-n)
2235 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2236 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2239 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2240 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2241 |
--oldin |
--oldi |
--old |
--ol |
--o)
2242 ac_prev
=oldincludedir
;;
2243 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2244 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2245 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2246 oldincludedir
=$ac_optarg ;;
2248 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2250 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2251 prefix
=$ac_optarg ;;
2253 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2254 |
--program-pre |
--program-pr |
--program-p)
2255 ac_prev
=program_prefix
;;
2256 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2257 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2258 program_prefix
=$ac_optarg ;;
2260 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2261 |
--program-suf |
--program-su |
--program-s)
2262 ac_prev
=program_suffix
;;
2263 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2264 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2265 program_suffix
=$ac_optarg ;;
2267 -program-transform-name |
--program-transform-name \
2268 |
--program-transform-nam |
--program-transform-na \
2269 |
--program-transform-n |
--program-transform- \
2270 |
--program-transform |
--program-transfor \
2271 |
--program-transfo |
--program-transf \
2272 |
--program-trans |
--program-tran \
2273 |
--progr-tra |
--program-tr |
--program-t)
2274 ac_prev
=program_transform_name
;;
2275 -program-transform-name=* |
--program-transform-name=* \
2276 |
--program-transform-nam=* |
--program-transform-na=* \
2277 |
--program-transform-n=* |
--program-transform-=* \
2278 |
--program-transform=* |
--program-transfor=* \
2279 |
--program-transfo=* |
--program-transf=* \
2280 |
--program-trans=* |
--program-tran=* \
2281 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2282 program_transform_name
=$ac_optarg ;;
2284 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2286 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2287 pdfdir
=$ac_optarg ;;
2289 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2291 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2294 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2295 |
-silent |
--silent |
--silen |
--sile |
--sil)
2298 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2300 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2302 sbindir
=$ac_optarg ;;
2304 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2305 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2306 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2308 ac_prev
=sharedstatedir
;;
2309 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2310 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2311 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2313 sharedstatedir
=$ac_optarg ;;
2315 -site |
--site |
--sit)
2317 -site=* |
--site=* |
--sit=*)
2320 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2322 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2323 srcdir
=$ac_optarg ;;
2325 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2326 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2327 ac_prev
=sysconfdir
;;
2328 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2329 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2330 sysconfdir
=$ac_optarg ;;
2332 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2333 ac_prev
=target_alias
;;
2334 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2335 target_alias
=$ac_optarg ;;
2337 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2340 -version |
--version |
--versio |
--versi |
--vers |
-V)
2341 ac_init_version
=: ;;
2344 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2345 # Reject names that are not valid shell variable names.
2346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2347 as_fn_error $?
"invalid package name: $ac_useropt"
2348 ac_useropt_orig
=$ac_useropt
2349 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2350 case $ac_user_opts in
2354 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2355 ac_unrecognized_sep
=', ';;
2357 eval with_
$ac_useropt=\
$ac_optarg ;;
2359 -without-* |
--without-*)
2360 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2361 # Reject names that are not valid shell variable names.
2362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2363 as_fn_error $?
"invalid package name: $ac_useropt"
2364 ac_useropt_orig
=$ac_useropt
2365 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2366 case $ac_user_opts in
2370 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2371 ac_unrecognized_sep
=', ';;
2373 eval with_
$ac_useropt=no
;;
2376 # Obsolete; use --with-x.
2379 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2380 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2381 ac_prev
=x_includes
;;
2382 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2383 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2384 x_includes
=$ac_optarg ;;
2386 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2387 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2388 ac_prev
=x_libraries
;;
2389 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2390 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2391 x_libraries
=$ac_optarg ;;
2393 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2394 Try \`$0 --help' for more information"
2398 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2399 # Reject names that are not valid shell variable names.
2400 case $ac_envvar in #(
2401 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2402 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2404 eval $ac_envvar=\
$ac_optarg
2405 export $ac_envvar ;;
2408 # FIXME: should be removed in autoconf 3.0.
2409 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2410 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2411 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2412 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2418 if test -n "$ac_prev"; then
2419 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2420 as_fn_error $?
"missing argument to $ac_option"
2423 if test -n "$ac_unrecognized_opts"; then
2424 case $enable_option_checking in
2426 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2427 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2431 # Check all directory arguments for consistency.
2432 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2433 datadir sysconfdir sharedstatedir localstatedir includedir \
2434 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2435 libdir localedir mandir
2437 eval ac_val
=\$
$ac_var
2438 # Remove trailing slashes.
2441 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2442 eval $ac_var=\
$ac_val;;
2444 # Be sure to have absolute directory names.
2446 [\\/$
]* | ?
:[\\/]* ) continue;;
2447 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2449 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2452 # There might be people who depend on the old broken behavior: `$host'
2453 # used to hold the argument of --host etc.
2454 # FIXME: To remove some day.
2457 target
=$target_alias
2459 # FIXME: To remove some day.
2460 if test "x$host_alias" != x
; then
2461 if test "x$build_alias" = x
; then
2462 cross_compiling
=maybe
2463 elif test "x$build_alias" != "x$host_alias"; then
2469 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2471 test "$silent" = yes && exec 6>/dev
/null
2474 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2475 ac_ls_di
=`ls -di .` &&
2476 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2477 as_fn_error $?
"working directory cannot be determined"
2478 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2479 as_fn_error $?
"pwd does not report name of working directory"
2482 # Find the source files, if location was not specified.
2483 if test -z "$srcdir"; then
2484 ac_srcdir_defaulted
=yes
2485 # Try the directory containing this script, then the parent directory.
2486 ac_confdir
=`$as_dirname -- "$as_myself" ||
2487 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2488 X"$as_myself" : 'X\(//\)[^/]' \| \
2489 X"$as_myself" : 'X\(//\)$' \| \
2490 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2491 $as_echo X"$as_myself" |
2492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2510 if test ! -r "$srcdir/$ac_unique_file"; then
2514 ac_srcdir_defaulted
=no
2516 if test ! -r "$srcdir/$ac_unique_file"; then
2517 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2518 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2520 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2522 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2524 # When building in place, set srcdir=.
2525 if test "$ac_abs_confdir" = "$ac_pwd"; then
2528 # Remove unnecessary trailing slashes from srcdir.
2529 # Double slashes in file names in object file debugging info
2530 # mess up M-x gdb in Emacs.
2532 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2534 for ac_var
in $ac_precious_vars; do
2535 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2536 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2537 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2538 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2542 # Report the --help message.
2544 if test "$ac_init_help" = "long"; then
2545 # Omit some internal or obsolete options to make the list less imposing.
2546 # This message is too long to be a string in the A/UX 3.1 sh.
2548 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2550 Usage: $0 [OPTION]... [VAR=VALUE]...
2552 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2553 VAR=VALUE. See below for descriptions of some of the useful variables.
2555 Defaults for the options are specified in brackets.
2558 -h, --help display this help and exit
2559 --help=short display options specific to this package
2560 --help=recursive display the short help of all the included packages
2561 -V, --version display version information and exit
2562 -q, --quiet, --silent do not print \`checking ...' messages
2563 --cache-file=FILE cache test results in FILE [disabled]
2564 -C, --config-cache alias for \`--cache-file=config.cache'
2565 -n, --no-create do not create output files
2566 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2568 Installation directories:
2569 --prefix=PREFIX install architecture-independent files in PREFIX
2570 [$ac_default_prefix]
2571 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2574 By default, \`make install' will install all the files in
2575 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2576 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2577 for instance \`--prefix=\$HOME'.
2579 For better control, use the options below.
2581 Fine tuning of the installation directories:
2582 --bindir=DIR user executables [EPREFIX/bin]
2583 --sbindir=DIR system admin executables [EPREFIX/sbin]
2584 --libexecdir=DIR program executables [EPREFIX/libexec]
2585 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2586 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2587 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2588 --libdir=DIR object code libraries [EPREFIX/lib]
2589 --includedir=DIR C header files [PREFIX/include]
2590 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2591 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2592 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2593 --infodir=DIR info documentation [DATAROOTDIR/info]
2594 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2595 --mandir=DIR man documentation [DATAROOTDIR/man]
2596 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2597 --htmldir=DIR html documentation [DOCDIR]
2598 --dvidir=DIR dvi documentation [DOCDIR]
2599 --pdfdir=DIR pdf documentation [DOCDIR]
2600 --psdir=DIR ps documentation [DOCDIR]
2606 --program-prefix=PREFIX prepend PREFIX to installed program names
2607 --program-suffix=SUFFIX append SUFFIX to installed program names
2608 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2611 --build=BUILD configure
for building on BUILD
[guessed
]
2612 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2613 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2617 if test -n "$ac_init_help"; then
2618 case $ac_init_help in
2619 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2624 --disable-option-checking ignore unrecognized
--enable/--with options
2625 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2626 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2627 --enable-maintainer-mode
2628 enable make rules and dependencies not useful
(and
2629 sometimes confusing
) to the casual installer
2630 --enable-plugins Enable support
for plugins
2631 --disable-largefile omit support
for large files
2632 --enable-threads={isoc|posix|isoc
+posix|windows
}
2633 specify multithreading API
2634 --disable-threads build without multithread safety
2635 --enable-cross-guesses={conservative|risky
}
2636 specify policy
for cross-compilation guesses
2637 --enable-dependency-tracking
2638 do not reject slow dependency extractors
2639 --disable-dependency-tracking
2640 speeds up one-time build
2641 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2642 --disable-silent-rules verbose build output
(undo
: "make V=0")
2644 Some influential environment variables
:
2645 CC C compiler
command
2646 CFLAGS C compiler flags
2647 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2648 nonstandard directory
<lib dir
>
2649 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2650 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2651 you have headers
in a nonstandard directory
<include dir
>
2654 Use these variables to override the choices made by
`configure' or to help
2655 it to find libraries and programs with nonstandard names/locations.
2657 Report bugs to the package provider.
2662 if test "$ac_init_help" = "recursive"; then
2663 # If there are subdirs, report their specific --help.
2664 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2665 test -d "$ac_dir" ||
2666 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2673 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2674 # A ".." for each directory in $ac_dir_suffix.
2675 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2676 case $ac_top_builddir_sub in
2677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2681 ac_abs_top_builddir=$ac_pwd
2682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2683 # for backward compatibility:
2684 ac_top_builddir=$ac_top_build_prefix
2687 .) # We are building in place.
2689 ac_top_srcdir=$ac_top_builddir_sub
2690 ac_abs_top_srcdir=$ac_pwd ;;
2691 [\\/]* | ?:[\\/]* ) # Absolute name.
2692 ac_srcdir=$srcdir$ac_dir_suffix;
2693 ac_top_srcdir=$srcdir
2694 ac_abs_top_srcdir=$srcdir ;;
2696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2697 ac_top_srcdir=$ac_top_build_prefix$srcdir
2698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2702 cd "$ac_dir" || { ac_status=$?; continue; }
2703 # Check for guested configure.
2704 if test -f "$ac_srcdir/configure.gnu"; then
2706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2707 elif test -f "$ac_srcdir/configure"; then
2709 $SHELL "$ac_srcdir/configure" --help=recursive
2711 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2713 cd "$ac_pwd" || { ac_status=$?; break; }
2717 test -n "$ac_init_help" && exit $ac_status
2718 if $ac_init_version; then
2720 libgnu configure UNUSED-VERSION
2721 generated by GNU Autoconf 2.69
2723 Copyright (C) 2012 Free Software Foundation, Inc.
2724 This configure script is free software; the Free Software Foundation
2725 gives unlimited permission to copy, distribute and modify it.
2730 ## ------------------------ ##
2731 ## Autoconf initialization. ##
2732 ## ------------------------ ##
2734 # ac_fn_c_try_compile LINENO
2735 # --------------------------
2736 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2737 ac_fn_c_try_compile ()
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 rm -f conftest.$ac_objext
2741 if { { ac_try="$ac_compile"
2743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2744 *) ac_try_echo
=$ac_try;;
2746 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747 $as_echo "$ac_try_echo"; } >&5
2748 (eval "$ac_compile") 2>conftest.err
2750 if test -s conftest.err
; then
2751 grep -v '^ *+' conftest.err
>conftest.er1
2752 cat conftest.er1
>&5
2753 mv -f conftest.er1 conftest.err
2755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2756 test $ac_status = 0; } && {
2757 test -z "$ac_c_werror_flag" ||
2758 test ! -s conftest.err
2759 } && test -s conftest.
$ac_objext; then :
2762 $as_echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.
$ac_ext >&5
2767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2768 as_fn_set_status
$ac_retval
2770 } # ac_fn_c_try_compile
2772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2773 # -------------------------------------------------------
2774 # Tests whether HEADER exists and can be compiled using the include files in
2775 # INCLUDES, setting the cache variable VAR accordingly.
2776 ac_fn_c_check_header_compile
()
2778 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2780 $as_echo_n "checking for $2... " >&6; }
2781 if eval \
${$3+:} false
; then :
2782 $as_echo_n "(cached) " >&6
2784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2785 /* end confdefs.h. */
2789 if ac_fn_c_try_compile
"$LINENO"; then :
2794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2798 $as_echo "$ac_res" >&6; }
2799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2801 } # ac_fn_c_check_header_compile
2803 # ac_fn_c_try_cpp LINENO
2804 # ----------------------
2805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2808 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2809 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815 $as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2818 if test -s conftest.err; then
2819 grep -v '^ *+' conftest.err >conftest.er1
2820 cat conftest.er1 >&5
2821 mv -f conftest.er1 conftest.err
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; } > conftest.i && {
2825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2830 $as_echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2836 as_fn_set_status $ac_retval
2840 # ac_fn_c_try_run LINENO
2841 # ----------------------
2842 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2843 # that executables *can* be run.
2846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2847 if { { ac_try="$ac_link"
2849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2850 *) ac_try_echo
=$ac_try;;
2852 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_link") 2>&5
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2858 { { case "(($ac_try" in
2859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863 $as_echo "$ac_try_echo"; } >&5
2864 (eval "$ac_try") 2>&5
2866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867 test $ac_status = 0; }; }; then :
2870 $as_echo "$as_me: program exited with status $ac_status" >&5
2871 $as_echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2874 ac_retval=$ac_status
2876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2878 as_fn_set_status $ac_retval
2882 # ac_fn_c_try_link LINENO
2883 # -----------------------
2884 # Try to link conftest.$ac_ext, and return whether this succeeded.
2887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2888 rm -f conftest.$ac_objext conftest$ac_exeext
2889 if { { ac_try="$ac_link"
2891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2892 *) ac_try_echo
=$ac_try;;
2894 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2895 $as_echo "$ac_try_echo"; } >&5
2896 (eval "$ac_link") 2>conftest.err
2898 if test -s conftest.err
; then
2899 grep -v '^ *+' conftest.err
>conftest.er1
2900 cat conftest.er1
>&5
2901 mv -f conftest.er1 conftest.err
2903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904 test $ac_status = 0; } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest
$ac_exeext && {
2908 test "$cross_compiling" = yes ||
2909 test -x conftest
$ac_exeext
2913 $as_echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.
$ac_ext >&5
2918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2920 # interfere with the next link command; also delete a directory that is
2921 # left behind by Apple's compiler. We do this before executing the actions.
2922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2924 as_fn_set_status
$ac_retval
2926 } # ac_fn_c_try_link
2928 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2929 # -------------------------------------------
2930 # Tests whether TYPE exists after having included INCLUDES, setting cache
2931 # variable VAR accordingly.
2932 ac_fn_c_check_type
()
2934 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2936 $as_echo_n "checking for $2... " >&6; }
2937 if eval \
${$3+:} false
; then :
2938 $as_echo_n "(cached) " >&6
2941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2953 if ac_fn_c_try_compile
"$LINENO"; then :
2954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2966 if ac_fn_c_try_compile
"$LINENO"; then :
2971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2977 $as_echo "$ac_res" >&6; }
2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2980 } # ac_fn_c_check_type
2982 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2983 # -------------------------------------------------------
2984 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2985 # the include files in INCLUDES and setting the cache variable VAR
2987 ac_fn_c_check_header_mongrel
()
2989 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2990 if eval \
${$3+:} false
; then :
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2992 $as_echo_n "checking for $2... " >&6; }
2993 if eval \
${$3+:} false
; then :
2994 $as_echo_n "(cached) " >&6
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2998 $as_echo "$ac_res" >&6; }
3000 # Is the header compilable?
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3002 $as_echo_n "checking $2 usability... " >&6; }
3003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3008 if ac_fn_c_try_compile
"$LINENO"; then :
3009 ac_header_compiler
=yes
3011 ac_header_compiler
=no
3013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3015 $as_echo "$ac_header_compiler" >&6; }
3017 # Is the header present?
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3019 $as_echo_n "checking $2 presence... " >&6; }
3020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3024 if ac_fn_c_try_cpp
"$LINENO"; then :
3025 ac_header_preproc
=yes
3027 ac_header_preproc
=no
3029 rm -f conftest.err conftest.i conftest.
$ac_ext
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3031 $as_echo "$ac_header_preproc" >&6; }
3033 # So? What about this header?
3034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3037 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3043 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3045 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3047 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3049 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3051 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3055 $as_echo_n "checking for $2... " >&6; }
3056 if eval \
${$3+:} false
; then :
3057 $as_echo_n "(cached) " >&6
3059 eval "$3=\$ac_header_compiler"
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3063 $as_echo "$ac_res" >&6; }
3065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3067 } # ac_fn_c_check_header_mongrel
3069 # ac_fn_c_check_func LINENO FUNC VAR
3070 # ----------------------------------
3071 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3072 ac_fn_c_check_func
()
3074 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3076 $as_echo_n "checking for $2... " >&6; }
3077 if eval \
${$3+:} false
; then :
3078 $as_echo_n "(cached) " >&6
3080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3082 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3084 #define $2 innocuous_$2
3086 /* System header to define __stub macros and hopefully few prototypes,
3087 which can conflict with char $2 (); below.
3088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3089 <limits.h> exists even on freestanding compilers. */
3092 # include <limits.h>
3094 # include <assert.h>
3099 /* Override any GCC internal prototype to avoid an error.
3100 Use char because int might match the return type of a GCC
3101 builtin and then its argument prototype would still apply. */
3106 /* The GNU C library defines this for functions which it implements
3107 to always fail with ENOSYS. Some functions are actually named
3108 something starting with __ and the normal name is an alias. */
3109 #if defined __stub_$2 || defined __stub___$2
3121 if ac_fn_c_try_link
"$LINENO"; then :
3126 rm -f core conftest.err conftest.
$ac_objext \
3127 conftest
$ac_exeext conftest.
$ac_ext
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3131 $as_echo "$ac_res" >&6; }
3132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3134 } # ac_fn_c_check_func
3136 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3137 # ---------------------------------------------
3138 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3140 ac_fn_c_check_decl
()
3142 ac_save_ac_compile
="$ac_compile"
3143 if test -n "$ac_compile_for_check_decl"; then
3144 ac_compile
="$ac_compile_for_check_decl"
3146 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3147 as_decl_name
=`echo $2|sed 's/ *(.*//'`
3148 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3150 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3151 if eval \
${$3+:} false
; then :
3152 $as_echo_n "(cached) " >&6
3154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3160 #ifndef $as_decl_name
3162 (void) $as_decl_use;
3164 (void) $as_decl_name;
3172 if ac_fn_c_try_compile
"$LINENO"; then :
3177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3181 $as_echo "$ac_res" >&6; }
3182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3183 ac_compile
="$ac_save_ac_compile"
3185 } # ac_fn_c_check_decl
3187 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3188 # --------------------------------------------
3189 # Tries to find the compile-time value of EXPR in a program that includes
3190 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3192 ac_fn_c_compute_int
()
3194 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3195 if test "$cross_compiling" = yes; then
3196 # Depending upon the size, compute the lo and hi bounds.
3197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3203 static int test_array [1 - 2 * !(($2) >= 0)];
3205 return test_array [0];
3211 if ac_fn_c_try_compile
"$LINENO"; then :
3214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3222 return test_array [0];
3228 if ac_fn_c_try_compile
"$LINENO"; then :
3229 ac_hi
=$ac_mid; break
3231 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3232 if test $ac_lo -le $ac_mid; then
3236 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3247 static int test_array [1 - 2 * !(($2) < 0)];
3249 return test_array [0];
3255 if ac_fn_c_try_compile
"$LINENO"; then :
3258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3264 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3266 return test_array [0];
3272 if ac_fn_c_try_compile
"$LINENO"; then :
3273 ac_lo
=$ac_mid; break
3275 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3276 if test $ac_mid -le $ac_hi; then
3280 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3290 # Binary search between lo and hi bounds.
3291 while test "x$ac_lo" != "x$ac_hi"; do
3292 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3299 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3301 return test_array [0];
3307 if ac_fn_c_try_compile
"$LINENO"; then :
3310 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3315 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3322 static long int longval () { return $2; }
3323 static unsigned long int ulongval () { return $2; }
3330 FILE *f = fopen ("conftest.val", "w");
3335 long int i = longval ();
3338 fprintf (f, "%ld", i);
3342 unsigned long int i = ulongval ();
3345 fprintf (f, "%lu", i);
3347 /* Do not output a trailing newline, as this causes \r\n confusion
3348 on some platforms. */
3349 return ferror (f) || fclose (f) != 0;
3355 if ac_fn_c_try_run
"$LINENO"; then :
3356 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3360 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3361 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3366 as_fn_set_status
$ac_retval
3368 } # ac_fn_c_compute_int
3370 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3371 # ----------------------------------------------------
3372 # Tries to find if the field MEMBER exists in type AGGR, after including
3373 # INCLUDES, setting cache variable VAR accordingly.
3374 ac_fn_c_check_member
()
3376 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3378 $as_echo_n "checking for $2.$3... " >&6; }
3379 if eval \
${$4+:} false
; then :
3380 $as_echo_n "(cached) " >&6
3382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3395 if ac_fn_c_try_compile
"$LINENO"; then :
3398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3405 if (sizeof ac_aggr.$3)
3411 if ac_fn_c_try_compile
"$LINENO"; then :
3416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3422 $as_echo "$ac_res" >&6; }
3423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3425 } # ac_fn_c_check_member
3426 cat >config.log
<<_ACEOF
3427 This file contains any messages produced by compilers while
3428 running configure, to aid debugging if configure makes a mistake.
3430 It was created by libgnu $as_me UNUSED-VERSION, which was
3431 generated by GNU Autoconf 2.69. Invocation command line was
3443 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3444 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3445 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3446 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3447 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3449 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3450 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3452 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3453 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3454 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3455 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3456 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3457 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3458 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir
=.
3467 $as_echo "PATH: $as_dir"
3483 # Keep a trace of the command line.
3484 # Strip out --no-create and --no-recursion so they do not pile up.
3485 # Strip out --silent because we don't want to record it for future runs.
3486 # Also quote any args containing shell meta-characters.
3487 # Make two passes to allow for proper duplicate-argument suppression.
3491 ac_must_keep_next
=false
3497 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3498 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3499 |
-silent |
--silent |
--silen |
--sile |
--sil)
3502 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3505 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3507 as_fn_append ac_configure_args1
" '$ac_arg'"
3508 if test $ac_must_keep_next = true
; then
3509 ac_must_keep_next
=false
# Got value, back to normal.
3512 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3513 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3514 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3515 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3516 case "$ac_configure_args0 " in
3517 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3520 -* ) ac_must_keep_next
=true
;;
3523 as_fn_append ac_configure_args
" '$ac_arg'"
3528 { ac_configure_args0
=; unset ac_configure_args0
;}
3529 { ac_configure_args1
=; unset ac_configure_args1
;}
3531 # When interrupted or exit'd, cleanup temporary files, and complete
3532 # config.log. We remove comments because anyway the quotes in there
3533 # would cause problems or look ugly.
3534 # WARNING: Use '\'' to represent an apostrophe within the trap.
3535 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3536 trap 'exit_status=$?
3537 # Save into config.log some information that might help in debugging.
3541 $as_echo "## ---------------- ##
3542 ## Cache variables. ##
3543 ## ---------------- ##"
3545 # The following way of writing the cache mishandles newlines in values,
3547 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3548 eval ac_val=\$$ac_var
3552 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3553 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3556 _ | IFS | as_nl) ;; #(
3557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3558 *) { eval $ac_var=; unset $ac_var;} ;;
3563 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3564 *${as_nl}ac_space=\ *)
3566 "s/'\''/'\''\\\\'\'''\''/g;
3567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3577 $as_echo "## ----------------- ##
3578 ## Output variables. ##
3579 ## ----------------- ##"
3581 for ac_var in $ac_subst_vars
3583 eval ac_val=\$$ac_var
3585 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3587 $as_echo "$ac_var='\''$ac_val'\''"
3591 if test -n "$ac_subst_files"; then
3592 $as_echo "## ------------------- ##
3593 ## File substitutions. ##
3594 ## ------------------- ##"
3596 for ac_var
in $ac_subst_files
3598 eval ac_val
=\$
$ac_var
3600 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3602 $as_echo "$ac_var='\''$ac_val'\''"
3607 if test -s confdefs.h; then
3608 $as_echo "## ----------- ##
3615 test "$ac_signal" != 0 &&
3616 $as_echo "$as_me: caught signal $ac_signal"
3617 $as_echo "$as_me: exit $exit_status"
3619 rm -f core *.core core.conftest.* &&
3620 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3623 for ac_signal
in 1 2 13 15; do
3624 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3629 rm -f -r conftest
* confdefs.h
3631 $as_echo "/* confdefs.h */" > confdefs.h
3633 # Predefined preprocessor variables.
3635 cat >>confdefs.h
<<_ACEOF
3636 #define PACKAGE_NAME "$PACKAGE_NAME"
3639 cat >>confdefs.h
<<_ACEOF
3640 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3643 cat >>confdefs.h
<<_ACEOF
3644 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3647 cat >>confdefs.h
<<_ACEOF
3648 #define PACKAGE_STRING "$PACKAGE_STRING"
3651 cat >>confdefs.h
<<_ACEOF
3652 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3655 cat >>confdefs.h
<<_ACEOF
3656 #define PACKAGE_URL "$PACKAGE_URL"
3660 # Let the site file select an alternate cache file if it wants to.
3661 # Prefer an explicitly selected file to automatically selected ones.
3664 if test -n "$CONFIG_SITE"; then
3665 # We do not want a PATH search for config.site.
3666 case $CONFIG_SITE in #((
3667 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3668 */*) ac_site_file1
=$CONFIG_SITE;;
3669 *) ac_site_file1
=.
/$CONFIG_SITE;;
3671 elif test "x$prefix" != xNONE
; then
3672 ac_site_file1
=$prefix/share
/config.site
3673 ac_site_file2
=$prefix/etc
/config.site
3675 ac_site_file1
=$ac_default_prefix/share
/config.site
3676 ac_site_file2
=$ac_default_prefix/etc
/config.site
3678 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3680 test "x$ac_site_file" = xNONE
&& continue
3681 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3683 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3684 sed 's/^/| /' "$ac_site_file" >&5
3686 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error $?
"failed to load site script $ac_site_file
3689 See \`config.log' for more details" "$LINENO" 5; }
3693 if test -r "$cache_file"; then
3694 # Some versions of bash will fail to source /dev/null (special files
3695 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3696 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3698 $as_echo "$as_me: loading cache $cache_file" >&6;}
3700 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3701 *) .
"./$cache_file";;
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3706 $as_echo "$as_me: creating cache $cache_file" >&6;}
3710 as_fn_append ac_header_list
" wchar.h"
3711 as_fn_append ac_header_list
" minix/config.h"
3712 as_fn_append ac_header_list
" arpa/inet.h"
3713 as_fn_append ac_header_list
" features.h"
3714 as_fn_append ac_header_list
" sys/socket.h"
3715 as_fn_append ac_func_list
" btowc"
3716 as_fn_append ac_func_list
" canonicalize_file_name"
3717 as_fn_append ac_func_list
" faccessat"
3718 as_fn_append ac_func_list
" realpath"
3719 as_fn_append ac_header_list
" sys/param.h"
3720 as_fn_append ac_header_list
" unistd.h"
3721 as_fn_append ac_func_list
" _set_invalid_parameter_handler"
3722 as_fn_append ac_func_list
" fchdir"
3723 as_fn_append ac_header_list
" dirent.h"
3724 as_fn_append ac_func_list
" fcntl"
3725 as_fn_append ac_func_list
" symlink"
3726 as_fn_append ac_func_list
" fdopendir"
3727 as_fn_append ac_func_list
" mempcpy"
3728 as_fn_append ac_header_list
" fnmatch.h"
3729 as_fn_append ac_func_list
" fnmatch"
3730 as_fn_append ac_func_list
" mbsrtowcs"
3731 gl_fnmatch_required
=GNU
3732 as_fn_append ac_header_list
" sys/stat.h"
3733 as_fn_append ac_func_list
" fstatat"
3734 as_fn_append ac_func_list
" getdtablesize"
3735 as_fn_append ac_func_list
" getlogin_r"
3736 as_fn_append ac_func_list
" getprogname"
3737 as_fn_append ac_func_list
" getexecname"
3738 as_fn_append ac_func_list
" getrandom"
3739 as_fn_append ac_header_list
" sys/time.h"
3740 as_fn_append ac_func_list
" gettimeofday"
3741 as_fn_append ac_header_list
" glob.h"
3742 as_fn_append ac_func_list
" glob"
3743 as_fn_append ac_func_list
" glob_pattern_p"
3744 as_fn_append ac_func_list
" getpwnam_r"
3745 as_fn_append ac_header_list
" threads.h"
3746 as_fn_append ac_header_list
" netdb.h"
3747 as_fn_append ac_header_list
" netinet/in.h"
3748 as_fn_append ac_header_list
" limits.h"
3749 as_fn_append ac_header_list
" inttypes.h"
3750 as_fn_append ac_header_list
" sys/types.h"
3751 as_fn_append ac_header_list
" stdint.h"
3752 as_fn_append ac_func_list
" isblank"
3753 as_fn_append ac_header_list
" xlocale.h"
3754 as_fn_append ac_func_list
" lstat"
3755 as_fn_append ac_header_list
" math.h"
3756 as_fn_append ac_func_list
" mbsinit"
3757 as_fn_append ac_func_list
" mbrtowc"
3758 as_fn_append ac_header_list
" sys/mman.h"
3759 as_fn_append ac_func_list
" mprotect"
3760 as_fn_append ac_func_list
" mkostemp"
3761 as_fn_append ac_func_list
" openat"
3762 as_fn_append ac_func_list
" pipe"
3763 as_fn_append ac_func_list
" readlink"
3764 as_fn_append ac_func_list
" link"
3765 as_fn_append ac_func_list
" setenv"
3766 as_fn_append ac_func_list
" strerror_r"
3767 as_fn_append ac_func_list
" __xpg_strerror_r"
3768 as_fn_append ac_func_list
" catgets"
3769 as_fn_append ac_func_list
" snprintf"
3770 as_fn_append ac_header_list
" sys/random.h"
3771 as_fn_append ac_header_list
" sys/uio.h"
3772 as_fn_append ac_func_list
" localtime_r"
3773 as_fn_append ac_header_list
" crtdefs.h"
3774 as_fn_append ac_func_list
" iswcntrl"
3775 as_fn_append ac_header_list
" wctype.h"
3776 as_fn_append ac_func_list
" wmempcpy"
3777 # Check that the precious variables saved in the cache have kept the same
3779 ac_cache_corrupted
=false
3780 for ac_var
in $ac_precious_vars; do
3781 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3782 eval ac_new_set
=\
$ac_env_${ac_var}_set
3783 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3784 eval ac_new_val
=\
$ac_env_${ac_var}_value
3785 case $ac_old_set,$ac_new_set in
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3788 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3789 ac_cache_corrupted
=: ;;
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3792 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3793 ac_cache_corrupted
=: ;;
3796 if test "x$ac_old_val" != "x$ac_new_val"; then
3797 # differences in whitespace do not lead to failure.
3798 ac_old_val_w
=`echo x $ac_old_val`
3799 ac_new_val_w
=`echo x $ac_new_val`
3800 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3802 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3803 ac_cache_corrupted
=:
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3806 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3807 eval $ac_var=\
$ac_old_val
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3810 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3812 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3815 # Pass precious variables to config.status.
3816 if test "$ac_new_set" = set; then
3818 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3819 *) ac_arg
=$ac_var=$ac_new_val ;;
3821 case " $ac_configure_args " in
3822 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3823 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3827 if $ac_cache_corrupted; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3831 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3832 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3834 ## -------------------- ##
3835 ## Main body of script. ##
3836 ## -------------------- ##
3839 ac_cpp
='$CPP $CPPFLAGS'
3840 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3849 ac_config_headers
="$ac_config_headers config.h:config.in"
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3855 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3856 # Check whether --enable-maintainer-mode was given.
3857 if test "${enable_maintainer_mode+set}" = set; then :
3858 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3860 USE_MAINTAINER_MODE
=no
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3864 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3865 if test $USE_MAINTAINER_MODE = yes; then
3866 MAINTAINER_MODE_TRUE
=
3867 MAINTAINER_MODE_FALSE
='#'
3869 MAINTAINER_MODE_TRUE
='#'
3870 MAINTAINER_MODE_FALSE
=
3873 MAINT
=$MAINTAINER_MODE_TRUE
3878 ac_cpp
='$CPP $CPPFLAGS'
3879 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3882 if test -n "$ac_tool_prefix"; then
3883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3884 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_CC+:} false
; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$CC"; then
3891 ac_cv_prog_CC
="$CC" # Let the user override the test.
3893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir
=.
3898 for ac_exec_ext
in '' $ac_executable_extensions; do
3899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 if test -n "$CC"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3913 $as_echo "$CC" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3921 if test -z "$ac_cv_prog_CC"; then
3923 # Extract the first word of "gcc", so it can be a program name with args.
3924 set dummy gcc
; ac_word
=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3928 $as_echo_n "(cached) " >&6
3930 if test -n "$ac_ct_CC"; then
3931 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir
=.
3938 for ac_exec_ext
in '' $ac_executable_extensions; do
3939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_ac_ct_CC
="gcc"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3951 if test -n "$ac_ct_CC"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3953 $as_echo "$ac_ct_CC" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3959 if test "x$ac_ct_CC" = x
; then
3962 case $cross_compiling:$ac_tool_warned in
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3966 ac_tool_warned
=yes ;;
3974 if test -z "$CC"; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3977 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if ${ac_cv_prog_CC+:} false
; then :
3981 $as_echo_n "(cached) " >&6
3983 if test -n "$CC"; then
3984 ac_cv_prog_CC
="$CC" # Let the user override the test.
3986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir
=.
3991 for ac_exec_ext
in '' $ac_executable_extensions; do
3992 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 if test -n "$CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4006 $as_echo "$CC" >&6; }
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4015 if test -z "$CC"; then
4016 # Extract the first word of "cc", so it can be a program name with args.
4017 set dummy cc
; ac_word
=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if ${ac_cv_prog_CC+:} false
; then :
4021 $as_echo_n "(cached) " >&6
4023 if test -n "$CC"; then
4024 ac_cv_prog_CC
="$CC" # Let the user override the test.
4027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4031 test -z "$as_dir" && as_dir
=.
4032 for ac_exec_ext
in '' $ac_executable_extensions; do
4033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4034 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4035 ac_prog_rejected
=yes
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 if test $ac_prog_rejected = yes; then
4047 # We found a bogon in the path, so make sure we never use it.
4048 set dummy
$ac_cv_prog_CC
4050 if test $# != 0; then
4051 # We chose a different compiler from the bogus one.
4052 # However, it has the same basename, so the bogon will be chosen
4053 # first if we set CC to just the basename; use the full file name.
4055 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4061 if test -n "$CC"; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4063 $as_echo "$CC" >&6; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4071 if test -z "$CC"; then
4072 if test -n "$ac_tool_prefix"; then
4073 for ac_prog
in cl.exe
4075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4076 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078 $as_echo_n "checking for $ac_word... " >&6; }
4079 if ${ac_cv_prog_CC+:} false
; then :
4080 $as_echo_n "(cached) " >&6
4082 if test -n "$CC"; then
4083 ac_cv_prog_CC
="$CC" # Let the user override the test.
4085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4089 test -z "$as_dir" && as_dir
=.
4090 for ac_exec_ext
in '' $ac_executable_extensions; do
4091 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 if test -n "$CC"; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4105 $as_echo "$CC" >&6; }
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 $as_echo "no" >&6; }
4112 test -n "$CC" && break
4115 if test -z "$CC"; then
4117 for ac_prog
in cl.exe
4119 # Extract the first word of "$ac_prog", so it can be a program name with args.
4120 set dummy
$ac_prog; ac_word
=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4124 $as_echo_n "(cached) " >&6
4126 if test -n "$ac_ct_CC"; then
4127 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir
=.
4134 for ac_exec_ext
in '' $ac_executable_extensions; do
4135 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_ac_ct_CC
="$ac_prog"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4147 if test -n "$ac_ct_CC"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4149 $as_echo "$ac_ct_CC" >&6; }
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4156 test -n "$ac_ct_CC" && break
4159 if test "x$ac_ct_CC" = x
; then
4162 case $cross_compiling:$ac_tool_warned in
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4166 ac_tool_warned
=yes ;;
4173 if test -z "$CC"; then
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4176 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if ${ac_cv_prog_CC+:} false
; then :
4180 $as_echo_n "(cached) " >&6
4182 if test -n "$CC"; then
4183 ac_cv_prog_CC
="$CC" # Let the user override the test.
4185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir
=.
4190 for ac_exec_ext
in '' $ac_executable_extensions; do
4191 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_CC
="${ac_tool_prefix}clang"
4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$CC"; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4205 $as_echo "$CC" >&6; }
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4213 if test -z "$ac_cv_prog_CC"; then
4215 # Extract the first word of "clang", so it can be a program name with args.
4216 set dummy clang
; ac_word
=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4220 $as_echo_n "(cached) " >&6
4222 if test -n "$ac_ct_CC"; then
4223 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir
=.
4230 for ac_exec_ext
in '' $ac_executable_extensions; do
4231 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_ac_ct_CC
="clang"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4243 if test -n "$ac_ct_CC"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4245 $as_echo "$ac_ct_CC" >&6; }
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4251 if test "x$ac_ct_CC" = x
; then
4254 case $cross_compiling:$ac_tool_warned in
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4258 ac_tool_warned
=yes ;;
4269 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271 as_fn_error $?
"no acceptable C compiler found in \$PATH
4272 See \`config.log' for more details" "$LINENO" 5; }
4274 # Provide some information about the compiler.
4275 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4278 for ac_option
in --version -v -V -qversion -version; do
4279 { { ac_try
="$ac_compiler $ac_option >&5"
4281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4288 if test -s conftest.err; then
4290 ... rest of stderr output deleted ...
4291 10q' conftest.err >conftest.er1
4292 cat conftest.er1 >&5
4294 rm -f conftest.er1 conftest.err
4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4310 ac_clean_files_save=$ac_clean_files
4311 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4312 # Try to create an executable without -o first, disregard a.out.
4313 # It will help us diagnose broken compilers, and finding out an intuition
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4316 $as_echo_n "checking whether the C compiler works... " >&6; }
4317 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4319 # The possible output files:
4320 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4323 for ac_file in $ac_files
4326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4327 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4332 if { { ac_try="$ac_link_default"
4334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4335 *) ac_try_echo
=$ac_try;;
4337 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4338 $as_echo "$ac_try_echo"; } >&5
4339 (eval "$ac_link_default") 2>&5
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }; then :
4343 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4344 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4345 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4346 # so that the user can short-circuit this test for compilers unknown to
4348 for ac_file
in $ac_files ''
4350 test -f "$ac_file" ||
continue
4352 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4355 # We found the default executable, but exeext='' is most
4359 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4361 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4363 # We set ac_cv_exeext here because the later test for it is not
4364 # safe: cross compilers may not add the suffix if given an `-o'
4365 # argument, so we may need to know it at that point already.
4366 # Even if this section looks crufty: it has the advantage of
4373 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4378 if test -z "$ac_file"; then :
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4381 $as_echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.
$ac_ext >&5
4384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4386 as_fn_error
77 "C compiler cannot create executables
4387 See \`config.log' for more details" "$LINENO" 5; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4390 $as_echo "yes" >&6; }
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4393 $as_echo_n "checking for C compiler default output file name... " >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4395 $as_echo "$ac_file" >&6; }
4396 ac_exeext
=$ac_cv_exeext
4398 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4399 ac_clean_files
=$ac_clean_files_save
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4401 $as_echo_n "checking for suffix of executables... " >&6; }
4402 if { { ac_try
="$ac_link"
4404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_link") 2>&5
4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412 test $ac_status = 0; }; then :
4413 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4414 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4415 # work properly (i.e., refer to `conftest.exe'), while it won't with
4417 for ac_file
in conftest.exe conftest conftest.
*; do
4418 test -f "$ac_file" ||
continue
4420 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4421 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4429 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4430 See \`config.log' for more details" "$LINENO" 5; }
4432 rm -f conftest conftest
$ac_cv_exeext
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4434 $as_echo "$ac_cv_exeext" >&6; }
4436 rm -f conftest.
$ac_ext
4437 EXEEXT
=$ac_cv_exeext
4439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4445 FILE *f = fopen ("conftest.out", "w");
4446 return ferror (f) || fclose (f) != 0;
4452 ac_clean_files
="$ac_clean_files conftest.out"
4453 # Check that the compiler produces executables we can run. If not, either
4454 # the compiler is broken, or we cross compile.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4456 $as_echo_n "checking whether we are cross compiling... " >&6; }
4457 if test "$cross_compiling" != yes; then
4458 { { ac_try
="$ac_link"
4460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465 (eval "$ac_link") 2>&5
4467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }
4469 if { ac_try='./conftest$ac_cv_exeext'
4470 { { case "(($ac_try" in
4471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4472 *) ac_try_echo
=$ac_try;;
4474 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475 $as_echo "$ac_try_echo"; } >&5
4476 (eval "$ac_try") 2>&5
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; }; }; then
4482 if test "$cross_compiling" = maybe
; then
4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487 as_fn_error $?
"cannot run C compiled programs.
4488 If you meant to cross compile, use \`--host'.
4489 See \`config.log' for more details" "$LINENO" 5; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4494 $as_echo "$cross_compiling" >&6; }
4496 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4497 ac_clean_files
=$ac_clean_files_save
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4499 $as_echo_n "checking for suffix of object files... " >&6; }
4500 if ${ac_cv_objext+:} false
; then :
4501 $as_echo_n "(cached) " >&6
4503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4514 rm -f conftest.o conftest.obj
4515 if { { ac_try
="$ac_compile"
4517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521 $as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_compile") 2>&5
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }; then :
4526 for ac_file in conftest.o conftest.obj conftest.*; do
4527 test -f "$ac_file" || continue;
4529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4535 $as_echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4540 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4541 See \
`config.log' for more details" "$LINENO" 5; }
4543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4546 $as_echo "$ac_cv_objext" >&6; }
4547 OBJEXT=$ac_cv_objext
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4550 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4551 if ${ac_cv_c_compiler_gnu+:} false; then :
4552 $as_echo_n "(cached) " >&6
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4568 if ac_fn_c_try_compile "$LINENO"; then :
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4578 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4579 if test $ac_compiler_gnu = yes; then
4584 ac_test_CFLAGS=${CFLAGS+set}
4585 ac_save_CFLAGS=$CFLAGS
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4587 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4588 if ${ac_cv_prog_cc_g+:} false; then :
4589 $as_echo_n "(cached) " >&6
4591 ac_save_c_werror_flag=$ac_c_werror_flag
4592 ac_c_werror_flag=yes
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4606 if ac_fn_c_try_compile "$LINENO"; then :
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4621 if ac_fn_c_try_compile "$LINENO"; then :
4624 ac_c_werror_flag=$ac_save_c_werror_flag
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4637 if ac_fn_c_try_compile "$LINENO"; then :
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 ac_c_werror_flag=$ac_save_c_werror_flag
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4648 $as_echo "$ac_cv_prog_cc_g" >&6; }
4649 if test "$ac_test_CFLAGS" = set; then
4650 CFLAGS=$ac_save_CFLAGS
4651 elif test $ac_cv_prog_cc_g = yes; then
4652 if test "$GCC" = yes; then
4658 if test "$GCC" = yes; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4665 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
4666 if ${ac_cv_prog_cc_c11+:} false; then :
4667 $as_echo_n "(cached) " >&6
4669 ac_cv_prog_cc_c11=no
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4674 #include <stdbool.h>
4680 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4681 #define debug(...) fprintf (stderr, __VA_ARGS__)
4682 #define showlist(...) puts (#__VA_ARGS__)
4683 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4685 test_varargs_macros (void)
4690 debug ("X = %d\n", x);
4691 showlist (The first, second, and third items.);
4692 report (x>y, "x is %d but y is %d", x, y);
4695 // Check long long types.
4696 #define BIG64 18446744073709551615ull
4697 #define BIG32 4294967295ul
4698 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4700 your preprocessor is broken;
4704 your preprocessor is broken;
4706 static long long int bignum = -9223372036854775807LL;
4707 static unsigned long long int ubignum = BIG64;
4709 struct incomplete_array
4717 const wchar_t *name;
4721 typedef const char *ccp;
4724 test_restrict (ccp restrict text)
4726 // See if C++-style comments work.
4727 // Iterate through items via the restricted pointer.
4728 // Also check for declarations in for loops.
4729 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4734 // Check varargs and va_copy.
4736 test_varargs (const char *format, ...)
4739 va_start (args, format);
4741 va_copy (args_copy, args);
4743 const char *str = "";
4752 str = va_arg (args_copy, const char *);
4755 number = va_arg (args_copy, int);
4758 fnumber = va_arg (args_copy, double);
4767 return *str && number && fnumber;
4770 char _Alignas (double) aligned_as_double;
4771 char _Alignas (0) no_special_alignment;
4772 extern char aligned_as_int;
4773 char _Alignas (0) _Alignas (int) aligned_as_int;
4778 int_alignment = _Alignof (int),
4779 int_array_alignment = _Alignof (int[100]),
4780 char_alignment = _Alignof (char)
4782 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4785 int _Noreturn does_not_return (void) { for (;;) continue; }
4787 // Check _Static_assert.
4788 struct test_static_assert
4791 _Static_assert (sizeof (int) <= sizeof (long int),
4792 "_Static_assert does not work in struct");
4796 // Check UTF-8 literals.
4797 #define u8 syntax error!
4798 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4800 // Check duplicate typedefs.
4801 typedef long *long_ptr;
4802 typedef long int *long_ptr;
4803 typedef long_ptr long_ptr;
4805 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4809 struct { int i; int j; };
4810 struct { int k; long int l; } w;
4820 _Bool success = false;
4823 if (test_restrict ("String literal") == 0)
4825 char *restrict newvar = "Another string";
4828 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4829 test_varargs_macros ();
4831 // Check flexible array members.
4832 struct incomplete_array *ia =
4833 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4835 for (int i = 0; i < ia->datasize; ++i)
4836 ia->data[i] = i * 1.234;
4838 // Check named initializers.
4839 struct named_init ni = {
4841 .name = L"Test wide string",
4842 .average = 543.34343,
4847 int dynamic_array[ni.number];
4848 dynamic_array[ni.number - 1] = 543;
4850 // work around unused variable warnings
4851 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4852 || dynamic_array[ni.number - 1] != 543);
4856 _Static_assert ((offsetof (struct anonymous, i)
4857 == offsetof (struct anonymous, w.k)),
4858 "Anonymous union alignment botch");
4864 for ac_arg in '' -std=gnu11
4866 CC="$ac_save_CC $ac_arg"
4867 if ac_fn_c_try_compile "$LINENO"; then :
4868 ac_cv_prog_cc_c11=$ac_arg
4870 rm -f core conftest.err conftest.$ac_objext
4871 test "x$ac_cv_prog_cc_c11" != "xno" && break
4873 rm -f conftest.$ac_ext
4878 ac_prog_cc_stdc_options=
4879 case "x$ac_cv_prog_cc_c11" in
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4882 $as_echo "none needed" >&6; } ;;
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4885 $as_echo "unsupported" >&6; } ;;
4887 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4888 CC=$CC$ac_prog_cc_stdc_options
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4890 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
4892 if test "x$ac_cv_prog_cc_c11" != xno; then :
4894 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4897 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
4898 if ${ac_cv_prog_cc_c99+:} false; then :
4899 $as_echo_n "(cached) " >&6
4901 ac_cv_prog_cc_c99=no
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4906 #include <stdbool.h>
4912 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4913 #define debug(...) fprintf (stderr, __VA_ARGS__)
4914 #define showlist(...) puts (#__VA_ARGS__)
4915 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4917 test_varargs_macros (void)
4922 debug ("X = %d\n", x);
4923 showlist (The first, second, and third items.);
4924 report (x>y, "x is %d but y is %d", x, y);
4927 // Check long long types.
4928 #define BIG64 18446744073709551615ull
4929 #define BIG32 4294967295ul
4930 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4932 your preprocessor is broken;
4936 your preprocessor is broken;
4938 static long long int bignum = -9223372036854775807LL;
4939 static unsigned long long int ubignum = BIG64;
4941 struct incomplete_array
4949 const wchar_t *name;
4953 typedef const char *ccp;
4956 test_restrict (ccp restrict text)
4958 // See if C++-style comments work.
4959 // Iterate through items via the restricted pointer.
4960 // Also check for declarations in for loops.
4961 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4966 // Check varargs and va_copy.
4968 test_varargs (const char *format, ...)
4971 va_start (args, format);
4973 va_copy (args_copy, args);
4975 const char *str = "";
4984 str = va_arg (args_copy, const char *);
4987 number = va_arg (args_copy, int);
4990 fnumber = va_arg (args_copy, double);
4999 return *str && number && fnumber;
5006 _Bool success = false;
5009 if (test_restrict ("String literal") == 0)
5011 char *restrict newvar = "Another string";
5014 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5015 test_varargs_macros ();
5017 // Check flexible array members.
5018 struct incomplete_array *ia =
5019 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5021 for (int i = 0; i < ia->datasize; ++i)
5022 ia->data[i] = i * 1.234;
5024 // Check named initializers.
5025 struct named_init ni = {
5027 .name = L"Test wide string",
5028 .average = 543.34343,
5033 int dynamic_array[ni.number];
5034 dynamic_array[ni.number - 1] = 543;
5036 // work around unused variable warnings
5037 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5038 || dynamic_array[ni.number - 1] != 543);
5044 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5046 CC="$ac_save_CC $ac_arg"
5047 if ac_fn_c_try_compile "$LINENO"; then :
5048 ac_cv_prog_cc_c99=$ac_arg
5050 rm -f core conftest.err conftest.$ac_objext
5051 test "x$ac_cv_prog_cc_c99" != "xno" && break
5053 rm -f conftest.$ac_ext
5058 ac_prog_cc_stdc_options=
5059 case "x$ac_cv_prog_cc_c99" in
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5062 $as_echo "none needed" >&6; } ;;
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5065 $as_echo "unsupported" >&6; } ;;
5067 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5068 CC=$CC$ac_prog_cc_stdc_options
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5070 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5072 if test "x$ac_cv_prog_cc_c99" != xno; then :
5074 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5077 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
5078 if ${ac_cv_prog_cc_c89+:} false; then :
5079 $as_echo_n "(cached) " >&6
5081 ac_cv_prog_cc_c89=no
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5089 struct buf { int x; };
5090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5091 static char *e (p, i)
5097 static char *f (char * (*g) (char **, int), char **p, ...)
5102 s = g (p, va_arg (v,int));
5107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5108 function prototypes and stuff, but not '\xHH' hex character constants.
5109 These don't provoke an error unfortunately, instead are silently treated
5110 as 'x'. The following induces an error, until -std is added to get
5111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5112 array size at least. It's necessary to write '\x00'==0 to get something
5113 that's true only with -std. */
5114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5117 inside strings and character constants. */
5119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5121 int test (int i, double x);
5122 struct s1 {int (*f) (int a);};
5123 struct s2 {int (*f) (double a);};
5124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5138 CC="$ac_save_CC $ac_arg"
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140 ac_cv_prog_cc_c89=$ac_arg
5142 rm -f core conftest.err conftest.$ac_objext
5143 test "x$ac_cv_prog_cc_c89" != "xno" && break
5145 rm -f conftest.$ac_ext
5150 ac_prog_cc_stdc_options=
5151 case "x$ac_cv_prog_cc_c89" in
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5154 $as_echo "none needed" >&6; } ;;
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5157 $as_echo "unsupported" >&6; } ;;
5159 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5160 CC=$CC$ac_prog_cc_stdc_options
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5162 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5164 if test "x$ac_cv_prog_cc_c89" != xno; then :
5166 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5169 ac_cv_prog_cc_stdc=no
5177 ac_cpp='$CPP $CPPFLAGS'
5178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5184 $as_echo_n "checking whether the compiler is clang... " >&6; }
5185 if ${gl_cv_compiler_clang+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5204 if ac_fn_c_try_compile "$LINENO"; then :
5205 gl_cv_compiler_clang=no
5207 gl_cv_compiler_clang=yes
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5213 $as_echo "$gl_cv_compiler_clang" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5217 $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
5218 if ${gl_cv_compiler_check_decl_option+:} false; then :
5219 $as_echo_n "(cached) " >&6
5221 if test $gl_cv_compiler_clang = yes; then
5222 save_ac_compile="$ac_compile"
5223 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5235 if ac_fn_c_try_compile "$LINENO"; then :
5236 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5238 gl_cv_compiler_check_decl_option=none
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 ac_compile="$save_ac_compile"
5243 gl_cv_compiler_check_decl_option=none
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5248 $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
5249 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5250 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5252 ac_compile_for_check_decl="$ac_compile"
5259 ac_cpp='$CPP $CPPFLAGS'
5260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5264 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5265 # On Suns, sometimes $CPP names a directory.
5266 if test -n "$CPP" && test -d "$CPP"; then
5269 if test -z "$CPP"; then
5270 if ${ac_cv_prog_CPP+:} false; then :
5271 $as_echo_n "(cached) " >&6
5273 # Double quotes because CPP needs to be expanded
5274 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5277 for ac_c_preproc_warn_flag in '' yes
5279 # Use a header file that comes with gcc, so configuring glibc
5280 # with a fresh cross-compiler works.
5281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5282 # <limits.h> exists even on freestanding compilers.
5283 # On the NeXT, cc -E runs the code through the compiler's parser,
5284 # not just through cpp. "Syntax error" is here to catch this case.
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5288 # include <limits.h>
5290 # include <assert.h>
5294 if ac_fn_c_try_cpp "$LINENO"; then :
5297 # Broken: fails on valid input.
5300 rm -f conftest.err conftest.i conftest.$ac_ext
5302 # OK, works on sane cases. Now check whether nonexistent headers
5303 # can be detected and how.
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 #include <ac_nonexistent.h>
5308 if ac_fn_c_try_cpp "$LINENO"; then :
5309 # Broken: success on invalid input.
5312 # Passes both tests.
5316 rm -f conftest.err conftest.i conftest.$ac_ext
5319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5320 rm -f conftest.i conftest.err conftest.
$ac_ext
5321 if $ac_preproc_ok; then :
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5334 $as_echo "$CPP" >&6; }
5336 for ac_c_preproc_warn_flag
in '' yes
5338 # Use a header file that comes with gcc, so configuring glibc
5339 # with a fresh cross-compiler works.
5340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5341 # <limits.h> exists even on freestanding compilers.
5342 # On the NeXT, cc -E runs the code through the compiler's parser,
5343 # not just through cpp. "Syntax error" is here to catch this case.
5344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5347 # include <limits.h>
5349 # include <assert.h>
5353 if ac_fn_c_try_cpp
"$LINENO"; then :
5356 # Broken: fails on valid input.
5359 rm -f conftest.err conftest.i conftest.
$ac_ext
5361 # OK, works on sane cases. Now check whether nonexistent headers
5362 # can be detected and how.
5363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5365 #include <ac_nonexistent.h>
5367 if ac_fn_c_try_cpp
"$LINENO"; then :
5368 # Broken: success on invalid input.
5371 # Passes both tests.
5375 rm -f conftest.err conftest.i conftest.
$ac_ext
5378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5379 rm -f conftest.i conftest.err conftest.
$ac_ext
5380 if $ac_preproc_ok; then :
5383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5385 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5386 See \`config.log' for more details" "$LINENO" 5; }
5390 ac_cpp
='$CPP $CPPFLAGS'
5391 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5397 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5398 if ${ac_cv_path_GREP+:} false
; then :
5399 $as_echo_n "(cached) " >&6
5401 if test -z "$GREP"; then
5402 ac_path_GREP_found
=false
5403 # Loop through the user's path and test for each of PROGNAME-LIST
5404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5405 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5408 test -z "$as_dir" && as_dir
=.
5409 for ac_prog
in grep ggrep
; do
5410 for ac_exec_ext
in '' $ac_executable_extensions; do
5411 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5412 as_fn_executable_p
"$ac_path_GREP" ||
continue
5413 # Check for GNU ac_path_GREP and select it if it is found.
5414 # Check for GNU $ac_path_GREP
5415 case `"$ac_path_GREP" --version 2>&1` in
5417 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5420 $as_echo_n 0123456789 >"conftest.in"
5423 cat "conftest.in" "conftest.in" >"conftest.tmp"
5424 mv "conftest.tmp" "conftest.in"
5425 cp "conftest.in" "conftest.nl"
5426 $as_echo 'GREP' >> "conftest.nl"
5427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5428 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5429 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5431 # Best one so far, save it but keep looking for a better one
5432 ac_cv_path_GREP
="$ac_path_GREP"
5433 ac_path_GREP_max
=$ac_count
5435 # 10*(2^10) chars as input seems more than enough
5436 test $ac_count -gt 10 && break
5438 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5441 $ac_path_GREP_found && break 3
5446 if test -z "$ac_cv_path_GREP"; then
5447 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5450 ac_cv_path_GREP
=$GREP
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5455 $as_echo "$ac_cv_path_GREP" >&6; }
5456 GREP
="$ac_cv_path_GREP"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5460 $as_echo_n "checking for egrep... " >&6; }
5461 if ${ac_cv_path_EGREP+:} false
; then :
5462 $as_echo_n "(cached) " >&6
5464 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5465 then ac_cv_path_EGREP
="$GREP -E"
5467 if test -z "$EGREP"; then
5468 ac_path_EGREP_found
=false
5469 # Loop through the user's path and test for each of PROGNAME-LIST
5470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5471 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5474 test -z "$as_dir" && as_dir
=.
5475 for ac_prog
in egrep; do
5476 for ac_exec_ext
in '' $ac_executable_extensions; do
5477 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5478 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5479 # Check for GNU ac_path_EGREP and select it if it is found.
5480 # Check for GNU $ac_path_EGREP
5481 case `"$ac_path_EGREP" --version 2>&1` in
5483 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5486 $as_echo_n 0123456789 >"conftest.in"
5489 cat "conftest.in" "conftest.in" >"conftest.tmp"
5490 mv "conftest.tmp" "conftest.in"
5491 cp "conftest.in" "conftest.nl"
5492 $as_echo 'EGREP' >> "conftest.nl"
5493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5494 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5495 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5497 # Best one so far, save it but keep looking for a better one
5498 ac_cv_path_EGREP
="$ac_path_EGREP"
5499 ac_path_EGREP_max
=$ac_count
5501 # 10*(2^10) chars as input seems more than enough
5502 test $ac_count -gt 10 && break
5504 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5507 $ac_path_EGREP_found && break 3
5512 if test -z "$ac_cv_path_EGREP"; then
5513 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5516 ac_cv_path_EGREP
=$EGREP
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5522 $as_echo "$ac_cv_path_EGREP" >&6; }
5523 EGREP
="$ac_cv_path_EGREP"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5527 $as_echo_n "checking for ANSI C header files... " >&6; }
5528 if ${ac_cv_header_stdc+:} false
; then :
5529 $as_echo_n "(cached) " >&6
5531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5546 if ac_fn_c_try_compile
"$LINENO"; then :
5547 ac_cv_header_stdc
=yes
5549 ac_cv_header_stdc
=no
5551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5553 if test $ac_cv_header_stdc = yes; then
5554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5561 $EGREP "memchr" >/dev
/null
2>&1; then :
5564 ac_cv_header_stdc
=no
5570 if test $ac_cv_header_stdc = yes; then
5571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 $EGREP "free" >/dev
/null
2>&1; then :
5581 ac_cv_header_stdc
=no
5587 if test $ac_cv_header_stdc = yes; then
5588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5589 if test "$cross_compiling" = yes; then :
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5596 #if ((' ' & 0x0FF) == 0x020)
5597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5600 # define ISLOWER(c) \
5601 (('a' <= (c) && (c) <= 'i') \
5602 || ('j' <= (c) && (c) <= 'r') \
5603 || ('s' <= (c) && (c) <= 'z'))
5604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5612 for (i = 0; i < 256; i++)
5613 if (XOR (islower (i), ISLOWER (i))
5614 || toupper (i) != TOUPPER (i))
5619 if ac_fn_c_try_run
"$LINENO"; then :
5622 ac_cv_header_stdc
=no
5624 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5625 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5631 $as_echo "$ac_cv_header_stdc" >&6; }
5632 if test $ac_cv_header_stdc = yes; then
5634 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5638 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5639 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5640 inttypes.h stdint.h unistd.h
5642 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5645 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5646 cat >>confdefs.h
<<_ACEOF
5647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5658 for ac_header
in $ac_header_list
5660 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5661 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5663 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5664 cat >>confdefs.h
<<_ACEOF
5665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5681 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5682 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5683 $as_echo_n "(cached) " >&6
5685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5688 # define __EXTENSIONS__ 1
5689 $ac_includes_default
5698 if ac_fn_c_try_compile
"$LINENO"; then :
5699 ac_cv_safe_to_define___extensions__
=yes
5701 ac_cv_safe_to_define___extensions__
=no
5703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5706 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5709 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5710 if ${ac_cv_should_define__xopen_source+:} false
; then :
5711 $as_echo_n "(cached) " >&6
5713 ac_cv_should_define__xopen_source
=no
5714 if test $ac_cv_header_wchar_h = yes; then :
5715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5728 if ac_fn_c_try_compile
"$LINENO"; then :
5731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5734 #define _XOPEN_SOURCE 500
5745 if ac_fn_c_try_compile
"$LINENO"; then :
5746 ac_cv_should_define__xopen_source
=yes
5748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5754 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5756 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5758 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5760 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5762 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5764 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5766 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5768 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5770 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5772 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5774 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5776 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5778 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5780 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5782 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5784 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5786 if test $ac_cv_header_minix_config_h = yes; then :
5788 $as_echo "#define _MINIX 1" >>confdefs.h
5790 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5792 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5797 if test $ac_cv_safe_to_define___extensions__ = yes; then :
5798 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5801 if test $ac_cv_should_define__xopen_source = yes; then :
5802 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5806 # Needs to run before gl_EARLY so it can override AC_SYS_LARGEFILE included
5809 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5810 if test -f "$ac_dir/install-sh"; then
5812 ac_install_sh
="$ac_aux_dir/install-sh -c"
5814 elif test -f "$ac_dir/install.sh"; then
5816 ac_install_sh
="$ac_aux_dir/install.sh -c"
5818 elif test -f "$ac_dir/shtool"; then
5820 ac_install_sh
="$ac_aux_dir/shtool install -c"
5824 if test -z "$ac_aux_dir"; then
5825 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5828 # These three variables are undocumented and unsupported,
5829 # and are intended to be withdrawn in a future Autoconf release.
5830 # They can cause serious problems if a builder's source tree is in a directory
5831 # whose full name contains unusual characters.
5832 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5833 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5834 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5837 # Make sure we can run config.sub.
5838 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5839 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5842 $as_echo_n "checking build system type... " >&6; }
5843 if ${ac_cv_build+:} false
; then :
5844 $as_echo_n "(cached) " >&6
5846 ac_build_alias
=$build_alias
5847 test "x$ac_build_alias" = x
&&
5848 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5849 test "x$ac_build_alias" = x
&&
5850 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5851 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5852 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5856 $as_echo "$ac_cv_build" >&6; }
5857 case $ac_cv_build in
5859 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5862 ac_save_IFS
=$IFS; IFS
='-'
5868 # Remember, the first character of IFS is used to create $*,
5869 # except with old shells:
5872 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5876 $as_echo_n "checking host system type... " >&6; }
5877 if ${ac_cv_host+:} false
; then :
5878 $as_echo_n "(cached) " >&6
5880 if test "x$host_alias" = x
; then
5881 ac_cv_host
=$ac_cv_build
5883 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5884 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5889 $as_echo "$ac_cv_host" >&6; }
5892 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5895 ac_save_IFS
=$IFS; IFS
='-'
5901 # Remember, the first character of IFS is used to create $*,
5902 # except with old shells:
5905 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5909 $as_echo_n "checking target system type... " >&6; }
5910 if ${ac_cv_target+:} false
; then :
5911 $as_echo_n "(cached) " >&6
5913 if test "x$target_alias" = x
; then
5914 ac_cv_target
=$ac_cv_host
5916 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5917 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5922 $as_echo "$ac_cv_target" >&6; }
5923 case $ac_cv_target in
5925 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
5927 target
=$ac_cv_target
5928 ac_save_IFS
=$IFS; IFS
='-'
5934 # Remember, the first character of IFS is used to create $*,
5935 # except with old shells:
5938 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
5941 # The aliases save the names the user supplied, while $host etc.
5942 # will get canonicalized.
5943 test -n "$target_alias" &&
5944 test "$program_prefix$program_suffix$program_transform_name" = \
5946 program_prefix
=${target_alias}-
5948 # The tests for host and target for $enable_largefile require
5953 # As the $enable_largefile decision depends on --enable-plugins we must set it
5954 # even in directories otherwise not depending on the $plugins option.
5958 for ac_header
in dlfcn.h
5960 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5962 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5963 cat >>confdefs.h
<<_ACEOF
5964 #define HAVE_DLFCN_H 1
5971 for ac_header
in windows.h
5973 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5975 if test "x$ac_cv_header_windows_h" = xyes
; then :
5976 cat >>confdefs.h
<<_ACEOF
5977 #define HAVE_WINDOWS_H 1
5985 # Check whether --enable-plugins was given.
5986 if test "${enable_plugins+set}" = set; then :
5987 enableval
=$enable_plugins; case "${enableval}" in
5990 if test "$maybe_plugins" != "yes" ; then
5991 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5995 plugins
=$maybe_plugins
5999 if test "$plugins" = "yes"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6001 $as_echo_n "checking for library containing dlsym... " >&6; }
6002 if ${ac_cv_search_dlsym+:} false
; then :
6003 $as_echo_n "(cached) " >&6
6005 ac_func_search_save_LIBS
=$LIBS
6006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6009 /* Override any GCC internal prototype to avoid an error.
6010 Use char because int might match the return type of a GCC
6011 builtin and then its argument prototype would still apply. */
6024 for ac_lib
in '' dl
; do
6025 if test -z "$ac_lib"; then
6026 ac_res
="none required"
6029 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6031 if ac_fn_c_try_link
"$LINENO"; then :
6032 ac_cv_search_dlsym
=$ac_res
6034 rm -f core conftest.err conftest.
$ac_objext \
6036 if ${ac_cv_search_dlsym+:} false
; then :
6040 if ${ac_cv_search_dlsym+:} false
; then :
6043 ac_cv_search_dlsym
=no
6046 LIBS
=$ac_func_search_save_LIBS
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6049 $as_echo "$ac_cv_search_dlsym" >&6; }
6050 ac_res
=$ac_cv_search_dlsym
6051 if test "$ac_res" != no
; then :
6052 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6060 sparc-
*-solaris*|i?
86-*-solaris*)
6061 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
6062 # were mutually exclusive until Solaris 11.3. Without procfs support,
6063 # the bfd/ elf module cannot provide certain routines such as
6064 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
6065 # explicitly requested large-file support through the
6066 # --enable-largefile switch, disable large-file support in favor of
6069 # Check if <sys/procfs.h> is incompatible with large-file support.
6070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 #define _FILE_OFFSET_BITS 64
6073 #define _STRUCTURED_PROC 1
6074 #include <sys/procfs.h>
6083 if ac_fn_c_try_compile
"$LINENO"; then :
6084 acx_cv_procfs_lfs
=yes
6086 acx_cv_procfs_lfs
=no
6088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6090 # Forcefully disable large-file support only if necessary, gdb is in
6092 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
6093 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
6094 : ${enable_largefile="no"}
6095 if test "$plugins" = yes; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
6097 plugin support disabled; require large-file support which is incompatible with GDB." >&5
6098 $as_echo "$as_me: WARNING:
6099 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
6104 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
6105 # benefit of g++ 9+ which predefines it on Solaris.
6106 if test "$enable_largefile" = no
; then
6107 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
6113 # Check whether --enable-largefile was given.
6114 if test "${enable_largefile+set}" = set; then :
6115 enableval
=$enable_largefile;
6118 if test "$enable_largefile" != no
; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6121 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6122 if ${ac_cv_sys_largefile_CC+:} false
; then :
6123 $as_echo_n "(cached) " >&6
6125 ac_cv_sys_largefile_CC
=no
6126 if test "$GCC" != yes; then
6129 # IRIX 6.2 and later do not support large files by default,
6130 # so use the C compiler's -n32 option if that helps.
6131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <sys/types.h>
6134 /* Check that off_t can represent 2**63 - 1 correctly.
6135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6136 since some C++ compilers masquerading as C compilers
6137 incorrectly reject 9223372036854775807. */
6138 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6140 && LARGE_OFF_T % 2147483647 == 1)
6150 if ac_fn_c_try_compile
"$LINENO"; then :
6153 rm -f core conftest.err conftest.
$ac_objext
6155 if ac_fn_c_try_compile
"$LINENO"; then :
6156 ac_cv_sys_largefile_CC
=' -n32'; break
6158 rm -f core conftest.err conftest.
$ac_objext
6162 rm -f conftest.
$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6166 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6167 if test "$ac_cv_sys_largefile_CC" != no
; then
6168 CC
=$CC$ac_cv_sys_largefile_CC
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6172 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6173 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6174 $as_echo_n "(cached) " >&6
6177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179 #include <sys/types.h>
6180 /* Check that off_t can represent 2**63 - 1 correctly.
6181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6182 since some C++ compilers masquerading as C compilers
6183 incorrectly reject 9223372036854775807. */
6184 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6186 && LARGE_OFF_T % 2147483647 == 1)
6196 if ac_fn_c_try_compile
"$LINENO"; then :
6197 ac_cv_sys_file_offset_bits
=no
; break
6199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #define _FILE_OFFSET_BITS 64
6203 #include <sys/types.h>
6204 /* Check that off_t can represent 2**63 - 1 correctly.
6205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6206 since some C++ compilers masquerading as C compilers
6207 incorrectly reject 9223372036854775807. */
6208 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6210 && LARGE_OFF_T % 2147483647 == 1)
6220 if ac_fn_c_try_compile
"$LINENO"; then :
6221 ac_cv_sys_file_offset_bits
=64; break
6223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6224 ac_cv_sys_file_offset_bits
=unknown
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6229 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6230 case $ac_cv_sys_file_offset_bits in #(
6233 cat >>confdefs.h
<<_ACEOF
6234 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6239 if test $ac_cv_sys_file_offset_bits = unknown
; then
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6241 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6242 if ${ac_cv_sys_large_files+:} false
; then :
6243 $as_echo_n "(cached) " >&6
6246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248 #include <sys/types.h>
6249 /* Check that off_t can represent 2**63 - 1 correctly.
6250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6251 since some C++ compilers masquerading as C compilers
6252 incorrectly reject 9223372036854775807. */
6253 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6255 && LARGE_OFF_T % 2147483647 == 1)
6265 if ac_fn_c_try_compile
"$LINENO"; then :
6266 ac_cv_sys_large_files
=no
; break
6268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 #define _LARGE_FILES 1
6272 #include <sys/types.h>
6273 /* Check that off_t can represent 2**63 - 1 correctly.
6274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6275 since some C++ compilers masquerading as C compilers
6276 incorrectly reject 9223372036854775807. */
6277 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6279 && LARGE_OFF_T % 2147483647 == 1)
6289 if ac_fn_c_try_compile
"$LINENO"; then :
6290 ac_cv_sys_large_files
=1; break
6292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6293 ac_cv_sys_large_files
=unknown
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6298 $as_echo "$ac_cv_sys_large_files" >&6; }
6299 case $ac_cv_sys_large_files in #(
6302 cat >>confdefs.h
<<_ACEOF
6303 #define _LARGE_FILES $ac_cv_sys_large_files
6319 $as_echo "#define _ISOC11_SOURCE 1" >>confdefs.h
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6328 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6329 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
6330 $as_echo_n "(cached) " >&6
6333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6342 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6343 gl_cv_c_amsterdam_compiler
=yes
6345 gl_cv_c_amsterdam_compiler
=no
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6352 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6354 if test $gl_cv_c_amsterdam_compiler = yes; then
6355 if test -z "$AR"; then
6358 if test -z "$ARFLAGS"; then
6365 if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6367 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_AR+:} false
; then :
6371 $as_echo_n "(cached) " >&6
6373 if test -n "$AR"; then
6374 ac_cv_prog_AR
="$AR" # Let the user override the test.
6376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6380 test -z "$as_dir" && as_dir
=.
6381 for ac_exec_ext
in '' $ac_executable_extensions; do
6382 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6383 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 if test -n "$AR"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6396 $as_echo "$AR" >&6; }
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6404 if test -z "$ac_cv_prog_AR"; then
6406 # Extract the first word of "ar", so it can be a program name with args.
6407 set dummy
ar; ac_word
=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$ac_ct_AR"; then
6414 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir
=.
6421 for ac_exec_ext
in '' $ac_executable_extensions; do
6422 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_ac_ct_AR
="ar"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6434 if test -n "$ac_ct_AR"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6436 $as_echo "$ac_ct_AR" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6442 if test "x$ac_ct_AR" = x
; then
6445 case $cross_compiling:$ac_tool_warned in
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned
=yes ;;
6457 if test -z "$ARFLAGS"; then
6463 if test -z "$RANLIB"; then
6464 if test $gl_cv_c_amsterdam_compiler = yes; then
6467 if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6469 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if ${ac_cv_prog_RANLIB+:} false
; then :
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$RANLIB"; then
6476 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir
=.
6483 for ac_exec_ext
in '' $ac_executable_extensions; do
6484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 RANLIB
=$ac_cv_prog_RANLIB
6496 if test -n "$RANLIB"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6498 $as_echo "$RANLIB" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6506 if test -z "$ac_cv_prog_RANLIB"; then
6507 ac_ct_RANLIB
=$RANLIB
6508 # Extract the first word of "ranlib", so it can be a program name with args.
6509 set dummy ranlib
; ac_word
=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6513 $as_echo_n "(cached) " >&6
6515 if test -n "$ac_ct_RANLIB"; then
6516 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir
=.
6523 for ac_exec_ext
in '' $ac_executable_extensions; do
6524 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6536 if test -n "$ac_ct_RANLIB"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6538 $as_echo "$ac_ct_RANLIB" >&6; }
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6544 if test "x$ac_ct_RANLIB" = x
; then
6547 case $cross_compiling:$ac_tool_warned in
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6551 ac_tool_warned
=yes ;;
6553 RANLIB
=$ac_ct_RANLIB
6556 RANLIB
="$ac_cv_prog_RANLIB"
6567 # IEEE behaviour is the default on all CPUs except Alpha and SH
6568 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6569 # and the GCC 4.1.2 manual).
6572 # On Alpha systems, a compiler option provides the behaviour.
6573 # See the ieee(3) manual page, also available at
6574 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
6575 if test -n "$GCC"; then
6576 # GCC has the option -mieee.
6577 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6578 CPPFLAGS
="$CPPFLAGS -mieee"
6580 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6581 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6582 CPPFLAGS
="$CPPFLAGS -ieee"
6586 if test -n "$GCC"; then
6587 # GCC has the option -mieee.
6588 CPPFLAGS
="$CPPFLAGS -mieee"
6599 # Check whether --enable-threads was given.
6600 if test "${enable_threads+set}" = set; then :
6601 enableval
=$enable_threads; gl_use_threads
=$enableval
6603 if test -n "$gl_use_threads_default"; then
6604 gl_use_threads
="$gl_use_threads_default"
6607 osf
*) gl_use_threads
=no
;;
6610 1.
[0-5].
*) gl_use_threads
=no
;;
6611 *) gl_use_threads
=yes ;;
6615 case "$gl_use_winpthreads_default" in
6616 yes) gl_use_threads
=posix
;;
6617 no
) gl_use_threads
=windows
;;
6618 *) gl_use_threads
=yes ;;
6621 *) gl_use_threads
=yes ;;
6627 if test "$gl_use_threads" = yes \
6628 ||
test "$gl_use_threads" = isoc \
6629 ||
test "$gl_use_threads" = posix \
6630 ||
test "$gl_use_threads" = isoc
+posix
; then
6631 # For using <threads.h> or <pthread.h>:
6634 if test -z "$gl_anythreadlib_early_done"; then
6637 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6638 # groks <pthread.h>. cc also understands the flag -pthread, but
6639 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6640 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6641 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6642 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6643 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
6646 # Some systems optimize for single-threaded programs by default, and
6647 # need special flags to disable these optimizations. For example, the
6648 # definition of 'errno' in <errno.h>.
6650 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
6651 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
6653 gl_anythreadlib_early_done
=done
6660 # Pre-early section.
6665 # Code from module absolute-header:
6666 # Code from module alloca:
6667 # Code from module alloca-opt:
6668 # Code from module arpa_inet:
6669 # Code from module assure:
6670 # Code from module at-internal:
6671 # Code from module attribute:
6672 # Code from module basename-lgpl:
6673 # Code from module btowc:
6674 # Code from module builtin-expect:
6675 # Code from module c99:
6676 # Code from module canonicalize-lgpl:
6677 # Code from module chdir:
6678 # Code from module chdir-long:
6679 # Code from module clock-time:
6680 # Code from module cloexec:
6681 # Code from module close:
6682 # Code from module closedir:
6683 # Code from module count-one-bits:
6684 # Code from module ctype:
6685 # Code from module d-ino:
6686 # Code from module d-type:
6687 # Code from module dirent:
6688 # Code from module dirfd:
6689 # Code from module dirname-lgpl:
6690 # Code from module double-slash-root:
6691 # Code from module dup:
6692 # Code from module dup2:
6693 # Code from module eloop-threshold:
6694 # Code from module environ:
6695 # Code from module errno:
6696 # Code from module error:
6697 # Code from module exitfail:
6698 # Code from module extensions:
6699 # Code from module extern-inline:
6700 # Code from module fchdir:
6701 # Code from module fcntl:
6702 # Code from module fcntl-h:
6703 # Code from module fd-hook:
6704 # Code from module fd-safer-flag:
6705 # Code from module fdopendir:
6706 # Code from module filename:
6707 # Code from module filenamecat-lgpl:
6708 # Code from module flexmember:
6709 # Code from module float:
6710 # Code from module fnmatch:
6711 # Code from module fnmatch-gnu:
6712 # Code from module fnmatch-h:
6713 # Code from module fpieee:
6715 # Code from module fpucw:
6716 # Code from module free-posix:
6717 # Code from module frexp:
6718 # Code from module frexpl:
6719 # Code from module fstat:
6720 # Code from module fstatat:
6721 # Code from module getcwd:
6722 # Code from module getcwd-lgpl:
6723 # Code from module getdtablesize:
6724 # Code from module getlogin_r:
6725 # Code from module getprogname:
6726 # Code from module getrandom:
6727 # Code from module gettext-h:
6728 # Code from module gettimeofday:
6729 # Code from module glob:
6730 # Code from module glob-h:
6731 # Code from module hard-locale:
6732 # Code from module idx:
6733 # Code from module include_next:
6734 # Code from module inet_ntop:
6735 # Code from module intprops:
6736 # Code from module inttypes:
6737 # Code from module inttypes-incomplete:
6738 # Code from module isblank:
6739 # Code from module isnand-nolibm:
6740 # Code from module isnanl-nolibm:
6741 # Code from module largefile:
6743 # Code from module libc-config:
6744 # Code from module limits-h:
6745 # Code from module localcharset:
6746 # Code from module locale:
6747 # Code from module lock:
6748 # Code from module lstat:
6749 # Code from module malloc-posix:
6750 # Code from module malloca:
6751 # Code from module math:
6752 # Code from module mbrtowc:
6753 # Code from module mbsinit:
6754 # Code from module mbsrtowcs:
6755 # Code from module mbtowc:
6756 # Code from module memchr:
6757 # Code from module memmem:
6758 # Code from module memmem-simple:
6759 # Code from module mempcpy:
6760 # Code from module memrchr:
6761 # Code from module minmax:
6762 # Code from module mkdir:
6763 # Code from module mkdtemp:
6764 # Code from module mkostemp:
6765 # Code from module msvc-inval:
6766 # Code from module msvc-nothrow:
6767 # Code from module multiarch:
6768 # Code from module netinet_in:
6769 # Code from module nocrash:
6770 # Code from module open:
6771 # Code from module openat:
6772 # Code from module openat-die:
6773 # Code from module openat-h:
6774 # Code from module opendir:
6775 # Code from module pathmax:
6776 # Code from module pipe-posix:
6777 # Code from module rawmemchr:
6778 # Code from module readdir:
6779 # Code from module readlink:
6780 # Code from module realloc-posix:
6781 # Code from module rename:
6782 # Code from module rewinddir:
6783 # Code from module rmdir:
6784 # Code from module same-inode:
6785 # Code from module save-cwd:
6786 # Code from module scratch_buffer:
6787 # Code from module setenv:
6788 # Code from module setlocale-null:
6789 # Code from module signal-h:
6790 # Code from module snippet/_Noreturn:
6791 # Code from module snippet/arg-nonnull:
6792 # Code from module snippet/c++defs:
6793 # Code from module snippet/warn-on-use:
6794 # Code from module socklen:
6795 # Code from module ssize_t:
6796 # Code from module stat:
6797 # Code from module stat-time:
6798 # Code from module std-gnu11:
6799 # Code from module stdalign:
6800 # Code from module stdbool:
6801 # Code from module stddef:
6802 # Code from module stdint:
6803 # Code from module stdio:
6804 # Code from module stdlib:
6805 # Code from module strchrnul:
6806 # Code from module strdup-posix:
6807 # Code from module streq:
6808 # Code from module strerror:
6809 # Code from module strerror-override:
6810 # Code from module strerror_r-posix:
6811 # Code from module string:
6812 # Code from module strnlen:
6813 # Code from module strnlen1:
6814 # Code from module strstr:
6815 # Code from module strstr-simple:
6816 # Code from module strtok_r:
6817 # Code from module sys_random:
6818 # Code from module sys_socket:
6819 # Code from module sys_stat:
6820 # Code from module sys_time:
6821 # Code from module sys_types:
6822 # Code from module sys_uio:
6823 # Code from module tempname:
6824 # Code from module threadlib:
6828 # Code from module time:
6829 # Code from module time_r:
6830 # Code from module unistd:
6831 # Code from module unistd-safer:
6832 # Code from module unsetenv:
6833 # Code from module update-copyright:
6834 # Code from module verify:
6835 # Code from module wchar:
6836 # Code from module wctype-h:
6837 # Code from module windows-mutex:
6838 # Code from module windows-once:
6839 # Code from module windows-recmutex:
6840 # Code from module windows-rwlock:
6841 # Code from module wmemchr:
6842 # Code from module wmempcpy:
6843 # Code from module xalloc-oversized:
6846 am_cv_prog_cc_stdc
=$ac_cv_prog_cc_stdc
6850 for ac_dir
in ..
"$srcdir"/..
; do
6851 if test -f "$ac_dir/install-sh"; then
6853 ac_install_sh
="$ac_aux_dir/install-sh -c"
6855 elif test -f "$ac_dir/install.sh"; then
6857 ac_install_sh
="$ac_aux_dir/install.sh -c"
6859 elif test -f "$ac_dir/shtool"; then
6861 ac_install_sh
="$ac_aux_dir/shtool install -c"
6865 if test -z "$ac_aux_dir"; then
6866 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6869 # These three variables are undocumented and unsupported,
6870 # and are intended to be withdrawn in a future Autoconf release.
6871 # They can cause serious problems if a builder's source tree is in a directory
6872 # whose full name contains unusual characters.
6873 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6874 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6875 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6888 # Check whether --enable-cross-guesses was given.
6889 if test "${enable_cross_guesses+set}" = set; then :
6890 enableval
=$enable_cross_guesses; if test "x$enableval" != xconservative
&& test "x$enableval" != xrisky
; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6892 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6893 enableval
=conservative
6895 gl_cross_guesses
="$enableval"
6897 gl_cross_guesses
=conservative
6900 if test $gl_cross_guesses = risky
; then
6901 gl_cross_guess_normal
="guessing yes"
6902 gl_cross_guess_inverted
="guessing no"
6904 gl_cross_guess_normal
="guessing no"
6905 gl_cross_guess_inverted
="guessing yes"
6907 LIBC_FATAL_STDERR_
=1
6908 export LIBC_FATAL_STDERR_
6911 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6912 if test "x$ac_cv_type_size_t" = xyes
; then :
6916 cat >>confdefs.h
<<_ACEOF
6917 #define size_t unsigned int
6922 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6923 # for constant arguments. Useless!
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6925 $as_echo_n "checking for working alloca.h... " >&6; }
6926 if ${ac_cv_working_alloca_h+:} false
; then :
6927 $as_echo_n "(cached) " >&6
6929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6935 char *p = (char *) alloca (2 * sizeof (int));
6941 if ac_fn_c_try_link
"$LINENO"; then :
6942 ac_cv_working_alloca_h
=yes
6944 ac_cv_working_alloca_h
=no
6946 rm -f core conftest.err conftest.
$ac_objext \
6947 conftest
$ac_exeext conftest.
$ac_ext
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6950 $as_echo "$ac_cv_working_alloca_h" >&6; }
6951 if test $ac_cv_working_alloca_h = yes; then
6953 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6958 $as_echo_n "checking for alloca... " >&6; }
6959 if ${ac_cv_func_alloca_works+:} false
; then :
6960 $as_echo_n "(cached) " >&6
6962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6965 # define alloca __builtin_alloca
6968 # include <malloc.h>
6969 # define alloca _alloca
6971 # ifdef HAVE_ALLOCA_H
6972 # include <alloca.h>
6977 # ifndef alloca /* predefined by HP cc +Olibcalls */
6978 void *alloca (size_t);
6988 char *p = (char *) alloca (1);
6994 if ac_fn_c_try_link
"$LINENO"; then :
6995 ac_cv_func_alloca_works
=yes
6997 ac_cv_func_alloca_works
=no
6999 rm -f core conftest.err conftest.
$ac_objext \
7000 conftest
$ac_exeext conftest.
$ac_ext
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7003 $as_echo "$ac_cv_func_alloca_works" >&6; }
7005 if test $ac_cv_func_alloca_works = yes; then
7007 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7010 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7011 # that cause trouble. Some versions do not even contain alloca or
7012 # contain a buggy version. If you still want to use their alloca,
7013 # use ar to extract alloca.o from them instead of compiling alloca.c.
7019 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7021 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7025 $as_echo_n "checking stack direction for C alloca... " >&6; }
7026 if ${ac_cv_c_stack_direction+:} false
; then :
7027 $as_echo_n "(cached) " >&6
7029 if test "$cross_compiling" = yes; then :
7030 ac_cv_c_stack_direction
=0
7032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 $ac_includes_default
7036 find_stack_direction (int *addr, int depth)
7041 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7042 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7047 main (int argc, char **argv)
7049 return find_stack_direction (0, argc + !argv + 20) < 0;
7052 if ac_fn_c_try_run
"$LINENO"; then :
7053 ac_cv_c_stack_direction
=1
7055 ac_cv_c_stack_direction
=-1
7057 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7058 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7063 $as_echo "$ac_cv_c_stack_direction" >&6; }
7064 cat >>confdefs.h
<<_ACEOF
7065 #define STACK_DIRECTION $ac_cv_c_stack_direction
7074 HAVE_DECL_INET_NTOP
=1;
7075 HAVE_DECL_INET_PTON
=1;
7076 REPLACE_INET_NTOP
=0;
7077 REPLACE_INET_PTON
=0;
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7084 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7085 if ${gl_cv_have_include_next+:} false
; then :
7086 $as_echo_n "(cached) " >&6
7088 rm -rf conftestd1a conftestd1b conftestd2
7089 mkdir conftestd1a conftestd1b conftestd2
7090 cat <<EOF > conftestd1a/conftest.h
7091 #define DEFINED_IN_CONFTESTD1
7092 #include_next <conftest.h>
7093 #ifdef DEFINED_IN_CONFTESTD2
7096 #error "include_next doesn't work"
7099 cat <<EOF > conftestd1b/conftest.h
7100 #define DEFINED_IN_CONFTESTD1
7102 #include_next <conftest.h>
7103 #ifdef DEFINED_IN_CONFTESTD2
7106 #error "include_next doesn't work"
7109 cat <<EOF > conftestd2/conftest.h
7110 #ifndef DEFINED_IN_CONFTESTD1
7111 #error "include_next test doesn't work"
7113 #define DEFINED_IN_CONFTESTD2
7115 gl_save_CPPFLAGS
="$CPPFLAGS"
7116 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 #include <conftest.h>
7121 if ac_fn_c_try_compile
"$LINENO"; then :
7122 gl_cv_have_include_next
=yes
7124 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 #include <conftest.h>
7129 if ac_fn_c_try_compile
"$LINENO"; then :
7130 gl_cv_have_include_next
=buggy
7132 gl_cv_have_include_next
=no
7134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7138 CPPFLAGS
="$gl_save_CPPFLAGS"
7139 rm -rf conftestd1a conftestd1b conftestd2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7143 $as_echo "$gl_cv_have_include_next" >&6; }
7144 PRAGMA_SYSTEM_HEADER
=
7145 if test $gl_cv_have_include_next = yes; then
7146 INCLUDE_NEXT
=include_next
7147 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7148 if test -n "$GCC"; then
7149 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7152 if test $gl_cv_have_include_next = buggy
; then
7153 INCLUDE_NEXT
=include
7154 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7156 INCLUDE_NEXT
=include
7157 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
7165 $as_echo_n "checking whether source code line length is unlimited... " >&6; }
7166 if ${gl_cv_source_line_length_unlimited+:} false
; then :
7167 $as_echo_n "(cached) " >&6
7169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7178 $EGREP "choke me" >/dev
/null
2>&1; then :
7179 gl_cv_source_line_length_unlimited
=no
7181 gl_cv_source_line_length_unlimited
=yes
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
7188 $as_echo "$gl_cv_source_line_length_unlimited" >&6; }
7189 if test $gl_cv_source_line_length_unlimited = no
; then
7190 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7200 if test $ac_cv_header_features_h = yes; then
7210 if test $ac_cv_header_sys_socket_h = no
; then
7211 for ac_header
in ws2tcpip.h
7213 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7214 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
7215 cat >>confdefs.h
<<_ACEOF
7216 #define HAVE_WS2TCPIP_H 1
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7226 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7227 if test -z "$MKDIR_P"; then
7228 if ${ac_cv_path_mkdir+:} false
; then :
7229 $as_echo_n "(cached) " >&6
7231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7232 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7235 test -z "$as_dir" && as_dir
=.
7236 for ac_prog
in mkdir gmkdir
; do
7237 for ac_exec_ext
in '' $ac_executable_extensions; do
7238 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7239 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7240 'mkdir (GNU coreutils) '* | \
7241 'mkdir (coreutils) '* | \
7242 'mkdir (fileutils) '4.1*)
7243 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7253 test -d .
/--version && rmdir .
/--version
7254 if test "${ac_cv_path_mkdir+set}" = set; then
7255 MKDIR_P
="$ac_cv_path_mkdir -p"
7257 # As a last resort, use the slow shell script. Don't cache a
7258 # value for MKDIR_P within a source directory, because that will
7259 # break other packages using the cache if that directory is
7260 # removed, or if the value is a relative name.
7261 MKDIR_P
="$ac_install_sh -d"
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7265 $as_echo "$MKDIR_P" >&6; }
7274 GNULIB_MBSNRTOWCS
=0;
7277 GNULIB_WCSNRTOMBS
=0;
7295 GNULIB_WCSCASECMP
=0;
7296 GNULIB_WCSNCASECMP
=0;
7309 GNULIB_MDA_WCSDUP
=1;
7351 HAVE_DECL_WCWIDTH
=1;
7352 REPLACE_MBSTATE_T
=0;
7358 REPLACE_MBSRTOWCS
=0;
7359 REPLACE_MBSNRTOWCS
=0;
7361 REPLACE_WCSRTOMBS
=0;
7362 REPLACE_WCSNRTOMBS
=0;
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
7371 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7372 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
7373 $as_echo_n "(cached) " >&6
7375 gl_cv_header_wchar_h_correct_inline
=yes
7378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7382 #define wcstod renamed_wcstod
7384 extern int zero (void);
7385 int main () { return zero(); }
7388 save_ac_compile
="$ac_compile"
7389 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
7390 if echo '#include "conftest.c"' >conftest1.c \
7391 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7392 (eval $ac_compile) 2>&5
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; }; then
7396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7400 #define wcstod renamed_wcstod
7402 int zero (void) { return 0; }
7405 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
7406 if echo '#include "conftest.c"' >conftest2.c \
7407 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7408 (eval $ac_compile) 2>&5
7410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7411 test $ac_status = 0; }; then
7412 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
7415 gl_cv_header_wchar_h_correct_inline
=no
7419 ac_compile
="$save_ac_compile"
7420 rm -f conftest12.c conftest12.
$ac_objext conftest
$ac_exeext
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
7426 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7427 if test $gl_cv_header_wchar_h_correct_inline = no
; then
7428 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7429 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7430 C99 mode. You have four options:
7431 - Add the flag -fgnu89-inline to CC and reconfigure, or
7432 - Fix your include files, using parts of
7433 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7434 - Use a gcc version older than 4.3, or
7435 - Don't use the flags -std=c99 or -std=gnu99.
7436 Configuration aborted." "$LINENO" 5
7442 for ac_func
in $ac_func_list
7444 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7445 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7446 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7447 cat >>confdefs.h
<<_ACEOF
7448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7458 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7459 if ${am_cv_langinfo_codeset+:} false
; then :
7460 $as_echo_n "(cached) " >&6
7462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 #include <langinfo.h>
7468 char* cs = nl_langinfo(CODESET); return !cs;
7473 if ac_fn_c_try_link
"$LINENO"; then :
7474 am_cv_langinfo_codeset
=yes
7476 am_cv_langinfo_codeset
=no
7478 rm -f core conftest.err conftest.
$ac_objext \
7479 conftest
$ac_exeext conftest.
$ac_ext
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7483 $as_echo "$am_cv_langinfo_codeset" >&6; }
7484 if test $am_cv_langinfo_codeset = yes; then
7486 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7494 $as_echo_n "checking for a traditional french locale... " >&6; }
7495 if ${gt_cv_locale_fr+:} false
; then :
7496 $as_echo_n "(cached) " >&6
7499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7504 #if HAVE_LANGINFO_CODESET
7505 # include <langinfo.h>
7512 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7513 imitates locale dependent behaviour by looking at the environment
7514 variables, and all locales use the UTF-8 encoding. */
7515 #if defined __BEOS__ || defined __HAIKU__
7518 /* Check whether the given locale name is recognized by the system. */
7519 # if defined _WIN32 && !defined __CYGWIN__
7520 /* On native Windows, setlocale(category, "") looks at the system settings,
7521 not at the environment variables. Also, when an encoding suffix such
7522 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7523 category of the locale to "C". */
7524 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7525 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7528 if (setlocale (LC_ALL, "") == NULL) return 1;
7530 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7531 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7532 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7533 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7534 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7535 some unit tests fail.
7536 On MirBSD 10, when an unsupported locale is specified, setlocale()
7537 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7538 # if HAVE_LANGINFO_CODESET
7540 const char *cs = nl_langinfo (CODESET);
7541 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7542 || strcmp (cs, "UTF-8") == 0)
7547 /* On Cygwin, avoid locale names without encoding suffix, because the
7548 locale_charset() function relies on the encoding suffix. Note that
7549 LC_ALL is set on the command line. */
7550 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7552 /* Check whether in the abbreviation of the second month, the second
7553 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7554 one byte long. This excludes the UTF-8 encoding. */
7555 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7556 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7557 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7558 /* Check whether the decimal separator is a comma.
7559 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7560 are nl_langinfo(RADIXCHAR) are both ".". */
7561 if (localeconv () ->decimal_point[0] != ',') return 1;
7568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7569 (eval $ac_link) 2>&5
7571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
7574 # Handle native Windows specially, because there setlocale() interprets
7575 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7576 # "fr" or "fra" as "French" or "French_France.1252",
7577 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7578 # "ja" as "Japanese" or "Japanese_Japan.932",
7581 # Test for the native Windows locale name.
7582 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7583 gt_cv_locale_fr
=French_France
.1252
7586 gt_cv_locale_fr
=none
7590 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7591 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7592 # configure script would override the LC_ALL setting. Likewise for
7593 # LC_CTYPE, which is also set at the beginning of the configure script.
7594 # Test for the usual locale name.
7595 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7596 gt_cv_locale_fr
=fr_FR
7598 # Test for the locale name with explicit encoding suffix.
7599 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7600 gt_cv_locale_fr
=fr_FR.ISO-8859-1
7602 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7603 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7604 gt_cv_locale_fr
=fr_FR.ISO8859-1
7606 # Test for the HP-UX locale name.
7607 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7608 gt_cv_locale_fr
=fr_FR.iso88591
7610 # Test for the Solaris 7 locale name.
7611 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7615 gt_cv_locale_fr
=none
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7628 $as_echo "$gt_cv_locale_fr" >&6; }
7629 LOCALE_FR
=$gt_cv_locale_fr
7634 GNULIB_ALIGNED_ALLOC
=0;
7636 GNULIB_CALLOC_POSIX
=0;
7637 GNULIB_CANONICALIZE_FILE_NAME
=0;
7638 GNULIB_FREE_POSIX
=0;
7639 GNULIB_GETLOADAVG
=0;
7642 GNULIB_MALLOC_POSIX
=0;
7649 GNULIB_POSIX_MEMALIGN
=0;
7650 GNULIB_POSIX_OPENPT
=0;
7657 GNULIB_REALLOCARRAY
=0;
7658 GNULIB_REALLOC_POSIX
=0;
7661 GNULIB_SECURE_GETENV
=0;
7667 GNULIB_SYSTEM_POSIX
=0;
7674 GNULIB_MDA_MKTEMP
=1;
7675 GNULIB_MDA_PUTENV
=1;
7677 HAVE_ALIGNED_ALLOC
=1;
7679 HAVE_CANONICALIZE_FILE_NAME
=1;
7683 HAVE_DECL_GETLOADAVG
=1;
7687 HAVE_DECL_INITSTATE
=1;
7694 HAVE_POSIX_MEMALIGN
=1;
7695 HAVE_POSIX_OPENPT
=1;
7702 HAVE_REALLOCARRAY
=1;
7705 HAVE_SECURE_GETENV
=1;
7709 HAVE_DECL_SETSTATE
=1;
7714 HAVE_STRUCT_RANDOM_DATA
=1;
7715 HAVE_SYS_LOADAVG_H
=0;
7717 HAVE_DECL_UNSETENV
=1;
7718 REPLACE_ALIGNED_ALLOC
=0;
7720 REPLACE_CANONICALIZE_FILE_NAME
=0;
7722 REPLACE_INITSTATE
=0;
7726 REPLACE_POSIX_MEMALIGN
=0;
7728 REPLACE_PTSNAME_R
=0;
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
7744 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
7745 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
7746 $as_echo_n "(cached) " >&6
7748 rm -f conftest.sym conftest.
file
7750 if test "$cross_compiling" = yes; then :
7753 # Guess yes on Linux systems.
7754 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
7756 # Guess yes on glibc systems.
7757 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
7759 # Guess no on native Windows.
7760 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
7762 # If we don't know, obey --enable-cross-guesses.
7763 gl_cv_func_lstat_dereferences_slashed_symlink
="$gl_cross_guess_normal" ;;
7767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7769 $ac_includes_default
7774 if (symlink ("conftest.file", "conftest.sym") != 0)
7776 /* Linux will dereference the symlink and fail, as required by
7777 POSIX. That is better in the sense that it means we will not
7778 have to compile and use the lstat wrapper. */
7779 return lstat ("conftest.sym/", &sbuf) == 0;
7785 if ac_fn_c_try_run
"$LINENO"; then :
7786 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
7788 gl_cv_func_lstat_dereferences_slashed_symlink
=no
7790 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7791 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7794 rm -f conftest.sym conftest.
file
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
7798 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7799 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
7802 cat >>confdefs.h
<<_ACEOF
7803 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7816 $as_echo_n "checking whether // is distinct from /... " >&6; }
7817 if ${gl_cv_double_slash_root+:} false
; then :
7818 $as_echo_n "(cached) " >&6
7820 if test x
"$cross_compiling" = xyes
; then
7821 # When cross-compiling, there is no way to tell whether // is special
7822 # short of a list of hosts. However, the only known hosts to date
7823 # that have a distinct // are Apollo DomainOS (too old to port to),
7824 # Cygwin, and z/OS. If anyone knows of another system for which // has
7825 # special semantics and is distinct from /, please report it to
7826 # <bug-gnulib@gnu.org>.
7828 *-cygwin | i370-ibm-openedition
)
7829 gl_cv_double_slash_root
=yes ;;
7831 # Be optimistic and assume that / and // are the same when we
7833 gl_cv_double_slash_root
='unknown, assuming no' ;;
7836 set x
`ls -di / // 2>/dev/null`
7837 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7838 gl_cv_double_slash_root
=no
7840 gl_cv_double_slash_root
=yes
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7845 $as_echo "$gl_cv_double_slash_root" >&6; }
7846 if test "$gl_cv_double_slash_root" = yes; then
7848 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7857 $as_echo_n "checking whether realpath works... " >&6; }
7858 if ${gl_cv_func_realpath_works+:} false
; then :
7859 $as_echo_n "(cached) " >&6
7862 rm -rf conftest.a conftest.d
7865 if test "$cross_compiling" = yes; then :
7867 # Guess yes on glibc systems.
7868 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7869 # Guess yes on musl systems.
7870 *-musl*) gl_cv_func_realpath_works
="guessing yes" ;;
7871 # Guess no on native Windows.
7872 mingw
*) gl_cv_func_realpath_works
="guessing no" ;;
7873 # If we don't know, obey --enable-cross-guesses.
7874 *) gl_cv_func_realpath_works
="$gl_cross_guess_normal" ;;
7878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7884 #if defined __MACH__ && defined __APPLE__
7885 /* Avoid a crash on Mac OS X. */
7886 #include <mach/mach.h>
7887 #include <mach/mach_error.h>
7888 #include <mach/thread_status.h>
7889 #include <mach/exception.h>
7890 #include <mach/task.h>
7891 #include <pthread.h>
7892 /* The exception port on which our thread listens. */
7893 static mach_port_t our_exception_port;
7894 /* The main function of the thread listening for exceptions of type
7897 mach_exception_thread (void *arg)
7899 /* Buffer for a message to be received. */
7901 mach_msg_header_t head;
7902 mach_msg_body_t msgh_body;
7905 mach_msg_return_t retval;
7906 /* Wait for a message on the exception port. */
7907 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7908 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7909 if (retval != MACH_MSG_SUCCESS)
7916 mach_port_t self = mach_task_self ();
7917 /* Allocate a port on which the thread shall listen for exceptions. */
7918 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7920 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7921 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7922 MACH_MSG_TYPE_MAKE_SEND)
7924 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7926 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7927 /* Create the thread listening on the exception port. */
7928 pthread_attr_t attr;
7930 if (pthread_attr_init (&attr) == 0
7931 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7932 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7933 pthread_attr_destroy (&attr);
7934 /* Replace the exception port info for these exceptions with our own.
7935 Note that we replace the exception port for the entire task, not only
7936 for a particular thread. This has the effect that when our exception
7937 port gets the message, the thread specific exception port has already
7938 been asked, and we don't need to bother about it.
7939 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7940 task_set_exception_ports (self, mask, our_exception_port,
7941 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7946 #elif defined _WIN32 && ! defined __CYGWIN__
7947 /* Avoid a crash on native Windows. */
7948 #define WIN32_LEAN_AND_MEAN
7949 #include <windows.h>
7950 #include <winerror.h>
7952 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7954 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7956 case EXCEPTION_ACCESS_VIOLATION:
7957 case EXCEPTION_IN_PAGE_ERROR:
7958 case EXCEPTION_STACK_OVERFLOW:
7959 case EXCEPTION_GUARD_PAGE:
7960 case EXCEPTION_PRIV_INSTRUCTION:
7961 case EXCEPTION_ILLEGAL_INSTRUCTION:
7962 case EXCEPTION_DATATYPE_MISALIGNMENT:
7963 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7964 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7967 return EXCEPTION_CONTINUE_SEARCH;
7972 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7975 /* Avoid a crash on POSIX systems. */
7978 /* A POSIX signal handler. */
7980 exception_handler (int sig)
7988 signal (SIGSEGV, exception_handler);
7991 signal (SIGBUS, exception_handler);
8005 char *name = realpath ("conftest.a", NULL);
8006 if (!(name && *name == '/'))
8011 char *name = realpath ("conftest.b/../conftest.a", NULL);
8017 char *name = realpath ("conftest.a/", NULL);
8023 char *name1 = realpath (".", NULL);
8024 char *name2 = realpath ("conftest.d//./..", NULL);
8025 if (! name1 || ! name2 || strcmp (name1, name2))
8037 if ac_fn_c_try_run
"$LINENO"; then :
8038 gl_cv_func_realpath_works
=yes
8040 gl_cv_func_realpath_works
=no
8042 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8043 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8046 rm -rf conftest.a conftest.d
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
8050 $as_echo "$gl_cv_func_realpath_works" >&6; }
8051 case "$gl_cv_func_realpath_works" in
8054 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
8069 *) for ac_func
in getcwd
8071 ac_fn_c_check_func
"$LINENO" "getcwd" "ac_cv_func_getcwd"
8072 if test "x$ac_cv_func_getcwd" = xyes
; then :
8073 cat >>confdefs.h
<<_ACEOF
8074 #define HAVE_GETCWD 1
8091 GNULIB_COPY_FILE_RANGE
=0;
8096 GNULIB_EUIDACCESS
=0;
8111 GNULIB_GETDOMAINNAME
=0;
8112 GNULIB_GETDTABLESIZE
=0;
8113 GNULIB_GETENTROPY
=0;
8115 GNULIB_GETHOSTNAME
=0;
8117 GNULIB_GETLOGIN_R
=0;
8118 GNULIB_GETOPT_POSIX
=0;
8119 GNULIB_GETPAGESIZE
=0;
8121 GNULIB_GETUSERSHELL
=0;
8122 GNULIB_GROUP_MEMBER
=0;
8134 GNULIB_READLINKAT
=0;
8136 GNULIB_SETHOSTNAME
=0;
8142 GNULIB_UNISTD_H_NONBLOCKING
=0;
8143 GNULIB_UNISTD_H_SIGPIPE
=0;
8148 GNULIB_MDA_ACCESS
=1;
8154 GNULIB_MDA_EXECLE
=1;
8155 GNULIB_MDA_EXECLP
=1;
8157 GNULIB_MDA_EXECVE
=1;
8158 GNULIB_MDA_EXECVP
=1;
8159 GNULIB_MDA_EXECVPE
=1;
8160 GNULIB_MDA_GETCWD
=1;
8161 GNULIB_MDA_GETPID
=1;
8162 GNULIB_MDA_ISATTY
=1;
8167 GNULIB_MDA_UNLINK
=1;
8170 HAVE_COPY_FILE_RANGE
=1;
8180 HAVE_GETDTABLESIZE
=1;
8187 HAVE_GROUP_MEMBER
=1;
8203 HAVE_DECL_ENVIRON
=1;
8204 HAVE_DECL_EXECVPE
=1;
8206 HAVE_DECL_FDATASYNC
=1;
8207 HAVE_DECL_GETDOMAINNAME
=1;
8208 HAVE_DECL_GETLOGIN
=1;
8209 HAVE_DECL_GETLOGIN_R
=1;
8210 HAVE_DECL_GETPAGESIZE
=1;
8211 HAVE_DECL_GETUSERSHELL
=1;
8212 HAVE_DECL_SETHOSTNAME
=1;
8213 HAVE_DECL_TRUNCATE
=1;
8214 HAVE_DECL_TTYNAME_R
=1;
8229 REPLACE_FACCESSAT
=0;
8231 REPLACE_FTRUNCATE
=0;
8233 REPLACE_GETDOMAINNAME
=0;
8234 REPLACE_GETDTABLESIZE
=0;
8235 REPLACE_GETLOGIN_R
=0;
8236 REPLACE_GETGROUPS
=0;
8237 REPLACE_GETPAGESIZE
=0;
8248 REPLACE_READLINKAT
=0;
8252 REPLACE_SYMLINKAT
=0;
8254 REPLACE_TTYNAME_R
=0;
8259 UNISTD_H_HAVE_SYS_RANDOM_H
=0;
8260 UNISTD_H_HAVE_WINSOCK2_H
=0;
8261 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
8273 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
8274 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
8276 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
8279 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
8299 HAVE_DECL_FDOPENDIR
=1;
8306 REPLACE_FDOPENDIR
=0;
8315 #if defined _WIN32 && !defined __CYGWIN__
8316 #define access _access
8317 #define chdir _chdir
8318 #define chmod _chmod
8319 #define close _close
8320 #define creat _creat
8324 #define execl _execl
8325 #define execle _execle
8326 #define execlp _execlp
8327 #define execv _execv
8328 #define execve _execve
8329 #define execvp _execvp
8330 #define execvpe _execvpe
8331 #define fcloseall _fcloseall
8333 #define fdopen _fdopen
8334 #define fileno _fileno
8336 #define getcwd _getcwd
8337 #define getpid _getpid
8339 #define isatty _isatty
8343 #define lfind _lfind
8344 #define lsearch _lsearch
8345 #define lseek _lseek
8346 #define memccpy _memccpy
8347 #define mkdir _mkdir
8348 #define mktemp _mktemp
8350 #define putenv _putenv
8353 #define rmdir _rmdir
8354 #define strdup _strdup
8356 #define tempnam _tempnam
8357 #define tzset _tzset
8358 #define umask _umask
8359 #define unlink _unlink
8360 #define utime _utime
8361 #define wcsdup _wcsdup
8362 #define write _write
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
8377 $as_echo_n "checking if environ is properly declared... " >&6; }
8378 if ${gt_cv_var_environ_declaration+:} false
; then :
8379 $as_echo_n "(cached) " >&6
8381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8386 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
8389 extern struct { int foo; } environ;
8398 if ac_fn_c_try_compile
"$LINENO"; then :
8399 gt_cv_var_environ_declaration
=no
8401 gt_cv_var_environ_declaration
=yes
8403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
8406 $as_echo "$gt_cv_var_environ_declaration" >&6; }
8407 if test $gt_cv_var_environ_declaration = yes; then
8409 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
8414 if test $gt_cv_var_environ_declaration != yes; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
8421 $as_echo_n "checking for complete errno.h... " >&6; }
8422 if ${gl_cv_header_errno_h_complete+:} false
; then :
8423 $as_echo_n "(cached) " >&6
8426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8430 #if !defined ETXTBSY
8439 #if !defined ENOLINK
8445 #if !defined EMULTIHOP
8448 #if !defined EBADMSG
8451 #if !defined EOVERFLOW
8454 #if !defined ENOTSUP
8457 #if !defined ENETRESET
8460 #if !defined ECONNABORTED
8469 #if !defined ECANCELED
8472 #if !defined EOWNERDEAD
8475 #if !defined ENOTRECOVERABLE
8483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8484 $EGREP "booboo" >/dev
/null
2>&1; then :
8485 gl_cv_header_errno_h_complete
=no
8487 gl_cv_header_errno_h_complete
=yes
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8494 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
8495 if test $gl_cv_header_errno_h_complete = yes; then
8506 if test $gl_cv_have_include_next = yes; then
8507 gl_cv_next_errno_h
='<'errno.h
'>'
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8510 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
8511 if ${gl_cv_next_errno_h+:} false
; then :
8512 $as_echo_n "(cached) " >&6
8517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8522 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8523 *) gl_absname_cpp
="$ac_cpp" ;;
8528 gl_dirsep_regex
='[/\\]'
8531 gl_dirsep_regex
='\/'
8534 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8535 gl_header_literal_regex
=`echo 'errno.h' \
8536 | sed -e "$gl_make_literal_regex_sed"`
8537 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8538 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8544 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8545 sed -n "$gl_absolute_header_sed"`
8547 gl_header
=$gl_cv_absolute_errno_h
8548 gl_cv_next_errno_h
='"'$gl_header'"'
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8553 $as_echo "$gl_cv_next_errno_h" >&6; }
8555 NEXT_ERRNO_H
=$gl_cv_next_errno_h
8557 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8558 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8559 gl_next_as_first_directive
='<'errno.h
'>'
8561 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8562 gl_next_as_first_directive
=$gl_cv_next_errno_h
8564 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
8572 if test -n "$ERRNO_H"; then
8573 GL_GENERATE_ERRNO_H_TRUE
=
8574 GL_GENERATE_ERRNO_H_FALSE
='#'
8576 GL_GENERATE_ERRNO_H_TRUE
='#'
8577 GL_GENERATE_ERRNO_H_FALSE
=
8581 if test -n "$ERRNO_H"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8583 $as_echo_n "checking for EMULTIHOP value... " >&6; }
8584 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
8585 $as_echo_n "(cached) " >&6
8588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8598 $EGREP "yes" >/dev
/null
2>&1; then :
8599 gl_cv_header_errno_h_EMULTIHOP
=yes
8601 gl_cv_header_errno_h_EMULTIHOP
=no
8605 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
8606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8609 #define _XOPEN_SOURCE_EXTENDED 1
8616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8617 $EGREP "yes" >/dev
/null
2>&1; then :
8618 gl_cv_header_errno_h_EMULTIHOP
=hidden
8622 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
8623 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8624 #define _XOPEN_SOURCE_EXTENDED 1
8626 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8638 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8639 case $gl_cv_header_errno_h_EMULTIHOP in
8641 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8644 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8652 if test -n "$ERRNO_H"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8654 $as_echo_n "checking for ENOLINK value... " >&6; }
8655 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8656 $as_echo_n "(cached) " >&6
8659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8669 $EGREP "yes" >/dev
/null
2>&1; then :
8670 gl_cv_header_errno_h_ENOLINK
=yes
8672 gl_cv_header_errno_h_ENOLINK
=no
8676 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8680 #define _XOPEN_SOURCE_EXTENDED 1
8687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8688 $EGREP "yes" >/dev
/null
2>&1; then :
8689 gl_cv_header_errno_h_ENOLINK
=hidden
8693 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8694 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8695 #define _XOPEN_SOURCE_EXTENDED 1
8697 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8709 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8710 case $gl_cv_header_errno_h_ENOLINK in
8712 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8715 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8723 if test -n "$ERRNO_H"; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8725 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8726 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8727 $as_echo_n "(cached) " >&6
8730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8740 $EGREP "yes" >/dev
/null
2>&1; then :
8741 gl_cv_header_errno_h_EOVERFLOW
=yes
8743 gl_cv_header_errno_h_EOVERFLOW
=no
8747 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8751 #define _XOPEN_SOURCE_EXTENDED 1
8758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8759 $EGREP "yes" >/dev
/null
2>&1; then :
8760 gl_cv_header_errno_h_EOVERFLOW
=hidden
8764 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8765 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8766 #define _XOPEN_SOURCE_EXTENDED 1
8768 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8780 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8781 case $gl_cv_header_errno_h_EOVERFLOW in
8783 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8786 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8794 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8795 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
8801 cat >>confdefs.h
<<_ACEOF
8802 #define HAVE_DECL_STRERROR_R $ac_have_decl
8805 for ac_func
in strerror_r
8807 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8808 if test "x$ac_cv_func_strerror_r" = xyes
; then :
8809 cat >>confdefs.h
<<_ACEOF
8810 #define HAVE_STRERROR_R 1
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8817 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8818 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
8819 $as_echo_n "(cached) " >&6
8822 ac_cv_func_strerror_r_char_p
=no
8823 if test $ac_cv_have_decl_strerror_r = yes; then
8824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 $ac_includes_default
8832 char x = *strerror_r (0, buf, sizeof buf);
8833 char *p = strerror_r (0, buf, sizeof buf);
8840 if ac_fn_c_try_compile
"$LINENO"; then :
8841 ac_cv_func_strerror_r_char_p
=yes
8843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8845 # strerror_r is not declared. Choose between
8846 # systems that have relatively inaccessible declarations for the
8847 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8848 # former has a strerror_r that returns char*, while the latter
8849 # has a strerror_r that returns `int'.
8850 # This test should segfault on the DEC system.
8851 if test "$cross_compiling" = yes; then :
8854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8856 $ac_includes_default
8857 extern char *strerror_r ();
8862 char x = *strerror_r (0, buf, sizeof buf);
8863 return ! isalpha (x);
8868 if ac_fn_c_try_run
"$LINENO"; then :
8869 ac_cv_func_strerror_r_char_p
=yes
8871 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8872 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8879 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8880 if test $ac_cv_func_strerror_r_char_p = yes; then
8882 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8889 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8890 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8896 cat >>confdefs.h
<<_ACEOF
8897 #define HAVE_DECL_FCHDIR $ac_have_decl
8903 GNULIB_NONBLOCKING
=0;
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8925 $as_echo_n "checking for working fcntl.h... " >&6; }
8926 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8927 $as_echo_n "(cached) " >&6
8929 if test "$cross_compiling" = yes; then :
8931 # Guess 'no' on native Windows.
8932 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
8933 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
8937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939 #include <sys/types.h>
8940 #include <sys/stat.h>
8942 # include <unistd.h>
8943 #else /* on Windows with MSVC */
8945 # include <stdlib.h>
8946 # defined sleep(n) _sleep ((n) * 1000)
8957 #define O_NOFOLLOW 0
8959 static int const constants[] =
8961 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8962 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8969 int result = !constants;
8972 static char const sym[] = "conftest.sym";
8973 if (symlink ("/dev/null", sym) != 0)
8977 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8984 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8988 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8999 static char const file[] = "confdefs.h";
9000 int fd = open (file, O_RDONLY | O_NOATIME);
9006 if (fstat (fd, &st0) != 0)
9012 if (read (fd, &c, 1) != 1)
9016 if (close (fd) != 0)
9021 if (stat (file, &st1) != 0)
9024 if (st0.st_atime != st1.st_atime)
9036 if ac_fn_c_try_run
"$LINENO"; then :
9037 gl_cv_header_working_fcntl_h
=yes
9040 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
9041 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
9042 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9043 *) gl_cv_header_working_fcntl_h
='no';;
9046 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9047 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9053 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9055 case $gl_cv_header_working_fcntl_h in #(
9056 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
9060 cat >>confdefs.h
<<_ACEOF
9061 #define HAVE_WORKING_O_NOATIME $ac_val
9065 case $gl_cv_header_working_fcntl_h in #(
9066 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
9070 cat >>confdefs.h
<<_ACEOF
9071 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9076 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
9078 if test "x$ac_cv_type_pid_t" = xyes
; then :
9081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9084 #if defined _WIN64 && !defined __CYGWIN__
9097 if ac_fn_c_try_compile
"$LINENO"; then :
9100 gl_pid_type
='__int64'
9102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9104 cat >>confdefs.h
<<_ACEOF
9105 #define pid_t $gl_pid_type
9112 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9113 if test "x$ac_cv_type_mode_t" = xyes
; then :
9117 cat >>confdefs.h
<<_ACEOF
9147 if test $gl_cv_have_include_next = yes; then
9148 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
9151 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
9152 if ${gl_cv_next_fnmatch_h+:} false
; then :
9153 $as_echo_n "(cached) " >&6
9156 if test $ac_cv_header_fnmatch_h = yes; then
9161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 #include <fnmatch.h>
9166 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9167 *) gl_absname_cpp
="$ac_cpp" ;;
9172 gl_dirsep_regex
='[/\\]'
9175 gl_dirsep_regex
='\/'
9178 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9179 gl_header_literal_regex
=`echo 'fnmatch.h' \
9180 | sed -e "$gl_make_literal_regex_sed"`
9181 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9182 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9188 gl_cv_absolute_fnmatch_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9189 sed -n "$gl_absolute_header_sed"`
9191 gl_header
=$gl_cv_absolute_fnmatch_h
9192 gl_cv_next_fnmatch_h
='"'$gl_header'"'
9194 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
9200 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
9202 NEXT_FNMATCH_H
=$gl_cv_next_fnmatch_h
9204 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9206 gl_next_as_first_directive
='<'fnmatch.h
'>'
9208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9209 gl_next_as_first_directive
=$gl_cv_next_fnmatch_h
9211 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
=$gl_next_as_first_directive
9219 if test $ac_cv_header_fnmatch_h = yes; then
9230 if test $ac_cv_header_fnmatch_h != yes; then
9236 if test -n "$FNMATCH_H"; then
9237 GL_GENERATE_FNMATCH_H_TRUE
=
9238 GL_GENERATE_FNMATCH_H_FALSE
='#'
9240 GL_GENERATE_FNMATCH_H_TRUE
='#'
9241 GL_GENERATE_FNMATCH_H_FALSE
=
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
9254 $as_echo_n "checking for mbstate_t... " >&6; }
9255 if ${ac_cv_type_mbstate_t+:} false
; then :
9256 $as_echo_n "(cached) " >&6
9258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9260 $ac_includes_default
9265 mbstate_t x; return sizeof x;
9270 if ac_fn_c_try_compile
"$LINENO"; then :
9271 ac_cv_type_mbstate_t
=yes
9273 ac_cv_type_mbstate_t
=no
9275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
9278 $as_echo "$ac_cv_type_mbstate_t" >&6; }
9279 if test $ac_cv_type_mbstate_t = yes; then
9281 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
9285 $as_echo "#define mbstate_t int" >>confdefs.h
9367 GNULIB_REMAINDERF
=0;
9368 GNULIB_REMAINDERL
=0;
9460 HAVE_DECL_COPYSIGNF
=1;
9477 HAVE_DECL_REMAINDER
=1;
9478 HAVE_DECL_REMAINDERL
=1;
9550 REPLACE_REMAINDER
=0;
9551 REPLACE_REMAINDERF
=0;
9552 REPLACE_REMAINDERL
=0;
9558 REPLACE_SIGNBIT_USING_BUILTINS
=0;
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
9571 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
9572 if ${gl_cv_func_frexp_no_libm+:} false
; then :
9573 $as_echo_n "(cached) " >&6
9576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9583 int e; return frexp (x, &e) > 0;
9588 if ac_fn_c_try_link
"$LINENO"; then :
9589 gl_cv_func_frexp_no_libm
=yes
9591 gl_cv_func_frexp_no_libm
=no
9593 rm -f core conftest.err conftest.
$ac_objext \
9594 conftest
$ac_exeext conftest.
$ac_ext
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
9598 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
9600 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
9601 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
9607 cat >>confdefs.h
<<_ACEOF
9608 #define HAVE_DECL_ALARM $ac_have_decl
9615 if test $gl_cv_func_frexp_no_libm = no
; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
9617 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
9618 if ${gl_cv_func_frexp_in_libm+:} false
; then :
9619 $as_echo_n "(cached) " >&6
9624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9631 int e; return frexp (x, &e) > 0;
9636 if ac_fn_c_try_link
"$LINENO"; then :
9637 gl_cv_func_frexp_in_libm
=yes
9639 gl_cv_func_frexp_in_libm
=no
9641 rm -f core conftest.err conftest.
$ac_objext \
9642 conftest
$ac_exeext conftest.
$ac_ext
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
9647 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
9648 if test $gl_cv_func_frexp_in_libm = yes; then
9652 if test $gl_cv_func_frexp_no_libm = yes \
9653 ||
test $gl_cv_func_frexp_in_libm = yes; then
9655 LIBS
="$LIBS $FREXP_LIBM"
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
9660 $as_echo_n "checking whether frexp works... " >&6; }
9661 if ${gl_cv_func_frexp_works+:} false
; then :
9662 $as_echo_n "(cached) " >&6
9665 if test "$cross_compiling" = yes; then :
9667 netbsd
* | irix
*) gl_cv_func_frexp_works
="guessing no" ;;
9668 mingw
*) # Guess yes with MSVC, no with mingw.
9669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9678 $EGREP "Good" >/dev
/null
2>&1; then :
9679 gl_cv_func_frexp_works
="guessing yes"
9681 gl_cv_func_frexp_works
="guessing no"
9686 *) gl_cv_func_frexp_works
="guessing yes" ;;
9690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9697 # include <signal.h>
9698 # include <unistd.h>
9700 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
9701 ICC 10.0 has a bug when optimizing the expression -zero.
9702 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
9703 to PowerPC on Mac OS X 10.5. */
9704 #if defined __hpux || defined __sgi || defined __ICC
9706 compute_minus_zero (void)
9708 return -DBL_MIN * DBL_MIN;
9710 # define minus_zero compute_minus_zero ()
9712 double minus_zero = -0.0;
9721 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
9722 number. Let the test fail in this case. */
9723 signal (SIGALRM, SIG_DFL);
9726 /* Test on denormalized numbers. */
9727 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
9732 double y = frexp (x, &exp);
9733 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
9734 On NetBSD: y = 0.75. Correct: y = 0.5. */
9738 /* Test on infinite numbers. */
9742 double y = frexp (x, &exp);
9746 /* Test on negative zero. */
9750 double y = frexp (x, &exp);
9751 if (memcmp (&y, &x, sizeof x))
9757 if ac_fn_c_try_run
"$LINENO"; then :
9758 gl_cv_func_frexp_works
=yes
9760 gl_cv_func_frexp_works
=no
9762 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9763 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
9769 $as_echo "$gl_cv_func_frexp_works" >&6; }
9772 case "$gl_cv_func_frexp_works" in
9773 *yes) gl_func_frexp
=yes ;;
9774 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
9779 if test $gl_func_frexp = yes; then
9781 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9788 $as_echo_n "checking whether long double and double are the same... " >&6; }
9789 if ${gl_cv_long_double_equals_double+:} false
; then :
9790 $as_echo_n "(cached) " >&6
9792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9798 typedef int check[sizeof (long double) == sizeof (double)
9799 && LDBL_MANT_DIG == DBL_MANT_DIG
9800 && LDBL_MAX_EXP == DBL_MAX_EXP
9801 && LDBL_MIN_EXP == DBL_MIN_EXP
9808 if ac_fn_c_try_compile
"$LINENO"; then :
9809 gl_cv_long_double_equals_double
=yes
9811 gl_cv_long_double_equals_double
=no
9813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9817 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9818 if test $gl_cv_long_double_equals_double = yes; then
9820 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9822 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9824 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9834 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
9836 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
9844 if test $HAVE_DECL_FREXPL = 1; then
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
9847 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
9848 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
9849 $as_echo_n "(cached) " >&6
9852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9859 int e; return frexpl (x, &e) > 0;
9864 if ac_fn_c_try_link
"$LINENO"; then :
9865 gl_cv_func_frexpl_no_libm
=yes
9867 gl_cv_func_frexpl_no_libm
=no
9869 rm -f core conftest.err conftest.
$ac_objext \
9870 conftest
$ac_exeext conftest.
$ac_ext
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
9874 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
9876 if test $gl_cv_func_frexpl_no_libm = no
; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
9878 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
9879 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
9880 $as_echo_n "(cached) " >&6
9885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9892 int e; return frexpl (x, &e) > 0;
9897 if ac_fn_c_try_link
"$LINENO"; then :
9898 gl_cv_func_frexpl_in_libm
=yes
9900 gl_cv_func_frexpl_in_libm
=no
9902 rm -f core conftest.err conftest.
$ac_objext \
9903 conftest
$ac_exeext conftest.
$ac_ext
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
9908 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
9909 if test $gl_cv_func_frexpl_in_libm = yes; then
9913 if test $gl_cv_func_frexpl_no_libm = yes \
9914 ||
test $gl_cv_func_frexpl_in_libm = yes; then
9916 LIBS
="$LIBS $FREXPL_LIBM"
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
9920 $as_echo_n "checking whether frexpl works... " >&6; }
9921 if ${gl_cv_func_frexpl_works+:} false
; then :
9922 $as_echo_n "(cached) " >&6
9925 if test "$cross_compiling" = yes; then :
9928 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
9929 gl_cv_func_frexpl_works
="guessing no";;
9930 *) gl_cv_func_frexpl_works
="guessing yes";;
9934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9939 /* Override the values of <float.h>, like done in float.in.h. */
9940 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
9941 # undef LDBL_MIN_EXP
9942 # define LDBL_MIN_EXP (-16381)
9944 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
9945 # undef LDBL_MIN_EXP
9946 # define LDBL_MIN_EXP (-16381)
9948 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
9949 # undef LDBL_MIN_EXP
9950 # define LDBL_MIN_EXP DBL_MIN_EXP
9952 #if defined __sgi && (LDBL_MANT_DIG >= 106)
9953 # if defined __GNUC__
9954 # undef LDBL_MIN_EXP
9955 # define LDBL_MIN_EXP DBL_MIN_EXP
9962 long double frexpl (long double, int *);
9963 long double zero = 0.0L;
9967 volatile long double x;
9968 /* Test on finite numbers that fails on AIX 5.1. */
9976 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
9977 function returns an invalid (incorrectly normalized) value: it returns
9978 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
9979 but the correct result is
9980 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
9984 long double y = frexpl (x, &exp);
9985 if (!(exp == 1 && y == 0.505L))
9988 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
9989 LDBL_MAX_EXP = 16384.
9990 In the loop end test, we test x against Infinity, rather than comparing
9991 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
9994 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10005 /* Test on denormalized numbers. */
10008 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10013 long double y = frexpl (x, &exp);
10014 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10015 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10016 if (exp != LDBL_MIN_EXP - 1)
10020 /* Test on infinite numbers. */
10021 /* The Microsoft MSVC 14 compiler chokes on the expression 1.0 / 0.0. */
10025 long double y = frexpl (x, &exp);
10032 if ac_fn_c_try_run
"$LINENO"; then :
10033 gl_cv_func_frexpl_works
=yes
10035 gl_cv_func_frexpl_works
=no
10037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10044 $as_echo "$gl_cv_func_frexpl_works" >&6; }
10047 case "$gl_cv_func_frexpl_works" in
10048 *yes) gl_func_frexpl
=yes ;;
10049 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
10054 if test $gl_func_frexpl = yes; then
10056 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10060 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
10061 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10063 FREXPL_LIBM
="$FREXP_LIBM"
10085 GNULIB_UTIMENSAT
=0;
10086 GNULIB_OVERRIDES_STRUCT_STAT
=0;
10087 GNULIB_MDA_CHMOD
=1;
10088 GNULIB_MDA_MKDIR
=1;
10089 GNULIB_MDA_UMASK
=1;
10102 REPLACE_FCHMODAT
=0;
10105 REPLACE_FUTIMENS
=0;
10109 REPLACE_MKFIFOAT
=0;
10113 REPLACE_UTIMENSAT
=0;
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10116 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10117 if ${ac_cv_header_stat_broken+:} false
; then :
10118 $as_echo_n "(cached) " >&6
10120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122 #include <sys/types.h>
10123 #include <sys/stat.h>
10125 #if defined S_ISBLK && defined S_IFDIR
10126 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10129 #if defined S_ISBLK && defined S_IFCHR
10130 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10133 #if defined S_ISLNK && defined S_IFREG
10134 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10137 #if defined S_ISSOCK && defined S_IFREG
10138 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10142 if ac_fn_c_try_compile
"$LINENO"; then :
10143 ac_cv_header_stat_broken
=no
10145 ac_cv_header_stat_broken
=yes
10147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10150 $as_echo "$ac_cv_header_stat_broken" >&6; }
10151 if test $ac_cv_header_stat_broken = yes; then
10153 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
10164 $as_echo_n "checking for 64-bit off_t... " >&6; }
10165 if ${gl_cv_type_off_t_64+:} false
; then :
10166 $as_echo_n "(cached) " >&6
10168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 #include <sys/types.h>
10171 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
10181 if ac_fn_c_try_compile
"$LINENO"; then :
10182 gl_cv_type_off_t_64
=yes
10184 gl_cv_type_off_t_64
=no
10186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
10190 $as_echo "$gl_cv_type_off_t_64" >&6; }
10191 if test $gl_cv_type_off_t_64 = no
; then
10192 WINDOWS_64_BIT_OFF_T
=1
10194 WINDOWS_64_BIT_OFF_T
=0
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
10197 $as_echo_n "checking for 64-bit st_size... " >&6; }
10198 if ${gl_cv_member_st_size_64+:} false
; then :
10199 $as_echo_n "(cached) " >&6
10201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10203 #include <sys/types.h>
10205 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
10215 if ac_fn_c_try_compile
"$LINENO"; then :
10216 gl_cv_member_st_size_64
=yes
10218 gl_cv_member_st_size_64
=no
10220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
10224 $as_echo "$gl_cv_member_st_size_64" >&6; }
10225 if test $gl_cv_member_st_size_64 = no
; then
10226 WINDOWS_64_BIT_ST_SIZE
=1
10228 WINDOWS_64_BIT_ST_SIZE
=0
10232 WINDOWS_64_BIT_OFF_T
=0
10233 WINDOWS_64_BIT_ST_SIZE
=0
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10238 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10239 if ${ac_cv_c_restrict+:} false
; then :
10240 $as_echo_n "(cached) " >&6
10242 ac_cv_c_restrict
=no
10243 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
10244 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
10245 # Put 'restrict' last, because C++ lacks it.
10246 for ac_kw
in __restrict__ __restrict _Restrict restrict
; do
10247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10249 typedef int *int_ptr;
10250 int foo (int_ptr $ac_kw ip) { return ip[0]; }
10251 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
10252 int bar (int ip[$ac_kw]) { return ip[0]; }
10260 return foo (t) + bar (t);
10266 if ac_fn_c_try_compile
"$LINENO"; then :
10267 ac_cv_c_restrict
=$ac_kw
10269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10270 test "$ac_cv_c_restrict" != no
&& break
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10275 $as_echo "$ac_cv_c_restrict" >&6; }
10277 case $ac_cv_c_restrict in
10279 no
) $as_echo "#define restrict /**/" >>confdefs.h
10281 *) cat >>confdefs.h
<<_ACEOF
10282 #define restrict $ac_cv_c_restrict
10301 if test $gl_cv_have_include_next = yes; then
10302 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
10305 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
10306 if ${gl_cv_next_sys_stat_h+:} false
; then :
10307 $as_echo_n "(cached) " >&6
10310 if test $ac_cv_header_sys_stat_h = yes; then
10315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317 #include <sys/stat.h>
10320 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10321 *) gl_absname_cpp
="$ac_cpp" ;;
10326 gl_dirsep_regex
='[/\\]'
10329 gl_dirsep_regex
='\/'
10332 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10333 gl_header_literal_regex
=`echo 'sys/stat.h' \
10334 | sed -e "$gl_make_literal_regex_sed"`
10335 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10336 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10342 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10343 sed -n "$gl_absolute_header_sed"`
10345 gl_header
=$gl_cv_absolute_sys_stat_h
10346 gl_cv_next_sys_stat_h
='"'$gl_header'"'
10348 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
10354 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
10356 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
10358 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10359 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10360 gl_next_as_first_directive
='<'sys
/stat.h
'>'
10362 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10363 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
10365 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
10374 WINDOWS_STAT_TIMESPEC
=0
10383 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
10384 #include <sys/stat.h>
10386 if test "x$ac_cv_type_nlink_t" = xyes
; then :
10390 $as_echo "#define nlink_t int" >>confdefs.h
10405 for ac_header
in sdkddkver.h
10407 ac_fn_c_check_header_mongrel
"$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
10408 if test "x$ac_cv_header_sdkddkver_h" = xyes
; then :
10409 cat >>confdefs.h
<<_ACEOF
10410 #define HAVE_SDKDDKVER_H 1
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
10425 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
10426 if ${gl_cv_func_getcwd_null+:} false
; then :
10427 $as_echo_n "(cached) " >&6
10429 if test "$cross_compiling" = yes; then :
10431 # Guess yes on glibc systems.
10432 *-gnu* | gnu
*) gl_cv_func_getcwd_null
="guessing yes";;
10433 # Guess yes on musl systems.
10434 *-musl*) gl_cv_func_getcwd_null
="guessing yes";;
10435 # Guess yes on Cygwin.
10436 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
10437 # If we don't know, obey --enable-cross-guesses.
10438 *) gl_cv_func_getcwd_null
="$gl_cross_guess_normal";;
10442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10445 # include <stdlib.h>
10447 # include <unistd.h>
10448 # else /* on Windows with MSVC */
10449 # include <direct.h>
10463 #if defined _WIN32 && ! defined __CYGWIN__
10464 /* mingw cwd does not start with '/', but _getcwd does allocate.
10465 However, mingw fails to honor non-zero size. */
10467 if (chdir ("/") != 0)
10471 char *f = getcwd (NULL, 0);
10475 { free (f); return 3; }
10477 { free (f); return 4; }
10487 if ac_fn_c_try_run
"$LINENO"; then :
10488 gl_cv_func_getcwd_null
=yes
10490 gl_cv_func_getcwd_null
=no
10492 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10493 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
10498 $as_echo "$gl_cv_func_getcwd_null" >&6; }
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
10502 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
10503 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
10504 $as_echo_n "(cached) " >&6
10506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10508 #include <unistd.h>
10520 char *getcwd (char *, size_t);
10527 if ac_fn_c_try_compile
"$LINENO"; then :
10528 gl_cv_func_getcwd_posix_signature
=yes
10530 gl_cv_func_getcwd_posix_signature
=no
10532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
10536 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
10538 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
10539 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
10545 cat >>confdefs.h
<<_ACEOF
10546 #define HAVE_DECL_GETCWD $ac_have_decl
10551 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
10552 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
10558 cat >>confdefs.h
<<_ACEOF
10559 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
10562 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
10563 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
10569 cat >>confdefs.h
<<_ACEOF
10570 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
10575 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
10576 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
10582 cat >>confdefs.h
<<_ACEOF
10583 #define HAVE_DECL_GETLOGIN $ac_have_decl
10590 LIB_GETLOGIN
='-ladvapi32' ;;
10601 GNULIB_GETRANDOM
=0;
10603 REPLACE_GETRANDOM
=0;
10608 GNULIB_GETTIMEOFDAY
=0;
10609 HAVE_GETTIMEOFDAY
=1;
10610 HAVE_STRUCT_TIMEVAL
=1;
10612 REPLACE_GETTIMEOFDAY
=0;
10613 REPLACE_STRUCT_TIMEVAL
=0;
10630 if test $gl_cv_have_include_next = yes; then
10631 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
10634 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10635 if ${gl_cv_next_sys_time_h+:} false
; then :
10636 $as_echo_n "(cached) " >&6
10639 if test $ac_cv_header_sys_time_h = yes; then
10644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 #include <sys/time.h>
10649 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10650 *) gl_absname_cpp
="$ac_cpp" ;;
10655 gl_dirsep_regex
='[/\\]'
10658 gl_dirsep_regex
='\/'
10661 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10662 gl_header_literal_regex
=`echo 'sys/time.h' \
10663 | sed -e "$gl_make_literal_regex_sed"`
10664 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10665 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10671 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10672 sed -n "$gl_absolute_header_sed"`
10674 gl_header
=$gl_cv_absolute_sys_time_h
10675 gl_cv_next_sys_time_h
='"'$gl_header'"'
10677 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
10683 $as_echo "$gl_cv_next_sys_time_h" >&6; }
10685 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
10687 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10688 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10689 gl_next_as_first_directive
='<'sys
/time.h
'>'
10691 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10692 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
10694 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
10700 if test $ac_cv_header_sys_time_h != yes; then
10708 if test $ac_cv_header_sys_socket_h != yes; then
10709 for ac_header
in winsock2.h
10711 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10712 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10713 cat >>confdefs.h
<<_ACEOF
10714 #define HAVE_WINSOCK2_H 1
10722 if test "$ac_cv_header_winsock2_h" = yes; then
10724 UNISTD_H_HAVE_WINSOCK2_H
=1
10725 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10732 $as_echo_n "checking for struct timeval... " >&6; }
10733 if ${gl_cv_sys_struct_timeval+:} false
; then :
10734 $as_echo_n "(cached) " >&6
10736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738 #if HAVE_SYS_TIME_H
10739 #include <sys/time.h>
10742 #if HAVE_WINSOCK2_H
10743 # include <winsock2.h>
10749 static struct timeval x; x.tv_sec = x.tv_usec;
10754 if ac_fn_c_try_compile
"$LINENO"; then :
10755 gl_cv_sys_struct_timeval
=yes
10757 gl_cv_sys_struct_timeval
=no
10759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10763 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10764 if test $gl_cv_sys_struct_timeval != yes; then
10765 HAVE_STRUCT_TIMEVAL
=0
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10768 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10769 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
10770 $as_echo_n "(cached) " >&6
10772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774 #if HAVE_SYS_TIME_H
10775 #include <sys/time.h>
10778 #if HAVE_WINSOCK2_H
10779 # include <winsock2.h>
10785 static struct timeval x;
10786 typedef int verify_tv_sec_type[
10787 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10794 if ac_fn_c_try_compile
"$LINENO"; then :
10795 gl_cv_sys_struct_timeval_tv_sec
=yes
10797 gl_cv_sys_struct_timeval_tv_sec
=no
10799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10803 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10804 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10805 REPLACE_STRUCT_TIMEVAL
=1
10821 HAVE_GLOB_PATTERN_P
=1;
10823 REPLACE_GLOB_PATTERN_P
=0;
10841 if test $gl_cv_have_include_next = yes; then
10842 gl_cv_next_glob_h
='<'glob.h
'>'
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <glob.h>" >&5
10845 $as_echo_n "checking absolute name of <glob.h>... " >&6; }
10846 if ${gl_cv_next_glob_h+:} false
; then :
10847 $as_echo_n "(cached) " >&6
10850 if test $ac_cv_header_glob_h = yes; then
10855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10860 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10861 *) gl_absname_cpp
="$ac_cpp" ;;
10866 gl_dirsep_regex
='[/\\]'
10869 gl_dirsep_regex
='\/'
10872 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10873 gl_header_literal_regex
=`echo 'glob.h' \
10874 | sed -e "$gl_make_literal_regex_sed"`
10875 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10876 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10882 gl_cv_absolute_glob_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10883 sed -n "$gl_absolute_header_sed"`
10885 gl_header
=$gl_cv_absolute_glob_h
10886 gl_cv_next_glob_h
='"'$gl_header'"'
10888 gl_cv_next_glob_h
='<'glob.h
'>'
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_glob_h" >&5
10894 $as_echo "$gl_cv_next_glob_h" >&6; }
10896 NEXT_GLOB_H
=$gl_cv_next_glob_h
10898 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10900 gl_next_as_first_directive
='<'glob.h
'>'
10902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10903 gl_next_as_first_directive
=$gl_cv_next_glob_h
10905 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
=$gl_next_as_first_directive
10911 if test $ac_cv_header_glob_h = yes; then
10922 if test $ac_cv_header_glob_h != yes; then
10928 if test -n "$GLOB_H"; then
10929 GL_GENERATE_GLOB_H_TRUE
=
10930 GL_GENERATE_GLOB_H_FALSE
='#'
10932 GL_GENERATE_GLOB_H_TRUE
='#'
10933 GL_GENERATE_GLOB_H_FALSE
=
10951 if test -z "$gl_pthreadlib_body_done"; then
10955 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
10956 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
10957 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10958 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10959 gl_have_pthread_h
=yes
10961 gl_have_pthread_h
=no
10965 if test "$gl_have_pthread_h" = yes; then
10966 # Other possible tests:
10967 # -lpthreads (FSU threads, PCthreads)
10969 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
10970 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
10971 # the second one only in libpthread, and lock.c needs it.
10973 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
10974 # needs -pthread for some reason. See:
10975 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
10977 for gl_pthread
in '' '-pthread'; do
10978 LIBS
="$LIBS $gl_pthread"
10979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10981 #include <pthread.h>
10983 pthread_mutexattr_t ma;
10988 pthread_mutex_lock (&m);
10989 pthread_mutexattr_init (&ma);
10994 if ac_fn_c_try_link
"$LINENO"; then :
10996 LIBPTHREAD
=$gl_pthread
10997 LIBPMULTITHREAD
=$gl_pthread
10999 rm -f core conftest.err conftest.
$ac_objext \
11000 conftest
$ac_exeext conftest.
$ac_ext
11002 test $gl_pthread_api = yes && break
11005 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
11006 # since it is defined as a macro on OSF/1.)
11007 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
11008 # The program links fine without libpthread. But it may actually
11009 # need to link with libpthread in order to create multiple threads.
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11011 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11012 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
11013 $as_echo_n "(cached) " >&6
11015 ac_check_lib_save_LIBS
=$LIBS
11016 LIBS
="-lpthread $LIBS"
11017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11026 char pthread_kill ();
11030 return pthread_kill ();
11035 if ac_fn_c_try_link
"$LINENO"; then :
11036 ac_cv_lib_pthread_pthread_kill
=yes
11038 ac_cv_lib_pthread_pthread_kill
=no
11040 rm -f core conftest.err conftest.
$ac_objext \
11041 conftest
$ac_exeext conftest.
$ac_ext
11042 LIBS
=$ac_check_lib_save_LIBS
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11045 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11046 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
11047 LIBPMULTITHREAD
=-lpthread
11048 # On Solaris and HP-UX, most pthread functions exist also in libc.
11049 # Therefore pthread_in_use() needs to actually try to create a
11050 # thread: pthread_create from libc will fail, whereas
11051 # pthread_create will actually create a thread.
11052 # On Solaris 10 or newer, this test is no longer needed, because
11053 # libc contains the fully functional pthread functions.
11055 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
11057 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
11063 elif test $gl_pthread_api != yes; then
11064 # Some library is needed. Try libpthread and libc_r.
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11066 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11067 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
11068 $as_echo_n "(cached) " >&6
11070 ac_check_lib_save_LIBS
=$LIBS
11071 LIBS
="-lpthread $LIBS"
11072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11081 char pthread_kill ();
11085 return pthread_kill ();
11090 if ac_fn_c_try_link
"$LINENO"; then :
11091 ac_cv_lib_pthread_pthread_kill
=yes
11093 ac_cv_lib_pthread_pthread_kill
=no
11095 rm -f core conftest.err conftest.
$ac_objext \
11096 conftest
$ac_exeext conftest.
$ac_ext
11097 LIBS
=$ac_check_lib_save_LIBS
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11100 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11101 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
11103 LIBPTHREAD
=-lpthread
11104 LIBPMULTITHREAD
=-lpthread
11107 if test $gl_pthread_api != yes; then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
11110 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
11111 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
11112 $as_echo_n "(cached) " >&6
11114 ac_check_lib_save_LIBS
=$LIBS
11116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11119 /* Override any GCC internal prototype to avoid an error.
11120 Use char because int might match the return type of a GCC
11121 builtin and then its argument prototype would still apply. */
11125 char pthread_kill ();
11129 return pthread_kill ();
11134 if ac_fn_c_try_link
"$LINENO"; then :
11135 ac_cv_lib_c_r_pthread_kill
=yes
11137 ac_cv_lib_c_r_pthread_kill
=no
11139 rm -f core conftest.err conftest.
$ac_objext \
11140 conftest
$ac_exeext conftest.
$ac_ext
11141 LIBS
=$ac_check_lib_save_LIBS
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
11144 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
11145 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
11148 LIBPMULTITHREAD
=-lc_r
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
11155 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
11157 $as_echo "$gl_pthread_api" >&6; }
11160 if test $gl_pthread_api = yes; then
11162 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
11166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11177 if ac_fn_c_try_link
"$LINENO"; then :
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
11182 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
11183 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
11184 $as_echo_n "(cached) " >&6
11186 ac_check_lib_save_LIBS
=$LIBS
11188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11197 char sched_yield ();
11201 return sched_yield ();
11206 if ac_fn_c_try_link
"$LINENO"; then :
11207 ac_cv_lib_rt_sched_yield
=yes
11209 ac_cv_lib_rt_sched_yield
=no
11211 rm -f core conftest.err conftest.
$ac_objext \
11212 conftest
$ac_exeext conftest.
$ac_ext
11213 LIBS
=$ac_check_lib_save_LIBS
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
11216 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
11217 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
11218 LIB_SCHED_YIELD
=-lrt
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
11221 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
11222 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
11223 $as_echo_n "(cached) " >&6
11225 ac_check_lib_save_LIBS
=$LIBS
11226 LIBS
="-lposix4 $LIBS"
11227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11236 char sched_yield ();
11240 return sched_yield ();
11245 if ac_fn_c_try_link
"$LINENO"; then :
11246 ac_cv_lib_posix4_sched_yield
=yes
11248 ac_cv_lib_posix4_sched_yield
=no
11250 rm -f core conftest.err conftest.
$ac_objext \
11251 conftest
$ac_exeext conftest.
$ac_ext
11252 LIBS
=$ac_check_lib_save_LIBS
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
11255 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
11256 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
11257 LIB_SCHED_YIELD
=-lposix4
11264 rm -f core conftest.err conftest.
$ac_objext \
11265 conftest
$ac_exeext conftest.
$ac_ext
11268 gl_pthreadlib_body_done
=done
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
11280 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
11281 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
11282 $as_echo_n "(cached) " >&6
11285 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
11286 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
11287 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
11288 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
11289 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
11290 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
11291 # If we don't know, obey --enable-cross-guesses.
11293 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
11298 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
11302 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
11303 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
11307 case "$gl_cv_func_setlocale_null_all_mtsafe" in
11308 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
11309 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
11312 cat >>confdefs.h
<<_ACEOF
11313 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
11318 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
11319 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
11320 $as_echo_n "(cached) " >&6
11323 # Guess no on OpenBSD, AIX.
11325 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
11326 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
11327 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
11328 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
11329 # If we don't know, obey --enable-cross-guesses.
11331 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
11336 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
11340 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
11341 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
11345 case "$gl_cv_func_setlocale_null_one_mtsafe" in
11346 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
11347 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
11350 cat >>confdefs.h
<<_ACEOF
11351 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
11355 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
11357 mingw
*) LIB_SETLOCALE_NULL
= ;;
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
11362 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
11363 if ${gl_cv_have_weak+:} false
; then :
11364 $as_echo_n "(cached) " >&6
11367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369 extern void xyzzy ();
11379 if ac_fn_c_try_link
"$LINENO"; then :
11380 gl_cv_have_weak
=maybe
11382 rm -f core conftest.err conftest.
$ac_objext \
11383 conftest
$ac_exeext conftest.
$ac_ext
11384 if test $gl_cv_have_weak = maybe
; then
11385 if test "$cross_compiling" = yes; then :
11386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11389 Extensible Linking Format
11393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11394 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
11395 gl_cv_have_weak
="guessing yes"
11397 gl_cv_have_weak
="guessing no"
11403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11410 return (fputs == NULL);
11413 if ac_fn_c_try_run
"$LINENO"; then :
11414 gl_cv_have_weak
=yes
11418 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11419 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11423 case " $LDFLAGS " in
11424 *" -static "*) gl_cv_have_weak
=no
;;
11426 case "$gl_cv_have_weak" in
11429 freebsd
* | dragonfly
*)
11431 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
11432 cat <<EOF > conftest2.c
11433 #include <pthread.h>
11434 #pragma weak pthread_mutexattr_gettype
11437 return (pthread_mutexattr_gettype != NULL);
11440 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
11441 || gl_cv_have_weak
=no
11442 rm -f conftest1.c libempty.so conftest2.c conftest
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
11450 $as_echo "$gl_cv_have_weak" >&6; }
11451 case "$gl_cv_have_weak" in
11454 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
11459 case "$gl_cv_have_weak" in
11460 *yes) LIB_SETLOCALE_NULL
= ;;
11461 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
11466 LIB_SETLOCALE_NULL
=
11477 GNULIB_GETPEERNAME
=0;
11478 GNULIB_GETSOCKNAME
=0;
11479 GNULIB_GETSOCKOPT
=0;
11485 GNULIB_SETSOCKOPT
=0;
11488 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
11489 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
11491 HAVE_SA_FAMILY_T
=1;
11501 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
11507 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
11508 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
11509 $as_echo_n "(cached) " >&6
11512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11514 #include <sys/socket.h>
11523 if ac_fn_c_try_compile
"$LINENO"; then :
11524 gl_cv_header_sys_socket_h_selfcontained
=yes
11526 gl_cv_header_sys_socket_h_selfcontained
=no
11528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
11532 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
11533 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
11534 for ac_func
in shutdown
11536 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
11537 if test "x$ac_cv_func_shutdown" = xyes
; then :
11538 cat >>confdefs.h
<<_ACEOF
11539 #define HAVE_SHUTDOWN 1
11545 if test $ac_cv_func_shutdown = yes; then
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
11547 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
11548 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
11549 $as_echo_n "(cached) " >&6
11552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h. */
11554 #include <sys/socket.h>
11558 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
11563 if ac_fn_c_try_compile
"$LINENO"; then :
11564 gl_cv_header_sys_socket_h_shut
=yes
11566 gl_cv_header_sys_socket_h_shut
=no
11568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
11572 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
11573 if test $gl_cv_header_sys_socket_h_shut = no
; then
11574 SYS_SOCKET_H
='sys/socket.h'
11578 # We need to check for ws2tcpip.h now.
11590 if test $gl_cv_have_include_next = yes; then
11591 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
11594 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
11595 if ${gl_cv_next_sys_socket_h+:} false
; then :
11596 $as_echo_n "(cached) " >&6
11599 if test $ac_cv_header_sys_socket_h = yes; then
11604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11606 #include <sys/socket.h>
11609 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11610 *) gl_absname_cpp
="$ac_cpp" ;;
11615 gl_dirsep_regex
='[/\\]'
11618 gl_dirsep_regex
='\/'
11621 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11622 gl_header_literal_regex
=`echo 'sys/socket.h' \
11623 | sed -e "$gl_make_literal_regex_sed"`
11624 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11625 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11631 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11632 sed -n "$gl_absolute_header_sed"`
11634 gl_header
=$gl_cv_absolute_sys_socket_h
11635 gl_cv_next_sys_socket_h
='"'$gl_header'"'
11637 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
11643 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
11645 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
11647 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11648 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11649 gl_next_as_first_directive
='<'sys
/socket.h
'>'
11651 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11652 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
11654 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
11659 if test $ac_cv_header_sys_socket_h = yes; then
11660 HAVE_SYS_SOCKET_H
=1
11662 HAVE_SYS_SOCKET_H
=0
11667 if test $ac_cv_header_sys_socket_h = yes; then
11670 if test $ac_cv_header_ws2tcpip_h = yes; then
11679 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
11680 /* sys/types.h is not needed according to POSIX, but the
11681 sys/socket.h in i386-unknown-freebsd4.10 and
11682 powerpc-apple-darwin5.5 required it. */
11683 #include <sys/types.h>
11684 #ifdef HAVE_SYS_SOCKET_H
11685 #include <sys/socket.h>
11687 #ifdef HAVE_WS2TCPIP_H
11688 #include <ws2tcpip.h>
11692 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
11694 cat >>confdefs.h
<<_ACEOF
11695 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11700 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
11701 /* sys/types.h is not needed according to POSIX, but the
11702 sys/socket.h in i386-unknown-freebsd4.10 and
11703 powerpc-apple-darwin5.5 required it. */
11704 #include <sys/types.h>
11705 #ifdef HAVE_SYS_SOCKET_H
11706 #include <sys/socket.h>
11708 #ifdef HAVE_WS2TCPIP_H
11709 #include <ws2tcpip.h>
11713 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
11715 cat >>confdefs.h
<<_ACEOF
11716 #define HAVE_SA_FAMILY_T 1
11722 if test $ac_cv_type_struct_sockaddr_storage = no
; then
11723 HAVE_STRUCT_SOCKADDR_STORAGE
=0
11725 if test $ac_cv_type_sa_family_t = no
; then
11728 if test $ac_cv_type_struct_sockaddr_storage != no
; then
11729 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
11730 #ifdef HAVE_SYS_SOCKET_H
11731 #include <sys/socket.h>
11733 #ifdef HAVE_WS2TCPIP_H
11734 #include <ws2tcpip.h>
11738 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
11740 cat >>confdefs.h
<<_ACEOF
11741 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11746 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
11750 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
11751 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
11752 SYS_SOCKET_H
='sys/socket.h'
11758 if test $ac_cv_header_sys_socket_h != yes; then
11759 for ac_header
in winsock2.h
11761 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11762 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
11763 cat >>confdefs.h
<<_ACEOF
11764 #define HAVE_WINSOCK2_H 1
11772 if test "$ac_cv_header_winsock2_h" = yes; then
11774 UNISTD_H_HAVE_WINSOCK2_H
=1
11775 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
11795 $as_echo_n "checking for IPv4 sockets... " >&6; }
11796 if ${gl_cv_socket_ipv4+:} false
; then :
11797 $as_echo_n "(cached) " >&6
11799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11801 #include <sys/types.h>
11802 #ifdef HAVE_SYS_SOCKET_H
11803 #include <sys/socket.h>
11805 #ifdef HAVE_NETINET_IN_H
11806 #include <netinet/in.h>
11808 #ifdef HAVE_WINSOCK2_H
11809 #include <winsock2.h>
11814 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
11815 if (&x && &y && &z) return 0;
11820 if ac_fn_c_try_compile
"$LINENO"; then :
11821 gl_cv_socket_ipv4
=yes
11823 gl_cv_socket_ipv4
=no
11825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
11828 $as_echo "$gl_cv_socket_ipv4" >&6; }
11829 if test $gl_cv_socket_ipv4 = yes; then
11831 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
11836 $as_echo_n "checking for IPv6 sockets... " >&6; }
11837 if ${gl_cv_socket_ipv6+:} false
; then :
11838 $as_echo_n "(cached) " >&6
11840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11842 #include <sys/types.h>
11843 #ifdef HAVE_SYS_SOCKET_H
11844 #include <sys/socket.h>
11846 #ifdef HAVE_NETINET_IN_H
11847 #include <netinet/in.h>
11849 #ifdef HAVE_WINSOCK2_H
11850 #include <winsock2.h>
11852 #ifdef HAVE_WS2TCPIP_H
11853 #include <ws2tcpip.h>
11858 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
11859 if (&x && &y && &z) return 0;
11864 if ac_fn_c_try_compile
"$LINENO"; then :
11865 gl_cv_socket_ipv6
=yes
11867 gl_cv_socket_ipv6
=no
11869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
11872 $as_echo "$gl_cv_socket_ipv6" >&6; }
11873 if test $gl_cv_socket_ipv6 = yes; then
11875 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
11891 if test $gl_cv_have_include_next = yes; then
11892 gl_cv_next_limits_h
='<'limits.h
'>'
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
11895 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
11896 if ${gl_cv_next_limits_h+:} false
; then :
11897 $as_echo_n "(cached) " >&6
11900 if test $ac_cv_header_limits_h = yes; then
11905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11907 #include <limits.h>
11910 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11911 *) gl_absname_cpp
="$ac_cpp" ;;
11916 gl_dirsep_regex
='[/\\]'
11919 gl_dirsep_regex
='\/'
11922 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11923 gl_header_literal_regex
=`echo 'limits.h' \
11924 | sed -e "$gl_make_literal_regex_sed"`
11925 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11926 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11932 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11933 sed -n "$gl_absolute_header_sed"`
11935 gl_header
=$gl_cv_absolute_limits_h
11936 gl_cv_next_limits_h
='"'$gl_header'"'
11938 gl_cv_next_limits_h
='<'limits.h
'>'
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
11944 $as_echo "$gl_cv_next_limits_h" >&6; }
11946 NEXT_LIMITS_H
=$gl_cv_next_limits_h
11948 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11949 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11950 gl_next_as_first_directive
='<'limits.h
'>'
11952 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11953 gl_next_as_first_directive
=$gl_cv_next_limits_h
11955 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
11962 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
11963 if ${gl_cv_header_limits_width+:} false
; then :
11964 $as_echo_n "(cached) " >&6
11966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11969 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11971 #include <limits.h>
11972 long long llm = LLONG_MAX;
11974 int ullw = ULLONG_WIDTH;
11984 if ac_fn_c_try_compile
"$LINENO"; then :
11985 gl_cv_header_limits_width
=yes
11987 gl_cv_header_limits_width
=no
11989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
11992 $as_echo "$gl_cv_header_limits_width" >&6; }
11993 if test "$gl_cv_header_limits_width" = yes; then
11999 if test -n "$LIMITS_H"; then
12000 GL_GENERATE_LIMITS_H_TRUE
=
12001 GL_GENERATE_LIMITS_H_FALSE
='#'
12003 GL_GENERATE_LIMITS_H_TRUE
='#'
12004 GL_GENERATE_LIMITS_H_FALSE
=
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12010 $as_echo_n "checking for wint_t... " >&6; }
12011 if ${gt_cv_c_wint_t+:} false
; then :
12012 $as_echo_n "(cached) " >&6
12014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12017 wint_t foo = (wchar_t)'\0';
12026 if ac_fn_c_try_compile
"$LINENO"; then :
12031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12034 $as_echo "$gt_cv_c_wint_t" >&6; }
12035 if test $gt_cv_c_wint_t = yes; then
12037 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
12041 $as_echo_n "checking whether wint_t is large enough... " >&6; }
12042 if ${gl_cv_type_wint_t_large_enough+:} false
; then :
12043 $as_echo_n "(cached) " >&6
12045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12048 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
12058 if ac_fn_c_try_compile
"$LINENO"; then :
12059 gl_cv_type_wint_t_large_enough
=yes
12061 gl_cv_type_wint_t_large_enough
=no
12063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
12066 $as_echo "$gl_cv_type_wint_t_large_enough" >&6; }
12067 if test $gl_cv_type_wint_t_large_enough = no
; then
12068 GNULIB_OVERRIDES_WINT_T
=1
12070 GNULIB_OVERRIDES_WINT_T
=0
12073 GNULIB_OVERRIDES_WINT_T
=0
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
12085 $as_echo_n "checking whether the compiler produces multi-arch binaries... " >&6; }
12086 if ${gl_cv_c_multiarch+:} false
; then :
12087 $as_echo_n "(cached) " >&6
12089 gl_cv_c_multiarch
=no
12090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12092 #ifndef __APPLE_CC__
12093 not a universal capable compiler
12098 if ac_fn_c_try_compile
"$LINENO"; then :
12102 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12103 if test -n "$prev"; then
12105 i?
86 | x86_64 | ppc | ppc64 | arm | arm64
)
12106 if test -z "$arch" ||
test "$arch" = "$word"; then
12109 gl_cv_c_multiarch
=yes
12115 if test "x$word" = "x-arch"; then
12122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
12126 $as_echo "$gl_cv_c_multiarch" >&6; }
12127 if test $gl_cv_c_multiarch = yes; then
12128 APPLE_UNIVERSAL_BUILD
=1
12130 APPLE_UNIVERSAL_BUILD
=0
12140 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12143 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12147 if test $ac_cv_header_wchar_h = yes; then
12155 if test $ac_cv_header_inttypes_h = yes; then
12163 if test $ac_cv_header_sys_types_h = yes; then
12179 if test $gl_cv_have_include_next = yes; then
12180 gl_cv_next_stdint_h
='<'stdint.h
'>'
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
12183 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
12184 if ${gl_cv_next_stdint_h+:} false
; then :
12185 $as_echo_n "(cached) " >&6
12188 if test $ac_cv_header_stdint_h = yes; then
12193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195 #include <stdint.h>
12198 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12199 *) gl_absname_cpp
="$ac_cpp" ;;
12204 gl_dirsep_regex
='[/\\]'
12207 gl_dirsep_regex
='\/'
12210 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12211 gl_header_literal_regex
=`echo 'stdint.h' \
12212 | sed -e "$gl_make_literal_regex_sed"`
12213 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12214 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12220 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12221 sed -n "$gl_absolute_header_sed"`
12223 gl_header
=$gl_cv_absolute_stdint_h
12224 gl_cv_next_stdint_h
='"'$gl_header'"'
12226 gl_cv_next_stdint_h
='<'stdint.h
'>'
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
12232 $as_echo "$gl_cv_next_stdint_h" >&6; }
12234 NEXT_STDINT_H
=$gl_cv_next_stdint_h
12236 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12237 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12238 gl_next_as_first_directive
='<'stdint.h
'>'
12240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12241 gl_next_as_first_directive
=$gl_cv_next_stdint_h
12243 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
12248 if test $ac_cv_header_stdint_h = yes; then
12255 if test $ac_cv_header_stdint_h = yes; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
12257 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
12258 if ${gl_cv_header_working_stdint_h+:} false
; then :
12259 $as_echo_n "(cached) " >&6
12261 gl_cv_header_working_stdint_h
=no
12262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12266 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12267 #define __STDC_CONSTANT_MACROS 1
12268 #define __STDC_LIMIT_MACROS 1
12269 #include <stdint.h>
12270 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
12271 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12272 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12276 #include <stddef.h>
12277 #include <signal.h>
12279 # include <wchar.h>
12284 int8_t a1 = INT8_MAX;
12285 int8_t a1min = INT8_MIN;
12288 int16_t a2 = INT16_MAX;
12289 int16_t a2min = INT16_MIN;
12292 int32_t a3 = INT32_MAX;
12293 int32_t a3min = INT32_MIN;
12296 int64_t a4 = INT64_MAX;
12297 int64_t a4min = INT64_MIN;
12300 uint8_t b1 = UINT8_MAX;
12302 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12305 uint16_t b2 = UINT16_MAX;
12308 uint32_t b3 = UINT32_MAX;
12311 uint64_t b4 = UINT64_MAX;
12313 int_least8_t c1 = INT8_C (0x7f);
12314 int_least8_t c1max = INT_LEAST8_MAX;
12315 int_least8_t c1min = INT_LEAST8_MIN;
12316 int_least16_t c2 = INT16_C (0x7fff);
12317 int_least16_t c2max = INT_LEAST16_MAX;
12318 int_least16_t c2min = INT_LEAST16_MIN;
12319 int_least32_t c3 = INT32_C (0x7fffffff);
12320 int_least32_t c3max = INT_LEAST32_MAX;
12321 int_least32_t c3min = INT_LEAST32_MIN;
12322 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
12323 int_least64_t c4max = INT_LEAST64_MAX;
12324 int_least64_t c4min = INT_LEAST64_MIN;
12325 uint_least8_t d1 = UINT8_C (0xff);
12326 uint_least8_t d1max = UINT_LEAST8_MAX;
12327 uint_least16_t d2 = UINT16_C (0xffff);
12328 uint_least16_t d2max = UINT_LEAST16_MAX;
12329 uint_least32_t d3 = UINT32_C (0xffffffff);
12330 uint_least32_t d3max = UINT_LEAST32_MAX;
12331 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
12332 uint_least64_t d4max = UINT_LEAST64_MAX;
12333 int_fast8_t e1 = INT_FAST8_MAX;
12334 int_fast8_t e1min = INT_FAST8_MIN;
12335 int_fast16_t e2 = INT_FAST16_MAX;
12336 int_fast16_t e2min = INT_FAST16_MIN;
12337 int_fast32_t e3 = INT_FAST32_MAX;
12338 int_fast32_t e3min = INT_FAST32_MIN;
12339 int_fast64_t e4 = INT_FAST64_MAX;
12340 int_fast64_t e4min = INT_FAST64_MIN;
12341 uint_fast8_t f1 = UINT_FAST8_MAX;
12342 uint_fast16_t f2 = UINT_FAST16_MAX;
12343 uint_fast32_t f3 = UINT_FAST32_MAX;
12344 uint_fast64_t f4 = UINT_FAST64_MAX;
12346 intptr_t g = INTPTR_MAX;
12347 intptr_t gmin = INTPTR_MIN;
12350 uintptr_t h = UINTPTR_MAX;
12352 intmax_t i = INTMAX_MAX;
12353 uintmax_t j = UINTMAX_MAX;
12355 /* Check that SIZE_MAX has the correct type, if possible. */
12356 #if 201112 <= __STDC_VERSION__
12357 int k = _Generic (SIZE_MAX, size_t: 0);
12358 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
12359 || (0x5110 <= __SUNPRO_C && !__STDC__))
12361 extern __typeof__ (SIZE_MAX) k;
12364 #include <limits.h> /* for CHAR_BIT */
12365 #define TYPE_MINIMUM(t) \
12366 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
12367 #define TYPE_MAXIMUM(t) \
12368 ((t) ((t) 0 < (t) -1 \
12370 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
12373 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
12374 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
12376 /* Detect bug in FreeBSD 6.0 / ia64. */
12377 int check_SIG_ATOMIC:
12378 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
12379 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
12381 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
12383 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
12384 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
12386 /* Detect bug in mingw. */
12388 WINT_MIN == TYPE_MINIMUM (wint_t)
12389 && WINT_MAX == TYPE_MAXIMUM (wint_t)
12392 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
12394 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
12395 int check_UINT16_C:
12396 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
12398 /* Detect bugs in OpenBSD 3.9 stdint.h. */
12400 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
12403 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
12406 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
12409 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
12411 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
12412 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
12413 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
12414 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
12415 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
12416 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
12417 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
12418 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
12419 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
12420 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
12421 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12432 if ac_fn_c_try_compile
"$LINENO"; then :
12433 if test "$cross_compiling" = yes; then :
12435 # Guess yes on native Windows.
12436 mingw
*) gl_cv_header_working_stdint_h
="guessing yes" ;;
12437 # In general, assume it works.
12438 *) gl_cv_header_working_stdint_h
="guessing yes" ;;
12442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12446 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12447 #define __STDC_CONSTANT_MACROS 1
12448 #define __STDC_LIMIT_MACROS 1
12449 #include <stdint.h>
12452 #include <stddef.h>
12453 #include <signal.h>
12455 # include <wchar.h>
12460 #include <string.h>
12461 #define MVAL(macro) MVAL1(macro)
12462 #define MVAL1(expression) #expression
12463 static const char *macro_values[] =
12497 for (mv = macro_values; *mv != NULL; mv++)
12499 const char *value = *mv;
12500 /* Test whether it looks like a cast expression. */
12501 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
12502 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
12503 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
12504 || strncmp (value, "((int)"/*)*/, 6) == 0
12505 || strncmp (value, "((signed short)"/*)*/, 15) == 0
12506 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
12507 return mv - macro_values + 1;
12515 if ac_fn_c_try_run
"$LINENO"; then :
12516 gl_cv_header_working_stdint_h
=yes
12518 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12519 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
12528 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
12531 HAVE_C99_STDINT_H
=0
12532 HAVE_SYS_BITYPES_H
=0
12533 HAVE_SYS_INTTYPES_H
=0
12535 case "$gl_cv_header_working_stdint_h" in
12537 HAVE_C99_STDINT_H
=1
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
12539 $as_echo_n "checking whether stdint.h works without ISO C predefines... " >&6; }
12540 if ${gl_cv_header_stdint_without_STDC_macros+:} false
; then :
12541 $as_echo_n "(cached) " >&6
12543 gl_cv_header_stdint_without_STDC_macros
=no
12544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h. */
12548 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12549 #include <stdint.h>
12552 #include <stddef.h>
12553 #include <signal.h>
12555 # include <wchar.h>
12559 intmax_t im = INTMAX_MAX;
12560 int32_t i32 = INT32_C (0x7fffffff);
12570 if ac_fn_c_try_compile
"$LINENO"; then :
12571 gl_cv_header_stdint_without_STDC_macros
=yes
12573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
12577 $as_echo "$gl_cv_header_stdint_without_STDC_macros" >&6; }
12579 if test $gl_cv_header_stdint_without_STDC_macros = no
; then
12581 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
12584 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
12588 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
12589 if ${gl_cv_header_stdint_width+:} false
; then :
12590 $as_echo_n "(cached) " >&6
12592 gl_cv_header_stdint_width
=no
12593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12596 /* Work if build is not clean. */
12597 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
12598 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12599 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12601 #include <stdint.h>
12603 #include <stddef.h>
12604 #include <signal.h>
12606 # include <wchar.h>
12609 int iw = UINTMAX_WIDTH;
12619 if ac_fn_c_try_compile
"$LINENO"; then :
12620 gl_cv_header_stdint_width
=yes
12622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
12625 $as_echo "$gl_cv_header_stdint_width" >&6; }
12626 if test "$gl_cv_header_stdint_width" = yes; then
12631 for ac_header
in sys
/inttypes.h sys
/bitypes.h
12633 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12634 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12635 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12636 cat >>confdefs.h
<<_ACEOF
12637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12644 if test $ac_cv_header_sys_inttypes_h = yes; then
12645 HAVE_SYS_INTTYPES_H
=1
12647 if test $ac_cv_header_sys_bitypes_h = yes; then
12648 HAVE_SYS_BITYPES_H
=1
12652 if test $APPLE_UNIVERSAL_BUILD = 0; then
12655 for gltype
in ptrdiff_t size_t
; do
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12657 $as_echo_n "checking for bit size of $gltype... " >&6; }
12658 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12659 $as_echo_n "(cached) " >&6
12661 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12662 #include <stddef.h>
12663 #include <signal.h>
12665 # include <wchar.h>
12668 #include <limits.h>"; then :
12674 eval gl_cv_bitsizeof_
${gltype}=\
$result
12677 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12679 $as_echo "$ac_res" >&6; }
12680 eval result
=\
$gl_cv_bitsizeof_${gltype}
12681 if test $result = unknown
; then
12684 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12685 cat >>confdefs.h
<<_ACEOF
12686 #define BITSIZEOF_${GLTYPE} $result
12689 eval BITSIZEOF_
${GLTYPE}=\
$result
12696 for gltype
in sig_atomic_t wchar_t wint_t
; do
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12698 $as_echo_n "checking for bit size of $gltype... " >&6; }
12699 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12700 $as_echo_n "(cached) " >&6
12702 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12703 #include <stddef.h>
12704 #include <signal.h>
12706 # include <wchar.h>
12709 #include <limits.h>"; then :
12715 eval gl_cv_bitsizeof_
${gltype}=\
$result
12718 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12720 $as_echo "$ac_res" >&6; }
12721 eval result
=\
$gl_cv_bitsizeof_${gltype}
12722 if test $result = unknown
; then
12725 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12726 cat >>confdefs.h
<<_ACEOF
12727 #define BITSIZEOF_${GLTYPE} $result
12730 eval BITSIZEOF_
${GLTYPE}=\
$result
12736 for gltype
in sig_atomic_t wchar_t wint_t
; do
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
12738 $as_echo_n "checking whether $gltype is signed... " >&6; }
12739 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
12740 $as_echo_n "(cached) " >&6
12742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12745 #include <stddef.h>
12746 #include <signal.h>
12748 # include <wchar.h>
12751 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12760 if ac_fn_c_try_compile
"$LINENO"; then :
12765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12766 eval gl_cv_type_
${gltype}_signed
=\
$result
12769 eval ac_res
=\
$gl_cv_type_${gltype}_signed
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12771 $as_echo "$ac_res" >&6; }
12772 eval result
=\
$gl_cv_type_${gltype}_signed
12773 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12774 if test "$result" = yes; then
12775 cat >>confdefs.h
<<_ACEOF
12776 #define HAVE_SIGNED_${GLTYPE} 1
12779 eval HAVE_SIGNED_
${GLTYPE}=1
12781 eval HAVE_SIGNED_
${GLTYPE}=0
12786 gl_cv_type_ptrdiff_t_signed
=yes
12787 gl_cv_type_size_t_signed
=no
12788 if test $APPLE_UNIVERSAL_BUILD = 0; then
12791 for gltype
in ptrdiff_t size_t
; do
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12793 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12794 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12795 $as_echo_n "(cached) " >&6
12797 eval gl_cv_type_
${gltype}_suffix
=no
12798 eval result
=\
$gl_cv_type_${gltype}_signed
12799 if test "$result" = yes; then
12804 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12806 '') gltype1
='int';;
12807 l
) gltype1
='long int';;
12808 ll
) gltype1
='long long int';;
12809 i64
) gltype1
='__int64';;
12810 u
) gltype1
='unsigned int';;
12811 ul
) gltype1
='unsigned long int';;
12812 ull
) gltype1
='unsigned long long int';;
12813 ui64
)gltype1
='unsigned __int64';;
12815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12818 #include <stddef.h>
12819 #include <signal.h>
12821 # include <wchar.h>
12824 extern $gltype foo;
12825 extern $gltype1 foo;
12834 if ac_fn_c_try_compile
"$LINENO"; then :
12835 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12838 eval result
=\
$gl_cv_type_${gltype}_suffix
12839 test "$result" != no
&& break
12842 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12844 $as_echo "$ac_res" >&6; }
12845 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12846 eval result
=\
$gl_cv_type_${gltype}_suffix
12847 test "$result" = no
&& result
=
12848 eval ${GLTYPE}_SUFFIX
=\
$result
12849 cat >>confdefs.h
<<_ACEOF
12850 #define ${GLTYPE}_SUFFIX $result
12859 for gltype
in sig_atomic_t wchar_t wint_t
; do
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12861 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12862 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12863 $as_echo_n "(cached) " >&6
12865 eval gl_cv_type_
${gltype}_suffix
=no
12866 eval result
=\
$gl_cv_type_${gltype}_signed
12867 if test "$result" = yes; then
12872 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12874 '') gltype1
='int';;
12875 l
) gltype1
='long int';;
12876 ll
) gltype1
='long long int';;
12877 i64
) gltype1
='__int64';;
12878 u
) gltype1
='unsigned int';;
12879 ul
) gltype1
='unsigned long int';;
12880 ull
) gltype1
='unsigned long long int';;
12881 ui64
)gltype1
='unsigned __int64';;
12883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12886 #include <stddef.h>
12887 #include <signal.h>
12889 # include <wchar.h>
12892 extern $gltype foo;
12893 extern $gltype1 foo;
12902 if ac_fn_c_try_compile
"$LINENO"; then :
12903 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12906 eval result
=\
$gl_cv_type_${gltype}_suffix
12907 test "$result" != no
&& break
12910 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12912 $as_echo "$ac_res" >&6; }
12913 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12914 eval result
=\
$gl_cv_type_${gltype}_suffix
12915 test "$result" = no
&& result
=
12916 eval ${GLTYPE}_SUFFIX
=\
$result
12917 cat >>confdefs.h
<<_ACEOF
12918 #define ${GLTYPE}_SUFFIX $result
12925 if test $GNULIB_OVERRIDES_WINT_T = 1; then
12926 BITSIZEOF_WINT_T
=32
12934 LIMITS_H
='limits.h'
12935 if test -n "$LIMITS_H"; then
12936 GL_GENERATE_LIMITS_H_TRUE
=
12937 GL_GENERATE_LIMITS_H_FALSE
='#'
12939 GL_GENERATE_LIMITS_H_TRUE
='#'
12940 GL_GENERATE_LIMITS_H_FALSE
=
12949 if test -n "$STDINT_H"; then
12950 GL_GENERATE_STDINT_H_TRUE
=
12951 GL_GENERATE_STDINT_H_FALSE
='#'
12953 GL_GENERATE_STDINT_H_TRUE
='#'
12954 GL_GENERATE_STDINT_H_FALSE
=
12961 GNULIB_STRTOIMAX
=0;
12962 GNULIB_STRTOUMAX
=0;
12963 HAVE_DECL_IMAXABS
=1;
12964 HAVE_DECL_IMAXDIV
=1;
12965 HAVE_DECL_STRTOIMAX
=1;
12966 HAVE_DECL_STRTOUMAX
=1;
12968 REPLACE_STRTOIMAX
=0;
12969 REPLACE_STRTOUMAX
=0;
12970 INT32_MAX_LT_INTMAX_MAX
=1;
12971 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
12972 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
12973 UINT32_MAX_LT_UINTMAX_MAX
=1;
12974 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
12990 if test $gl_cv_have_include_next = yes; then
12991 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
12994 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
12995 if ${gl_cv_next_inttypes_h+:} false
; then :
12996 $as_echo_n "(cached) " >&6
12999 if test $ac_cv_header_inttypes_h = yes; then
13004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006 #include <inttypes.h>
13009 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13010 *) gl_absname_cpp
="$ac_cpp" ;;
13015 gl_dirsep_regex
='[/\\]'
13018 gl_dirsep_regex
='\/'
13021 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13022 gl_header_literal_regex
=`echo 'inttypes.h' \
13023 | sed -e "$gl_make_literal_regex_sed"`
13024 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13025 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13031 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13032 sed -n "$gl_absolute_header_sed"`
13034 gl_header
=$gl_cv_absolute_inttypes_h
13035 gl_cv_next_inttypes_h
='"'$gl_header'"'
13037 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
13043 $as_echo "$gl_cv_next_inttypes_h" >&6; }
13045 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
13047 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13048 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13049 gl_next_as_first_directive
='<'inttypes.h
'>'
13051 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13052 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
13054 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
13072 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
13073 if ${gl_cv_cc_double_expbit0+:} false
; then :
13074 $as_echo_n "(cached) " >&6
13077 if test "$cross_compiling" = yes; then :
13079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13082 #if defined arm || defined __arm || defined __arm__
13087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13088 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
13089 gl_cv_cc_double_expbit0
="unknown"
13093 if ${ac_cv_c_bigendian+:} false
; then :
13094 $as_echo_n "(cached) " >&6
13096 ac_cv_c_bigendian
=unknown
13097 # See if we're dealing with a universal compiler.
13098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13100 #ifndef __APPLE_CC__
13101 not a universal capable compiler
13106 if ac_fn_c_try_compile
"$LINENO"; then :
13108 # Check for potential -arch flags. It is not universal unless
13109 # there are at least two -arch flags with different values.
13112 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13113 if test -n "$ac_prev"; then
13115 i?
86 | x86_64 | ppc | ppc64
)
13116 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13119 ac_cv_c_bigendian
=universal
13125 elif test "x$ac_word" = "x-arch"; then
13130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13131 if test $ac_cv_c_bigendian = unknown
; then
13132 # See if sys/param.h defines the BYTE_ORDER macro.
13133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135 #include <sys/types.h>
13136 #include <sys/param.h>
13141 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13142 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13144 bogus endian macros
13151 if ac_fn_c_try_compile
"$LINENO"; then :
13152 # It does; now see whether it defined to BIG_ENDIAN or not.
13153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155 #include <sys/types.h>
13156 #include <sys/param.h>
13161 #if BYTE_ORDER != BIG_ENDIAN
13169 if ac_fn_c_try_compile
"$LINENO"; then :
13170 ac_cv_c_bigendian
=yes
13172 ac_cv_c_bigendian
=no
13174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13178 if test $ac_cv_c_bigendian = unknown
; then
13179 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13182 #include <limits.h>
13187 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13188 bogus endian macros
13195 if ac_fn_c_try_compile
"$LINENO"; then :
13196 # It does; now see whether it defined to _BIG_ENDIAN or not.
13197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13199 #include <limits.h>
13204 #ifndef _BIG_ENDIAN
13212 if ac_fn_c_try_compile
"$LINENO"; then :
13213 ac_cv_c_bigendian
=yes
13215 ac_cv_c_bigendian
=no
13217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13221 if test $ac_cv_c_bigendian = unknown
; then
13222 # Compile a test program.
13223 if test "$cross_compiling" = yes; then :
13224 # Try to guess by grepping values from an object file.
13225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13227 short int ascii_mm[] =
13228 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13229 short int ascii_ii[] =
13230 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13231 int use_ascii (int i) {
13232 return ascii_mm[i] + ascii_ii[i];
13234 short int ebcdic_ii[] =
13235 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13236 short int ebcdic_mm[] =
13237 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13238 int use_ebcdic (int i) {
13239 return ebcdic_mm[i] + ebcdic_ii[i];
13246 return use_ascii (foo) == use_ebcdic (foo);
13251 if ac_fn_c_try_compile
"$LINENO"; then :
13252 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13253 ac_cv_c_bigendian
=yes
13255 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13256 if test "$ac_cv_c_bigendian" = unknown
; then
13257 ac_cv_c_bigendian
=no
13259 # finding both strings is unlikely to happen, but who knows?
13260 ac_cv_c_bigendian
=unknown
13264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268 $ac_includes_default
13273 /* Are we little or big endian? From Harbison&Steele. */
13277 char c[sizeof (long int)];
13280 return u.c[sizeof (long int) - 1] == 1;
13286 if ac_fn_c_try_run
"$LINENO"; then :
13287 ac_cv_c_bigendian
=no
13289 ac_cv_c_bigendian
=yes
13291 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13292 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13298 case $ac_cv_c_bigendian in #(
13300 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
13302 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
13305 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13309 gl_cv_cc_double_expbit0
="unknown" ;;
13318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13322 #include <stddef.h>
13324 #include <string.h>
13326 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13327 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
13328 static unsigned int ored_words[NWORDS];
13329 static unsigned int anded_words[NWORDS];
13330 static void add_to_ored_words (double x)
13334 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
13335 memset (&m, 0, sizeof (memory_double));
13337 for (i = 0; i < NWORDS; i++)
13339 ored_words[i] |= m.word[i];
13340 anded_words[i] &= m.word[i];
13346 FILE *fp = fopen ("conftest.out", "w");
13349 for (j = 0; j < NWORDS; j++)
13350 anded_words[j] = ~ (unsigned int) 0;
13351 add_to_ored_words (0.25);
13352 add_to_ored_words (0.5);
13353 add_to_ored_words (1.0);
13354 add_to_ored_words (2.0);
13355 add_to_ored_words (4.0);
13356 /* Remove bits that are common (e.g. if representation of the first mantissa
13357 bit is explicit). */
13358 for (j = 0; j < NWORDS; j++)
13359 ored_words[j] &= ~anded_words[j];
13360 /* Now find the nonzero word. */
13361 for (j = 0; j < NWORDS; j++)
13362 if (ored_words[j] != 0)
13367 for (i = j + 1; i < NWORDS; i++)
13368 if (ored_words[i] != 0)
13370 fprintf (fp, "unknown");
13371 return (fclose (fp) != 0);
13374 if ((ored_words[j] >> i) & 1)
13376 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13377 return (fclose (fp) != 0);
13380 fprintf (fp, "unknown");
13381 return (fclose (fp) != 0);
13385 if ac_fn_c_try_run
"$LINENO"; then :
13386 gl_cv_cc_double_expbit0
=`cat conftest.out`
13388 gl_cv_cc_double_expbit0
="unknown"
13390 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13391 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
13398 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
13399 case "$gl_cv_cc_double_expbit0" in
13401 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
13402 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
13404 cat >>confdefs.h
<<_ACEOF
13405 #define DBL_EXPBIT0_WORD $word
13409 cat >>confdefs.h
<<_ACEOF
13410 #define DBL_EXPBIT0_BIT $bit
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13418 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13419 if ${ac_cv_c_bigendian+:} false
; then :
13420 $as_echo_n "(cached) " >&6
13422 ac_cv_c_bigendian
=unknown
13423 # See if we're dealing with a universal compiler.
13424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426 #ifndef __APPLE_CC__
13427 not a universal capable compiler
13432 if ac_fn_c_try_compile
"$LINENO"; then :
13434 # Check for potential -arch flags. It is not universal unless
13435 # there are at least two -arch flags with different values.
13438 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13439 if test -n "$ac_prev"; then
13441 i?
86 | x86_64 | ppc | ppc64
)
13442 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13445 ac_cv_c_bigendian
=universal
13451 elif test "x$ac_word" = "x-arch"; then
13456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13457 if test $ac_cv_c_bigendian = unknown
; then
13458 # See if sys/param.h defines the BYTE_ORDER macro.
13459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461 #include <sys/types.h>
13462 #include <sys/param.h>
13467 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13468 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13470 bogus endian macros
13477 if ac_fn_c_try_compile
"$LINENO"; then :
13478 # It does; now see whether it defined to BIG_ENDIAN or not.
13479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13481 #include <sys/types.h>
13482 #include <sys/param.h>
13487 #if BYTE_ORDER != BIG_ENDIAN
13495 if ac_fn_c_try_compile
"$LINENO"; then :
13496 ac_cv_c_bigendian
=yes
13498 ac_cv_c_bigendian
=no
13500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13504 if test $ac_cv_c_bigendian = unknown
; then
13505 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508 #include <limits.h>
13513 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13514 bogus endian macros
13521 if ac_fn_c_try_compile
"$LINENO"; then :
13522 # It does; now see whether it defined to _BIG_ENDIAN or not.
13523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13525 #include <limits.h>
13530 #ifndef _BIG_ENDIAN
13538 if ac_fn_c_try_compile
"$LINENO"; then :
13539 ac_cv_c_bigendian
=yes
13541 ac_cv_c_bigendian
=no
13543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13547 if test $ac_cv_c_bigendian = unknown
; then
13548 # Compile a test program.
13549 if test "$cross_compiling" = yes; then :
13550 # Try to guess by grepping values from an object file.
13551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 short int ascii_mm[] =
13554 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13555 short int ascii_ii[] =
13556 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13557 int use_ascii (int i) {
13558 return ascii_mm[i] + ascii_ii[i];
13560 short int ebcdic_ii[] =
13561 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13562 short int ebcdic_mm[] =
13563 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13564 int use_ebcdic (int i) {
13565 return ebcdic_mm[i] + ebcdic_ii[i];
13572 return use_ascii (foo) == use_ebcdic (foo);
13577 if ac_fn_c_try_compile
"$LINENO"; then :
13578 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13579 ac_cv_c_bigendian
=yes
13581 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13582 if test "$ac_cv_c_bigendian" = unknown
; then
13583 ac_cv_c_bigendian
=no
13585 # finding both strings is unlikely to happen, but who knows?
13586 ac_cv_c_bigendian
=unknown
13590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594 $ac_includes_default
13599 /* Are we little or big endian? From Harbison&Steele. */
13603 char c[sizeof (long int)];
13606 return u.c[sizeof (long int) - 1] == 1;
13612 if ac_fn_c_try_run
"$LINENO"; then :
13613 ac_cv_c_bigendian
=no
13615 ac_cv_c_bigendian
=yes
13617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13618 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13624 $as_echo "$ac_cv_c_bigendian" >&6; }
13625 case $ac_cv_c_bigendian in #(
13627 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13633 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13637 as_fn_error $?
"unknown endianness
13638 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13643 GNULIB_LOCALECONV
=0;
13644 GNULIB_SETLOCALE
=0;
13645 GNULIB_SETLOCALE_NULL
=0;
13646 GNULIB_DUPLOCALE
=0;
13647 GNULIB_LOCALENAME
=0;
13651 REPLACE_LOCALECONV
=0;
13652 REPLACE_SETLOCALE
=0;
13653 REPLACE_NEWLOCALE
=0;
13654 REPLACE_DUPLOCALE
=0;
13655 REPLACE_FREELOCALE
=0;
13656 REPLACE_STRUCT_LCONV
=0;
13660 HAVE_MAX_ALIGN_T
=1;
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13665 $as_echo_n "checking for wchar_t... " >&6; }
13666 if ${gt_cv_c_wchar_t+:} false
; then :
13667 $as_echo_n "(cached) " >&6
13669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671 #include <stddef.h>
13672 wchar_t foo = (wchar_t)'\0';
13681 if ac_fn_c_try_compile
"$LINENO"; then :
13682 gt_cv_c_wchar_t
=yes
13686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13689 $as_echo "$gt_cv_c_wchar_t" >&6; }
13690 if test $gt_cv_c_wchar_t = yes; then
13692 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
13705 $as_echo_n "checking for good max_align_t... " >&6; }
13706 if ${gl_cv_type_max_align_t+:} false
; then :
13707 $as_echo_n "(cached) " >&6
13709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711 #include <stddef.h>
13712 unsigned int s = sizeof (max_align_t);
13713 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
13714 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
13715 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
13717 typedef struct { char a; max_align_t b; } max_helper;
13718 typedef struct { char a; long b; } long_helper;
13719 typedef struct { char a; double b; } double_helper;
13720 typedef struct { char a; long double b; } long_double_helper;
13721 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
13722 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
13723 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
13733 if ac_fn_c_try_compile
"$LINENO"; then :
13734 gl_cv_type_max_align_t
=yes
13736 gl_cv_type_max_align_t
=no
13738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
13742 $as_echo "$gl_cv_type_max_align_t" >&6; }
13743 if test $gl_cv_type_max_align_t = no
; then
13748 if test $gt_cv_c_wchar_t = no
; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13754 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13755 if ${gl_cv_decl_null_works+:} false
; then :
13756 $as_echo_n "(cached) " >&6
13758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13760 #include <stddef.h>
13761 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13771 if ac_fn_c_try_compile
"$LINENO"; then :
13772 gl_cv_decl_null_works
=yes
13774 gl_cv_decl_null_works
=no
13776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13779 $as_echo "$gl_cv_decl_null_works" >&6; }
13780 if test $gl_cv_decl_null_works = no
; then
13786 if test -n "$STDDEF_H"; then
13787 GL_GENERATE_STDDEF_H_TRUE
=
13788 GL_GENERATE_STDDEF_H_FALSE
='#'
13790 GL_GENERATE_STDDEF_H_TRUE
='#'
13791 GL_GENERATE_STDDEF_H_FALSE
=
13794 if test -n "$STDDEF_H"; then
13803 if test $gl_cv_have_include_next = yes; then
13804 gl_cv_next_stddef_h
='<'stddef.h
'>'
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13807 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13808 if ${gl_cv_next_stddef_h+:} false
; then :
13809 $as_echo_n "(cached) " >&6
13814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 #include <stddef.h>
13819 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13820 *) gl_absname_cpp
="$ac_cpp" ;;
13825 gl_dirsep_regex
='[/\\]'
13828 gl_dirsep_regex
='\/'
13831 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13832 gl_header_literal_regex
=`echo 'stddef.h' \
13833 | sed -e "$gl_make_literal_regex_sed"`
13834 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13835 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13841 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13842 sed -n "$gl_absolute_header_sed"`
13844 gl_header
=$gl_cv_absolute_stddef_h
13845 gl_cv_next_stddef_h
='"'$gl_header'"'
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13850 $as_echo "$gl_cv_next_stddef_h" >&6; }
13852 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
13854 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13855 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13856 gl_next_as_first_directive
='<'stddef.h
'>'
13858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13859 gl_next_as_first_directive
=$gl_cv_next_stddef_h
13861 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
13874 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
13875 if ${gl_cv_header_locale_has_locale_t+:} false
; then :
13876 $as_echo_n "(cached) " >&6
13878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 #include <locale.h>
13890 if ac_fn_c_try_compile
"$LINENO"; then :
13891 gl_cv_header_locale_has_locale_t
=yes
13893 gl_cv_header_locale_has_locale_t
=no
13895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
13899 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
13902 if test $ac_cv_header_xlocale_h = yes; then
13904 if test $gl_cv_header_locale_has_locale_t = yes; then
13905 gl_cv_header_locale_h_needs_xlocale_h
=no
13907 gl_cv_header_locale_h_needs_xlocale_h
=yes
13912 gl_cv_header_locale_h_needs_xlocale_h
=no
13913 if test $gl_cv_header_locale_has_locale_t = yes; then
13923 gl_threads_api
=none
13928 if test "$gl_use_threads" != no
; then
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
13932 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
13933 if ${gl_cv_have_weak+:} false
; then :
13934 $as_echo_n "(cached) " >&6
13937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13939 extern void xyzzy ();
13949 if ac_fn_c_try_link
"$LINENO"; then :
13950 gl_cv_have_weak
=maybe
13952 rm -f core conftest.err conftest.
$ac_objext \
13953 conftest
$ac_exeext conftest.
$ac_ext
13954 if test $gl_cv_have_weak = maybe
; then
13955 if test "$cross_compiling" = yes; then :
13956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13959 Extensible Linking Format
13963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13964 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
13965 gl_cv_have_weak
="guessing yes"
13967 gl_cv_have_weak
="guessing no"
13973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13980 return (fputs == NULL);
13983 if ac_fn_c_try_run
"$LINENO"; then :
13984 gl_cv_have_weak
=yes
13988 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13989 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13993 case " $LDFLAGS " in
13994 *" -static "*) gl_cv_have_weak
=no
;;
13996 case "$gl_cv_have_weak" in
13999 freebsd
* | dragonfly
*)
14001 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
14002 cat <<EOF > conftest2.c
14003 #include <pthread.h>
14004 #pragma weak pthread_mutexattr_gettype
14007 return (pthread_mutexattr_gettype != NULL);
14010 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
14011 || gl_cv_have_weak
=no
14012 rm -f conftest1.c libempty.so conftest2.c conftest
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
14020 $as_echo "$gl_cv_have_weak" >&6; }
14021 case "$gl_cv_have_weak" in
14024 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
14029 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14033 if test "$gl_use_threads" = isoc ||
test "$gl_use_threads" = isoc
+posix
; then
14035 gl_have_isoc_threads
="$ac_cv_header_threads_h"
14037 if test "$gl_use_threads" = yes \
14038 ||
test "$gl_use_threads" = posix \
14039 ||
test "$gl_use_threads" = isoc
+posix
; then
14042 if test -z "$gl_pthreadlib_body_done"; then
14046 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14047 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14048 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14049 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14050 gl_have_pthread_h
=yes
14052 gl_have_pthread_h
=no
14056 if test "$gl_have_pthread_h" = yes; then
14057 # Other possible tests:
14058 # -lpthreads (FSU threads, PCthreads)
14060 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14061 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14062 # the second one only in libpthread, and lock.c needs it.
14064 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14065 # needs -pthread for some reason. See:
14066 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14068 for gl_pthread
in '' '-pthread'; do
14069 LIBS
="$LIBS $gl_pthread"
14070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14072 #include <pthread.h>
14074 pthread_mutexattr_t ma;
14079 pthread_mutex_lock (&m);
14080 pthread_mutexattr_init (&ma);
14085 if ac_fn_c_try_link
"$LINENO"; then :
14087 LIBPTHREAD
=$gl_pthread
14088 LIBPMULTITHREAD
=$gl_pthread
14090 rm -f core conftest.err conftest.
$ac_objext \
14091 conftest
$ac_exeext conftest.
$ac_ext
14093 test $gl_pthread_api = yes && break
14096 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14097 # since it is defined as a macro on OSF/1.)
14098 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14099 # The program links fine without libpthread. But it may actually
14100 # need to link with libpthread in order to create multiple threads.
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14102 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14103 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14104 $as_echo_n "(cached) " >&6
14106 ac_check_lib_save_LIBS
=$LIBS
14107 LIBS
="-lpthread $LIBS"
14108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h. */
14111 /* Override any GCC internal prototype to avoid an error.
14112 Use char because int might match the return type of a GCC
14113 builtin and then its argument prototype would still apply. */
14117 char pthread_kill ();
14121 return pthread_kill ();
14126 if ac_fn_c_try_link
"$LINENO"; then :
14127 ac_cv_lib_pthread_pthread_kill
=yes
14129 ac_cv_lib_pthread_pthread_kill
=no
14131 rm -f core conftest.err conftest.
$ac_objext \
14132 conftest
$ac_exeext conftest.
$ac_ext
14133 LIBS
=$ac_check_lib_save_LIBS
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14136 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14137 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14138 LIBPMULTITHREAD
=-lpthread
14139 # On Solaris and HP-UX, most pthread functions exist also in libc.
14140 # Therefore pthread_in_use() needs to actually try to create a
14141 # thread: pthread_create from libc will fail, whereas
14142 # pthread_create will actually create a thread.
14143 # On Solaris 10 or newer, this test is no longer needed, because
14144 # libc contains the fully functional pthread functions.
14146 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14148 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14154 elif test $gl_pthread_api != yes; then
14155 # Some library is needed. Try libpthread and libc_r.
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14157 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14158 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14159 $as_echo_n "(cached) " >&6
14161 ac_check_lib_save_LIBS
=$LIBS
14162 LIBS
="-lpthread $LIBS"
14163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14166 /* Override any GCC internal prototype to avoid an error.
14167 Use char because int might match the return type of a GCC
14168 builtin and then its argument prototype would still apply. */
14172 char pthread_kill ();
14176 return pthread_kill ();
14181 if ac_fn_c_try_link
"$LINENO"; then :
14182 ac_cv_lib_pthread_pthread_kill
=yes
14184 ac_cv_lib_pthread_pthread_kill
=no
14186 rm -f core conftest.err conftest.
$ac_objext \
14187 conftest
$ac_exeext conftest.
$ac_ext
14188 LIBS
=$ac_check_lib_save_LIBS
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14191 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14192 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14194 LIBPTHREAD
=-lpthread
14195 LIBPMULTITHREAD
=-lpthread
14198 if test $gl_pthread_api != yes; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14201 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14202 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14203 $as_echo_n "(cached) " >&6
14205 ac_check_lib_save_LIBS
=$LIBS
14207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14210 /* Override any GCC internal prototype to avoid an error.
14211 Use char because int might match the return type of a GCC
14212 builtin and then its argument prototype would still apply. */
14216 char pthread_kill ();
14220 return pthread_kill ();
14225 if ac_fn_c_try_link
"$LINENO"; then :
14226 ac_cv_lib_c_r_pthread_kill
=yes
14228 ac_cv_lib_c_r_pthread_kill
=no
14230 rm -f core conftest.err conftest.
$ac_objext \
14231 conftest
$ac_exeext conftest.
$ac_ext
14232 LIBS
=$ac_check_lib_save_LIBS
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14235 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14236 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14239 LIBPMULTITHREAD
=-lc_r
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14246 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14248 $as_echo "$gl_pthread_api" >&6; }
14251 if test $gl_pthread_api = yes; then
14253 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14268 if ac_fn_c_try_link
"$LINENO"; then :
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14273 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14274 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14275 $as_echo_n "(cached) " >&6
14277 ac_check_lib_save_LIBS
=$LIBS
14279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14282 /* Override any GCC internal prototype to avoid an error.
14283 Use char because int might match the return type of a GCC
14284 builtin and then its argument prototype would still apply. */
14288 char sched_yield ();
14292 return sched_yield ();
14297 if ac_fn_c_try_link
"$LINENO"; then :
14298 ac_cv_lib_rt_sched_yield
=yes
14300 ac_cv_lib_rt_sched_yield
=no
14302 rm -f core conftest.err conftest.
$ac_objext \
14303 conftest
$ac_exeext conftest.
$ac_ext
14304 LIBS
=$ac_check_lib_save_LIBS
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14307 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14308 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14309 LIB_SCHED_YIELD
=-lrt
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14312 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14313 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14314 $as_echo_n "(cached) " >&6
14316 ac_check_lib_save_LIBS
=$LIBS
14317 LIBS
="-lposix4 $LIBS"
14318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14321 /* Override any GCC internal prototype to avoid an error.
14322 Use char because int might match the return type of a GCC
14323 builtin and then its argument prototype would still apply. */
14327 char sched_yield ();
14331 return sched_yield ();
14336 if ac_fn_c_try_link
"$LINENO"; then :
14337 ac_cv_lib_posix4_sched_yield
=yes
14339 ac_cv_lib_posix4_sched_yield
=no
14341 rm -f core conftest.err conftest.
$ac_objext \
14342 conftest
$ac_exeext conftest.
$ac_ext
14343 LIBS
=$ac_check_lib_save_LIBS
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14346 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14347 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14348 LIB_SCHED_YIELD
=-lposix4
14355 rm -f core conftest.err conftest.
$ac_objext \
14356 conftest
$ac_exeext conftest.
$ac_ext
14359 gl_pthreadlib_body_done
=done
14362 LIBTHREAD
=$LIBPTHREAD LTLIBTHREAD
=$LIBPTHREAD
14363 LIBMULTITHREAD
=$LIBPMULTITHREAD LTLIBMULTITHREAD
=$LIBPMULTITHREAD
14364 if test $gl_pthread_api = yes; then
14365 if test "$gl_use_threads" = isoc
+posix
&& test "$gl_have_isoc_threads" = yes; then
14366 gl_threads_api
='isoc+posix'
14368 $as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
14370 LIBTHREAD
= LTLIBTHREAD
=
14372 gl_threads_api
=posix
14374 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
14376 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
14377 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14379 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
14381 LIBTHREAD
= LTLIBTHREAD
=
14384 freebsd
* | dragonfly
*)
14385 if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then
14387 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14397 if test $gl_threads_api = none
; then
14398 if test "$gl_use_threads" = isoc
&& test "$gl_have_isoc_threads" = yes; then
14402 if test -z "$gl_stdthreadlib_body_done"; then
14412 if test -z "$gl_pthreadlib_body_done"; then
14416 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14417 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14418 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14419 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14420 gl_have_pthread_h
=yes
14422 gl_have_pthread_h
=no
14426 if test "$gl_have_pthread_h" = yes; then
14427 # Other possible tests:
14428 # -lpthreads (FSU threads, PCthreads)
14430 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14431 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14432 # the second one only in libpthread, and lock.c needs it.
14434 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14435 # needs -pthread for some reason. See:
14436 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14438 for gl_pthread
in '' '-pthread'; do
14439 LIBS
="$LIBS $gl_pthread"
14440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14442 #include <pthread.h>
14444 pthread_mutexattr_t ma;
14449 pthread_mutex_lock (&m);
14450 pthread_mutexattr_init (&ma);
14455 if ac_fn_c_try_link
"$LINENO"; then :
14457 LIBPTHREAD
=$gl_pthread
14458 LIBPMULTITHREAD
=$gl_pthread
14460 rm -f core conftest.err conftest.
$ac_objext \
14461 conftest
$ac_exeext conftest.
$ac_ext
14463 test $gl_pthread_api = yes && break
14466 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14467 # since it is defined as a macro on OSF/1.)
14468 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14469 # The program links fine without libpthread. But it may actually
14470 # need to link with libpthread in order to create multiple threads.
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14472 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14473 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14474 $as_echo_n "(cached) " >&6
14476 ac_check_lib_save_LIBS
=$LIBS
14477 LIBS
="-lpthread $LIBS"
14478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14481 /* Override any GCC internal prototype to avoid an error.
14482 Use char because int might match the return type of a GCC
14483 builtin and then its argument prototype would still apply. */
14487 char pthread_kill ();
14491 return pthread_kill ();
14496 if ac_fn_c_try_link
"$LINENO"; then :
14497 ac_cv_lib_pthread_pthread_kill
=yes
14499 ac_cv_lib_pthread_pthread_kill
=no
14501 rm -f core conftest.err conftest.
$ac_objext \
14502 conftest
$ac_exeext conftest.
$ac_ext
14503 LIBS
=$ac_check_lib_save_LIBS
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14506 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14507 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14508 LIBPMULTITHREAD
=-lpthread
14509 # On Solaris and HP-UX, most pthread functions exist also in libc.
14510 # Therefore pthread_in_use() needs to actually try to create a
14511 # thread: pthread_create from libc will fail, whereas
14512 # pthread_create will actually create a thread.
14513 # On Solaris 10 or newer, this test is no longer needed, because
14514 # libc contains the fully functional pthread functions.
14516 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14518 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14524 elif test $gl_pthread_api != yes; then
14525 # Some library is needed. Try libpthread and libc_r.
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14527 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14528 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14529 $as_echo_n "(cached) " >&6
14531 ac_check_lib_save_LIBS
=$LIBS
14532 LIBS
="-lpthread $LIBS"
14533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14536 /* Override any GCC internal prototype to avoid an error.
14537 Use char because int might match the return type of a GCC
14538 builtin and then its argument prototype would still apply. */
14542 char pthread_kill ();
14546 return pthread_kill ();
14551 if ac_fn_c_try_link
"$LINENO"; then :
14552 ac_cv_lib_pthread_pthread_kill
=yes
14554 ac_cv_lib_pthread_pthread_kill
=no
14556 rm -f core conftest.err conftest.
$ac_objext \
14557 conftest
$ac_exeext conftest.
$ac_ext
14558 LIBS
=$ac_check_lib_save_LIBS
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14561 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14562 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14564 LIBPTHREAD
=-lpthread
14565 LIBPMULTITHREAD
=-lpthread
14568 if test $gl_pthread_api != yes; then
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14571 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14572 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14573 $as_echo_n "(cached) " >&6
14575 ac_check_lib_save_LIBS
=$LIBS
14577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14578 /* end confdefs.h. */
14580 /* Override any GCC internal prototype to avoid an error.
14581 Use char because int might match the return type of a GCC
14582 builtin and then its argument prototype would still apply. */
14586 char pthread_kill ();
14590 return pthread_kill ();
14595 if ac_fn_c_try_link
"$LINENO"; then :
14596 ac_cv_lib_c_r_pthread_kill
=yes
14598 ac_cv_lib_c_r_pthread_kill
=no
14600 rm -f core conftest.err conftest.
$ac_objext \
14601 conftest
$ac_exeext conftest.
$ac_ext
14602 LIBS
=$ac_check_lib_save_LIBS
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14605 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14606 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14609 LIBPMULTITHREAD
=-lc_r
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14616 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14618 $as_echo "$gl_pthread_api" >&6; }
14621 if test $gl_pthread_api = yes; then
14623 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h. */
14638 if ac_fn_c_try_link
"$LINENO"; then :
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14643 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14644 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14645 $as_echo_n "(cached) " >&6
14647 ac_check_lib_save_LIBS
=$LIBS
14649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14652 /* Override any GCC internal prototype to avoid an error.
14653 Use char because int might match the return type of a GCC
14654 builtin and then its argument prototype would still apply. */
14658 char sched_yield ();
14662 return sched_yield ();
14667 if ac_fn_c_try_link
"$LINENO"; then :
14668 ac_cv_lib_rt_sched_yield
=yes
14670 ac_cv_lib_rt_sched_yield
=no
14672 rm -f core conftest.err conftest.
$ac_objext \
14673 conftest
$ac_exeext conftest.
$ac_ext
14674 LIBS
=$ac_check_lib_save_LIBS
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14677 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14678 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14679 LIB_SCHED_YIELD
=-lrt
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14682 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14683 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14684 $as_echo_n "(cached) " >&6
14686 ac_check_lib_save_LIBS
=$LIBS
14687 LIBS
="-lposix4 $LIBS"
14688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14691 /* Override any GCC internal prototype to avoid an error.
14692 Use char because int might match the return type of a GCC
14693 builtin and then its argument prototype would still apply. */
14697 char sched_yield ();
14701 return sched_yield ();
14706 if ac_fn_c_try_link
"$LINENO"; then :
14707 ac_cv_lib_posix4_sched_yield
=yes
14709 ac_cv_lib_posix4_sched_yield
=no
14711 rm -f core conftest.err conftest.
$ac_objext \
14712 conftest
$ac_exeext conftest.
$ac_ext
14713 LIBS
=$ac_check_lib_save_LIBS
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14716 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14717 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14718 LIB_SCHED_YIELD
=-lposix4
14725 rm -f core conftest.err conftest.
$ac_objext \
14726 conftest
$ac_exeext conftest.
$ac_ext
14729 gl_pthreadlib_body_done
=done
14732 if test $ac_cv_header_threads_h = yes; then
14733 for ac_func
in thrd_create
14735 ac_fn_c_check_func
"$LINENO" "thrd_create" "ac_cv_func_thrd_create"
14736 if test "x$ac_cv_func_thrd_create" = xyes
; then :
14737 cat >>confdefs.h
<<_ACEOF
14738 #define HAVE_THRD_CREATE 1
14744 if test $ac_cv_func_thrd_create = yes; then
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
14748 $as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
14749 if ${ac_cv_lib_stdthreads_thrd_create+:} false
; then :
14750 $as_echo_n "(cached) " >&6
14752 ac_check_lib_save_LIBS
=$LIBS
14753 LIBS
="-lstdthreads $LIBS"
14754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 /* Override any GCC internal prototype to avoid an error.
14758 Use char because int might match the return type of a GCC
14759 builtin and then its argument prototype would still apply. */
14763 char thrd_create ();
14767 return thrd_create ();
14772 if ac_fn_c_try_link
"$LINENO"; then :
14773 ac_cv_lib_stdthreads_thrd_create
=yes
14775 ac_cv_lib_stdthreads_thrd_create
=no
14777 rm -f core conftest.err conftest.
$ac_objext \
14778 conftest
$ac_exeext conftest.
$ac_ext
14779 LIBS
=$ac_check_lib_save_LIBS
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
14782 $as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
14783 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
; then :
14785 LIBSTDTHREAD
='-lstdthreads -lpthread'
14789 LIBSTDTHREAD
="$LIBPMULTITHREAD"
14795 LIBSTDTHREAD
="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
14802 $as_echo_n "checking whether ISO C threads API is available... " >&6; }
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
14804 $as_echo "$ac_cv_header_threads_h" >&6; }
14805 gl_stdthreadlib_body_done
=done
14808 LIBTHREAD
=$LIBSTDTHREAD LTLIBTHREAD
=$LIBSTDTHREAD
14809 LIBMULTITHREAD
=$LIBSTDTHREAD LTLIBMULTITHREAD
=$LIBSTDTHREAD
14810 gl_threads_api
=isoc
14812 $as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
14816 if test $gl_threads_api = none
; then
14817 case "$gl_use_threads" in
14818 yes | windows | win32
) # The 'win32' is for backward compatibility.
14819 if { case "$host_os" in
14824 gl_threads_api
=windows
14826 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
14834 $as_echo_n "checking for multithread API to use... " >&6; }
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
14836 $as_echo "$gl_threads_api" >&6; }
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
14850 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
14851 if ${gl_cv_func_malloc_posix+:} false
; then :
14852 $as_echo_n "(cached) " >&6
14855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14861 #if defined _WIN32 && ! defined __CYGWIN__
14869 if ac_fn_c_try_compile
"$LINENO"; then :
14870 gl_cv_func_malloc_posix
=yes
14872 gl_cv_func_malloc_posix
=no
14874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
14878 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14883 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14884 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
14885 $as_echo_n "(cached) " >&6
14887 if test "$cross_compiling" = yes; then :
14889 # Guess yes on platforms where we know the result.
14890 *-gnu* | gnu
* |
*-musl* | freebsd
* | netbsd
* | openbsd
* \
14891 | hpux
* | solaris
* | cygwin
* | mingw
*)
14892 ac_cv_func_malloc_0_nonnull
="guessing yes" ;;
14893 # If we don't know, obey --enable-cross-guesses.
14894 *) ac_cv_func_malloc_0_nonnull
="$gl_cross_guess_normal" ;;
14898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14900 #include <stdlib.h>
14905 char *p = malloc (0);
14914 if ac_fn_c_try_run
"$LINENO"; then :
14915 ac_cv_func_malloc_0_nonnull
=yes
14917 ac_cv_func_malloc_0_nonnull
=no
14919 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14920 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14926 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14927 case "$ac_cv_func_malloc_0_nonnull" in
14929 gl_cv_func_malloc_0_nonnull
=1
14932 gl_cv_func_malloc_0_nonnull
=0
14937 cat >>confdefs.h
<<_ACEOF
14938 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
14952 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14953 if ${gt_cv_locale_ja+:} false
; then :
14954 $as_echo_n "(cached) " >&6
14957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14958 /* end confdefs.h. */
14960 #include <locale.h>
14962 #if HAVE_LANGINFO_CODESET
14963 # include <langinfo.h>
14965 #include <stdlib.h>
14966 #include <string.h>
14971 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14972 imitates locale dependent behaviour by looking at the environment
14973 variables, and all locales use the UTF-8 encoding. */
14974 #if defined __BEOS__ || defined __HAIKU__
14977 /* Check whether the given locale name is recognized by the system. */
14978 # if defined _WIN32 && !defined __CYGWIN__
14979 /* On native Windows, setlocale(category, "") looks at the system settings,
14980 not at the environment variables. Also, when an encoding suffix such
14981 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14982 category of the locale to "C". */
14983 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14984 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14987 if (setlocale (LC_ALL, "") == NULL) return 1;
14989 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14990 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14991 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14992 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14993 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14994 some unit tests fail.
14995 On MirBSD 10, when an unsupported locale is specified, setlocale()
14996 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14997 # if HAVE_LANGINFO_CODESET
14999 const char *cs = nl_langinfo (CODESET);
15000 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15001 || strcmp (cs, "UTF-8") == 0)
15006 /* On Cygwin, avoid locale names without encoding suffix, because the
15007 locale_charset() function relies on the encoding suffix. Note that
15008 LC_ALL is set on the command line. */
15009 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15011 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
15012 on Cygwin 1.5.x. */
15013 if (MB_CUR_MAX == 1)
15015 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15016 This excludes the UTF-8 encoding (except on MirBSD). */
15019 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15020 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15021 for (p = buf; *p != '\0'; p++)
15022 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15031 (eval $ac_link) 2>&5
15033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15034 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15036 # Handle native Windows specially, because there setlocale() interprets
15037 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15038 # "fr" or "fra" as "French" or "French_France.1252",
15039 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15040 # "ja" as "Japanese" or "Japanese_Japan.932",
15043 # Note that on native Windows, the Japanese locale is
15044 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
15045 # cannot use it here.
15046 gt_cv_locale_ja
=none
15049 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15050 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15051 # configure script would override the LC_ALL setting. Likewise for
15052 # LC_CTYPE, which is also set at the beginning of the configure script.
15053 # Test for the AIX locale name.
15054 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15055 gt_cv_locale_ja
=ja_JP
15057 # Test for the locale name with explicit encoding suffix.
15058 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15059 gt_cv_locale_ja
=ja_JP.EUC-JP
15061 # Test for the HP-UX, OSF/1, NetBSD locale name.
15062 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15063 gt_cv_locale_ja
=ja_JP.eucJP
15065 # Test for the IRIX, FreeBSD locale name.
15066 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15067 gt_cv_locale_ja
=ja_JP.EUC
15069 # Test for the Solaris 7 locale name.
15070 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15073 # Special test for NetBSD 1.6.
15074 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
15075 gt_cv_locale_ja
=ja_JP.eucJP
15078 gt_cv_locale_ja
=none
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
15092 $as_echo "$gt_cv_locale_ja" >&6; }
15093 LOCALE_JA
=$gt_cv_locale_ja
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
15099 $as_echo_n "checking for a french Unicode locale... " >&6; }
15100 if ${gt_cv_locale_fr_utf8+:} false
; then :
15101 $as_echo_n "(cached) " >&6
15104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15107 #include <locale.h>
15109 #if HAVE_LANGINFO_CODESET
15110 # include <langinfo.h>
15112 #include <stdlib.h>
15113 #include <string.h>
15117 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15118 imitates locale dependent behaviour by looking at the environment
15119 variables, and all locales use the UTF-8 encoding. */
15120 #if !(defined __BEOS__ || defined __HAIKU__)
15121 /* Check whether the given locale name is recognized by the system. */
15122 # if defined _WIN32 && !defined __CYGWIN__
15123 /* On native Windows, setlocale(category, "") looks at the system settings,
15124 not at the environment variables. Also, when an encoding suffix such
15125 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15126 category of the locale to "C". */
15127 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15128 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15131 if (setlocale (LC_ALL, "") == NULL) return 1;
15133 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15134 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15135 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15136 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15137 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15138 some unit tests fail. */
15139 # if HAVE_LANGINFO_CODESET
15141 const char *cs = nl_langinfo (CODESET);
15142 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
15147 /* On Cygwin, avoid locale names without encoding suffix, because the
15148 locale_charset() function relies on the encoding suffix. Note that
15149 LC_ALL is set on the command line. */
15150 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15152 /* Check whether in the abbreviation of the second month, the second
15153 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
15154 two bytes long, with UTF-8 encoding. */
15155 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15156 if (strftime (buf, sizeof (buf), "%b", &t) < 4
15157 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
15160 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
15161 /* Check whether the decimal separator is a comma.
15162 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15163 are nl_langinfo(RADIXCHAR) are both ".". */
15164 if (localeconv () ->decimal_point[0] != ',') return 1;
15170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15171 (eval $ac_link) 2>&5
15173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15174 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15176 # Handle native Windows specially, because there setlocale() interprets
15177 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15178 # "fr" or "fra" as "French" or "French_France.1252",
15179 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15180 # "ja" as "Japanese" or "Japanese_Japan.932",
15183 # Test for the hypothetical native Windows locale name.
15184 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15185 gt_cv_locale_fr_utf8
=French_France
.65001
15188 gt_cv_locale_fr_utf8
=none
15192 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15193 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15194 # configure script would override the LC_ALL setting. Likewise for
15195 # LC_CTYPE, which is also set at the beginning of the configure script.
15196 # Test for the usual locale name.
15197 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15198 gt_cv_locale_fr_utf8
=fr_FR
15200 # Test for the locale name with explicit encoding suffix.
15201 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15202 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
15204 # Test for the Solaris 7 locale name.
15205 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15206 gt_cv_locale_fr_utf8
=fr.UTF-8
15209 gt_cv_locale_fr_utf8
=none
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
15220 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
15221 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
15228 $as_echo_n "checking for a transitional chinese locale... " >&6; }
15229 if ${gt_cv_locale_zh_CN+:} false
; then :
15230 $as_echo_n "(cached) " >&6
15233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h. */
15236 #include <locale.h>
15237 #include <stdlib.h>
15239 #if HAVE_LANGINFO_CODESET
15240 # include <langinfo.h>
15242 #include <stdlib.h>
15243 #include <string.h>
15248 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15249 imitates locale dependent behaviour by looking at the environment
15250 variables, and all locales use the UTF-8 encoding. */
15251 #if defined __BEOS__ || defined __HAIKU__
15254 /* Check whether the given locale name is recognized by the system. */
15255 # if defined _WIN32 && !defined __CYGWIN__
15256 /* On native Windows, setlocale(category, "") looks at the system settings,
15257 not at the environment variables. Also, when an encoding suffix such
15258 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15259 category of the locale to "C". */
15260 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15261 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15264 if (setlocale (LC_ALL, "") == NULL) return 1;
15266 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15267 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15268 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15269 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15270 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15271 some unit tests fail.
15272 On MirBSD 10, when an unsupported locale is specified, setlocale()
15273 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15274 # if HAVE_LANGINFO_CODESET
15276 const char *cs = nl_langinfo (CODESET);
15277 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15278 || strcmp (cs, "UTF-8") == 0)
15283 /* On Cygwin, avoid locale names without encoding suffix, because the
15284 locale_charset() function relies on the encoding suffix. Note that
15285 LC_ALL is set on the command line. */
15286 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15288 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15289 This excludes the UTF-8 encoding (except on MirBSD). */
15292 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15293 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15294 for (p = buf; *p != '\0'; p++)
15295 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15298 /* Check whether a typical GB18030 multibyte sequence is recognized as a
15299 single wide character. This excludes the GB2312 and GBK encodings. */
15300 if (mblen ("\203\062\332\066", 5) != 4)
15307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15308 (eval $ac_link) 2>&5
15310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15311 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15313 # Handle native Windows specially, because there setlocale() interprets
15314 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15315 # "fr" or "fra" as "French" or "French_France.1252",
15316 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15317 # "ja" as "Japanese" or "Japanese_Japan.932",
15320 # Test for the hypothetical native Windows locale name.
15321 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15322 gt_cv_locale_zh_CN
=Chinese_China
.54936
15325 gt_cv_locale_zh_CN
=none
15329 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
15330 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
15331 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
15332 gt_cv_locale_zh_CN
=none
15335 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15336 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15337 # configure script would override the LC_ALL setting. Likewise for
15338 # LC_CTYPE, which is also set at the beginning of the configure script.
15339 # Test for the locale name without encoding suffix.
15340 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15341 gt_cv_locale_zh_CN
=zh_CN
15343 # Test for the locale name with explicit encoding suffix.
15344 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15345 gt_cv_locale_zh_CN
=zh_CN.GB18030
15348 gt_cv_locale_zh_CN
=none
15354 # If there was a link error, due to mblen(), the system is so old that
15355 # it certainly doesn't have a chinese locale.
15356 gt_cv_locale_zh_CN
=none
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
15362 $as_echo "$gt_cv_locale_zh_CN" >&6; }
15363 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15367 $as_echo_n "checking for inline... " >&6; }
15368 if ${ac_cv_c_inline+:} false
; then :
15369 $as_echo_n "(cached) " >&6
15372 for ac_kw
in inline __inline__ __inline
; do
15373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375 #ifndef __cplusplus
15377 static $ac_kw foo_t static_foo () {return 0; }
15378 $ac_kw foo_t foo () {return 0; }
15382 if ac_fn_c_try_compile
"$LINENO"; then :
15383 ac_cv_c_inline
=$ac_kw
15385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15386 test "$ac_cv_c_inline" != no
&& break
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15391 $as_echo "$ac_cv_c_inline" >&6; }
15393 case $ac_cv_c_inline in
15396 case $ac_cv_c_inline in
15398 *) ac_val
=$ac_cv_c_inline;;
15400 cat >>confdefs.h
<<_ACEOF
15401 #ifndef __cplusplus
15402 #define inline $ac_val
15413 GNULIB_EXPLICIT_BZERO
=0;
15420 GNULIB_RAWMEMCHR
=0;
15423 GNULIB_STRCHRNUL
=0;
15431 GNULIB_STRCASESTR
=0;
15438 GNULIB_MBSCASECMP
=0;
15439 GNULIB_MBSNCASECMP
=0;
15440 GNULIB_MBSPCASECMP
=0;
15441 GNULIB_MBSCASESTR
=0;
15448 GNULIB_STRERROR_R
=0;
15449 GNULIB_STRERRORNAME_NP
=0;
15450 GNULIB_SIGABBREV_NP
=0;
15451 GNULIB_SIGDESCR_NP
=0;
15452 GNULIB_STRSIGNAL
=0;
15453 GNULIB_STRVERSCMP
=0;
15455 GNULIB_MDA_MEMCCPY
=1;
15456 GNULIB_MDA_STRDUP
=1;
15457 HAVE_EXPLICIT_BZERO
=1;
15460 HAVE_DECL_MEMMEM
=1;
15462 HAVE_DECL_MEMRCHR
=1;
15467 HAVE_DECL_STRDUP
=1;
15468 HAVE_DECL_STRNDUP
=1;
15469 HAVE_DECL_STRNLEN
=1;
15473 HAVE_DECL_STRTOK_R
=1;
15474 HAVE_DECL_STRERROR_R
=1;
15475 HAVE_STRERRORNAME_NP
=1;
15476 HAVE_SIGABBREV_NP
=1;
15477 HAVE_SIGDESCR_NP
=1;
15478 HAVE_DECL_STRSIGNAL
=1;
15484 REPLACE_STRCHRNUL
=0;
15490 REPLACE_STRCASESTR
=0;
15491 REPLACE_STRTOK_R
=0;
15492 REPLACE_STRERROR
=0;
15493 REPLACE_STRERROR_R
=0;
15494 REPLACE_STRERRORNAME_NP
=0;
15495 REPLACE_STRSIGNAL
=0;
15496 UNDEFINE_STRTOK_R
=0;
15503 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
15504 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
15505 # irrelevant for anonymous mappings.
15506 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
15507 if test "x$ac_cv_func_mmap" = xyes
; then :
15514 # Try to allow MAP_ANONYMOUS.
15515 gl_have_mmap_anonymous
=no
15516 if test $gl_have_mmap = yes; then
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
15518 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15520 /* end confdefs.h. */
15522 #include <sys/mman.h>
15523 #ifdef MAP_ANONYMOUS
15524 I cannot identify this map
15528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15529 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15530 gl_have_mmap_anonymous
=yes
15534 if test $gl_have_mmap_anonymous != yes; then
15535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15536 /* end confdefs.h. */
15538 #include <sys/mman.h>
15540 I cannot identify this map
15544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15545 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15547 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
15549 gl_have_mmap_anonymous
=yes
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
15555 $as_echo "$gl_have_mmap_anonymous" >&6; }
15556 if test $gl_have_mmap_anonymous = yes; then
15558 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
15567 # Detect platform-specific bugs in some versions of glibc:
15568 # memchr should not dereference anything with length 0
15569 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
15570 # memchr should not dereference overestimated length after a match
15571 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
15572 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
15573 # memchr should cast the second argument to 'unsigned char'.
15574 # This bug exists in Android 4.3.
15575 # Assume that memchr works on platforms that lack mprotect.
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
15577 $as_echo_n "checking whether memchr works... " >&6; }
15578 if ${gl_cv_func_memchr_works+:} false
; then :
15579 $as_echo_n "(cached) " >&6
15581 if test "$cross_compiling" = yes; then :
15583 # Guess no on Android.
15584 linux
*-android*) gl_cv_func_memchr_works
="guessing no" ;;
15585 # Guess yes on native Windows.
15586 mingw
*) gl_cv_func_memchr_works
="guessing yes" ;;
15587 # If we don't know, obey --enable-cross-guesses.
15588 *) gl_cv_func_memchr_works
="$gl_cross_guess_normal" ;;
15592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15595 #include <string.h>
15596 #if HAVE_SYS_MMAN_H
15597 # include <fcntl.h>
15598 # include <unistd.h>
15599 # include <sys/types.h>
15600 # include <sys/mman.h>
15602 # define MAP_FILE 0
15611 char *fence = NULL;
15612 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
15613 # if HAVE_MAP_ANONYMOUS
15614 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
15616 # else /* !HAVE_MAP_ANONYMOUS */
15617 const int flags = MAP_FILE | MAP_PRIVATE;
15618 int fd = open ("/dev/zero", O_RDONLY, 0666);
15622 int pagesize = getpagesize ();
15624 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
15626 if (two_pages != (char *)(-1)
15627 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
15628 fence = two_pages + pagesize;
15633 /* Test against bugs on glibc systems. */
15634 if (memchr (fence, 0, 0))
15636 strcpy (fence - 9, "12345678");
15637 if (memchr (fence - 9, 0, 79) != fence - 1)
15639 if (memchr (fence - 1, 0, 3) != fence - 1)
15641 /* Test against bug on AIX 7.2. */
15642 if (memchr (fence - 4, '6', 16) != fence - 4)
15645 /* Test against bug on Android 4.3. */
15651 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
15660 if ac_fn_c_try_run
"$LINENO"; then :
15661 gl_cv_func_memchr_works
=yes
15663 gl_cv_func_memchr_works
=no
15665 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15666 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
15672 $as_echo "$gl_cv_func_memchr_works" >&6; }
15673 case "$gl_cv_func_memchr_works" in
15675 *) REPLACE_MEMCHR
=1 ;;
15678 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
15679 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
15685 cat >>confdefs.h
<<_ACEOF
15686 #define HAVE_DECL_MEMMEM $ac_have_decl
15693 for ac_func
in memmem
15695 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
15696 if test "x$ac_cv_func_memmem" = xyes
; then :
15697 cat >>confdefs.h
<<_ACEOF
15698 #define HAVE_MEMMEM 1
15704 if test $ac_cv_func_memmem = yes; then
15710 if test $ac_cv_have_decl_memmem = no
; then
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15714 $as_echo_n "checking whether memmem works... " >&6; }
15715 if ${gl_cv_func_memmem_works_always+:} false
; then :
15716 $as_echo_n "(cached) " >&6
15718 if test "$cross_compiling" = yes; then :
15719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15722 #ifdef __GNU_LIBRARY__
15723 #include <features.h>
15724 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15725 || __GLIBC_MINOR__ > 12)) \
15726 || (__GLIBC__ > 2)) \
15727 || defined __UCLIBC__
15730 #elif defined __CYGWIN__
15731 #include <cygwin/version.h>
15732 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15741 $EGREP "Lucky user" >/dev
/null
2>&1; then :
15742 gl_cv_func_memmem_works_always
="guessing yes"
15744 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
15750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15753 #include <string.h> /* for memmem */
15754 #define P "_EF_BF_BD"
15755 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15756 #define NEEDLE P P P P P
15763 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15765 /* Check for empty needle behavior. */
15767 const char *haystack = "AAA";
15768 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
15777 if ac_fn_c_try_run
"$LINENO"; then :
15778 gl_cv_func_memmem_works_always
=yes
15780 gl_cv_func_memmem_works_always
=no
15782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15783 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15789 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15790 case "$gl_cv_func_memmem_works_always" in
15799 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
15800 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
15806 cat >>confdefs.h
<<_ACEOF
15807 #define HAVE_DECL_MEMRCHR $ac_have_decl
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
15815 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
15816 if ${gl_cv_minmax_in_limits_h+:} false
; then :
15817 $as_echo_n "(cached) " >&6
15819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 #include <limits.h>
15822 int x = MIN (42, 17);
15831 if ac_fn_c_try_compile
"$LINENO"; then :
15832 gl_cv_minmax_in_limits_h
=yes
15834 gl_cv_minmax_in_limits_h
=no
15836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
15839 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
15840 if test $gl_cv_minmax_in_limits_h = yes; then
15842 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
15852 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
15853 if ${gl_cv_minmax_in_sys_param_h+:} false
; then :
15854 $as_echo_n "(cached) " >&6
15856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15857 /* end confdefs.h. */
15858 #include <sys/param.h>
15859 int x = MIN (42, 17);
15868 if ac_fn_c_try_compile
"$LINENO"; then :
15869 gl_cv_minmax_in_sys_param_h
=yes
15871 gl_cv_minmax_in_sys_param_h
=no
15873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
15876 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
15877 if test $gl_cv_minmax_in_sys_param_h = yes; then
15879 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
15893 $as_echo_n "checking for O_CLOEXEC... " >&6; }
15894 if ${gl_cv_macro_O_CLOEXEC+:} false
; then :
15895 $as_echo_n "(cached) " >&6
15897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15912 if ac_fn_c_try_compile
"$LINENO"; then :
15913 gl_cv_macro_O_CLOEXEC
=yes
15915 gl_cv_macro_O_CLOEXEC
=no
15917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
15920 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
15925 $as_echo_n "checking for promoted mode_t type... " >&6; }
15926 if ${gl_cv_promoted_mode_t+:} false
; then :
15927 $as_echo_n "(cached) " >&6
15930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15932 #include <sys/types.h>
15936 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
15941 if ac_fn_c_try_compile
"$LINENO"; then :
15942 gl_cv_promoted_mode_t
='int'
15944 gl_cv_promoted_mode_t
='mode_t'
15946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
15950 $as_echo "$gl_cv_promoted_mode_t" >&6; }
15952 cat >>confdefs.h
<<_ACEOF
15953 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
15972 GNULIB_FPRINTF_POSIX
=0;
15988 GNULIB_OBSTACK_PRINTF
=0;
15989 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15994 GNULIB_PRINTF_POSIX
=0;
16003 GNULIB_SPRINTF_POSIX
=0;
16004 GNULIB_STDIO_H_NONBLOCKING
=0;
16005 GNULIB_STDIO_H_SIGPIPE
=0;
16007 GNULIB_VASPRINTF
=0;
16012 GNULIB_VFPRINTF_POSIX
=0;
16014 GNULIB_VPRINTF_POSIX
=0;
16015 GNULIB_VSNPRINTF
=0;
16016 GNULIB_VSPRINTF_POSIX
=0;
16017 GNULIB_MDA_FCLOSEALL
=1;
16018 GNULIB_MDA_FDOPEN
=1;
16019 GNULIB_MDA_FILENO
=1;
16022 GNULIB_MDA_TEMPNAM
=1;
16023 HAVE_DECL_FCLOSEALL
=1;
16024 HAVE_DECL_FPURGE
=1;
16025 HAVE_DECL_FSEEKO
=1;
16026 HAVE_DECL_FTELLO
=1;
16027 HAVE_DECL_GETDELIM
=1;
16028 HAVE_DECL_GETLINE
=1;
16029 HAVE_DECL_OBSTACK_PRINTF
=1;
16030 HAVE_DECL_SNPRINTF
=1;
16031 HAVE_DECL_VSNPRINTF
=1;
16052 REPLACE_GETDELIM
=0;
16054 REPLACE_OBSTACK_PRINTF
=0;
16060 REPLACE_RENAMEAT
=0;
16061 REPLACE_SNPRINTF
=0;
16063 REPLACE_STDIO_READ_FUNCS
=0;
16064 REPLACE_STDIO_WRITE_FUNCS
=0;
16066 REPLACE_VASPRINTF
=0;
16067 REPLACE_VDPRINTF
=0;
16068 REPLACE_VFPRINTF
=0;
16070 REPLACE_VSNPRINTF
=0;
16071 REPLACE_VSPRINTF
=0;
16075 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
16076 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
16082 cat >>confdefs.h
<<_ACEOF
16083 #define HAVE_DECL_SETENV $ac_have_decl
16091 if test $ac_cv_have_decl_setenv = no
; then
16099 for ac_header
in search.h
16101 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
16102 if test "x$ac_cv_header_search_h" = xyes
; then :
16103 cat >>confdefs.h
<<_ACEOF
16104 #define HAVE_SEARCH_H 1
16111 for ac_func
in tsearch
16113 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
16114 if test "x$ac_cv_func_tsearch" = xyes
; then :
16115 cat >>confdefs.h
<<_ACEOF
16116 #define HAVE_TSEARCH 1
16125 GNULIB_PTHREAD_SIGMASK
=0;
16127 GNULIB_SIGNAL_H_SIGPIPE
=0;
16128 GNULIB_SIGPROCMASK
=0;
16129 GNULIB_SIGACTION
=0;
16130 HAVE_POSIX_SIGNALBLOCKING
=1;
16131 HAVE_PTHREAD_SIGMASK
=1;
16136 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
16138 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
16140 HAVE_SIGHANDLER_T
=1;
16141 REPLACE_PTHREAD_SIGMASK
=0;
16145 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
16146 #include <signal.h>
16147 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
16148 #include <sys/types.h>
16151 if test "x$ac_cv_type_sigset_t" = xyes
; then :
16153 cat >>confdefs.h
<<_ACEOF
16154 #define HAVE_SIGSET_T 1
16157 gl_cv_type_sigset_t
=yes
16159 gl_cv_type_sigset_t
=no
16162 if test $gl_cv_type_sigset_t != yes; then
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16167 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16168 if ${ac_cv_type_uid_t+:} false
; then :
16169 $as_echo_n "(cached) " >&6
16171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h. */
16173 #include <sys/types.h>
16176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16177 $EGREP "uid_t" >/dev
/null
2>&1; then :
16178 ac_cv_type_uid_t
=yes
16180 ac_cv_type_uid_t
=no
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16186 $as_echo "$ac_cv_type_uid_t" >&6; }
16187 if test $ac_cv_type_uid_t = no
; then
16189 $as_echo "#define uid_t int" >>confdefs.h
16192 $as_echo "#define gid_t int" >>confdefs.h
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16197 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16198 if ${ac_cv_header_stdbool_h+:} false
; then :
16199 $as_echo_n "(cached) " >&6
16201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16204 #include <stdbool.h>
16209 typedef _Bool Bool;
16211 "error: bool is not defined"
16214 "error: false is not defined"
16217 "error: false is not 0"
16220 "error: true is not defined"
16223 "error: true is not 1"
16227 #ifndef __bool_true_false_are_defined
16228 "error: __bool_true_false_are_defined is not defined"
16231 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
16233 char a[true == 1 ? 1 : -1];
16234 char b[false == 0 ? 1 : -1];
16235 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16236 char d[(bool) 0.5 == true ? 1 : -1];
16237 /* See body of main program for 'e'. */
16238 char f[(Bool) 0.0 == false ? 1 : -1];
16240 char h[sizeof (Bool)];
16241 char i[sizeof s.t];
16242 enum { j = false, k = true, l = false * true, m = true * 256 };
16243 /* The following fails for
16244 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16246 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16247 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16248 /* Catch a bug in an HP-UX C compiler. See
16249 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16250 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
16261 *pq |= q; *pq |= ! q;
16262 *qq |= q; *qq |= ! q;
16263 /* Refer to every declared value, to avoid compiler optimizations. */
16264 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16265 + !m + !n + !o + !p + !q + !pq + !qq);
16271 if ac_fn_c_try_compile
"$LINENO"; then :
16272 ac_cv_header_stdbool_h
=yes
16274 ac_cv_header_stdbool_h
=no
16276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16279 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16280 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16281 if test "x$ac_cv_type__Bool" = xyes
; then :
16283 cat >>confdefs.h
<<_ACEOF
16284 #define HAVE__BOOL 1
16291 ac_fn_c_check_decl
"$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default"
16292 if test "x$ac_cv_have_decl_fcloseall" = xyes
; then :
16298 cat >>confdefs.h
<<_ACEOF
16299 #define HAVE_DECL_FCLOSEALL $ac_have_decl
16302 ac_fn_c_check_decl
"$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default"
16303 if test "x$ac_cv_have_decl_ecvt" = xyes
; then :
16309 cat >>confdefs.h
<<_ACEOF
16310 #define HAVE_DECL_ECVT $ac_have_decl
16313 ac_fn_c_check_decl
"$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default"
16314 if test "x$ac_cv_have_decl_fcvt" = xyes
; then :
16320 cat >>confdefs.h
<<_ACEOF
16321 #define HAVE_DECL_FCVT $ac_have_decl
16324 ac_fn_c_check_decl
"$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default"
16325 if test "x$ac_cv_have_decl_gcvt" = xyes
; then :
16331 cat >>confdefs.h
<<_ACEOF
16332 #define HAVE_DECL_GCVT $ac_have_decl
16335 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
16336 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
16342 cat >>confdefs.h
<<_ACEOF
16343 #define HAVE_DECL_STRDUP $ac_have_decl
16347 REPLACE_STRERROR_0
=0
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
16349 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
16350 if ${gl_cv_func_strerror_0_works+:} false
; then :
16351 $as_echo_n "(cached) " >&6
16353 if test "$cross_compiling" = yes; then :
16355 # Guess yes on glibc systems.
16356 *-gnu* | gnu
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16357 # Guess yes on musl systems.
16358 *-musl*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16359 # Guess yes on native Windows.
16360 mingw
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16361 # If we don't know, obey --enable-cross-guesses.
16362 *) gl_cv_func_strerror_0_works
="$gl_cross_guess_normal" ;;
16366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16367 /* end confdefs.h. */
16368 #include <string.h>
16377 str = strerror (0);
16378 if (!*str) result |= 1;
16379 if (errno) result |= 2;
16380 if (strstr (str, "nknown") || strstr (str, "ndefined"))
16387 if ac_fn_c_try_run
"$LINENO"; then :
16388 gl_cv_func_strerror_0_works
=yes
16390 gl_cv_func_strerror_0_works
=no
16392 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16393 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
16399 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
16400 case "$gl_cv_func_strerror_0_works" in
16403 REPLACE_STRERROR_0
=1
16405 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
16419 if test $ac_cv_func_strerror_r = yes; then
16420 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
16422 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
16423 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
16424 $as_echo_n "(cached) " >&6
16426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428 #include <string.h>
16429 int strerror_r (int, char *, size_t);
16439 if ac_fn_c_try_compile
"$LINENO"; then :
16440 gl_cv_func_strerror_r_posix_signature
=yes
16442 gl_cv_func_strerror_r_posix_signature
=no
16444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
16448 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
16449 if test $gl_cv_func_strerror_r_posix_signature = yes; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
16451 $as_echo_n "checking whether strerror_r works... " >&6; }
16452 if ${gl_cv_func_strerror_r_works+:} false
; then :
16453 $as_echo_n "(cached) " >&6
16455 if test "$cross_compiling" = yes; then :
16459 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
16460 # Guess no on HP-UX.
16461 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
16462 # Guess no on BSD variants.
16463 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
16464 # Guess yes otherwise.
16465 *) gl_cv_func_strerror_r_works
="guessing yes";;
16469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16472 #include <string.h>
16479 if (strerror_r (EACCES, buf, 0) < 0)
16482 if (strerror_r (EACCES, buf, sizeof buf) != 0)
16484 strcpy (buf, "Unknown");
16485 if (strerror_r (0, buf, sizeof buf) != 0)
16489 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
16493 if (strerror_r (-3, buf, sizeof buf) < 0)
16505 if ac_fn_c_try_run
"$LINENO"; then :
16506 gl_cv_func_strerror_r_works
=yes
16508 gl_cv_func_strerror_r_works
=no
16510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16517 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16520 if test $ac_cv_func___xpg_strerror_r = yes; then
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
16522 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
16523 if ${gl_cv_func_strerror_r_works+:} false
; then :
16524 $as_echo_n "(cached) " >&6
16526 if test "$cross_compiling" = yes; then :
16527 gl_cv_func_strerror_r_works
="$gl_cross_guess_normal"
16530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h. */
16533 #include <string.h>
16538 int __xpg_strerror_r(int, char *, size_t);
16544 char buf[256] = "^";
16546 char *str = strerror (-1);
16547 strcpy (copy, str);
16548 if (__xpg_strerror_r (-2, buf, 1) == 0)
16552 __xpg_strerror_r (-2, buf, 256);
16553 if (strcmp (str, copy))
16561 if ac_fn_c_try_run
"$LINENO"; then :
16562 gl_cv_func_strerror_r_works
=yes
16564 gl_cv_func_strerror_r_works
=no
16566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16567 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16573 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16579 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16580 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
16586 cat >>confdefs.h
<<_ACEOF
16587 #define HAVE_DECL_STRERROR_R $ac_have_decl
16604 if test $gl_cv_have_include_next = yes; then
16605 gl_cv_next_string_h
='<'string.h
'>'
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
16608 $as_echo_n "checking absolute name of <string.h>... " >&6; }
16609 if ${gl_cv_next_string_h+:} false
; then :
16610 $as_echo_n "(cached) " >&6
16615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16617 #include <string.h>
16620 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16621 *) gl_absname_cpp
="$ac_cpp" ;;
16626 gl_dirsep_regex
='[/\\]'
16629 gl_dirsep_regex
='\/'
16632 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16633 gl_header_literal_regex
=`echo 'string.h' \
16634 | sed -e "$gl_make_literal_regex_sed"`
16635 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16636 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16642 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16643 sed -n "$gl_absolute_header_sed"`
16645 gl_header
=$gl_cv_absolute_string_h
16646 gl_cv_next_string_h
='"'$gl_header'"'
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
16651 $as_echo "$gl_cv_next_string_h" >&6; }
16653 NEXT_STRING_H
=$gl_cv_next_string_h
16655 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16656 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16657 gl_next_as_first_directive
='<'string.h
'>'
16659 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16660 gl_next_as_first_directive
=$gl_cv_next_string_h
16662 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
16674 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16675 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16681 cat >>confdefs.h
<<_ACEOF
16682 #define HAVE_DECL_STRNLEN $ac_have_decl
16688 if test $REPLACE_MEMCHR = 1; then
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
16692 $as_echo_n "checking whether strstr works... " >&6; }
16693 if ${gl_cv_func_strstr_works_always+:} false
; then :
16694 $as_echo_n "(cached) " >&6
16696 if test "$cross_compiling" = yes; then :
16697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h. */
16700 #ifdef __GNU_LIBRARY__
16701 #include <features.h>
16702 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16703 || defined __UCLIBC__
16706 #elif defined __CYGWIN__
16707 #include <cygwin/version.h>
16708 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16717 $EGREP "Lucky user" >/dev
/null
2>&1; then :
16718 gl_cv_func_strstr_works_always
="guessing yes"
16720 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
16726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16729 #include <string.h> /* for strstr */
16730 #ifdef __GNU_LIBRARY__
16731 #include <features.h>
16732 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
16736 #define P "_EF_BF_BD"
16737 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16738 #define NEEDLE P P P P P
16743 return !!strstr (HAYSTACK, NEEDLE);
16749 if ac_fn_c_try_run
"$LINENO"; then :
16750 gl_cv_func_strstr_works_always
=yes
16752 gl_cv_func_strstr_works_always
=no
16754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16755 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
16761 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
16762 case "$gl_cv_func_strstr_works_always" in
16770 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
16771 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
16777 cat >>confdefs.h
<<_ACEOF
16778 #define HAVE_DECL_STRTOK_R $ac_have_decl
16793 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
16805 if test $gl_cv_have_include_next = yes; then
16806 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16809 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16810 if ${gl_cv_next_sys_types_h+:} false
; then :
16811 $as_echo_n "(cached) " >&6
16816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16818 #include <sys/types.h>
16821 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16822 *) gl_absname_cpp
="$ac_cpp" ;;
16827 gl_dirsep_regex
='[/\\]'
16830 gl_dirsep_regex
='\/'
16833 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16834 gl_header_literal_regex
=`echo 'sys/types.h' \
16835 | sed -e "$gl_make_literal_regex_sed"`
16836 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16837 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16843 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16844 sed -n "$gl_absolute_header_sed"`
16846 gl_header
=$gl_cv_absolute_sys_types_h
16847 gl_cv_next_sys_types_h
='"'$gl_header'"'
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16852 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16854 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
16856 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16857 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16858 gl_next_as_first_directive
='<'sys
/types.h
'>'
16860 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16861 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
16863 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
16876 WINDOWS_STAT_INODES
=0
16887 GNULIB_LOCALTIME
=0;
16888 GNULIB_NANOSLEEP
=0;
16892 GNULIB_TIMESPEC_GET
=0;
16896 GNULIB_MDA_TZSET
=1;
16897 HAVE_DECL_LOCALTIME_R
=1;
16901 HAVE_TIMESPEC_GET
=1;
16903 REPLACE_CTIME
=GNULIB_PORTCHECK
;
16904 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
16905 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
16906 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
16907 REPLACE_STRFTIME
=GNULIB_PORTCHECK
;
16908 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
16909 REPLACE_TZSET
=GNULIB_PORTCHECK
;
16911 : ${GNULIB_GETTIMEOFDAY=0};
16913 REPLACE_LOCALTIME
=0;
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16918 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16919 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
16920 $as_echo_n "(cached) " >&6
16922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16923 /* end confdefs.h. */
16929 static struct timespec x; x.tv_sec = x.tv_nsec;
16934 if ac_fn_c_try_compile
"$LINENO"; then :
16935 gl_cv_sys_struct_timespec_in_time_h
=yes
16937 gl_cv_sys_struct_timespec_in_time_h
=no
16939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16942 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16944 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16945 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16946 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
16947 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
16948 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16949 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16952 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16953 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
16954 $as_echo_n "(cached) " >&6
16956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h. */
16958 #include <sys/time.h>
16963 static struct timespec x; x.tv_sec = x.tv_nsec;
16968 if ac_fn_c_try_compile
"$LINENO"; then :
16969 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
16971 gl_cv_sys_struct_timespec_in_sys_time_h
=no
16973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16976 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16977 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16978 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16981 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16982 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
16983 $as_echo_n "(cached) " >&6
16985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16987 #include <pthread.h>
16992 static struct timespec x; x.tv_sec = x.tv_nsec;
16997 if ac_fn_c_try_compile
"$LINENO"; then :
16998 gl_cv_sys_struct_timespec_in_pthread_h
=yes
17000 gl_cv_sys_struct_timespec_in_pthread_h
=no
17002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
17005 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
17006 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
17007 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
17010 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
17011 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
17012 $as_echo_n "(cached) " >&6
17014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17016 #include <unistd.h>
17021 static struct timespec x; x.tv_sec = x.tv_nsec;
17026 if ac_fn_c_try_compile
"$LINENO"; then :
17027 gl_cv_sys_struct_timespec_in_unistd_h
=yes
17029 gl_cv_sys_struct_timespec_in_unistd_h
=no
17031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
17034 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
17035 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
17036 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
17057 if test $gl_cv_have_include_next = yes; then
17058 gl_cv_next_time_h
='<'time.h
'>'
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
17061 $as_echo_n "checking absolute name of <time.h>... " >&6; }
17062 if ${gl_cv_next_time_h+:} false
; then :
17063 $as_echo_n "(cached) " >&6
17068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17073 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17074 *) gl_absname_cpp
="$ac_cpp" ;;
17079 gl_dirsep_regex
='[/\\]'
17082 gl_dirsep_regex
='\/'
17085 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17086 gl_header_literal_regex
=`echo 'time.h' \
17087 | sed -e "$gl_make_literal_regex_sed"`
17088 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17089 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17095 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17096 sed -n "$gl_absolute_header_sed"`
17098 gl_header
=$gl_cv_absolute_time_h
17099 gl_cv_next_time_h
='"'$gl_header'"'
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
17104 $as_echo "$gl_cv_next_time_h" >&6; }
17106 NEXT_TIME_H
=$gl_cv_next_time_h
17108 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17109 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17110 gl_next_as_first_directive
='<'time.h
'>'
17112 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17113 gl_next_as_first_directive
=$gl_cv_next_time_h
17115 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
17125 $as_echo_n "checking for TIME_UTC in <time.h>... " >&6; }
17126 if ${gl_cv_time_h_has_TIME_UTC+:} false
; then :
17127 $as_echo_n "(cached) " >&6
17129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17136 static int x = TIME_UTC; x++;
17141 if ac_fn_c_try_compile
"$LINENO"; then :
17142 gl_cv_time_h_has_TIME_UTC
=yes
17144 gl_cv_time_h_has_TIME_UTC
=no
17146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
17149 $as_echo "$gl_cv_time_h_has_TIME_UTC" >&6; }
17150 if test $gl_cv_time_h_has_TIME_UTC = yes; then
17151 TIME_H_DEFINES_TIME_UTC
=1
17153 TIME_H_DEFINES_TIME_UTC
=0
17159 ac_fn_c_check_decl
"$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default"
17160 if test "x$ac_cv_have_decl_execvpe" = xyes
; then :
17166 cat >>confdefs.h
<<_ACEOF
17167 #define HAVE_DECL_EXECVPE $ac_have_decl
17170 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
17171 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
17177 cat >>confdefs.h
<<_ACEOF
17178 #define HAVE_DECL_UNSETENV $ac_have_decl
17185 if test $ac_cv_header_crtdefs_h = yes; then
17195 GNULIB_ISWXDIGIT
=0;
17199 GNULIB_TOWCTRANS
=0;
17203 REPLACE_ISWBLANK
=0;
17204 REPLACE_ISWDIGIT
=0;
17205 REPLACE_ISWXDIGIT
=0;
17215 GL_COND_LIBTOOL_TRUE
=
17216 GL_COND_LIBTOOL_FALSE
='#'
17218 GL_COND_LIBTOOL_TRUE
='#'
17219 GL_COND_LIBTOOL_FALSE
=
17222 gl_cond_libtool
=false
17225 gl_m4_base
='import/m4'
17236 gl_source_base
='import'
17239 if test $ac_cv_func_alloca_works = no
; then
17243 # Define an additional variable used in the Makefile substitution.
17244 if test $ac_cv_working_alloca_h = yes; then
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
17246 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
17247 if ${gl_cv_rpl_alloca+:} false
; then :
17248 $as_echo_n "(cached) " >&6
17251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17254 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17260 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
17261 gl_cv_rpl_alloca
=yes
17263 gl_cv_rpl_alloca
=no
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
17270 $as_echo "$gl_cv_rpl_alloca" >&6; }
17271 if test $gl_cv_rpl_alloca = yes; then
17273 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17283 if test -n "$ALLOCA_H"; then
17284 GL_GENERATE_ALLOCA_H_TRUE
=
17285 GL_GENERATE_ALLOCA_H_FALSE
='#'
17287 GL_GENERATE_ALLOCA_H_TRUE
='#'
17288 GL_GENERATE_ALLOCA_H_FALSE
=
17292 if test $ac_cv_working_alloca_h = yes; then
17303 if test $ac_cv_header_arpa_inet_h = yes; then
17318 if test $gl_cv_have_include_next = yes; then
17319 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
17322 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
17323 if ${gl_cv_next_arpa_inet_h+:} false
; then :
17324 $as_echo_n "(cached) " >&6
17327 if test $ac_cv_header_arpa_inet_h = yes; then
17332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17334 #include <arpa/inet.h>
17337 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17338 *) gl_absname_cpp
="$ac_cpp" ;;
17343 gl_dirsep_regex
='[/\\]'
17346 gl_dirsep_regex
='\/'
17349 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17350 gl_header_literal_regex
=`echo 'arpa/inet.h' \
17351 | sed -e "$gl_make_literal_regex_sed"`
17352 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17353 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17359 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17360 sed -n "$gl_absolute_header_sed"`
17362 gl_header
=$gl_cv_absolute_arpa_inet_h
17363 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
17365 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
17371 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
17373 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
17375 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17376 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17377 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
17379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17380 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
17382 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
17392 if test $ac_cv_header_sys_socket_h = yes; then
17395 if test $ac_cv_header_ws2tcpip_h = yes; then
17416 if test $ac_cv_func_btowc = no
; then
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
17424 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
17425 if ${gl_cv_func_btowc_nul+:} false
; then :
17426 $as_echo_n "(cached) " >&6
17429 if test "$cross_compiling" = yes; then :
17432 # Guess no on Cygwin.
17433 cygwin
*) gl_cv_func_btowc_nul
="guessing no" ;;
17434 # Guess yes on native Windows.
17435 mingw
*) gl_cv_func_btowc_nul
="guessing yes" ;;
17436 # Guess yes otherwise.
17437 *) gl_cv_func_btowc_nul
="guessing yes" ;;
17441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17442 /* end confdefs.h. */
17447 if (btowc ('\0') != 0)
17452 if ac_fn_c_try_run
"$LINENO"; then :
17453 gl_cv_func_btowc_nul
=yes
17455 gl_cv_func_btowc_nul
=no
17457 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17458 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
17464 $as_echo "$gl_cv_func_btowc_nul" >&6; }
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
17467 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
17468 if ${gl_cv_func_btowc_eof+:} false
; then :
17469 $as_echo_n "(cached) " >&6
17473 # Guess no on IRIX.
17474 irix
*) gl_cv_func_btowc_eof
="guessing no" ;;
17475 # Guess yes on native Windows.
17476 mingw
*) gl_cv_func_btowc_eof
="guessing yes" ;;
17477 # Guess yes otherwise.
17478 *) gl_cv_func_btowc_eof
="guessing yes" ;;
17480 if test $LOCALE_FR != none
; then
17481 if test "$cross_compiling" = yes; then :
17484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17485 /* end confdefs.h. */
17487 #include <locale.h>
17492 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
17494 if (btowc (EOF) != WEOF)
17500 if ac_fn_c_try_run
"$LINENO"; then :
17501 gl_cv_func_btowc_eof
=yes
17503 gl_cv_func_btowc_eof
=no
17505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
17513 $as_echo "$gl_cv_func_btowc_eof" >&6; }
17515 case "$gl_cv_func_btowc_nul" in
17517 *) REPLACE_BTOWC
=1 ;;
17519 case "$gl_cv_func_btowc_eof" in
17521 *) REPLACE_BTOWC
=1 ;;
17525 if test $HAVE_BTOWC = 0 ||
test $REPLACE_BTOWC = 1; then
17534 gl_LIBOBJS
="$gl_LIBOBJS btowc.$ac_objext"
17551 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
17557 $as_echo_n "checking for __builtin_expect... " >&6; }
17558 if ${gl_cv___builtin_expect+:} false
; then :
17559 $as_echo_n "(cached) " >&6
17561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17562 /* end confdefs.h. */
17565 main (int argc, char **argv)
17567 argc = __builtin_expect (argc, 100);
17568 return argv[argc != 100][0];
17571 if ac_fn_c_try_link
"$LINENO"; then :
17572 gl_cv___builtin_expect
=yes
17574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h. */
17577 #include <builtins.h>
17579 main (int argc, char **argv)
17581 argc = __builtin_expect (argc, 100);
17582 return argv[argc != 100][0];
17585 if ac_fn_c_try_link
"$LINENO"; then :
17586 gl_cv___builtin_expect
="in <builtins.h>"
17588 gl_cv___builtin_expect
=no
17590 rm -f core conftest.err conftest.
$ac_objext \
17591 conftest
$ac_exeext conftest.
$ac_ext
17593 rm -f core conftest.err conftest.
$ac_objext \
17594 conftest
$ac_exeext conftest.
$ac_ext
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
17597 $as_echo "$gl_cv___builtin_expect" >&6; }
17598 if test "$gl_cv___builtin_expect" = yes; then
17599 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
17601 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
17602 $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
17610 if test $ac_cv_func_canonicalize_file_name = no
; then
17611 HAVE_CANONICALIZE_FILE_NAME
=0
17612 if test $ac_cv_func_realpath = no
; then
17615 case "$gl_cv_func_realpath_works" in
17617 *) REPLACE_REALPATH
=1 ;;
17621 case "$gl_cv_func_realpath_works" in
17625 REPLACE_CANONICALIZE_FILE_NAME
=1
17631 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
17640 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
17645 cat >>confdefs.h
<<_ACEOF
17646 #define GNULIB_CANONICALIZE_LGPL 1
17655 GNULIB_CANONICALIZE_FILE_NAME
=1
17661 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
17676 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
17691 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system supports file names of any length" >&5
17698 $as_echo_n "checking whether this system supports file names of any length... " >&6; }
17699 if ${gl_cv_have_unlimited_file_name_length+:} false
; then :
17700 $as_echo_n "(cached) " >&6
17702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17703 /* end confdefs.h. */
17705 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17707 # include <unistd.h>
17709 #include <limits.h>
17710 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17711 # include <sys/param.h>
17713 #if !defined PATH_MAX && defined MAXPATHLEN
17714 # define PATH_MAX MAXPATHLEN
17718 # define PATH_MAX 1024
17720 #if defined _WIN32 && ! defined __CYGWIN__
17722 # define PATH_MAX 260
17726 have_arbitrary_file_name_length_limit
17729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17730 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
17731 gl_cv_have_unlimited_file_name_length
=no
17733 gl_cv_have_unlimited_file_name_length
=yes
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_unlimited_file_name_length" >&5
17739 $as_echo "$gl_cv_have_unlimited_file_name_length" >&6; }
17741 if test $gl_cv_have_unlimited_file_name_length = no
; then
17750 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
17757 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
17758 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
17760 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
17761 # programs in the package would end up linked with that potentially-shared
17762 # library, inducing unnecessary run-time overhead.
17765 gl_saved_libs
=$LIBS
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17767 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17768 if ${ac_cv_search_clock_gettime+:} false
; then :
17769 $as_echo_n "(cached) " >&6
17771 ac_func_search_save_LIBS
=$LIBS
17772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h. */
17775 /* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17781 char clock_gettime ();
17785 return clock_gettime ();
17790 for ac_lib
in '' rt posix4
; do
17791 if test -z "$ac_lib"; then
17792 ac_res
="none required"
17795 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17797 if ac_fn_c_try_link
"$LINENO"; then :
17798 ac_cv_search_clock_gettime
=$ac_res
17800 rm -f core conftest.err conftest.
$ac_objext \
17802 if ${ac_cv_search_clock_gettime+:} false
; then :
17806 if ${ac_cv_search_clock_gettime+:} false
; then :
17809 ac_cv_search_clock_gettime
=no
17811 rm conftest.
$ac_ext
17812 LIBS
=$ac_func_search_save_LIBS
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17815 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17816 ac_res
=$ac_cv_search_clock_gettime
17817 if test "$ac_res" != no
; then :
17818 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17819 test "$ac_cv_search_clock_gettime" = "none required" ||
17820 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
17823 for ac_func
in clock_gettime clock_settime
17825 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17826 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17827 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17828 cat >>confdefs.h
<<_ACEOF
17829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17835 LIBS
=$gl_saved_libs
17839 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
17846 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17855 if test $ac_cv_header_sys_socket_h != yes; then
17856 for ac_header
in winsock2.h
17858 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17859 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
17860 cat >>confdefs.h
<<_ACEOF
17861 #define HAVE_WINSOCK2_H 1
17869 if test "$ac_cv_header_winsock2_h" = yes; then
17871 UNISTD_H_HAVE_WINSOCK2_H
=1
17872 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17878 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
17883 if test $REPLACE_CLOSE = 0; then
17887 if test $ac_cv_func_fchdir = no
; then
17891 if test $HAVE_FCHDIR = 0; then
17897 if test $REPLACE_CLOSE = 1; then
17906 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
17920 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
17927 for ac_func
in closedir
17929 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
17930 if test "x$ac_cv_func_closedir" = xyes
; then :
17931 cat >>confdefs.h
<<_ACEOF
17932 #define HAVE_CLOSEDIR 1
17938 if test $ac_cv_func_closedir = no
; then
17945 if test $ac_cv_func_fchdir = no
; then
17949 if test $HAVE_FCHDIR = 0; then
17950 if test $HAVE_CLOSEDIR = 1; then
17955 case $host_os,$HAVE_CLOSEDIR in
17957 REPLACE_CLOSEDIR
=1;;
17960 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
17969 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
17983 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
17998 if test $gl_cv_have_include_next = yes; then
17999 gl_cv_next_ctype_h
='<'ctype.h
'>'
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
18002 $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
18003 if ${gl_cv_next_ctype_h+:} false
; then :
18004 $as_echo_n "(cached) " >&6
18009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18010 /* end confdefs.h. */
18014 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18015 *) gl_absname_cpp
="$ac_cpp" ;;
18020 gl_dirsep_regex
='[/\\]'
18023 gl_dirsep_regex
='\/'
18026 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18027 gl_header_literal_regex
=`echo 'ctype.h' \
18028 | sed -e "$gl_make_literal_regex_sed"`
18029 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18030 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18036 gl_cv_absolute_ctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18037 sed -n "$gl_absolute_header_sed"`
18039 gl_header
=$gl_cv_absolute_ctype_h
18040 gl_cv_next_ctype_h
='"'$gl_header'"'
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
18045 $as_echo "$gl_cv_next_ctype_h" >&6; }
18047 NEXT_CTYPE_H
=$gl_cv_next_ctype_h
18049 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18050 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18051 gl_next_as_first_directive
='<'ctype.h
'>'
18053 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18054 gl_next_as_first_directive
=$gl_cv_next_ctype_h
18056 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
=$gl_next_as_first_directive
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
18067 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
18068 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
18069 $as_echo_n "(cached) " >&6
18071 if test "$cross_compiling" = yes; then :
18073 # Guess yes on glibc systems with Linux kernel.
18074 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
18075 # Guess yes on musl systems with Linux kernel.
18076 linux
*-musl*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
18077 # Guess no on native Windows.
18078 mingw
*) gl_cv_struct_dirent_d_ino
="guessing no" ;;
18079 # If we don't know, obey --enable-cross-guesses.
18080 *) gl_cv_struct_dirent_d_ino
="$gl_cross_guess_normal" ;;
18084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18086 #include <sys/types.h>
18087 #include <sys/stat.h>
18088 #include <dirent.h>
18093 DIR *dp = opendir (".");
18100 { closedir (dp); return 2; }
18101 if (lstat (e->d_name, &st) != 0)
18102 { closedir (dp); return 3; }
18103 if (e->d_ino != st.st_ino)
18104 { closedir (dp); return 4; }
18112 if ac_fn_c_try_run
"$LINENO"; then :
18113 gl_cv_struct_dirent_d_ino
=yes
18115 gl_cv_struct_dirent_d_ino
=no
18117 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18118 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
18123 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
18124 case "$gl_cv_struct_dirent_d_ino" in
18127 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
18134 $as_echo_n "checking for d_type member in directory struct... " >&6; }
18135 if ${gl_cv_struct_dirent_d_type+:} false
; then :
18136 $as_echo_n "(cached) " >&6
18138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18139 /* end confdefs.h. */
18141 #include <sys/types.h>
18142 #include <dirent.h>
18147 struct dirent dp; dp.d_type = 0;
18152 if ac_fn_c_try_link
"$LINENO"; then :
18153 gl_cv_struct_dirent_d_type
=yes
18155 gl_cv_struct_dirent_d_type
=no
18157 rm -f core conftest.err conftest.
$ac_objext \
18158 conftest
$ac_exeext conftest.
$ac_ext
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
18163 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
18164 if test $gl_cv_struct_dirent_d_type = yes; then
18166 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
18183 if test $gl_cv_have_include_next = yes; then
18184 gl_cv_next_dirent_h
='<'dirent.h
'>'
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
18187 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
18188 if ${gl_cv_next_dirent_h+:} false
; then :
18189 $as_echo_n "(cached) " >&6
18192 if test $ac_cv_header_dirent_h = yes; then
18197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199 #include <dirent.h>
18202 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18203 *) gl_absname_cpp
="$ac_cpp" ;;
18208 gl_dirsep_regex
='[/\\]'
18211 gl_dirsep_regex
='\/'
18214 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18215 gl_header_literal_regex
=`echo 'dirent.h' \
18216 | sed -e "$gl_make_literal_regex_sed"`
18217 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18218 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18224 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18225 sed -n "$gl_absolute_header_sed"`
18227 gl_header
=$gl_cv_absolute_dirent_h
18228 gl_cv_next_dirent_h
='"'$gl_header'"'
18230 gl_cv_next_dirent_h
='<'dirent.h
'>'
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
18236 $as_echo "$gl_cv_next_dirent_h" >&6; }
18238 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
18240 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18241 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18242 gl_next_as_first_directive
='<'dirent.h
'>'
18244 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18245 gl_next_as_first_directive
=$gl_cv_next_dirent_h
18247 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
18252 if test $ac_cv_header_dirent_h = yes; then
18268 for ac_func
in dirfd
18270 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
18271 if test "x$ac_cv_func_dirfd" = xyes
; then :
18272 cat >>confdefs.h
<<_ACEOF
18273 #define HAVE_DIRFD 1
18279 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
18280 #include <dirent.h>
18282 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
18288 cat >>confdefs.h
<<_ACEOF
18289 #define HAVE_DECL_DIRFD $ac_have_decl
18292 if test $ac_cv_have_decl_dirfd = no
; then
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
18297 $as_echo_n "checking whether dirfd is a macro... " >&6; }
18298 if ${gl_cv_func_dirfd_macro+:} false
; then :
18299 $as_echo_n "(cached) " >&6
18301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18302 /* end confdefs.h. */
18304 #include <sys/types.h>
18305 #include <dirent.h>
18307 dirent_header_defines_dirfd
18310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18311 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
18312 gl_cv_func_dirfd_macro
=yes
18314 gl_cv_func_dirfd_macro
=no
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
18320 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
18322 # Use the replacement if we have no function or macro with that name,
18323 # or if OS/2 kLIBC whose dirfd() does not work.
18324 # Replace only if the system declares dirfd already.
18325 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
18326 no
,no
,*,yes |
*,*,os2
*,yes)
18329 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
18333 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
18334 ||
test $REPLACE_DIRFD = 1; then
18343 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
18347 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
18348 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
18349 $as_echo_n "(cached) " >&6
18352 dirfd_save_CFLAGS
=$CFLAGS
18353 for ac_expr
in d_fd dd_fd
; do
18355 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
18356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18359 #include <sys/types.h>
18360 #include <dirent.h>
18364 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
18369 if ac_fn_c_try_compile
"$LINENO"; then :
18373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18374 CFLAGS
=$dirfd_save_CFLAGS
18375 test "$dir_fd_found" = yes && break
18377 test "$dir_fd_found" = yes || ac_expr
=no_such_member
18379 gl_cv_sys_dir_fd_member_name
=$ac_expr
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
18384 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
18385 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
18387 cat >>confdefs.h
<<_ACEOF
18388 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
18406 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
18413 $as_echo_n "checking whether // is distinct from /... " >&6; }
18414 if ${gl_cv_double_slash_root+:} false
; then :
18415 $as_echo_n "(cached) " >&6
18417 if test x
"$cross_compiling" = xyes
; then
18418 # When cross-compiling, there is no way to tell whether // is special
18419 # short of a list of hosts. However, the only known hosts to date
18420 # that have a distinct // are Apollo DomainOS (too old to port to),
18421 # Cygwin, and z/OS. If anyone knows of another system for which // has
18422 # special semantics and is distinct from /, please report it to
18423 # <bug-gnulib@gnu.org>.
18425 *-cygwin | i370-ibm-openedition
)
18426 gl_cv_double_slash_root
=yes ;;
18428 # Be optimistic and assume that / and // are the same when we
18430 gl_cv_double_slash_root
='unknown, assuming no' ;;
18433 set x
`ls -di / // 2>/dev/null`
18434 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
18435 gl_cv_double_slash_root
=no
18437 gl_cv_double_slash_root
=yes
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
18442 $as_echo "$gl_cv_double_slash_root" >&6; }
18443 if test "$gl_cv_double_slash_root" = yes; then
18445 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
18453 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
18461 if test $ac_cv_func_fchdir = no
; then
18465 if test $HAVE_FCHDIR = 0; then
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
18470 $as_echo_n "checking whether dup works... " >&6; }
18471 if ${gl_cv_func_dup_works+:} false
; then :
18472 $as_echo_n "(cached) " >&6
18474 if test "$cross_compiling" = yes; then :
18476 # Guess no on native Windows.
18477 mingw
*) gl_cv_func_dup_works
="guessing no" ;;
18478 *) gl_cv_func_dup_works
="guessing yes" ;;
18482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18483 /* end confdefs.h. */
18484 #include <unistd.h>
18494 /* On OS/2 kLIBC, dup does not work on a directory fd. */
18495 int fd = open (".", O_RDONLY);
18496 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
18503 if ac_fn_c_try_run
"$LINENO"; then :
18504 gl_cv_func_dup_works
=yes
18506 gl_cv_func_dup_works
=no
18508 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18509 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
18515 $as_echo "$gl_cv_func_dup_works" >&6; }
18516 case "$gl_cv_func_dup_works" in
18523 if test $REPLACE_DUP = 1; then
18532 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
18547 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18555 $as_echo_n "checking whether dup2 works... " >&6; }
18556 if ${gl_cv_func_dup2_works+:} false
; then :
18557 $as_echo_n "(cached) " >&6
18559 if test "$cross_compiling" = yes; then :
18561 mingw
*) # on this platform, dup2 always returns 0 for success
18562 gl_cv_func_dup2_works
="guessing no" ;;
18563 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
18564 gl_cv_func_dup2_works
="guessing no" ;;
18566 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
18568 gl_cv_func_dup2_works
="guessing no" ;;
18569 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18570 gl_cv_func_dup2_works
="guessing no" ;;
18571 *-android*) # implemented using dup3(), which fails if oldfd == newfd
18572 gl_cv_func_dup2_works
="guessing no" ;;
18573 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
18574 gl_cv_func_dup2_works
="guessing no" ;;
18575 *) gl_cv_func_dup2_works
="guessing yes" ;;
18578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18579 /* end confdefs.h. */
18583 #include <limits.h>
18584 #include <sys/resource.h>
18585 #include <unistd.h>
18590 #ifndef RLIM_SAVED_CUR
18591 # define RLIM_SAVED_CUR RLIM_INFINITY
18593 #ifndef RLIM_SAVED_MAX
18594 # define RLIM_SAVED_MAX RLIM_INFINITY
18601 int bad_fd = INT_MAX;
18602 struct rlimit rlim;
18603 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18604 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18605 && rlim.rlim_cur != RLIM_INFINITY
18606 && rlim.rlim_cur != RLIM_SAVED_MAX
18607 && rlim.rlim_cur != RLIM_SAVED_CUR)
18608 bad_fd = rlim.rlim_cur;
18610 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18613 if (dup2 (1, 1) != 1)
18616 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18620 if (dup2 (0, 0) != -1)
18622 /* Many gnulib modules require POSIX conformance of EBADF. */
18623 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
18625 /* Flush out some cygwin core dumps. */
18626 if (dup2 (2, -1) != -1 || errno != EBADF)
18630 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
18632 int fd = open (".", O_RDONLY);
18635 else if (dup2 (fd, fd + 1) == -1)
18645 if ac_fn_c_try_run
"$LINENO"; then :
18646 gl_cv_func_dup2_works
=yes
18648 gl_cv_func_dup2_works
=no
18650 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18651 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18657 $as_echo "$gl_cv_func_dup2_works" >&6; }
18658 case "$gl_cv_func_dup2_works" in
18662 for ac_func
in setdtablesize
18664 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
18665 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
18666 cat >>confdefs.h
<<_ACEOF
18667 #define HAVE_SETDTABLESIZE 1
18679 if test $ac_cv_func_fchdir = no
; then
18683 if test $HAVE_FCHDIR = 0; then
18688 if test $REPLACE_DUP2 = 1; then
18697 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
18712 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
18728 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18735 $as_echo_n "checking for error_at_line... " >&6; }
18736 if ${ac_cv_lib_error_at_line+:} false
; then :
18737 $as_echo_n "(cached) " >&6
18739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18740 /* end confdefs.h. */
18745 error_at_line (0, 0, "", 0, "an error occurred");
18750 if ac_fn_c_try_link
"$LINENO"; then :
18751 ac_cv_lib_error_at_line
=yes
18753 ac_cv_lib_error_at_line
=no
18755 rm -f core conftest.err conftest.
$ac_objext \
18756 conftest
$ac_exeext conftest.
$ac_ext
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18759 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18761 if test $ac_cv_lib_error_at_line = no
; then
18770 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
18784 if test $ac_cv_have_decl_fchdir = no
; then
18789 if test $HAVE_FCHDIR = 0; then
18798 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
18802 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
18805 $as_echo_n "checking whether open can visit directories... " >&6; }
18806 if ${gl_cv_func_open_directory_works+:} false
; then :
18807 $as_echo_n "(cached) " >&6
18809 if test "$cross_compiling" = yes; then :
18811 # Guess yes on Linux systems.
18812 linux-
* | linux
) gl_cv_func_open_directory_works
="guessing yes" ;;
18813 # Guess yes on glibc systems.
18814 *-gnu* | gnu
*) gl_cv_func_open_directory_works
="guessing yes" ;;
18815 # Guess no on native Windows.
18816 mingw
*) gl_cv_func_open_directory_works
="guessing no" ;;
18817 # If we don't know, obey --enable-cross-guesses.
18818 *) gl_cv_func_open_directory_works
="$gl_cross_guess_normal" ;;
18822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h. */
18832 return open(".", O_RDONLY) < 0;
18837 if ac_fn_c_try_run
"$LINENO"; then :
18838 gl_cv_func_open_directory_works
=yes
18840 gl_cv_func_open_directory_works
=no
18842 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18843 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
18848 $as_echo "$gl_cv_func_open_directory_works" >&6; }
18849 case "$gl_cv_func_open_directory_works" in
18853 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
18870 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
18879 if test $ac_cv_func_fcntl = no
; then
18883 if test $ac_cv_func_fcntl = no
; then
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
18891 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
18892 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
18893 $as_echo_n "(cached) " >&6
18895 if test "$cross_compiling" = yes; then :
18897 aix
* | cygwin
* | haiku
*)
18898 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
18899 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
18902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18906 #include <limits.h>
18907 #include <sys/resource.h>
18908 #include <unistd.h>
18913 #ifndef RLIM_SAVED_CUR
18914 # define RLIM_SAVED_CUR RLIM_INFINITY
18916 #ifndef RLIM_SAVED_MAX
18917 # define RLIM_SAVED_MAX RLIM_INFINITY
18924 int bad_fd = INT_MAX;
18925 struct rlimit rlim;
18926 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18927 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18928 && rlim.rlim_cur != RLIM_INFINITY
18929 && rlim.rlim_cur != RLIM_SAVED_MAX
18930 && rlim.rlim_cur != RLIM_SAVED_CUR)
18931 bad_fd = rlim.rlim_cur;
18932 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
18933 if (errno != EINVAL) result |= 2;
18934 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
18935 if (errno != EINVAL) result |= 8;
18936 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
18939 fd = open (".", O_RDONLY);
18942 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
18952 if ac_fn_c_try_run
"$LINENO"; then :
18953 gl_cv_func_fcntl_f_dupfd_works
=yes
18955 gl_cv_func_fcntl_f_dupfd_works
=no
18957 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18958 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
18963 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
18964 case $gl_cv_func_fcntl_f_dupfd_works in
18969 if test $ac_cv_func_fcntl = no
; then
18976 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
18981 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
18982 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
18983 $as_echo_n "(cached) " >&6
18985 if test "$cross_compiling" = yes; then :
18987 # Guess no on NetBSD.
18988 netbsd
*) gl_cv_func_fcntl_f_dupfd_cloexec
="guessing no" ;;
18989 *) gl_cv_func_fcntl_f_dupfd_cloexec
="$gl_cross_guess_normal" ;;
18993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18994 /* end confdefs.h. */
18996 #include <unistd.h>
18997 int main (int argc, char *argv[])
19000 /* parent process */
19002 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
19004 return execl ("./conftest", "./conftest", "child", NULL);
19007 /* child process */
19008 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
19013 if ac_fn_c_try_run
"$LINENO"; then :
19014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19018 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
19019 it to support the semantics on older kernels that failed with EINVAL. */
19031 if ac_fn_c_try_compile
"$LINENO"; then :
19032 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
19034 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
19036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19039 gl_cv_func_fcntl_f_dupfd_cloexec
=no
19041 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19042 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
19048 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
19049 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
19054 if test $ac_cv_func_fcntl = no
; then
19067 if test $ac_cv_func_fchdir = no
; then
19071 if test $HAVE_FCHDIR = 0; then
19075 if test $ac_cv_func_fcntl = no
; then
19084 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
19093 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
19107 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
19122 if test $gl_cv_have_include_next = yes; then
19123 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
19126 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
19127 if ${gl_cv_next_fcntl_h+:} false
; then :
19128 $as_echo_n "(cached) " >&6
19133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19138 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19139 *) gl_absname_cpp
="$ac_cpp" ;;
19144 gl_dirsep_regex
='[/\\]'
19147 gl_dirsep_regex
='\/'
19150 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19151 gl_header_literal_regex
=`echo 'fcntl.h' \
19152 | sed -e "$gl_make_literal_regex_sed"`
19153 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19154 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19160 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19161 sed -n "$gl_absolute_header_sed"`
19163 gl_header
=$gl_cv_absolute_fcntl_h
19164 gl_cv_next_fcntl_h
='"'$gl_header'"'
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
19169 $as_echo "$gl_cv_next_fcntl_h" >&6; }
19171 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
19173 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19174 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19175 gl_next_as_first_directive
='<'fcntl.h
'>'
19177 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19178 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
19180 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
19196 cat >>confdefs.h
<<_ACEOF
19197 #define GNULIB_FD_SAFER_FLAG 1
19206 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
19207 #include <dirent.h>
19210 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
19216 cat >>confdefs.h
<<_ACEOF
19217 #define HAVE_DECL_FDOPENDIR $ac_have_decl
19219 if test $ac_have_decl = 1; then :
19222 HAVE_DECL_FDOPENDIR
=0
19226 if test $ac_cv_func_fdopendir = no
; then
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
19230 $as_echo_n "checking whether fdopendir works... " >&6; }
19231 if ${gl_cv_func_fdopendir_works+:} false
; then :
19232 $as_echo_n "(cached) " >&6
19234 if test "$cross_compiling" = yes; then :
19236 # Guess yes on glibc systems.
19237 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
19238 # Guess yes on musl systems.
19239 *-musl*) gl_cv_func_fdopendir_works
="guessing yes" ;;
19240 # If we don't know, obey --enable-cross-guesses.
19241 *) gl_cv_func_fdopendir_works
="$gl_cross_guess_normal" ;;
19245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19246 /* end confdefs.h. */
19248 #include <dirent.h>
19250 #include <unistd.h>
19255 #if !HAVE_DECL_FDOPENDIR
19257 # ifdef __cplusplus
19260 DIR *fdopendir (int);
19267 int fd = open ("conftest.c", O_RDONLY);
19268 if (fd < 0) result |= 1;
19269 if (fdopendir (fd)) result |= 2;
19270 if (close (fd)) result |= 4;
19277 if ac_fn_c_try_run
"$LINENO"; then :
19278 gl_cv_func_fdopendir_works
=yes
19280 gl_cv_func_fdopendir_works
=no
19282 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19283 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
19288 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
19289 case "$gl_cv_func_fdopendir_works" in
19292 REPLACE_FDOPENDIR
=1
19297 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
19306 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
19320 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
19326 cat >>confdefs.h
<<_ACEOF
19327 #define GNULIB_FDOPENDIR 1
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
19336 $as_echo_n "checking for flexible array member... " >&6; }
19337 if ${ac_cv_c_flexmember+:} false
; then :
19338 $as_echo_n "(cached) " >&6
19340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19342 #include <stdlib.h>
19344 #include <stddef.h>
19345 struct m { struct m *next, **list; char name[]; };
19346 struct s { struct s *p; struct m *m; int n; double d[]; };
19350 int m = getchar ();
19351 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
19352 nbytes += sizeof (struct s) - 1;
19353 nbytes -= nbytes % sizeof (struct s);
19354 struct s *p = malloc (nbytes);
19358 return p->d != (double *) NULL;
19363 if ac_fn_c_try_compile
"$LINENO"; then :
19364 ac_cv_c_flexmember
=yes
19366 ac_cv_c_flexmember
=no
19368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
19371 $as_echo "$ac_cv_c_flexmember" >&6; }
19372 if test $ac_cv_c_flexmember = yes; then
19374 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
19377 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
19385 REPLACE_FLOAT_LDBL
=0
19387 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
19390 freebsd
* | dragonfly
*)
19391 case "$host_cpu" in
19396 # On x86_64 systems, the C compiler may still be generating
19398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h. */
19400 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
19407 if ac_fn_c_try_compile
"$LINENO"; then :
19412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19417 case "$host_cpu" in
19425 aix
* | freebsd
* | dragonfly
* | linux
*)
19426 if test -n "$FLOAT_H"; then
19427 REPLACE_FLOAT_LDBL
=1
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
19434 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
19435 if ${gl_cv_func_itold_works+:} false
; then :
19436 $as_echo_n "(cached) " >&6
19439 if test "$cross_compiling" = yes; then :
19442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19443 /* end confdefs.h. */
19444 #if defined __LP64__ || defined __arch64__
19451 if ac_fn_c_try_compile
"$LINENO"; then :
19452 gl_cv_func_itold_works
="guessing no"
19454 gl_cv_func_itold_works
="guessing yes"
19456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19458 # Guess yes on native Windows.
19459 mingw
*) gl_cv_func_itold_works
="guessing yes" ;;
19460 *) gl_cv_func_itold_works
="guessing yes" ;;
19464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19465 /* end confdefs.h. */
19468 volatile long double ld;
19477 if ac_fn_c_try_run
"$LINENO"; then :
19478 gl_cv_func_itold_works
=yes
19480 gl_cv_func_itold_works
=no
19482 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19483 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
19489 $as_echo "$gl_cv_func_itold_works" >&6; }
19490 case "$gl_cv_func_itold_works" in
19497 if test -n "$FLOAT_H"; then
19506 if test $gl_cv_have_include_next = yes; then
19507 gl_cv_next_float_h
='<'float.h
'>'
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
19510 $as_echo_n "checking absolute name of <float.h>... " >&6; }
19511 if ${gl_cv_next_float_h+:} false
; then :
19512 $as_echo_n "(cached) " >&6
19517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19518 /* end confdefs.h. */
19522 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19523 *) gl_absname_cpp
="$ac_cpp" ;;
19528 gl_dirsep_regex
='[/\\]'
19531 gl_dirsep_regex
='\/'
19534 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19535 gl_header_literal_regex
=`echo 'float.h' \
19536 | sed -e "$gl_make_literal_regex_sed"`
19537 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19538 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19544 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19545 sed -n "$gl_absolute_header_sed"`
19547 gl_header
=$gl_cv_absolute_float_h
19548 gl_cv_next_float_h
='"'$gl_header'"'
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
19553 $as_echo "$gl_cv_next_float_h" >&6; }
19555 NEXT_FLOAT_H
=$gl_cv_next_float_h
19557 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19558 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19559 gl_next_as_first_directive
='<'float.h
'>'
19561 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19562 gl_next_as_first_directive
=$gl_cv_next_float_h
19564 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
19571 if test -n "$FLOAT_H"; then
19572 GL_GENERATE_FLOAT_H_TRUE
=
19573 GL_GENERATE_FLOAT_H_FALSE
='#'
19575 GL_GENERATE_FLOAT_H_TRUE
='#'
19576 GL_GENERATE_FLOAT_H_FALSE
=
19581 if test $REPLACE_FLOAT_LDBL = 1; then
19590 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
19593 if test $REPLACE_ITOLD = 1; then
19602 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
19609 gl_fnmatch_required_lowercase
=`
19610 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
19613 if test $ac_cv_func_fnmatch = no
; then
19616 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
19618 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
19619 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
19620 $as_echo_n "(cached) " >&6
19622 if test $gl_fnmatch_required = GNU
; then
19623 gl_fnmatch_gnu_start
=
19624 gl_fnmatch_gnu_end
=
19626 gl_fnmatch_gnu_start
='#if 0'
19627 gl_fnmatch_gnu_end
='#endif'
19629 if test "$cross_compiling" = yes; then :
19631 # Guess yes on musl systems.
19632 *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
19633 # Guess no otherwise, even on glibc systems.
19634 *) eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
19638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h. */
19640 #include <fnmatch.h>
19642 y (char const *pattern, char const *string, int flags)
19644 return fnmatch (pattern, string, flags) == 0;
19647 n (char const *pattern, char const *string, int flags)
19649 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19655 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19656 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19657 static char const A_1[] = { 'A' - 1, 0 };
19658 static char const A01[] = { 'A' + 1, 0 };
19659 static char const a_1[] = { 'a' - 1, 0 };
19660 static char const a01[] = { 'a' + 1, 0 };
19661 static char const bs_1[] = { '\\\\' - 1, 0 };
19662 static char const bs01[] = { '\\\\' + 1, 0 };
19664 if (!n ("a*", "", 0))
19666 if (!y ("a*", "abc", 0))
19668 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
19670 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
19672 if (!y ("a\\\\bc", "abc", 0))
19674 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
19676 if (!y ("*x", ".x", 0))
19678 if (!n ("*x", ".x", FNM_PERIOD))
19680 if (!y (Apat, "\\\\", 0))
19682 if (!y (Apat, "A", 0))
19684 if (!y (apat, "\\\\", 0))
19686 if (!y (apat, "a", 0))
19688 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
19690 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
19692 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
19694 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
19696 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
19698 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
19700 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
19702 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
19704 $gl_fnmatch_gnu_start
19705 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
19707 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
19709 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
19711 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
19713 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
19715 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
19717 $gl_fnmatch_gnu_end
19724 if ac_fn_c_try_run
"$LINENO"; then :
19725 eval "$gl_fnmatch_cache_var=yes"
19727 eval "$gl_fnmatch_cache_var=no"
19729 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19730 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19735 eval ac_res
=\$
$gl_fnmatch_cache_var
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19737 $as_echo "$ac_res" >&6; }
19738 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
19739 case "$gl_fnmatch_result" in
19741 *) REPLACE_FNMATCH
=1 ;;
19744 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19747 FNMATCH_H
='fnmatch.h'
19748 if test -n "$FNMATCH_H"; then
19749 GL_GENERATE_FNMATCH_H_TRUE
=
19750 GL_GENERATE_FNMATCH_H_FALSE
='#'
19752 GL_GENERATE_FNMATCH_H_TRUE
='#'
19753 GL_GENERATE_FNMATCH_H_FALSE
=
19759 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19768 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19786 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
19795 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19804 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19813 cat >>confdefs.h
<<_ACEOF
19814 #define GNULIB_FNMATCH_GNU 1
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
19823 $as_echo_n "checking whether free is known to preserve errno... " >&6; }
19824 if ${gl_cv_func_free_preserves_errno+:} false
; then :
19825 $as_echo_n "(cached) " >&6
19827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19828 /* end confdefs.h. */
19829 #include <stdlib.h>
19834 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
19835 #elif defined __OpenBSD__
19836 #elif defined __sun
19838 #error "'free' is not known to preserve errno"
19845 if ac_fn_c_try_compile
"$LINENO"; then :
19846 gl_cv_func_free_preserves_errno
=yes
19848 gl_cv_func_free_preserves_errno
=no
19850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
19854 $as_echo "$gl_cv_func_free_preserves_errno" >&6; }
19856 case $gl_cv_func_free_preserves_errno in
19858 *) REPLACE_FREE
=1 ;;
19861 if test $REPLACE_FREE = 1; then
19870 gl_LIBOBJS
="$gl_LIBOBJS free.$ac_objext"
19879 GNULIB_FREE_POSIX
=1
19885 $as_echo "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
19890 if test $gl_func_frexp != yes; then
19899 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
19913 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
19918 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19927 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
19941 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
19959 if test $ac_cv_func_fchdir = no
; then
19963 if test $HAVE_FCHDIR = 0; then
19964 case "$gl_cv_func_open_directory_works" in
19973 if test $REPLACE_FSTAT = 1; then
19982 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
19994 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
20015 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
20026 if test $ac_cv_func_fstatat = no
; then
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
20030 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
20031 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
20032 $as_echo_n "(cached) " >&6
20034 if test "$cross_compiling" = yes; then :
20036 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
20037 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
20041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20042 /* end confdefs.h. */
20045 #include <sys/stat.h>
20050 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
20054 if ac_fn_c_try_run
"$LINENO"; then :
20055 gl_cv_func_fstatat_zero_flag
=yes
20057 gl_cv_func_fstatat_zero_flag
=no
20059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
20066 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
20068 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
20070 *) REPLACE_FSTATAT
=1 ;;
20075 REPLACE_FSTATAT
=1 ;;
20078 case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
20081 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
20087 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
20096 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
20110 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
20122 gl_cv_func_getcwd_path_max
=yes
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
20131 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
20132 if ${gl_cv_func_getcwd_path_max+:} false
; then :
20133 $as_echo_n "(cached) " >&6
20135 # Arrange for deletion of the temporary directory this test creates.
20136 ac_clean_files
="$ac_clean_files confdir3"
20137 if test "$cross_compiling" = yes; then :
20138 # Cross-compilation guesses:
20140 aix
*) # On AIX, it has the AIX bug.
20141 gl_cv_func_getcwd_path_max
='guessing no, it has the AIX bug' ;;
20142 gnu
*) # On Hurd, it is 'yes'.
20143 gl_cv_func_getcwd_path_max
='guessing yes' ;;
20144 linux
* | kfreebsd
*)
20145 # On older Linux+glibc it's 'no, but it is partly working',
20146 # on newer Linux+glibc it's 'yes'.
20147 # On Linux+musl libc, it's 'no, but it is partly working'.
20148 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
20149 gl_cv_func_getcwd_path_max
='guessing no, but it is partly working' ;;
20150 *) # If we don't know, obey --enable-cross-guesses.
20151 gl_cv_func_getcwd_path_max
="$gl_cross_guess_normal" ;;
20155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20156 /* end confdefs.h. */
20159 #include <stdlib.h>
20161 # include <unistd.h>
20163 # include <direct.h>
20165 #include <string.h>
20166 #include <limits.h>
20167 #include <sys/stat.h>
20168 #include <sys/types.h>
20172 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
20174 # include <unistd.h>
20176 #include <limits.h>
20177 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
20178 # include <sys/param.h>
20180 #if !defined PATH_MAX && defined MAXPATHLEN
20181 # define PATH_MAX MAXPATHLEN
20185 # define PATH_MAX 1024
20187 #if defined _WIN32 && ! defined __CYGWIN__
20189 # define PATH_MAX 260
20194 # define AT_FDCWD 0
20196 #ifdef ENAMETOOLONG
20197 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
20199 # define is_ENAMETOOLONG(x) 0
20202 /* Use the getcwd function, not any macro. */
20211 # define S_IRWXU 0700
20214 /* The length of this name must be 8. */
20215 #define DIR_NAME "confdir3"
20216 #define DIR_NAME_LEN 8
20217 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
20219 /* The length of "../". */
20220 #define DOTDOTSLASH_LEN 3
20222 /* Leftover bytes in the buffer, to work around library or OS bugs. */
20223 #define BUF_SLOP 20
20229 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
20230 at least not on a local file system. And if we were to start worrying
20231 about remote file systems, we'd have to enable the wrapper function
20232 all of the time, just to be safe. That's not worth the cost. */
20234 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
20235 - DIR_NAME_SIZE - BUF_SLOP) \
20237 /* FIXME: Assuming there's a system for which this is true,
20238 this should be done in a compile test. */
20241 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
20242 + DIR_NAME_SIZE + BUF_SLOP];
20243 char *cwd = getcwd (buf, PATH_MAX);
20244 size_t initial_cwd_len;
20247 size_t n_chdirs = 0;
20252 cwd_len = initial_cwd_len = strlen (cwd);
20256 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
20259 cwd_len += DIR_NAME_SIZE;
20260 /* If mkdir or chdir fails, it could be that this system cannot create
20261 any file with an absolute name longer than PATH_MAX, such as cygwin.
20262 If so, leave fail as 0, because the current working directory can't
20263 be too long for getcwd if it can't even be created. On Linux with
20264 the 9p file system, mkdir fails with error EINVAL when cwd_len gets
20265 too long; ignore this failure because the getcwd() system call
20266 produces good results whereas the gnulib substitute calls getdents64
20267 which fails with error EPROTO.
20268 For other errors, be pessimistic and consider that as a failure,
20270 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
20272 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20274 if (! (errno == EINVAL))
20280 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
20284 c = getcwd (buf, PATH_MAX);
20285 if (!c && errno == ENOENT)
20295 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20301 /* Our replacement needs to be able to stat() long ../../paths,
20302 so generate a path larger than PATH_MAX to check,
20303 avoiding the replacement if we can't stat(). */
20304 c = getcwd (buf, cwd_len + 1);
20305 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
20312 if (dotdot_max <= cwd_len - initial_cwd_len)
20314 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
20316 c = getcwd (buf, cwd_len + 1);
20319 if (! (errno == ERANGE || errno == ENOENT
20320 || is_ENAMETOOLONG (errno)))
20325 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
20333 if (c && strlen (c) != cwd_len)
20341 /* Leaving behind such a deep directory is not polite.
20342 So clean up here, right away, even though the driving
20343 shell script would also clean up. */
20347 /* Try rmdir first, in case the chdir failed. */
20349 for (i = 0; i <= n_chdirs; i++)
20351 if (chdir ("..") < 0)
20353 if (rmdir (DIR_NAME) != 0)
20363 if ac_fn_c_try_run
"$LINENO"; then :
20364 gl_cv_func_getcwd_path_max
=yes
20367 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
20368 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
20369 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
20370 *) gl_cv_func_getcwd_path_max
=no
;;
20373 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20374 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
20380 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
20382 case "$gl_cv_func_getcwd_null" in
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
20391 $as_echo_n "checking for getpagesize... " >&6; }
20392 if ${gl_cv_func_getpagesize+:} false
; then :
20393 $as_echo_n "(cached) " >&6
20395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20396 /* end confdefs.h. */
20397 #include <unistd.h>
20401 return getpagesize();
20407 if ac_fn_c_try_link
"$LINENO"; then :
20408 gl_cv_func_getpagesize
=yes
20410 gl_cv_func_getpagesize
=no
20412 rm -f core conftest.err conftest.
$ac_objext \
20413 conftest
$ac_exeext conftest.
$ac_ext
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
20417 $as_echo "$gl_cv_func_getpagesize" >&6; }
20419 if test $gl_cv_func_getpagesize = yes; then
20421 cat >>confdefs.h
<<_ACEOF
20422 #define HAVE_GETPAGESIZE 1
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd succeeds when 4k < cwd_length < 16k" >&5
20428 $as_echo_n "checking whether getcwd succeeds when 4k < cwd_length < 16k... " >&6; }
20429 if ${gl_cv_func_getcwd_succeeds_beyond_4k+:} false
; then :
20430 $as_echo_n "(cached) " >&6
20432 # Remove any remnants of a previous test.
20433 rm -rf confdir-14B---
20434 # Arrange for deletion of the temporary directory this test creates.
20435 ac_clean_files
="$ac_clean_files confdir-14B---"
20436 if test "$cross_compiling" = yes; then :
20438 # Guess yes on musl systems.
20439 *-musl*) gl_cv_func_getcwd_succeeds_beyond_4k
="guessing yes" ;;
20440 # Guess no otherwise, even on glibc systems.
20441 *) gl_cv_func_getcwd_succeeds_beyond_4k
="guessing no"
20445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20446 /* end confdefs.h. */
20449 #include <stdlib.h>
20451 # include <unistd.h>
20452 #else /* on Windows with MSVC */
20453 # include <direct.h>
20455 #include <string.h>
20456 #include <sys/stat.h>
20459 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
20461 # include <unistd.h>
20463 #include <limits.h>
20464 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
20465 # include <sys/param.h>
20467 #if !defined PATH_MAX && defined MAXPATHLEN
20468 # define PATH_MAX MAXPATHLEN
20472 # define PATH_MAX 1024
20474 #if defined _WIN32 && ! defined __CYGWIN__
20476 # define PATH_MAX 260
20485 # define S_IRWXU 0700
20488 /* FIXME: skip the run-test altogether on systems without getpagesize. */
20489 #if ! HAVE_GETPAGESIZE
20490 # define getpagesize() 0
20493 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
20494 the 16kB pagesize on ia64 linux. Those conditions make the code below
20495 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
20496 #define TARGET_LEN (5 * 1024)
20502 size_t initial_cwd_len;
20505 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
20506 this relatively expensive and invasive test if that's not true. */
20508 int bug_possible = PATH_MAX < getpagesize ();
20510 int bug_possible = 0;
20512 if (! bug_possible)
20515 cwd = getcwd (NULL, 0);
20519 initial_cwd_len = strlen (cwd);
20524 static char const dir_name[] = "confdir-14B---";
20525 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
20526 / sizeof dir_name);
20528 for (d = 0; d < desired_depth; d++)
20530 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
20532 if (! (errno == ERANGE || errno == ENAMETOOLONG
20533 || errno == ENOENT))
20534 fail = 3; /* Unable to construct deep hierarchy. */
20539 /* If libc has the bug in question, this invocation of getcwd
20540 results in a failed assertion. */
20541 cwd = getcwd (NULL, 0);
20543 fail = 4; /* getcwd didn't assert, but it failed for a long name
20544 where the answer could have been learned. */
20547 /* Call rmdir first, in case the above chdir failed. */
20551 if (chdir ("..") < 0)
20564 if ac_fn_c_try_run
"$LINENO"; then :
20565 gl_cv_func_getcwd_succeeds_beyond_4k
=yes
20568 if test $ret -ge 128 ||
test $ret = 4; then
20569 gl_cv_func_getcwd_succeeds_beyond_4k
=no
20571 gl_cv_func_getcwd_succeeds_beyond_4k
=yes
20575 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20576 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_succeeds_beyond_4k" >&5
20582 $as_echo "$gl_cv_func_getcwd_succeeds_beyond_4k" >&6; }
20583 case "$gl_cv_func_getcwd_succeeds_beyond_4k" in
20596 case "$gl_cv_func_getcwd_path_max" in
20597 *"no" |
*"no, it has the AIX bug") ;;
20600 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
20604 case "$gl_cv_func_getcwd_path_max" in
20605 *"no, but it is partly working")
20607 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
20610 *"yes, but with shorter paths")
20612 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
20617 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
20618 ||
test $gl_cv_func_getcwd_posix_signature != yes \
20619 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
20620 ||
test $gl_abort_bug = yes; then
20624 if test $REPLACE_GETCWD = 1; then
20633 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
20643 cat >>confdefs.h
<<_ACEOF
20644 #define GNULIB_GETCWD 1
20659 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20668 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
20675 if test $REPLACE_GETCWD = 1; then
20684 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
20698 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20707 if test $ac_cv_func_getdtablesize = yes &&
20708 test $ac_cv_have_decl_getdtablesize = yes; then
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
20710 $as_echo_n "checking whether getdtablesize works... " >&6; }
20711 if ${gl_cv_func_getdtablesize_works+:} false
; then :
20712 $as_echo_n "(cached) " >&6
20715 vms
*) gl_cv_func_getdtablesize_works
="no (limitation)" ;;
20717 if test "$cross_compiling" = yes; then :
20719 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
20720 gl_cv_func_getdtablesize_works
="guessing no" ;;
20721 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
20725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20726 /* end confdefs.h. */
20728 #include <unistd.h>
20737 int size = getdtablesize();
20738 if (dup2 (0, getdtablesize()) != -1)
20740 if (size != getdtablesize())
20747 if ac_fn_c_try_run
"$LINENO"; then :
20748 gl_cv_func_getdtablesize_works
=yes
20750 gl_cv_func_getdtablesize_works
=no
20752 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20753 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
20761 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
20762 case "$gl_cv_func_getdtablesize_works" in
20763 *yes |
"no (limitation)") ;;
20764 *) REPLACE_GETDTABLESIZE
=1 ;;
20767 HAVE_GETDTABLESIZE
=0
20770 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
20779 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
20788 GNULIB_GETDTABLESIZE
=1
20794 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
20804 if test $ac_cv_have_decl_getlogin_r = no
; then
20805 HAVE_DECL_GETLOGIN_R
=0
20809 if test $ac_cv_func_getlogin_r = no
; then
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
20815 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
20816 if ${gl_cv_func_getlogin_r_works+:} false
; then :
20817 $as_echo_n "(cached) " >&6
20821 # Guess no on Mac OS X, OSF/1.
20822 darwin
* | osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
20823 # Guess yes otherwise.
20824 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
20826 if test "$cross_compiling" = yes; then :
20829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20830 /* end confdefs.h. */
20832 #include <stddef.h>
20833 #include <string.h>
20834 #include <unistd.h>
20835 #if !HAVE_DECL_GETLOGIN_R
20837 # ifdef __cplusplus
20840 int getlogin_r (char *, size_t);
20848 if (getlogin_r (buf, 0) == 0)
20850 if (getlogin_r (buf, 1) == 0)
20852 if (getlogin_r (buf, 100) == 0)
20854 size_t n = strlen (buf);
20855 if (getlogin_r (buf, n) == 0)
20861 if ac_fn_c_try_run
"$LINENO"; then :
20862 gl_cv_func_getlogin_r_works
=yes
20864 gl_cv_func_getlogin_r_works
=no
20866 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20867 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
20873 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
20874 case "$gl_cv_func_getlogin_r_works" in
20876 *) REPLACE_GETLOGIN_R
=1 ;;
20880 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
20889 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
20900 GNULIB_GETLOGIN_R
=1
20906 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
20915 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20917 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
20923 cat >>confdefs.h
<<_ACEOF
20924 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20926 if test $ac_have_decl = 1; then :
20930 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20932 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
20938 cat >>confdefs.h
<<_ACEOF
20939 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20941 if test $ac_have_decl = 1; then :
20945 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
20947 if test "x$ac_cv_have_decl___argv" = xyes
; then :
20953 cat >>confdefs.h
<<_ACEOF
20954 #define HAVE_DECL___ARGV $ac_have_decl
20956 if test $ac_have_decl = 1; then :
20961 # Incur the cost of this test only if none of the above worked.
20962 if test $ac_found = 0; then
20963 # On OpenBSD 5.1, using the global __progname variable appears to be
20964 # the only way to implement getprogname.
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
20966 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
20967 if ${gl_cv_var___progname+:} false
; then :
20968 $as_echo_n "(cached) " >&6
20971 gl_cv_var___progname
=
20972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20973 /* end confdefs.h. */
20974 extern char *__progname;
20978 return *__progname;
20984 if ac_fn_c_try_link
"$LINENO"; then :
20985 gl_cv_var___progname
=yes
20988 rm -f core conftest.err conftest.
$ac_objext \
20989 conftest
$ac_exeext conftest.
$ac_ext
20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
20994 $as_echo "$gl_cv_var___progname" >&6; }
20995 if test "$gl_cv_var___progname" = yes; then
20997 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
21006 if test "$ac_cv_func_getrandom" != yes; then
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
21010 $as_echo_n "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
21011 if ${gl_cv_func_getrandom_ok+:} false
; then :
21012 $as_echo_n "(cached) " >&6
21014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21015 /* end confdefs.h. */
21016 /* Additional includes are needed before <sys/random.h> on uClibc
21018 #include <sys/types.h>
21019 #include <stdlib.h>
21020 #include <sys/random.h>
21021 ssize_t getrandom (void *, size_t, unsigned int);
21032 if ac_fn_c_try_compile
"$LINENO"; then :
21033 gl_cv_func_getrandom_ok
=yes
21035 gl_cv_func_getrandom_ok
=no
21037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
21041 $as_echo "$gl_cv_func_getrandom_ok" >&6; }
21042 if test $gl_cv_func_getrandom_ok = no
; then
21043 REPLACE_GETRANDOM
=1
21049 for ac_header
in bcrypt.h
21051 ac_fn_c_check_header_compile
"$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
21054 if test "x$ac_cv_header_bcrypt_h" = xyes
; then :
21055 cat >>confdefs.h
<<_ACEOF
21056 #define HAVE_BCRYPT_H 1
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
21064 $as_echo_n "checking whether the bcrypt library is guaranteed to be present... " >&6; }
21065 if ${gl_cv_lib_assume_bcrypt+:} false
; then :
21066 $as_echo_n "(cached) " >&6
21068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21069 /* end confdefs.h. */
21070 #include <windows.h>
21074 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
21083 if ac_fn_c_try_compile
"$LINENO"; then :
21084 gl_cv_lib_assume_bcrypt
=yes
21086 gl_cv_lib_assume_bcrypt
=no
21088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
21092 $as_echo "$gl_cv_lib_assume_bcrypt" >&6; }
21093 if test $gl_cv_lib_assume_bcrypt = yes; then
21095 $as_echo "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
21097 LIB_GETRANDOM
='-lbcrypt'
21099 LIB_GETRANDOM
='-ladvapi32'
21107 if test $HAVE_GETRANDOM = 0 ||
test $REPLACE_GETRANDOM = 1; then
21116 gl_LIBOBJS
="$gl_LIBOBJS getrandom.$ac_objext"
21130 $as_echo "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
21143 gl_gettimeofday_timezone
=void
21144 if test $ac_cv_func_gettimeofday != yes; then
21145 HAVE_GETTIMEOFDAY
=0
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21148 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21149 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
21150 $as_echo_n "(cached) " >&6
21152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21154 #include <sys/time.h>
21156 int gettimeofday (struct timeval *restrict, void *restrict);
21161 /* glibc uses struct timezone * rather than the POSIX void *
21162 if _GNU_SOURCE is defined. However, since the only portable
21163 use of gettimeofday uses NULL as the second parameter, and
21164 since the glibc definition is actually more typesafe, it is
21165 not worth wrapping this to get a compliant signature. */
21166 int (*f) (struct timeval *restrict, void *restrict)
21169 return !(x | c.tv_sec | c.tv_usec);
21175 if ac_fn_c_try_compile
"$LINENO"; then :
21176 gl_cv_func_gettimeofday_posix_signature
=yes
21178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21179 /* end confdefs.h. */
21180 #include <sys/time.h>
21181 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21191 if ac_fn_c_try_compile
"$LINENO"; then :
21192 gl_cv_func_gettimeofday_posix_signature
=almost
21194 gl_cv_func_gettimeofday_posix_signature
=no
21196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21201 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21202 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21203 gl_gettimeofday_timezone
='struct timezone'
21204 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21205 REPLACE_GETTIMEOFDAY
=1
21207 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21208 REPLACE_GETTIMEOFDAY
=1
21211 mingw
*) REPLACE_GETTIMEOFDAY
=1 ;;
21215 cat >>confdefs.h
<<_ACEOF
21216 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21220 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21229 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21238 GNULIB_GETTIMEOFDAY
=1
21244 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
21252 if test $ac_cv_func_glob = no
; then
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1 or 2" >&5
21257 $as_echo_n "checking for GNU glob interface version 1 or 2... " >&6; }
21258 if ${gl_cv_gnu_glob_interface_version_1_2+:} false
; then :
21259 $as_echo_n "(cached) " >&6
21261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21262 /* end confdefs.h. */
21263 #include <gnu-versions.h>
21264 char a[_GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2 ? 1 : -1];
21266 if ac_fn_c_try_compile
"$LINENO"; then :
21267 gl_cv_gnu_glob_interface_version_1_2
=yes
21269 gl_cv_gnu_glob_interface_version_1_2
=no
21271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1_2" >&5
21274 $as_echo "$gl_cv_gnu_glob_interface_version_1_2" >&6; }
21275 if test "$gl_cv_gnu_glob_interface_version_1_2" = "no"; then
21279 if test $REPLACE_GLOB = 0; then
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
21281 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
21282 if ${gl_cv_glob_lists_symlinks+:} false
; then :
21283 $as_echo_n "(cached) " >&6
21285 if test $cross_compiling != yes; then
21286 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
21287 gl_cv_glob_lists_symlinks
=maybe
21289 # If we can't make a symlink, then we cannot test this issue. Be
21290 # pessimistic about this.
21291 gl_cv_glob_lists_symlinks
=no
21293 if test $gl_cv_glob_lists_symlinks = maybe
; then
21294 if test "$cross_compiling" = yes; then :
21298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21299 /* end confdefs.h. */
21300 #include <stddef.h>
21306 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
21314 if ac_fn_c_try_run
"$LINENO"; then :
21315 gl_cv_glob_lists_symlinks
=yes
21317 gl_cv_glob_lists_symlinks
=no
21319 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21320 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21324 rm -f conf$$
-globtest
21326 gl_cv_glob_lists_symlinks
="$gl_cross_guess_normal"
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
21331 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
21332 case "$gl_cv_glob_lists_symlinks" in
21334 *) REPLACE_GLOB
=1 ;;
21340 if test $ac_cv_func_glob_pattern_p = no
; then
21341 HAVE_GLOB_PATTERN_P
=0
21343 if test $REPLACE_GLOB = 1; then
21344 REPLACE_GLOB_PATTERN_P
=1
21348 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
21352 if test -n "$GLOB_H"; then
21353 GL_GENERATE_GLOB_H_TRUE
=
21354 GL_GENERATE_GLOB_H_FALSE
='#'
21356 GL_GENERATE_GLOB_H_TRUE
='#'
21357 GL_GENERATE_GLOB_H_FALSE
=
21363 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
21372 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
21382 gl_LIBOBJS
="$gl_LIBOBJS globfree.$ac_objext"
21390 if test $HAVE_GLOB_PATTERN_P = 0 ||
test $REPLACE_GLOB_PATTERN_P = 1; then
21399 gl_LIBOBJS
="$gl_LIBOBJS glob_pattern_p.$ac_objext"
21413 $as_echo "#define GNULIB_TEST_GLOB 1" >>confdefs.h
21419 LIB_HARD_LOCALE
="$LIB_SETLOCALE_NULL"
21434 if test $ac_cv_header_sys_socket_h != yes; then
21435 for ac_header
in winsock2.h
21437 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21438 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
21439 cat >>confdefs.h
<<_ACEOF
21440 #define HAVE_WINSOCK2_H 1
21448 if test "$ac_cv_header_winsock2_h" = yes; then
21450 UNISTD_H_HAVE_WINSOCK2_H
=1
21451 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21457 if test $HAVE_WINSOCK2_H = 1; then
21458 REPLACE_INET_NTOP
=1
21459 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
21461 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
21467 cat >>confdefs.h
<<_ACEOF
21468 #define HAVE_DECL_INET_NTOP $ac_have_decl
21471 if test $ac_cv_have_decl_inet_ntop = yes; then
21472 INET_NTOP_LIB
="-lws2_32"
21474 HAVE_DECL_INET_NTOP
=0
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
21479 $as_echo_n "checking for library containing inet_ntop... " >&6; }
21480 if ${ac_cv_search_inet_ntop+:} false
; then :
21481 $as_echo_n "(cached) " >&6
21483 ac_func_search_save_LIBS
=$LIBS
21484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21487 /* Override any GCC internal prototype to avoid an error.
21488 Use char because int might match the return type of a GCC
21489 builtin and then its argument prototype would still apply. */
21497 return inet_ntop ();
21502 for ac_lib
in '' nsl resolv network
; do
21503 if test -z "$ac_lib"; then
21504 ac_res
="none required"
21507 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21509 if ac_fn_c_try_link
"$LINENO"; then :
21510 ac_cv_search_inet_ntop
=$ac_res
21512 rm -f core conftest.err conftest.
$ac_objext \
21514 if ${ac_cv_search_inet_ntop+:} false
; then :
21518 if ${ac_cv_search_inet_ntop+:} false
; then :
21521 ac_cv_search_inet_ntop
=no
21523 rm conftest.
$ac_ext
21524 LIBS
=$ac_func_search_save_LIBS
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
21527 $as_echo "$ac_cv_search_inet_ntop" >&6; }
21528 ac_res
=$ac_cv_search_inet_ntop
21529 if test "$ac_res" != no
; then :
21530 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21533 for ac_func
in inet_ntop
21535 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
21536 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
21537 cat >>confdefs.h
<<_ACEOF
21538 #define HAVE_INET_NTOP 1
21544 if test $ac_cv_func_inet_ntop = no
; then
21552 if test "$ac_cv_search_inet_ntop" != "no" \
21553 && test "$ac_cv_search_inet_ntop" != "none required"; then
21554 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
21558 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
21560 # include <netdb.h>
21564 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
21570 cat >>confdefs.h
<<_ACEOF
21571 #define HAVE_DECL_INET_NTOP $ac_have_decl
21574 if test $ac_cv_have_decl_inet_ntop = no
; then
21575 HAVE_DECL_INET_NTOP
=0
21580 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
21589 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
21609 if test -n "$STDINT_H"; then
21610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21611 /* end confdefs.h. */
21626 if ac_fn_c_try_compile
"$LINENO"; then :
21627 PRIPTR_PREFIX
='"l"'
21629 PRIPTR_PREFIX
='"ll"'
21631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21633 for glpfx
in '' l ll I64
; do
21635 '') gltype1
='int';;
21636 l
) gltype1
='long int';;
21637 ll
) gltype1
='long long int';;
21638 I64
) gltype1
='__int64';;
21640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21641 /* end confdefs.h. */
21642 #include <stdint.h>
21643 extern intptr_t foo;
21644 extern $gltype1 foo;
21653 if ac_fn_c_try_compile
"$LINENO"; then :
21654 PRIPTR_PREFIX
='"'$glpfx'"'
21656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21657 test -n "$PRIPTR_PREFIX" && break
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
21664 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
21665 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
21666 $as_echo_n "(cached) " >&6
21668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21669 /* end confdefs.h. */
21670 /* Work also in C++ mode. */
21671 #define __STDC_LIMIT_MACROS 1
21673 /* Work if build is not clean. */
21674 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21676 #include <limits.h>
21678 #include <stdint.h>
21681 #if defined INT32_MAX && defined INTMAX_MAX
21682 #define CONDITION (INT32_MAX < INTMAX_MAX)
21684 #define CONDITION (sizeof (int) < sizeof (long long int))
21686 int test[CONDITION ? 1 : -1];
21695 if ac_fn_c_try_compile
"$LINENO"; then :
21696 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
21698 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
21700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
21703 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
21704 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
21705 INT32_MAX_LT_INTMAX_MAX
=1;
21707 INT32_MAX_LT_INTMAX_MAX
=0;
21711 if test $APPLE_UNIVERSAL_BUILD = 0; then
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
21714 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
21715 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
21716 $as_echo_n "(cached) " >&6
21718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h. */
21720 /* Work also in C++ mode. */
21721 #define __STDC_LIMIT_MACROS 1
21723 /* Work if build is not clean. */
21724 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21726 #include <limits.h>
21728 #include <stdint.h>
21731 #if defined INT64_MAX
21732 #define CONDITION (INT64_MAX == LONG_MAX)
21734 #define CONDITION (sizeof (long long int) == sizeof (long int))
21736 int test[CONDITION ? 1 : -1];
21745 if ac_fn_c_try_compile
"$LINENO"; then :
21746 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
21748 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
21750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
21753 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
21754 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
21755 INT64_MAX_EQ_LONG_MAX
=1;
21757 INT64_MAX_EQ_LONG_MAX
=0;
21762 INT64_MAX_EQ_LONG_MAX
=-1
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
21766 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
21767 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
21768 $as_echo_n "(cached) " >&6
21770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21771 /* end confdefs.h. */
21772 /* Work also in C++ mode. */
21773 #define __STDC_LIMIT_MACROS 1
21775 /* Work if build is not clean. */
21776 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21778 #include <limits.h>
21780 #include <stdint.h>
21783 #if defined UINT32_MAX && defined UINTMAX_MAX
21784 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
21786 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
21788 int test[CONDITION ? 1 : -1];
21797 if ac_fn_c_try_compile
"$LINENO"; then :
21798 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
21800 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
21802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
21805 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
21806 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
21807 UINT32_MAX_LT_UINTMAX_MAX
=1;
21809 UINT32_MAX_LT_UINTMAX_MAX
=0;
21813 if test $APPLE_UNIVERSAL_BUILD = 0; then
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
21816 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
21817 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
21818 $as_echo_n "(cached) " >&6
21820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21821 /* end confdefs.h. */
21822 /* Work also in C++ mode. */
21823 #define __STDC_LIMIT_MACROS 1
21825 /* Work if build is not clean. */
21826 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21828 #include <limits.h>
21830 #include <stdint.h>
21833 #if defined UINT64_MAX
21834 #define CONDITION (UINT64_MAX == ULONG_MAX)
21836 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
21838 int test[CONDITION ? 1 : -1];
21847 if ac_fn_c_try_compile
"$LINENO"; then :
21848 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
21850 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
21852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
21855 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
21856 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
21857 UINT64_MAX_EQ_ULONG_MAX
=1;
21859 UINT64_MAX_EQ_ULONG_MAX
=0;
21864 UINT64_MAX_EQ_ULONG_MAX
=-1
21874 if test $ac_cv_func_isblank = no
; then
21878 if test $HAVE_ISBLANK = 0; then
21887 gl_LIBOBJS
="$gl_LIBOBJS isblank.$ac_objext"
21892 cat >>confdefs.h
<<_ACEOF
21893 #define GNULIB_ISBLANK 1
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
21910 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
21911 if ${gl_cv_func_isnand_no_libm+:} false
; then :
21912 $as_echo_n "(cached) " >&6
21915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21916 /* end confdefs.h. */
21918 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
21920 # define isnand(x) __builtin_isnan ((double)(x))
21923 # define isnand(x) isnan ((double)(x))
21934 if ac_fn_c_try_link
"$LINENO"; then :
21935 gl_cv_func_isnand_no_libm
=yes
21937 gl_cv_func_isnand_no_libm
=no
21939 rm -f core conftest.err conftest.
$ac_objext \
21940 conftest
$ac_exeext conftest.
$ac_ext
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
21944 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
21946 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
21947 if test $gl_cv_func_isnand_no_libm = yes; then
21949 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
21953 if test $gl_func_isnand_no_libm != yes; then
21962 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
21971 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
21972 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
21973 $as_echo_n "(cached) " >&6
21976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21977 /* end confdefs.h. */
21979 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
21981 # define isnanl(x) __builtin_isnan ((long double)(x))
21982 #elif defined isnan
21984 # define isnanl(x) isnan ((long double)(x))
21995 if ac_fn_c_try_link
"$LINENO"; then :
21996 gl_cv_func_isnanl_no_libm
=yes
21998 gl_cv_func_isnanl_no_libm
=no
22000 rm -f core conftest.err conftest.
$ac_objext \
22001 conftest
$ac_exeext conftest.
$ac_ext
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
22005 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
22007 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
22008 if test $gl_func_isnanl_no_libm = yes; then
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
22014 $as_echo_n "checking whether isnanl works... " >&6; }
22015 if ${gl_cv_func_isnanl_works+:} false
; then :
22016 $as_echo_n "(cached) " >&6
22019 if test "$cross_compiling" = yes; then :
22021 mingw
*) # Guess yes on mingw, no on MSVC.
22022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22023 /* end confdefs.h. */
22030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22031 $EGREP "Known" >/dev
/null
2>&1; then :
22032 gl_cv_func_isnanl_works
="guessing yes"
22034 gl_cv_func_isnanl_works
="guessing no"
22039 *) gl_cv_func_isnanl_works
="guessing yes" ;;
22043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22044 /* end confdefs.h. */
22047 #include <limits.h>
22049 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
22051 # define isnanl(x) __builtin_isnan ((long double)(x))
22052 #elif defined isnan
22054 # define isnanl(x) isnan ((long double)(x))
22057 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22058 typedef union { unsigned int word[NWORDS]; long double value; }
22059 memory_long_double;
22060 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
22061 runtime type conversion. */
22063 static long double NaNl ()
22066 return zero / zero;
22069 # define NaNl() (0.0L / 0.0L)
22075 if (!isnanl (NaNl ()))
22079 memory_long_double m;
22082 /* The isnanl function should be immune against changes in the sign bit and
22083 in the mantissa bits. The xor operation twiddles a bit that can only be
22084 a sign bit or a mantissa bit (since the exponent never extends to
22087 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
22088 for (i = 0; i < NWORDS; i++)
22090 if (!isnanl (m.value))
22094 #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
22095 /* Representation of an 80-bit 'long double' as an initializer for a sequence
22096 of 'unsigned int' words. */
22097 # ifdef WORDS_BIGENDIAN
22098 # define LDBL80_WORDS(exponent,manthi,mantlo) \
22099 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
22100 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
22101 (unsigned int) (mantlo) << 16 \
22104 # define LDBL80_WORDS(exponent,manthi,mantlo) \
22105 { mantlo, manthi, exponent }
22108 static memory_long_double x =
22109 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
22110 if (!isnanl (x.value))
22114 /* Signalling NaN. */
22115 static memory_long_double x =
22116 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
22117 if (!isnanl (x.value))
22120 /* isnanl should return something even for noncanonical values. */
22121 { /* Pseudo-NaN. */
22122 static memory_long_double x =
22123 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
22124 if (isnanl (x.value) && !isnanl (x.value))
22127 { /* Pseudo-Infinity. */
22128 static memory_long_double x =
22129 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
22130 if (isnanl (x.value) && !isnanl (x.value))
22133 { /* Pseudo-Zero. */
22134 static memory_long_double x =
22135 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
22136 if (isnanl (x.value) && !isnanl (x.value))
22139 { /* Unnormalized number. */
22140 static memory_long_double x =
22141 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
22142 if (isnanl (x.value) && !isnanl (x.value))
22145 { /* Pseudo-Denormal. */
22146 static memory_long_double x =
22147 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
22148 if (isnanl (x.value) && !isnanl (x.value))
22156 if ac_fn_c_try_run
"$LINENO"; then :
22157 gl_cv_func_isnanl_works
=yes
22159 gl_cv_func_isnanl_works
=no
22161 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22162 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
22168 $as_echo "$gl_cv_func_isnanl_works" >&6; }
22170 case "$gl_cv_func_isnanl_works" in
22172 *) gl_func_isnanl_no_libm
=no
;;
22175 if test $gl_func_isnanl_no_libm = yes; then
22177 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
22181 if test $gl_func_isnanl_no_libm != yes; then
22190 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
22196 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
22197 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
22198 $as_echo_n "(cached) " >&6
22201 if test "$cross_compiling" = yes; then :
22203 gl_cv_cc_long_double_expbit0
="unknown"
22205 mingw
*) # On native Windows (little-endian), we know the result
22206 # in two cases: mingw, MSVC.
22207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h. */
22215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22216 $EGREP "Known" >/dev
/null
2>&1; then :
22217 gl_cv_cc_long_double_expbit0
="word 2 bit 0"
22221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22222 /* end confdefs.h. */
22229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22230 $EGREP "Known" >/dev
/null
2>&1; then :
22231 gl_cv_cc_long_double_expbit0
="word 1 bit 20"
22239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22240 /* end confdefs.h. */
22243 #include <stddef.h>
22245 #include <string.h>
22247 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22248 typedef union { long double value; unsigned int word[NWORDS]; }
22249 memory_long_double;
22250 static unsigned int ored_words[NWORDS];
22251 static unsigned int anded_words[NWORDS];
22252 static void add_to_ored_words (long double *x)
22254 memory_long_double m;
22256 /* Clear it first, in case
22257 sizeof (long double) < sizeof (memory_long_double). */
22258 memset (&m, 0, sizeof (memory_long_double));
22260 for (i = 0; i < NWORDS; i++)
22262 ored_words[i] |= m.word[i];
22263 anded_words[i] &= m.word[i];
22268 static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
22270 FILE *fp = fopen ("conftest.out", "w");
22273 for (j = 0; j < NWORDS; j++)
22274 anded_words[j] = ~ (unsigned int) 0;
22275 for (j = 0; j < 5; j++)
22276 add_to_ored_words (&samples[j]);
22277 /* Remove bits that are common (e.g. if representation of the first mantissa
22278 bit is explicit). */
22279 for (j = 0; j < NWORDS; j++)
22280 ored_words[j] &= ~anded_words[j];
22281 /* Now find the nonzero word. */
22282 for (j = 0; j < NWORDS; j++)
22283 if (ored_words[j] != 0)
22288 for (i = j + 1; i < NWORDS; i++)
22289 if (ored_words[i] != 0)
22291 fprintf (fp, "unknown");
22292 return (fclose (fp) != 0);
22295 if ((ored_words[j] >> i) & 1)
22297 fprintf (fp, "word %d bit %d", (int) j, (int) i);
22298 return (fclose (fp) != 0);
22301 fprintf (fp, "unknown");
22302 return (fclose (fp) != 0);
22306 if ac_fn_c_try_run
"$LINENO"; then :
22307 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
22309 gl_cv_cc_long_double_expbit0
="unknown"
22311 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22312 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
22319 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
22320 case "$gl_cv_cc_long_double_expbit0" in
22322 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22323 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
22325 cat >>confdefs.h
<<_ACEOF
22326 #define LDBL_EXPBIT0_WORD $word
22330 cat >>confdefs.h
<<_ACEOF
22331 #define LDBL_EXPBIT0_BIT $bit
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
22343 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
22344 if ${gl_cv_c___inline+:} false
; then :
22345 $as_echo_n "(cached) " >&6
22347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22348 /* end confdefs.h. */
22350 static __inline foo_t foo (void) { return 0; }
22359 if ac_fn_c_try_compile
"$LINENO"; then :
22360 gl_cv_c___inline
=yes
22362 gl_cv_c___inline
=no
22364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
22367 $as_echo "$gl_cv_c___inline" >&6; }
22368 if test $gl_cv_c___inline = yes; then
22370 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
22378 LOCALCHARSET_TESTS_ENVIRONMENT
=
22393 $as_echo "#define _LCONV_C99 1" >>confdefs.h
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
22399 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
22400 if ${gl_cv_header_locale_h_posix2001+:} false
; then :
22401 $as_echo_n "(cached) " >&6
22403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22404 /* end confdefs.h. */
22405 #include <locale.h>
22406 int x = LC_MESSAGES;
22407 int y = sizeof (((struct lconv *) 0)->decimal_point);
22416 if ac_fn_c_try_compile
"$LINENO"; then :
22417 gl_cv_header_locale_h_posix2001
=yes
22419 gl_cv_header_locale_h_posix2001
=no
22421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
22424 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
22427 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
22428 if ${gl_cv_sys_struct_lconv_ok+:} false
; then :
22429 $as_echo_n "(cached) " >&6
22431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22432 /* end confdefs.h. */
22433 #include <locale.h>
22435 int x = sizeof (l.decimal_point);
22436 int y = sizeof (l.int_p_cs_precedes);
22445 if ac_fn_c_try_compile
"$LINENO"; then :
22446 gl_cv_sys_struct_lconv_ok
=yes
22448 gl_cv_sys_struct_lconv_ok
=no
22450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
22454 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
22455 if test $gl_cv_sys_struct_lconv_ok = no
; then
22458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22459 /* end confdefs.h. */
22466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22467 $EGREP "Special" >/dev
/null
2>&1; then :
22470 REPLACE_STRUCT_LCONV
=1
22475 *) REPLACE_STRUCT_LCONV
=1 ;;
22487 if test $gl_cv_have_include_next = yes; then
22488 gl_cv_next_locale_h
='<'locale.h
'>'
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
22491 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
22492 if ${gl_cv_next_locale_h+:} false
; then :
22493 $as_echo_n "(cached) " >&6
22498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22499 /* end confdefs.h. */
22500 #include <locale.h>
22503 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22504 *) gl_absname_cpp
="$ac_cpp" ;;
22509 gl_dirsep_regex
='[/\\]'
22512 gl_dirsep_regex
='\/'
22515 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22516 gl_header_literal_regex
=`echo 'locale.h' \
22517 | sed -e "$gl_make_literal_regex_sed"`
22518 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22519 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22525 gl_cv_absolute_locale_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22526 sed -n "$gl_absolute_header_sed"`
22528 gl_header
=$gl_cv_absolute_locale_h
22529 gl_cv_next_locale_h
='"'$gl_header'"'
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
22534 $as_echo "$gl_cv_next_locale_h" >&6; }
22536 NEXT_LOCALE_H
=$gl_cv_next_locale_h
22538 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22540 gl_next_as_first_directive
='<'locale.h
'>'
22542 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22543 gl_next_as_first_directive
=$gl_cv_next_locale_h
22545 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
=$gl_next_as_first_directive
22557 if test "$gl_threads_api" = posix
; then
22558 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
22559 # pthread_rwlock_* functions.
22561 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
22563 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
22566 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
22570 if $has_rwlock; then
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
22574 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
22575 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false
; then :
22576 $as_echo_n "(cached) " >&6
22579 LIBS
="$LIBS $LIBMULTITHREAD"
22580 if test "$cross_compiling" = yes; then :
22582 # Guess no on glibc systems.
22583 *-gnu* | gnu
*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22584 # Guess no on musl systems.
22585 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22586 # Guess no on bionic systems.
22587 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
22588 # Guess yes on native Windows with the mingw-w64 winpthreads library.
22589 # Guess no on native Windows with the gnulib windows-rwlock module.
22590 mingw
*) if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
22591 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing yes"
22593 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no"
22596 # If we don't know, obey --enable-cross-guesses.
22597 *) gl_cv_pthread_rwlock_rdlock_prefer_writer
="$gl_cross_guess_normal" ;;
22601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22602 /* end confdefs.h. */
22605 #include <pthread.h>
22606 #include <stdlib.h>
22607 #include <unistd.h>
22609 #define SUCCEED() exit (0)
22610 #define FAILURE() exit (1)
22611 #define UNEXPECTED(n) (exit (10 + (n)))
22613 /* The main thread creates the waiting writer and the requesting reader threads
22614 in the default way; this guarantees that they have the same priority.
22615 We can reuse the main thread as first reader thread. */
22617 static pthread_rwlock_t lock;
22618 static pthread_t reader1;
22619 static pthread_t writer;
22620 static pthread_t reader2;
22621 static pthread_t timer;
22622 /* Used to pass control from writer to reader2 and from reader2 to timer,
22623 as in a relay race.
22624 Passing control from one running thread to another running thread
22625 is most likely faster than to create the second thread. */
22626 static pthread_mutex_t baton;
22629 timer_func (void *ignored)
22631 /* Step 13 (can be before or after step 12):
22632 The timer thread takes the baton, then waits a moment to make sure
22633 it can tell whether the second reader thread is blocked at step 12. */
22634 if (pthread_mutex_lock (&baton))
22637 /* By the time we get here, it's clear that the second reader thread is
22638 blocked at step 12. This is the desired behaviour. */
22643 reader2_func (void *ignored)
22647 /* Step 8 (can be before or after step 7):
22648 The second reader thread takes the baton, then waits a moment to make sure
22649 the writer thread has reached step 7. */
22650 if (pthread_mutex_lock (&baton))
22653 /* Step 9: The second reader thread requests the lock. */
22654 err = pthread_rwlock_tryrdlock (&lock);
22657 else if (err != EBUSY)
22659 /* Step 10: Launch a timer, to test whether the next call blocks. */
22660 if (pthread_create (&timer, NULL, timer_func, NULL))
22662 /* Step 11: Release the baton. */
22663 if (pthread_mutex_unlock (&baton))
22665 /* Step 12: The second reader thread requests the lock. */
22666 err = pthread_rwlock_rdlock (&lock);
22674 writer_func (void *ignored)
22676 /* Step 4: Take the baton, so that the second reader thread does not go ahead
22678 if (pthread_mutex_lock (&baton))
22680 /* Step 5: Create the second reader thread. */
22681 if (pthread_create (&reader2, NULL, reader2_func, NULL))
22683 /* Step 6: Release the baton. */
22684 if (pthread_mutex_unlock (&baton))
22686 /* Step 7: The writer thread requests the lock. */
22687 if (pthread_rwlock_wrlock (&lock))
22695 reader1 = pthread_self ();
22697 /* Step 1: The main thread initializes the lock and the baton. */
22698 if (pthread_rwlock_init (&lock, NULL))
22700 if (pthread_mutex_init (&baton, NULL))
22702 /* Step 2: The main thread acquires the lock as a reader. */
22703 if (pthread_rwlock_rdlock (&lock))
22705 /* Step 3: Create the writer thread. */
22706 if (pthread_create (&writer, NULL, writer_func, NULL))
22708 /* Job done. Go to sleep. */
22716 if ac_fn_c_try_run
"$LINENO"; then :
22717 gl_cv_pthread_rwlock_rdlock_prefer_writer
=yes
22719 gl_cv_pthread_rwlock_rdlock_prefer_writer
=no
22721 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22722 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
22729 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
22730 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
22733 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
22739 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
22740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22741 /* end confdefs.h. */
22743 #include <pthread.h>
22748 #if __FreeBSD__ == 4
22749 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
22750 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
22751 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
22752 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
22754 int x = (int)PTHREAD_MUTEX_RECURSIVE;
22762 if ac_fn_c_try_compile
"$LINENO"; then :
22764 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
22767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22773 cat >>confdefs.h
<<_ACEOF
22774 #define GNULIB_LOCK 1
22782 if test $ac_cv_func_lstat = yes; then
22784 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
22793 if test $REPLACE_LSTAT = 1; then
22802 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
22817 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
22824 if test $gl_cv_func_malloc_posix = yes; then
22826 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
22832 if test $REPLACE_MALLOC = 1; then
22841 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
22849 GNULIB_MALLOC_POSIX
=1
22855 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22873 if test $gl_cv_have_include_next = yes; then
22874 gl_cv_next_math_h
='<'math.h
'>'
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
22877 $as_echo_n "checking absolute name of <math.h>... " >&6; }
22878 if ${gl_cv_next_math_h+:} false
; then :
22879 $as_echo_n "(cached) " >&6
22882 if test $ac_cv_header_math_h = yes; then
22887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22888 /* end confdefs.h. */
22892 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22893 *) gl_absname_cpp
="$ac_cpp" ;;
22898 gl_dirsep_regex
='[/\\]'
22901 gl_dirsep_regex
='\/'
22904 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22905 gl_header_literal_regex
=`echo 'math.h' \
22906 | sed -e "$gl_make_literal_regex_sed"`
22907 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22908 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22914 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22915 sed -n "$gl_absolute_header_sed"`
22917 gl_header
=$gl_cv_absolute_math_h
22918 gl_cv_next_math_h
='"'$gl_header'"'
22920 gl_cv_next_math_h
='<'math.h
'>'
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
22926 $as_echo "$gl_cv_next_math_h" >&6; }
22928 NEXT_MATH_H
=$gl_cv_next_math_h
22930 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22932 gl_next_as_first_directive
='<'math.h
'>'
22934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22935 gl_next_as_first_directive
=$gl_cv_next_math_h
22937 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
22944 $as_echo_n "checking whether NAN macro works... " >&6; }
22945 if ${gl_cv_header_math_nan_works+:} false
; then :
22946 $as_echo_n "(cached) " >&6
22948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22949 /* end confdefs.h. */
22954 /* Solaris 10 has a broken definition of NAN. Other platforms
22955 fail to provide NAN, or provide it only in C99 mode; this
22956 test only needs to fail when NAN is provided but wrong. */
22966 if ac_fn_c_try_compile
"$LINENO"; then :
22967 gl_cv_header_math_nan_works
=yes
22969 gl_cv_header_math_nan_works
=no
22971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
22974 $as_echo "$gl_cv_header_math_nan_works" >&6; }
22975 if test $gl_cv_header_math_nan_works = no
; then
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
22979 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
22980 if ${gl_cv_header_math_huge_val_works+:} false
; then :
22981 $as_echo_n "(cached) " >&6
22983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22984 /* end confdefs.h. */
22989 /* Solaris 10 has a broken definition of HUGE_VAL. */
22990 double d = HUGE_VAL;
22996 if ac_fn_c_try_compile
"$LINENO"; then :
22997 gl_cv_header_math_huge_val_works
=yes
22999 gl_cv_header_math_huge_val_works
=no
23001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
23004 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
23005 if test $gl_cv_header_math_huge_val_works = no
; then
23026 if case "$host_os" in
23028 *) test $ac_cv_func_mbsinit = yes ;;
23030 && test $ac_cv_func_mbrtowc = yes; then
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
23036 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
23037 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
23038 $as_echo_n "(cached) " >&6
23042 # Guess no on AIX and OSF/1.
23043 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
23044 # Guess yes otherwise.
23045 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
23047 if test $LOCALE_JA != none
; then
23048 if test "$cross_compiling" = yes; then :
23051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h. */
23054 #include <locale.h>
23055 #include <string.h>
23059 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23061 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23065 memset (&state, '\0', sizeof (mbstate_t));
23066 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23067 if (mbsinit (&state))
23073 if ac_fn_c_try_run
"$LINENO"; then :
23074 gl_cv_func_mbrtowc_incomplete_state
=yes
23076 gl_cv_func_mbrtowc_incomplete_state
=no
23078 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23079 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23083 if test $LOCALE_FR_UTF8 != none
; then
23084 if test "$cross_compiling" = yes; then :
23087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23088 /* end confdefs.h. */
23090 #include <locale.h>
23091 #include <string.h>
23095 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23097 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
23101 memset (&state, '\0', sizeof (mbstate_t));
23102 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23103 if (mbsinit (&state))
23109 if ac_fn_c_try_run
"$LINENO"; then :
23110 gl_cv_func_mbrtowc_incomplete_state
=yes
23112 gl_cv_func_mbrtowc_incomplete_state
=no
23114 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23115 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
23123 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
23129 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
23130 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
23131 $as_echo_n "(cached) " >&6
23135 # Guess no on Solaris 8.
23136 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
23137 # Guess yes otherwise.
23138 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
23140 if test $LOCALE_ZH_CN != none
; then
23141 if test "$cross_compiling" = yes; then :
23144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h. */
23147 #include <locale.h>
23148 #include <stdlib.h>
23149 #include <string.h>
23153 /* This fails on Solaris 8:
23154 mbrtowc returns 2, and sets wc to 0x00F0.
23155 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
23156 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23158 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
23162 memset (&state, '\0', sizeof (mbstate_t));
23163 if (mbrtowc (&wc, input + 3, 6, &state) != 4
23164 && mbtowc (&wc, input + 3, 6) == 4)
23170 if ac_fn_c_try_run
"$LINENO"; then :
23171 gl_cv_func_mbrtowc_sanitycheck
=yes
23173 gl_cv_func_mbrtowc_sanitycheck
=no
23175 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23176 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
23183 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
23185 REPLACE_MBSTATE_T
=0
23186 case "$gl_cv_func_mbrtowc_incomplete_state" in
23188 *) REPLACE_MBSTATE_T
=1 ;;
23190 case "$gl_cv_func_mbrtowc_sanitycheck" in
23192 *) REPLACE_MBSTATE_T
=1 ;;
23195 REPLACE_MBSTATE_T
=1
23200 if test $ac_cv_func_mbrtowc = no
; then
23202 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
23206 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
23212 cat >>confdefs.h
<<_ACEOF
23213 #define HAVE_DECL_MBRTOWC $ac_have_decl
23216 if test $ac_cv_have_decl_mbrtowc = yes; then
23220 if test $REPLACE_MBSTATE_T = 1; then
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
23227 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
23228 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
23229 $as_echo_n "(cached) " >&6
23233 # Guess no on Solaris.
23234 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
23235 # Guess yes otherwise.
23236 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
23238 if test $LOCALE_FR_UTF8 != none
; then
23239 if test "$cross_compiling" = yes; then :
23242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23243 /* end confdefs.h. */
23245 #include <locale.h>
23246 #include <stdlib.h>
23247 #include <string.h>
23253 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23255 char input[] = "\303\237er";
23260 memset (&state, '\0', sizeof (mbstate_t));
23261 wc = (wchar_t) 0xBADFACE;
23262 ret = mbrtowc (&wc, input, 5, &state);
23265 if (!mbsinit (&state))
23268 memset (&state, '\0', sizeof (mbstate_t));
23269 ret = mbrtowc (NULL, input, 5, &state);
23270 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
23272 if (!mbsinit (&state))
23278 if ac_fn_c_try_run
"$LINENO"; then :
23279 gl_cv_func_mbrtowc_null_arg1
=yes
23281 gl_cv_func_mbrtowc_null_arg1
=no
23283 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23284 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
23291 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
23297 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
23298 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
23299 $as_echo_n "(cached) " >&6
23303 # Guess no on OSF/1.
23304 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
23305 # Guess yes otherwise.
23306 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
23308 if test $LOCALE_FR_UTF8 != none
; then
23309 if test "$cross_compiling" = yes; then :
23312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23313 /* end confdefs.h. */
23315 #include <locale.h>
23316 #include <string.h>
23320 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23326 memset (&state, '\0', sizeof (mbstate_t));
23327 wc = (wchar_t) 0xBADFACE;
23328 mbrtowc (&wc, NULL, 5, &state);
23329 /* Check that wc was not modified. */
23330 if (wc != (wchar_t) 0xBADFACE)
23336 if ac_fn_c_try_run
"$LINENO"; then :
23337 gl_cv_func_mbrtowc_null_arg2
=yes
23339 gl_cv_func_mbrtowc_null_arg2
=no
23341 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23342 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
23349 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
23357 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
23358 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
23359 $as_echo_n "(cached) " >&6
23363 # Guess no on HP-UX, Solaris, native Windows.
23364 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
23365 # Guess yes otherwise.
23366 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
23368 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
23369 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
23370 if test "$cross_compiling" = yes; then :
23373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23374 /* end confdefs.h. */
23376 #include <locale.h>
23377 #include <string.h>
23382 int found_some_locale = 0;
23383 /* This fails on Solaris. */
23384 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23386 char input[] = "B\303\274\303\237er"; /* "Büßer" */
23390 memset (&state, '\0', sizeof (mbstate_t));
23391 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23394 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
23397 found_some_locale = 1;
23399 /* This fails on HP-UX 11.11. */
23400 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23402 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23406 memset (&state, '\0', sizeof (mbstate_t));
23407 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23410 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
23413 found_some_locale = 1;
23415 /* This fails on native Windows. */
23416 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
23418 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
23422 memset (&state, '\0', sizeof (mbstate_t));
23423 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23426 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23429 found_some_locale = 1;
23431 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
23433 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
23437 memset (&state, '\0', sizeof (mbstate_t));
23438 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23441 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23444 found_some_locale = 1;
23446 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
23448 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
23452 memset (&state, '\0', sizeof (mbstate_t));
23453 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23456 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23459 found_some_locale = 1;
23461 return (found_some_locale ? result : 77);
23464 if ac_fn_c_try_run
"$LINENO"; then :
23465 gl_cv_func_mbrtowc_retval
=yes
23467 if test $?
!= 77; then
23468 gl_cv_func_mbrtowc_retval
=no
23472 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23473 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
23480 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
23486 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
23487 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
23488 $as_echo_n "(cached) " >&6
23492 # Guess no on Solaris 8 and 9.
23493 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
23494 # Guess yes otherwise.
23495 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
23497 if test $LOCALE_ZH_CN != none
; then
23498 if test "$cross_compiling" = yes; then :
23501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23502 /* end confdefs.h. */
23504 #include <locale.h>
23505 #include <string.h>
23509 /* This fails on Solaris 8 and 9. */
23510 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23515 memset (&state, '\0', sizeof (mbstate_t));
23516 if (mbrtowc (&wc, "", 1, &state) != 0)
23522 if ac_fn_c_try_run
"$LINENO"; then :
23523 gl_cv_func_mbrtowc_nul_retval
=yes
23525 gl_cv_func_mbrtowc_nul_retval
=no
23527 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23528 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
23535 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
23540 $as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; }
23541 if ${gl_cv_func_mbrtowc_stores_incomplete+:} false
; then :
23542 $as_echo_n "(cached) " >&6
23546 # Guess yes on native Windows.
23547 mingw
*) gl_cv_func_mbrtowc_stores_incomplete
="guessing yes" ;;
23548 *) gl_cv_func_mbrtowc_stores_incomplete
="guessing no" ;;
23552 if test "$cross_compiling" = yes; then :
23555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23556 /* end confdefs.h. */
23558 #include <locale.h>
23559 #include <string.h>
23564 if (setlocale (LC_ALL, "French_France.65001") != NULL)
23566 wchar_t wc = (wchar_t) 0xBADFACE;
23569 memset (&state, '\0', sizeof (mbstate_t));
23570 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
23571 && wc != (wchar_t) 0xBADFACE)
23574 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
23576 wchar_t wc = (wchar_t) 0xBADFACE;
23579 memset (&state, '\0', sizeof (mbstate_t));
23580 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
23581 && wc != (wchar_t) 0xBADFACE)
23584 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
23586 wchar_t wc = (wchar_t) 0xBADFACE;
23589 memset (&state, '\0', sizeof (mbstate_t));
23590 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
23591 && wc != (wchar_t) 0xBADFACE)
23594 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
23596 wchar_t wc = (wchar_t) 0xBADFACE;
23599 memset (&state, '\0', sizeof (mbstate_t));
23600 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
23601 && wc != (wchar_t) 0xBADFACE)
23607 if ac_fn_c_try_run
"$LINENO"; then :
23608 gl_cv_func_mbrtowc_stores_incomplete
=no
23610 gl_cv_func_mbrtowc_stores_incomplete
=yes
23612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23619 if test $LOCALE_FR_UTF8 != none
; then
23620 if test "$cross_compiling" = yes; then :
23623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23624 /* end confdefs.h. */
23626 #include <locale.h>
23627 #include <string.h>
23631 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23633 wchar_t wc = (wchar_t) 0xBADFACE;
23636 memset (&state, '\0', sizeof (mbstate_t));
23637 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
23638 && wc != (wchar_t) 0xBADFACE)
23644 if ac_fn_c_try_run
"$LINENO"; then :
23645 gl_cv_func_mbrtowc_stores_incomplete
=no
23647 gl_cv_func_mbrtowc_stores_incomplete
=yes
23649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23650 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
23659 $as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
23664 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
23665 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
23666 $as_echo_n "(cached) " >&6
23670 # Guess no on AIX and glibc systems.
23671 aix
* |
*-gnu* | gnu
*) gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
23672 # Guess yes on native Windows.
23673 mingw
*) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
23674 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
23676 if test "$cross_compiling" = yes; then :
23679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23680 /* end confdefs.h. */
23684 static mbstate_t mbs;
23688 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
23691 if ac_fn_c_try_run
"$LINENO"; then :
23692 gl_cv_func_mbrtowc_empty_input
=yes
23694 gl_cv_func_mbrtowc_empty_input
=no
23696 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23697 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
23703 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
23707 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
23708 if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false
; then :
23709 $as_echo_n "(cached) " >&6
23712 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="$gl_cross_guess_normal"
23714 if test "$cross_compiling" = yes; then :
23716 # Guess yes on native Windows.
23717 mingw
*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="guessing yes" ;;
23721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23722 /* end confdefs.h. */
23723 #include <limits.h>
23724 #include <locale.h>
23732 char *locale = setlocale (LC_ALL, "C");
23735 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
23739 mbstate_t mbs = { 0, };
23740 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
23750 if ac_fn_c_try_run
"$LINENO"; then :
23751 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=yes
23753 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=no
23755 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23756 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
23762 $as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
23764 case "$gl_cv_func_mbrtowc_null_arg1" in
23767 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
23772 case "$gl_cv_func_mbrtowc_null_arg2" in
23775 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
23780 case "$gl_cv_func_mbrtowc_retval" in
23783 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
23788 case "$gl_cv_func_mbrtowc_nul_retval" in
23791 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
23796 case "$gl_cv_func_mbrtowc_stores_incomplete" in
23799 $as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
23804 case "$gl_cv_func_mbrtowc_empty_input" in
23807 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
23812 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
23815 $as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
23822 if test $REPLACE_MBSTATE_T = 1; then
23824 mingw
*) LIB_MBRTOWC
= ;;
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
23829 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
23830 if ${gl_cv_have_weak+:} false
; then :
23831 $as_echo_n "(cached) " >&6
23834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23835 /* end confdefs.h. */
23836 extern void xyzzy ();
23846 if ac_fn_c_try_link
"$LINENO"; then :
23847 gl_cv_have_weak
=maybe
23849 rm -f core conftest.err conftest.
$ac_objext \
23850 conftest
$ac_exeext conftest.
$ac_ext
23851 if test $gl_cv_have_weak = maybe
; then
23852 if test "$cross_compiling" = yes; then :
23853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23854 /* end confdefs.h. */
23856 Extensible Linking Format
23860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23861 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
23862 gl_cv_have_weak
="guessing yes"
23864 gl_cv_have_weak
="guessing no"
23870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23871 /* end confdefs.h. */
23877 return (fputs == NULL);
23880 if ac_fn_c_try_run
"$LINENO"; then :
23881 gl_cv_have_weak
=yes
23885 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23886 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23890 case " $LDFLAGS " in
23891 *" -static "*) gl_cv_have_weak
=no
;;
23893 case "$gl_cv_have_weak" in
23896 freebsd
* | dragonfly
*)
23898 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
23899 cat <<EOF > conftest2.c
23900 #include <pthread.h>
23901 #pragma weak pthread_mutexattr_gettype
23904 return (pthread_mutexattr_gettype != NULL);
23907 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
23908 || gl_cv_have_weak
=no
23909 rm -f conftest1.c libempty.so conftest2.c conftest
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
23917 $as_echo "$gl_cv_have_weak" >&6; }
23918 case "$gl_cv_have_weak" in
23921 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
23926 case "$gl_cv_have_weak" in
23927 *yes) LIB_MBRTOWC
= ;;
23928 *) LIB_MBRTOWC
="$LIBPTHREAD" ;;
23937 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
23946 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
23948 if test $REPLACE_MBSTATE_T = 1; then
23957 gl_LIBOBJS
="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
23967 gl_LIBOBJS
="$gl_LIBOBJS mbtowc-lock.$ac_objext"
23974 if test -n "$GCC"; then
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
23976 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
23977 if ${gl_cv_cc_vis_werror+:} false
; then :
23978 $as_echo_n "(cached) " >&6
23980 gl_save_CFLAGS
="$CFLAGS"
23981 CFLAGS
="$CFLAGS -Werror"
23982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23983 /* end confdefs.h. */
23993 if ac_fn_c_try_compile
"$LINENO"; then :
23994 gl_cv_cc_vis_werror
=yes
23996 gl_cv_cc_vis_werror
=no
23998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23999 CFLAGS
="$gl_save_CFLAGS"
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
24003 $as_echo "$gl_cv_cc_vis_werror" >&6; }
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
24005 $as_echo_n "checking for simple visibility declarations... " >&6; }
24006 if ${gl_cv_cc_visibility+:} false
; then :
24007 $as_echo_n "(cached) " >&6
24009 gl_save_CFLAGS
="$CFLAGS"
24010 CFLAGS
="$CFLAGS -fvisibility=hidden"
24011 if test $gl_cv_cc_vis_werror = yes; then
24012 CFLAGS
="$CFLAGS -Werror"
24014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24015 /* end confdefs.h. */
24016 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
24017 extern __attribute__((__visibility__("default"))) int exportedvar;
24018 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
24019 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
24020 void dummyfunc (void) {}
24030 if ac_fn_c_try_compile
"$LINENO"; then :
24031 gl_cv_cc_visibility
=yes
24033 gl_cv_cc_visibility
=no
24035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24036 CFLAGS
="$gl_save_CFLAGS"
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
24040 $as_echo "$gl_cv_cc_visibility" >&6; }
24041 if test $gl_cv_cc_visibility = yes; then
24042 CFLAG_VISIBILITY
="-fvisibility=hidden"
24049 cat >>confdefs.h
<<_ACEOF
24050 #define HAVE_VISIBILITY $HAVE_VISIBILITY
24072 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
24088 if case "$host_os" in
24090 *) test $ac_cv_func_mbsinit = yes ;;
24092 && test $ac_cv_func_mbrtowc = yes; then
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24098 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24099 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24100 $as_echo_n "(cached) " >&6
24104 # Guess no on AIX and OSF/1.
24105 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24106 # Guess yes otherwise.
24107 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24109 if test $LOCALE_JA != none
; then
24110 if test "$cross_compiling" = yes; then :
24113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24114 /* end confdefs.h. */
24116 #include <locale.h>
24117 #include <string.h>
24121 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24123 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24127 memset (&state, '\0', sizeof (mbstate_t));
24128 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24129 if (mbsinit (&state))
24135 if ac_fn_c_try_run
"$LINENO"; then :
24136 gl_cv_func_mbrtowc_incomplete_state
=yes
24138 gl_cv_func_mbrtowc_incomplete_state
=no
24140 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24141 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24145 if test $LOCALE_FR_UTF8 != none
; then
24146 if test "$cross_compiling" = yes; then :
24149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24150 /* end confdefs.h. */
24152 #include <locale.h>
24153 #include <string.h>
24157 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24159 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
24163 memset (&state, '\0', sizeof (mbstate_t));
24164 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24165 if (mbsinit (&state))
24171 if ac_fn_c_try_run
"$LINENO"; then :
24172 gl_cv_func_mbrtowc_incomplete_state
=yes
24174 gl_cv_func_mbrtowc_incomplete_state
=no
24176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24185 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24191 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24192 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
24193 $as_echo_n "(cached) " >&6
24197 # Guess no on Solaris 8.
24198 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
24199 # Guess yes otherwise.
24200 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
24202 if test $LOCALE_ZH_CN != none
; then
24203 if test "$cross_compiling" = yes; then :
24206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24207 /* end confdefs.h. */
24209 #include <locale.h>
24210 #include <stdlib.h>
24211 #include <string.h>
24215 /* This fails on Solaris 8:
24216 mbrtowc returns 2, and sets wc to 0x00F0.
24217 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24218 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24220 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24224 memset (&state, '\0', sizeof (mbstate_t));
24225 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24226 && mbtowc (&wc, input + 3, 6) == 4)
24232 if ac_fn_c_try_run
"$LINENO"; then :
24233 gl_cv_func_mbrtowc_sanitycheck
=yes
24235 gl_cv_func_mbrtowc_sanitycheck
=no
24237 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24238 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24245 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24247 REPLACE_MBSTATE_T
=0
24248 case "$gl_cv_func_mbrtowc_incomplete_state" in
24250 *) REPLACE_MBSTATE_T
=1 ;;
24252 case "$gl_cv_func_mbrtowc_sanitycheck" in
24254 *) REPLACE_MBSTATE_T
=1 ;;
24257 REPLACE_MBSTATE_T
=1
24262 if test $ac_cv_func_mbsinit = no
; then
24264 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
24268 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
24274 cat >>confdefs.h
<<_ACEOF
24275 #define HAVE_DECL_MBSINIT $ac_have_decl
24278 if test $ac_cv_have_decl_mbsinit = yes; then
24282 if test $REPLACE_MBSTATE_T = 1; then
24286 mingw
*) REPLACE_MBSINIT
=1 ;;
24291 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
24300 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
24317 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
24332 if case "$host_os" in
24334 *) test $ac_cv_func_mbsinit = yes ;;
24336 && test $ac_cv_func_mbrtowc = yes; then
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24342 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24343 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24344 $as_echo_n "(cached) " >&6
24348 # Guess no on AIX and OSF/1.
24349 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24350 # Guess yes otherwise.
24351 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24353 if test $LOCALE_JA != none
; then
24354 if test "$cross_compiling" = yes; then :
24357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24358 /* end confdefs.h. */
24360 #include <locale.h>
24361 #include <string.h>
24365 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24367 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24371 memset (&state, '\0', sizeof (mbstate_t));
24372 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24373 if (mbsinit (&state))
24379 if ac_fn_c_try_run
"$LINENO"; then :
24380 gl_cv_func_mbrtowc_incomplete_state
=yes
24382 gl_cv_func_mbrtowc_incomplete_state
=no
24384 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24385 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24389 if test $LOCALE_FR_UTF8 != none
; then
24390 if test "$cross_compiling" = yes; then :
24393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24394 /* end confdefs.h. */
24396 #include <locale.h>
24397 #include <string.h>
24401 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24403 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
24407 memset (&state, '\0', sizeof (mbstate_t));
24408 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24409 if (mbsinit (&state))
24415 if ac_fn_c_try_run
"$LINENO"; then :
24416 gl_cv_func_mbrtowc_incomplete_state
=yes
24418 gl_cv_func_mbrtowc_incomplete_state
=no
24420 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24421 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24429 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24435 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24436 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
24437 $as_echo_n "(cached) " >&6
24441 # Guess no on Solaris 8.
24442 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
24443 # Guess yes otherwise.
24444 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
24446 if test $LOCALE_ZH_CN != none
; then
24447 if test "$cross_compiling" = yes; then :
24450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h. */
24453 #include <locale.h>
24454 #include <stdlib.h>
24455 #include <string.h>
24459 /* This fails on Solaris 8:
24460 mbrtowc returns 2, and sets wc to 0x00F0.
24461 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24462 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24464 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24468 memset (&state, '\0', sizeof (mbstate_t));
24469 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24470 && mbtowc (&wc, input + 3, 6) == 4)
24476 if ac_fn_c_try_run
"$LINENO"; then :
24477 gl_cv_func_mbrtowc_sanitycheck
=yes
24479 gl_cv_func_mbrtowc_sanitycheck
=no
24481 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24482 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24489 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24491 REPLACE_MBSTATE_T
=0
24492 case "$gl_cv_func_mbrtowc_incomplete_state" in
24494 *) REPLACE_MBSTATE_T
=1 ;;
24496 case "$gl_cv_func_mbrtowc_sanitycheck" in
24498 *) REPLACE_MBSTATE_T
=1 ;;
24501 REPLACE_MBSTATE_T
=1
24506 if test $ac_cv_func_mbsrtowcs = no
; then
24508 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
24512 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
24518 cat >>confdefs.h
<<_ACEOF
24519 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
24522 if test $ac_cv_have_decl_mbsrtowcs = yes; then
24523 REPLACE_MBSRTOWCS
=1
24526 if test $REPLACE_MBSTATE_T = 1; then
24527 REPLACE_MBSRTOWCS
=1
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
24536 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
24537 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
24538 $as_echo_n "(cached) " >&6
24542 # Guess no on HP-UX, Solaris, mingw.
24543 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
24544 # Guess yes otherwise.
24545 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
24547 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
24548 if test "$cross_compiling" = yes; then :
24551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24552 /* end confdefs.h. */
24554 #include <locale.h>
24555 #include <string.h>
24560 /* Test whether the function supports a NULL destination argument.
24561 This fails on native Windows. */
24562 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
24564 const char input[] = "\337er";
24565 const char *src = input;
24568 memset (&state, '\0', sizeof (mbstate_t));
24569 if (mbsrtowcs (NULL, &src, 1, &state) != 3
24573 /* Test whether the function works when started with a conversion state
24574 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
24575 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24577 const char input[] = "B\303\274\303\237er";
24580 memset (&state, '\0', sizeof (mbstate_t));
24581 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
24582 if (!mbsinit (&state))
24584 const char *src = input + 2;
24585 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
24589 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24591 const char input[] = "<\306\374\313\334\270\354>";
24594 memset (&state, '\0', sizeof (mbstate_t));
24595 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
24596 if (!mbsinit (&state))
24598 const char *src = input + 4;
24599 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
24603 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24605 const char input[] = "B\250\271\201\060\211\070er";
24608 memset (&state, '\0', sizeof (mbstate_t));
24609 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
24610 if (!mbsinit (&state))
24612 const char *src = input + 2;
24613 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
24620 if ac_fn_c_try_run
"$LINENO"; then :
24621 gl_cv_func_mbsrtowcs_works
=yes
24623 gl_cv_func_mbsrtowcs_works
=no
24625 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24626 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
24633 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
24635 case "$gl_cv_func_mbsrtowcs_works" in
24637 *) REPLACE_MBSRTOWCS
=1 ;;
24642 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
24651 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
24661 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
24678 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
24685 for ac_func
in mbtowc
24687 ac_fn_c_check_func
"$LINENO" "mbtowc" "ac_cv_func_mbtowc"
24688 if test "x$ac_cv_func_mbtowc" = xyes
; then :
24689 cat >>confdefs.h
<<_ACEOF
24690 #define HAVE_MBTOWC 1
24696 if test $ac_cv_func_mbtowc = no
; then
24704 if test $HAVE_MBTOWC = 0 ||
test $REPLACE_MBTOWC = 1; then
24713 gl_LIBOBJS
="$gl_LIBOBJS mbtowc.$ac_objext"
24730 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
24735 if test $REPLACE_MEMCHR = 1; then
24744 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
24747 for ac_header
in bp-sym.h
24749 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24750 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
24751 cat >>confdefs.h
<<_ACEOF
24752 #define HAVE_BP_SYM_H 1
24772 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24778 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
24780 $as_echo_n "checking whether memmem works in linear time... " >&6; }
24781 if ${gl_cv_func_memmem_works_fast+:} false
; then :
24782 $as_echo_n "(cached) " >&6
24784 if test "$cross_compiling" = yes; then :
24785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24786 /* end confdefs.h. */
24788 #include <features.h>
24789 #ifdef __GNU_LIBRARY__
24790 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
24791 && !defined __UCLIBC__
24796 #include <cygwin/version.h>
24797 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
24803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24804 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24805 gl_cv_func_memmem_works_fast
="guessing yes"
24807 gl_cv_func_memmem_works_fast
="$gl_cross_guess_normal"
24813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24814 /* end confdefs.h. */
24816 #include <signal.h> /* for signal */
24817 #include <string.h> /* for memmem */
24818 #include <stdlib.h> /* for malloc */
24819 #include <unistd.h> /* for alarm */
24820 static void quit (int sig) { _exit (sig + 128); }
24827 size_t m = 1000000;
24828 char *haystack = (char *) malloc (2 * m + 1);
24829 char *needle = (char *) malloc (m + 1);
24830 /* Failure to compile this test due to missing alarm is okay,
24831 since all such platforms (mingw) also lack memmem. */
24832 signal (SIGALRM, quit);
24834 /* Check for quadratic performance. */
24835 if (haystack && needle)
24837 memset (haystack, 'A', 2 * m);
24838 haystack[2 * m] = 'B';
24839 memset (needle, 'A', m);
24841 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
24844 /* Free allocated memory, in case some sanitizer is watching. */
24853 if ac_fn_c_try_run
"$LINENO"; then :
24854 gl_cv_func_memmem_works_fast
=yes
24856 gl_cv_func_memmem_works_fast
=no
24858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24859 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
24865 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
24866 case "$gl_cv_func_memmem_works_fast" in
24874 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
24883 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
24890 for ac_func
in memmem
24892 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
24893 if test "x$ac_cv_func_memmem" = xyes
; then :
24894 cat >>confdefs.h
<<_ACEOF
24895 #define HAVE_MEMMEM 1
24901 if test $ac_cv_func_memmem = yes; then
24907 if test $ac_cv_have_decl_memmem = no
; then
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
24911 $as_echo_n "checking whether memmem works... " >&6; }
24912 if ${gl_cv_func_memmem_works_always+:} false
; then :
24913 $as_echo_n "(cached) " >&6
24915 if test "$cross_compiling" = yes; then :
24916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24917 /* end confdefs.h. */
24919 #ifdef __GNU_LIBRARY__
24920 #include <features.h>
24921 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
24922 || __GLIBC_MINOR__ > 12)) \
24923 || (__GLIBC__ > 2)) \
24924 || defined __UCLIBC__
24927 #elif defined __CYGWIN__
24928 #include <cygwin/version.h>
24929 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24938 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24939 gl_cv_func_memmem_works_always
="guessing yes"
24941 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
24947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24948 /* end confdefs.h. */
24950 #include <string.h> /* for memmem */
24951 #define P "_EF_BF_BD"
24952 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
24953 #define NEEDLE P P P P P
24960 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
24962 /* Check for empty needle behavior. */
24964 const char *haystack = "AAA";
24965 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
24974 if ac_fn_c_try_run
"$LINENO"; then :
24975 gl_cv_func_memmem_works_always
=yes
24977 gl_cv_func_memmem_works_always
=no
24979 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24980 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
24986 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
24987 case "$gl_cv_func_memmem_works_always" in
24996 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
25005 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
25019 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
25029 for ac_func
in mempcpy
25031 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
25032 if test "x$ac_cv_func_mempcpy" = xyes
; then :
25033 cat >>confdefs.h
<<_ACEOF
25034 #define HAVE_MEMPCPY 1
25040 if test $ac_cv_func_mempcpy = no
; then
25044 if test $HAVE_MEMPCPY = 0; then
25053 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
25070 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
25079 if test $ac_cv_have_decl_memrchr = no
; then
25080 HAVE_DECL_MEMRCHR
=0
25083 for ac_func
in memrchr
25085 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
25086 if test "x$ac_cv_func_memrchr" = xyes
; then :
25087 cat >>confdefs.h
<<_ACEOF
25088 #define HAVE_MEMRCHR 1
25095 if test $ac_cv_func_memrchr = no
; then
25104 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
25119 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
25129 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
25130 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
25131 $as_echo_n "(cached) " >&6
25133 rm -rf conftest.dir
25134 if test "$cross_compiling" = yes; then :
25136 # Guess yes on Linux systems.
25137 linux-
* | linux
) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
25138 # Guess yes on glibc systems.
25139 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
25140 # Guess yes on MSVC, no on mingw.
25141 mingw
*) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25142 /* end confdefs.h. */
25149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25150 $EGREP "Known" >/dev
/null
2>&1; then :
25151 gl_cv_func_mkdir_trailing_slash_works
="guessing yes"
25153 gl_cv_func_mkdir_trailing_slash_works
="guessing no"
25158 # If we don't know, obey --enable-cross-guesses.
25159 *) gl_cv_func_mkdir_trailing_slash_works
="$gl_cross_guess_normal" ;;
25163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25164 /* end confdefs.h. */
25166 #include <sys/types.h>
25167 #include <sys/stat.h>
25175 return mkdir ("conftest.dir/", 0700);
25180 if ac_fn_c_try_run
"$LINENO"; then :
25181 gl_cv_func_mkdir_trailing_slash_works
=yes
25183 gl_cv_func_mkdir_trailing_slash_works
=no
25185 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25186 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25189 rm -rf conftest.dir
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
25193 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
25194 case "$gl_cv_func_mkdir_trailing_slash_works" in
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
25202 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
25203 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
25204 $as_echo_n "(cached) " >&6
25206 rm -rf conftest.dir
25207 if test "$cross_compiling" = yes; then :
25209 # Guess yes on glibc systems.
25210 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
25211 # Guess yes on musl systems.
25212 *-musl*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
25213 # Guess no on native Windows.
25214 mingw
*) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
25215 # If we don't know, obey --enable-cross-guesses.
25216 *) gl_cv_func_mkdir_trailing_dot_works
="$gl_cross_guess_normal" ;;
25220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25221 /* end confdefs.h. */
25223 #include <sys/types.h>
25224 #include <sys/stat.h>
25232 return !mkdir ("conftest.dir/./", 0700);
25237 if ac_fn_c_try_run
"$LINENO"; then :
25238 gl_cv_func_mkdir_trailing_dot_works
=yes
25240 gl_cv_func_mkdir_trailing_dot_works
=no
25242 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25243 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25246 rm -rf conftest.dir
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
25251 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
25252 case "$gl_cv_func_mkdir_trailing_dot_works" in
25257 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
25262 if test $REPLACE_MKDIR = 1; then
25271 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
25285 $as_echo "#define GNULIB_TEST_MKDIR 1" >>confdefs.h
25291 for ac_func
in mkdtemp
25293 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
25294 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
25295 cat >>confdefs.h
<<_ACEOF
25296 #define HAVE_MKDTEMP 1
25302 if test $ac_cv_func_mkdtemp = no
; then
25306 if test $HAVE_MKDTEMP = 0; then
25315 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
25331 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
25341 if test $ac_cv_func_mkostemp != yes; then
25345 if test $HAVE_MKOSTEMP = 0; then
25354 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
25361 cat >>confdefs.h
<<_ACEOF
25362 #define GNULIB_MKOSTEMP 1
25377 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
25382 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25391 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
25395 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25404 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
25409 cat >>confdefs.h
<<_ACEOF
25410 #define GNULIB_MSVC_NOTHROW 1
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
25417 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
25418 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
25419 $as_echo_n "(cached) " >&6
25422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25423 /* end confdefs.h. */
25424 #include <netinet/in.h>
25433 if ac_fn_c_try_compile
"$LINENO"; then :
25434 gl_cv_header_netinet_in_h_selfcontained
=yes
25436 gl_cv_header_netinet_in_h_selfcontained
=no
25438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
25442 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
25443 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
25446 NETINET_IN_H
='netinet/in.h'
25447 for ac_header
in netinet
/in.h
25449 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
25450 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
25451 cat >>confdefs.h
<<_ACEOF
25452 #define HAVE_NETINET_IN_H 1
25468 if test $gl_cv_have_include_next = yes; then
25469 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
25472 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
25473 if ${gl_cv_next_netinet_in_h+:} false
; then :
25474 $as_echo_n "(cached) " >&6
25477 if test $ac_cv_header_netinet_in_h = yes; then
25482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25483 /* end confdefs.h. */
25484 #include <netinet/in.h>
25487 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25488 *) gl_absname_cpp
="$ac_cpp" ;;
25493 gl_dirsep_regex
='[/\\]'
25496 gl_dirsep_regex
='\/'
25499 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25500 gl_header_literal_regex
=`echo 'netinet/in.h' \
25501 | sed -e "$gl_make_literal_regex_sed"`
25502 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25503 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25509 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25510 sed -n "$gl_absolute_header_sed"`
25512 gl_header
=$gl_cv_absolute_netinet_in_h
25513 gl_cv_next_netinet_in_h
='"'$gl_header'"'
25515 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
25521 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
25523 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
25525 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25526 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25527 gl_next_as_first_directive
='<'netinet
/in.h
'>'
25529 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25530 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
25532 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
25537 if test $ac_cv_header_netinet_in_h = yes; then
25538 HAVE_NETINET_IN_H
=1
25540 HAVE_NETINET_IN_H
=0
25545 if test -n "$NETINET_IN_H"; then
25546 GL_GENERATE_NETINET_IN_H_TRUE
=
25547 GL_GENERATE_NETINET_IN_H_FALSE
='#'
25549 GL_GENERATE_NETINET_IN_H_TRUE
='#'
25550 GL_GENERATE_NETINET_IN_H_FALSE
=
25564 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
25570 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
25571 if ${gl_cv_func_open_slash+:} false
; then :
25572 $as_echo_n "(cached) " >&6
25574 # Assume that if we have lstat, we can also check symlinks.
25575 if test $ac_cv_func_lstat = yes; then
25577 ln -s conftest.tmp conftest.lnk
25579 if test "$cross_compiling" = yes; then :
25582 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
25583 gl_cv_func_open_slash
="guessing no" ;;
25585 gl_cv_func_open_slash
="guessing yes" ;;
25589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25590 /* end confdefs.h. */
25594 # include <unistd.h>
25604 if (open ("conftest.lnk/", O_RDONLY) != -1)
25607 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
25612 if ac_fn_c_try_run
"$LINENO"; then :
25613 gl_cv_func_open_slash
=yes
25615 gl_cv_func_open_slash
=no
25617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25618 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25621 rm -f conftest.sl conftest.tmp conftest.lnk
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
25625 $as_echo "$gl_cv_func_open_slash" >&6; }
25626 case "$gl_cv_func_open_slash" in
25629 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
25634 case "$gl_cv_func_open_slash" in
25642 if test $REPLACE_OPEN = 0; then
25646 if test $ac_cv_func_fchdir = no
; then
25650 if test $HAVE_FCHDIR = 0; then
25657 if test $REPLACE_OPEN = 1; then
25666 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
25684 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
25694 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
25698 # Solaris 10 lacks O_CLOEXEC.
25699 # Solaris 9 has *at functions, but uniformly mishandles trailing
25700 # slash in all of them.
25708 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
25717 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
25726 cat >>confdefs.h
<<_ACEOF
25727 #define GNULIB_OPENAT 1
25741 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
25748 for ac_func
in opendir
25750 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
25751 if test "x$ac_cv_func_opendir" = xyes
; then :
25752 cat >>confdefs.h
<<_ACEOF
25753 #define HAVE_OPENDIR 1
25759 if test $ac_cv_func_opendir = no
; then
25766 if test $ac_cv_func_fchdir = no
; then
25770 if test $HAVE_FCHDIR = 0; then
25771 if test $HAVE_OPENDIR = 1; then
25776 case $host_os,$HAVE_OPENDIR in
25778 REPLACE_OPENDIR
=1;;
25781 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
25790 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
25804 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
25815 if test $ac_cv_func_pipe != yes; then
25819 if test $HAVE_PIPE = 0; then
25828 gl_LIBOBJS
="$gl_LIBOBJS pipe.$ac_objext"
25842 $as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h
25850 for ac_func
in rawmemchr
25852 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
25853 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
25854 cat >>confdefs.h
<<_ACEOF
25855 #define HAVE_RAWMEMCHR 1
25861 if test $ac_cv_func_rawmemchr = no
; then
25865 if test $HAVE_RAWMEMCHR = 0; then
25874 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
25889 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
25896 for ac_func
in readdir
25898 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
25899 if test "x$ac_cv_func_readdir" = xyes
; then :
25900 cat >>confdefs.h
<<_ACEOF
25901 #define HAVE_READDIR 1
25907 if test $ac_cv_func_readdir = no
; then
25911 if test $HAVE_READDIR = 0; then
25920 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
25934 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
25941 if test $ac_cv_func_readlink = no
; then
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25945 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25946 if ${gl_cv_decl_readlink_works+:} false
; then :
25947 $as_echo_n "(cached) " >&6
25949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25950 /* end confdefs.h. */
25951 #include <unistd.h>
25952 /* Cause compilation failure if original declaration has wrong type. */
25953 ssize_t readlink (const char *, char *, size_t);
25962 if ac_fn_c_try_compile
"$LINENO"; then :
25963 gl_cv_decl_readlink_works
=yes
25965 gl_cv_decl_readlink_works
=no
25967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25970 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25972 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25973 if ${gl_cv_func_readlink_trailing_slash+:} false
; then :
25974 $as_echo_n "(cached) " >&6
25976 # We have readlink, so assume ln -s works.
25977 ln -s conftest.no-such conftest.link
25978 ln -s conftest.link conftest.lnk2
25979 if test "$cross_compiling" = yes; then :
25981 # Guess yes on Linux or glibc systems.
25982 linux-
* | linux |
*-gnu* | gnu
*)
25983 gl_cv_func_readlink_trailing_slash
="guessing yes" ;;
25984 # Guess no on AIX or HP-UX.
25986 gl_cv_func_readlink_trailing_slash
="guessing no" ;;
25987 # If we don't know, obey --enable-cross-guesses.
25989 gl_cv_func_readlink_trailing_slash
="$gl_cross_guess_normal" ;;
25993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25994 /* end confdefs.h. */
25995 #include <unistd.h>
26001 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
26006 if ac_fn_c_try_run
"$LINENO"; then :
26007 gl_cv_func_readlink_trailing_slash
=yes
26009 gl_cv_func_readlink_trailing_slash
=no
26011 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26012 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26015 rm -f conftest.link conftest.lnk2
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5
26018 $as_echo "$gl_cv_func_readlink_trailing_slash" >&6; }
26019 case "$gl_cv_func_readlink_trailing_slash" in
26021 if test "$gl_cv_decl_readlink_works" != yes; then
26027 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5
26034 $as_echo_n "checking whether readlink truncates results correctly... " >&6; }
26035 if ${gl_cv_func_readlink_truncate+:} false
; then :
26036 $as_echo_n "(cached) " >&6
26038 # We have readlink, so assume ln -s works.
26039 ln -s ab conftest.link
26040 if test "$cross_compiling" = yes; then :
26042 # Guess yes on Linux or glibc systems.
26043 linux-
* | linux |
*-gnu* | gnu
*)
26044 gl_cv_func_readlink_truncate
="guessing yes" ;;
26045 # Guess no on AIX or HP-UX.
26047 gl_cv_func_readlink_truncate
="guessing no" ;;
26048 # If we don't know, obey --enable-cross-guesses.
26050 gl_cv_func_readlink_truncate
="$gl_cross_guess_normal" ;;
26054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26055 /* end confdefs.h. */
26056 #include <unistd.h>
26062 return readlink ("conftest.link", &c, 1) != 1;
26067 if ac_fn_c_try_run
"$LINENO"; then :
26068 gl_cv_func_readlink_truncate
=yes
26070 gl_cv_func_readlink_truncate
=no
26072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26073 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26076 rm -f conftest.link conftest.lnk2
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5
26079 $as_echo "$gl_cv_func_readlink_truncate" >&6; }
26080 case $gl_cv_func_readlink_truncate in
26082 if test "$gl_cv_decl_readlink_works" != yes; then
26088 $as_echo "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h
26095 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
26104 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
26121 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
26128 if test $gl_cv_func_malloc_posix = yes; then
26130 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
26136 if test $REPLACE_REALLOC = 1; then
26145 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
26153 GNULIB_REALLOC_POSIX
=1
26159 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
26169 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
26170 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
26171 $as_echo_n "(cached) " >&6
26173 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
26174 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
26175 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26176 # Assume that if we have lstat, we can also check symlinks.
26177 if test $ac_cv_func_lstat = yes; then
26178 ln -s conftest.f conftest.lnk
26180 if test "$cross_compiling" = yes; then :
26182 # Guess yes on Linux systems.
26183 linux-
* | linux
) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
26184 # Guess yes on glibc systems.
26185 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
26186 # Guess no on native Windows.
26187 mingw
*) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
26188 # If we don't know, obey --enable-cross-guesses.
26189 *) gl_cv_func_rename_slash_dst_works
="$gl_cross_guess_normal" ;;
26193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26194 /* end confdefs.h. */
26196 # include <stdio.h>
26197 # include <stdlib.h>
26203 if (rename ("conftest.f1", "conftest.f2/") == 0)
26205 if (rename ("conftest.d1", "conftest.d2/") != 0)
26208 if (rename ("conftest.f", "conftest.lnk/") == 0)
26217 if ac_fn_c_try_run
"$LINENO"; then :
26218 gl_cv_func_rename_slash_dst_works
=yes
26220 gl_cv_func_rename_slash_dst_works
=no
26222 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26223 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26226 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
26230 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
26231 case "$gl_cv_func_rename_slash_dst_works" in
26236 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
26242 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
26243 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
26244 $as_echo_n "(cached) " >&6
26246 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
26247 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
26248 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26249 # Assume that if we have lstat, we can also check symlinks.
26250 if test $ac_cv_func_lstat = yes; then
26251 ln -s conftest.f conftest.lnk
26253 if test "$cross_compiling" = yes; then :
26255 # Guess yes on Linux systems.
26256 linux-
* | linux
) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26257 # Guess yes on glibc systems.
26258 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26259 # Guess yes on native Windows.
26260 mingw
*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26261 # If we don't know, obey --enable-cross-guesses.
26262 *) gl_cv_func_rename_slash_src_works
="$gl_cross_guess_normal" ;;
26266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26267 /* end confdefs.h. */
26269 # include <stdio.h>
26270 # include <stdlib.h>
26276 if (rename ("conftest.f1/", "conftest.d3") == 0)
26278 if (rename ("conftest.d1/", "conftest.d2") != 0)
26281 if (rename ("conftest.lnk/", "conftest.f") == 0)
26290 if ac_fn_c_try_run
"$LINENO"; then :
26291 gl_cv_func_rename_slash_src_works
=yes
26293 gl_cv_func_rename_slash_src_works
=no
26295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26296 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26299 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
26303 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
26304 case "$gl_cv_func_rename_slash_src_works" in
26309 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
26316 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
26317 if ${gl_cv_func_rename_link_works+:} false
; then :
26318 $as_echo_n "(cached) " >&6
26320 if test $ac_cv_func_link = yes; then
26321 if test $cross_compiling != yes; then
26322 rm -rf conftest.f conftest.f1 conftest.f2
26323 if touch conftest.f conftest.f2
&& ln conftest.f conftest.f1
&&
26324 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
26325 if test "$cross_compiling" = yes; then :
26329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26330 /* end confdefs.h. */
26332 # include <errno.h>
26333 # include <stdio.h>
26334 # include <stdlib.h>
26335 # include <unistd.h>
26344 if (rename ("conftest.f", "conftest.f1"))
26346 if (unlink ("conftest.f1"))
26349 /* Allow either the POSIX-required behavior, where the
26350 previous rename kept conftest.f, or the (better) NetBSD
26351 behavior, where it removed conftest.f. */
26352 if (rename ("conftest.f", "conftest.f") != 0
26353 && errno != ENOENT)
26356 if (rename ("conftest.f1", "conftest.f1") == 0)
26358 if (rename ("conftest.f2", "conftest.f2") != 0)
26366 if ac_fn_c_try_run
"$LINENO"; then :
26367 gl_cv_func_rename_link_works
=yes
26369 gl_cv_func_rename_link_works
=no
26371 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26372 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26376 gl_cv_func_rename_link_works
="guessing no"
26378 rm -rf conftest.f conftest.f1 conftest.f2
26381 # Guess yes on Linux systems.
26382 linux-
* | linux
) gl_cv_func_rename_link_works
="guessing yes" ;;
26383 # Guess yes on glibc systems.
26384 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
26385 # Guess yes on native Windows.
26386 mingw
*) gl_cv_func_rename_link_works
="guessing yes" ;;
26387 # If we don't know, obey --enable-cross-guesses.
26388 *) gl_cv_func_rename_link_works
="$gl_cross_guess_normal" ;;
26392 gl_cv_func_rename_link_works
=yes
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
26397 $as_echo "$gl_cv_func_rename_link_works" >&6; }
26398 case "$gl_cv_func_rename_link_works" in
26403 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
26409 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
26410 if ${gl_cv_func_rename_dest_works+:} false
; then :
26411 $as_echo_n "(cached) " >&6
26413 rm -rf conftest.f conftest.d1 conftest.d2
26414 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
26415 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26416 if test "$cross_compiling" = yes; then :
26418 # Guess yes on Linux systems.
26419 linux-
* | linux
) gl_cv_func_rename_dest_works
="guessing yes" ;;
26420 # Guess yes on glibc systems.
26421 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
26422 # Guess no on native Windows.
26423 mingw
*) gl_cv_func_rename_dest_works
="guessing no" ;;
26424 # If we don't know, obey --enable-cross-guesses.
26425 *) gl_cv_func_rename_dest_works
="$gl_cross_guess_normal" ;;
26429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26430 /* end confdefs.h. */
26432 # include <stdio.h>
26433 # include <stdlib.h>
26439 if (rename ("conftest.d1", "conftest.d2") != 0)
26441 if (rename ("conftest.d2", "conftest.f") == 0)
26449 if ac_fn_c_try_run
"$LINENO"; then :
26450 gl_cv_func_rename_dest_works
=yes
26452 gl_cv_func_rename_dest_works
=no
26454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26458 rm -rf conftest.f conftest.d1 conftest.d2
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
26462 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
26463 case "$gl_cv_func_rename_dest_works" in
26468 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
26473 if test $REPLACE_RENAME = 1; then
26482 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
26496 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
26503 for ac_func
in rewinddir
26505 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
26506 if test "x$ac_cv_func_rewinddir" = xyes
; then :
26507 cat >>confdefs.h
<<_ACEOF
26508 #define HAVE_REWINDDIR 1
26514 if test $ac_cv_func_rewinddir = no
; then
26518 if test $HAVE_REWINDDIR = 0; then
26527 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
26541 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
26549 $as_echo_n "checking whether rmdir works... " >&6; }
26550 if ${gl_cv_func_rmdir_works+:} false
; then :
26551 $as_echo_n "(cached) " >&6
26554 touch conftest.
file
26555 if test "$cross_compiling" = yes; then :
26557 # Guess yes on Linux systems.
26558 linux-
* | linux
) gl_cv_func_rmdir_works
="guessing yes" ;;
26559 # Guess yes on glibc systems.
26560 *-gnu* | gnu
*) gl_cv_func_rmdir_works
="guessing yes" ;;
26561 # Guess no on native Windows.
26562 mingw
*) gl_cv_func_rmdir_works
="guessing no" ;;
26563 # If we don't know, obey --enable-cross-guesses.
26564 *) gl_cv_func_rmdir_works
="$gl_cross_guess_normal" ;;
26568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26569 /* end confdefs.h. */
26573 # include <unistd.h>
26574 #else /* on Windows with MSVC */
26575 # include <direct.h>
26585 if (!rmdir ("conftest.file/"))
26587 else if (errno != ENOTDIR)
26589 if (!rmdir ("conftest.dir/./"))
26597 if ac_fn_c_try_run
"$LINENO"; then :
26598 gl_cv_func_rmdir_works
=yes
26600 gl_cv_func_rmdir_works
=no
26602 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26603 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26606 rm -rf conftest.dir conftest.
file
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
26609 $as_echo "$gl_cv_func_rmdir_works" >&6; }
26610 case "$gl_cv_func_rmdir_works" in
26617 if test $REPLACE_RMDIR = 1; then
26626 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
26640 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
26649 if test $ac_cv_func_setenv = no
; then
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
26653 $as_echo_n "checking whether setenv validates arguments... " >&6; }
26654 if ${gl_cv_func_setenv_works+:} false
; then :
26655 $as_echo_n "(cached) " >&6
26657 if test "$cross_compiling" = yes; then :
26659 # Guess yes on glibc systems.
26660 *-gnu* | gnu
*) gl_cv_func_setenv_works
="guessing yes" ;;
26661 # Guess yes on musl systems.
26662 *-musl*) gl_cv_func_setenv_works
="guessing yes" ;;
26663 # If we don't know, obey --enable-cross-guesses.
26664 *) gl_cv_func_setenv_works
="$gl_cross_guess_normal" ;;
26668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26669 /* end confdefs.h. */
26671 #include <stdlib.h>
26673 #include <string.h>
26681 if (setenv ("", "", 0) != -1)
26683 else if (errno != EINVAL)
26687 if (setenv ("a", "=", 1) != 0)
26689 else if (strcmp (getenv ("a"), "=") != 0)
26698 if ac_fn_c_try_run
"$LINENO"; then :
26699 gl_cv_func_setenv_works
=yes
26701 gl_cv_func_setenv_works
=no
26703 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26704 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
26709 $as_echo "$gl_cv_func_setenv_works" >&6; }
26710 case "$gl_cv_func_setenv_works" in
26718 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
26727 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
26741 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
26751 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
26752 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
26753 $as_echo_n "(cached) " >&6
26756 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
26757 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
26758 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
26759 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
26760 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
26761 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
26762 # If we don't know, obey --enable-cross-guesses.
26764 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
26769 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
26773 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
26774 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
26778 case "$gl_cv_func_setlocale_null_all_mtsafe" in
26779 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
26780 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
26783 cat >>confdefs.h
<<_ACEOF
26784 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
26789 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
26790 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
26791 $as_echo_n "(cached) " >&6
26794 # Guess no on OpenBSD, AIX.
26796 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
26797 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
26798 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
26799 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
26800 # If we don't know, obey --enable-cross-guesses.
26802 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
26807 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
26811 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
26812 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
26816 case "$gl_cv_func_setlocale_null_one_mtsafe" in
26817 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
26818 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
26821 cat >>confdefs.h
<<_ACEOF
26822 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
26826 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
26828 mingw
*) LIB_SETLOCALE_NULL
= ;;
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
26833 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
26834 if ${gl_cv_have_weak+:} false
; then :
26835 $as_echo_n "(cached) " >&6
26838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26839 /* end confdefs.h. */
26840 extern void xyzzy ();
26850 if ac_fn_c_try_link
"$LINENO"; then :
26851 gl_cv_have_weak
=maybe
26853 rm -f core conftest.err conftest.
$ac_objext \
26854 conftest
$ac_exeext conftest.
$ac_ext
26855 if test $gl_cv_have_weak = maybe
; then
26856 if test "$cross_compiling" = yes; then :
26857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26858 /* end confdefs.h. */
26860 Extensible Linking Format
26864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26865 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
26866 gl_cv_have_weak
="guessing yes"
26868 gl_cv_have_weak
="guessing no"
26874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26875 /* end confdefs.h. */
26881 return (fputs == NULL);
26884 if ac_fn_c_try_run
"$LINENO"; then :
26885 gl_cv_have_weak
=yes
26889 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26890 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26894 case " $LDFLAGS " in
26895 *" -static "*) gl_cv_have_weak
=no
;;
26897 case "$gl_cv_have_weak" in
26900 freebsd
* | dragonfly
*)
26902 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
26903 cat <<EOF > conftest2.c
26904 #include <pthread.h>
26905 #pragma weak pthread_mutexattr_gettype
26908 return (pthread_mutexattr_gettype != NULL);
26911 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
26912 || gl_cv_have_weak
=no
26913 rm -f conftest1.c libempty.so conftest2.c conftest
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
26921 $as_echo "$gl_cv_have_weak" >&6; }
26922 case "$gl_cv_have_weak" in
26925 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
26930 case "$gl_cv_have_weak" in
26931 *yes) LIB_SETLOCALE_NULL
= ;;
26932 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
26937 LIB_SETLOCALE_NULL
=
26941 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
26950 gl_LIBOBJS
="$gl_LIBOBJS setlocale-lock.$ac_objext"
26957 if test -n "$GCC"; then
26958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
26959 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
26960 if ${gl_cv_cc_vis_werror+:} false
; then :
26961 $as_echo_n "(cached) " >&6
26963 gl_save_CFLAGS
="$CFLAGS"
26964 CFLAGS
="$CFLAGS -Werror"
26965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26966 /* end confdefs.h. */
26976 if ac_fn_c_try_compile
"$LINENO"; then :
26977 gl_cv_cc_vis_werror
=yes
26979 gl_cv_cc_vis_werror
=no
26981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26982 CFLAGS
="$gl_save_CFLAGS"
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
26986 $as_echo "$gl_cv_cc_vis_werror" >&6; }
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
26988 $as_echo_n "checking for simple visibility declarations... " >&6; }
26989 if ${gl_cv_cc_visibility+:} false
; then :
26990 $as_echo_n "(cached) " >&6
26992 gl_save_CFLAGS
="$CFLAGS"
26993 CFLAGS
="$CFLAGS -fvisibility=hidden"
26994 if test $gl_cv_cc_vis_werror = yes; then
26995 CFLAGS
="$CFLAGS -Werror"
26997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26998 /* end confdefs.h. */
26999 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
27000 extern __attribute__((__visibility__("default"))) int exportedvar;
27001 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
27002 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
27003 void dummyfunc (void) {}
27013 if ac_fn_c_try_compile
"$LINENO"; then :
27014 gl_cv_cc_visibility
=yes
27016 gl_cv_cc_visibility
=no
27018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27019 CFLAGS
="$gl_save_CFLAGS"
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
27023 $as_echo "$gl_cv_cc_visibility" >&6; }
27024 if test $gl_cv_cc_visibility = yes; then
27025 CFLAG_VISIBILITY
="-fvisibility=hidden"
27032 cat >>confdefs.h
<<_ACEOF
27033 #define HAVE_VISIBILITY $HAVE_VISIBILITY
27044 GNULIB_SETLOCALE_NULL
=1
27050 $as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
27065 if test $gl_cv_have_include_next = yes; then
27066 gl_cv_next_signal_h
='<'signal.h
'>'
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
27069 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
27070 if ${gl_cv_next_signal_h+:} false
; then :
27071 $as_echo_n "(cached) " >&6
27076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27077 /* end confdefs.h. */
27078 #include <signal.h>
27081 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27082 *) gl_absname_cpp
="$ac_cpp" ;;
27087 gl_dirsep_regex
='[/\\]'
27090 gl_dirsep_regex
='\/'
27093 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27094 gl_header_literal_regex
=`echo 'signal.h' \
27095 | sed -e "$gl_make_literal_regex_sed"`
27096 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27097 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27103 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27104 sed -n "$gl_absolute_header_sed"`
27106 gl_header
=$gl_cv_absolute_signal_h
27107 gl_cv_next_signal_h
='"'$gl_header'"'
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
27112 $as_echo "$gl_cv_next_signal_h" >&6; }
27114 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
27116 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27117 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27118 gl_next_as_first_directive
='<'signal.h
'>'
27120 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27121 gl_next_as_first_directive
=$gl_cv_next_signal_h
27123 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
27129 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
27130 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
27131 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
27132 #include <signal.h>
27135 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
27138 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
27147 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
27148 #include <signal.h>
27151 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
27154 HAVE_SIGHANDLER_T
=0
27164 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
27165 /* <sys/types.h> is not needed according to POSIX, but the
27166 <sys/socket.h> in i386-unknown-freebsd4.10 and
27167 powerpc-apple-darwin5.5 required it. */
27168 #include <sys/types.h>
27169 #if HAVE_SYS_SOCKET_H
27170 # include <sys/socket.h>
27171 #elif HAVE_WS2TCPIP_H
27172 # include <ws2tcpip.h>
27176 if test "x$ac_cv_type_socklen_t" = xyes
; then :
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
27180 $as_echo_n "checking for socklen_t equivalent... " >&6; }
27181 if ${gl_cv_socklen_t_equiv+:} false
; then :
27182 $as_echo_n "(cached) " >&6
27184 # Systems have either "struct sockaddr *" or
27185 # "void *" as the second argument to getpeername
27186 gl_cv_socklen_t_equiv
=
27187 for arg2
in "struct sockaddr" void
; do
27188 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
27189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27190 /* end confdefs.h. */
27191 #include <sys/types.h>
27192 #include <sys/socket.h>
27194 int getpeername (int, $arg2 *, $t *);
27199 getpeername (0, 0, &len);
27204 if ac_fn_c_try_compile
"$LINENO"; then :
27205 gl_cv_socklen_t_equiv
="$t"
27207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27208 test "$gl_cv_socklen_t_equiv" != "" && break
27210 test "$gl_cv_socklen_t_equiv" != "" && break
27212 if test "$gl_cv_socklen_t_equiv" = ""; then
27213 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
27218 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
27220 cat >>confdefs.h
<<_ACEOF
27221 #define socklen_t $gl_cv_socklen_t_equiv
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
27228 $as_echo_n "checking for ssize_t... " >&6; }
27229 if ${gt_cv_ssize_t+:} false
; then :
27230 $as_echo_n "(cached) " >&6
27232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27233 /* end confdefs.h. */
27234 #include <sys/types.h>
27238 int x = sizeof (ssize_t *) + sizeof (ssize_t);
27244 if ac_fn_c_try_compile
"$LINENO"; then :
27249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
27252 $as_echo "$gt_cv_ssize_t" >&6; }
27253 if test $gt_cv_ssize_t = no
; then
27255 $as_echo "#define ssize_t int" >>confdefs.h
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
27268 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
27269 if ${gl_cv_func_stat_file_slash+:} false
; then :
27270 $as_echo_n "(cached) " >&6
27273 # Assume that if we have lstat, we can also check symlinks.
27274 if test $ac_cv_func_lstat = yes; then
27275 ln -s conftest.tmp conftest.lnk
27277 if test "$cross_compiling" = yes; then :
27279 # Guess yes on Linux systems.
27280 linux-
* | linux
) gl_cv_func_stat_file_slash
="guessing yes" ;;
27281 # Guess yes on glibc systems.
27282 *-gnu* | gnu
*) gl_cv_func_stat_file_slash
="guessing yes" ;;
27283 # If we don't know, obey --enable-cross-guesses.
27284 *) gl_cv_func_stat_file_slash
="$gl_cross_guess_normal" ;;
27288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27289 /* end confdefs.h. */
27290 #include <sys/stat.h>
27297 if (!stat ("conftest.tmp/", &st))
27300 if (!stat ("conftest.lnk/", &st))
27309 if ac_fn_c_try_run
"$LINENO"; then :
27310 gl_cv_func_stat_file_slash
=yes
27312 gl_cv_func_stat_file_slash
=no
27314 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27315 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27318 rm -f conftest.tmp conftest.lnk
27320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
27321 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
27322 case $gl_cv_func_stat_file_slash in
27326 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
27336 if test $REPLACE_STAT = 1; then
27345 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
27357 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
27378 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
27386 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
27387 #include <sys/stat.h>
27389 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
27391 cat >>confdefs.h
<<_ACEOF
27392 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
27396 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
27397 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
27398 $as_echo_n "(cached) " >&6
27400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27401 /* end confdefs.h. */
27403 #include <sys/types.h>
27404 #include <sys/stat.h>
27405 #if HAVE_SYS_TIME_H
27406 # include <sys/time.h>
27409 struct timespec ts;
27422 if ac_fn_c_try_compile
"$LINENO"; then :
27423 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
27425 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
27427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
27430 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
27431 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
27433 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
27437 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
27438 #include <sys/stat.h>
27440 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
27442 cat >>confdefs.h
<<_ACEOF
27443 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
27448 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
27449 #include <sys/stat.h>
27451 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
27453 cat >>confdefs.h
<<_ACEOF
27454 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
27459 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
27460 #include <sys/stat.h>
27462 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
27464 cat >>confdefs.h
<<_ACEOF
27465 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
27481 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
27482 #include <sys/stat.h>
27484 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
; then :
27486 cat >>confdefs.h
<<_ACEOF
27487 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
27492 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
27493 #include <sys/stat.h>
27495 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
; then :
27497 cat >>confdefs.h
<<_ACEOF
27498 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
27503 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
27504 #include <sys/stat.h>
27506 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
; then :
27508 cat >>confdefs.h
<<_ACEOF
27509 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
27522 $as_echo_n "checking for working stdalign.h... " >&6; }
27523 if ${gl_cv_header_working_stdalign_h+:} false
; then :
27524 $as_echo_n "(cached) " >&6
27526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27527 /* end confdefs.h. */
27528 #include <stdalign.h>
27529 #include <stddef.h>
27531 /* Test that alignof yields a result consistent with offsetof.
27532 This catches GCC bug 52023
27533 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
27535 template <class t> struct alignof_helper { char a; t b; };
27536 # define ao(type) offsetof (alignof_helper<type>, b)
27538 # define ao(type) offsetof (struct { char a; type b; }, b)
27540 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
27541 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
27542 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
27544 /* Test _Alignas only on platforms where gnulib can help. */
27546 ((defined __cplusplus && 201103 <= __cplusplus) \
27547 || (defined __APPLE__ && defined __MACH__ \
27548 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
27550 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
27551 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
27552 || 1300 <= _MSC_VER)
27553 struct alignas_test { char c; char alignas (8) alignas_8; };
27554 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
27566 if ac_fn_c_try_compile
"$LINENO"; then :
27567 gl_cv_header_working_stdalign_h
=yes
27569 gl_cv_header_working_stdalign_h
=no
27571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
27574 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
27576 if test $gl_cv_header_working_stdalign_h = yes; then
27579 STDALIGN_H
='stdalign.h'
27583 if test -n "$STDALIGN_H"; then
27584 GL_GENERATE_STDALIGN_H_TRUE
=
27585 GL_GENERATE_STDALIGN_H_FALSE
='#'
27587 GL_GENERATE_STDALIGN_H_TRUE
='#'
27588 GL_GENERATE_STDALIGN_H_FALSE
=
27596 if test "$ac_cv_header_stdbool_h" = yes; then
27599 if test -z "$GCC"; then
27600 STDBOOL_H
='stdbool.h'
27610 STDBOOL_H
='stdbool.h'
27613 if test -n "$STDBOOL_H"; then
27614 GL_GENERATE_STDBOOL_H_TRUE
=
27615 GL_GENERATE_STDBOOL_H_FALSE
='#'
27617 GL_GENERATE_STDBOOL_H_TRUE
='#'
27618 GL_GENERATE_STDBOOL_H_FALSE
=
27622 if test "$ac_cv_type__Bool" = yes; then
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
27638 $as_echo_n "checking for good max_align_t... " >&6; }
27639 if ${gl_cv_type_max_align_t+:} false
; then :
27640 $as_echo_n "(cached) " >&6
27642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27643 /* end confdefs.h. */
27644 #include <stddef.h>
27645 unsigned int s = sizeof (max_align_t);
27646 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
27647 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
27648 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
27650 typedef struct { char a; max_align_t b; } max_helper;
27651 typedef struct { char a; long b; } long_helper;
27652 typedef struct { char a; double b; } double_helper;
27653 typedef struct { char a; long double b; } long_double_helper;
27654 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
27655 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
27656 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
27666 if ac_fn_c_try_compile
"$LINENO"; then :
27667 gl_cv_type_max_align_t
=yes
27669 gl_cv_type_max_align_t
=no
27671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
27675 $as_echo "$gl_cv_type_max_align_t" >&6; }
27676 if test $gl_cv_type_max_align_t = no
; then
27681 if test $gt_cv_c_wchar_t = no
; then
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
27687 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
27688 if ${gl_cv_decl_null_works+:} false
; then :
27689 $as_echo_n "(cached) " >&6
27691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27692 /* end confdefs.h. */
27693 #include <stddef.h>
27694 int test[2 * (sizeof NULL == sizeof (void *)) -1];
27704 if ac_fn_c_try_compile
"$LINENO"; then :
27705 gl_cv_decl_null_works
=yes
27707 gl_cv_decl_null_works
=no
27709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
27712 $as_echo "$gl_cv_decl_null_works" >&6; }
27713 if test $gl_cv_decl_null_works = no
; then
27719 if test -n "$STDDEF_H"; then
27720 GL_GENERATE_STDDEF_H_TRUE
=
27721 GL_GENERATE_STDDEF_H_FALSE
='#'
27723 GL_GENERATE_STDDEF_H_TRUE
='#'
27724 GL_GENERATE_STDDEF_H_FALSE
=
27727 if test -n "$STDDEF_H"; then
27736 if test $gl_cv_have_include_next = yes; then
27737 gl_cv_next_stddef_h
='<'stddef.h
'>'
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
27740 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
27741 if ${gl_cv_next_stddef_h+:} false
; then :
27742 $as_echo_n "(cached) " >&6
27747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27748 /* end confdefs.h. */
27749 #include <stddef.h>
27752 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27753 *) gl_absname_cpp
="$ac_cpp" ;;
27758 gl_dirsep_regex
='[/\\]'
27761 gl_dirsep_regex
='\/'
27764 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27765 gl_header_literal_regex
=`echo 'stddef.h' \
27766 | sed -e "$gl_make_literal_regex_sed"`
27767 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27768 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27774 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27775 sed -n "$gl_absolute_header_sed"`
27777 gl_header
=$gl_cv_absolute_stddef_h
27778 gl_cv_next_stddef_h
='"'$gl_header'"'
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
27783 $as_echo "$gl_cv_next_stddef_h" >&6; }
27785 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
27787 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27789 gl_next_as_first_directive
='<'stddef.h
'>'
27791 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27792 gl_next_as_first_directive
=$gl_cv_next_stddef_h
27794 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
27804 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
27815 if test $gl_cv_have_include_next = yes; then
27816 gl_cv_next_stdio_h
='<'stdio.h
'>'
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
27819 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
27820 if ${gl_cv_next_stdio_h+:} false
; then :
27821 $as_echo_n "(cached) " >&6
27826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27827 /* end confdefs.h. */
27831 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27832 *) gl_absname_cpp
="$ac_cpp" ;;
27837 gl_dirsep_regex
='[/\\]'
27840 gl_dirsep_regex
='\/'
27843 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27844 gl_header_literal_regex
=`echo 'stdio.h' \
27845 | sed -e "$gl_make_literal_regex_sed"`
27846 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27847 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27853 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27854 sed -n "$gl_absolute_header_sed"`
27856 gl_header
=$gl_cv_absolute_stdio_h
27857 gl_cv_next_stdio_h
='"'$gl_header'"'
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
27862 $as_echo "$gl_cv_next_stdio_h" >&6; }
27864 NEXT_STDIO_H
=$gl_cv_next_stdio_h
27866 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27867 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27868 gl_next_as_first_directive
='<'stdio.h
'>'
27870 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27871 gl_next_as_first_directive
=$gl_cv_next_stdio_h
27873 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
27879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
27880 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
27881 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
27882 $as_echo_n "(cached) " >&6
27884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27885 /* end confdefs.h. */
27887 #define __STDC_FORMAT_MACROS 1
27889 #include <inttypes.h>
27890 /* For non-mingw systems, compilation will trivially succeed.
27891 For mingw, compilation will succeed for older mingw (system
27892 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
27893 #if (defined _WIN32 && ! defined __CYGWIN__) && \
27894 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
27895 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
27906 if ac_fn_c_try_compile
"$LINENO"; then :
27907 gl_cv_func_printf_attribute_flavor
=system
27909 gl_cv_func_printf_attribute_flavor
=gnu
27911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
27914 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
27915 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
27917 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
27924 cat >>confdefs.h
<<_ACEOF
27925 #define GNULIB_FSCANF 1
27932 cat >>confdefs.h
<<_ACEOF
27933 #define GNULIB_SCANF 1
27964 if test $ac_cv_have_decl_fcloseall = no
; then
27965 HAVE_DECL_FCLOSEALL
=0
27978 if test $gl_cv_have_include_next = yes; then
27979 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
27982 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
27983 if ${gl_cv_next_stdlib_h+:} false
; then :
27984 $as_echo_n "(cached) " >&6
27989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27990 /* end confdefs.h. */
27991 #include <stdlib.h>
27994 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27995 *) gl_absname_cpp
="$ac_cpp" ;;
28000 gl_dirsep_regex
='[/\\]'
28003 gl_dirsep_regex
='\/'
28006 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28007 gl_header_literal_regex
=`echo 'stdlib.h' \
28008 | sed -e "$gl_make_literal_regex_sed"`
28009 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28010 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28016 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28017 sed -n "$gl_absolute_header_sed"`
28019 gl_header
=$gl_cv_absolute_stdlib_h
28020 gl_cv_next_stdlib_h
='"'$gl_header'"'
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
28025 $as_echo "$gl_cv_next_stdlib_h" >&6; }
28027 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
28029 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28031 gl_next_as_first_directive
='<'stdlib.h
'>'
28033 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28034 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
28036 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
28049 if test $ac_cv_have_decl_ecvt = no
; then
28053 if test $ac_cv_have_decl_fcvt = no
; then
28057 if test $ac_cv_have_decl_gcvt = no
; then
28065 for ac_func
in strchrnul
28067 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
28068 if test "x$ac_cv_func_strchrnul" = xyes
; then :
28069 cat >>confdefs.h
<<_ACEOF
28070 #define HAVE_STRCHRNUL 1
28076 if test $ac_cv_func_strchrnul = no
; then
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
28080 $as_echo_n "checking whether strchrnul works... " >&6; }
28081 if ${gl_cv_func_strchrnul_works+:} false
; then :
28082 $as_echo_n "(cached) " >&6
28084 if test "$cross_compiling" = yes; then :
28085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28086 /* end confdefs.h. */
28088 #if defined __CYGWIN__
28089 #include <cygwin/version.h>
28090 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
28098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28099 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28100 gl_cv_func_strchrnul_works
="guessing yes"
28102 gl_cv_func_strchrnul_works
="guessing no"
28108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28109 /* end confdefs.h. */
28111 #include <string.h> /* for strchrnul */
28116 const char *buf = "a";
28117 return strchrnul (buf, 'b') != buf + 1;
28123 if ac_fn_c_try_run
"$LINENO"; then :
28124 gl_cv_func_strchrnul_works
=yes
28126 gl_cv_func_strchrnul_works
=no
28128 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28129 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
28135 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
28136 case "$gl_cv_func_strchrnul_works" in
28138 *) REPLACE_STRCHRNUL
=1 ;;
28142 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
28151 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
28166 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
28173 if test $gl_cv_func_malloc_posix != yes; then
28177 if test $ac_cv_have_decl_strdup = no
; then
28181 if test $REPLACE_STRDUP = 1; then
28190 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
28205 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
28216 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
28218 $as_echo_n "checking for working strerror function... " >&6; }
28219 if ${gl_cv_func_working_strerror+:} false
; then :
28220 $as_echo_n "(cached) " >&6
28222 if test "$cross_compiling" = yes; then :
28224 # Guess yes on glibc systems.
28225 *-gnu* | gnu
*) gl_cv_func_working_strerror
="guessing yes" ;;
28226 # Guess yes on musl systems.
28227 *-musl*) gl_cv_func_working_strerror
="guessing yes" ;;
28228 # If we don't know, obey --enable-cross-guesses.
28229 *) gl_cv_func_working_strerror
="$gl_cross_guess_normal" ;;
28233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28234 /* end confdefs.h. */
28235 #include <string.h>
28240 if (!*strerror (-2)) return 1;
28245 if ac_fn_c_try_run
"$LINENO"; then :
28246 gl_cv_func_working_strerror
=yes
28248 gl_cv_func_working_strerror
=no
28250 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28251 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
28257 $as_echo "$gl_cv_func_working_strerror" >&6; }
28258 case "$gl_cv_func_working_strerror" in
28265 case "$gl_cv_func_strerror_r_works" in
28266 *no
) REPLACE_STRERROR
=1 ;;
28273 if test $REPLACE_STRERROR = 1; then
28282 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
28287 cat >>confdefs.h
<<_ACEOF
28288 #define GNULIB_STRERROR 1
28303 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
28309 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
28318 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
28324 if test $ac_cv_header_sys_socket_h != yes; then
28325 for ac_header
in winsock2.h
28327 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28328 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
28329 cat >>confdefs.h
<<_ACEOF
28330 #define HAVE_WINSOCK2_H 1
28338 if test "$ac_cv_header_winsock2_h" = yes; then
28340 UNISTD_H_HAVE_WINSOCK2_H
=1
28341 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
28355 if test $ac_cv_have_decl_strerror_r = no
; then
28356 HAVE_DECL_STRERROR_R
=0
28359 if test $ac_cv_func_strerror_r = yes; then
28360 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
28361 if test $gl_cv_func_strerror_r_posix_signature = yes; then
28362 case "$gl_cv_func_strerror_r_works" in
28363 *no
) REPLACE_STRERROR_R
=1 ;;
28366 REPLACE_STRERROR_R
=1
28369 REPLACE_STRERROR_R
=1
28373 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
28382 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
28395 GNULIB_STRERROR_R
=1
28401 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
28407 cat >>confdefs.h
<<_ACEOF
28408 #define GNULIB_STRERROR_R_POSIX 1
28421 if test $ac_cv_have_decl_strnlen = no
; then
28422 HAVE_DECL_STRNLEN
=0
28425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
28426 $as_echo_n "checking for working strnlen... " >&6; }
28427 if ${ac_cv_func_strnlen_working+:} false
; then :
28428 $as_echo_n "(cached) " >&6
28430 if test "$cross_compiling" = yes; then :
28431 # Guess no on AIX systems, yes otherwise.
28433 aix
*) ac_cv_func_strnlen_working
=no
;;
28434 *) ac_cv_func_strnlen_working
=yes;;
28437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28438 /* end confdefs.h. */
28439 $ac_includes_default
28445 #define S_LEN (sizeof S - 1)
28447 /* At least one implementation is buggy: that of AIX 4.3 would
28448 give strnlen (S, 1) == 3. */
28451 for (i = 0; i < S_LEN + 1; ++i)
28453 int expected = i <= S_LEN ? i : S_LEN;
28454 if (strnlen (S, i) != expected)
28463 if ac_fn_c_try_run
"$LINENO"; then :
28464 ac_cv_func_strnlen_working
=yes
28466 ac_cv_func_strnlen_working
=no
28468 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28469 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
28474 $as_echo "$ac_cv_func_strnlen_working" >&6; }
28475 test $ac_cv_func_strnlen_working = no
&& :
28478 if test $ac_cv_func_strnlen_working = no
; then
28483 if test $HAVE_DECL_STRNLEN = 0 ||
test $REPLACE_STRNLEN = 1; then
28492 gl_LIBOBJS
="$gl_LIBOBJS strnlen.$ac_objext"
28507 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
28513 if test $REPLACE_STRSTR = 0; then
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
28515 $as_echo_n "checking whether strstr works in linear time... " >&6; }
28516 if ${gl_cv_func_strstr_linear+:} false
; then :
28517 $as_echo_n "(cached) " >&6
28519 if test "$cross_compiling" = yes; then :
28520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28521 /* end confdefs.h. */
28523 #include <features.h>
28524 #ifdef __GNU_LIBRARY__
28525 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
28526 && !(defined __i386__ || defined __x86_64__) \
28527 && !defined __UCLIBC__
28532 #include <cygwin/version.h>
28533 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
28539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28540 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28541 gl_cv_func_strstr_linear
="guessing yes"
28543 gl_cv_func_strstr_linear
="$gl_cross_guess_normal"
28549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28550 /* end confdefs.h. */
28553 /* z/OS does not deliver signals while strstr() is running (thanks to
28554 restrictions on its LE runtime), which prevents us from limiting the
28555 running time of this test. */
28556 # error "This test does not work properly on z/OS"
28558 #include <signal.h> /* for signal */
28559 #include <string.h> /* for strstr */
28560 #include <stdlib.h> /* for malloc */
28561 #include <unistd.h> /* for alarm */
28562 static void quit (int sig) { _exit (sig + 128); }
28569 size_t m = 1000000;
28570 char *haystack = (char *) malloc (2 * m + 2);
28571 char *needle = (char *) malloc (m + 2);
28572 /* Failure to compile this test due to missing alarm is okay,
28573 since all such platforms (mingw) also have quadratic strstr. */
28574 signal (SIGALRM, quit);
28576 /* Check for quadratic performance. */
28577 if (haystack && needle)
28579 memset (haystack, 'A', 2 * m);
28580 haystack[2 * m] = 'B';
28581 haystack[2 * m + 1] = 0;
28582 memset (needle, 'A', m);
28585 if (!strstr (haystack, needle))
28588 /* Free allocated memory, in case some sanitizer is watching. */
28597 if ac_fn_c_try_run
"$LINENO"; then :
28598 gl_cv_func_strstr_linear
=yes
28600 gl_cv_func_strstr_linear
=no
28602 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28603 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
28609 $as_echo "$gl_cv_func_strstr_linear" >&6; }
28610 case "$gl_cv_func_strstr_linear" in
28618 if test $REPLACE_STRSTR = 1; then
28627 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
28633 if test $REPLACE_MEMCHR = 1; then
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
28637 $as_echo_n "checking whether strstr works... " >&6; }
28638 if ${gl_cv_func_strstr_works_always+:} false
; then :
28639 $as_echo_n "(cached) " >&6
28641 if test "$cross_compiling" = yes; then :
28642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28643 /* end confdefs.h. */
28645 #ifdef __GNU_LIBRARY__
28646 #include <features.h>
28647 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
28648 || defined __UCLIBC__
28651 #elif defined __CYGWIN__
28652 #include <cygwin/version.h>
28653 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
28661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28662 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28663 gl_cv_func_strstr_works_always
="guessing yes"
28665 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
28671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28672 /* end confdefs.h. */
28674 #include <string.h> /* for strstr */
28675 #ifdef __GNU_LIBRARY__
28676 #include <features.h>
28677 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
28681 #define P "_EF_BF_BD"
28682 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
28683 #define NEEDLE P P P P P
28688 return !!strstr (HAYSTACK, NEEDLE);
28694 if ac_fn_c_try_run
"$LINENO"; then :
28695 gl_cv_func_strstr_works_always
=yes
28697 gl_cv_func_strstr_works_always
=no
28699 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28700 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
28706 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
28707 case "$gl_cv_func_strstr_works_always" in
28715 if test $REPLACE_STRSTR = 1; then
28724 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
28738 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
28746 for ac_func
in strtok_r
28748 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
28749 if test "x$ac_cv_func_strtok_r" = xyes
; then :
28750 cat >>confdefs.h
<<_ACEOF
28751 #define HAVE_STRTOK_R 1
28757 if test $ac_cv_func_strtok_r = yes; then
28759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
28760 $as_echo_n "checking whether strtok_r works... " >&6; }
28761 if ${gl_cv_func_strtok_r_works+:} false
; then :
28762 $as_echo_n "(cached) " >&6
28764 if test "$cross_compiling" = yes; then :
28766 # Guess no on glibc systems.
28767 *-gnu* | gnu
*) gl_cv_func_strtok_r_works
="guessing no" ;;
28768 # Guess yes on native Windows.
28769 mingw
*) gl_cv_func_strtok_r_works
="guessing yes" ;;
28770 *) gl_cv_func_strtok_r_works
="guessing yes" ;;
28774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28775 /* end confdefs.h. */
28777 #ifndef __OPTIMIZE__
28778 # define __OPTIMIZE__ 1
28780 #undef __OPTIMIZE_SIZE__
28781 #undef __NO_INLINE__
28782 #include <stdlib.h>
28783 #include <string.h>
28788 static const char dummy[] = "\177\01a";
28789 char delimiters[] = "xxxxxxxx";
28790 char *save_ptr = (char *) dummy;
28791 strtok_r (delimiters, "x", &save_ptr);
28792 strtok_r (NULL, "x", &save_ptr);
28800 if ac_fn_c_try_run
"$LINENO"; then :
28801 gl_cv_func_strtok_r_works
=yes
28803 gl_cv_func_strtok_r_works
=no
28805 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28806 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
28812 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
28813 case "$gl_cv_func_strtok_r_works" in
28815 UNDEFINE_STRTOK_R
=1
28822 if test $ac_cv_have_decl_strtok_r = no
; then
28823 HAVE_DECL_STRTOK_R
=0
28826 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
28835 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
28852 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
28867 if test $gl_cv_have_include_next = yes; then
28868 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
28871 $as_echo_n "checking absolute name of <sys/random.h>... " >&6; }
28872 if ${gl_cv_next_sys_random_h+:} false
; then :
28873 $as_echo_n "(cached) " >&6
28876 if test $ac_cv_header_sys_random_h = yes; then
28881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28882 /* end confdefs.h. */
28883 #include <sys/random.h>
28886 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28887 *) gl_absname_cpp
="$ac_cpp" ;;
28892 gl_dirsep_regex
='[/\\]'
28895 gl_dirsep_regex
='\/'
28898 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28899 gl_header_literal_regex
=`echo 'sys/random.h' \
28900 | sed -e "$gl_make_literal_regex_sed"`
28901 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28902 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28908 gl_cv_absolute_sys_random_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28909 sed -n "$gl_absolute_header_sed"`
28911 gl_header
=$gl_cv_absolute_sys_random_h
28912 gl_cv_next_sys_random_h
='"'$gl_header'"'
28914 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
28920 $as_echo "$gl_cv_next_sys_random_h" >&6; }
28922 NEXT_SYS_RANDOM_H
=$gl_cv_next_sys_random_h
28924 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28925 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28926 gl_next_as_first_directive
='<'sys
/random.h
'>'
28928 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28929 gl_next_as_first_directive
=$gl_cv_next_sys_random_h
28931 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
=$gl_next_as_first_directive
28936 if test $ac_cv_header_sys_random_h = yes; then
28937 HAVE_SYS_RANDOM_H
=1
28939 HAVE_SYS_RANDOM_H
=0
28944 if test $ac_cv_header_sys_random_h = yes; then
28945 UNISTD_H_HAVE_SYS_RANDOM_H
=1
28969 if test $gl_cv_have_include_next = yes; then
28970 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
28973 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
28974 if ${gl_cv_next_sys_stat_h+:} false
; then :
28975 $as_echo_n "(cached) " >&6
28978 if test $ac_cv_header_sys_stat_h = yes; then
28983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28984 /* end confdefs.h. */
28985 #include <sys/stat.h>
28988 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28989 *) gl_absname_cpp
="$ac_cpp" ;;
28994 gl_dirsep_regex
='[/\\]'
28997 gl_dirsep_regex
='\/'
29000 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29001 gl_header_literal_regex
=`echo 'sys/stat.h' \
29002 | sed -e "$gl_make_literal_regex_sed"`
29003 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29004 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29010 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29011 sed -n "$gl_absolute_header_sed"`
29013 gl_header
=$gl_cv_absolute_sys_stat_h
29014 gl_cv_next_sys_stat_h
='"'$gl_header'"'
29016 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
29022 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
29024 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
29026 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29028 gl_next_as_first_directive
='<'sys
/stat.h
'>'
29030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29031 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
29033 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
29042 WINDOWS_STAT_TIMESPEC
=0
29051 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
29052 #include <sys/stat.h>
29054 if test "x$ac_cv_type_nlink_t" = xyes
; then :
29058 $as_echo "#define nlink_t int" >>confdefs.h
29087 if test $gl_cv_have_include_next = yes; then
29088 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
29091 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
29092 if ${gl_cv_next_sys_uio_h+:} false
; then :
29093 $as_echo_n "(cached) " >&6
29096 if test $ac_cv_header_sys_uio_h = yes; then
29101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29102 /* end confdefs.h. */
29103 #include <sys/uio.h>
29106 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29107 *) gl_absname_cpp
="$ac_cpp" ;;
29112 gl_dirsep_regex
='[/\\]'
29115 gl_dirsep_regex
='\/'
29118 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29119 gl_header_literal_regex
=`echo 'sys/uio.h' \
29120 | sed -e "$gl_make_literal_regex_sed"`
29121 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29122 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29128 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29129 sed -n "$gl_absolute_header_sed"`
29131 gl_header
=$gl_cv_absolute_sys_uio_h
29132 gl_cv_next_sys_uio_h
='"'$gl_header'"'
29134 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
29140 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
29142 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
29144 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29145 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29146 gl_next_as_first_directive
='<'sys
/uio.h
'>'
29148 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29149 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
29151 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
29156 if test $ac_cv_header_sys_uio_h = yes; then
29171 cat >>confdefs.h
<<_ACEOF
29172 #define GNULIB_TEMPNAME 1
29186 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "/* mingw's <time.h> provides the functions asctime_r, ctime_r,
29187 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29188 been included before. */
29189 #if defined __MINGW32__
29190 # include <unistd.h>
29195 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
29201 cat >>confdefs.h
<<_ACEOF
29202 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
29205 if test $ac_cv_have_decl_localtime_r = no
; then
29206 HAVE_DECL_LOCALTIME_R
=0
29210 if test $ac_cv_func_localtime_r = yes; then
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
29213 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
29214 if ${gl_cv_time_r_posix+:} false
; then :
29215 $as_echo_n "(cached) " >&6
29217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29218 /* end confdefs.h. */
29219 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
29220 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29221 been included before. */
29222 #if defined __MINGW32__
29223 # include <unistd.h>
29230 /* We don't need to append 'restrict's to the argument types,
29231 even though the POSIX signature has the 'restrict's,
29232 since C99 says they can't affect type compatibility. */
29233 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
29235 /* Check the return type is a pointer.
29236 On HP-UX 10 it is 'int'. */
29237 *localtime_r (0, 0);
29243 if ac_fn_c_try_compile
"$LINENO"; then :
29244 gl_cv_time_r_posix
=yes
29246 gl_cv_time_r_posix
=no
29248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
29252 $as_echo "$gl_cv_time_r_posix" >&6; }
29253 if test $gl_cv_time_r_posix = yes; then
29254 REPLACE_LOCALTIME_R
=0
29256 REPLACE_LOCALTIME_R
=1
29260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
29261 $as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
29262 if ${gl_cv_func_localtime_r_inline+:} false
; then :
29263 $as_echo_n "(cached) " >&6
29265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29266 /* end confdefs.h. */
29267 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
29268 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29269 been included before. */
29270 #if defined __MINGW32__
29271 # include <unistd.h>
29280 localtime_r (&a, &r);
29287 if ac_fn_c_try_link
"$LINENO"; then :
29288 gl_cv_func_localtime_r_inline
=yes
29290 gl_cv_func_localtime_r_inline
=no
29292 rm -f core conftest.err conftest.
$ac_objext \
29293 conftest
$ac_exeext conftest.
$ac_ext
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
29297 $as_echo "$gl_cv_func_localtime_r_inline" >&6; }
29298 if test $gl_cv_func_localtime_r_inline = yes; then
29299 REPLACE_LOCALTIME_R
=1
29303 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
29312 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
29329 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
29345 if test $gl_cv_have_include_next = yes; then
29346 gl_cv_next_unistd_h
='<'unistd.h
'>'
29348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
29349 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
29350 if ${gl_cv_next_unistd_h+:} false
; then :
29351 $as_echo_n "(cached) " >&6
29354 if test $ac_cv_header_unistd_h = yes; then
29359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29360 /* end confdefs.h. */
29361 #include <unistd.h>
29364 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29365 *) gl_absname_cpp
="$ac_cpp" ;;
29370 gl_dirsep_regex
='[/\\]'
29373 gl_dirsep_regex
='\/'
29376 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29377 gl_header_literal_regex
=`echo 'unistd.h' \
29378 | sed -e "$gl_make_literal_regex_sed"`
29379 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29380 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29386 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29387 sed -n "$gl_absolute_header_sed"`
29389 gl_header
=$gl_cv_absolute_unistd_h
29390 gl_cv_next_unistd_h
='"'$gl_header'"'
29392 gl_cv_next_unistd_h
='<'unistd.h
'>'
29397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
29398 $as_echo "$gl_cv_next_unistd_h" >&6; }
29400 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
29402 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29403 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29404 gl_next_as_first_directive
='<'unistd.h
'>'
29406 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29407 gl_next_as_first_directive
=$gl_cv_next_unistd_h
29409 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
29414 if test $ac_cv_header_unistd_h = yes; then
29432 if test $ac_cv_have_decl_execvpe = no
; then
29433 HAVE_DECL_EXECVPE
=0
29442 if test $ac_cv_have_decl_unsetenv = no
; then
29443 HAVE_DECL_UNSETENV
=0
29445 for ac_func
in unsetenv
29447 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
29448 if test "x$ac_cv_func_unsetenv" = xyes
; then :
29449 cat >>confdefs.h
<<_ACEOF
29450 #define HAVE_UNSETENV 1
29456 if test $ac_cv_func_unsetenv = no
; then
29460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
29461 $as_echo_n "checking for unsetenv() return type... " >&6; }
29462 if ${gt_cv_func_unsetenv_ret+:} false
; then :
29463 $as_echo_n "(cached) " >&6
29465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29466 /* end confdefs.h. */
29469 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
29470 #include <stdlib.h>
29475 int unsetenv (const char *name);
29485 if ac_fn_c_try_compile
"$LINENO"; then :
29486 gt_cv_func_unsetenv_ret
='int'
29488 gt_cv_func_unsetenv_ret
='void'
29490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
29493 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
29494 if test $gt_cv_func_unsetenv_ret = 'void'; then
29496 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
29502 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
29503 if ${gl_cv_func_unsetenv_works+:} false
; then :
29504 $as_echo_n "(cached) " >&6
29506 if test "$cross_compiling" = yes; then :
29508 # Guess yes on glibc systems.
29509 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
29510 # If we don't know, obey --enable-cross-guesses.
29511 *) gl_cv_func_unsetenv_works
="$gl_cross_guess_normal" ;;
29515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29516 /* end confdefs.h. */
29518 #include <stdlib.h>
29520 extern char **environ;
29529 char entry1[] = "a=1";
29530 char entry2[] = "b=2";
29531 char *env[] = { entry1, entry2, NULL };
29532 if (putenv ((char *) "a=1")) return 1;
29533 if (putenv (entry2)) return 2;
29536 if (getenv ("a")) return 3;
29537 if (!unsetenv ("") || errno != EINVAL) return 4;
29540 if (!getenv ("a")) return 5;
29543 if (getenv ("a")) return 6;
29549 if ac_fn_c_try_run
"$LINENO"; then :
29550 gl_cv_func_unsetenv_works
=yes
29552 gl_cv_func_unsetenv_works
=no
29554 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29555 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
29561 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
29562 case "$gl_cv_func_unsetenv_works" in
29570 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
29579 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
29597 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
29613 if test $gl_cv_have_include_next = yes; then
29614 gl_cv_next_wchar_h
='<'wchar.h
'>'
29616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
29617 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
29618 if ${gl_cv_next_wchar_h+:} false
; then :
29619 $as_echo_n "(cached) " >&6
29622 if test $ac_cv_header_wchar_h = yes; then
29627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29628 /* end confdefs.h. */
29632 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29633 *) gl_absname_cpp
="$ac_cpp" ;;
29638 gl_dirsep_regex
='[/\\]'
29641 gl_dirsep_regex
='\/'
29644 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29645 gl_header_literal_regex
=`echo 'wchar.h' \
29646 | sed -e "$gl_make_literal_regex_sed"`
29647 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29648 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29654 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29655 sed -n "$gl_absolute_header_sed"`
29657 gl_header
=$gl_cv_absolute_wchar_h
29658 gl_cv_next_wchar_h
='"'$gl_header'"'
29660 gl_cv_next_wchar_h
='<'wchar.h
'>'
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
29666 $as_echo "$gl_cv_next_wchar_h" >&6; }
29668 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
29670 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29671 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29672 gl_next_as_first_directive
='<'wchar.h
'>'
29674 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29675 gl_next_as_first_directive
=$gl_cv_next_wchar_h
29677 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
29682 if test $ac_cv_header_wchar_h = yes; then
29692 if test $gt_cv_c_wint_t = yes; then
29707 ac_fn_c_check_decl
"$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
29711 if test "x$ac_cv_have_decl_wcsdup" = xyes
; then :
29717 cat >>confdefs.h
<<_ACEOF
29718 #define HAVE_DECL_WCSDUP $ac_have_decl
29721 if test $ac_cv_have_decl_wcsdup = no
; then
29730 if test $ac_cv_func_iswcntrl = yes; then
29738 if test $gt_cv_c_wint_t = yes; then
29756 if test $gl_cv_have_include_next = yes; then
29757 gl_cv_next_wctype_h
='<'wctype.h
'>'
29759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
29760 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
29761 if ${gl_cv_next_wctype_h+:} false
; then :
29762 $as_echo_n "(cached) " >&6
29765 if test $ac_cv_header_wctype_h = yes; then
29770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29771 /* end confdefs.h. */
29772 #include <wctype.h>
29775 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29776 *) gl_absname_cpp
="$ac_cpp" ;;
29781 gl_dirsep_regex
='[/\\]'
29784 gl_dirsep_regex
='\/'
29787 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29788 gl_header_literal_regex
=`echo 'wctype.h' \
29789 | sed -e "$gl_make_literal_regex_sed"`
29790 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29791 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29797 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29798 sed -n "$gl_absolute_header_sed"`
29800 gl_header
=$gl_cv_absolute_wctype_h
29801 gl_cv_next_wctype_h
='"'$gl_header'"'
29803 gl_cv_next_wctype_h
='<'wctype.h
'>'
29808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
29809 $as_echo "$gl_cv_next_wctype_h" >&6; }
29811 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
29813 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29814 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29815 gl_next_as_first_directive
='<'wctype.h
'>'
29817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29818 gl_next_as_first_directive
=$gl_cv_next_wctype_h
29820 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
29825 if test $ac_cv_header_wctype_h = yes; then
29826 if test $ac_cv_func_iswcntrl = yes; then
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
29828 $as_echo_n "checking whether iswcntrl works... " >&6; }
29829 if ${gl_cv_func_iswcntrl_works+:} false
; then :
29830 $as_echo_n "(cached) " >&6
29833 if test "$cross_compiling" = yes; then :
29834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29835 /* end confdefs.h. */
29836 #include <stdlib.h>
29837 #if __GNU_LIBRARY__ == 1
29838 Linux libc5 i18n is broken.
29848 if ac_fn_c_try_compile
"$LINENO"; then :
29849 gl_cv_func_iswcntrl_works
="guessing yes"
29851 gl_cv_func_iswcntrl_works
="guessing no"
29853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29857 /* end confdefs.h. */
29860 #include <wctype.h>
29861 int main () { return iswprint ('x') == 0; }
29864 if ac_fn_c_try_run
"$LINENO"; then :
29865 gl_cv_func_iswcntrl_works
=yes
29867 gl_cv_func_iswcntrl_works
=no
29869 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29870 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
29876 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
29884 if test $GNULIB_OVERRIDES_WINT_T = 1; then
29887 case "$gl_cv_func_iswcntrl_works" in
29888 *yes) REPLACE_ISWCNTRL
=0 ;;
29889 *) REPLACE_ISWCNTRL
=1 ;;
29894 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
29898 if test $REPLACE_ISWCNTRL = 1; then
29901 for ac_func
in towlower
29903 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
29904 if test "x$ac_cv_func_towlower" = xyes
; then :
29905 cat >>confdefs.h
<<_ACEOF
29906 #define HAVE_TOWLOWER 1
29912 if test $ac_cv_func_towlower = yes; then
29915 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h>
29917 # include <wctype.h>
29921 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
29927 cat >>confdefs.h
<<_ACEOF
29928 #define HAVE_DECL_TOWLOWER $ac_have_decl
29931 if test $ac_cv_have_decl_towlower = yes; then
29940 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
29945 $as_echo_n "checking for wctype_t... " >&6; }
29946 if ${gl_cv_type_wctype_t+:} false
; then :
29947 $as_echo_n "(cached) " >&6
29949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29950 /* end confdefs.h. */
29953 # include <wctype.h>
29965 if ac_fn_c_try_compile
"$LINENO"; then :
29966 gl_cv_type_wctype_t
=yes
29968 gl_cv_type_wctype_t
=no
29970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
29974 $as_echo "$gl_cv_type_wctype_t" >&6; }
29975 if test $gl_cv_type_wctype_t = no
; then
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
29980 $as_echo_n "checking for wctrans_t... " >&6; }
29981 if ${gl_cv_type_wctrans_t+:} false
; then :
29982 $as_echo_n "(cached) " >&6
29984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29985 /* end confdefs.h. */
29987 #include <wctype.h>
29998 if ac_fn_c_try_compile
"$LINENO"; then :
29999 gl_cv_type_wctrans_t
=yes
30001 gl_cv_type_wctrans_t
=no
30003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
30007 $as_echo "$gl_cv_type_wctrans_t" >&6; }
30008 if test $gl_cv_type_wctrans_t = no
; then
30027 gl_LIBOBJS
="$gl_LIBOBJS windows-mutex.$ac_objext"
30042 gl_LIBOBJS
="$gl_LIBOBJS windows-once.$ac_objext"
30057 gl_LIBOBJS
="$gl_LIBOBJS windows-recmutex.$ac_objext"
30072 gl_LIBOBJS
="$gl_LIBOBJS windows-rwlock.$ac_objext"
30078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmemchr" >&5
30079 $as_echo_n "checking for wmemchr... " >&6; }
30080 if ${gl_cv_func_wmemchr+:} false
; then :
30081 $as_echo_n "(cached) " >&6
30083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30084 /* end confdefs.h. */
30090 return ! wmemchr ((const wchar_t *) 0, (wchar_t) ' ', 0);
30096 if ac_fn_c_try_link
"$LINENO"; then :
30097 gl_cv_func_wmemchr
=yes
30099 gl_cv_func_wmemchr
=no
30101 rm -f core conftest.err conftest.
$ac_objext \
30102 conftest
$ac_exeext conftest.
$ac_ext
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wmemchr" >&5
30106 $as_echo "$gl_cv_func_wmemchr" >&6; }
30107 if test $gl_cv_func_wmemchr = no
; then
30111 if test $HAVE_WMEMCHR = 0; then
30120 gl_LIBOBJS
="$gl_LIBOBJS wmemchr.$ac_objext"
30134 $as_echo "#define GNULIB_TEST_WMEMCHR 1" >>confdefs.h
30146 if test $ac_cv_func_wmempcpy = no
; then
30150 if test $HAVE_WMEMPCPY = 0; then
30159 gl_LIBOBJS
="$gl_LIBOBJS wmempcpy.$ac_objext"
30173 $as_echo "#define GNULIB_TEST_WMEMPCPY 1" >>confdefs.h
30177 # End of code from modules
30199 gl_source_base
='tests'
30200 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
30202 gl_module_indicator_condition
=$gltests_WITNESS
30212 LIBGNU_LIBDEPS
="$gl_libdeps"
30214 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
30218 am__api_version
='1.15'
30220 # Find a good install program. We prefer a C program (faster),
30221 # so one script is as good as another. But avoid the broken or
30222 # incompatible versions:
30223 # SysV /etc/install, /usr/sbin/install
30224 # SunOS /usr/etc/install
30225 # IRIX /sbin/install
30227 # AmigaOS /C/install, which installs bootblocks on floppy discs
30228 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
30229 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
30230 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
30231 # OS/2's system install, which has a completely different semantic
30232 # ./install, which can be erroneously created by make from ./install.sh.
30233 # Reject install programs that cannot install multiple files.
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
30235 $as_echo_n "checking for a BSD-compatible install... " >&6; }
30236 if test -z "$INSTALL"; then
30237 if ${ac_cv_path_install+:} false
; then :
30238 $as_echo_n "(cached) " >&6
30240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30241 for as_dir
in $PATH
30244 test -z "$as_dir" && as_dir
=.
30245 # Account for people who put trailing slashes in PATH elements.
30246 case $as_dir/ in #((
30247 .
/ | .
// |
/[cC
]/* | \
30248 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
30249 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
30252 # OSF1 and SCO ODT 3.0 have their own names for install.
30253 # Don't use installbsd from OSF since it installs stuff as root
30255 for ac_prog
in ginstall scoinst
install; do
30256 for ac_exec_ext
in '' $ac_executable_extensions; do
30257 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
30258 if test $ac_prog = install &&
30259 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
30260 # AIX install. It has an incompatible calling convention.
30262 elif test $ac_prog = install &&
30263 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
30264 # program-specific install script used by HP pwplus--don't use.
30267 rm -rf conftest.one conftest.two conftest.dir
30268 echo one
> conftest.one
30269 echo two
> conftest.two
30271 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
30272 test -s conftest.one
&& test -s conftest.two
&&
30273 test -s conftest.dir
/conftest.one
&&
30274 test -s conftest.dir
/conftest.two
30276 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
30289 rm -rf conftest.one conftest.two conftest.dir
30292 if test "${ac_cv_path_install+set}" = set; then
30293 INSTALL
=$ac_cv_path_install
30295 # As a last resort, use the slow shell script. Don't cache a
30296 # value for INSTALL within a source directory, because that will
30297 # break other packages using the cache if that directory is
30298 # removed, or if the value is a relative name.
30299 INSTALL
=$ac_install_sh
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
30303 $as_echo "$INSTALL" >&6; }
30305 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
30306 # It thinks the first close brace ends the variable substitution.
30307 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
30309 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
30311 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
30314 $as_echo_n "checking whether build environment is sane... " >&6; }
30315 # Reject unsafe characters in $srcdir or the absolute working directory
30316 # name. Accept space and tab only in the latter.
30320 *[\\\"\
#\$\&\'\`$am_lf]*)
30321 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
30324 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
30325 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
30328 # Do 'set' in a subshell so we don't clobber the current shell's
30329 # arguments. Must try -L first in case configure is actually a
30330 # symlink; some systems play weird games with the mod time of symlinks
30331 # (eg FreeBSD returns the mod time of the symlink's containing
30335 for am_try
in 1 2; do
30336 echo "timestamp, slept: $am_has_slept" > conftest.
file
30337 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
30338 if test "$*" = "X"; then
30340 set X
`ls -t "$srcdir/configure" conftest.file`
30342 if test "$*" != "X $srcdir/configure conftest.file" \
30343 && test "$*" != "X conftest.file $srcdir/configure"; then
30345 # If neither matched, then we have a broken ls. This can happen
30346 # if, for instance, CONFIG_SHELL is bash and it inherits a
30347 # broken ls alias from the environment. This has actually
30348 # happened. Such a system could not be considered "sane".
30349 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
30350 alias in your environment" "$LINENO" 5
30352 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
30359 test "$2" = conftest.
file
30365 as_fn_error $?
"newly created file is older than distributed files!
30366 Check your system clock" "$LINENO" 5
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30369 $as_echo "yes" >&6; }
30370 # If we didn't sleep, we still need to ensure time stamps of config.status and
30371 # generated files are strictly newer.
30373 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
30378 rm -f conftest.
file
30380 test "$program_prefix" != NONE
&&
30381 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
30382 # Use a double $ so make ignores it.
30383 test "$program_suffix" != NONE
&&
30384 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
30385 # Double any \ or $.
30386 # By default was `s,x,x', remove it if useless.
30387 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
30388 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
30390 # Expand $ac_aux_dir to an absolute path.
30391 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
30393 if test x
"${MISSING+set}" != xset
; then
30394 case $am_aux_dir in
30396 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
30398 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
30401 # Use eval to expand $SHELL
30402 if eval "$MISSING --is-lightweight"; then
30403 am_missing_run
="$MISSING "
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
30407 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
30410 if test x
"${install_sh+set}" != xset
; then
30411 case $am_aux_dir in
30413 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
30415 install_sh
="\${SHELL} $am_aux_dir/install-sh"
30419 # Installed binaries are usually stripped using 'strip' when the user
30420 # run "make install-strip". However 'strip' might not be the right
30421 # tool to use in cross-compilation environments, therefore Automake
30422 # will honor the 'STRIP' environment variable to overrule this program.
30423 if test "$cross_compiling" != no
; then
30424 if test -n "$ac_tool_prefix"; then
30425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
30426 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
30427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30428 $as_echo_n "checking for $ac_word... " >&6; }
30429 if ${ac_cv_prog_STRIP+:} false
; then :
30430 $as_echo_n "(cached) " >&6
30432 if test -n "$STRIP"; then
30433 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
30435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30436 for as_dir
in $PATH
30439 test -z "$as_dir" && as_dir
=.
30440 for ac_exec_ext
in '' $ac_executable_extensions; do
30441 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30442 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
30443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30452 STRIP
=$ac_cv_prog_STRIP
30453 if test -n "$STRIP"; then
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
30455 $as_echo "$STRIP" >&6; }
30457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30458 $as_echo "no" >&6; }
30463 if test -z "$ac_cv_prog_STRIP"; then
30465 # Extract the first word of "strip", so it can be a program name with args.
30466 set dummy strip
; ac_word
=$2
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30468 $as_echo_n "checking for $ac_word... " >&6; }
30469 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
30470 $as_echo_n "(cached) " >&6
30472 if test -n "$ac_ct_STRIP"; then
30473 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
30475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30476 for as_dir
in $PATH
30479 test -z "$as_dir" && as_dir
=.
30480 for ac_exec_ext
in '' $ac_executable_extensions; do
30481 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30482 ac_cv_prog_ac_ct_STRIP
="strip"
30483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30492 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
30493 if test -n "$ac_ct_STRIP"; then
30494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
30495 $as_echo "$ac_ct_STRIP" >&6; }
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30498 $as_echo "no" >&6; }
30501 if test "x$ac_ct_STRIP" = x
; then
30504 case $cross_compiling:$ac_tool_warned in
30506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30508 ac_tool_warned
=yes ;;
30513 STRIP
="$ac_cv_prog_STRIP"
30517 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
30519 for ac_prog
in gawk mawk nawk
awk
30521 # Extract the first word of "$ac_prog", so it can be a program name with args.
30522 set dummy
$ac_prog; ac_word
=$2
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30524 $as_echo_n "checking for $ac_word... " >&6; }
30525 if ${ac_cv_prog_AWK+:} false
; then :
30526 $as_echo_n "(cached) " >&6
30528 if test -n "$AWK"; then
30529 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
30531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30532 for as_dir
in $PATH
30535 test -z "$as_dir" && as_dir
=.
30536 for ac_exec_ext
in '' $ac_executable_extensions; do
30537 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30538 ac_cv_prog_AWK
="$ac_prog"
30539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30548 AWK
=$ac_cv_prog_AWK
30549 if test -n "$AWK"; then
30550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
30551 $as_echo "$AWK" >&6; }
30553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30554 $as_echo "no" >&6; }
30558 test -n "$AWK" && break
30561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
30562 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
30564 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
30565 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
30566 $as_echo_n "(cached) " >&6
30568 cat >conftest.
make <<\_ACEOF
30571 @
echo '@@@%%%=$(MAKE)=@@@%%%'
30573 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
30574 case `${MAKE-make} -f conftest.make 2>/dev/null` in
30575 *@@@
%%%=?
*=@@@
%%%*)
30576 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
30578 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
30580 rm -f conftest.
make
30582 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30584 $as_echo "yes" >&6; }
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30588 $as_echo "no" >&6; }
30589 SET_MAKE
="MAKE=${MAKE-make}"
30592 rm -rf .tst
2>/dev
/null
30593 mkdir .tst
2>/dev
/null
30594 if test -d .tst
; then
30599 rmdir .tst
2>/dev
/null
30601 DEPDIR
="${am__leading_dot}deps"
30603 ac_config_commands
="$ac_config_commands depfiles"
30606 am_make
=${MAKE-make}
30607 cat > confinc
<< 'END'
30609 @
echo this is the am__doit target
30612 # If we don't find an include directive, just comment out the code.
30613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
30614 $as_echo_n "checking for style of include used by $am_make... " >&6; }
30618 # First try GNU make style include.
30619 echo "include confinc" > confmf
30620 # Ignore all kinds of additional output from 'make'.
30621 case `$am_make -s -f confmf 2> /dev/null` in #(
30622 *the\ am__doit\ target
*)
30623 am__include
=include
30628 # Now try BSD make style include.
30629 if test "$am__include" = "#"; then
30630 echo '.include "confinc"' > confmf
30631 case `$am_make -s -f confmf 2> /dev/null` in #(
30632 *the\ am__doit\ target
*)
30633 am__include
=.include
30641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
30642 $as_echo "$_am_result" >&6; }
30643 rm -f confinc confmf
30645 # Check whether --enable-dependency-tracking was given.
30646 if test "${enable_dependency_tracking+set}" = set; then :
30647 enableval
=$enable_dependency_tracking;
30650 if test "x$enable_dependency_tracking" != xno
; then
30651 am_depcomp
="$ac_aux_dir/depcomp"
30655 if test "x$enable_dependency_tracking" != xno; then
30664 # Check whether --enable-silent-rules was given.
30665 if test "${enable_silent_rules+set}" = set; then :
30666 enableval
=$enable_silent_rules;
30669 case $enable_silent_rules in # (((
30670 yes) AM_DEFAULT_VERBOSITY
=0;;
30671 no
) AM_DEFAULT_VERBOSITY
=1;;
30672 *) AM_DEFAULT_VERBOSITY
=1;;
30674 am_make
=${MAKE-make}
30675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
30676 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
30677 if ${am_cv_make_support_nested_variables+:} false
; then :
30678 $as_echo_n "(cached) " >&6
30680 if $as_echo 'TRUE=$(BAR$(V))
30686 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
30687 am_cv_make_support_nested_variables
=yes
30689 am_cv_make_support_nested_variables
=no
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
30693 $as_echo "$am_cv_make_support_nested_variables" >&6; }
30694 if test $am_cv_make_support_nested_variables = yes; then
30696 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
30698 AM_V
=$AM_DEFAULT_VERBOSITY
30699 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
30703 if test "`cd $srcdir && pwd`" != "`pwd`"; then
30704 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
30705 # is not polluted with repeated "-I."
30706 am__isrc
=' -I$(srcdir)'
30707 # test to see if srcdir already configured
30708 if test -f $srcdir/config.status
; then
30709 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
30713 # test whether we have cygpath
30714 if test -z "$CYGPATH_W"; then
30715 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
30716 CYGPATH_W
='cygpath -w'
30723 # Define the identity of the package.
30725 VERSION
='UNUSED-VERSION'
30728 # Some tools Automake needs.
30730 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
30733 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
30736 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
30739 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
30742 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
30744 # For better backward compatibility. To be removed once Automake 1.9.x
30745 # dies out for good. For more background, see:
30746 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
30747 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
30748 mkdir_p
='$(MKDIR_P)'
30750 # We need awk for the "check" target (and possibly the TAP driver). The
30751 # system "awk" is bad on some platforms.
30752 # Always define AMTAR for backward compatibility. Yes, it's still used
30753 # in the wild :-( We should find a proper way to deprecate it ...
30754 AMTAR
='$${TAR-tar}'
30757 # We'll loop over all known methods to create a tar archive until one works.
30758 _am_tools
='gnutar pax cpio none'
30760 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
30766 depcc
="$CC" am_compiler_list
=
30768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
30769 $as_echo_n "checking dependency style of $depcc... " >&6; }
30770 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
30771 $as_echo_n "(cached) " >&6
30773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
30774 # We make a subdir and do the tests there. Otherwise we can end up
30775 # making bogus files that we don't know about and never remove. For
30776 # instance it was reported that on HP-UX the gcc test will end up
30777 # making a dummy file named 'D' -- because '-MD' means "put the output
30779 rm -rf conftest.dir
30781 # Copy depcomp to subdir because otherwise we won't find it if we're
30782 # using a relative directory.
30783 cp "$am_depcomp" conftest.dir
30785 # We will build objects and dependencies in a subdirectory because
30786 # it helps to detect inapplicable dependency modes. For instance
30787 # both Tru64's cc and ICC support -MD to output dependencies as a
30788 # side effect of compilation, but ICC will put the dependencies in
30789 # the current directory while Tru64 will put them in the object
30793 am_cv_CC_dependencies_compiler_type
=none
30794 if test "$am_compiler_list" = ""; then
30795 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
30797 am__universal
=false
30798 case " $depcc " in #(
30799 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
30802 for depmode
in $am_compiler_list; do
30803 # Setup a source with many dependencies, because some compilers
30804 # like to wrap large dependency lists on column 80 (with \), and
30805 # we should not choose a depcomp mode which is confused by this.
30807 # We need to recreate these files for each test, as the compiler may
30808 # overwrite some of them when testing with obscure command lines.
30809 # This happens at least with the AIX C compiler.
30811 for i
in 1 2 3 4 5 6; do
30812 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
30813 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
30814 # Solaris 10 /bin/sh.
30815 echo '/* dummy */' > sub
/conftst
$i.h
30817 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
30819 # We check with '-c' and '-o' for the sake of the "dashmstdout"
30820 # mode. It turns out that the SunPro C++ compiler does not properly
30821 # handle '-M -o', and we need to detect this. Also, some Intel
30822 # versions had trouble with output in subdirs.
30823 am__obj
=sub
/conftest.
${OBJEXT-o}
30824 am__minus_obj
="-o $am__obj"
30827 # This depmode causes a compiler race in universal mode.
30828 test "$am__universal" = false ||
continue
30831 # After this tag, mechanisms are not by side-effect, so they'll
30832 # only be used when explicitly requested.
30833 if test "x$enable_dependency_tracking" = xyes
; then
30839 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
30840 # This compiler won't grok '-c -o', but also, the minuso test has
30841 # not run yet. These depmodes are late enough in the game, and
30842 # so weak that their functioning should not be impacted.
30843 am__obj
=conftest.
${OBJEXT-o}
30848 if depmode
=$depmode \
30849 source=sub
/conftest.c object
=$am__obj \
30850 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
30851 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
30852 >/dev
/null
2>conftest.err
&&
30853 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
30854 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
30855 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
30856 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
30857 # icc doesn't choke on unknown options, it will just issue warnings
30858 # or remarks (even with -Werror). So we grep stderr for any message
30859 # that says an option was ignored or not supported.
30860 # When given -MP, icc 7.0 and 7.1 complain thusly:
30861 # icc: Command line warning: ignoring option '-M'; no argument required
30862 # The diagnosis changed in icc 8.0:
30863 # icc: Command line remark: option '-MP' not supported
30864 if (grep 'ignoring option' conftest.err ||
30865 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
30866 am_cv_CC_dependencies_compiler_type
=$depmode
30873 rm -rf conftest.dir
30875 am_cv_CC_dependencies_compiler_type
=none
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
30880 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
30881 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
30884 test "x$enable_dependency_tracking" != xno \
30885 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
30886 am__fastdepCC_TRUE
=
30887 am__fastdepCC_FALSE
='#'
30889 am__fastdepCC_TRUE
='#'
30890 am__fastdepCC_FALSE
=
30895 # POSIX will say in a future version that running "rm -f" with no argument
30896 # is OK; and we want to be able to make that assumption in our Makefile
30897 # recipes. So use an aggressive probe to check that the usage we want is
30898 # actually supported "in the wild" to an acceptable degree.
30899 # See automake bug#10828.
30900 # To make any issue more visible, cause the running configure to be aborted
30901 # by default if the 'rm' program in use doesn't match our expectations; the
30902 # user can still override this though.
30903 if rm -f && rm -fr && rm -rf; then : OK
; else
30907 Your 'rm' program seems unable to run without file operands specified
30908 on the command line, even when the '-f' option is present. This is contrary
30909 to the behaviour of most rm programs out there, and not conforming with
30910 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
30912 Please tell bug-automake@gnu.org about your system, including the value
30913 of your $PATH and any error possibly output before this message. This
30914 can help us improve future automake versions.
30917 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
30918 echo 'Configuration will proceed anyway, since you have set the' >&2
30919 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
30923 Aborting the configuration process, to ensure you take notice of the issue.
30925 You can download and install GNU coreutils to get an 'rm' implementation
30926 that behaves properly: <http://www.gnu.org/software/coreutils/>.
30928 If you want to complete the configuration process using your problematic
30929 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
30930 to "yes", and re-run configure.
30933 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
30938 # Check whether --enable-silent-rules was given.
30939 if test "${enable_silent_rules+set}" = set; then :
30940 enableval
=$enable_silent_rules;
30943 case $enable_silent_rules in # (((
30944 yes) AM_DEFAULT_VERBOSITY
=0;;
30945 no
) AM_DEFAULT_VERBOSITY
=1;;
30946 *) AM_DEFAULT_VERBOSITY
=0;;
30948 am_make
=${MAKE-make}
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
30950 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
30951 if ${am_cv_make_support_nested_variables+:} false
; then :
30952 $as_echo_n "(cached) " >&6
30954 if $as_echo 'TRUE=$(BAR$(V))
30960 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
30961 am_cv_make_support_nested_variables
=yes
30963 am_cv_make_support_nested_variables
=no
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
30967 $as_echo "$am_cv_make_support_nested_variables" >&6; }
30968 if test $am_cv_make_support_nested_variables = yes; then
30970 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
30972 AM_V
=$AM_DEFAULT_VERBOSITY
30973 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
30978 # --------------------- #
30979 # Checks for programs. #
30980 # --------------------- #
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
30984 $as_echo_n "checking whether ln -s works... " >&6; }
30986 if test "$LN_S" = "ln -s"; then
30987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30988 $as_echo "yes" >&6; }
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
30991 $as_echo "no, using $LN_S" >&6; }
30994 if test -n "$ac_tool_prefix"; then
30995 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
30996 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30998 $as_echo_n "checking for $ac_word... " >&6; }
30999 if ${ac_cv_prog_RANLIB+:} false; then :
31000 $as_echo_n "(cached) " >&6
31002 if test -n "$RANLIB"; then
31003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
31005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31006 for as_dir in $PATH
31009 test -z "$as_dir" && as_dir=.
31010 for ac_exec_ext in '' $ac_executable_extensions; do
31011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31012 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
31013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31022 RANLIB=$ac_cv_prog_RANLIB
31023 if test -n "$RANLIB"; then
31024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
31025 $as_echo "$RANLIB" >&6; }
31027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31028 $as_echo "no" >&6; }
31033 if test -z "$ac_cv_prog_RANLIB"; then
31034 ac_ct_RANLIB=$RANLIB
31035 # Extract the first word of "ranlib", so it can be a program name with args.
31036 set dummy ranlib; ac_word=$2
31037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31038 $as_echo_n "checking for $ac_word... " >&6; }
31039 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
31040 $as_echo_n "(cached) " >&6
31042 if test -n "$ac_ct_RANLIB"; then
31043 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
31045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31046 for as_dir in $PATH
31049 test -z "$as_dir" && as_dir=.
31050 for ac_exec_ext in '' $ac_executable_extensions; do
31051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31052 ac_cv_prog_ac_ct_RANLIB="ranlib"
31053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31062 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
31063 if test -n "$ac_ct_RANLIB"; then
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
31065 $as_echo "$ac_ct_RANLIB" >&6; }
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31068 $as_echo "no" >&6; }
31071 if test "x$ac_ct_RANLIB" = x; then
31074 case $cross_compiling:$ac_tool_warned in
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31078 ac_tool_warned=yes ;;
31080 RANLIB=$ac_ct_RANLIB
31083 RANLIB="$ac_cv_prog_RANLIB"
31087 if test -n "$ac_tool_prefix"; then
31088 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
31089 set dummy ${ac_tool_prefix}ar; ac_word=$2
31090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31091 $as_echo_n "checking for $ac_word... " >&6; }
31092 if ${ac_cv_prog_AR+:} false; then :
31093 $as_echo_n "(cached) " >&6
31095 if test -n "$AR"; then
31096 ac_cv_prog_AR="$AR" # Let the user override the test.
31098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31099 for as_dir in $PATH
31102 test -z "$as_dir" && as_dir=.
31103 for ac_exec_ext in '' $ac_executable_extensions; do
31104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31105 ac_cv_prog_AR="${ac_tool_prefix}ar"
31106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31116 if test -n "$AR"; then
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
31118 $as_echo "$AR" >&6; }
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31121 $as_echo "no" >&6; }
31126 if test -z "$ac_cv_prog_AR"; then
31128 # Extract the first word of "ar", so it can be a program name with args.
31129 set dummy ar; ac_word=$2
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31131 $as_echo_n "checking for $ac_word... " >&6; }
31132 if ${ac_cv_prog_ac_ct_AR+:} false; then :
31133 $as_echo_n "(cached) " >&6
31135 if test -n "$ac_ct_AR"; then
31136 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
31138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31139 for as_dir in $PATH
31142 test -z "$as_dir" && as_dir=.
31143 for ac_exec_ext in '' $ac_executable_extensions; do
31144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31145 ac_cv_prog_ac_ct_AR="ar"
31146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31155 ac_ct_AR=$ac_cv_prog_ac_ct_AR
31156 if test -n "$ac_ct_AR"; then
31157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
31158 $as_echo "$ac_ct_AR" >&6; }
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31161 $as_echo "no" >&6; }
31164 if test "x$ac_ct_AR" = x; then
31167 case $cross_compiling:$ac_tool_warned in
31169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31171 ac_tool_warned=yes ;;
31176 AR="$ac_cv_prog_AR"
31180 # ---------------------- #
31181 # Checks for libraries. #
31182 # ---------------------- #
31184 ac_config_files="$ac_config_files Makefile.gnulib.inc"
31187 ac_config_files="$ac_config_files Makefile import/Makefile"
31189 ac_config_commands="$ac_config_commands default"
31191 cat >confcache <<\_ACEOF
31192 # This file is a shell script that caches the results of configure
31193 # tests run on this system so they can be shared between configure
31194 # scripts and configure runs, see configure's option
--config-cache.
31195 # It is not useful on other systems. If it contains results you don't
31196 # want to keep, you may remove or edit it.
31198 # config.status only pays attention to the cache file if you give it
31199 # the --recheck option to rerun configure.
31201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31203 # following values.
31207 # The following way of writing the cache mishandles newlines in values,
31208 # but we know of no workaround that is simple, portable, and efficient.
31209 # So, we kill variables containing newlines.
31210 # Ultrix sh set writes to stderr and can't be redirected directly,
31211 # and sets the high bit in the cache file unless we assign to the vars.
31213 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31214 eval ac_val
=\$
$ac_var
31218 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31222 _ | IFS | as_nl
) ;; #(
31223 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
31224 *) { eval $ac_var=; unset $ac_var;} ;;
31230 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31231 *${as_nl}ac_space
=\
*)
31232 # `set' does not quote correctly, so add quotes: double-quote
31233 # substitution turns \\\\ into \\, and sed turns \\ into \.
31236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31239 # `set' quotes correctly as required by POSIX, so do not add quotes.
31240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31251 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31253 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31254 if test -w "$cache_file"; then
31255 if test "x$cache_file" != "x/dev/null"; then
31256 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31257 $as_echo "$as_me: updating cache $cache_file" >&6;}
31258 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
31259 cat confcache
>"$cache_file"
31261 case $cache_file in #(
31263 mv -f confcache
"$cache_file"$$
&&
31264 mv -f "$cache_file"$$
"$cache_file" ;; #(
31266 mv -f confcache
"$cache_file" ;;
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31272 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31277 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31278 # Let make expand exec_prefix.
31279 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31281 DEFS
=-DHAVE_CONFIG_H
31285 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31286 # 1. Remove the extension, and $U if already installed.
31287 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31288 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
31289 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31290 # will be set to the directory where LIBOBJS objects are built.
31291 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31292 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
31294 LIBOBJS
=$ac_libobjs
31296 LTLIBOBJS
=$ac_ltlibobjs
31299 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31300 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
31301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31303 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
31304 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
31305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31307 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
31308 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
31309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31311 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
31312 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
31313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31315 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
31316 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
31317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31319 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
31320 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
31321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31323 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
31324 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
31325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31327 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
31328 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
31329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31331 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
31332 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
31333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31335 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
31336 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
31337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31339 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
31340 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
31341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31343 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
31344 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
31345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31349 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
31350 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
31351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31353 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
31354 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
31355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31357 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
31358 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
31359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31361 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
31362 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
31363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31365 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
31366 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
31367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31372 if test -n "$gl_LIBOBJS"; then
31373 # Remove the extension.
31374 sed_drop_objext
='s/\.o$//;s/\.obj$//'
31375 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
31376 gl_libobjs
="$gl_libobjs $i.$ac_objext"
31377 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
31380 gl_LIBOBJS
=$gl_libobjs
31382 gl_LTLIBOBJS
=$gl_ltlibobjs
31388 if test -n "$gltests_LIBOBJS"; then
31389 # Remove the extension.
31390 sed_drop_objext
='s/\.o$//;s/\.obj$//'
31391 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
31392 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
31393 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
31396 gltests_LIBOBJS
=$gltests_libobjs
31398 gltests_LTLIBOBJS
=$gltests_ltlibobjs
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
31402 $as_echo_n "checking that generated files are newer than configure... " >&6; }
31403 if test -n "$am_sleep_pid"; then
31404 # Hide warnings about reused PIDs.
31405 wait $am_sleep_pid 2>/dev
/null
31407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
31408 $as_echo "done" >&6; }
31409 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31410 as_fn_error $?
"conditional \"AMDEP\" was never defined.
31411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31413 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31414 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
31415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31417 if test -n "$EXEEXT"; then
31419 am__EXEEXT_FALSE
='#'
31421 am__EXEEXT_TRUE
='#'
31426 : "${CONFIG_STATUS=./config.status}"
31428 ac_clean_files_save
=$ac_clean_files
31429 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31431 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31433 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31435 # Generated by $as_me.
31436 # Run this file to recreate the current configuration.
31437 # Compiler output produced by configure, useful for debugging
31438 # configure, is in config.log if it exists.
31441 ac_cs_recheck=false
31444 SHELL=\${CONFIG_SHELL-$SHELL}
31447 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
31448 ## -------------------- ##
31449 ## M4sh Initialization. ##
31450 ## -------------------- ##
31452 # Be more Bourne compatible
31453 DUALCASE
=1; export DUALCASE
# for MKS sh
31454 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
31457 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31458 # is contrary to our usage. Disable this feature.
31459 alias -g '${1+"$@"}'='"$@"'
31460 setopt NO_GLOB_SUBST
31462 case `(set -o) 2>/dev/null` in #(
31474 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31475 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31476 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31477 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31478 # Prefer a ksh shell builtin over an external printf program on Solaris,
31479 # but without wasting forks for bash or zsh.
31480 if test -z "$BASH_VERSION$ZSH_VERSION" \
31481 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31482 as_echo='print
-r --'
31483 as_echo_n='print
-rn --'
31484 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31485 as_echo='printf %s
\n'
31486 as_echo_n='printf %s
'
31488 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31489 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
31490 as_echo_n='/usr
/ucb
/echo -n'
31492 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31493 as_echo_n_body='eval
31497 expr "X$arg" : "X\\(.*\\)$as_nl";
31498 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31500 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
31502 export as_echo_n_body
31503 as_echo_n='sh
-c $as_echo_n_body as_echo
'
31505 export as_echo_body
31506 as_echo='sh
-c $as_echo_body as_echo
'
31509 # The user is always right.
31510 if test "${PATH_SEPARATOR+set}" != set; then
31512 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31513 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31520 # We need space, tab and new line, in precisely that order. Quoting is
31521 # there to prevent editors from complaining about space-tab.
31522 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31523 # splitting by setting IFS to empty value.)
31526 # Find who we are. Look in the path if we contain no directory separator.
31529 *[\\/]* ) as_myself=$0 ;;
31530 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31531 for as_dir in $PATH
31534 test -z "$as_dir" && as_dir=.
31535 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31541 # We did not find ourselves, most probably we were run as `sh COMMAND'
31542 # in which case we are not to be found in the path.
31543 if test "x$as_myself" = x
; then
31546 if test ! -f "$as_myself"; then
31547 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31551 # Unset variables that we do not need and which cause bugs (e.g. in
31552 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31553 # suppresses any "Segmentation fault" message there. '((' could
31554 # trigger a bug in pdksh 5.2.14.
31555 for as_var
in BASH_ENV ENV MAIL MAILPATH
31556 do eval test x\
${$as_var+set} = xset \
31557 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
31570 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
31573 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31574 # ----------------------------------------
31575 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31576 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31577 # script with STATUS, using 1 if that was 0.
31580 as_status
=$1; test $as_status -eq 0 && as_status
=1
31582 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
31583 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31585 $as_echo "$as_me: error: $2" >&2
31586 as_fn_exit
$as_status
31590 # as_fn_set_status STATUS
31591 # -----------------------
31592 # Set $? to STATUS, without forking.
31593 as_fn_set_status
()
31596 } # as_fn_set_status
31598 # as_fn_exit STATUS
31599 # -----------------
31600 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31604 as_fn_set_status
$1
31610 # Portably unset VAR.
31613 { eval $1=; unset $1;}
31615 as_unset
=as_fn_unset
31616 # as_fn_append VAR VALUE
31617 # ----------------------
31618 # Append the text in VALUE to the end of the definition contained in VAR. Take
31619 # advantage of any shell optimizations that allow amortized linear growth over
31620 # repeated appends, instead of the typical quadratic growth present in naive
31622 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
31623 eval 'as_fn_append ()
31634 # as_fn_arith ARG...
31635 # ------------------
31636 # Perform arithmetic evaluation on the ARGs, and store the result in the
31637 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31638 # must be portable across $(()) and expr.
31639 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
31640 eval 'as_fn_arith ()
31647 as_val
=`expr "$@" || test $? -eq 1`
31652 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31653 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31659 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31660 as_basename
=basename
31665 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31671 as_me
=`$as_basename -- "$0" ||
31672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31673 X"$0" : 'X\(//\)$' \| \
31674 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31676 sed '/^.*\/\([^/][^/]*\)\/*$/{
31690 # Avoid depending upon Character Ranges.
31691 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31692 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31693 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31694 as_cr_digits
='0123456789'
31695 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31697 ECHO_C
= ECHO_N
= ECHO_T
=
31698 case `echo -n x` in #(((((
31700 case `echo 'xy\c'` in
31701 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31703 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
31710 rm -f conf$$ conf$$.exe conf$$.
file
31711 if test -d conf$$.dir
; then
31712 rm -f conf$$.dir
/conf$$.
file
31715 mkdir conf$$.dir
2>/dev
/null
31717 if (echo >conf$$.
file) 2>/dev
/null
; then
31718 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31720 # ... but there are two gotchas:
31721 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31722 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31723 # In both cases, we have to default to `cp -pR'.
31724 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31726 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31734 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31735 rmdir conf$$.dir
2>/dev
/null
31740 # Create "$as_dir" as a directory, including parents if necessary.
31745 -*) as_dir
=.
/$as_dir;;
31747 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
31751 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31752 *) as_qdir
=$as_dir;;
31754 as_dirs
="'$as_qdir' $as_dirs"
31755 as_dir
=`$as_dirname -- "$as_dir" ||
31756 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31757 X"$as_dir" : 'X\(//\)[^/]' \| \
31758 X"$as_dir" : 'X\(//\)$' \| \
31759 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31760 $as_echo X"$as_dir" |
31761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31765 /^X\(\/\/\)[^/].*/{
31778 test -d "$as_dir" && break
31780 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31781 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31785 if mkdir
-p .
2>/dev
/null
; then
31786 as_mkdir_p
='mkdir -p "$as_dir"'
31788 test -d .
/-p && rmdir .
/-p
31793 # as_fn_executable_p FILE
31794 # -----------------------
31795 # Test if FILE is an executable regular file.
31796 as_fn_executable_p
()
31798 test -f "$1" && test -x "$1"
31799 } # as_fn_executable_p
31800 as_test_x
='test -x'
31801 as_executable_p
=as_fn_executable_p
31803 # Sed expression to map a string onto a valid CPP name.
31804 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31806 # Sed expression to map a string onto a valid variable name.
31807 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31811 ## ----------------------------------- ##
31812 ## Main body of $CONFIG_STATUS script. ##
31813 ## ----------------------------------- ##
31815 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31818 # Save the log message, to keep $0 and so on meaningful, and to
31819 # report actual input values of CONFIG_FILES etc. instead of their
31820 # values after options handling.
31822 This file was extended by libgnu $as_me UNUSED-VERSION, which was
31823 generated by GNU Autoconf 2.69. Invocation command line was
31825 CONFIG_FILES = $CONFIG_FILES
31826 CONFIG_HEADERS = $CONFIG_HEADERS
31827 CONFIG_LINKS = $CONFIG_LINKS
31828 CONFIG_COMMANDS = $CONFIG_COMMANDS
31831 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31836 case $ac_config_files in *"
31837 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31840 case $ac_config_headers in *"
31841 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31846 # Files that config.status was made for.
31847 config_files="$ac_config_files"
31848 config_headers="$ac_config_headers"
31849 config_commands="$ac_config_commands"
31853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31855 \`$as_me' instantiates files and other configuration actions
31856 from templates according to the current configuration. Unless the files
31857 and actions are specified as TAGs, all are instantiated by default.
31859 Usage: $0 [OPTION]... [TAG]...
31861 -h, --help print this help, then exit
31862 -V, --version print version number and configuration settings, then exit
31863 --config print configuration, then exit
31864 -q, --quiet, --silent
31865 do not print progress messages
31866 -d, --debug don't remove temporary files
31867 --recheck update $as_me by reconfiguring in the same conditions
31868 --file=FILE[:TEMPLATE]
31869 instantiate the configuration file FILE
31870 --header=FILE[:TEMPLATE]
31871 instantiate the configuration header FILE
31873 Configuration files:
31876 Configuration headers:
31879 Configuration commands:
31882 Report bugs to the package provider."
31885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31886 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31888 libgnu config.status UNUSED-VERSION
31889 configured by $0, generated by GNU Autoconf 2.69,
31890 with options \\"\$ac_cs_config\\"
31892 Copyright (C) 2012 Free Software Foundation, Inc.
31893 This config.status script is free software; the Free Software Foundation
31894 gives unlimited permission to copy, distribute and modify it."
31901 test -n "\$AWK" || AWK=awk
31904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31905 # The default lists apply if the user does not specify any file.
31911 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31912 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31916 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31928 # Handling of the options.
31929 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31931 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31932 $as_echo "$ac_cs_version"; exit ;;
31933 --config |
--confi |
--conf |
--con |
--co |
--c )
31934 $as_echo "$ac_cs_config"; exit ;;
31935 --debug |
--debu |
--deb |
--de |
--d |
-d )
31937 --file |
--fil |
--fi |
--f )
31940 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31941 '') as_fn_error $?
"missing file argument" ;;
31943 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31944 ac_need_defaults
=false
;;
31945 --header |
--heade |
--head |
--hea )
31948 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31950 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31951 ac_need_defaults
=false
;;
31953 # Conflict between --help and --header
31954 as_fn_error $?
"ambiguous option: \`$1'
31955 Try \`$0 --help' for more information.";;
31956 --help |
--hel |
-h )
31957 $as_echo "$ac_cs_usage"; exit ;;
31958 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31959 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31962 # This is an error.
31963 -*) as_fn_error $?
"unrecognized option: \`$1'
31964 Try \`$0 --help' for more information." ;;
31966 *) as_fn_append ac_config_targets
" $1"
31967 ac_need_defaults
=false
;;
31973 ac_configure_extra_args
=
31975 if $ac_cs_silent; then
31977 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31982 if \$ac_cs_recheck; then
31983 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31985 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31986 CONFIG_SHELL='$SHELL'
31987 export CONFIG_SHELL
31992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31997 ## Running $as_me. ##
32003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32007 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32013 # Handling of arguments.
32014 for ac_config_target
in $ac_config_targets
32016 case $ac_config_target in
32017 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
32018 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
32019 "Makefile.gnulib.inc") CONFIG_FILES
="$CONFIG_FILES Makefile.gnulib.inc" ;;
32020 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
32021 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
32022 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
32024 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32029 # If the user did not use the arguments to specify the items to instantiate,
32030 # then the envvar interface is used. Set only those that are not.
32031 # We use the long form for the default assignment because of an extremely
32032 # bizarre bug on SunOS 4.1.3.
32033 if $ac_need_defaults; then
32034 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32035 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32036 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
32039 # Have a temporary directory for convenience. Make it in the build tree
32040 # simply because there is no reason against having it here, and in addition,
32041 # creating and moving files from /tmp can sometimes cause problems.
32042 # Hook for its removal unless debugging.
32043 # Note that there is a small window in which the directory will not be cleaned:
32044 # after its creation but before its name has been assigned to `$tmp'.
32048 trap 'exit_status=$?
32049 : "${ac_tmp:=$tmp}"
32050 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32052 trap 'as_fn_exit 1' 1 2 13 15
32054 # Create a (secure) tmp directory for tmp files.
32057 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32061 tmp
=.
/conf$$
-$RANDOM
32062 (umask 077 && mkdir
"$tmp")
32063 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
32066 # Set up the scripts for CONFIG_FILES section.
32067 # No need to generate them if there are no CONFIG_FILES.
32068 # This happens for instance with `./config.status config.h'.
32069 if test -n "$CONFIG_FILES"; then
32072 ac_cr
=`echo X | tr X '\015'`
32073 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32074 # But we know of no other shell where ac_cr would be empty at this
32075 # point, so we can use a bashism as a fallback.
32076 if test "x$ac_cr" = x
; then
32077 eval ac_cr
=\$
\'\\r
\'
32079 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32080 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32083 ac_cs_awk_cr
=$ac_cr
32086 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32091 echo "cat >conf$$subs.awk <<_ACEOF" &&
32092 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32094 } >conf$$subs.sh ||
32095 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32096 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32098 for ac_last_try in false false false false false :; do
32099 . ./conf$$subs.sh ||
32100 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32102 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
32103 if test $ac_delim_n = $ac_delim_num; then
32105 elif $ac_last_try; then
32106 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32108 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32111 rm -f conf$$subs.sh
32113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32114 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
32118 s/^/S["/; s
/!.
*/"]=/
32128 s/\(.\{148\}\)..*/\1/
32130 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
32135 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32142 s/\(.\{148\}\)..*/\1/
32144 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
32148 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32153 ' <conf$$subs.awk | sed '
32158 ' >>$CONFIG_STATUS || ac_write_fail=1
32159 rm -f conf$$subs.awk
32160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32162 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
32163 for (key in S) S_is_set[key] = 1
32169 nfields = split(line, field, "@
")
32171 len = length(field[1])
32172 for (i = 2; i < nfields; i++) {
32174 keylen = length(key)
32175 if (S_is_set[key]) {
32177 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32178 len += length(value) + length(field[++i])
32189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32190 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32191 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
32194 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
32195 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
32198 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32199 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
32200 # trailing colons and then remove the whole line if VPATH becomes empty
32201 # (actually we leave an empty line to preserve line numbers).
32202 if test "x
$srcdir" = x.; then
32203 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32222 fi # test -n "$CONFIG_FILES"
32224 # Set up the scripts for CONFIG_HEADERS section.
32225 # No need to generate them if there are no CONFIG_HEADERS.
32226 # This happens for instance with `./config.status Makefile'.
32227 if test -n "$CONFIG_HEADERS"; then
32228 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
32232 # Transform confdefs.h into an awk script `defines.awk', embedded as
32233 # here-document in config.status, that substitutes the proper values into
32234 # config.h.in to produce config.h.
32236 # Create a delimiter string that does not exist in confdefs.h, to ease
32237 # handling of long lines.
32239 for ac_last_try in false false :; do
32240 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
32241 if test -z "$ac_tt"; then
32243 elif $ac_last_try; then
32244 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
32246 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32250 # For the awk script, D is an array of macro values keyed by name,
32251 # likewise P contains macro parameters if any. Preserve backslash
32252 # newline sequences.
32254 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32256 s/.\{148\}/&'"$ac_delim"'/g
32259 s/^[ ]*#[ ]*define[ ][ ]*/ /
32266 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
32268 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
32272 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
32273 D["\
1"]=" \
3\\\\\\n
"\\/p
32275 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
32280 s/.\{148\}/&'"$ac_delim"'/g
32285 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
32288 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
32290 ' <confdefs.h | sed '
32291 s/'"$ac_delim"'/"\\\
32292 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32295 for (key in D) D_is_set[key] = 1
32298 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32300 split(line, arg, " ")
32301 if (arg[1] == "#") {
32305 defundef
= substr
(arg
[1], 2)
32308 split(mac1
, mac2
, "(") #)
32310 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
32311 if (D_is_set
[macro
]) {
32312 # Preserve the white space surrounding the "#".
32313 print prefix
"define", macro P
[macro
] D
[macro
]
32316 # Replace #undef with comments. This is necessary, for example,
32317 # in the case of _POSIX_SOURCE, which is predefined and required
32318 # on some systems where configure will not decide to define it.
32319 if (defundef
== "undef") {
32320 print
"/*", prefix defundef
, macro
, "*/"
32328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32329 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
32330 fi # test -n "$CONFIG_HEADERS"
32333 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32338 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32340 case $ac_mode$ac_tag in
32342 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
32343 :[FH
]-) ac_tag
=-:-;;
32344 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32361 -) ac_f
="$ac_tmp/stdin";;
32362 *) # Look for the file first in the build tree, then in the source tree
32363 # (if the path is not absolute). The absolute path cannot be DOS-style,
32364 # because $ac_f cannot contain `:'.
32368 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32370 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32372 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32373 as_fn_append ac_file_inputs
" '$ac_f'"
32376 # Let's still pretend it is `configure' which instantiates (i.e., don't
32377 # use $as_me), people would be surprised to read:
32378 # /* config.h. Generated by config.status. */
32379 configure_input
='Generated from '`
32380 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32382 if test x
"$ac_file" != x-
; then
32383 configure_input
="$ac_file. $configure_input"
32384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32385 $as_echo "$as_me: creating $ac_file" >&6;}
32387 # Neutralize special characters interpreted by sed in replacement strings.
32388 case $configure_input in #(
32389 *\
&* |
*\|
* |
*\\* )
32390 ac_sed_conf_input
=`$as_echo "$configure_input" |
32391 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32392 *) ac_sed_conf_input
=$configure_input;;
32396 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
32397 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
32402 ac_dir
=`$as_dirname -- "$ac_file" ||
32403 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32404 X"$ac_file" : 'X\(//\)[^/]' \| \
32405 X"$ac_file" : 'X\(//\)$' \| \
32406 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32407 $as_echo X"$ac_file" |
32408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32412 /^X\(\/\/\)[^/].*/{
32425 as_dir
="$ac_dir"; as_fn_mkdir_p
32429 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32431 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32432 # A ".." for each directory in $ac_dir_suffix.
32433 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32434 case $ac_top_builddir_sub in
32435 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32436 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32439 ac_abs_top_builddir
=$ac_pwd
32440 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32441 # for backward compatibility:
32442 ac_top_builddir
=$ac_top_build_prefix
32445 .
) # We are building in place.
32447 ac_top_srcdir
=$ac_top_builddir_sub
32448 ac_abs_top_srcdir
=$ac_pwd ;;
32449 [\\/]* | ?
:[\\/]* ) # Absolute name.
32450 ac_srcdir
=$srcdir$ac_dir_suffix;
32451 ac_top_srcdir
=$srcdir
32452 ac_abs_top_srcdir
=$srcdir ;;
32453 *) # Relative name.
32454 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32455 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32456 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32458 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32468 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32469 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32471 ac_MKDIR_P
=$MKDIR_P
32473 [\\/$
]* | ?
:[\\/]* ) ;;
32474 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
32478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32479 # If the template does not know about datarootdir, expand it.
32480 # FIXME: This hack should be removed a few years after 2.60.
32481 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32492 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32493 *datarootdir
*) ac_datarootdir_seen
=yes;;
32494 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32496 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32499 ac_datarootdir_hack='
32500 s&@datadir@&$datadir&g
32501 s&@docdir@&$docdir&g
32502 s&@infodir@&$infodir&g
32503 s&@localedir@&$localedir&g
32504 s&@mandir@&$mandir&g
32505 s&\\\${datarootdir}&$datarootdir&g' ;;
32509 # Neutralize VPATH when `$srcdir' = `.'.
32510 # Shell code in configure.ac might set extrasub.
32511 # FIXME: do we really want to maintain this feature?
32512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32513 ac_sed_extra="$ac_vpsub
32516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32518 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32519 s|@configure_input@|
$ac_sed_conf_input|
;t t
32520 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32521 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
32522 s
&@srcdir@
&$ac_srcdir&;t t
32523 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32524 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32525 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32526 s
&@builddir@
&$ac_builddir&;t t
32527 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32528 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32529 s
&@INSTALL@
&$ac_INSTALL&;t t
32530 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
32531 $ac_datarootdir_hack
32533 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
32534 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32536 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32537 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32538 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32539 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
32540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32541 which seems to be undefined. Please make sure it is defined" >&5
32542 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32543 which seems to be undefined. Please make sure it is defined" >&2;}
32545 rm -f "$ac_tmp/stdin"
32547 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32548 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32550 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32556 if test x"$ac_file" != x-; then
32558 $as_echo "/* $configure_input */" \
32559 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32560 } >"$ac_tmp/config.h" \
32561 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32562 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32563 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32564 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32567 mv "$ac_tmp/config.h" "$ac_file" \
32568 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32571 $as_echo "/* $configure_input */" \
32572 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32573 || as_fn_error $? "could not create -" "$LINENO" 5
32575 # Compute "$ac_file"'s index
in $config_headers.
32578 for _am_header
in $config_headers :; do
32579 case $_am_header in
32580 $_am_arg |
$_am_arg:* )
32583 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
32586 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32587 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32588 X"$_am_arg" : 'X\(//\)[^/]' \| \
32589 X"$_am_arg" : 'X\(//\)$' \| \
32590 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32591 $as_echo X"$_am_arg" |
32592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32596 /^X\(\/\/\)[^/].*/{
32608 s/.*/./; q'`/stamp-h
$_am_stamp_count
32611 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32612 $as_echo "$as_me: executing $ac_file commands" >&6;}
32617 case $ac_file$ac_mode in
32618 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
32619 # Older Autoconf quotes --file arguments for eval, but not when files
32620 # are listed without --file. Let's play safe and only enable the eval
32621 # if we detect the quoting.
32622 case $CONFIG_FILES in
32623 *\'*) eval set x
"$CONFIG_FILES" ;;
32624 *) set x
$CONFIG_FILES ;;
32629 # Strip MF so we end up with the name of the file.
32630 mf
=`echo "$mf" | sed -e 's/:.*$//'`
32631 # Check whether this is an Automake generated Makefile or not.
32632 # We used to match only the files named 'Makefile.in', but
32633 # some people rename them; so instead we look at the file content.
32634 # Grep'ing the first line is not enough: some people post-process
32635 # each Makefile.in and add a new line on top of each file to say so.
32636 # Grep'ing the whole file is not good either: AIX grep has a line
32637 # limit of 2048, but all sed's we know have understand at least 4000.
32638 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
32639 dirpart
=`$as_dirname -- "$mf" ||
32640 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32641 X"$mf" : 'X\(//\)[^/]' \| \
32642 X"$mf" : 'X\(//\)$' \| \
32643 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32649 /^X\(\/\/\)[^/].*/{
32665 # Extract the definition of DEPDIR, am__include, and am__quote
32666 # from the Makefile without running 'make'.
32667 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
32668 test -z "$DEPDIR" && continue
32669 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
32670 test -z "$am__include" && continue
32671 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
32672 # Find all dependency output files, they are included files with
32673 # $(DEPDIR) in their names. We invoke sed twice because it is the
32674 # simplest approach to changing $(DEPDIR) to its actual value in the
32676 for file in `sed -n "
32677 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32678 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
32679 # Make sure the directory exists.
32680 test -f "$dirpart/$file" && continue
32681 fdir
=`$as_dirname -- "$file" ||
32682 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32683 X"$file" : 'X\(//\)[^/]' \| \
32684 X"$file" : 'X\(//\)$' \| \
32685 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32686 $as_echo X"$file" |
32687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32691 /^X\(\/\/\)[^/].*/{
32704 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
32705 # echo "creating $dirpart/$file"
32706 echo '# dummy' > "$dirpart/$file"
32712 case x
$CONFIG_HEADERS in
32713 xconfig.h
:config.
in)
32724 ac_clean_files
=$ac_clean_files_save
32726 test $ac_write_fail = 0 ||
32727 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
32730 # configure is writing to config.log, and then calls config.status.
32731 # config.status does its own redirection, appending to config.log.
32732 # Unfortunately, on DOS this fails, as config.log is still kept open
32733 # by configure, so config.status won't be able to write to it; its
32734 # output is simply discarded. So we exec the FD to /dev/null,
32735 # effectively closing config.log, so it can be properly (re)opened and
32736 # appended to by config.status. When coming back to configure, we
32737 # need to make the FD available again.
32738 if test "$no_create" != yes; then
32740 ac_config_status_args
=
32741 test "$silent" = yes &&
32742 ac_config_status_args
="$ac_config_status_args --quiet"
32744 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32746 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32747 # would make configure fail if this is the last instruction.
32748 $ac_cs_success || as_fn_exit
1
32750 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
32751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32752 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}