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
746 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
748 NEXT_AS_FIRST_DIRECTIVE_STRING_H
750 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
752 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
755 GL_GENERATE_STDBOOL_H_FALSE
756 GL_GENERATE_STDBOOL_H_TRUE
758 GL_GENERATE_STDALIGN_H_FALSE
759 GL_GENERATE_STDALIGN_H_TRUE
761 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
764 REPLACE_PTHREAD_SIGMASK
766 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
767 HAVE_STRUCT_SIGACTION_SA_SIGACTION
773 HAVE_POSIX_SIGNALBLOCKING
776 GNULIB_SIGNAL_H_SIGPIPE
778 GNULIB_PTHREAD_SIGMASK
779 GL_GENERATE_NETINET_IN_H_FALSE
780 GL_GENERATE_NETINET_IN_H_TRUE
783 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
787 REPLACE_STRERRORNAME_NP
832 GNULIB_STRERRORNAME_NP
868 GNULIB_EXPLICIT_BZERO
875 NEXT_AS_FIRST_DIRECTIVE_MATH_H
882 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
885 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
887 GL_GENERATE_STDDEF_H_FALSE
888 GL_GENERATE_STDDEF_H_TRUE
904 GNULIB_SETLOCALE_NULL
907 LOCALCHARSET_TESTS_ENVIRONMENT
908 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
910 UINT64_MAX_EQ_ULONG_MAX
911 UINT32_MAX_LT_UINTMAX_MAX
913 INT64_MAX_EQ_LONG_MAX
914 INT32_MAX_LT_INTMAX_MAX
926 GL_GENERATE_STDINT_H_FALSE
927 GL_GENERATE_STDINT_H_TRUE
939 HAVE_SIGNED_SIG_ATOMIC_T
942 BITSIZEOF_SIG_ATOMIC_T
945 APPLE_UNIVERSAL_BUILD
947 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
952 GNULIB_OVERRIDES_WINT_T
953 GL_GENERATE_LIMITS_H_FALSE
954 GL_GENERATE_LIMITS_H_TRUE
956 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
959 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
963 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
964 HAVE_STRUCT_SOCKADDR_STORAGE
986 GL_GENERATE_GLOB_H_FALSE
987 GL_GENERATE_GLOB_H_TRUE
990 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
992 REPLACE_GLOB_PATTERN_P
997 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
999 REPLACE_STRUCT_TIMEVAL
1000 REPLACE_GETTIMEOFDAY
1019 REPLACE_STDIO_WRITE_FUNCS
1020 REPLACE_STDIO_READ_FUNCS
1029 REPLACE_OBSTACK_PRINTF
1054 HAVE_DECL_OBSTACK_PRINTF
1066 GNULIB_MDA_FCLOSEALL
1067 GNULIB_VSPRINTF_POSIX
1069 GNULIB_VPRINTF_POSIX
1071 GNULIB_VFPRINTF_POSIX
1078 GNULIB_STDIO_H_SIGPIPE
1079 GNULIB_STDIO_H_NONBLOCKING
1080 GNULIB_SPRINTF_POSIX
1094 GNULIB_OBSTACK_PRINTF_POSIX
1095 GNULIB_OBSTACK_PRINTF
1111 GNULIB_FPRINTF_POSIX
1120 WINDOWS_64_BIT_ST_SIZE
1121 WINDOWS_STAT_TIMESPEC
1122 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1151 GNULIB_OVERRIDES_STRUCT_STAT
1168 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1179 REPLACE_SIGNBIT_USING_BUILTINS
1259 HAVE_DECL_REMAINDERL
1446 GL_GENERATE_FNMATCH_H_FALSE
1447 GL_GENERATE_FNMATCH_H_TRUE
1450 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
1456 GL_GENERATE_FLOAT_H_FALSE
1457 GL_GENERATE_FLOAT_H_TRUE
1459 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1461 HAVE_DECL_STRNCASECMP
1465 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1486 GL_GENERATE_ERRNO_H_FALSE
1487 GL_GENERATE_ERRNO_H_TRUE
1489 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1492 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1494 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
1520 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1522 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1523 UNISTD_H_HAVE_WINSOCK2_H
1524 UNISTD_H_HAVE_SYS_RANDOM_H
1549 REPLACE_GETDTABLESIZE
1550 REPLACE_GETDOMAINNAME
1571 HAVE_DECL_SETHOSTNAME
1572 HAVE_DECL_GETUSERSHELL
1573 HAVE_DECL_GETPAGESIZE
1574 HAVE_DECL_GETLOGIN_R
1576 HAVE_DECL_GETDOMAINNAME
1613 HAVE_COPY_FILE_RANGE
1640 GNULIB_UNISTD_H_SIGPIPE
1641 GNULIB_UNISTD_H_NONBLOCKING
1671 GNULIB_GETDTABLESIZE
1672 GNULIB_GETDOMAINNAME
1692 GNULIB_COPY_FILE_RANGE
1711 REPLACE_POSIX_MEMALIGN
1717 REPLACE_CANONICALIZE_FILE_NAME
1719 REPLACE_ALIGNED_ALLOC
1723 HAVE_STRUCT_RANDOM_DATA
1754 HAVE_DECL_GETLOADAVG
1758 HAVE_CANONICALIZE_FILE_NAME
1776 GNULIB_SECURE_GETENV
1779 GNULIB_REALLOC_POSIX
1788 GNULIB_POSIX_MEMALIGN
1800 GNULIB_CANONICALIZE_FILE_NAME
1803 GNULIB_ALIGNED_ALLOC
1908 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1911 PRAGMA_SYSTEM_HEADER
1912 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1922 GL_GENERATE_ALLOCA_H_FALSE
1923 GL_GENERATE_ALLOCA_H_TRUE
1926 GL_COND_LIBTOOL_FALSE
1927 GL_COND_LIBTOOL_TRUE
1955 MAINTAINER_MODE_FALSE
1956 MAINTAINER_MODE_TRUE
1984 program_transform_name
1997 enable_option_checking
1998 enable_maintainer_mode
2002 enable_cross_guesses
2003 enable_dependency_tracking
2006 ac_precious_vars
='build_alias
2017 # Initialize some variables set by options.
2019 ac_init_version
=false
2020 ac_unrecognized_opts
=
2021 ac_unrecognized_sep
=
2022 # The variables have the same names as the options, with
2023 # dashes changed to underlines.
2024 cache_file
=/dev
/null
2031 program_transform_name
=s
,x
,x
,
2039 # Installation directory options.
2040 # These are left unexpanded so users can "make install exec_prefix=/foo"
2041 # and all the variables that are supposed to be based on exec_prefix
2042 # by default will actually change.
2043 # Use braces instead of parens because sh, perl, etc. also accept them.
2044 # (The list follows the same order as the GNU Coding Standards.)
2045 bindir
='${exec_prefix}/bin'
2046 sbindir
='${exec_prefix}/sbin'
2047 libexecdir
='${exec_prefix}/libexec'
2048 datarootdir
='${prefix}/share'
2049 datadir
='${datarootdir}'
2050 sysconfdir
='${prefix}/etc'
2051 sharedstatedir
='${prefix}/com'
2052 localstatedir
='${prefix}/var'
2053 includedir
='${prefix}/include'
2054 oldincludedir
='/usr/include'
2055 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
2056 infodir
='${datarootdir}/info'
2061 libdir
='${exec_prefix}/lib'
2062 localedir
='${datarootdir}/locale'
2063 mandir
='${datarootdir}/man'
2069 # If the previous option needs an argument, assign it.
2070 if test -n "$ac_prev"; then
2071 eval $ac_prev=\
$ac_option
2077 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2082 # Accept the important Cygnus configure options, so we can diagnose typos.
2084 case $ac_dashdash$ac_option in
2088 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
2090 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
2091 bindir
=$ac_optarg ;;
2093 -build |
--build |
--buil |
--bui |
--bu)
2094 ac_prev
=build_alias
;;
2095 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
2096 build_alias
=$ac_optarg ;;
2098 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
2099 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
2100 ac_prev
=cache_file
;;
2101 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
2102 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
2103 cache_file
=$ac_optarg ;;
2105 --config-cache |
-C)
2106 cache_file
=config.cache
;;
2108 -datadir |
--datadir |
--datadi |
--datad)
2110 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
2111 datadir
=$ac_optarg ;;
2113 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
2114 |
--dataroo |
--dataro |
--datar)
2115 ac_prev
=datarootdir
;;
2116 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
2117 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
2118 datarootdir
=$ac_optarg ;;
2120 -disable-* |
--disable-*)
2121 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2122 # Reject names that are not valid shell variable names.
2123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2124 as_fn_error $?
"invalid feature name: $ac_useropt"
2125 ac_useropt_orig
=$ac_useropt
2126 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2127 case $ac_user_opts in
2129 "enable_
$ac_useropt"
2131 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2132 ac_unrecognized_sep
=', ';;
2134 eval enable_
$ac_useropt=no
;;
2136 -docdir |
--docdir |
--docdi |
--doc |
--do)
2138 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
2139 docdir
=$ac_optarg ;;
2141 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
2143 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
2144 dvidir
=$ac_optarg ;;
2146 -enable-* |
--enable-*)
2147 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2148 # Reject names that are not valid shell variable names.
2149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2150 as_fn_error $?
"invalid feature name: $ac_useropt"
2151 ac_useropt_orig
=$ac_useropt
2152 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2153 case $ac_user_opts in
2155 "enable_
$ac_useropt"
2157 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2158 ac_unrecognized_sep
=', ';;
2160 eval enable_
$ac_useropt=\
$ac_optarg ;;
2162 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
2163 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
2164 |
--exec |
--exe |
--ex)
2165 ac_prev
=exec_prefix
;;
2166 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
2167 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
2168 |
--exec=* |
--exe=* |
--ex=*)
2169 exec_prefix
=$ac_optarg ;;
2171 -gas |
--gas |
--ga |
--g)
2172 # Obsolete; use --with-gas.
2175 -help |
--help |
--hel |
--he |
-h)
2176 ac_init_help
=long
;;
2177 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
2178 ac_init_help
=recursive
;;
2179 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
2180 ac_init_help
=short
;;
2182 -host |
--host |
--hos |
--ho)
2183 ac_prev
=host_alias
;;
2184 -host=* |
--host=* |
--hos=* |
--ho=*)
2185 host_alias
=$ac_optarg ;;
2187 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
2189 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
2191 htmldir
=$ac_optarg ;;
2193 -includedir |
--includedir |
--includedi |
--included |
--include \
2194 |
--includ |
--inclu |
--incl |
--inc)
2195 ac_prev
=includedir
;;
2196 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
2197 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
2198 includedir
=$ac_optarg ;;
2200 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
2202 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
2203 infodir
=$ac_optarg ;;
2205 -libdir |
--libdir |
--libdi |
--libd)
2207 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
2208 libdir
=$ac_optarg ;;
2210 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
2211 |
--libexe |
--libex |
--libe)
2212 ac_prev
=libexecdir
;;
2213 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
2214 |
--libexe=* |
--libex=* |
--libe=*)
2215 libexecdir
=$ac_optarg ;;
2217 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2218 ac_prev
=localedir
;;
2219 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2220 localedir
=$ac_optarg ;;
2222 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2223 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2224 ac_prev
=localstatedir
;;
2225 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2226 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2227 localstatedir
=$ac_optarg ;;
2229 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2231 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2232 mandir
=$ac_optarg ;;
2234 -nfp |
--nfp |
--nf)
2235 # Obsolete; use --without-fp.
2238 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2239 |
--no-cr |
--no-c |
-n)
2242 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2243 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2246 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2247 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2248 |
--oldin |
--oldi |
--old |
--ol |
--o)
2249 ac_prev
=oldincludedir
;;
2250 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2251 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2252 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2253 oldincludedir
=$ac_optarg ;;
2255 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2257 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2258 prefix
=$ac_optarg ;;
2260 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2261 |
--program-pre |
--program-pr |
--program-p)
2262 ac_prev
=program_prefix
;;
2263 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2264 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2265 program_prefix
=$ac_optarg ;;
2267 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2268 |
--program-suf |
--program-su |
--program-s)
2269 ac_prev
=program_suffix
;;
2270 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2271 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2272 program_suffix
=$ac_optarg ;;
2274 -program-transform-name |
--program-transform-name \
2275 |
--program-transform-nam |
--program-transform-na \
2276 |
--program-transform-n |
--program-transform- \
2277 |
--program-transform |
--program-transfor \
2278 |
--program-transfo |
--program-transf \
2279 |
--program-trans |
--program-tran \
2280 |
--progr-tra |
--program-tr |
--program-t)
2281 ac_prev
=program_transform_name
;;
2282 -program-transform-name=* |
--program-transform-name=* \
2283 |
--program-transform-nam=* |
--program-transform-na=* \
2284 |
--program-transform-n=* |
--program-transform-=* \
2285 |
--program-transform=* |
--program-transfor=* \
2286 |
--program-transfo=* |
--program-transf=* \
2287 |
--program-trans=* |
--program-tran=* \
2288 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2289 program_transform_name
=$ac_optarg ;;
2291 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2293 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2294 pdfdir
=$ac_optarg ;;
2296 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2298 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2301 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2302 |
-silent |
--silent |
--silen |
--sile |
--sil)
2305 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2307 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2309 sbindir
=$ac_optarg ;;
2311 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2312 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2313 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2315 ac_prev
=sharedstatedir
;;
2316 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2317 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2318 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2320 sharedstatedir
=$ac_optarg ;;
2322 -site |
--site |
--sit)
2324 -site=* |
--site=* |
--sit=*)
2327 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2329 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2330 srcdir
=$ac_optarg ;;
2332 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2333 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2334 ac_prev
=sysconfdir
;;
2335 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2336 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2337 sysconfdir
=$ac_optarg ;;
2339 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2340 ac_prev
=target_alias
;;
2341 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2342 target_alias
=$ac_optarg ;;
2344 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2347 -version |
--version |
--versio |
--versi |
--vers |
-V)
2348 ac_init_version
=: ;;
2351 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2352 # Reject names that are not valid shell variable names.
2353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2354 as_fn_error $?
"invalid package name: $ac_useropt"
2355 ac_useropt_orig
=$ac_useropt
2356 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2357 case $ac_user_opts in
2361 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2362 ac_unrecognized_sep
=', ';;
2364 eval with_
$ac_useropt=\
$ac_optarg ;;
2366 -without-* |
--without-*)
2367 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2368 # Reject names that are not valid shell variable names.
2369 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2370 as_fn_error $?
"invalid package name: $ac_useropt"
2371 ac_useropt_orig
=$ac_useropt
2372 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2373 case $ac_user_opts in
2377 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2378 ac_unrecognized_sep
=', ';;
2380 eval with_
$ac_useropt=no
;;
2383 # Obsolete; use --with-x.
2386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2388 ac_prev
=x_includes
;;
2389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2391 x_includes
=$ac_optarg ;;
2393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2395 ac_prev
=x_libraries
;;
2396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2398 x_libraries
=$ac_optarg ;;
2400 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2401 Try \`$0 --help' for more information"
2405 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2406 # Reject names that are not valid shell variable names.
2407 case $ac_envvar in #(
2408 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2409 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2411 eval $ac_envvar=\
$ac_optarg
2412 export $ac_envvar ;;
2415 # FIXME: should be removed in autoconf 3.0.
2416 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2417 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2418 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2419 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2425 if test -n "$ac_prev"; then
2426 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2427 as_fn_error $?
"missing argument to $ac_option"
2430 if test -n "$ac_unrecognized_opts"; then
2431 case $enable_option_checking in
2433 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2434 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2438 # Check all directory arguments for consistency.
2439 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2440 datadir sysconfdir sharedstatedir localstatedir includedir \
2441 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2442 libdir localedir mandir
2444 eval ac_val
=\$
$ac_var
2445 # Remove trailing slashes.
2448 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2449 eval $ac_var=\
$ac_val;;
2451 # Be sure to have absolute directory names.
2453 [\\/$
]* | ?
:[\\/]* ) continue;;
2454 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2456 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2459 # There might be people who depend on the old broken behavior: `$host'
2460 # used to hold the argument of --host etc.
2461 # FIXME: To remove some day.
2464 target
=$target_alias
2466 # FIXME: To remove some day.
2467 if test "x$host_alias" != x
; then
2468 if test "x$build_alias" = x
; then
2469 cross_compiling
=maybe
2470 elif test "x$build_alias" != "x$host_alias"; then
2476 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2478 test "$silent" = yes && exec 6>/dev
/null
2481 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2482 ac_ls_di
=`ls -di .` &&
2483 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2484 as_fn_error $?
"working directory cannot be determined"
2485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2486 as_fn_error $?
"pwd does not report name of working directory"
2489 # Find the source files, if location was not specified.
2490 if test -z "$srcdir"; then
2491 ac_srcdir_defaulted
=yes
2492 # Try the directory containing this script, then the parent directory.
2493 ac_confdir
=`$as_dirname -- "$as_myself" ||
2494 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2495 X"$as_myself" : 'X\(//\)[^/]' \| \
2496 X"$as_myself" : 'X\(//\)$' \| \
2497 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2498 $as_echo X"$as_myself" |
2499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2517 if test ! -r "$srcdir/$ac_unique_file"; then
2521 ac_srcdir_defaulted
=no
2523 if test ! -r "$srcdir/$ac_unique_file"; then
2524 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2525 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2527 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2529 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2531 # When building in place, set srcdir=.
2532 if test "$ac_abs_confdir" = "$ac_pwd"; then
2535 # Remove unnecessary trailing slashes from srcdir.
2536 # Double slashes in file names in object file debugging info
2537 # mess up M-x gdb in Emacs.
2539 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2541 for ac_var
in $ac_precious_vars; do
2542 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2543 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2544 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2545 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2549 # Report the --help message.
2551 if test "$ac_init_help" = "long"; then
2552 # Omit some internal or obsolete options to make the list less imposing.
2553 # This message is too long to be a string in the A/UX 3.1 sh.
2555 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2557 Usage: $0 [OPTION]... [VAR=VALUE]...
2559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2560 VAR=VALUE. See below for descriptions of some of the useful variables.
2562 Defaults for the options are specified in brackets.
2565 -h, --help display this help and exit
2566 --help=short display options specific to this package
2567 --help=recursive display the short help of all the included packages
2568 -V, --version display version information and exit
2569 -q, --quiet, --silent do not print \`checking ...' messages
2570 --cache-file=FILE cache test results in FILE [disabled]
2571 -C, --config-cache alias for \`--cache-file=config.cache'
2572 -n, --no-create do not create output files
2573 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2575 Installation directories:
2576 --prefix=PREFIX install architecture-independent files in PREFIX
2577 [$ac_default_prefix]
2578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2581 By default, \`make install' will install all the files in
2582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2584 for instance \`--prefix=\$HOME'.
2586 For better control, use the options below.
2588 Fine tuning of the installation directories:
2589 --bindir=DIR user executables [EPREFIX/bin]
2590 --sbindir=DIR system admin executables [EPREFIX/sbin]
2591 --libexecdir=DIR program executables [EPREFIX/libexec]
2592 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2593 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2594 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2595 --libdir=DIR object code libraries [EPREFIX/lib]
2596 --includedir=DIR C header files [PREFIX/include]
2597 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2600 --infodir=DIR info documentation [DATAROOTDIR/info]
2601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2602 --mandir=DIR man documentation [DATAROOTDIR/man]
2603 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2604 --htmldir=DIR html documentation [DOCDIR]
2605 --dvidir=DIR dvi documentation [DOCDIR]
2606 --pdfdir=DIR pdf documentation [DOCDIR]
2607 --psdir=DIR ps documentation [DOCDIR]
2613 --program-prefix=PREFIX prepend PREFIX to installed program names
2614 --program-suffix=SUFFIX append SUFFIX to installed program names
2615 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2618 --build=BUILD configure
for building on BUILD
[guessed
]
2619 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2620 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2624 if test -n "$ac_init_help"; then
2625 case $ac_init_help in
2626 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2631 --disable-option-checking ignore unrecognized
--enable/--with options
2632 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2633 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2634 --enable-maintainer-mode
2635 enable make rules and dependencies not useful
(and
2636 sometimes confusing
) to the casual installer
2637 --enable-plugins Enable support
for plugins
2638 --disable-largefile omit support
for large files
2639 --enable-threads={isoc|posix|isoc
+posix|windows
}
2640 specify multithreading API
2641 --disable-threads build without multithread safety
2642 --enable-cross-guesses={conservative|risky
}
2643 specify policy
for cross-compilation guesses
2644 --enable-dependency-tracking
2645 do not reject slow dependency extractors
2646 --disable-dependency-tracking
2647 speeds up one-time build
2648 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2649 --disable-silent-rules verbose build output
(undo
: "make V=0")
2651 Some influential environment variables
:
2652 CC C compiler
command
2653 CFLAGS C compiler flags
2654 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2655 nonstandard directory
<lib dir
>
2656 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2657 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2658 you have headers
in a nonstandard directory
<include dir
>
2661 Use these variables to override the choices made by
`configure' or to help
2662 it to find libraries and programs with nonstandard names/locations.
2664 Report bugs to the package provider.
2669 if test "$ac_init_help" = "recursive"; then
2670 # If there are subdirs, report their specific --help.
2671 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2672 test -d "$ac_dir" ||
2673 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2680 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2681 # A ".." for each directory in $ac_dir_suffix.
2682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2683 case $ac_top_builddir_sub in
2684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2688 ac_abs_top_builddir=$ac_pwd
2689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2690 # for backward compatibility:
2691 ac_top_builddir=$ac_top_build_prefix
2694 .) # We are building in place.
2696 ac_top_srcdir=$ac_top_builddir_sub
2697 ac_abs_top_srcdir=$ac_pwd ;;
2698 [\\/]* | ?:[\\/]* ) # Absolute name.
2699 ac_srcdir=$srcdir$ac_dir_suffix;
2700 ac_top_srcdir=$srcdir
2701 ac_abs_top_srcdir=$srcdir ;;
2703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2704 ac_top_srcdir=$ac_top_build_prefix$srcdir
2705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2709 cd "$ac_dir" || { ac_status=$?; continue; }
2710 # Check for guested configure.
2711 if test -f "$ac_srcdir/configure.gnu"; then
2713 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2714 elif test -f "$ac_srcdir/configure"; then
2716 $SHELL "$ac_srcdir/configure" --help=recursive
2718 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2720 cd "$ac_pwd" || { ac_status=$?; break; }
2724 test -n "$ac_init_help" && exit $ac_status
2725 if $ac_init_version; then
2727 libgnu configure UNUSED-VERSION
2728 generated by GNU Autoconf 2.69
2730 Copyright (C) 2012 Free Software Foundation, Inc.
2731 This configure script is free software; the Free Software Foundation
2732 gives unlimited permission to copy, distribute and modify it.
2737 ## ------------------------ ##
2738 ## Autoconf initialization. ##
2739 ## ------------------------ ##
2741 # ac_fn_c_try_compile LINENO
2742 # --------------------------
2743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2744 ac_fn_c_try_compile ()
2746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2747 rm -f conftest.$ac_objext
2748 if { { ac_try="$ac_compile"
2750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2751 *) ac_try_echo
=$ac_try;;
2753 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754 $as_echo "$ac_try_echo"; } >&5
2755 (eval "$ac_compile") 2>conftest.err
2757 if test -s conftest.err
; then
2758 grep -v '^ *+' conftest.err
>conftest.er1
2759 cat conftest.er1
>&5
2760 mv -f conftest.er1 conftest.err
2762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2763 test $ac_status = 0; } && {
2764 test -z "$ac_c_werror_flag" ||
2765 test ! -s conftest.err
2766 } && test -s conftest.
$ac_objext; then :
2769 $as_echo "$as_me: failed program was:" >&5
2770 sed 's/^/| /' conftest.
$ac_ext >&5
2774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2775 as_fn_set_status
$ac_retval
2777 } # ac_fn_c_try_compile
2779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2780 # -------------------------------------------------------
2781 # Tests whether HEADER exists and can be compiled using the include files in
2782 # INCLUDES, setting the cache variable VAR accordingly.
2783 ac_fn_c_check_header_compile
()
2785 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2787 $as_echo_n "checking for $2... " >&6; }
2788 if eval \
${$3+:} false
; then :
2789 $as_echo_n "(cached) " >&6
2791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2792 /* end confdefs.h. */
2796 if ac_fn_c_try_compile
"$LINENO"; then :
2801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805 $as_echo "$ac_res" >&6; }
2806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2808 } # ac_fn_c_check_header_compile
2810 # ac_fn_c_try_cpp LINENO
2811 # ----------------------
2812 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2815 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2816 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2822 $as_echo "$ac_try_echo"; } >&5
2823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2825 if test -s conftest.err; then
2826 grep -v '^ *+' conftest.err >conftest.er1
2827 cat conftest.er1 >&5
2828 mv -f conftest.er1 conftest.err
2830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831 test $ac_status = 0; } > conftest.i && {
2832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2833 test ! -s conftest.err
2837 $as_echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2843 as_fn_set_status $ac_retval
2847 # ac_fn_c_try_run LINENO
2848 # ----------------------
2849 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2850 # that executables *can* be run.
2853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2854 if { { ac_try="$ac_link"
2856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2857 *) ac_try_echo
=$ac_try;;
2859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2860 $as_echo "$ac_try_echo"; } >&5
2861 (eval "$ac_link") 2>&5
2863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2864 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2865 { { case "(($ac_try" in
2866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2870 $as_echo "$ac_try_echo"; } >&5
2871 (eval "$ac_try") 2>&5
2873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2874 test $ac_status = 0; }; }; then :
2877 $as_echo "$as_me: program exited with status $ac_status" >&5
2878 $as_echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2881 ac_retval=$ac_status
2883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2885 as_fn_set_status $ac_retval
2889 # ac_fn_c_try_link LINENO
2890 # -----------------------
2891 # Try to link conftest.$ac_ext, and return whether this succeeded.
2894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2895 rm -f conftest.$ac_objext conftest$ac_exeext
2896 if { { ac_try="$ac_link"
2898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2899 *) ac_try_echo
=$ac_try;;
2901 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902 $as_echo "$ac_try_echo"; } >&5
2903 (eval "$ac_link") 2>conftest.err
2905 if test -s conftest.err
; then
2906 grep -v '^ *+' conftest.err
>conftest.er1
2907 cat conftest.er1
>&5
2908 mv -f conftest.er1 conftest.err
2910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2911 test $ac_status = 0; } && {
2912 test -z "$ac_c_werror_flag" ||
2913 test ! -s conftest.err
2914 } && test -s conftest
$ac_exeext && {
2915 test "$cross_compiling" = yes ||
2916 test -x conftest
$ac_exeext
2920 $as_echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.
$ac_ext >&5
2925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2927 # interfere with the next link command; also delete a directory that is
2928 # left behind by Apple's compiler. We do this before executing the actions.
2929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2931 as_fn_set_status
$ac_retval
2933 } # ac_fn_c_try_link
2935 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2936 # -------------------------------------------
2937 # Tests whether TYPE exists after having included INCLUDES, setting cache
2938 # variable VAR accordingly.
2939 ac_fn_c_check_type
()
2941 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2943 $as_echo_n "checking for $2... " >&6; }
2944 if eval \
${$3+:} false
; then :
2945 $as_echo_n "(cached) " >&6
2948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h. */
2960 if ac_fn_c_try_compile
"$LINENO"; then :
2961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2973 if ac_fn_c_try_compile
"$LINENO"; then :
2978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2984 $as_echo "$ac_res" >&6; }
2985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2987 } # ac_fn_c_check_type
2989 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2990 # -------------------------------------------------------
2991 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2992 # the include files in INCLUDES and setting the cache variable VAR
2994 ac_fn_c_check_header_mongrel
()
2996 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2997 if eval \
${$3+:} false
; then :
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2999 $as_echo_n "checking for $2... " >&6; }
3000 if eval \
${$3+:} false
; then :
3001 $as_echo_n "(cached) " >&6
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3005 $as_echo "$ac_res" >&6; }
3007 # Is the header compilable?
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3009 $as_echo_n "checking $2 usability... " >&6; }
3010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3015 if ac_fn_c_try_compile
"$LINENO"; then :
3016 ac_header_compiler
=yes
3018 ac_header_compiler
=no
3020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3022 $as_echo "$ac_header_compiler" >&6; }
3024 # Is the header present?
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3026 $as_echo_n "checking $2 presence... " >&6; }
3027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3028 /* end confdefs.h. */
3031 if ac_fn_c_try_cpp
"$LINENO"; then :
3032 ac_header_preproc
=yes
3034 ac_header_preproc
=no
3036 rm -f conftest.err conftest.i conftest.
$ac_ext
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3038 $as_echo "$ac_header_preproc" >&6; }
3040 # So? What about this header?
3041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3044 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3046 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3050 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3052 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3054 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3056 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3058 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3062 $as_echo_n "checking for $2... " >&6; }
3063 if eval \
${$3+:} false
; then :
3064 $as_echo_n "(cached) " >&6
3066 eval "$3=\$ac_header_compiler"
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3070 $as_echo "$ac_res" >&6; }
3072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3074 } # ac_fn_c_check_header_mongrel
3076 # ac_fn_c_check_func LINENO FUNC VAR
3077 # ----------------------------------
3078 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3079 ac_fn_c_check_func
()
3081 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3083 $as_echo_n "checking for $2... " >&6; }
3084 if eval \
${$3+:} false
; then :
3085 $as_echo_n "(cached) " >&6
3087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3089 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3091 #define $2 innocuous_$2
3093 /* System header to define __stub macros and hopefully few prototypes,
3094 which can conflict with char $2 (); below.
3095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3096 <limits.h> exists even on freestanding compilers. */
3099 # include <limits.h>
3101 # include <assert.h>
3106 /* Override any GCC internal prototype to avoid an error.
3107 Use char because int might match the return type of a GCC
3108 builtin and then its argument prototype would still apply. */
3113 /* The GNU C library defines this for functions which it implements
3114 to always fail with ENOSYS. Some functions are actually named
3115 something starting with __ and the normal name is an alias. */
3116 #if defined __stub_$2 || defined __stub___$2
3128 if ac_fn_c_try_link
"$LINENO"; then :
3133 rm -f core conftest.err conftest.
$ac_objext \
3134 conftest
$ac_exeext conftest.
$ac_ext
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3138 $as_echo "$ac_res" >&6; }
3139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3141 } # ac_fn_c_check_func
3143 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3144 # ---------------------------------------------
3145 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3147 ac_fn_c_check_decl
()
3149 ac_save_ac_compile
="$ac_compile"
3150 if test -n "$ac_compile_for_check_decl"; then
3151 ac_compile
="$ac_compile_for_check_decl"
3153 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3154 as_decl_name
=`echo $2|sed 's/ *(.*//'`
3155 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3157 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3158 if eval \
${$3+:} false
; then :
3159 $as_echo_n "(cached) " >&6
3161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3167 #ifndef $as_decl_name
3169 (void) $as_decl_use;
3171 (void) $as_decl_name;
3179 if ac_fn_c_try_compile
"$LINENO"; then :
3184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3188 $as_echo "$ac_res" >&6; }
3189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3190 ac_compile
="$ac_save_ac_compile"
3192 } # ac_fn_c_check_decl
3194 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3195 # --------------------------------------------
3196 # Tries to find the compile-time value of EXPR in a program that includes
3197 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3199 ac_fn_c_compute_int
()
3201 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3202 if test "$cross_compiling" = yes; then
3203 # Depending upon the size, compute the lo and hi bounds.
3204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3210 static int test_array [1 - 2 * !(($2) >= 0)];
3212 return test_array [0];
3218 if ac_fn_c_try_compile
"$LINENO"; then :
3221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3229 return test_array [0];
3235 if ac_fn_c_try_compile
"$LINENO"; then :
3236 ac_hi
=$ac_mid; break
3238 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3239 if test $ac_lo -le $ac_mid; then
3243 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3254 static int test_array [1 - 2 * !(($2) < 0)];
3256 return test_array [0];
3262 if ac_fn_c_try_compile
"$LINENO"; then :
3265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3271 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3273 return test_array [0];
3279 if ac_fn_c_try_compile
"$LINENO"; then :
3280 ac_lo
=$ac_mid; break
3282 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3283 if test $ac_mid -le $ac_hi; then
3287 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3297 # Binary search between lo and hi bounds.
3298 while test "x$ac_lo" != "x$ac_hi"; do
3299 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3306 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3308 return test_array [0];
3314 if ac_fn_c_try_compile
"$LINENO"; then :
3317 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3322 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3329 static long int longval () { return $2; }
3330 static unsigned long int ulongval () { return $2; }
3337 FILE *f = fopen ("conftest.val", "w");
3342 long int i = longval ();
3345 fprintf (f, "%ld", i);
3349 unsigned long int i = ulongval ();
3352 fprintf (f, "%lu", i);
3354 /* Do not output a trailing newline, as this causes \r\n confusion
3355 on some platforms. */
3356 return ferror (f) || fclose (f) != 0;
3362 if ac_fn_c_try_run
"$LINENO"; then :
3363 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3367 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3368 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3373 as_fn_set_status
$ac_retval
3375 } # ac_fn_c_compute_int
3377 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3378 # ----------------------------------------------------
3379 # Tries to find if the field MEMBER exists in type AGGR, after including
3380 # INCLUDES, setting cache variable VAR accordingly.
3381 ac_fn_c_check_member
()
3383 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3385 $as_echo_n "checking for $2.$3... " >&6; }
3386 if eval \
${$4+:} false
; then :
3387 $as_echo_n "(cached) " >&6
3389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3402 if ac_fn_c_try_compile
"$LINENO"; then :
3405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3412 if (sizeof ac_aggr.$3)
3418 if ac_fn_c_try_compile
"$LINENO"; then :
3423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3429 $as_echo "$ac_res" >&6; }
3430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3432 } # ac_fn_c_check_member
3433 cat >config.log
<<_ACEOF
3434 This file contains any messages produced by compilers while
3435 running configure, to aid debugging if configure makes a mistake.
3437 It was created by libgnu $as_me UNUSED-VERSION, which was
3438 generated by GNU Autoconf 2.69. Invocation command line was
3450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3457 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3459 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3460 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3462 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3463 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3464 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3465 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir
=.
3474 $as_echo "PATH: $as_dir"
3490 # Keep a trace of the command line.
3491 # Strip out --no-create and --no-recursion so they do not pile up.
3492 # Strip out --silent because we don't want to record it for future runs.
3493 # Also quote any args containing shell meta-characters.
3494 # Make two passes to allow for proper duplicate-argument suppression.
3498 ac_must_keep_next
=false
3504 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3505 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3506 |
-silent |
--silent |
--silen |
--sile |
--sil)
3509 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3512 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3514 as_fn_append ac_configure_args1
" '$ac_arg'"
3515 if test $ac_must_keep_next = true
; then
3516 ac_must_keep_next
=false
# Got value, back to normal.
3519 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3520 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3521 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3522 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3523 case "$ac_configure_args0 " in
3524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3527 -* ) ac_must_keep_next
=true
;;
3530 as_fn_append ac_configure_args
" '$ac_arg'"
3535 { ac_configure_args0
=; unset ac_configure_args0
;}
3536 { ac_configure_args1
=; unset ac_configure_args1
;}
3538 # When interrupted or exit'd, cleanup temporary files, and complete
3539 # config.log. We remove comments because anyway the quotes in there
3540 # would cause problems or look ugly.
3541 # WARNING: Use '\'' to represent an apostrophe within the trap.
3542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3543 trap 'exit_status=$?
3544 # Save into config.log some information that might help in debugging.
3548 $as_echo "## ---------------- ##
3549 ## Cache variables. ##
3550 ## ---------------- ##"
3552 # The following way of writing the cache mishandles newlines in values,
3554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3555 eval ac_val=\$$ac_var
3559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3563 _ | IFS | as_nl) ;; #(
3564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3565 *) { eval $ac_var=; unset $ac_var;} ;;
3570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3571 *${as_nl}ac_space=\ *)
3573 "s/'\''/'\''\\\\'\'''\''/g;
3574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3584 $as_echo "## ----------------- ##
3585 ## Output variables. ##
3586 ## ----------------- ##"
3588 for ac_var in $ac_subst_vars
3590 eval ac_val=\$$ac_var
3592 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3594 $as_echo "$ac_var='\''$ac_val'\''"
3598 if test -n "$ac_subst_files"; then
3599 $as_echo "## ------------------- ##
3600 ## File substitutions. ##
3601 ## ------------------- ##"
3603 for ac_var
in $ac_subst_files
3605 eval ac_val
=\$
$ac_var
3607 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3609 $as_echo "$ac_var='\''$ac_val'\''"
3614 if test -s confdefs.h; then
3615 $as_echo "## ----------- ##
3622 test "$ac_signal" != 0 &&
3623 $as_echo "$as_me: caught signal $ac_signal"
3624 $as_echo "$as_me: exit $exit_status"
3626 rm -f core *.core core.conftest.* &&
3627 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3630 for ac_signal
in 1 2 13 15; do
3631 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3636 rm -f -r conftest
* confdefs.h
3638 $as_echo "/* confdefs.h */" > confdefs.h
3640 # Predefined preprocessor variables.
3642 cat >>confdefs.h
<<_ACEOF
3643 #define PACKAGE_NAME "$PACKAGE_NAME"
3646 cat >>confdefs.h
<<_ACEOF
3647 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3650 cat >>confdefs.h
<<_ACEOF
3651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3654 cat >>confdefs.h
<<_ACEOF
3655 #define PACKAGE_STRING "$PACKAGE_STRING"
3658 cat >>confdefs.h
<<_ACEOF
3659 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3662 cat >>confdefs.h
<<_ACEOF
3663 #define PACKAGE_URL "$PACKAGE_URL"
3667 # Let the site file select an alternate cache file if it wants to.
3668 # Prefer an explicitly selected file to automatically selected ones.
3671 if test -n "$CONFIG_SITE"; then
3672 # We do not want a PATH search for config.site.
3673 case $CONFIG_SITE in #((
3674 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3675 */*) ac_site_file1
=$CONFIG_SITE;;
3676 *) ac_site_file1
=.
/$CONFIG_SITE;;
3678 elif test "x$prefix" != xNONE
; then
3679 ac_site_file1
=$prefix/share
/config.site
3680 ac_site_file2
=$prefix/etc
/config.site
3682 ac_site_file1
=$ac_default_prefix/share
/config.site
3683 ac_site_file2
=$ac_default_prefix/etc
/config.site
3685 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3687 test "x$ac_site_file" = xNONE
&& continue
3688 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3690 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3691 sed 's/^/| /' "$ac_site_file" >&5
3693 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695 as_fn_error $?
"failed to load site script $ac_site_file
3696 See \`config.log' for more details" "$LINENO" 5; }
3700 if test -r "$cache_file"; then
3701 # Some versions of bash will fail to source /dev/null (special files
3702 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3703 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3705 $as_echo "$as_me: loading cache $cache_file" >&6;}
3707 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3708 *) .
"./$cache_file";;
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3713 $as_echo "$as_me: creating cache $cache_file" >&6;}
3717 as_fn_append ac_header_list
" wchar.h"
3718 as_fn_append ac_header_list
" minix/config.h"
3719 as_fn_append ac_header_list
" arpa/inet.h"
3720 as_fn_append ac_header_list
" features.h"
3721 as_fn_append ac_header_list
" sys/socket.h"
3722 as_fn_append ac_func_list
" btowc"
3723 as_fn_append ac_func_list
" canonicalize_file_name"
3724 as_fn_append ac_func_list
" faccessat"
3725 as_fn_append ac_func_list
" realpath"
3726 as_fn_append ac_header_list
" sys/param.h"
3727 as_fn_append ac_header_list
" unistd.h"
3728 as_fn_append ac_func_list
" _set_invalid_parameter_handler"
3729 as_fn_append ac_func_list
" fchdir"
3730 as_fn_append ac_header_list
" dirent.h"
3731 as_fn_append ac_func_list
" fcntl"
3732 as_fn_append ac_func_list
" symlink"
3733 as_fn_append ac_func_list
" fdopendir"
3734 as_fn_append ac_func_list
" mempcpy"
3735 as_fn_append ac_header_list
" fnmatch.h"
3736 as_fn_append ac_func_list
" fnmatch"
3737 as_fn_append ac_func_list
" mbsrtowcs"
3738 gl_fnmatch_required
=GNU
3739 as_fn_append ac_header_list
" sys/stat.h"
3740 as_fn_append ac_func_list
" fstatat"
3741 as_fn_append ac_func_list
" getdelim"
3742 as_fn_append ac_func_list
" getdtablesize"
3743 as_fn_append ac_func_list
" getlogin_r"
3744 as_fn_append ac_func_list
" getprogname"
3745 as_fn_append ac_func_list
" getexecname"
3746 as_fn_append ac_func_list
" getrandom"
3747 as_fn_append ac_header_list
" sys/time.h"
3748 as_fn_append ac_func_list
" gettimeofday"
3749 as_fn_append ac_header_list
" glob.h"
3750 as_fn_append ac_func_list
" glob"
3751 as_fn_append ac_func_list
" glob_pattern_p"
3752 as_fn_append ac_func_list
" getpwnam_r"
3753 as_fn_append ac_header_list
" threads.h"
3754 as_fn_append ac_header_list
" netdb.h"
3755 as_fn_append ac_header_list
" netinet/in.h"
3756 as_fn_append ac_header_list
" limits.h"
3757 as_fn_append ac_header_list
" inttypes.h"
3758 as_fn_append ac_header_list
" sys/types.h"
3759 as_fn_append ac_header_list
" stdint.h"
3760 as_fn_append ac_func_list
" isblank"
3761 as_fn_append ac_header_list
" xlocale.h"
3762 as_fn_append ac_func_list
" lstat"
3763 as_fn_append ac_header_list
" math.h"
3764 as_fn_append ac_func_list
" mbsinit"
3765 as_fn_append ac_func_list
" mbrtowc"
3766 as_fn_append ac_header_list
" sys/mman.h"
3767 as_fn_append ac_func_list
" mprotect"
3768 as_fn_append ac_func_list
" mkostemp"
3769 as_fn_append ac_func_list
" openat"
3770 as_fn_append ac_func_list
" pipe"
3771 as_fn_append ac_func_list
" readlink"
3772 as_fn_append ac_func_list
" link"
3773 as_fn_append ac_func_list
" setenv"
3774 as_fn_append ac_func_list
" strerror_r"
3775 as_fn_append ac_func_list
" __xpg_strerror_r"
3776 as_fn_append ac_func_list
" catgets"
3777 as_fn_append ac_func_list
" snprintf"
3778 as_fn_append ac_header_list
" strings.h"
3779 as_fn_append ac_header_list
" sys/random.h"
3780 as_fn_append ac_header_list
" sys/uio.h"
3781 as_fn_append ac_func_list
" localtime_r"
3782 as_fn_append ac_header_list
" crtdefs.h"
3783 as_fn_append ac_func_list
" iswcntrl"
3784 as_fn_append ac_header_list
" wctype.h"
3785 as_fn_append ac_func_list
" wmempcpy"
3786 # Check that the precious variables saved in the cache have kept the same
3788 ac_cache_corrupted
=false
3789 for ac_var
in $ac_precious_vars; do
3790 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3791 eval ac_new_set
=\
$ac_env_${ac_var}_set
3792 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3793 eval ac_new_val
=\
$ac_env_${ac_var}_value
3794 case $ac_old_set,$ac_new_set in
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3797 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3798 ac_cache_corrupted
=: ;;
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3801 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3802 ac_cache_corrupted
=: ;;
3805 if test "x$ac_old_val" != "x$ac_new_val"; then
3806 # differences in whitespace do not lead to failure.
3807 ac_old_val_w
=`echo x $ac_old_val`
3808 ac_new_val_w
=`echo x $ac_new_val`
3809 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3811 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3812 ac_cache_corrupted
=:
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3815 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3816 eval $ac_var=\
$ac_old_val
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3819 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3821 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3824 # Pass precious variables to config.status.
3825 if test "$ac_new_set" = set; then
3827 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3828 *) ac_arg
=$ac_var=$ac_new_val ;;
3830 case " $ac_configure_args " in
3831 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3832 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3836 if $ac_cache_corrupted; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3840 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3841 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3843 ## -------------------- ##
3844 ## Main body of script. ##
3845 ## -------------------- ##
3848 ac_cpp
='$CPP $CPPFLAGS'
3849 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3858 ac_config_headers
="$ac_config_headers config.h:config.in"
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3864 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3865 # Check whether --enable-maintainer-mode was given.
3866 if test "${enable_maintainer_mode+set}" = set; then :
3867 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3869 USE_MAINTAINER_MODE
=no
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3873 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3874 if test $USE_MAINTAINER_MODE = yes; then
3875 MAINTAINER_MODE_TRUE
=
3876 MAINTAINER_MODE_FALSE
='#'
3878 MAINTAINER_MODE_TRUE
='#'
3879 MAINTAINER_MODE_FALSE
=
3882 MAINT
=$MAINTAINER_MODE_TRUE
3887 ac_cpp
='$CPP $CPPFLAGS'
3888 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3891 if test -n "$ac_tool_prefix"; then
3892 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3893 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_CC+:} false
; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC
="$CC" # Let the user override the test.
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_exec_ext
in '' $ac_executable_extensions; do
3908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3930 if test -z "$ac_cv_prog_CC"; then
3932 # Extract the first word of "gcc", so it can be a program name with args.
3933 set dummy gcc
; ac_word
=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3937 $as_echo_n "(cached) " >&6
3939 if test -n "$ac_ct_CC"; then
3940 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir
=.
3947 for ac_exec_ext
in '' $ac_executable_extensions; do
3948 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_ac_ct_CC
="gcc"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3960 if test -n "$ac_ct_CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3962 $as_echo "$ac_ct_CC" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3968 if test "x$ac_ct_CC" = x
; then
3971 case $cross_compiling:$ac_tool_warned in
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3975 ac_tool_warned
=yes ;;
3983 if test -z "$CC"; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3986 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_CC+:} false
; then :
3990 $as_echo_n "(cached) " >&6
3992 if test -n "$CC"; then
3993 ac_cv_prog_CC
="$CC" # Let the user override the test.
3995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir
=.
4000 for ac_exec_ext
in '' $ac_executable_extensions; do
4001 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 if test -n "$CC"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4015 $as_echo "$CC" >&6; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4024 if test -z "$CC"; then
4025 # Extract the first word of "cc", so it can be a program name with args.
4026 set dummy cc
; ac_word
=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_CC+:} false
; then :
4030 $as_echo_n "(cached) " >&6
4032 if test -n "$CC"; then
4033 ac_cv_prog_CC
="$CC" # Let the user override the test.
4036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4040 test -z "$as_dir" && as_dir
=.
4041 for ac_exec_ext
in '' $ac_executable_extensions; do
4042 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4043 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4044 ac_prog_rejected
=yes
4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 if test $ac_prog_rejected = yes; then
4056 # We found a bogon in the path, so make sure we never use it.
4057 set dummy
$ac_cv_prog_CC
4059 if test $# != 0; then
4060 # We chose a different compiler from the bogus one.
4061 # However, it has the same basename, so the bogon will be chosen
4062 # first if we set CC to just the basename; use the full file name.
4064 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4070 if test -n "$CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072 $as_echo "$CC" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4080 if test -z "$CC"; then
4081 if test -n "$ac_tool_prefix"; then
4082 for ac_prog
in cl.exe
4084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4085 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_prog_CC+:} false
; then :
4089 $as_echo_n "(cached) " >&6
4091 if test -n "$CC"; then
4092 ac_cv_prog_CC
="$CC" # Let the user override the test.
4094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir
=.
4099 for ac_exec_ext
in '' $ac_executable_extensions; do
4100 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 if test -n "$CC"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 $as_echo "$CC" >&6; }
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4121 test -n "$CC" && break
4124 if test -z "$CC"; then
4126 for ac_prog
in cl.exe
4128 # Extract the first word of "$ac_prog", so it can be a program name with args.
4129 set dummy
$ac_prog; ac_word
=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4133 $as_echo_n "(cached) " >&6
4135 if test -n "$ac_ct_CC"; then
4136 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir
=.
4143 for ac_exec_ext
in '' $ac_executable_extensions; do
4144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_ac_ct_CC
="$ac_prog"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4156 if test -n "$ac_ct_CC"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4158 $as_echo "$ac_ct_CC" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4165 test -n "$ac_ct_CC" && break
4168 if test "x$ac_ct_CC" = x
; then
4171 case $cross_compiling:$ac_tool_warned in
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4175 ac_tool_warned
=yes ;;
4182 if test -z "$CC"; then
4183 if test -n "$ac_tool_prefix"; then
4184 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4185 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if ${ac_cv_prog_CC+:} false
; then :
4189 $as_echo_n "(cached) " >&6
4191 if test -n "$CC"; then
4192 ac_cv_prog_CC
="$CC" # Let the user override the test.
4194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir
=.
4199 for ac_exec_ext
in '' $ac_executable_extensions; do
4200 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_CC
="${ac_tool_prefix}clang"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 if test -n "$CC"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4214 $as_echo "$CC" >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4222 if test -z "$ac_cv_prog_CC"; then
4224 # Extract the first word of "clang", so it can be a program name with args.
4225 set dummy clang
; ac_word
=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4229 $as_echo_n "(cached) " >&6
4231 if test -n "$ac_ct_CC"; then
4232 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4238 test -z "$as_dir" && as_dir
=.
4239 for ac_exec_ext
in '' $ac_executable_extensions; do
4240 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_ac_ct_CC
="clang"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4252 if test -n "$ac_ct_CC"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4254 $as_echo "$ac_ct_CC" >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4260 if test "x$ac_ct_CC" = x
; then
4263 case $cross_compiling:$ac_tool_warned in
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned
=yes ;;
4278 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4280 as_fn_error $?
"no acceptable C compiler found in \$PATH
4281 See \`config.log' for more details" "$LINENO" 5; }
4283 # Provide some information about the compiler.
4284 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4287 for ac_option
in --version -v -V -qversion -version; do
4288 { { ac_try
="$ac_compiler $ac_option >&5"
4290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4297 if test -s conftest.err; then
4299 ... rest of stderr output deleted ...
4300 10q' conftest.err >conftest.er1
4301 cat conftest.er1 >&5
4303 rm -f conftest.er1 conftest.err
4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4319 ac_clean_files_save=$ac_clean_files
4320 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4321 # Try to create an executable without -o first, disregard a.out.
4322 # It will help us diagnose broken compilers, and finding out an intuition
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4325 $as_echo_n "checking whether the C compiler works... " >&6; }
4326 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4328 # The possible output files:
4329 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4332 for ac_file in $ac_files
4335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4336 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4341 if { { ac_try="$ac_link_default"
4343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4344 *) ac_try_echo
=$ac_try;;
4346 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 $as_echo "$ac_try_echo"; } >&5
4348 (eval "$ac_link_default") 2>&5
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }; then :
4352 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4353 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4354 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4355 # so that the user can short-circuit this test for compilers unknown to
4357 for ac_file
in $ac_files ''
4359 test -f "$ac_file" ||
continue
4361 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4364 # We found the default executable, but exeext='' is most
4368 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4370 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4372 # We set ac_cv_exeext here because the later test for it is not
4373 # safe: cross compilers may not add the suffix if given an `-o'
4374 # argument, so we may need to know it at that point already.
4375 # Even if this section looks crufty: it has the advantage of
4382 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4387 if test -z "$ac_file"; then :
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4390 $as_echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.
$ac_ext >&5
4393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395 as_fn_error
77 "C compiler cannot create executables
4396 See \`config.log' for more details" "$LINENO" 5; }
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4399 $as_echo "yes" >&6; }
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4402 $as_echo_n "checking for C compiler default output file name... " >&6; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4404 $as_echo "$ac_file" >&6; }
4405 ac_exeext
=$ac_cv_exeext
4407 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4408 ac_clean_files
=$ac_clean_files_save
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4410 $as_echo_n "checking for suffix of executables... " >&6; }
4411 if { { ac_try
="$ac_link"
4413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_link") 2>&5
4420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421 test $ac_status = 0; }; then :
4422 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4423 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4424 # work properly (i.e., refer to `conftest.exe'), while it won't with
4426 for ac_file
in conftest.exe conftest conftest.
*; do
4427 test -f "$ac_file" ||
continue
4429 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4430 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4439 See \`config.log' for more details" "$LINENO" 5; }
4441 rm -f conftest conftest
$ac_cv_exeext
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4443 $as_echo "$ac_cv_exeext" >&6; }
4445 rm -f conftest.
$ac_ext
4446 EXEEXT
=$ac_cv_exeext
4448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4454 FILE *f = fopen ("conftest.out", "w");
4455 return ferror (f) || fclose (f) != 0;
4461 ac_clean_files
="$ac_clean_files conftest.out"
4462 # Check that the compiler produces executables we can run. If not, either
4463 # the compiler is broken, or we cross compile.
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4465 $as_echo_n "checking whether we are cross compiling... " >&6; }
4466 if test "$cross_compiling" != yes; then
4467 { { ac_try
="$ac_link"
4469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4473 $as_echo "$ac_try_echo"; } >&5
4474 (eval "$ac_link") 2>&5
4476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477 test $ac_status = 0; }
4478 if { ac_try='./conftest$ac_cv_exeext'
4479 { { case "(($ac_try" in
4480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4481 *) ac_try_echo
=$ac_try;;
4483 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 $as_echo "$ac_try_echo"; } >&5
4485 (eval "$ac_try") 2>&5
4487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488 test $ac_status = 0; }; }; then
4491 if test "$cross_compiling" = maybe
; then
4494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4496 as_fn_error $?
"cannot run C compiled programs.
4497 If you meant to cross compile, use \`--host'.
4498 See \`config.log' for more details" "$LINENO" 5; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4503 $as_echo "$cross_compiling" >&6; }
4505 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4506 ac_clean_files
=$ac_clean_files_save
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4508 $as_echo_n "checking for suffix of object files... " >&6; }
4509 if ${ac_cv_objext+:} false
; then :
4510 $as_echo_n "(cached) " >&6
4512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4523 rm -f conftest.o conftest.obj
4524 if { { ac_try
="$ac_compile"
4526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_compile") 2>&5
4533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534 test $ac_status = 0; }; then :
4535 for ac_file in conftest.o conftest.obj conftest.*; do
4536 test -f "$ac_file" || continue;
4538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4544 $as_echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4549 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4550 See \
`config.log' for more details" "$LINENO" 5; }
4552 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4555 $as_echo "$ac_cv_objext" >&6; }
4556 OBJEXT=$ac_cv_objext
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4559 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4560 if ${ac_cv_c_compiler_gnu+:} false; then :
4561 $as_echo_n "(cached) " >&6
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4577 if ac_fn_c_try_compile "$LINENO"; then :
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4587 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4588 if test $ac_compiler_gnu = yes; then
4593 ac_test_CFLAGS=${CFLAGS+set}
4594 ac_save_CFLAGS=$CFLAGS
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4596 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4597 if ${ac_cv_prog_cc_g+:} false; then :
4598 $as_echo_n "(cached) " >&6
4600 ac_save_c_werror_flag=$ac_c_werror_flag
4601 ac_c_werror_flag=yes
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4615 if ac_fn_c_try_compile "$LINENO"; then :
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4630 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_c_werror_flag=$ac_save_c_werror_flag
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4646 if ac_fn_c_try_compile "$LINENO"; then :
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 ac_c_werror_flag=$ac_save_c_werror_flag
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4657 $as_echo "$ac_cv_prog_cc_g" >&6; }
4658 if test "$ac_test_CFLAGS" = set; then
4659 CFLAGS=$ac_save_CFLAGS
4660 elif test $ac_cv_prog_cc_g = yes; then
4661 if test "$GCC" = yes; then
4667 if test "$GCC" = yes; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4674 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
4675 if ${ac_cv_prog_cc_c11+:} false; then :
4676 $as_echo_n "(cached) " >&6
4678 ac_cv_prog_cc_c11=no
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4683 #include <stdbool.h>
4689 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4690 #define debug(...) fprintf (stderr, __VA_ARGS__)
4691 #define showlist(...) puts (#__VA_ARGS__)
4692 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4694 test_varargs_macros (void)
4699 debug ("X = %d\n", x);
4700 showlist (The first, second, and third items.);
4701 report (x>y, "x is %d but y is %d", x, y);
4704 // Check long long types.
4705 #define BIG64 18446744073709551615ull
4706 #define BIG32 4294967295ul
4707 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4709 your preprocessor is broken;
4713 your preprocessor is broken;
4715 static long long int bignum = -9223372036854775807LL;
4716 static unsigned long long int ubignum = BIG64;
4718 struct incomplete_array
4726 const wchar_t *name;
4730 typedef const char *ccp;
4733 test_restrict (ccp restrict text)
4735 // See if C++-style comments work.
4736 // Iterate through items via the restricted pointer.
4737 // Also check for declarations in for loops.
4738 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4743 // Check varargs and va_copy.
4745 test_varargs (const char *format, ...)
4748 va_start (args, format);
4750 va_copy (args_copy, args);
4752 const char *str = "";
4761 str = va_arg (args_copy, const char *);
4764 number = va_arg (args_copy, int);
4767 fnumber = va_arg (args_copy, double);
4776 return *str && number && fnumber;
4779 char _Alignas (double) aligned_as_double;
4780 char _Alignas (0) no_special_alignment;
4781 extern char aligned_as_int;
4782 char _Alignas (0) _Alignas (int) aligned_as_int;
4787 int_alignment = _Alignof (int),
4788 int_array_alignment = _Alignof (int[100]),
4789 char_alignment = _Alignof (char)
4791 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4794 int _Noreturn does_not_return (void) { for (;;) continue; }
4796 // Check _Static_assert.
4797 struct test_static_assert
4800 _Static_assert (sizeof (int) <= sizeof (long int),
4801 "_Static_assert does not work in struct");
4805 // Check UTF-8 literals.
4806 #define u8 syntax error!
4807 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4809 // Check duplicate typedefs.
4810 typedef long *long_ptr;
4811 typedef long int *long_ptr;
4812 typedef long_ptr long_ptr;
4814 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4818 struct { int i; int j; };
4819 struct { int k; long int l; } w;
4829 _Bool success = false;
4832 if (test_restrict ("String literal") == 0)
4834 char *restrict newvar = "Another string";
4837 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4838 test_varargs_macros ();
4840 // Check flexible array members.
4841 struct incomplete_array *ia =
4842 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4844 for (int i = 0; i < ia->datasize; ++i)
4845 ia->data[i] = i * 1.234;
4847 // Check named initializers.
4848 struct named_init ni = {
4850 .name = L"Test wide string",
4851 .average = 543.34343,
4856 int dynamic_array[ni.number];
4857 dynamic_array[ni.number - 1] = 543;
4859 // work around unused variable warnings
4860 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4861 || dynamic_array[ni.number - 1] != 543);
4865 _Static_assert ((offsetof (struct anonymous, i)
4866 == offsetof (struct anonymous, w.k)),
4867 "Anonymous union alignment botch");
4873 for ac_arg in '' -std=gnu11
4875 CC="$ac_save_CC $ac_arg"
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_cv_prog_cc_c11=$ac_arg
4879 rm -f core conftest.err conftest.$ac_objext
4880 test "x$ac_cv_prog_cc_c11" != "xno" && break
4882 rm -f conftest.$ac_ext
4887 ac_prog_cc_stdc_options=
4888 case "x$ac_cv_prog_cc_c11" in
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4891 $as_echo "none needed" >&6; } ;;
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4894 $as_echo "unsupported" >&6; } ;;
4896 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4897 CC=$CC$ac_prog_cc_stdc_options
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4899 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
4901 if test "x$ac_cv_prog_cc_c11" != xno; then :
4903 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4906 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
4907 if ${ac_cv_prog_cc_c99+:} false; then :
4908 $as_echo_n "(cached) " >&6
4910 ac_cv_prog_cc_c99=no
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4915 #include <stdbool.h>
4921 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4922 #define debug(...) fprintf (stderr, __VA_ARGS__)
4923 #define showlist(...) puts (#__VA_ARGS__)
4924 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4926 test_varargs_macros (void)
4931 debug ("X = %d\n", x);
4932 showlist (The first, second, and third items.);
4933 report (x>y, "x is %d but y is %d", x, y);
4936 // Check long long types.
4937 #define BIG64 18446744073709551615ull
4938 #define BIG32 4294967295ul
4939 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4941 your preprocessor is broken;
4945 your preprocessor is broken;
4947 static long long int bignum = -9223372036854775807LL;
4948 static unsigned long long int ubignum = BIG64;
4950 struct incomplete_array
4958 const wchar_t *name;
4962 typedef const char *ccp;
4965 test_restrict (ccp restrict text)
4967 // See if C++-style comments work.
4968 // Iterate through items via the restricted pointer.
4969 // Also check for declarations in for loops.
4970 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4975 // Check varargs and va_copy.
4977 test_varargs (const char *format, ...)
4980 va_start (args, format);
4982 va_copy (args_copy, args);
4984 const char *str = "";
4993 str = va_arg (args_copy, const char *);
4996 number = va_arg (args_copy, int);
4999 fnumber = va_arg (args_copy, double);
5008 return *str && number && fnumber;
5015 _Bool success = false;
5018 if (test_restrict ("String literal") == 0)
5020 char *restrict newvar = "Another string";
5023 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5024 test_varargs_macros ();
5026 // Check flexible array members.
5027 struct incomplete_array *ia =
5028 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5030 for (int i = 0; i < ia->datasize; ++i)
5031 ia->data[i] = i * 1.234;
5033 // Check named initializers.
5034 struct named_init ni = {
5036 .name = L"Test wide string",
5037 .average = 543.34343,
5042 int dynamic_array[ni.number];
5043 dynamic_array[ni.number - 1] = 543;
5045 // work around unused variable warnings
5046 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5047 || dynamic_array[ni.number - 1] != 543);
5053 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5055 CC="$ac_save_CC $ac_arg"
5056 if ac_fn_c_try_compile "$LINENO"; then :
5057 ac_cv_prog_cc_c99=$ac_arg
5059 rm -f core conftest.err conftest.$ac_objext
5060 test "x$ac_cv_prog_cc_c99" != "xno" && break
5062 rm -f conftest.$ac_ext
5067 ac_prog_cc_stdc_options=
5068 case "x$ac_cv_prog_cc_c99" in
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5071 $as_echo "none needed" >&6; } ;;
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5074 $as_echo "unsupported" >&6; } ;;
5076 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5077 CC=$CC$ac_prog_cc_stdc_options
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5079 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5081 if test "x$ac_cv_prog_cc_c99" != xno; then :
5083 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5086 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
5087 if ${ac_cv_prog_cc_c89+:} false; then :
5088 $as_echo_n "(cached) " >&6
5090 ac_cv_prog_cc_c89=no
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5097 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5098 struct buf { int x; };
5099 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5100 static char *e (p, i)
5106 static char *f (char * (*g) (char **, int), char **p, ...)
5111 s = g (p, va_arg (v,int));
5116 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5117 function prototypes and stuff, but not '\xHH' hex character constants.
5118 These don't provoke an error unfortunately, instead are silently treated
5119 as 'x'. The following induces an error, until -std is added to get
5120 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5121 array size at least. It's necessary to write '\x00'==0 to get something
5122 that's true only with -std. */
5123 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5125 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5126 inside strings and character constants. */
5128 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5130 int test (int i, double x);
5131 struct s1 {int (*f) (int a);};
5132 struct s2 {int (*f) (double a);};
5133 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5139 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5144 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5145 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5147 CC="$ac_save_CC $ac_arg"
5148 if ac_fn_c_try_compile "$LINENO"; then :
5149 ac_cv_prog_cc_c89=$ac_arg
5151 rm -f core conftest.err conftest.$ac_objext
5152 test "x$ac_cv_prog_cc_c89" != "xno" && break
5154 rm -f conftest.$ac_ext
5159 ac_prog_cc_stdc_options=
5160 case "x$ac_cv_prog_cc_c89" in
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5163 $as_echo "none needed" >&6; } ;;
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5166 $as_echo "unsupported" >&6; } ;;
5168 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5169 CC=$CC$ac_prog_cc_stdc_options
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5171 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5173 if test "x$ac_cv_prog_cc_c89" != xno; then :
5175 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5178 ac_cv_prog_cc_stdc=no
5186 ac_cpp='$CPP $CPPFLAGS'
5187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5193 $as_echo_n "checking whether the compiler is clang... " >&6; }
5194 if ${gl_cv_compiler_clang+:} false; then :
5195 $as_echo_n "(cached) " >&6
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5213 if ac_fn_c_try_compile "$LINENO"; then :
5214 gl_cv_compiler_clang=no
5216 gl_cv_compiler_clang=yes
5218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5222 $as_echo "$gl_cv_compiler_clang" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5226 $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
5227 if ${gl_cv_compiler_check_decl_option+:} false; then :
5228 $as_echo_n "(cached) " >&6
5230 if test $gl_cv_compiler_clang = yes; then
5231 save_ac_compile="$ac_compile"
5232 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5244 if ac_fn_c_try_compile "$LINENO"; then :
5245 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5247 gl_cv_compiler_check_decl_option=none
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250 ac_compile="$save_ac_compile"
5252 gl_cv_compiler_check_decl_option=none
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5257 $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
5258 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5259 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5261 ac_compile_for_check_decl="$ac_compile"
5268 ac_cpp='$CPP $CPPFLAGS'
5269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5273 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5274 # On Suns, sometimes $CPP names a directory.
5275 if test -n "$CPP" && test -d "$CPP"; then
5278 if test -z "$CPP"; then
5279 if ${ac_cv_prog_CPP+:} false; then :
5280 $as_echo_n "(cached) " >&6
5282 # Double quotes because CPP needs to be expanded
5283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5286 for ac_c_preproc_warn_flag in '' yes
5288 # Use a header file that comes with gcc, so configuring glibc
5289 # with a fresh cross-compiler works.
5290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5291 # <limits.h> exists even on freestanding compilers.
5292 # On the NeXT, cc -E runs the code through the compiler's parser,
5293 # not just through cpp. "Syntax error" is here to catch this case.
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5297 # include <limits.h>
5299 # include <assert.h>
5303 if ac_fn_c_try_cpp "$LINENO"; then :
5306 # Broken: fails on valid input.
5309 rm -f conftest.err conftest.i conftest.$ac_ext
5311 # OK, works on sane cases. Now check whether nonexistent headers
5312 # can be detected and how.
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 #include <ac_nonexistent.h>
5317 if ac_fn_c_try_cpp "$LINENO"; then :
5318 # Broken: success on invalid input.
5321 # Passes both tests.
5325 rm -f conftest.err conftest.i conftest.$ac_ext
5328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5329 rm -f conftest.i conftest.err conftest.
$ac_ext
5330 if $ac_preproc_ok; then :
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5343 $as_echo "$CPP" >&6; }
5345 for ac_c_preproc_warn_flag
in '' yes
5347 # Use a header file that comes with gcc, so configuring glibc
5348 # with a fresh cross-compiler works.
5349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5350 # <limits.h> exists even on freestanding compilers.
5351 # On the NeXT, cc -E runs the code through the compiler's parser,
5352 # not just through cpp. "Syntax error" is here to catch this case.
5353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5356 # include <limits.h>
5358 # include <assert.h>
5362 if ac_fn_c_try_cpp
"$LINENO"; then :
5365 # Broken: fails on valid input.
5368 rm -f conftest.err conftest.i conftest.
$ac_ext
5370 # OK, works on sane cases. Now check whether nonexistent headers
5371 # can be detected and how.
5372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5374 #include <ac_nonexistent.h>
5376 if ac_fn_c_try_cpp
"$LINENO"; then :
5377 # Broken: success on invalid input.
5380 # Passes both tests.
5384 rm -f conftest.err conftest.i conftest.
$ac_ext
5387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5388 rm -f conftest.i conftest.err conftest.
$ac_ext
5389 if $ac_preproc_ok; then :
5392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5394 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5395 See \`config.log' for more details" "$LINENO" 5; }
5399 ac_cpp
='$CPP $CPPFLAGS'
5400 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5406 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5407 if ${ac_cv_path_GREP+:} false
; then :
5408 $as_echo_n "(cached) " >&6
5410 if test -z "$GREP"; then
5411 ac_path_GREP_found
=false
5412 # Loop through the user's path and test for each of PROGNAME-LIST
5413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5414 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5417 test -z "$as_dir" && as_dir
=.
5418 for ac_prog
in grep ggrep
; do
5419 for ac_exec_ext
in '' $ac_executable_extensions; do
5420 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5421 as_fn_executable_p
"$ac_path_GREP" ||
continue
5422 # Check for GNU ac_path_GREP and select it if it is found.
5423 # Check for GNU $ac_path_GREP
5424 case `"$ac_path_GREP" --version 2>&1` in
5426 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5429 $as_echo_n 0123456789 >"conftest.in"
5432 cat "conftest.in" "conftest.in" >"conftest.tmp"
5433 mv "conftest.tmp" "conftest.in"
5434 cp "conftest.in" "conftest.nl"
5435 $as_echo 'GREP' >> "conftest.nl"
5436 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5437 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5438 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5439 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5440 # Best one so far, save it but keep looking for a better one
5441 ac_cv_path_GREP
="$ac_path_GREP"
5442 ac_path_GREP_max
=$ac_count
5444 # 10*(2^10) chars as input seems more than enough
5445 test $ac_count -gt 10 && break
5447 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5450 $ac_path_GREP_found && break 3
5455 if test -z "$ac_cv_path_GREP"; then
5456 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5459 ac_cv_path_GREP
=$GREP
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5464 $as_echo "$ac_cv_path_GREP" >&6; }
5465 GREP
="$ac_cv_path_GREP"
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5469 $as_echo_n "checking for egrep... " >&6; }
5470 if ${ac_cv_path_EGREP+:} false
; then :
5471 $as_echo_n "(cached) " >&6
5473 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5474 then ac_cv_path_EGREP
="$GREP -E"
5476 if test -z "$EGREP"; then
5477 ac_path_EGREP_found
=false
5478 # Loop through the user's path and test for each of PROGNAME-LIST
5479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5480 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5483 test -z "$as_dir" && as_dir
=.
5484 for ac_prog
in egrep; do
5485 for ac_exec_ext
in '' $ac_executable_extensions; do
5486 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5487 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5488 # Check for GNU ac_path_EGREP and select it if it is found.
5489 # Check for GNU $ac_path_EGREP
5490 case `"$ac_path_EGREP" --version 2>&1` in
5492 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5495 $as_echo_n 0123456789 >"conftest.in"
5498 cat "conftest.in" "conftest.in" >"conftest.tmp"
5499 mv "conftest.tmp" "conftest.in"
5500 cp "conftest.in" "conftest.nl"
5501 $as_echo 'EGREP' >> "conftest.nl"
5502 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5503 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5504 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5505 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5506 # Best one so far, save it but keep looking for a better one
5507 ac_cv_path_EGREP
="$ac_path_EGREP"
5508 ac_path_EGREP_max
=$ac_count
5510 # 10*(2^10) chars as input seems more than enough
5511 test $ac_count -gt 10 && break
5513 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5516 $ac_path_EGREP_found && break 3
5521 if test -z "$ac_cv_path_EGREP"; then
5522 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5525 ac_cv_path_EGREP
=$EGREP
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5531 $as_echo "$ac_cv_path_EGREP" >&6; }
5532 EGREP
="$ac_cv_path_EGREP"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5536 $as_echo_n "checking for ANSI C header files... " >&6; }
5537 if ${ac_cv_header_stdc+:} false
; then :
5538 $as_echo_n "(cached) " >&6
5540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5555 if ac_fn_c_try_compile
"$LINENO"; then :
5556 ac_cv_header_stdc
=yes
5558 ac_cv_header_stdc
=no
5560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5562 if test $ac_cv_header_stdc = yes; then
5563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5570 $EGREP "memchr" >/dev
/null
2>&1; then :
5573 ac_cv_header_stdc
=no
5579 if test $ac_cv_header_stdc = yes; then
5580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5587 $EGREP "free" >/dev
/null
2>&1; then :
5590 ac_cv_header_stdc
=no
5596 if test $ac_cv_header_stdc = yes; then
5597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5598 if test "$cross_compiling" = yes; then :
5601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5605 #if ((' ' & 0x0FF) == 0x020)
5606 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5607 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5609 # define ISLOWER(c) \
5610 (('a' <= (c) && (c) <= 'i') \
5611 || ('j' <= (c) && (c) <= 'r') \
5612 || ('s' <= (c) && (c) <= 'z'))
5613 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5616 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5621 for (i = 0; i < 256; i++)
5622 if (XOR (islower (i), ISLOWER (i))
5623 || toupper (i) != TOUPPER (i))
5628 if ac_fn_c_try_run
"$LINENO"; then :
5631 ac_cv_header_stdc
=no
5633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5634 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5640 $as_echo "$ac_cv_header_stdc" >&6; }
5641 if test $ac_cv_header_stdc = yes; then
5643 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5647 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5648 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5649 inttypes.h stdint.h unistd.h
5651 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5652 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5654 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5655 cat >>confdefs.h
<<_ACEOF
5656 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5667 for ac_header
in $ac_header_list
5669 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5670 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5672 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5673 cat >>confdefs.h
<<_ACEOF
5674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5690 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5691 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5692 $as_echo_n "(cached) " >&6
5694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5697 # define __EXTENSIONS__ 1
5698 $ac_includes_default
5707 if ac_fn_c_try_compile
"$LINENO"; then :
5708 ac_cv_safe_to_define___extensions__
=yes
5710 ac_cv_safe_to_define___extensions__
=no
5712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5715 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5718 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5719 if ${ac_cv_should_define__xopen_source+:} false
; then :
5720 $as_echo_n "(cached) " >&6
5722 ac_cv_should_define__xopen_source
=no
5723 if test $ac_cv_header_wchar_h = yes; then :
5724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5737 if ac_fn_c_try_compile
"$LINENO"; then :
5740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5743 #define _XOPEN_SOURCE 500
5754 if ac_fn_c_try_compile
"$LINENO"; then :
5755 ac_cv_should_define__xopen_source
=yes
5757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5763 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5765 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5767 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5769 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5771 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5773 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5775 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5777 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5779 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5781 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5783 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5785 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5787 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5789 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5791 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5793 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5795 if test $ac_cv_header_minix_config_h = yes; then :
5797 $as_echo "#define _MINIX 1" >>confdefs.h
5799 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5801 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5806 if test $ac_cv_safe_to_define___extensions__ = yes; then :
5807 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5810 if test $ac_cv_should_define__xopen_source = yes; then :
5811 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5815 # Needs to run before gl_EARLY so it can override AC_SYS_LARGEFILE included
5818 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5819 if test -f "$ac_dir/install-sh"; then
5821 ac_install_sh
="$ac_aux_dir/install-sh -c"
5823 elif test -f "$ac_dir/install.sh"; then
5825 ac_install_sh
="$ac_aux_dir/install.sh -c"
5827 elif test -f "$ac_dir/shtool"; then
5829 ac_install_sh
="$ac_aux_dir/shtool install -c"
5833 if test -z "$ac_aux_dir"; then
5834 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5837 # These three variables are undocumented and unsupported,
5838 # and are intended to be withdrawn in a future Autoconf release.
5839 # They can cause serious problems if a builder's source tree is in a directory
5840 # whose full name contains unusual characters.
5841 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5842 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5843 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5846 # Make sure we can run config.sub.
5847 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5848 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5851 $as_echo_n "checking build system type... " >&6; }
5852 if ${ac_cv_build+:} false
; then :
5853 $as_echo_n "(cached) " >&6
5855 ac_build_alias
=$build_alias
5856 test "x$ac_build_alias" = x
&&
5857 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5858 test "x$ac_build_alias" = x
&&
5859 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5860 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5861 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5865 $as_echo "$ac_cv_build" >&6; }
5866 case $ac_cv_build in
5868 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5871 ac_save_IFS
=$IFS; IFS
='-'
5877 # Remember, the first character of IFS is used to create $*,
5878 # except with old shells:
5881 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5885 $as_echo_n "checking host system type... " >&6; }
5886 if ${ac_cv_host+:} false
; then :
5887 $as_echo_n "(cached) " >&6
5889 if test "x$host_alias" = x
; then
5890 ac_cv_host
=$ac_cv_build
5892 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5893 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5898 $as_echo "$ac_cv_host" >&6; }
5901 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5904 ac_save_IFS
=$IFS; IFS
='-'
5910 # Remember, the first character of IFS is used to create $*,
5911 # except with old shells:
5914 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5918 $as_echo_n "checking target system type... " >&6; }
5919 if ${ac_cv_target+:} false
; then :
5920 $as_echo_n "(cached) " >&6
5922 if test "x$target_alias" = x
; then
5923 ac_cv_target
=$ac_cv_host
5925 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5926 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5931 $as_echo "$ac_cv_target" >&6; }
5932 case $ac_cv_target in
5934 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
5936 target
=$ac_cv_target
5937 ac_save_IFS
=$IFS; IFS
='-'
5943 # Remember, the first character of IFS is used to create $*,
5944 # except with old shells:
5947 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
5950 # The aliases save the names the user supplied, while $host etc.
5951 # will get canonicalized.
5952 test -n "$target_alias" &&
5953 test "$program_prefix$program_suffix$program_transform_name" = \
5955 program_prefix
=${target_alias}-
5957 # The tests for host and target for $enable_largefile require
5962 # As the $enable_largefile decision depends on --enable-plugins we must set it
5963 # even in directories otherwise not depending on the $plugins option.
5967 for ac_header
in dlfcn.h
5969 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5971 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5972 cat >>confdefs.h
<<_ACEOF
5973 #define HAVE_DLFCN_H 1
5980 for ac_header
in windows.h
5982 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5984 if test "x$ac_cv_header_windows_h" = xyes
; then :
5985 cat >>confdefs.h
<<_ACEOF
5986 #define HAVE_WINDOWS_H 1
5994 # Check whether --enable-plugins was given.
5995 if test "${enable_plugins+set}" = set; then :
5996 enableval
=$enable_plugins; case "${enableval}" in
5999 if test "$maybe_plugins" != "yes" ; then
6000 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6004 plugins
=$maybe_plugins
6008 if test "$plugins" = "yes"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6010 $as_echo_n "checking for library containing dlsym... " >&6; }
6011 if ${ac_cv_search_dlsym+:} false
; then :
6012 $as_echo_n "(cached) " >&6
6014 ac_func_search_save_LIBS
=$LIBS
6015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6018 /* Override any GCC internal prototype to avoid an error.
6019 Use char because int might match the return type of a GCC
6020 builtin and then its argument prototype would still apply. */
6033 for ac_lib
in '' dl
; do
6034 if test -z "$ac_lib"; then
6035 ac_res
="none required"
6038 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6040 if ac_fn_c_try_link
"$LINENO"; then :
6041 ac_cv_search_dlsym
=$ac_res
6043 rm -f core conftest.err conftest.
$ac_objext \
6045 if ${ac_cv_search_dlsym+:} false
; then :
6049 if ${ac_cv_search_dlsym+:} false
; then :
6052 ac_cv_search_dlsym
=no
6055 LIBS
=$ac_func_search_save_LIBS
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6058 $as_echo "$ac_cv_search_dlsym" >&6; }
6059 ac_res
=$ac_cv_search_dlsym
6060 if test "$ac_res" != no
; then :
6061 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6069 sparc-
*-solaris*|i?
86-*-solaris*)
6070 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
6071 # were mutually exclusive until Solaris 11.3. Without procfs support,
6072 # the bfd/ elf module cannot provide certain routines such as
6073 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
6074 # explicitly requested large-file support through the
6075 # --enable-largefile switch, disable large-file support in favor of
6078 # Check if <sys/procfs.h> is incompatible with large-file support.
6079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 #define _FILE_OFFSET_BITS 64
6082 #define _STRUCTURED_PROC 1
6083 #include <sys/procfs.h>
6092 if ac_fn_c_try_compile
"$LINENO"; then :
6093 acx_cv_procfs_lfs
=yes
6095 acx_cv_procfs_lfs
=no
6097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6099 # Forcefully disable large-file support only if necessary, gdb is in
6101 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
6102 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
6103 : ${enable_largefile="no"}
6104 if test "$plugins" = yes; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
6106 plugin support disabled; require large-file support which is incompatible with GDB." >&5
6107 $as_echo "$as_me: WARNING:
6108 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
6113 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
6114 # benefit of g++ 9+ which predefines it on Solaris.
6115 if test "$enable_largefile" = no
; then
6116 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
6122 # Check whether --enable-largefile was given.
6123 if test "${enable_largefile+set}" = set; then :
6124 enableval
=$enable_largefile;
6127 if test "$enable_largefile" != no
; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6130 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6131 if ${ac_cv_sys_largefile_CC+:} false
; then :
6132 $as_echo_n "(cached) " >&6
6134 ac_cv_sys_largefile_CC
=no
6135 if test "$GCC" != yes; then
6138 # IRIX 6.2 and later do not support large files by default,
6139 # so use the C compiler's -n32 option if that helps.
6140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142 #include <sys/types.h>
6143 /* Check that off_t can represent 2**63 - 1 correctly.
6144 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6145 since some C++ compilers masquerading as C compilers
6146 incorrectly reject 9223372036854775807. */
6147 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6149 && LARGE_OFF_T % 2147483647 == 1)
6159 if ac_fn_c_try_compile
"$LINENO"; then :
6162 rm -f core conftest.err conftest.
$ac_objext
6164 if ac_fn_c_try_compile
"$LINENO"; then :
6165 ac_cv_sys_largefile_CC
=' -n32'; break
6167 rm -f core conftest.err conftest.
$ac_objext
6171 rm -f conftest.
$ac_ext
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6175 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6176 if test "$ac_cv_sys_largefile_CC" != no
; then
6177 CC
=$CC$ac_cv_sys_largefile_CC
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6181 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6182 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6183 $as_echo_n "(cached) " >&6
6186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 #include <sys/types.h>
6189 /* Check that off_t can represent 2**63 - 1 correctly.
6190 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6191 since some C++ compilers masquerading as C compilers
6192 incorrectly reject 9223372036854775807. */
6193 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6194 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6195 && LARGE_OFF_T % 2147483647 == 1)
6205 if ac_fn_c_try_compile
"$LINENO"; then :
6206 ac_cv_sys_file_offset_bits
=no
; break
6208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 #define _FILE_OFFSET_BITS 64
6212 #include <sys/types.h>
6213 /* Check that off_t can represent 2**63 - 1 correctly.
6214 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6215 since some C++ compilers masquerading as C compilers
6216 incorrectly reject 9223372036854775807. */
6217 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6218 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6219 && LARGE_OFF_T % 2147483647 == 1)
6229 if ac_fn_c_try_compile
"$LINENO"; then :
6230 ac_cv_sys_file_offset_bits
=64; break
6232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6233 ac_cv_sys_file_offset_bits
=unknown
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6238 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6239 case $ac_cv_sys_file_offset_bits in #(
6242 cat >>confdefs.h
<<_ACEOF
6243 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6248 if test $ac_cv_sys_file_offset_bits = unknown
; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6250 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6251 if ${ac_cv_sys_large_files+:} false
; then :
6252 $as_echo_n "(cached) " >&6
6255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #include <sys/types.h>
6258 /* Check that off_t can represent 2**63 - 1 correctly.
6259 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6260 since some C++ compilers masquerading as C compilers
6261 incorrectly reject 9223372036854775807. */
6262 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6263 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6264 && LARGE_OFF_T % 2147483647 == 1)
6274 if ac_fn_c_try_compile
"$LINENO"; then :
6275 ac_cv_sys_large_files
=no
; break
6277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #define _LARGE_FILES 1
6281 #include <sys/types.h>
6282 /* Check that off_t can represent 2**63 - 1 correctly.
6283 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6284 since some C++ compilers masquerading as C compilers
6285 incorrectly reject 9223372036854775807. */
6286 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6287 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6288 && LARGE_OFF_T % 2147483647 == 1)
6298 if ac_fn_c_try_compile
"$LINENO"; then :
6299 ac_cv_sys_large_files
=1; break
6301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6302 ac_cv_sys_large_files
=unknown
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6307 $as_echo "$ac_cv_sys_large_files" >&6; }
6308 case $ac_cv_sys_large_files in #(
6311 cat >>confdefs.h
<<_ACEOF
6312 #define _LARGE_FILES $ac_cv_sys_large_files
6328 $as_echo "#define _ISOC11_SOURCE 1" >>confdefs.h
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6337 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6338 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
6339 $as_echo_n "(cached) " >&6
6342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6351 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6352 gl_cv_c_amsterdam_compiler
=yes
6354 gl_cv_c_amsterdam_compiler
=no
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6361 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6363 if test $gl_cv_c_amsterdam_compiler = yes; then
6364 if test -z "$AR"; then
6367 if test -z "$ARFLAGS"; then
6374 if test -n "$ac_tool_prefix"; then
6375 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6376 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if ${ac_cv_prog_AR+:} false
; then :
6380 $as_echo_n "(cached) " >&6
6382 if test -n "$AR"; then
6383 ac_cv_prog_AR
="$AR" # Let the user override the test.
6385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6389 test -z "$as_dir" && as_dir
=.
6390 for ac_exec_ext
in '' $ac_executable_extensions; do
6391 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6392 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 if test -n "$AR"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6405 $as_echo "$AR" >&6; }
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 $as_echo "no" >&6; }
6413 if test -z "$ac_cv_prog_AR"; then
6415 # Extract the first word of "ar", so it can be a program name with args.
6416 set dummy
ar; ac_word
=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6420 $as_echo_n "(cached) " >&6
6422 if test -n "$ac_ct_AR"; then
6423 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6429 test -z "$as_dir" && as_dir
=.
6430 for ac_exec_ext
in '' $ac_executable_extensions; do
6431 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6432 ac_cv_prog_ac_ct_AR
="ar"
6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6443 if test -n "$ac_ct_AR"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6445 $as_echo "$ac_ct_AR" >&6; }
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6451 if test "x$ac_ct_AR" = x
; then
6454 case $cross_compiling:$ac_tool_warned in
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6458 ac_tool_warned
=yes ;;
6466 if test -z "$ARFLAGS"; then
6472 if test -z "$RANLIB"; then
6473 if test $gl_cv_c_amsterdam_compiler = yes; then
6476 if test -n "$ac_tool_prefix"; then
6477 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6478 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if ${ac_cv_prog_RANLIB+:} false
; then :
6482 $as_echo_n "(cached) " >&6
6484 if test -n "$RANLIB"; then
6485 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir
=.
6492 for ac_exec_ext
in '' $ac_executable_extensions; do
6493 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6494 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 RANLIB
=$ac_cv_prog_RANLIB
6505 if test -n "$RANLIB"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6507 $as_echo "$RANLIB" >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6515 if test -z "$ac_cv_prog_RANLIB"; then
6516 ac_ct_RANLIB
=$RANLIB
6517 # Extract the first word of "ranlib", so it can be a program name with args.
6518 set dummy ranlib
; ac_word
=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6522 $as_echo_n "(cached) " >&6
6524 if test -n "$ac_ct_RANLIB"; then
6525 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6531 test -z "$as_dir" && as_dir
=.
6532 for ac_exec_ext
in '' $ac_executable_extensions; do
6533 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6534 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6545 if test -n "$ac_ct_RANLIB"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6547 $as_echo "$ac_ct_RANLIB" >&6; }
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6553 if test "x$ac_ct_RANLIB" = x
; then
6556 case $cross_compiling:$ac_tool_warned in
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6560 ac_tool_warned
=yes ;;
6562 RANLIB
=$ac_ct_RANLIB
6565 RANLIB
="$ac_cv_prog_RANLIB"
6576 # IEEE behaviour is the default on all CPUs except Alpha and SH
6577 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6578 # and the GCC 4.1.2 manual).
6581 # On Alpha systems, a compiler option provides the behaviour.
6582 # See the ieee(3) manual page, also available at
6583 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
6584 if test -n "$GCC"; then
6585 # GCC has the option -mieee.
6586 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6587 CPPFLAGS
="$CPPFLAGS -mieee"
6589 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6590 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6591 CPPFLAGS
="$CPPFLAGS -ieee"
6595 if test -n "$GCC"; then
6596 # GCC has the option -mieee.
6597 CPPFLAGS
="$CPPFLAGS -mieee"
6608 # Check whether --enable-threads was given.
6609 if test "${enable_threads+set}" = set; then :
6610 enableval
=$enable_threads; gl_use_threads
=$enableval
6612 if test -n "$gl_use_threads_default"; then
6613 gl_use_threads
="$gl_use_threads_default"
6616 osf
*) gl_use_threads
=no
;;
6619 1.
[0-5].
*) gl_use_threads
=no
;;
6620 *) gl_use_threads
=yes ;;
6624 case "$gl_use_winpthreads_default" in
6625 yes) gl_use_threads
=posix
;;
6626 no
) gl_use_threads
=windows
;;
6627 *) gl_use_threads
=yes ;;
6630 *) gl_use_threads
=yes ;;
6636 if test "$gl_use_threads" = yes \
6637 ||
test "$gl_use_threads" = isoc \
6638 ||
test "$gl_use_threads" = posix \
6639 ||
test "$gl_use_threads" = isoc
+posix
; then
6640 # For using <threads.h> or <pthread.h>:
6643 if test -z "$gl_anythreadlib_early_done"; then
6646 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6647 # groks <pthread.h>. cc also understands the flag -pthread, but
6648 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6649 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6650 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6651 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6652 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
6655 # Some systems optimize for single-threaded programs by default, and
6656 # need special flags to disable these optimizations. For example, the
6657 # definition of 'errno' in <errno.h>.
6659 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
6660 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
6662 gl_anythreadlib_early_done
=done
6669 # Pre-early section.
6674 # Code from module absolute-header:
6675 # Code from module alloca:
6676 # Code from module alloca-opt:
6677 # Code from module arpa_inet:
6678 # Code from module assure:
6679 # Code from module at-internal:
6680 # Code from module attribute:
6681 # Code from module basename-lgpl:
6682 # Code from module btowc:
6683 # Code from module builtin-expect:
6684 # Code from module c99:
6685 # Code from module canonicalize-lgpl:
6686 # Code from module chdir:
6687 # Code from module chdir-long:
6688 # Code from module clock-time:
6689 # Code from module cloexec:
6690 # Code from module close:
6691 # Code from module closedir:
6692 # Code from module count-one-bits:
6693 # Code from module ctype:
6694 # Code from module d-ino:
6695 # Code from module d-type:
6696 # Code from module dirent:
6697 # Code from module dirfd:
6698 # Code from module dirname-lgpl:
6699 # Code from module double-slash-root:
6700 # Code from module dup:
6701 # Code from module dup2:
6702 # Code from module eloop-threshold:
6703 # Code from module environ:
6704 # Code from module errno:
6705 # Code from module error:
6706 # Code from module exitfail:
6707 # Code from module extensions:
6708 # Code from module extern-inline:
6709 # Code from module fchdir:
6710 # Code from module fcntl:
6711 # Code from module fcntl-h:
6712 # Code from module fd-hook:
6713 # Code from module fd-safer-flag:
6714 # Code from module fdopendir:
6715 # Code from module ffs:
6716 # Code from module filename:
6717 # Code from module filenamecat-lgpl:
6718 # Code from module flexmember:
6719 # Code from module float:
6720 # Code from module fnmatch:
6721 # Code from module fnmatch-gnu:
6722 # Code from module fnmatch-h:
6723 # Code from module fpieee:
6725 # Code from module fpucw:
6726 # Code from module free-posix:
6727 # Code from module frexp:
6728 # Code from module frexpl:
6729 # Code from module fstat:
6730 # Code from module fstatat:
6731 # Code from module gendocs:
6732 # Code from module getcwd:
6733 # Code from module getcwd-lgpl:
6734 # Code from module getdelim:
6735 # Code from module getdtablesize:
6736 # Code from module getline:
6737 # Code from module getlogin_r:
6738 # Code from module getprogname:
6739 # Code from module getrandom:
6740 # Code from module gettext-h:
6741 # Code from module gettimeofday:
6742 # Code from module gitlog-to-changelog:
6743 # Code from module glob:
6744 # Code from module glob-h:
6745 # Code from module hard-locale:
6746 # Code from module idx:
6747 # Code from module include_next:
6748 # Code from module inet_ntop:
6749 # Code from module intprops:
6750 # Code from module inttypes:
6751 # Code from module inttypes-incomplete:
6752 # Code from module isblank:
6753 # Code from module isnand-nolibm:
6754 # Code from module isnanl-nolibm:
6755 # Code from module largefile:
6757 # Code from module libc-config:
6758 # Code from module limits-h:
6759 # Code from module localcharset:
6760 # Code from module locale:
6761 # Code from module lock:
6762 # Code from module lstat:
6763 # Code from module malloc-posix:
6764 # Code from module malloca:
6765 # Code from module math:
6766 # Code from module mbrtowc:
6767 # Code from module mbsinit:
6768 # Code from module mbsrtowcs:
6769 # Code from module mbtowc:
6770 # Code from module memchr:
6771 # Code from module memmem:
6772 # Code from module memmem-simple:
6773 # Code from module mempcpy:
6774 # Code from module memrchr:
6775 # Code from module minmax:
6776 # Code from module mkdir:
6777 # Code from module mkdtemp:
6778 # Code from module mkostemp:
6779 # Code from module msvc-inval:
6780 # Code from module msvc-nothrow:
6781 # Code from module multiarch:
6782 # Code from module netinet_in:
6783 # Code from module nocrash:
6784 # Code from module open:
6785 # Code from module openat:
6786 # Code from module openat-die:
6787 # Code from module openat-h:
6788 # Code from module opendir:
6789 # Code from module pathmax:
6790 # Code from module pipe-posix:
6791 # Code from module rawmemchr:
6792 # Code from module readdir:
6793 # Code from module readlink:
6794 # Code from module realloc-posix:
6795 # Code from module rename:
6796 # Code from module rewinddir:
6797 # Code from module rmdir:
6798 # Code from module same-inode:
6799 # Code from module save-cwd:
6800 # Code from module scratch_buffer:
6801 # Code from module setenv:
6802 # Code from module setlocale-null:
6803 # Code from module signal-h:
6804 # Code from module snippet/_Noreturn:
6805 # Code from module snippet/arg-nonnull:
6806 # Code from module snippet/c++defs:
6807 # Code from module snippet/warn-on-use:
6808 # Code from module socklen:
6809 # Code from module ssize_t:
6810 # Code from module stat:
6811 # Code from module stat-time:
6812 # Code from module std-gnu11:
6813 # Code from module stdalign:
6814 # Code from module stdbool:
6815 # Code from module stddef:
6816 # Code from module stdint:
6817 # Code from module stdio:
6818 # Code from module stdlib:
6819 # Code from module strchrnul:
6820 # Code from module strdup-posix:
6821 # Code from module streq:
6822 # Code from module strerror:
6823 # Code from module strerror-override:
6824 # Code from module strerror_r-posix:
6825 # Code from module string:
6826 # Code from module strings:
6827 # Code from module strnlen:
6828 # Code from module strnlen1:
6829 # Code from module strstr:
6830 # Code from module strstr-simple:
6831 # Code from module strtok_r:
6832 # Code from module sys_random:
6833 # Code from module sys_socket:
6834 # Code from module sys_stat:
6835 # Code from module sys_time:
6836 # Code from module sys_types:
6837 # Code from module sys_uio:
6838 # Code from module tempname:
6839 # Code from module threadlib:
6843 # Code from module time:
6844 # Code from module time_r:
6845 # Code from module unistd:
6846 # Code from module unistd-safer:
6847 # Code from module unsetenv:
6848 # Code from module update-copyright:
6849 # Code from module verify:
6850 # Code from module wchar:
6851 # Code from module wctype-h:
6852 # Code from module windows-mutex:
6853 # Code from module windows-once:
6854 # Code from module windows-recmutex:
6855 # Code from module windows-rwlock:
6856 # Code from module wmemchr:
6857 # Code from module wmempcpy:
6858 # Code from module xalloc-oversized:
6861 am_cv_prog_cc_stdc
=$ac_cv_prog_cc_stdc
6865 for ac_dir
in ..
"$srcdir"/..
; do
6866 if test -f "$ac_dir/install-sh"; then
6868 ac_install_sh
="$ac_aux_dir/install-sh -c"
6870 elif test -f "$ac_dir/install.sh"; then
6872 ac_install_sh
="$ac_aux_dir/install.sh -c"
6874 elif test -f "$ac_dir/shtool"; then
6876 ac_install_sh
="$ac_aux_dir/shtool install -c"
6880 if test -z "$ac_aux_dir"; then
6881 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6884 # These three variables are undocumented and unsupported,
6885 # and are intended to be withdrawn in a future Autoconf release.
6886 # They can cause serious problems if a builder's source tree is in a directory
6887 # whose full name contains unusual characters.
6888 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6889 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6890 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6903 # Check whether --enable-cross-guesses was given.
6904 if test "${enable_cross_guesses+set}" = set; then :
6905 enableval
=$enable_cross_guesses; if test "x$enableval" != xconservative
&& test "x$enableval" != xrisky
; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6907 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6908 enableval
=conservative
6910 gl_cross_guesses
="$enableval"
6912 gl_cross_guesses
=conservative
6915 if test $gl_cross_guesses = risky
; then
6916 gl_cross_guess_normal
="guessing yes"
6917 gl_cross_guess_inverted
="guessing no"
6919 gl_cross_guess_normal
="guessing no"
6920 gl_cross_guess_inverted
="guessing yes"
6922 LIBC_FATAL_STDERR_
=1
6923 export LIBC_FATAL_STDERR_
6926 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6927 if test "x$ac_cv_type_size_t" = xyes
; then :
6931 cat >>confdefs.h
<<_ACEOF
6932 #define size_t unsigned int
6937 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6938 # for constant arguments. Useless!
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6940 $as_echo_n "checking for working alloca.h... " >&6; }
6941 if ${ac_cv_working_alloca_h+:} false
; then :
6942 $as_echo_n "(cached) " >&6
6944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6950 char *p = (char *) alloca (2 * sizeof (int));
6956 if ac_fn_c_try_link
"$LINENO"; then :
6957 ac_cv_working_alloca_h
=yes
6959 ac_cv_working_alloca_h
=no
6961 rm -f core conftest.err conftest.
$ac_objext \
6962 conftest
$ac_exeext conftest.
$ac_ext
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6965 $as_echo "$ac_cv_working_alloca_h" >&6; }
6966 if test $ac_cv_working_alloca_h = yes; then
6968 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6973 $as_echo_n "checking for alloca... " >&6; }
6974 if ${ac_cv_func_alloca_works+:} false
; then :
6975 $as_echo_n "(cached) " >&6
6977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6980 # define alloca __builtin_alloca
6983 # include <malloc.h>
6984 # define alloca _alloca
6986 # ifdef HAVE_ALLOCA_H
6987 # include <alloca.h>
6992 # ifndef alloca /* predefined by HP cc +Olibcalls */
6993 void *alloca (size_t);
7003 char *p = (char *) alloca (1);
7009 if ac_fn_c_try_link
"$LINENO"; then :
7010 ac_cv_func_alloca_works
=yes
7012 ac_cv_func_alloca_works
=no
7014 rm -f core conftest.err conftest.
$ac_objext \
7015 conftest
$ac_exeext conftest.
$ac_ext
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7018 $as_echo "$ac_cv_func_alloca_works" >&6; }
7020 if test $ac_cv_func_alloca_works = yes; then
7022 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7025 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7026 # that cause trouble. Some versions do not even contain alloca or
7027 # contain a buggy version. If you still want to use their alloca,
7028 # use ar to extract alloca.o from them instead of compiling alloca.c.
7034 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7036 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7040 $as_echo_n "checking stack direction for C alloca... " >&6; }
7041 if ${ac_cv_c_stack_direction+:} false
; then :
7042 $as_echo_n "(cached) " >&6
7044 if test "$cross_compiling" = yes; then :
7045 ac_cv_c_stack_direction
=0
7047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 $ac_includes_default
7051 find_stack_direction (int *addr, int depth)
7056 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7057 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7062 main (int argc, char **argv)
7064 return find_stack_direction (0, argc + !argv + 20) < 0;
7067 if ac_fn_c_try_run
"$LINENO"; then :
7068 ac_cv_c_stack_direction
=1
7070 ac_cv_c_stack_direction
=-1
7072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7073 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7078 $as_echo "$ac_cv_c_stack_direction" >&6; }
7079 cat >>confdefs.h
<<_ACEOF
7080 #define STACK_DIRECTION $ac_cv_c_stack_direction
7089 HAVE_DECL_INET_NTOP
=1;
7090 HAVE_DECL_INET_PTON
=1;
7091 REPLACE_INET_NTOP
=0;
7092 REPLACE_INET_PTON
=0;
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7099 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7100 if ${gl_cv_have_include_next+:} false
; then :
7101 $as_echo_n "(cached) " >&6
7103 rm -rf conftestd1a conftestd1b conftestd2
7104 mkdir conftestd1a conftestd1b conftestd2
7105 cat <<EOF > conftestd1a/conftest.h
7106 #define DEFINED_IN_CONFTESTD1
7107 #include_next <conftest.h>
7108 #ifdef DEFINED_IN_CONFTESTD2
7111 #error "include_next doesn't work"
7114 cat <<EOF > conftestd1b/conftest.h
7115 #define DEFINED_IN_CONFTESTD1
7117 #include_next <conftest.h>
7118 #ifdef DEFINED_IN_CONFTESTD2
7121 #error "include_next doesn't work"
7124 cat <<EOF > conftestd2/conftest.h
7125 #ifndef DEFINED_IN_CONFTESTD1
7126 #error "include_next test doesn't work"
7128 #define DEFINED_IN_CONFTESTD2
7130 gl_save_CPPFLAGS
="$CPPFLAGS"
7131 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 #include <conftest.h>
7136 if ac_fn_c_try_compile
"$LINENO"; then :
7137 gl_cv_have_include_next
=yes
7139 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 #include <conftest.h>
7144 if ac_fn_c_try_compile
"$LINENO"; then :
7145 gl_cv_have_include_next
=buggy
7147 gl_cv_have_include_next
=no
7149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7153 CPPFLAGS
="$gl_save_CPPFLAGS"
7154 rm -rf conftestd1a conftestd1b conftestd2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7158 $as_echo "$gl_cv_have_include_next" >&6; }
7159 PRAGMA_SYSTEM_HEADER
=
7160 if test $gl_cv_have_include_next = yes; then
7161 INCLUDE_NEXT
=include_next
7162 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7163 if test -n "$GCC"; then
7164 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7167 if test $gl_cv_have_include_next = buggy
; then
7168 INCLUDE_NEXT
=include
7169 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7171 INCLUDE_NEXT
=include
7172 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
7180 $as_echo_n "checking whether source code line length is unlimited... " >&6; }
7181 if ${gl_cv_source_line_length_unlimited+:} false
; then :
7182 $as_echo_n "(cached) " >&6
7184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7193 $EGREP "choke me" >/dev
/null
2>&1; then :
7194 gl_cv_source_line_length_unlimited
=no
7196 gl_cv_source_line_length_unlimited
=yes
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
7203 $as_echo "$gl_cv_source_line_length_unlimited" >&6; }
7204 if test $gl_cv_source_line_length_unlimited = no
; then
7205 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7215 if test $ac_cv_header_features_h = yes; then
7225 if test $ac_cv_header_sys_socket_h = no
; then
7226 for ac_header
in ws2tcpip.h
7228 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7229 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
7230 cat >>confdefs.h
<<_ACEOF
7231 #define HAVE_WS2TCPIP_H 1
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7241 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7242 if test -z "$MKDIR_P"; then
7243 if ${ac_cv_path_mkdir+:} false
; then :
7244 $as_echo_n "(cached) " >&6
7246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7247 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7250 test -z "$as_dir" && as_dir
=.
7251 for ac_prog
in mkdir gmkdir
; do
7252 for ac_exec_ext
in '' $ac_executable_extensions; do
7253 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7254 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7255 'mkdir (GNU coreutils) '* | \
7256 'mkdir (coreutils) '* | \
7257 'mkdir (fileutils) '4.1*)
7258 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7268 test -d .
/--version && rmdir .
/--version
7269 if test "${ac_cv_path_mkdir+set}" = set; then
7270 MKDIR_P
="$ac_cv_path_mkdir -p"
7272 # As a last resort, use the slow shell script. Don't cache a
7273 # value for MKDIR_P within a source directory, because that will
7274 # break other packages using the cache if that directory is
7275 # removed, or if the value is a relative name.
7276 MKDIR_P
="$ac_install_sh -d"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7280 $as_echo "$MKDIR_P" >&6; }
7289 GNULIB_MBSNRTOWCS
=0;
7292 GNULIB_WCSNRTOMBS
=0;
7310 GNULIB_WCSCASECMP
=0;
7311 GNULIB_WCSNCASECMP
=0;
7324 GNULIB_MDA_WCSDUP
=1;
7366 HAVE_DECL_WCWIDTH
=1;
7367 REPLACE_MBSTATE_T
=0;
7373 REPLACE_MBSRTOWCS
=0;
7374 REPLACE_MBSNRTOWCS
=0;
7376 REPLACE_WCSRTOMBS
=0;
7377 REPLACE_WCSNRTOMBS
=0;
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
7386 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7387 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
7388 $as_echo_n "(cached) " >&6
7390 gl_cv_header_wchar_h_correct_inline
=yes
7393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7397 #define wcstod renamed_wcstod
7399 extern int zero (void);
7400 int main () { return zero(); }
7403 save_ac_compile
="$ac_compile"
7404 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
7405 if echo '#include "conftest.c"' >conftest1.c \
7406 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7407 (eval $ac_compile) 2>&5
7409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7410 test $ac_status = 0; }; then
7411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7415 #define wcstod renamed_wcstod
7417 int zero (void) { return 0; }
7420 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
7421 if echo '#include "conftest.c"' >conftest2.c \
7422 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7423 (eval $ac_compile) 2>&5
7425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; }; then
7427 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
7430 gl_cv_header_wchar_h_correct_inline
=no
7434 ac_compile
="$save_ac_compile"
7435 rm -f conftest12.c conftest12.
$ac_objext conftest
$ac_exeext
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
7441 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7442 if test $gl_cv_header_wchar_h_correct_inline = no
; then
7443 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7444 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7445 C99 mode. You have four options:
7446 - Add the flag -fgnu89-inline to CC and reconfigure, or
7447 - Fix your include files, using parts of
7448 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7449 - Use a gcc version older than 4.3, or
7450 - Don't use the flags -std=c99 or -std=gnu99.
7451 Configuration aborted." "$LINENO" 5
7457 for ac_func
in $ac_func_list
7459 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7460 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7461 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7462 cat >>confdefs.h
<<_ACEOF
7463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7473 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7474 if ${am_cv_langinfo_codeset+:} false
; then :
7475 $as_echo_n "(cached) " >&6
7477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479 #include <langinfo.h>
7483 char* cs = nl_langinfo(CODESET); return !cs;
7488 if ac_fn_c_try_link
"$LINENO"; then :
7489 am_cv_langinfo_codeset
=yes
7491 am_cv_langinfo_codeset
=no
7493 rm -f core conftest.err conftest.
$ac_objext \
7494 conftest
$ac_exeext conftest.
$ac_ext
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7498 $as_echo "$am_cv_langinfo_codeset" >&6; }
7499 if test $am_cv_langinfo_codeset = yes; then
7501 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7509 $as_echo_n "checking for a traditional french locale... " >&6; }
7510 if ${gt_cv_locale_fr+:} false
; then :
7511 $as_echo_n "(cached) " >&6
7514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7519 #if HAVE_LANGINFO_CODESET
7520 # include <langinfo.h>
7527 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7528 imitates locale dependent behaviour by looking at the environment
7529 variables, and all locales use the UTF-8 encoding. */
7530 #if defined __BEOS__ || defined __HAIKU__
7533 /* Check whether the given locale name is recognized by the system. */
7534 # if defined _WIN32 && !defined __CYGWIN__
7535 /* On native Windows, setlocale(category, "") looks at the system settings,
7536 not at the environment variables. Also, when an encoding suffix such
7537 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7538 category of the locale to "C". */
7539 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7540 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7543 if (setlocale (LC_ALL, "") == NULL) return 1;
7545 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7546 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7547 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7548 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7549 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7550 some unit tests fail.
7551 On MirBSD 10, when an unsupported locale is specified, setlocale()
7552 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7553 # if HAVE_LANGINFO_CODESET
7555 const char *cs = nl_langinfo (CODESET);
7556 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7557 || strcmp (cs, "UTF-8") == 0)
7562 /* On Cygwin, avoid locale names without encoding suffix, because the
7563 locale_charset() function relies on the encoding suffix. Note that
7564 LC_ALL is set on the command line. */
7565 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7567 /* Check whether in the abbreviation of the second month, the second
7568 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7569 one byte long. This excludes the UTF-8 encoding. */
7570 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7571 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7572 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7573 /* Check whether the decimal separator is a comma.
7574 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7575 are nl_langinfo(RADIXCHAR) are both ".". */
7576 if (localeconv () ->decimal_point[0] != ',') return 1;
7583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7584 (eval $ac_link) 2>&5
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
7589 # Handle native Windows specially, because there setlocale() interprets
7590 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7591 # "fr" or "fra" as "French" or "French_France.1252",
7592 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7593 # "ja" as "Japanese" or "Japanese_Japan.932",
7596 # Test for the native Windows locale name.
7597 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7598 gt_cv_locale_fr
=French_France
.1252
7601 gt_cv_locale_fr
=none
7605 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7606 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7607 # configure script would override the LC_ALL setting. Likewise for
7608 # LC_CTYPE, which is also set at the beginning of the configure script.
7609 # Test for the usual locale name.
7610 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7611 gt_cv_locale_fr
=fr_FR
7613 # Test for the locale name with explicit encoding suffix.
7614 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7615 gt_cv_locale_fr
=fr_FR.ISO-8859-1
7617 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7618 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7619 gt_cv_locale_fr
=fr_FR.ISO8859-1
7621 # Test for the HP-UX locale name.
7622 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7623 gt_cv_locale_fr
=fr_FR.iso88591
7625 # Test for the Solaris 7 locale name.
7626 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
7630 gt_cv_locale_fr
=none
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7643 $as_echo "$gt_cv_locale_fr" >&6; }
7644 LOCALE_FR
=$gt_cv_locale_fr
7649 GNULIB_ALIGNED_ALLOC
=0;
7651 GNULIB_CALLOC_POSIX
=0;
7652 GNULIB_CANONICALIZE_FILE_NAME
=0;
7653 GNULIB_FREE_POSIX
=0;
7654 GNULIB_GETLOADAVG
=0;
7657 GNULIB_MALLOC_POSIX
=0;
7664 GNULIB_POSIX_MEMALIGN
=0;
7665 GNULIB_POSIX_OPENPT
=0;
7672 GNULIB_REALLOCARRAY
=0;
7673 GNULIB_REALLOC_POSIX
=0;
7676 GNULIB_SECURE_GETENV
=0;
7682 GNULIB_SYSTEM_POSIX
=0;
7689 GNULIB_MDA_MKTEMP
=1;
7690 GNULIB_MDA_PUTENV
=1;
7692 HAVE_ALIGNED_ALLOC
=1;
7694 HAVE_CANONICALIZE_FILE_NAME
=1;
7698 HAVE_DECL_GETLOADAVG
=1;
7702 HAVE_DECL_INITSTATE
=1;
7709 HAVE_POSIX_MEMALIGN
=1;
7710 HAVE_POSIX_OPENPT
=1;
7717 HAVE_REALLOCARRAY
=1;
7720 HAVE_SECURE_GETENV
=1;
7724 HAVE_DECL_SETSTATE
=1;
7729 HAVE_STRUCT_RANDOM_DATA
=1;
7730 HAVE_SYS_LOADAVG_H
=0;
7732 HAVE_DECL_UNSETENV
=1;
7733 REPLACE_ALIGNED_ALLOC
=0;
7735 REPLACE_CANONICALIZE_FILE_NAME
=0;
7737 REPLACE_INITSTATE
=0;
7741 REPLACE_POSIX_MEMALIGN
=0;
7743 REPLACE_PTSNAME_R
=0;
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
7759 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
7760 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
7761 $as_echo_n "(cached) " >&6
7763 rm -f conftest.sym conftest.
file
7765 if test "$cross_compiling" = yes; then :
7768 # Guess yes on Linux systems.
7769 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
7771 # Guess yes on glibc systems.
7772 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
7774 # Guess no on native Windows.
7775 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
7777 # If we don't know, obey --enable-cross-guesses.
7778 gl_cv_func_lstat_dereferences_slashed_symlink
="$gl_cross_guess_normal" ;;
7782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7784 $ac_includes_default
7789 if (symlink ("conftest.file", "conftest.sym") != 0)
7791 /* Linux will dereference the symlink and fail, as required by
7792 POSIX. That is better in the sense that it means we will not
7793 have to compile and use the lstat wrapper. */
7794 return lstat ("conftest.sym/", &sbuf) == 0;
7800 if ac_fn_c_try_run
"$LINENO"; then :
7801 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
7803 gl_cv_func_lstat_dereferences_slashed_symlink
=no
7805 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7806 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7809 rm -f conftest.sym conftest.
file
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
7813 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7814 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
7817 cat >>confdefs.h
<<_ACEOF
7818 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7831 $as_echo_n "checking whether // is distinct from /... " >&6; }
7832 if ${gl_cv_double_slash_root+:} false
; then :
7833 $as_echo_n "(cached) " >&6
7835 if test x
"$cross_compiling" = xyes
; then
7836 # When cross-compiling, there is no way to tell whether // is special
7837 # short of a list of hosts. However, the only known hosts to date
7838 # that have a distinct // are Apollo DomainOS (too old to port to),
7839 # Cygwin, and z/OS. If anyone knows of another system for which // has
7840 # special semantics and is distinct from /, please report it to
7841 # <bug-gnulib@gnu.org>.
7843 *-cygwin | i370-ibm-openedition
)
7844 gl_cv_double_slash_root
=yes ;;
7846 # Be optimistic and assume that / and // are the same when we
7848 gl_cv_double_slash_root
='unknown, assuming no' ;;
7851 set x
`ls -di / // 2>/dev/null`
7852 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7853 gl_cv_double_slash_root
=no
7855 gl_cv_double_slash_root
=yes
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7860 $as_echo "$gl_cv_double_slash_root" >&6; }
7861 if test "$gl_cv_double_slash_root" = yes; then
7863 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7872 $as_echo_n "checking whether realpath works... " >&6; }
7873 if ${gl_cv_func_realpath_works+:} false
; then :
7874 $as_echo_n "(cached) " >&6
7877 rm -rf conftest.a conftest.d
7880 if test "$cross_compiling" = yes; then :
7882 # Guess yes on glibc systems.
7883 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7884 # Guess yes on musl systems.
7885 *-musl*) gl_cv_func_realpath_works
="guessing yes" ;;
7886 # Guess no on native Windows.
7887 mingw
*) gl_cv_func_realpath_works
="guessing no" ;;
7888 # If we don't know, obey --enable-cross-guesses.
7889 *) gl_cv_func_realpath_works
="$gl_cross_guess_normal" ;;
7893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7899 #if defined __MACH__ && defined __APPLE__
7900 /* Avoid a crash on Mac OS X. */
7901 #include <mach/mach.h>
7902 #include <mach/mach_error.h>
7903 #include <mach/thread_status.h>
7904 #include <mach/exception.h>
7905 #include <mach/task.h>
7906 #include <pthread.h>
7907 /* The exception port on which our thread listens. */
7908 static mach_port_t our_exception_port;
7909 /* The main function of the thread listening for exceptions of type
7912 mach_exception_thread (void *arg)
7914 /* Buffer for a message to be received. */
7916 mach_msg_header_t head;
7917 mach_msg_body_t msgh_body;
7920 mach_msg_return_t retval;
7921 /* Wait for a message on the exception port. */
7922 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7923 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7924 if (retval != MACH_MSG_SUCCESS)
7931 mach_port_t self = mach_task_self ();
7932 /* Allocate a port on which the thread shall listen for exceptions. */
7933 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7935 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7936 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7937 MACH_MSG_TYPE_MAKE_SEND)
7939 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7941 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7942 /* Create the thread listening on the exception port. */
7943 pthread_attr_t attr;
7945 if (pthread_attr_init (&attr) == 0
7946 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7947 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7948 pthread_attr_destroy (&attr);
7949 /* Replace the exception port info for these exceptions with our own.
7950 Note that we replace the exception port for the entire task, not only
7951 for a particular thread. This has the effect that when our exception
7952 port gets the message, the thread specific exception port has already
7953 been asked, and we don't need to bother about it.
7954 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7955 task_set_exception_ports (self, mask, our_exception_port,
7956 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7961 #elif defined _WIN32 && ! defined __CYGWIN__
7962 /* Avoid a crash on native Windows. */
7963 #define WIN32_LEAN_AND_MEAN
7964 #include <windows.h>
7965 #include <winerror.h>
7967 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7969 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7971 case EXCEPTION_ACCESS_VIOLATION:
7972 case EXCEPTION_IN_PAGE_ERROR:
7973 case EXCEPTION_STACK_OVERFLOW:
7974 case EXCEPTION_GUARD_PAGE:
7975 case EXCEPTION_PRIV_INSTRUCTION:
7976 case EXCEPTION_ILLEGAL_INSTRUCTION:
7977 case EXCEPTION_DATATYPE_MISALIGNMENT:
7978 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7979 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7982 return EXCEPTION_CONTINUE_SEARCH;
7987 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7990 /* Avoid a crash on POSIX systems. */
7993 /* A POSIX signal handler. */
7995 exception_handler (int sig)
8003 signal (SIGSEGV, exception_handler);
8006 signal (SIGBUS, exception_handler);
8020 char *name = realpath ("conftest.a", NULL);
8021 if (!(name && *name == '/'))
8026 char *name = realpath ("conftest.b/../conftest.a", NULL);
8032 char *name = realpath ("conftest.a/", NULL);
8038 char *name1 = realpath (".", NULL);
8039 char *name2 = realpath ("conftest.d//./..", NULL);
8040 if (! name1 || ! name2 || strcmp (name1, name2))
8052 if ac_fn_c_try_run
"$LINENO"; then :
8053 gl_cv_func_realpath_works
=yes
8055 gl_cv_func_realpath_works
=no
8057 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8058 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8061 rm -rf conftest.a conftest.d
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
8065 $as_echo "$gl_cv_func_realpath_works" >&6; }
8066 case "$gl_cv_func_realpath_works" in
8069 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
8084 *) for ac_func
in getcwd
8086 ac_fn_c_check_func
"$LINENO" "getcwd" "ac_cv_func_getcwd"
8087 if test "x$ac_cv_func_getcwd" = xyes
; then :
8088 cat >>confdefs.h
<<_ACEOF
8089 #define HAVE_GETCWD 1
8106 GNULIB_COPY_FILE_RANGE
=0;
8111 GNULIB_EUIDACCESS
=0;
8126 GNULIB_GETDOMAINNAME
=0;
8127 GNULIB_GETDTABLESIZE
=0;
8128 GNULIB_GETENTROPY
=0;
8130 GNULIB_GETHOSTNAME
=0;
8132 GNULIB_GETLOGIN_R
=0;
8133 GNULIB_GETOPT_POSIX
=0;
8134 GNULIB_GETPAGESIZE
=0;
8136 GNULIB_GETUSERSHELL
=0;
8137 GNULIB_GROUP_MEMBER
=0;
8149 GNULIB_READLINKAT
=0;
8151 GNULIB_SETHOSTNAME
=0;
8157 GNULIB_UNISTD_H_NONBLOCKING
=0;
8158 GNULIB_UNISTD_H_SIGPIPE
=0;
8163 GNULIB_MDA_ACCESS
=1;
8169 GNULIB_MDA_EXECLE
=1;
8170 GNULIB_MDA_EXECLP
=1;
8172 GNULIB_MDA_EXECVE
=1;
8173 GNULIB_MDA_EXECVP
=1;
8174 GNULIB_MDA_EXECVPE
=1;
8175 GNULIB_MDA_GETCWD
=1;
8176 GNULIB_MDA_GETPID
=1;
8177 GNULIB_MDA_ISATTY
=1;
8182 GNULIB_MDA_UNLINK
=1;
8185 HAVE_COPY_FILE_RANGE
=1;
8195 HAVE_GETDTABLESIZE
=1;
8202 HAVE_GROUP_MEMBER
=1;
8218 HAVE_DECL_ENVIRON
=1;
8219 HAVE_DECL_EXECVPE
=1;
8221 HAVE_DECL_FDATASYNC
=1;
8222 HAVE_DECL_GETDOMAINNAME
=1;
8223 HAVE_DECL_GETLOGIN
=1;
8224 HAVE_DECL_GETLOGIN_R
=1;
8225 HAVE_DECL_GETPAGESIZE
=1;
8226 HAVE_DECL_GETUSERSHELL
=1;
8227 HAVE_DECL_SETHOSTNAME
=1;
8228 HAVE_DECL_TRUNCATE
=1;
8229 HAVE_DECL_TTYNAME_R
=1;
8244 REPLACE_FACCESSAT
=0;
8246 REPLACE_FTRUNCATE
=0;
8248 REPLACE_GETDOMAINNAME
=0;
8249 REPLACE_GETDTABLESIZE
=0;
8250 REPLACE_GETLOGIN_R
=0;
8251 REPLACE_GETGROUPS
=0;
8252 REPLACE_GETPAGESIZE
=0;
8263 REPLACE_READLINKAT
=0;
8267 REPLACE_SYMLINKAT
=0;
8269 REPLACE_TTYNAME_R
=0;
8274 UNISTD_H_HAVE_SYS_RANDOM_H
=0;
8275 UNISTD_H_HAVE_WINSOCK2_H
=0;
8276 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
8288 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
8289 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
8291 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
8294 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
8314 HAVE_DECL_FDOPENDIR
=1;
8321 REPLACE_FDOPENDIR
=0;
8330 #if defined _WIN32 && !defined __CYGWIN__
8331 #define access _access
8332 #define chdir _chdir
8333 #define chmod _chmod
8334 #define close _close
8335 #define creat _creat
8339 #define execl _execl
8340 #define execle _execle
8341 #define execlp _execlp
8342 #define execv _execv
8343 #define execve _execve
8344 #define execvp _execvp
8345 #define execvpe _execvpe
8346 #define fcloseall _fcloseall
8348 #define fdopen _fdopen
8349 #define fileno _fileno
8351 #define getcwd _getcwd
8352 #define getpid _getpid
8354 #define isatty _isatty
8358 #define lfind _lfind
8359 #define lsearch _lsearch
8360 #define lseek _lseek
8361 #define memccpy _memccpy
8362 #define mkdir _mkdir
8363 #define mktemp _mktemp
8365 #define putenv _putenv
8368 #define rmdir _rmdir
8369 #define strdup _strdup
8371 #define tempnam _tempnam
8372 #define tzset _tzset
8373 #define umask _umask
8374 #define unlink _unlink
8375 #define utime _utime
8376 #define wcsdup _wcsdup
8377 #define write _write
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
8392 $as_echo_n "checking if environ is properly declared... " >&6; }
8393 if ${gt_cv_var_environ_declaration+:} false
; then :
8394 $as_echo_n "(cached) " >&6
8396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8401 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
8404 extern struct { int foo; } environ;
8413 if ac_fn_c_try_compile
"$LINENO"; then :
8414 gt_cv_var_environ_declaration
=no
8416 gt_cv_var_environ_declaration
=yes
8418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
8421 $as_echo "$gt_cv_var_environ_declaration" >&6; }
8422 if test $gt_cv_var_environ_declaration = yes; then
8424 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
8429 if test $gt_cv_var_environ_declaration != yes; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
8436 $as_echo_n "checking for complete errno.h... " >&6; }
8437 if ${gl_cv_header_errno_h_complete+:} false
; then :
8438 $as_echo_n "(cached) " >&6
8441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8445 #if !defined ETXTBSY
8454 #if !defined ENOLINK
8460 #if !defined EMULTIHOP
8463 #if !defined EBADMSG
8466 #if !defined EOVERFLOW
8469 #if !defined ENOTSUP
8472 #if !defined ENETRESET
8475 #if !defined ECONNABORTED
8484 #if !defined ECANCELED
8487 #if !defined EOWNERDEAD
8490 #if !defined ENOTRECOVERABLE
8498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8499 $EGREP "booboo" >/dev
/null
2>&1; then :
8500 gl_cv_header_errno_h_complete
=no
8502 gl_cv_header_errno_h_complete
=yes
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8509 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
8510 if test $gl_cv_header_errno_h_complete = yes; then
8521 if test $gl_cv_have_include_next = yes; then
8522 gl_cv_next_errno_h
='<'errno.h
'>'
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8525 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
8526 if ${gl_cv_next_errno_h+:} false
; then :
8527 $as_echo_n "(cached) " >&6
8532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8537 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8538 *) gl_absname_cpp
="$ac_cpp" ;;
8543 gl_dirsep_regex
='[/\\]'
8546 gl_dirsep_regex
='\/'
8549 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8550 gl_header_literal_regex
=`echo 'errno.h' \
8551 | sed -e "$gl_make_literal_regex_sed"`
8552 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8553 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8559 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8560 sed -n "$gl_absolute_header_sed"`
8562 gl_header
=$gl_cv_absolute_errno_h
8563 gl_cv_next_errno_h
='"'$gl_header'"'
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8568 $as_echo "$gl_cv_next_errno_h" >&6; }
8570 NEXT_ERRNO_H
=$gl_cv_next_errno_h
8572 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8573 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8574 gl_next_as_first_directive
='<'errno.h
'>'
8576 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8577 gl_next_as_first_directive
=$gl_cv_next_errno_h
8579 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
8587 if test -n "$ERRNO_H"; then
8588 GL_GENERATE_ERRNO_H_TRUE
=
8589 GL_GENERATE_ERRNO_H_FALSE
='#'
8591 GL_GENERATE_ERRNO_H_TRUE
='#'
8592 GL_GENERATE_ERRNO_H_FALSE
=
8596 if test -n "$ERRNO_H"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8598 $as_echo_n "checking for EMULTIHOP value... " >&6; }
8599 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
8600 $as_echo_n "(cached) " >&6
8603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8613 $EGREP "yes" >/dev
/null
2>&1; then :
8614 gl_cv_header_errno_h_EMULTIHOP
=yes
8616 gl_cv_header_errno_h_EMULTIHOP
=no
8620 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
8621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8624 #define _XOPEN_SOURCE_EXTENDED 1
8631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8632 $EGREP "yes" >/dev
/null
2>&1; then :
8633 gl_cv_header_errno_h_EMULTIHOP
=hidden
8637 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
8638 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8639 #define _XOPEN_SOURCE_EXTENDED 1
8641 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8653 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8654 case $gl_cv_header_errno_h_EMULTIHOP in
8656 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8659 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8667 if test -n "$ERRNO_H"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8669 $as_echo_n "checking for ENOLINK value... " >&6; }
8670 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8671 $as_echo_n "(cached) " >&6
8674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8684 $EGREP "yes" >/dev
/null
2>&1; then :
8685 gl_cv_header_errno_h_ENOLINK
=yes
8687 gl_cv_header_errno_h_ENOLINK
=no
8691 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8695 #define _XOPEN_SOURCE_EXTENDED 1
8702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8703 $EGREP "yes" >/dev
/null
2>&1; then :
8704 gl_cv_header_errno_h_ENOLINK
=hidden
8708 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8709 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8710 #define _XOPEN_SOURCE_EXTENDED 1
8712 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8724 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8725 case $gl_cv_header_errno_h_ENOLINK in
8727 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8730 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8738 if test -n "$ERRNO_H"; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8740 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8741 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8742 $as_echo_n "(cached) " >&6
8745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8755 $EGREP "yes" >/dev
/null
2>&1; then :
8756 gl_cv_header_errno_h_EOVERFLOW
=yes
8758 gl_cv_header_errno_h_EOVERFLOW
=no
8762 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8766 #define _XOPEN_SOURCE_EXTENDED 1
8773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8774 $EGREP "yes" >/dev
/null
2>&1; then :
8775 gl_cv_header_errno_h_EOVERFLOW
=hidden
8779 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8780 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8781 #define _XOPEN_SOURCE_EXTENDED 1
8783 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8795 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8796 case $gl_cv_header_errno_h_EOVERFLOW in
8798 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8801 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8809 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8810 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
8816 cat >>confdefs.h
<<_ACEOF
8817 #define HAVE_DECL_STRERROR_R $ac_have_decl
8820 for ac_func
in strerror_r
8822 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8823 if test "x$ac_cv_func_strerror_r" = xyes
; then :
8824 cat >>confdefs.h
<<_ACEOF
8825 #define HAVE_STRERROR_R 1
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8832 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8833 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
8834 $as_echo_n "(cached) " >&6
8837 ac_cv_func_strerror_r_char_p
=no
8838 if test $ac_cv_have_decl_strerror_r = yes; then
8839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 $ac_includes_default
8847 char x = *strerror_r (0, buf, sizeof buf);
8848 char *p = strerror_r (0, buf, sizeof buf);
8855 if ac_fn_c_try_compile
"$LINENO"; then :
8856 ac_cv_func_strerror_r_char_p
=yes
8858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8860 # strerror_r is not declared. Choose between
8861 # systems that have relatively inaccessible declarations for the
8862 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8863 # former has a strerror_r that returns char*, while the latter
8864 # has a strerror_r that returns `int'.
8865 # This test should segfault on the DEC system.
8866 if test "$cross_compiling" = yes; then :
8869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 $ac_includes_default
8872 extern char *strerror_r ();
8877 char x = *strerror_r (0, buf, sizeof buf);
8878 return ! isalpha (x);
8883 if ac_fn_c_try_run
"$LINENO"; then :
8884 ac_cv_func_strerror_r_char_p
=yes
8886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8894 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8895 if test $ac_cv_func_strerror_r_char_p = yes; then
8897 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8904 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8905 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8911 cat >>confdefs.h
<<_ACEOF
8912 #define HAVE_DECL_FCHDIR $ac_have_decl
8918 GNULIB_NONBLOCKING
=0;
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8940 $as_echo_n "checking for working fcntl.h... " >&6; }
8941 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8942 $as_echo_n "(cached) " >&6
8944 if test "$cross_compiling" = yes; then :
8946 # Guess 'no' on native Windows.
8947 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
8948 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
8952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8954 #include <sys/types.h>
8955 #include <sys/stat.h>
8957 # include <unistd.h>
8958 #else /* on Windows with MSVC */
8960 # include <stdlib.h>
8961 # defined sleep(n) _sleep ((n) * 1000)
8972 #define O_NOFOLLOW 0
8974 static int const constants[] =
8976 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8977 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8984 int result = !constants;
8987 static char const sym[] = "conftest.sym";
8988 if (symlink ("/dev/null", sym) != 0)
8992 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8999 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9003 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9014 static char const file[] = "confdefs.h";
9015 int fd = open (file, O_RDONLY | O_NOATIME);
9021 if (fstat (fd, &st0) != 0)
9027 if (read (fd, &c, 1) != 1)
9031 if (close (fd) != 0)
9036 if (stat (file, &st1) != 0)
9039 if (st0.st_atime != st1.st_atime)
9051 if ac_fn_c_try_run
"$LINENO"; then :
9052 gl_cv_header_working_fcntl_h
=yes
9055 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
9056 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
9057 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9058 *) gl_cv_header_working_fcntl_h
='no';;
9061 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9062 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9068 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9070 case $gl_cv_header_working_fcntl_h in #(
9071 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
9075 cat >>confdefs.h
<<_ACEOF
9076 #define HAVE_WORKING_O_NOATIME $ac_val
9080 case $gl_cv_header_working_fcntl_h in #(
9081 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
9085 cat >>confdefs.h
<<_ACEOF
9086 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9091 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
9093 if test "x$ac_cv_type_pid_t" = xyes
; then :
9096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9099 #if defined _WIN64 && !defined __CYGWIN__
9112 if ac_fn_c_try_compile
"$LINENO"; then :
9115 gl_pid_type
='__int64'
9117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9119 cat >>confdefs.h
<<_ACEOF
9120 #define pid_t $gl_pid_type
9127 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9128 if test "x$ac_cv_type_mode_t" = xyes
; then :
9132 cat >>confdefs.h
<<_ACEOF
9144 HAVE_DECL_STRNCASECMP
=1;
9168 if test $gl_cv_have_include_next = yes; then
9169 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
9172 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
9173 if ${gl_cv_next_fnmatch_h+:} false
; then :
9174 $as_echo_n "(cached) " >&6
9177 if test $ac_cv_header_fnmatch_h = yes; then
9182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 #include <fnmatch.h>
9187 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9188 *) gl_absname_cpp
="$ac_cpp" ;;
9193 gl_dirsep_regex
='[/\\]'
9196 gl_dirsep_regex
='\/'
9199 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9200 gl_header_literal_regex
=`echo 'fnmatch.h' \
9201 | sed -e "$gl_make_literal_regex_sed"`
9202 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9203 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9209 gl_cv_absolute_fnmatch_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9210 sed -n "$gl_absolute_header_sed"`
9212 gl_header
=$gl_cv_absolute_fnmatch_h
9213 gl_cv_next_fnmatch_h
='"'$gl_header'"'
9215 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
9221 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
9223 NEXT_FNMATCH_H
=$gl_cv_next_fnmatch_h
9225 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9226 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9227 gl_next_as_first_directive
='<'fnmatch.h
'>'
9229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9230 gl_next_as_first_directive
=$gl_cv_next_fnmatch_h
9232 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
=$gl_next_as_first_directive
9240 if test $ac_cv_header_fnmatch_h = yes; then
9251 if test $ac_cv_header_fnmatch_h != yes; then
9257 if test -n "$FNMATCH_H"; then
9258 GL_GENERATE_FNMATCH_H_TRUE
=
9259 GL_GENERATE_FNMATCH_H_FALSE
='#'
9261 GL_GENERATE_FNMATCH_H_TRUE
='#'
9262 GL_GENERATE_FNMATCH_H_FALSE
=
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
9275 $as_echo_n "checking for mbstate_t... " >&6; }
9276 if ${ac_cv_type_mbstate_t+:} false
; then :
9277 $as_echo_n "(cached) " >&6
9279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 $ac_includes_default
9286 mbstate_t x; return sizeof x;
9291 if ac_fn_c_try_compile
"$LINENO"; then :
9292 ac_cv_type_mbstate_t
=yes
9294 ac_cv_type_mbstate_t
=no
9296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
9299 $as_echo "$ac_cv_type_mbstate_t" >&6; }
9300 if test $ac_cv_type_mbstate_t = yes; then
9302 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
9306 $as_echo "#define mbstate_t int" >>confdefs.h
9388 GNULIB_REMAINDERF
=0;
9389 GNULIB_REMAINDERL
=0;
9481 HAVE_DECL_COPYSIGNF
=1;
9498 HAVE_DECL_REMAINDER
=1;
9499 HAVE_DECL_REMAINDERL
=1;
9571 REPLACE_REMAINDER
=0;
9572 REPLACE_REMAINDERF
=0;
9573 REPLACE_REMAINDERL
=0;
9579 REPLACE_SIGNBIT_USING_BUILTINS
=0;
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
9592 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
9593 if ${gl_cv_func_frexp_no_libm+:} false
; then :
9594 $as_echo_n "(cached) " >&6
9597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9604 int e; return frexp (x, &e) > 0;
9609 if ac_fn_c_try_link
"$LINENO"; then :
9610 gl_cv_func_frexp_no_libm
=yes
9612 gl_cv_func_frexp_no_libm
=no
9614 rm -f core conftest.err conftest.
$ac_objext \
9615 conftest
$ac_exeext conftest.
$ac_ext
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
9619 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
9621 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
9622 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
9628 cat >>confdefs.h
<<_ACEOF
9629 #define HAVE_DECL_ALARM $ac_have_decl
9636 if test $gl_cv_func_frexp_no_libm = no
; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
9638 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
9639 if ${gl_cv_func_frexp_in_libm+:} false
; then :
9640 $as_echo_n "(cached) " >&6
9645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9652 int e; return frexp (x, &e) > 0;
9657 if ac_fn_c_try_link
"$LINENO"; then :
9658 gl_cv_func_frexp_in_libm
=yes
9660 gl_cv_func_frexp_in_libm
=no
9662 rm -f core conftest.err conftest.
$ac_objext \
9663 conftest
$ac_exeext conftest.
$ac_ext
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
9668 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
9669 if test $gl_cv_func_frexp_in_libm = yes; then
9673 if test $gl_cv_func_frexp_no_libm = yes \
9674 ||
test $gl_cv_func_frexp_in_libm = yes; then
9676 LIBS
="$LIBS $FREXP_LIBM"
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
9681 $as_echo_n "checking whether frexp works... " >&6; }
9682 if ${gl_cv_func_frexp_works+:} false
; then :
9683 $as_echo_n "(cached) " >&6
9686 if test "$cross_compiling" = yes; then :
9688 netbsd
* | irix
*) gl_cv_func_frexp_works
="guessing no" ;;
9689 mingw
*) # Guess yes with MSVC, no with mingw.
9690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9699 $EGREP "Good" >/dev
/null
2>&1; then :
9700 gl_cv_func_frexp_works
="guessing yes"
9702 gl_cv_func_frexp_works
="guessing no"
9707 *) gl_cv_func_frexp_works
="guessing yes" ;;
9711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9718 # include <signal.h>
9719 # include <unistd.h>
9721 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
9722 ICC 10.0 has a bug when optimizing the expression -zero.
9723 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
9724 to PowerPC on Mac OS X 10.5. */
9725 #if defined __hpux || defined __sgi || defined __ICC
9727 compute_minus_zero (void)
9729 return -DBL_MIN * DBL_MIN;
9731 # define minus_zero compute_minus_zero ()
9733 double minus_zero = -0.0;
9742 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
9743 number. Let the test fail in this case. */
9744 signal (SIGALRM, SIG_DFL);
9747 /* Test on denormalized numbers. */
9748 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
9753 double y = frexp (x, &exp);
9754 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
9755 On NetBSD: y = 0.75. Correct: y = 0.5. */
9759 /* Test on infinite numbers. */
9763 double y = frexp (x, &exp);
9767 /* Test on negative zero. */
9771 double y = frexp (x, &exp);
9772 if (memcmp (&y, &x, sizeof x))
9778 if ac_fn_c_try_run
"$LINENO"; then :
9779 gl_cv_func_frexp_works
=yes
9781 gl_cv_func_frexp_works
=no
9783 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9784 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
9790 $as_echo "$gl_cv_func_frexp_works" >&6; }
9793 case "$gl_cv_func_frexp_works" in
9794 *yes) gl_func_frexp
=yes ;;
9795 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
9800 if test $gl_func_frexp = yes; then
9802 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9809 $as_echo_n "checking whether long double and double are the same... " >&6; }
9810 if ${gl_cv_long_double_equals_double+:} false
; then :
9811 $as_echo_n "(cached) " >&6
9813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9819 typedef int check[sizeof (long double) == sizeof (double)
9820 && LDBL_MANT_DIG == DBL_MANT_DIG
9821 && LDBL_MAX_EXP == DBL_MAX_EXP
9822 && LDBL_MIN_EXP == DBL_MIN_EXP
9829 if ac_fn_c_try_compile
"$LINENO"; then :
9830 gl_cv_long_double_equals_double
=yes
9832 gl_cv_long_double_equals_double
=no
9834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9838 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9839 if test $gl_cv_long_double_equals_double = yes; then
9841 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9843 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9845 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9855 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
9857 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
9865 if test $HAVE_DECL_FREXPL = 1; then
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
9868 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
9869 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
9870 $as_echo_n "(cached) " >&6
9873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9880 int e; return frexpl (x, &e) > 0;
9885 if ac_fn_c_try_link
"$LINENO"; then :
9886 gl_cv_func_frexpl_no_libm
=yes
9888 gl_cv_func_frexpl_no_libm
=no
9890 rm -f core conftest.err conftest.
$ac_objext \
9891 conftest
$ac_exeext conftest.
$ac_ext
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
9895 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
9897 if test $gl_cv_func_frexpl_no_libm = no
; then
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
9899 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
9900 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
9901 $as_echo_n "(cached) " >&6
9906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9913 int e; return frexpl (x, &e) > 0;
9918 if ac_fn_c_try_link
"$LINENO"; then :
9919 gl_cv_func_frexpl_in_libm
=yes
9921 gl_cv_func_frexpl_in_libm
=no
9923 rm -f core conftest.err conftest.
$ac_objext \
9924 conftest
$ac_exeext conftest.
$ac_ext
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
9929 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
9930 if test $gl_cv_func_frexpl_in_libm = yes; then
9934 if test $gl_cv_func_frexpl_no_libm = yes \
9935 ||
test $gl_cv_func_frexpl_in_libm = yes; then
9937 LIBS
="$LIBS $FREXPL_LIBM"
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
9941 $as_echo_n "checking whether frexpl works... " >&6; }
9942 if ${gl_cv_func_frexpl_works+:} false
; then :
9943 $as_echo_n "(cached) " >&6
9946 if test "$cross_compiling" = yes; then :
9949 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
9950 gl_cv_func_frexpl_works
="guessing no";;
9951 *) gl_cv_func_frexpl_works
="guessing yes";;
9955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9960 /* Override the values of <float.h>, like done in float.in.h. */
9961 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
9962 # undef LDBL_MIN_EXP
9963 # define LDBL_MIN_EXP (-16381)
9965 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
9966 # undef LDBL_MIN_EXP
9967 # define LDBL_MIN_EXP (-16381)
9969 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
9970 # undef LDBL_MIN_EXP
9971 # define LDBL_MIN_EXP DBL_MIN_EXP
9973 #if defined __sgi && (LDBL_MANT_DIG >= 106)
9974 # if defined __GNUC__
9975 # undef LDBL_MIN_EXP
9976 # define LDBL_MIN_EXP DBL_MIN_EXP
9983 long double frexpl (long double, int *);
9984 long double zero = 0.0L;
9988 volatile long double x;
9989 /* Test on finite numbers that fails on AIX 5.1. */
9997 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
9998 function returns an invalid (incorrectly normalized) value: it returns
9999 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
10000 but the correct result is
10001 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
10005 long double y = frexpl (x, &exp);
10006 if (!(exp == 1 && y == 0.505L))
10009 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
10010 LDBL_MAX_EXP = 16384.
10011 In the loop end test, we test x against Infinity, rather than comparing
10012 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
10015 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10026 /* Test on denormalized numbers. */
10029 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10034 long double y = frexpl (x, &exp);
10035 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10036 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10037 if (exp != LDBL_MIN_EXP - 1)
10041 /* Test on infinite numbers. */
10042 /* The Microsoft MSVC 14 compiler chokes on the expression 1.0 / 0.0. */
10046 long double y = frexpl (x, &exp);
10053 if ac_fn_c_try_run
"$LINENO"; then :
10054 gl_cv_func_frexpl_works
=yes
10056 gl_cv_func_frexpl_works
=no
10058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10059 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10065 $as_echo "$gl_cv_func_frexpl_works" >&6; }
10068 case "$gl_cv_func_frexpl_works" in
10069 *yes) gl_func_frexpl
=yes ;;
10070 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
10075 if test $gl_func_frexpl = yes; then
10077 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10081 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
10082 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10084 FREXPL_LIBM
="$FREXP_LIBM"
10106 GNULIB_UTIMENSAT
=0;
10107 GNULIB_OVERRIDES_STRUCT_STAT
=0;
10108 GNULIB_MDA_CHMOD
=1;
10109 GNULIB_MDA_MKDIR
=1;
10110 GNULIB_MDA_UMASK
=1;
10123 REPLACE_FCHMODAT
=0;
10126 REPLACE_FUTIMENS
=0;
10130 REPLACE_MKFIFOAT
=0;
10134 REPLACE_UTIMENSAT
=0;
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10137 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10138 if ${ac_cv_header_stat_broken+:} false
; then :
10139 $as_echo_n "(cached) " >&6
10141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 #include <sys/types.h>
10144 #include <sys/stat.h>
10146 #if defined S_ISBLK && defined S_IFDIR
10147 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10150 #if defined S_ISBLK && defined S_IFCHR
10151 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10154 #if defined S_ISLNK && defined S_IFREG
10155 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10158 #if defined S_ISSOCK && defined S_IFREG
10159 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10163 if ac_fn_c_try_compile
"$LINENO"; then :
10164 ac_cv_header_stat_broken
=no
10166 ac_cv_header_stat_broken
=yes
10168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10171 $as_echo "$ac_cv_header_stat_broken" >&6; }
10172 if test $ac_cv_header_stat_broken = yes; then
10174 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
10185 $as_echo_n "checking for 64-bit off_t... " >&6; }
10186 if ${gl_cv_type_off_t_64+:} false
; then :
10187 $as_echo_n "(cached) " >&6
10189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10191 #include <sys/types.h>
10192 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
10202 if ac_fn_c_try_compile
"$LINENO"; then :
10203 gl_cv_type_off_t_64
=yes
10205 gl_cv_type_off_t_64
=no
10207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
10211 $as_echo "$gl_cv_type_off_t_64" >&6; }
10212 if test $gl_cv_type_off_t_64 = no
; then
10213 WINDOWS_64_BIT_OFF_T
=1
10215 WINDOWS_64_BIT_OFF_T
=0
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
10218 $as_echo_n "checking for 64-bit st_size... " >&6; }
10219 if ${gl_cv_member_st_size_64+:} false
; then :
10220 $as_echo_n "(cached) " >&6
10222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224 #include <sys/types.h>
10226 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
10236 if ac_fn_c_try_compile
"$LINENO"; then :
10237 gl_cv_member_st_size_64
=yes
10239 gl_cv_member_st_size_64
=no
10241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
10245 $as_echo "$gl_cv_member_st_size_64" >&6; }
10246 if test $gl_cv_member_st_size_64 = no
; then
10247 WINDOWS_64_BIT_ST_SIZE
=1
10249 WINDOWS_64_BIT_ST_SIZE
=0
10253 WINDOWS_64_BIT_OFF_T
=0
10254 WINDOWS_64_BIT_ST_SIZE
=0
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10259 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10260 if ${ac_cv_c_restrict+:} false
; then :
10261 $as_echo_n "(cached) " >&6
10263 ac_cv_c_restrict
=no
10264 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
10265 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
10266 # Put 'restrict' last, because C++ lacks it.
10267 for ac_kw
in __restrict__ __restrict _Restrict restrict
; do
10268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10270 typedef int *int_ptr;
10271 int foo (int_ptr $ac_kw ip) { return ip[0]; }
10272 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
10273 int bar (int ip[$ac_kw]) { return ip[0]; }
10281 return foo (t) + bar (t);
10287 if ac_fn_c_try_compile
"$LINENO"; then :
10288 ac_cv_c_restrict
=$ac_kw
10290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10291 test "$ac_cv_c_restrict" != no
&& break
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10296 $as_echo "$ac_cv_c_restrict" >&6; }
10298 case $ac_cv_c_restrict in
10300 no
) $as_echo "#define restrict /**/" >>confdefs.h
10302 *) cat >>confdefs.h
<<_ACEOF
10303 #define restrict $ac_cv_c_restrict
10322 if test $gl_cv_have_include_next = yes; then
10323 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
10326 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
10327 if ${gl_cv_next_sys_stat_h+:} false
; then :
10328 $as_echo_n "(cached) " >&6
10331 if test $ac_cv_header_sys_stat_h = yes; then
10336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h. */
10338 #include <sys/stat.h>
10341 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10342 *) gl_absname_cpp
="$ac_cpp" ;;
10347 gl_dirsep_regex
='[/\\]'
10350 gl_dirsep_regex
='\/'
10353 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10354 gl_header_literal_regex
=`echo 'sys/stat.h' \
10355 | sed -e "$gl_make_literal_regex_sed"`
10356 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10357 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10363 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10364 sed -n "$gl_absolute_header_sed"`
10366 gl_header
=$gl_cv_absolute_sys_stat_h
10367 gl_cv_next_sys_stat_h
='"'$gl_header'"'
10369 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
10375 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
10377 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
10379 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10380 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10381 gl_next_as_first_directive
='<'sys
/stat.h
'>'
10383 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10384 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
10386 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
10395 WINDOWS_STAT_TIMESPEC
=0
10404 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
10405 #include <sys/stat.h>
10407 if test "x$ac_cv_type_nlink_t" = xyes
; then :
10411 $as_echo "#define nlink_t int" >>confdefs.h
10426 for ac_header
in sdkddkver.h
10428 ac_fn_c_check_header_mongrel
"$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
10429 if test "x$ac_cv_header_sdkddkver_h" = xyes
; then :
10430 cat >>confdefs.h
<<_ACEOF
10431 #define HAVE_SDKDDKVER_H 1
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
10446 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
10447 if ${gl_cv_func_getcwd_null+:} false
; then :
10448 $as_echo_n "(cached) " >&6
10450 if test "$cross_compiling" = yes; then :
10452 # Guess yes on glibc systems.
10453 *-gnu* | gnu
*) gl_cv_func_getcwd_null
="guessing yes";;
10454 # Guess yes on musl systems.
10455 *-musl*) gl_cv_func_getcwd_null
="guessing yes";;
10456 # Guess yes on Cygwin.
10457 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
10458 # If we don't know, obey --enable-cross-guesses.
10459 *) gl_cv_func_getcwd_null
="$gl_cross_guess_normal";;
10463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10466 # include <stdlib.h>
10468 # include <unistd.h>
10469 # else /* on Windows with MSVC */
10470 # include <direct.h>
10484 #if defined _WIN32 && ! defined __CYGWIN__
10485 /* mingw cwd does not start with '/', but _getcwd does allocate.
10486 However, mingw fails to honor non-zero size. */
10488 if (chdir ("/") != 0)
10492 char *f = getcwd (NULL, 0);
10496 { free (f); return 3; }
10498 { free (f); return 4; }
10508 if ac_fn_c_try_run
"$LINENO"; then :
10509 gl_cv_func_getcwd_null
=yes
10511 gl_cv_func_getcwd_null
=no
10513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
10519 $as_echo "$gl_cv_func_getcwd_null" >&6; }
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
10523 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
10524 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
10525 $as_echo_n "(cached) " >&6
10527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h. */
10529 #include <unistd.h>
10541 char *getcwd (char *, size_t);
10548 if ac_fn_c_try_compile
"$LINENO"; then :
10549 gl_cv_func_getcwd_posix_signature
=yes
10551 gl_cv_func_getcwd_posix_signature
=no
10553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
10557 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
10559 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
10560 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
10566 cat >>confdefs.h
<<_ACEOF
10567 #define HAVE_DECL_GETCWD $ac_have_decl
10579 GNULIB_FPRINTF_POSIX
=0;
10595 GNULIB_OBSTACK_PRINTF
=0;
10596 GNULIB_OBSTACK_PRINTF_POSIX
=0;
10601 GNULIB_PRINTF_POSIX
=0;
10610 GNULIB_SPRINTF_POSIX
=0;
10611 GNULIB_STDIO_H_NONBLOCKING
=0;
10612 GNULIB_STDIO_H_SIGPIPE
=0;
10614 GNULIB_VASPRINTF
=0;
10619 GNULIB_VFPRINTF_POSIX
=0;
10621 GNULIB_VPRINTF_POSIX
=0;
10622 GNULIB_VSNPRINTF
=0;
10623 GNULIB_VSPRINTF_POSIX
=0;
10624 GNULIB_MDA_FCLOSEALL
=1;
10625 GNULIB_MDA_FDOPEN
=1;
10626 GNULIB_MDA_FILENO
=1;
10629 GNULIB_MDA_TEMPNAM
=1;
10630 HAVE_DECL_FCLOSEALL
=1;
10631 HAVE_DECL_FPURGE
=1;
10632 HAVE_DECL_FSEEKO
=1;
10633 HAVE_DECL_FTELLO
=1;
10634 HAVE_DECL_GETDELIM
=1;
10635 HAVE_DECL_GETLINE
=1;
10636 HAVE_DECL_OBSTACK_PRINTF
=1;
10637 HAVE_DECL_SNPRINTF
=1;
10638 HAVE_DECL_VSNPRINTF
=1;
10659 REPLACE_GETDELIM
=0;
10661 REPLACE_OBSTACK_PRINTF
=0;
10667 REPLACE_RENAMEAT
=0;
10668 REPLACE_SNPRINTF
=0;
10670 REPLACE_STDIO_READ_FUNCS
=0;
10671 REPLACE_STDIO_WRITE_FUNCS
=0;
10673 REPLACE_VASPRINTF
=0;
10674 REPLACE_VDPRINTF
=0;
10675 REPLACE_VFPRINTF
=0;
10677 REPLACE_VSNPRINTF
=0;
10678 REPLACE_VSPRINTF
=0;
10680 ac_fn_c_check_decl
"$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
10681 if test "x$ac_cv_have_decl_getdelim" = xyes
; then :
10687 cat >>confdefs.h
<<_ACEOF
10688 #define HAVE_DECL_GETDELIM $ac_have_decl
10695 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
10696 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
10702 cat >>confdefs.h
<<_ACEOF
10703 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
10706 ac_fn_c_check_decl
"$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
10707 if test "x$ac_cv_have_decl_getline" = xyes
; then :
10713 cat >>confdefs.h
<<_ACEOF
10714 #define HAVE_DECL_GETLINE $ac_have_decl
10717 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
10718 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
10724 cat >>confdefs.h
<<_ACEOF
10725 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
10730 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
10731 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
10737 cat >>confdefs.h
<<_ACEOF
10738 #define HAVE_DECL_GETLOGIN $ac_have_decl
10745 LIB_GETLOGIN
='-ladvapi32' ;;
10756 GNULIB_GETRANDOM
=0;
10758 REPLACE_GETRANDOM
=0;
10763 GNULIB_GETTIMEOFDAY
=0;
10764 HAVE_GETTIMEOFDAY
=1;
10765 HAVE_STRUCT_TIMEVAL
=1;
10767 REPLACE_GETTIMEOFDAY
=0;
10768 REPLACE_STRUCT_TIMEVAL
=0;
10785 if test $gl_cv_have_include_next = yes; then
10786 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
10789 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10790 if ${gl_cv_next_sys_time_h+:} false
; then :
10791 $as_echo_n "(cached) " >&6
10794 if test $ac_cv_header_sys_time_h = yes; then
10799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801 #include <sys/time.h>
10804 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10805 *) gl_absname_cpp
="$ac_cpp" ;;
10810 gl_dirsep_regex
='[/\\]'
10813 gl_dirsep_regex
='\/'
10816 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10817 gl_header_literal_regex
=`echo 'sys/time.h' \
10818 | sed -e "$gl_make_literal_regex_sed"`
10819 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10820 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10826 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10827 sed -n "$gl_absolute_header_sed"`
10829 gl_header
=$gl_cv_absolute_sys_time_h
10830 gl_cv_next_sys_time_h
='"'$gl_header'"'
10832 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
10838 $as_echo "$gl_cv_next_sys_time_h" >&6; }
10840 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
10842 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10844 gl_next_as_first_directive
='<'sys
/time.h
'>'
10846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10847 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
10849 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
10855 if test $ac_cv_header_sys_time_h != yes; then
10863 if test $ac_cv_header_sys_socket_h != yes; then
10864 for ac_header
in winsock2.h
10866 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10867 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10868 cat >>confdefs.h
<<_ACEOF
10869 #define HAVE_WINSOCK2_H 1
10877 if test "$ac_cv_header_winsock2_h" = yes; then
10879 UNISTD_H_HAVE_WINSOCK2_H
=1
10880 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10887 $as_echo_n "checking for struct timeval... " >&6; }
10888 if ${gl_cv_sys_struct_timeval+:} false
; then :
10889 $as_echo_n "(cached) " >&6
10891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893 #if HAVE_SYS_TIME_H
10894 #include <sys/time.h>
10897 #if HAVE_WINSOCK2_H
10898 # include <winsock2.h>
10904 static struct timeval x; x.tv_sec = x.tv_usec;
10909 if ac_fn_c_try_compile
"$LINENO"; then :
10910 gl_cv_sys_struct_timeval
=yes
10912 gl_cv_sys_struct_timeval
=no
10914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10918 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10919 if test $gl_cv_sys_struct_timeval != yes; then
10920 HAVE_STRUCT_TIMEVAL
=0
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10923 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10924 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
10925 $as_echo_n "(cached) " >&6
10927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10929 #if HAVE_SYS_TIME_H
10930 #include <sys/time.h>
10933 #if HAVE_WINSOCK2_H
10934 # include <winsock2.h>
10940 static struct timeval x;
10941 typedef int verify_tv_sec_type[
10942 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10949 if ac_fn_c_try_compile
"$LINENO"; then :
10950 gl_cv_sys_struct_timeval_tv_sec
=yes
10952 gl_cv_sys_struct_timeval_tv_sec
=no
10954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10958 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10959 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10960 REPLACE_STRUCT_TIMEVAL
=1
10976 HAVE_GLOB_PATTERN_P
=1;
10978 REPLACE_GLOB_PATTERN_P
=0;
10996 if test $gl_cv_have_include_next = yes; then
10997 gl_cv_next_glob_h
='<'glob.h
'>'
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <glob.h>" >&5
11000 $as_echo_n "checking absolute name of <glob.h>... " >&6; }
11001 if ${gl_cv_next_glob_h+:} false
; then :
11002 $as_echo_n "(cached) " >&6
11005 if test $ac_cv_header_glob_h = yes; then
11010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11011 /* end confdefs.h. */
11015 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11016 *) gl_absname_cpp
="$ac_cpp" ;;
11021 gl_dirsep_regex
='[/\\]'
11024 gl_dirsep_regex
='\/'
11027 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11028 gl_header_literal_regex
=`echo 'glob.h' \
11029 | sed -e "$gl_make_literal_regex_sed"`
11030 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11031 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11037 gl_cv_absolute_glob_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11038 sed -n "$gl_absolute_header_sed"`
11040 gl_header
=$gl_cv_absolute_glob_h
11041 gl_cv_next_glob_h
='"'$gl_header'"'
11043 gl_cv_next_glob_h
='<'glob.h
'>'
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_glob_h" >&5
11049 $as_echo "$gl_cv_next_glob_h" >&6; }
11051 NEXT_GLOB_H
=$gl_cv_next_glob_h
11053 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11054 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11055 gl_next_as_first_directive
='<'glob.h
'>'
11057 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11058 gl_next_as_first_directive
=$gl_cv_next_glob_h
11060 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
=$gl_next_as_first_directive
11066 if test $ac_cv_header_glob_h = yes; then
11077 if test $ac_cv_header_glob_h != yes; then
11083 if test -n "$GLOB_H"; then
11084 GL_GENERATE_GLOB_H_TRUE
=
11085 GL_GENERATE_GLOB_H_FALSE
='#'
11087 GL_GENERATE_GLOB_H_TRUE
='#'
11088 GL_GENERATE_GLOB_H_FALSE
=
11106 if test -z "$gl_pthreadlib_body_done"; then
11110 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
11111 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
11112 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11113 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11114 gl_have_pthread_h
=yes
11116 gl_have_pthread_h
=no
11120 if test "$gl_have_pthread_h" = yes; then
11121 # Other possible tests:
11122 # -lpthreads (FSU threads, PCthreads)
11124 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
11125 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
11126 # the second one only in libpthread, and lock.c needs it.
11128 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
11129 # needs -pthread for some reason. See:
11130 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
11132 for gl_pthread
in '' '-pthread'; do
11133 LIBS
="$LIBS $gl_pthread"
11134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11136 #include <pthread.h>
11138 pthread_mutexattr_t ma;
11143 pthread_mutex_lock (&m);
11144 pthread_mutexattr_init (&ma);
11149 if ac_fn_c_try_link
"$LINENO"; then :
11151 LIBPTHREAD
=$gl_pthread
11152 LIBPMULTITHREAD
=$gl_pthread
11154 rm -f core conftest.err conftest.
$ac_objext \
11155 conftest
$ac_exeext conftest.
$ac_ext
11157 test $gl_pthread_api = yes && break
11160 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
11161 # since it is defined as a macro on OSF/1.)
11162 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
11163 # The program links fine without libpthread. But it may actually
11164 # need to link with libpthread in order to create multiple threads.
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11166 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11167 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
11168 $as_echo_n "(cached) " >&6
11170 ac_check_lib_save_LIBS
=$LIBS
11171 LIBS
="-lpthread $LIBS"
11172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h. */
11175 /* Override any GCC internal prototype to avoid an error.
11176 Use char because int might match the return type of a GCC
11177 builtin and then its argument prototype would still apply. */
11181 char pthread_kill ();
11185 return pthread_kill ();
11190 if ac_fn_c_try_link
"$LINENO"; then :
11191 ac_cv_lib_pthread_pthread_kill
=yes
11193 ac_cv_lib_pthread_pthread_kill
=no
11195 rm -f core conftest.err conftest.
$ac_objext \
11196 conftest
$ac_exeext conftest.
$ac_ext
11197 LIBS
=$ac_check_lib_save_LIBS
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11200 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11201 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
11202 LIBPMULTITHREAD
=-lpthread
11203 # On Solaris and HP-UX, most pthread functions exist also in libc.
11204 # Therefore pthread_in_use() needs to actually try to create a
11205 # thread: pthread_create from libc will fail, whereas
11206 # pthread_create will actually create a thread.
11207 # On Solaris 10 or newer, this test is no longer needed, because
11208 # libc contains the fully functional pthread functions.
11210 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
11212 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
11218 elif test $gl_pthread_api != yes; then
11219 # Some library is needed. Try libpthread and libc_r.
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11221 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11222 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
11223 $as_echo_n "(cached) " >&6
11225 ac_check_lib_save_LIBS
=$LIBS
11226 LIBS
="-lpthread $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 pthread_kill ();
11240 return pthread_kill ();
11245 if ac_fn_c_try_link
"$LINENO"; then :
11246 ac_cv_lib_pthread_pthread_kill
=yes
11248 ac_cv_lib_pthread_pthread_kill
=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_pthread_pthread_kill" >&5
11255 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11256 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
11258 LIBPTHREAD
=-lpthread
11259 LIBPMULTITHREAD
=-lpthread
11262 if test $gl_pthread_api != yes; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
11265 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
11266 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
11267 $as_echo_n "(cached) " >&6
11269 ac_check_lib_save_LIBS
=$LIBS
11271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11274 /* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11280 char pthread_kill ();
11284 return pthread_kill ();
11289 if ac_fn_c_try_link
"$LINENO"; then :
11290 ac_cv_lib_c_r_pthread_kill
=yes
11292 ac_cv_lib_c_r_pthread_kill
=no
11294 rm -f core conftest.err conftest.
$ac_objext \
11295 conftest
$ac_exeext conftest.
$ac_ext
11296 LIBS
=$ac_check_lib_save_LIBS
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
11299 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
11300 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
11303 LIBPMULTITHREAD
=-lc_r
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
11310 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
11312 $as_echo "$gl_pthread_api" >&6; }
11315 if test $gl_pthread_api = yes; then
11317 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
11321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11332 if ac_fn_c_try_link
"$LINENO"; then :
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
11337 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
11338 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
11339 $as_echo_n "(cached) " >&6
11341 ac_check_lib_save_LIBS
=$LIBS
11343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11352 char sched_yield ();
11356 return sched_yield ();
11361 if ac_fn_c_try_link
"$LINENO"; then :
11362 ac_cv_lib_rt_sched_yield
=yes
11364 ac_cv_lib_rt_sched_yield
=no
11366 rm -f core conftest.err conftest.
$ac_objext \
11367 conftest
$ac_exeext conftest.
$ac_ext
11368 LIBS
=$ac_check_lib_save_LIBS
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
11371 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
11372 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
11373 LIB_SCHED_YIELD
=-lrt
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
11376 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
11377 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
11378 $as_echo_n "(cached) " >&6
11380 ac_check_lib_save_LIBS
=$LIBS
11381 LIBS
="-lposix4 $LIBS"
11382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11385 /* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11391 char sched_yield ();
11395 return sched_yield ();
11400 if ac_fn_c_try_link
"$LINENO"; then :
11401 ac_cv_lib_posix4_sched_yield
=yes
11403 ac_cv_lib_posix4_sched_yield
=no
11405 rm -f core conftest.err conftest.
$ac_objext \
11406 conftest
$ac_exeext conftest.
$ac_ext
11407 LIBS
=$ac_check_lib_save_LIBS
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
11410 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
11411 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
11412 LIB_SCHED_YIELD
=-lposix4
11419 rm -f core conftest.err conftest.
$ac_objext \
11420 conftest
$ac_exeext conftest.
$ac_ext
11423 gl_pthreadlib_body_done
=done
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
11435 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
11436 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
11437 $as_echo_n "(cached) " >&6
11440 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
11441 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
11442 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
11443 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
11444 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
11445 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
11446 # If we don't know, obey --enable-cross-guesses.
11448 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
11453 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
11457 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
11458 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
11462 case "$gl_cv_func_setlocale_null_all_mtsafe" in
11463 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
11464 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
11467 cat >>confdefs.h
<<_ACEOF
11468 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
11473 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
11474 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
11475 $as_echo_n "(cached) " >&6
11478 # Guess no on OpenBSD, AIX.
11480 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
11481 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
11482 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
11483 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
11484 # If we don't know, obey --enable-cross-guesses.
11486 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
11491 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
11495 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
11496 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
11500 case "$gl_cv_func_setlocale_null_one_mtsafe" in
11501 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
11502 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
11505 cat >>confdefs.h
<<_ACEOF
11506 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
11510 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
11512 mingw
*) LIB_SETLOCALE_NULL
= ;;
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
11517 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
11518 if ${gl_cv_have_weak+:} false
; then :
11519 $as_echo_n "(cached) " >&6
11522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524 extern void xyzzy ();
11534 if ac_fn_c_try_link
"$LINENO"; then :
11535 gl_cv_have_weak
=maybe
11537 rm -f core conftest.err conftest.
$ac_objext \
11538 conftest
$ac_exeext conftest.
$ac_ext
11539 if test $gl_cv_have_weak = maybe
; then
11540 if test "$cross_compiling" = yes; then :
11541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11544 Extensible Linking Format
11548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11549 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
11550 gl_cv_have_weak
="guessing yes"
11552 gl_cv_have_weak
="guessing no"
11558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11565 return (fputs == NULL);
11568 if ac_fn_c_try_run
"$LINENO"; then :
11569 gl_cv_have_weak
=yes
11573 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11574 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11578 case " $LDFLAGS " in
11579 *" -static "*) gl_cv_have_weak
=no
;;
11581 case "$gl_cv_have_weak" in
11584 freebsd
* | dragonfly
*)
11586 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
11587 cat <<EOF > conftest2.c
11588 #include <pthread.h>
11589 #pragma weak pthread_mutexattr_gettype
11592 return (pthread_mutexattr_gettype != NULL);
11595 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
11596 || gl_cv_have_weak
=no
11597 rm -f conftest1.c libempty.so conftest2.c conftest
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
11605 $as_echo "$gl_cv_have_weak" >&6; }
11606 case "$gl_cv_have_weak" in
11609 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
11614 case "$gl_cv_have_weak" in
11615 *yes) LIB_SETLOCALE_NULL
= ;;
11616 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
11621 LIB_SETLOCALE_NULL
=
11632 GNULIB_GETPEERNAME
=0;
11633 GNULIB_GETSOCKNAME
=0;
11634 GNULIB_GETSOCKOPT
=0;
11640 GNULIB_SETSOCKOPT
=0;
11643 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
11644 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
11646 HAVE_SA_FAMILY_T
=1;
11656 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
11662 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
11663 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
11664 $as_echo_n "(cached) " >&6
11667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669 #include <sys/socket.h>
11678 if ac_fn_c_try_compile
"$LINENO"; then :
11679 gl_cv_header_sys_socket_h_selfcontained
=yes
11681 gl_cv_header_sys_socket_h_selfcontained
=no
11683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
11687 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
11688 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
11689 for ac_func
in shutdown
11691 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
11692 if test "x$ac_cv_func_shutdown" = xyes
; then :
11693 cat >>confdefs.h
<<_ACEOF
11694 #define HAVE_SHUTDOWN 1
11700 if test $ac_cv_func_shutdown = yes; then
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
11702 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
11703 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
11704 $as_echo_n "(cached) " >&6
11707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709 #include <sys/socket.h>
11713 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
11718 if ac_fn_c_try_compile
"$LINENO"; then :
11719 gl_cv_header_sys_socket_h_shut
=yes
11721 gl_cv_header_sys_socket_h_shut
=no
11723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
11727 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
11728 if test $gl_cv_header_sys_socket_h_shut = no
; then
11729 SYS_SOCKET_H
='sys/socket.h'
11733 # We need to check for ws2tcpip.h now.
11745 if test $gl_cv_have_include_next = yes; then
11746 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
11749 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
11750 if ${gl_cv_next_sys_socket_h+:} false
; then :
11751 $as_echo_n "(cached) " >&6
11754 if test $ac_cv_header_sys_socket_h = yes; then
11759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11761 #include <sys/socket.h>
11764 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11765 *) gl_absname_cpp
="$ac_cpp" ;;
11770 gl_dirsep_regex
='[/\\]'
11773 gl_dirsep_regex
='\/'
11776 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11777 gl_header_literal_regex
=`echo 'sys/socket.h' \
11778 | sed -e "$gl_make_literal_regex_sed"`
11779 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11780 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11786 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11787 sed -n "$gl_absolute_header_sed"`
11789 gl_header
=$gl_cv_absolute_sys_socket_h
11790 gl_cv_next_sys_socket_h
='"'$gl_header'"'
11792 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
11798 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
11800 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
11802 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11803 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11804 gl_next_as_first_directive
='<'sys
/socket.h
'>'
11806 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11807 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
11809 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
11814 if test $ac_cv_header_sys_socket_h = yes; then
11815 HAVE_SYS_SOCKET_H
=1
11817 HAVE_SYS_SOCKET_H
=0
11822 if test $ac_cv_header_sys_socket_h = yes; then
11825 if test $ac_cv_header_ws2tcpip_h = yes; then
11834 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
11835 /* sys/types.h is not needed according to POSIX, but the
11836 sys/socket.h in i386-unknown-freebsd4.10 and
11837 powerpc-apple-darwin5.5 required it. */
11838 #include <sys/types.h>
11839 #ifdef HAVE_SYS_SOCKET_H
11840 #include <sys/socket.h>
11842 #ifdef HAVE_WS2TCPIP_H
11843 #include <ws2tcpip.h>
11847 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
11849 cat >>confdefs.h
<<_ACEOF
11850 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11855 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
11856 /* sys/types.h is not needed according to POSIX, but the
11857 sys/socket.h in i386-unknown-freebsd4.10 and
11858 powerpc-apple-darwin5.5 required it. */
11859 #include <sys/types.h>
11860 #ifdef HAVE_SYS_SOCKET_H
11861 #include <sys/socket.h>
11863 #ifdef HAVE_WS2TCPIP_H
11864 #include <ws2tcpip.h>
11868 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
11870 cat >>confdefs.h
<<_ACEOF
11871 #define HAVE_SA_FAMILY_T 1
11877 if test $ac_cv_type_struct_sockaddr_storage = no
; then
11878 HAVE_STRUCT_SOCKADDR_STORAGE
=0
11880 if test $ac_cv_type_sa_family_t = no
; then
11883 if test $ac_cv_type_struct_sockaddr_storage != no
; then
11884 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
11885 #ifdef HAVE_SYS_SOCKET_H
11886 #include <sys/socket.h>
11888 #ifdef HAVE_WS2TCPIP_H
11889 #include <ws2tcpip.h>
11893 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
11895 cat >>confdefs.h
<<_ACEOF
11896 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11901 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
11905 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
11906 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
11907 SYS_SOCKET_H
='sys/socket.h'
11913 if test $ac_cv_header_sys_socket_h != yes; then
11914 for ac_header
in winsock2.h
11916 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11917 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
11918 cat >>confdefs.h
<<_ACEOF
11919 #define HAVE_WINSOCK2_H 1
11927 if test "$ac_cv_header_winsock2_h" = yes; then
11929 UNISTD_H_HAVE_WINSOCK2_H
=1
11930 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
11950 $as_echo_n "checking for IPv4 sockets... " >&6; }
11951 if ${gl_cv_socket_ipv4+:} false
; then :
11952 $as_echo_n "(cached) " >&6
11954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956 #include <sys/types.h>
11957 #ifdef HAVE_SYS_SOCKET_H
11958 #include <sys/socket.h>
11960 #ifdef HAVE_NETINET_IN_H
11961 #include <netinet/in.h>
11963 #ifdef HAVE_WINSOCK2_H
11964 #include <winsock2.h>
11969 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
11970 if (&x && &y && &z) return 0;
11975 if ac_fn_c_try_compile
"$LINENO"; then :
11976 gl_cv_socket_ipv4
=yes
11978 gl_cv_socket_ipv4
=no
11980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
11983 $as_echo "$gl_cv_socket_ipv4" >&6; }
11984 if test $gl_cv_socket_ipv4 = yes; then
11986 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
11991 $as_echo_n "checking for IPv6 sockets... " >&6; }
11992 if ${gl_cv_socket_ipv6+:} false
; then :
11993 $as_echo_n "(cached) " >&6
11995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11997 #include <sys/types.h>
11998 #ifdef HAVE_SYS_SOCKET_H
11999 #include <sys/socket.h>
12001 #ifdef HAVE_NETINET_IN_H
12002 #include <netinet/in.h>
12004 #ifdef HAVE_WINSOCK2_H
12005 #include <winsock2.h>
12007 #ifdef HAVE_WS2TCPIP_H
12008 #include <ws2tcpip.h>
12013 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
12014 if (&x && &y && &z) return 0;
12019 if ac_fn_c_try_compile
"$LINENO"; then :
12020 gl_cv_socket_ipv6
=yes
12022 gl_cv_socket_ipv6
=no
12024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
12027 $as_echo "$gl_cv_socket_ipv6" >&6; }
12028 if test $gl_cv_socket_ipv6 = yes; then
12030 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
12046 if test $gl_cv_have_include_next = yes; then
12047 gl_cv_next_limits_h
='<'limits.h
'>'
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
12050 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
12051 if ${gl_cv_next_limits_h+:} false
; then :
12052 $as_echo_n "(cached) " >&6
12055 if test $ac_cv_header_limits_h = yes; then
12060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12062 #include <limits.h>
12065 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12066 *) gl_absname_cpp
="$ac_cpp" ;;
12071 gl_dirsep_regex
='[/\\]'
12074 gl_dirsep_regex
='\/'
12077 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12078 gl_header_literal_regex
=`echo 'limits.h' \
12079 | sed -e "$gl_make_literal_regex_sed"`
12080 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12081 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12087 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12088 sed -n "$gl_absolute_header_sed"`
12090 gl_header
=$gl_cv_absolute_limits_h
12091 gl_cv_next_limits_h
='"'$gl_header'"'
12093 gl_cv_next_limits_h
='<'limits.h
'>'
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
12099 $as_echo "$gl_cv_next_limits_h" >&6; }
12101 NEXT_LIMITS_H
=$gl_cv_next_limits_h
12103 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12104 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12105 gl_next_as_first_directive
='<'limits.h
'>'
12107 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12108 gl_next_as_first_directive
=$gl_cv_next_limits_h
12110 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
12117 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
12118 if ${gl_cv_header_limits_width+:} false
; then :
12119 $as_echo_n "(cached) " >&6
12121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12124 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12126 #include <limits.h>
12127 long long llm = LLONG_MAX;
12129 int ullw = ULLONG_WIDTH;
12139 if ac_fn_c_try_compile
"$LINENO"; then :
12140 gl_cv_header_limits_width
=yes
12142 gl_cv_header_limits_width
=no
12144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
12147 $as_echo "$gl_cv_header_limits_width" >&6; }
12148 if test "$gl_cv_header_limits_width" = yes; then
12154 if test -n "$LIMITS_H"; then
12155 GL_GENERATE_LIMITS_H_TRUE
=
12156 GL_GENERATE_LIMITS_H_FALSE
='#'
12158 GL_GENERATE_LIMITS_H_TRUE
='#'
12159 GL_GENERATE_LIMITS_H_FALSE
=
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12165 $as_echo_n "checking for wint_t... " >&6; }
12166 if ${gt_cv_c_wint_t+:} false
; then :
12167 $as_echo_n "(cached) " >&6
12169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h. */
12172 wint_t foo = (wchar_t)'\0';
12181 if ac_fn_c_try_compile
"$LINENO"; then :
12186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12189 $as_echo "$gt_cv_c_wint_t" >&6; }
12190 if test $gt_cv_c_wint_t = yes; then
12192 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
12196 $as_echo_n "checking whether wint_t is large enough... " >&6; }
12197 if ${gl_cv_type_wint_t_large_enough+:} false
; then :
12198 $as_echo_n "(cached) " >&6
12200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12203 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
12213 if ac_fn_c_try_compile
"$LINENO"; then :
12214 gl_cv_type_wint_t_large_enough
=yes
12216 gl_cv_type_wint_t_large_enough
=no
12218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
12221 $as_echo "$gl_cv_type_wint_t_large_enough" >&6; }
12222 if test $gl_cv_type_wint_t_large_enough = no
; then
12223 GNULIB_OVERRIDES_WINT_T
=1
12225 GNULIB_OVERRIDES_WINT_T
=0
12228 GNULIB_OVERRIDES_WINT_T
=0
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
12240 $as_echo_n "checking whether the compiler produces multi-arch binaries... " >&6; }
12241 if ${gl_cv_c_multiarch+:} false
; then :
12242 $as_echo_n "(cached) " >&6
12244 gl_cv_c_multiarch
=no
12245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247 #ifndef __APPLE_CC__
12248 not a universal capable compiler
12253 if ac_fn_c_try_compile
"$LINENO"; then :
12257 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12258 if test -n "$prev"; then
12260 i?
86 | x86_64 | ppc | ppc64 | arm | arm64
)
12261 if test -z "$arch" ||
test "$arch" = "$word"; then
12264 gl_cv_c_multiarch
=yes
12270 if test "x$word" = "x-arch"; then
12277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
12281 $as_echo "$gl_cv_c_multiarch" >&6; }
12282 if test $gl_cv_c_multiarch = yes; then
12283 APPLE_UNIVERSAL_BUILD
=1
12285 APPLE_UNIVERSAL_BUILD
=0
12295 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12298 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12302 if test $ac_cv_header_wchar_h = yes; then
12310 if test $ac_cv_header_inttypes_h = yes; then
12318 if test $ac_cv_header_sys_types_h = yes; then
12334 if test $gl_cv_have_include_next = yes; then
12335 gl_cv_next_stdint_h
='<'stdint.h
'>'
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
12338 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
12339 if ${gl_cv_next_stdint_h+:} false
; then :
12340 $as_echo_n "(cached) " >&6
12343 if test $ac_cv_header_stdint_h = yes; then
12348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12350 #include <stdint.h>
12353 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12354 *) gl_absname_cpp
="$ac_cpp" ;;
12359 gl_dirsep_regex
='[/\\]'
12362 gl_dirsep_regex
='\/'
12365 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12366 gl_header_literal_regex
=`echo 'stdint.h' \
12367 | sed -e "$gl_make_literal_regex_sed"`
12368 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12369 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12375 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12376 sed -n "$gl_absolute_header_sed"`
12378 gl_header
=$gl_cv_absolute_stdint_h
12379 gl_cv_next_stdint_h
='"'$gl_header'"'
12381 gl_cv_next_stdint_h
='<'stdint.h
'>'
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
12387 $as_echo "$gl_cv_next_stdint_h" >&6; }
12389 NEXT_STDINT_H
=$gl_cv_next_stdint_h
12391 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12392 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12393 gl_next_as_first_directive
='<'stdint.h
'>'
12395 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12396 gl_next_as_first_directive
=$gl_cv_next_stdint_h
12398 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
12403 if test $ac_cv_header_stdint_h = yes; then
12410 if test $ac_cv_header_stdint_h = yes; then
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
12412 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
12413 if ${gl_cv_header_working_stdint_h+:} false
; then :
12414 $as_echo_n "(cached) " >&6
12416 gl_cv_header_working_stdint_h
=no
12417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12421 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12422 #define __STDC_CONSTANT_MACROS 1
12423 #define __STDC_LIMIT_MACROS 1
12424 #include <stdint.h>
12425 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
12426 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12427 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12431 #include <stddef.h>
12432 #include <signal.h>
12434 # include <wchar.h>
12439 int8_t a1 = INT8_MAX;
12440 int8_t a1min = INT8_MIN;
12443 int16_t a2 = INT16_MAX;
12444 int16_t a2min = INT16_MIN;
12447 int32_t a3 = INT32_MAX;
12448 int32_t a3min = INT32_MIN;
12451 int64_t a4 = INT64_MAX;
12452 int64_t a4min = INT64_MIN;
12455 uint8_t b1 = UINT8_MAX;
12457 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12460 uint16_t b2 = UINT16_MAX;
12463 uint32_t b3 = UINT32_MAX;
12466 uint64_t b4 = UINT64_MAX;
12468 int_least8_t c1 = INT8_C (0x7f);
12469 int_least8_t c1max = INT_LEAST8_MAX;
12470 int_least8_t c1min = INT_LEAST8_MIN;
12471 int_least16_t c2 = INT16_C (0x7fff);
12472 int_least16_t c2max = INT_LEAST16_MAX;
12473 int_least16_t c2min = INT_LEAST16_MIN;
12474 int_least32_t c3 = INT32_C (0x7fffffff);
12475 int_least32_t c3max = INT_LEAST32_MAX;
12476 int_least32_t c3min = INT_LEAST32_MIN;
12477 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
12478 int_least64_t c4max = INT_LEAST64_MAX;
12479 int_least64_t c4min = INT_LEAST64_MIN;
12480 uint_least8_t d1 = UINT8_C (0xff);
12481 uint_least8_t d1max = UINT_LEAST8_MAX;
12482 uint_least16_t d2 = UINT16_C (0xffff);
12483 uint_least16_t d2max = UINT_LEAST16_MAX;
12484 uint_least32_t d3 = UINT32_C (0xffffffff);
12485 uint_least32_t d3max = UINT_LEAST32_MAX;
12486 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
12487 uint_least64_t d4max = UINT_LEAST64_MAX;
12488 int_fast8_t e1 = INT_FAST8_MAX;
12489 int_fast8_t e1min = INT_FAST8_MIN;
12490 int_fast16_t e2 = INT_FAST16_MAX;
12491 int_fast16_t e2min = INT_FAST16_MIN;
12492 int_fast32_t e3 = INT_FAST32_MAX;
12493 int_fast32_t e3min = INT_FAST32_MIN;
12494 int_fast64_t e4 = INT_FAST64_MAX;
12495 int_fast64_t e4min = INT_FAST64_MIN;
12496 uint_fast8_t f1 = UINT_FAST8_MAX;
12497 uint_fast16_t f2 = UINT_FAST16_MAX;
12498 uint_fast32_t f3 = UINT_FAST32_MAX;
12499 uint_fast64_t f4 = UINT_FAST64_MAX;
12501 intptr_t g = INTPTR_MAX;
12502 intptr_t gmin = INTPTR_MIN;
12505 uintptr_t h = UINTPTR_MAX;
12507 intmax_t i = INTMAX_MAX;
12508 uintmax_t j = UINTMAX_MAX;
12510 /* Check that SIZE_MAX has the correct type, if possible. */
12511 #if 201112 <= __STDC_VERSION__
12512 int k = _Generic (SIZE_MAX, size_t: 0);
12513 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
12514 || (0x5110 <= __SUNPRO_C && !__STDC__))
12516 extern __typeof__ (SIZE_MAX) k;
12519 #include <limits.h> /* for CHAR_BIT */
12520 #define TYPE_MINIMUM(t) \
12521 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
12522 #define TYPE_MAXIMUM(t) \
12523 ((t) ((t) 0 < (t) -1 \
12525 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
12528 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
12529 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
12531 /* Detect bug in FreeBSD 6.0 / ia64. */
12532 int check_SIG_ATOMIC:
12533 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
12534 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
12536 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
12538 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
12539 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
12541 /* Detect bug in mingw. */
12543 WINT_MIN == TYPE_MINIMUM (wint_t)
12544 && WINT_MAX == TYPE_MAXIMUM (wint_t)
12547 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
12549 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
12550 int check_UINT16_C:
12551 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
12553 /* Detect bugs in OpenBSD 3.9 stdint.h. */
12555 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
12558 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
12561 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
12564 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
12566 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
12567 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
12568 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
12569 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
12570 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
12571 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
12572 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
12573 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
12574 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
12575 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
12576 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12587 if ac_fn_c_try_compile
"$LINENO"; then :
12588 if test "$cross_compiling" = yes; then :
12590 # Guess yes on native Windows.
12591 mingw
*) gl_cv_header_working_stdint_h
="guessing yes" ;;
12592 # In general, assume it works.
12593 *) gl_cv_header_working_stdint_h
="guessing yes" ;;
12597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12601 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12602 #define __STDC_CONSTANT_MACROS 1
12603 #define __STDC_LIMIT_MACROS 1
12604 #include <stdint.h>
12607 #include <stddef.h>
12608 #include <signal.h>
12610 # include <wchar.h>
12615 #include <string.h>
12616 #define MVAL(macro) MVAL1(macro)
12617 #define MVAL1(expression) #expression
12618 static const char *macro_values[] =
12652 for (mv = macro_values; *mv != NULL; mv++)
12654 const char *value = *mv;
12655 /* Test whether it looks like a cast expression. */
12656 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
12657 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
12658 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
12659 || strncmp (value, "((int)"/*)*/, 6) == 0
12660 || strncmp (value, "((signed short)"/*)*/, 15) == 0
12661 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
12662 return mv - macro_values + 1;
12670 if ac_fn_c_try_run
"$LINENO"; then :
12671 gl_cv_header_working_stdint_h
=yes
12673 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12674 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
12683 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
12686 HAVE_C99_STDINT_H
=0
12687 HAVE_SYS_BITYPES_H
=0
12688 HAVE_SYS_INTTYPES_H
=0
12690 case "$gl_cv_header_working_stdint_h" in
12692 HAVE_C99_STDINT_H
=1
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
12694 $as_echo_n "checking whether stdint.h works without ISO C predefines... " >&6; }
12695 if ${gl_cv_header_stdint_without_STDC_macros+:} false
; then :
12696 $as_echo_n "(cached) " >&6
12698 gl_cv_header_stdint_without_STDC_macros
=no
12699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12703 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12704 #include <stdint.h>
12707 #include <stddef.h>
12708 #include <signal.h>
12710 # include <wchar.h>
12714 intmax_t im = INTMAX_MAX;
12715 int32_t i32 = INT32_C (0x7fffffff);
12725 if ac_fn_c_try_compile
"$LINENO"; then :
12726 gl_cv_header_stdint_without_STDC_macros
=yes
12728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
12732 $as_echo "$gl_cv_header_stdint_without_STDC_macros" >&6; }
12734 if test $gl_cv_header_stdint_without_STDC_macros = no
; then
12736 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
12739 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
12743 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
12744 if ${gl_cv_header_stdint_width+:} false
; then :
12745 $as_echo_n "(cached) " >&6
12747 gl_cv_header_stdint_width
=no
12748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12751 /* Work if build is not clean. */
12752 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
12753 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12754 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12756 #include <stdint.h>
12758 #include <stddef.h>
12759 #include <signal.h>
12761 # include <wchar.h>
12764 int iw = UINTMAX_WIDTH;
12774 if ac_fn_c_try_compile
"$LINENO"; then :
12775 gl_cv_header_stdint_width
=yes
12777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
12780 $as_echo "$gl_cv_header_stdint_width" >&6; }
12781 if test "$gl_cv_header_stdint_width" = yes; then
12786 for ac_header
in sys
/inttypes.h sys
/bitypes.h
12788 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12789 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12790 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12791 cat >>confdefs.h
<<_ACEOF
12792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12799 if test $ac_cv_header_sys_inttypes_h = yes; then
12800 HAVE_SYS_INTTYPES_H
=1
12802 if test $ac_cv_header_sys_bitypes_h = yes; then
12803 HAVE_SYS_BITYPES_H
=1
12807 if test $APPLE_UNIVERSAL_BUILD = 0; then
12810 for gltype
in ptrdiff_t size_t
; do
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12812 $as_echo_n "checking for bit size of $gltype... " >&6; }
12813 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12814 $as_echo_n "(cached) " >&6
12816 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12817 #include <stddef.h>
12818 #include <signal.h>
12820 # include <wchar.h>
12823 #include <limits.h>"; then :
12829 eval gl_cv_bitsizeof_
${gltype}=\
$result
12832 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12834 $as_echo "$ac_res" >&6; }
12835 eval result
=\
$gl_cv_bitsizeof_${gltype}
12836 if test $result = unknown
; then
12839 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12840 cat >>confdefs.h
<<_ACEOF
12841 #define BITSIZEOF_${GLTYPE} $result
12844 eval BITSIZEOF_
${GLTYPE}=\
$result
12851 for gltype
in sig_atomic_t wchar_t wint_t
; do
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12853 $as_echo_n "checking for bit size of $gltype... " >&6; }
12854 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12855 $as_echo_n "(cached) " >&6
12857 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12858 #include <stddef.h>
12859 #include <signal.h>
12861 # include <wchar.h>
12864 #include <limits.h>"; then :
12870 eval gl_cv_bitsizeof_
${gltype}=\
$result
12873 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12875 $as_echo "$ac_res" >&6; }
12876 eval result
=\
$gl_cv_bitsizeof_${gltype}
12877 if test $result = unknown
; then
12880 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12881 cat >>confdefs.h
<<_ACEOF
12882 #define BITSIZEOF_${GLTYPE} $result
12885 eval BITSIZEOF_
${GLTYPE}=\
$result
12891 for gltype
in sig_atomic_t wchar_t wint_t
; do
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
12893 $as_echo_n "checking whether $gltype is signed... " >&6; }
12894 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
12895 $as_echo_n "(cached) " >&6
12897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12900 #include <stddef.h>
12901 #include <signal.h>
12903 # include <wchar.h>
12906 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12915 if ac_fn_c_try_compile
"$LINENO"; then :
12920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12921 eval gl_cv_type_
${gltype}_signed
=\
$result
12924 eval ac_res
=\
$gl_cv_type_${gltype}_signed
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12926 $as_echo "$ac_res" >&6; }
12927 eval result
=\
$gl_cv_type_${gltype}_signed
12928 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12929 if test "$result" = yes; then
12930 cat >>confdefs.h
<<_ACEOF
12931 #define HAVE_SIGNED_${GLTYPE} 1
12934 eval HAVE_SIGNED_
${GLTYPE}=1
12936 eval HAVE_SIGNED_
${GLTYPE}=0
12941 gl_cv_type_ptrdiff_t_signed
=yes
12942 gl_cv_type_size_t_signed
=no
12943 if test $APPLE_UNIVERSAL_BUILD = 0; then
12946 for gltype
in ptrdiff_t size_t
; do
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12948 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12949 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12950 $as_echo_n "(cached) " >&6
12952 eval gl_cv_type_
${gltype}_suffix
=no
12953 eval result
=\
$gl_cv_type_${gltype}_signed
12954 if test "$result" = yes; then
12959 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12961 '') gltype1
='int';;
12962 l
) gltype1
='long int';;
12963 ll
) gltype1
='long long int';;
12964 i64
) gltype1
='__int64';;
12965 u
) gltype1
='unsigned int';;
12966 ul
) gltype1
='unsigned long int';;
12967 ull
) gltype1
='unsigned long long int';;
12968 ui64
)gltype1
='unsigned __int64';;
12970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12973 #include <stddef.h>
12974 #include <signal.h>
12976 # include <wchar.h>
12979 extern $gltype foo;
12980 extern $gltype1 foo;
12989 if ac_fn_c_try_compile
"$LINENO"; then :
12990 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12993 eval result
=\
$gl_cv_type_${gltype}_suffix
12994 test "$result" != no
&& break
12997 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12999 $as_echo "$ac_res" >&6; }
13000 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13001 eval result
=\
$gl_cv_type_${gltype}_suffix
13002 test "$result" = no
&& result
=
13003 eval ${GLTYPE}_SUFFIX
=\
$result
13004 cat >>confdefs.h
<<_ACEOF
13005 #define ${GLTYPE}_SUFFIX $result
13014 for gltype
in sig_atomic_t wchar_t wint_t
; do
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
13016 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
13017 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
13018 $as_echo_n "(cached) " >&6
13020 eval gl_cv_type_
${gltype}_suffix
=no
13021 eval result
=\
$gl_cv_type_${gltype}_signed
13022 if test "$result" = yes; then
13027 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
13029 '') gltype1
='int';;
13030 l
) gltype1
='long int';;
13031 ll
) gltype1
='long long int';;
13032 i64
) gltype1
='__int64';;
13033 u
) gltype1
='unsigned int';;
13034 ul
) gltype1
='unsigned long int';;
13035 ull
) gltype1
='unsigned long long int';;
13036 ui64
)gltype1
='unsigned __int64';;
13038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13041 #include <stddef.h>
13042 #include <signal.h>
13044 # include <wchar.h>
13047 extern $gltype foo;
13048 extern $gltype1 foo;
13057 if ac_fn_c_try_compile
"$LINENO"; then :
13058 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
13060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13061 eval result
=\
$gl_cv_type_${gltype}_suffix
13062 test "$result" != no
&& break
13065 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13067 $as_echo "$ac_res" >&6; }
13068 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13069 eval result
=\
$gl_cv_type_${gltype}_suffix
13070 test "$result" = no
&& result
=
13071 eval ${GLTYPE}_SUFFIX
=\
$result
13072 cat >>confdefs.h
<<_ACEOF
13073 #define ${GLTYPE}_SUFFIX $result
13080 if test $GNULIB_OVERRIDES_WINT_T = 1; then
13081 BITSIZEOF_WINT_T
=32
13089 LIMITS_H
='limits.h'
13090 if test -n "$LIMITS_H"; then
13091 GL_GENERATE_LIMITS_H_TRUE
=
13092 GL_GENERATE_LIMITS_H_FALSE
='#'
13094 GL_GENERATE_LIMITS_H_TRUE
='#'
13095 GL_GENERATE_LIMITS_H_FALSE
=
13104 if test -n "$STDINT_H"; then
13105 GL_GENERATE_STDINT_H_TRUE
=
13106 GL_GENERATE_STDINT_H_FALSE
='#'
13108 GL_GENERATE_STDINT_H_TRUE
='#'
13109 GL_GENERATE_STDINT_H_FALSE
=
13116 GNULIB_STRTOIMAX
=0;
13117 GNULIB_STRTOUMAX
=0;
13118 HAVE_DECL_IMAXABS
=1;
13119 HAVE_DECL_IMAXDIV
=1;
13120 HAVE_DECL_STRTOIMAX
=1;
13121 HAVE_DECL_STRTOUMAX
=1;
13123 REPLACE_STRTOIMAX
=0;
13124 REPLACE_STRTOUMAX
=0;
13125 INT32_MAX_LT_INTMAX_MAX
=1;
13126 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
13127 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
13128 UINT32_MAX_LT_UINTMAX_MAX
=1;
13129 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
13145 if test $gl_cv_have_include_next = yes; then
13146 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
13149 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
13150 if ${gl_cv_next_inttypes_h+:} false
; then :
13151 $as_echo_n "(cached) " >&6
13154 if test $ac_cv_header_inttypes_h = yes; then
13159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161 #include <inttypes.h>
13164 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13165 *) gl_absname_cpp
="$ac_cpp" ;;
13170 gl_dirsep_regex
='[/\\]'
13173 gl_dirsep_regex
='\/'
13176 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13177 gl_header_literal_regex
=`echo 'inttypes.h' \
13178 | sed -e "$gl_make_literal_regex_sed"`
13179 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13180 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13186 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13187 sed -n "$gl_absolute_header_sed"`
13189 gl_header
=$gl_cv_absolute_inttypes_h
13190 gl_cv_next_inttypes_h
='"'$gl_header'"'
13192 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
13198 $as_echo "$gl_cv_next_inttypes_h" >&6; }
13200 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
13202 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13204 gl_next_as_first_directive
='<'inttypes.h
'>'
13206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13207 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
13209 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
13227 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
13228 if ${gl_cv_cc_double_expbit0+:} false
; then :
13229 $as_echo_n "(cached) " >&6
13232 if test "$cross_compiling" = yes; then :
13234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13237 #if defined arm || defined __arm || defined __arm__
13242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13243 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
13244 gl_cv_cc_double_expbit0
="unknown"
13248 if ${ac_cv_c_bigendian+:} false
; then :
13249 $as_echo_n "(cached) " >&6
13251 ac_cv_c_bigendian
=unknown
13252 # See if we're dealing with a universal compiler.
13253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13255 #ifndef __APPLE_CC__
13256 not a universal capable compiler
13261 if ac_fn_c_try_compile
"$LINENO"; then :
13263 # Check for potential -arch flags. It is not universal unless
13264 # there are at least two -arch flags with different values.
13267 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13268 if test -n "$ac_prev"; then
13270 i?
86 | x86_64 | ppc | ppc64
)
13271 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13274 ac_cv_c_bigendian
=universal
13280 elif test "x$ac_word" = "x-arch"; then
13285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13286 if test $ac_cv_c_bigendian = unknown
; then
13287 # See if sys/param.h defines the BYTE_ORDER macro.
13288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13290 #include <sys/types.h>
13291 #include <sys/param.h>
13296 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13297 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13299 bogus endian macros
13306 if ac_fn_c_try_compile
"$LINENO"; then :
13307 # It does; now see whether it defined to BIG_ENDIAN or not.
13308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13310 #include <sys/types.h>
13311 #include <sys/param.h>
13316 #if BYTE_ORDER != BIG_ENDIAN
13324 if ac_fn_c_try_compile
"$LINENO"; then :
13325 ac_cv_c_bigendian
=yes
13327 ac_cv_c_bigendian
=no
13329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13333 if test $ac_cv_c_bigendian = unknown
; then
13334 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 #include <limits.h>
13342 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13343 bogus endian macros
13350 if ac_fn_c_try_compile
"$LINENO"; then :
13351 # It does; now see whether it defined to _BIG_ENDIAN or not.
13352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354 #include <limits.h>
13359 #ifndef _BIG_ENDIAN
13367 if ac_fn_c_try_compile
"$LINENO"; then :
13368 ac_cv_c_bigendian
=yes
13370 ac_cv_c_bigendian
=no
13372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13376 if test $ac_cv_c_bigendian = unknown
; then
13377 # Compile a test program.
13378 if test "$cross_compiling" = yes; then :
13379 # Try to guess by grepping values from an object file.
13380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 short int ascii_mm[] =
13383 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13384 short int ascii_ii[] =
13385 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13386 int use_ascii (int i) {
13387 return ascii_mm[i] + ascii_ii[i];
13389 short int ebcdic_ii[] =
13390 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13391 short int ebcdic_mm[] =
13392 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13393 int use_ebcdic (int i) {
13394 return ebcdic_mm[i] + ebcdic_ii[i];
13401 return use_ascii (foo) == use_ebcdic (foo);
13406 if ac_fn_c_try_compile
"$LINENO"; then :
13407 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13408 ac_cv_c_bigendian
=yes
13410 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13411 if test "$ac_cv_c_bigendian" = unknown
; then
13412 ac_cv_c_bigendian
=no
13414 # finding both strings is unlikely to happen, but who knows?
13415 ac_cv_c_bigendian
=unknown
13419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423 $ac_includes_default
13428 /* Are we little or big endian? From Harbison&Steele. */
13432 char c[sizeof (long int)];
13435 return u.c[sizeof (long int) - 1] == 1;
13441 if ac_fn_c_try_run
"$LINENO"; then :
13442 ac_cv_c_bigendian
=no
13444 ac_cv_c_bigendian
=yes
13446 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13447 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13453 case $ac_cv_c_bigendian in #(
13455 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
13457 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
13460 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13464 gl_cv_cc_double_expbit0
="unknown" ;;
13473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13477 #include <stddef.h>
13479 #include <string.h>
13481 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13482 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
13483 static unsigned int ored_words[NWORDS];
13484 static unsigned int anded_words[NWORDS];
13485 static void add_to_ored_words (double x)
13489 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
13490 memset (&m, 0, sizeof (memory_double));
13492 for (i = 0; i < NWORDS; i++)
13494 ored_words[i] |= m.word[i];
13495 anded_words[i] &= m.word[i];
13501 FILE *fp = fopen ("conftest.out", "w");
13504 for (j = 0; j < NWORDS; j++)
13505 anded_words[j] = ~ (unsigned int) 0;
13506 add_to_ored_words (0.25);
13507 add_to_ored_words (0.5);
13508 add_to_ored_words (1.0);
13509 add_to_ored_words (2.0);
13510 add_to_ored_words (4.0);
13511 /* Remove bits that are common (e.g. if representation of the first mantissa
13512 bit is explicit). */
13513 for (j = 0; j < NWORDS; j++)
13514 ored_words[j] &= ~anded_words[j];
13515 /* Now find the nonzero word. */
13516 for (j = 0; j < NWORDS; j++)
13517 if (ored_words[j] != 0)
13522 for (i = j + 1; i < NWORDS; i++)
13523 if (ored_words[i] != 0)
13525 fprintf (fp, "unknown");
13526 return (fclose (fp) != 0);
13529 if ((ored_words[j] >> i) & 1)
13531 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13532 return (fclose (fp) != 0);
13535 fprintf (fp, "unknown");
13536 return (fclose (fp) != 0);
13540 if ac_fn_c_try_run
"$LINENO"; then :
13541 gl_cv_cc_double_expbit0
=`cat conftest.out`
13543 gl_cv_cc_double_expbit0
="unknown"
13545 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13546 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
13553 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
13554 case "$gl_cv_cc_double_expbit0" in
13556 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
13557 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
13559 cat >>confdefs.h
<<_ACEOF
13560 #define DBL_EXPBIT0_WORD $word
13564 cat >>confdefs.h
<<_ACEOF
13565 #define DBL_EXPBIT0_BIT $bit
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13573 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13574 if ${ac_cv_c_bigendian+:} false
; then :
13575 $as_echo_n "(cached) " >&6
13577 ac_cv_c_bigendian
=unknown
13578 # See if we're dealing with a universal compiler.
13579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h. */
13581 #ifndef __APPLE_CC__
13582 not a universal capable compiler
13587 if ac_fn_c_try_compile
"$LINENO"; then :
13589 # Check for potential -arch flags. It is not universal unless
13590 # there are at least two -arch flags with different values.
13593 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13594 if test -n "$ac_prev"; then
13596 i?
86 | x86_64 | ppc | ppc64
)
13597 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13600 ac_cv_c_bigendian
=universal
13606 elif test "x$ac_word" = "x-arch"; then
13611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13612 if test $ac_cv_c_bigendian = unknown
; then
13613 # See if sys/param.h defines the BYTE_ORDER macro.
13614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13616 #include <sys/types.h>
13617 #include <sys/param.h>
13622 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13623 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13625 bogus endian macros
13632 if ac_fn_c_try_compile
"$LINENO"; then :
13633 # It does; now see whether it defined to BIG_ENDIAN or not.
13634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636 #include <sys/types.h>
13637 #include <sys/param.h>
13642 #if BYTE_ORDER != BIG_ENDIAN
13650 if ac_fn_c_try_compile
"$LINENO"; then :
13651 ac_cv_c_bigendian
=yes
13653 ac_cv_c_bigendian
=no
13655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13659 if test $ac_cv_c_bigendian = unknown
; then
13660 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663 #include <limits.h>
13668 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13669 bogus endian macros
13676 if ac_fn_c_try_compile
"$LINENO"; then :
13677 # It does; now see whether it defined to _BIG_ENDIAN or not.
13678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 #include <limits.h>
13685 #ifndef _BIG_ENDIAN
13693 if ac_fn_c_try_compile
"$LINENO"; then :
13694 ac_cv_c_bigendian
=yes
13696 ac_cv_c_bigendian
=no
13698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13702 if test $ac_cv_c_bigendian = unknown
; then
13703 # Compile a test program.
13704 if test "$cross_compiling" = yes; then :
13705 # Try to guess by grepping values from an object file.
13706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13708 short int ascii_mm[] =
13709 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13710 short int ascii_ii[] =
13711 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13712 int use_ascii (int i) {
13713 return ascii_mm[i] + ascii_ii[i];
13715 short int ebcdic_ii[] =
13716 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13717 short int ebcdic_mm[] =
13718 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13719 int use_ebcdic (int i) {
13720 return ebcdic_mm[i] + ebcdic_ii[i];
13727 return use_ascii (foo) == use_ebcdic (foo);
13732 if ac_fn_c_try_compile
"$LINENO"; then :
13733 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13734 ac_cv_c_bigendian
=yes
13736 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13737 if test "$ac_cv_c_bigendian" = unknown
; then
13738 ac_cv_c_bigendian
=no
13740 # finding both strings is unlikely to happen, but who knows?
13741 ac_cv_c_bigendian
=unknown
13745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 $ac_includes_default
13754 /* Are we little or big endian? From Harbison&Steele. */
13758 char c[sizeof (long int)];
13761 return u.c[sizeof (long int) - 1] == 1;
13767 if ac_fn_c_try_run
"$LINENO"; then :
13768 ac_cv_c_bigendian
=no
13770 ac_cv_c_bigendian
=yes
13772 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13773 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13779 $as_echo "$ac_cv_c_bigendian" >&6; }
13780 case $ac_cv_c_bigendian in #(
13782 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13788 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13792 as_fn_error $?
"unknown endianness
13793 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13798 GNULIB_LOCALECONV
=0;
13799 GNULIB_SETLOCALE
=0;
13800 GNULIB_SETLOCALE_NULL
=0;
13801 GNULIB_DUPLOCALE
=0;
13802 GNULIB_LOCALENAME
=0;
13806 REPLACE_LOCALECONV
=0;
13807 REPLACE_SETLOCALE
=0;
13808 REPLACE_NEWLOCALE
=0;
13809 REPLACE_DUPLOCALE
=0;
13810 REPLACE_FREELOCALE
=0;
13811 REPLACE_STRUCT_LCONV
=0;
13815 HAVE_MAX_ALIGN_T
=1;
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13820 $as_echo_n "checking for wchar_t... " >&6; }
13821 if ${gt_cv_c_wchar_t+:} false
; then :
13822 $as_echo_n "(cached) " >&6
13824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #include <stddef.h>
13827 wchar_t foo = (wchar_t)'\0';
13836 if ac_fn_c_try_compile
"$LINENO"; then :
13837 gt_cv_c_wchar_t
=yes
13841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13844 $as_echo "$gt_cv_c_wchar_t" >&6; }
13845 if test $gt_cv_c_wchar_t = yes; then
13847 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
13860 $as_echo_n "checking for good max_align_t... " >&6; }
13861 if ${gl_cv_type_max_align_t+:} false
; then :
13862 $as_echo_n "(cached) " >&6
13864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13866 #include <stddef.h>
13867 unsigned int s = sizeof (max_align_t);
13868 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
13869 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
13870 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
13872 typedef struct { char a; max_align_t b; } max_helper;
13873 typedef struct { char a; long b; } long_helper;
13874 typedef struct { char a; double b; } double_helper;
13875 typedef struct { char a; long double b; } long_double_helper;
13876 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
13877 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
13878 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
13888 if ac_fn_c_try_compile
"$LINENO"; then :
13889 gl_cv_type_max_align_t
=yes
13891 gl_cv_type_max_align_t
=no
13893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
13897 $as_echo "$gl_cv_type_max_align_t" >&6; }
13898 if test $gl_cv_type_max_align_t = no
; then
13903 if test $gt_cv_c_wchar_t = no
; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13909 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13910 if ${gl_cv_decl_null_works+:} false
; then :
13911 $as_echo_n "(cached) " >&6
13913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13915 #include <stddef.h>
13916 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13926 if ac_fn_c_try_compile
"$LINENO"; then :
13927 gl_cv_decl_null_works
=yes
13929 gl_cv_decl_null_works
=no
13931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13934 $as_echo "$gl_cv_decl_null_works" >&6; }
13935 if test $gl_cv_decl_null_works = no
; then
13941 if test -n "$STDDEF_H"; then
13942 GL_GENERATE_STDDEF_H_TRUE
=
13943 GL_GENERATE_STDDEF_H_FALSE
='#'
13945 GL_GENERATE_STDDEF_H_TRUE
='#'
13946 GL_GENERATE_STDDEF_H_FALSE
=
13949 if test -n "$STDDEF_H"; then
13958 if test $gl_cv_have_include_next = yes; then
13959 gl_cv_next_stddef_h
='<'stddef.h
'>'
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13962 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13963 if ${gl_cv_next_stddef_h+:} false
; then :
13964 $as_echo_n "(cached) " >&6
13969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971 #include <stddef.h>
13974 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13975 *) gl_absname_cpp
="$ac_cpp" ;;
13980 gl_dirsep_regex
='[/\\]'
13983 gl_dirsep_regex
='\/'
13986 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13987 gl_header_literal_regex
=`echo 'stddef.h' \
13988 | sed -e "$gl_make_literal_regex_sed"`
13989 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13990 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13996 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13997 sed -n "$gl_absolute_header_sed"`
13999 gl_header
=$gl_cv_absolute_stddef_h
14000 gl_cv_next_stddef_h
='"'$gl_header'"'
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14005 $as_echo "$gl_cv_next_stddef_h" >&6; }
14007 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
14009 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14010 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14011 gl_next_as_first_directive
='<'stddef.h
'>'
14013 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14014 gl_next_as_first_directive
=$gl_cv_next_stddef_h
14016 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
14029 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
14030 if ${gl_cv_header_locale_has_locale_t+:} false
; then :
14031 $as_echo_n "(cached) " >&6
14033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 #include <locale.h>
14045 if ac_fn_c_try_compile
"$LINENO"; then :
14046 gl_cv_header_locale_has_locale_t
=yes
14048 gl_cv_header_locale_has_locale_t
=no
14050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
14054 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
14057 if test $ac_cv_header_xlocale_h = yes; then
14059 if test $gl_cv_header_locale_has_locale_t = yes; then
14060 gl_cv_header_locale_h_needs_xlocale_h
=no
14062 gl_cv_header_locale_h_needs_xlocale_h
=yes
14067 gl_cv_header_locale_h_needs_xlocale_h
=no
14068 if test $gl_cv_header_locale_has_locale_t = yes; then
14078 gl_threads_api
=none
14083 if test "$gl_use_threads" != no
; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
14087 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
14088 if ${gl_cv_have_weak+:} false
; then :
14089 $as_echo_n "(cached) " >&6
14092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14093 /* end confdefs.h. */
14094 extern void xyzzy ();
14104 if ac_fn_c_try_link
"$LINENO"; then :
14105 gl_cv_have_weak
=maybe
14107 rm -f core conftest.err conftest.
$ac_objext \
14108 conftest
$ac_exeext conftest.
$ac_ext
14109 if test $gl_cv_have_weak = maybe
; then
14110 if test "$cross_compiling" = yes; then :
14111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14114 Extensible Linking Format
14118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14119 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
14120 gl_cv_have_weak
="guessing yes"
14122 gl_cv_have_weak
="guessing no"
14128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14135 return (fputs == NULL);
14138 if ac_fn_c_try_run
"$LINENO"; then :
14139 gl_cv_have_weak
=yes
14143 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14144 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14148 case " $LDFLAGS " in
14149 *" -static "*) gl_cv_have_weak
=no
;;
14151 case "$gl_cv_have_weak" in
14154 freebsd
* | dragonfly
*)
14156 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
14157 cat <<EOF > conftest2.c
14158 #include <pthread.h>
14159 #pragma weak pthread_mutexattr_gettype
14162 return (pthread_mutexattr_gettype != NULL);
14165 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
14166 || gl_cv_have_weak
=no
14167 rm -f conftest1.c libempty.so conftest2.c conftest
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
14175 $as_echo "$gl_cv_have_weak" >&6; }
14176 case "$gl_cv_have_weak" in
14179 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
14184 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14188 if test "$gl_use_threads" = isoc ||
test "$gl_use_threads" = isoc
+posix
; then
14190 gl_have_isoc_threads
="$ac_cv_header_threads_h"
14192 if test "$gl_use_threads" = yes \
14193 ||
test "$gl_use_threads" = posix \
14194 ||
test "$gl_use_threads" = isoc
+posix
; then
14197 if test -z "$gl_pthreadlib_body_done"; then
14201 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14202 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14203 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14204 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14205 gl_have_pthread_h
=yes
14207 gl_have_pthread_h
=no
14211 if test "$gl_have_pthread_h" = yes; then
14212 # Other possible tests:
14213 # -lpthreads (FSU threads, PCthreads)
14215 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14216 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14217 # the second one only in libpthread, and lock.c needs it.
14219 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14220 # needs -pthread for some reason. See:
14221 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14223 for gl_pthread
in '' '-pthread'; do
14224 LIBS
="$LIBS $gl_pthread"
14225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 #include <pthread.h>
14229 pthread_mutexattr_t ma;
14234 pthread_mutex_lock (&m);
14235 pthread_mutexattr_init (&ma);
14240 if ac_fn_c_try_link
"$LINENO"; then :
14242 LIBPTHREAD
=$gl_pthread
14243 LIBPMULTITHREAD
=$gl_pthread
14245 rm -f core conftest.err conftest.
$ac_objext \
14246 conftest
$ac_exeext conftest.
$ac_ext
14248 test $gl_pthread_api = yes && break
14251 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14252 # since it is defined as a macro on OSF/1.)
14253 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14254 # The program links fine without libpthread. But it may actually
14255 # need to link with libpthread in order to create multiple threads.
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14257 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14258 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14259 $as_echo_n "(cached) " >&6
14261 ac_check_lib_save_LIBS
=$LIBS
14262 LIBS
="-lpthread $LIBS"
14263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14266 /* Override any GCC internal prototype to avoid an error.
14267 Use char because int might match the return type of a GCC
14268 builtin and then its argument prototype would still apply. */
14272 char pthread_kill ();
14276 return pthread_kill ();
14281 if ac_fn_c_try_link
"$LINENO"; then :
14282 ac_cv_lib_pthread_pthread_kill
=yes
14284 ac_cv_lib_pthread_pthread_kill
=no
14286 rm -f core conftest.err conftest.
$ac_objext \
14287 conftest
$ac_exeext conftest.
$ac_ext
14288 LIBS
=$ac_check_lib_save_LIBS
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14291 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14292 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14293 LIBPMULTITHREAD
=-lpthread
14294 # On Solaris and HP-UX, most pthread functions exist also in libc.
14295 # Therefore pthread_in_use() needs to actually try to create a
14296 # thread: pthread_create from libc will fail, whereas
14297 # pthread_create will actually create a thread.
14298 # On Solaris 10 or newer, this test is no longer needed, because
14299 # libc contains the fully functional pthread functions.
14301 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14303 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14309 elif test $gl_pthread_api != yes; then
14310 # Some library is needed. Try libpthread and libc_r.
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14312 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14313 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14314 $as_echo_n "(cached) " >&6
14316 ac_check_lib_save_LIBS
=$LIBS
14317 LIBS
="-lpthread $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 pthread_kill ();
14331 return pthread_kill ();
14336 if ac_fn_c_try_link
"$LINENO"; then :
14337 ac_cv_lib_pthread_pthread_kill
=yes
14339 ac_cv_lib_pthread_pthread_kill
=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_pthread_pthread_kill" >&5
14346 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14347 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14349 LIBPTHREAD
=-lpthread
14350 LIBPMULTITHREAD
=-lpthread
14353 if test $gl_pthread_api != yes; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14356 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14357 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14358 $as_echo_n "(cached) " >&6
14360 ac_check_lib_save_LIBS
=$LIBS
14362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14365 /* Override any GCC internal prototype to avoid an error.
14366 Use char because int might match the return type of a GCC
14367 builtin and then its argument prototype would still apply. */
14371 char pthread_kill ();
14375 return pthread_kill ();
14380 if ac_fn_c_try_link
"$LINENO"; then :
14381 ac_cv_lib_c_r_pthread_kill
=yes
14383 ac_cv_lib_c_r_pthread_kill
=no
14385 rm -f core conftest.err conftest.
$ac_objext \
14386 conftest
$ac_exeext conftest.
$ac_ext
14387 LIBS
=$ac_check_lib_save_LIBS
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14390 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14391 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14394 LIBPMULTITHREAD
=-lc_r
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14401 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14403 $as_echo "$gl_pthread_api" >&6; }
14406 if test $gl_pthread_api = yes; then
14408 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14423 if ac_fn_c_try_link
"$LINENO"; then :
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14428 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14429 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14430 $as_echo_n "(cached) " >&6
14432 ac_check_lib_save_LIBS
=$LIBS
14434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14437 /* Override any GCC internal prototype to avoid an error.
14438 Use char because int might match the return type of a GCC
14439 builtin and then its argument prototype would still apply. */
14443 char sched_yield ();
14447 return sched_yield ();
14452 if ac_fn_c_try_link
"$LINENO"; then :
14453 ac_cv_lib_rt_sched_yield
=yes
14455 ac_cv_lib_rt_sched_yield
=no
14457 rm -f core conftest.err conftest.
$ac_objext \
14458 conftest
$ac_exeext conftest.
$ac_ext
14459 LIBS
=$ac_check_lib_save_LIBS
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14462 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14463 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14464 LIB_SCHED_YIELD
=-lrt
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14467 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14468 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14469 $as_echo_n "(cached) " >&6
14471 ac_check_lib_save_LIBS
=$LIBS
14472 LIBS
="-lposix4 $LIBS"
14473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14474 /* end confdefs.h. */
14476 /* Override any GCC internal prototype to avoid an error.
14477 Use char because int might match the return type of a GCC
14478 builtin and then its argument prototype would still apply. */
14482 char sched_yield ();
14486 return sched_yield ();
14491 if ac_fn_c_try_link
"$LINENO"; then :
14492 ac_cv_lib_posix4_sched_yield
=yes
14494 ac_cv_lib_posix4_sched_yield
=no
14496 rm -f core conftest.err conftest.
$ac_objext \
14497 conftest
$ac_exeext conftest.
$ac_ext
14498 LIBS
=$ac_check_lib_save_LIBS
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14501 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14502 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14503 LIB_SCHED_YIELD
=-lposix4
14510 rm -f core conftest.err conftest.
$ac_objext \
14511 conftest
$ac_exeext conftest.
$ac_ext
14514 gl_pthreadlib_body_done
=done
14517 LIBTHREAD
=$LIBPTHREAD LTLIBTHREAD
=$LIBPTHREAD
14518 LIBMULTITHREAD
=$LIBPMULTITHREAD LTLIBMULTITHREAD
=$LIBPMULTITHREAD
14519 if test $gl_pthread_api = yes; then
14520 if test "$gl_use_threads" = isoc
+posix
&& test "$gl_have_isoc_threads" = yes; then
14521 gl_threads_api
='isoc+posix'
14523 $as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
14525 LIBTHREAD
= LTLIBTHREAD
=
14527 gl_threads_api
=posix
14529 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
14531 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
14532 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14534 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
14536 LIBTHREAD
= LTLIBTHREAD
=
14539 freebsd
* | dragonfly
*)
14540 if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then
14542 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14552 if test $gl_threads_api = none
; then
14553 if test "$gl_use_threads" = isoc
&& test "$gl_have_isoc_threads" = yes; then
14557 if test -z "$gl_stdthreadlib_body_done"; then
14567 if test -z "$gl_pthreadlib_body_done"; then
14571 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14572 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14573 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14574 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14575 gl_have_pthread_h
=yes
14577 gl_have_pthread_h
=no
14581 if test "$gl_have_pthread_h" = yes; then
14582 # Other possible tests:
14583 # -lpthreads (FSU threads, PCthreads)
14585 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14586 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14587 # the second one only in libpthread, and lock.c needs it.
14589 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14590 # needs -pthread for some reason. See:
14591 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14593 for gl_pthread
in '' '-pthread'; do
14594 LIBS
="$LIBS $gl_pthread"
14595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14597 #include <pthread.h>
14599 pthread_mutexattr_t ma;
14604 pthread_mutex_lock (&m);
14605 pthread_mutexattr_init (&ma);
14610 if ac_fn_c_try_link
"$LINENO"; then :
14612 LIBPTHREAD
=$gl_pthread
14613 LIBPMULTITHREAD
=$gl_pthread
14615 rm -f core conftest.err conftest.
$ac_objext \
14616 conftest
$ac_exeext conftest.
$ac_ext
14618 test $gl_pthread_api = yes && break
14621 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14622 # since it is defined as a macro on OSF/1.)
14623 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14624 # The program links fine without libpthread. But it may actually
14625 # need to link with libpthread in order to create multiple threads.
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14627 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14628 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14629 $as_echo_n "(cached) " >&6
14631 ac_check_lib_save_LIBS
=$LIBS
14632 LIBS
="-lpthread $LIBS"
14633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14636 /* Override any GCC internal prototype to avoid an error.
14637 Use char because int might match the return type of a GCC
14638 builtin and then its argument prototype would still apply. */
14642 char pthread_kill ();
14646 return pthread_kill ();
14651 if ac_fn_c_try_link
"$LINENO"; then :
14652 ac_cv_lib_pthread_pthread_kill
=yes
14654 ac_cv_lib_pthread_pthread_kill
=no
14656 rm -f core conftest.err conftest.
$ac_objext \
14657 conftest
$ac_exeext conftest.
$ac_ext
14658 LIBS
=$ac_check_lib_save_LIBS
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14661 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14662 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14663 LIBPMULTITHREAD
=-lpthread
14664 # On Solaris and HP-UX, most pthread functions exist also in libc.
14665 # Therefore pthread_in_use() needs to actually try to create a
14666 # thread: pthread_create from libc will fail, whereas
14667 # pthread_create will actually create a thread.
14668 # On Solaris 10 or newer, this test is no longer needed, because
14669 # libc contains the fully functional pthread functions.
14671 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14673 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14679 elif test $gl_pthread_api != yes; then
14680 # Some library is needed. Try libpthread and libc_r.
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14682 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14683 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14684 $as_echo_n "(cached) " >&6
14686 ac_check_lib_save_LIBS
=$LIBS
14687 LIBS
="-lpthread $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 pthread_kill ();
14701 return pthread_kill ();
14706 if ac_fn_c_try_link
"$LINENO"; then :
14707 ac_cv_lib_pthread_pthread_kill
=yes
14709 ac_cv_lib_pthread_pthread_kill
=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_pthread_pthread_kill" >&5
14716 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14717 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14719 LIBPTHREAD
=-lpthread
14720 LIBPMULTITHREAD
=-lpthread
14723 if test $gl_pthread_api != yes; then
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14726 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14727 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14728 $as_echo_n "(cached) " >&6
14730 ac_check_lib_save_LIBS
=$LIBS
14732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14735 /* Override any GCC internal prototype to avoid an error.
14736 Use char because int might match the return type of a GCC
14737 builtin and then its argument prototype would still apply. */
14741 char pthread_kill ();
14745 return pthread_kill ();
14750 if ac_fn_c_try_link
"$LINENO"; then :
14751 ac_cv_lib_c_r_pthread_kill
=yes
14753 ac_cv_lib_c_r_pthread_kill
=no
14755 rm -f core conftest.err conftest.
$ac_objext \
14756 conftest
$ac_exeext conftest.
$ac_ext
14757 LIBS
=$ac_check_lib_save_LIBS
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14760 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14761 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14764 LIBPMULTITHREAD
=-lc_r
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14771 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14773 $as_echo "$gl_pthread_api" >&6; }
14776 if test $gl_pthread_api = yes; then
14778 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14783 /* end confdefs.h. */
14793 if ac_fn_c_try_link
"$LINENO"; then :
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14798 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14799 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14800 $as_echo_n "(cached) " >&6
14802 ac_check_lib_save_LIBS
=$LIBS
14804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h. */
14807 /* Override any GCC internal prototype to avoid an error.
14808 Use char because int might match the return type of a GCC
14809 builtin and then its argument prototype would still apply. */
14813 char sched_yield ();
14817 return sched_yield ();
14822 if ac_fn_c_try_link
"$LINENO"; then :
14823 ac_cv_lib_rt_sched_yield
=yes
14825 ac_cv_lib_rt_sched_yield
=no
14827 rm -f core conftest.err conftest.
$ac_objext \
14828 conftest
$ac_exeext conftest.
$ac_ext
14829 LIBS
=$ac_check_lib_save_LIBS
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14832 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14833 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14834 LIB_SCHED_YIELD
=-lrt
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14837 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14838 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14839 $as_echo_n "(cached) " >&6
14841 ac_check_lib_save_LIBS
=$LIBS
14842 LIBS
="-lposix4 $LIBS"
14843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14846 /* Override any GCC internal prototype to avoid an error.
14847 Use char because int might match the return type of a GCC
14848 builtin and then its argument prototype would still apply. */
14852 char sched_yield ();
14856 return sched_yield ();
14861 if ac_fn_c_try_link
"$LINENO"; then :
14862 ac_cv_lib_posix4_sched_yield
=yes
14864 ac_cv_lib_posix4_sched_yield
=no
14866 rm -f core conftest.err conftest.
$ac_objext \
14867 conftest
$ac_exeext conftest.
$ac_ext
14868 LIBS
=$ac_check_lib_save_LIBS
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14871 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14872 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14873 LIB_SCHED_YIELD
=-lposix4
14880 rm -f core conftest.err conftest.
$ac_objext \
14881 conftest
$ac_exeext conftest.
$ac_ext
14884 gl_pthreadlib_body_done
=done
14887 if test $ac_cv_header_threads_h = yes; then
14888 for ac_func
in thrd_create
14890 ac_fn_c_check_func
"$LINENO" "thrd_create" "ac_cv_func_thrd_create"
14891 if test "x$ac_cv_func_thrd_create" = xyes
; then :
14892 cat >>confdefs.h
<<_ACEOF
14893 #define HAVE_THRD_CREATE 1
14899 if test $ac_cv_func_thrd_create = yes; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
14903 $as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
14904 if ${ac_cv_lib_stdthreads_thrd_create+:} false
; then :
14905 $as_echo_n "(cached) " >&6
14907 ac_check_lib_save_LIBS
=$LIBS
14908 LIBS
="-lstdthreads $LIBS"
14909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14918 char thrd_create ();
14922 return thrd_create ();
14927 if ac_fn_c_try_link
"$LINENO"; then :
14928 ac_cv_lib_stdthreads_thrd_create
=yes
14930 ac_cv_lib_stdthreads_thrd_create
=no
14932 rm -f core conftest.err conftest.
$ac_objext \
14933 conftest
$ac_exeext conftest.
$ac_ext
14934 LIBS
=$ac_check_lib_save_LIBS
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
14937 $as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
14938 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
; then :
14940 LIBSTDTHREAD
='-lstdthreads -lpthread'
14944 LIBSTDTHREAD
="$LIBPMULTITHREAD"
14950 LIBSTDTHREAD
="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
14957 $as_echo_n "checking whether ISO C threads API is available... " >&6; }
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
14959 $as_echo "$ac_cv_header_threads_h" >&6; }
14960 gl_stdthreadlib_body_done
=done
14963 LIBTHREAD
=$LIBSTDTHREAD LTLIBTHREAD
=$LIBSTDTHREAD
14964 LIBMULTITHREAD
=$LIBSTDTHREAD LTLIBMULTITHREAD
=$LIBSTDTHREAD
14965 gl_threads_api
=isoc
14967 $as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
14971 if test $gl_threads_api = none
; then
14972 case "$gl_use_threads" in
14973 yes | windows | win32
) # The 'win32' is for backward compatibility.
14974 if { case "$host_os" in
14979 gl_threads_api
=windows
14981 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
14989 $as_echo_n "checking for multithread API to use... " >&6; }
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
14991 $as_echo "$gl_threads_api" >&6; }
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
15005 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
15006 if ${gl_cv_func_malloc_posix+:} false
; then :
15007 $as_echo_n "(cached) " >&6
15010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15016 #if defined _WIN32 && ! defined __CYGWIN__
15024 if ac_fn_c_try_compile
"$LINENO"; then :
15025 gl_cv_func_malloc_posix
=yes
15027 gl_cv_func_malloc_posix
=no
15029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
15033 $as_echo "$gl_cv_func_malloc_posix" >&6; }
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15038 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15039 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
15040 $as_echo_n "(cached) " >&6
15042 if test "$cross_compiling" = yes; then :
15044 # Guess yes on platforms where we know the result.
15045 *-gnu* | gnu
* |
*-musl* | freebsd
* | netbsd
* | openbsd
* \
15046 | hpux
* | solaris
* | cygwin
* | mingw
*)
15047 ac_cv_func_malloc_0_nonnull
="guessing yes" ;;
15048 # If we don't know, obey --enable-cross-guesses.
15049 *) ac_cv_func_malloc_0_nonnull
="$gl_cross_guess_normal" ;;
15053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15054 /* end confdefs.h. */
15055 #include <stdlib.h>
15060 char *p = malloc (0);
15069 if ac_fn_c_try_run
"$LINENO"; then :
15070 ac_cv_func_malloc_0_nonnull
=yes
15072 ac_cv_func_malloc_0_nonnull
=no
15074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15081 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15082 case "$ac_cv_func_malloc_0_nonnull" in
15084 gl_cv_func_malloc_0_nonnull
=1
15087 gl_cv_func_malloc_0_nonnull
=0
15092 cat >>confdefs.h
<<_ACEOF
15093 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
15107 $as_echo_n "checking for a traditional japanese locale... " >&6; }
15108 if ${gt_cv_locale_ja+:} false
; then :
15109 $as_echo_n "(cached) " >&6
15112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h. */
15115 #include <locale.h>
15117 #if HAVE_LANGINFO_CODESET
15118 # include <langinfo.h>
15120 #include <stdlib.h>
15121 #include <string.h>
15126 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15127 imitates locale dependent behaviour by looking at the environment
15128 variables, and all locales use the UTF-8 encoding. */
15129 #if defined __BEOS__ || defined __HAIKU__
15132 /* Check whether the given locale name is recognized by the system. */
15133 # if defined _WIN32 && !defined __CYGWIN__
15134 /* On native Windows, setlocale(category, "") looks at the system settings,
15135 not at the environment variables. Also, when an encoding suffix such
15136 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15137 category of the locale to "C". */
15138 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15139 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15142 if (setlocale (LC_ALL, "") == NULL) return 1;
15144 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15145 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15146 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15147 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15148 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15149 some unit tests fail.
15150 On MirBSD 10, when an unsupported locale is specified, setlocale()
15151 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15152 # if HAVE_LANGINFO_CODESET
15154 const char *cs = nl_langinfo (CODESET);
15155 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15156 || strcmp (cs, "UTF-8") == 0)
15161 /* On Cygwin, avoid locale names without encoding suffix, because the
15162 locale_charset() function relies on the encoding suffix. Note that
15163 LC_ALL is set on the command line. */
15164 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15166 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
15167 on Cygwin 1.5.x. */
15168 if (MB_CUR_MAX == 1)
15170 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15171 This excludes the UTF-8 encoding (except on MirBSD). */
15174 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15175 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15176 for (p = buf; *p != '\0'; p++)
15177 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15186 (eval $ac_link) 2>&5
15188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15189 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15191 # Handle native Windows specially, because there setlocale() interprets
15192 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15193 # "fr" or "fra" as "French" or "French_France.1252",
15194 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15195 # "ja" as "Japanese" or "Japanese_Japan.932",
15198 # Note that on native Windows, the Japanese locale is
15199 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
15200 # cannot use it here.
15201 gt_cv_locale_ja
=none
15204 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15205 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15206 # configure script would override the LC_ALL setting. Likewise for
15207 # LC_CTYPE, which is also set at the beginning of the configure script.
15208 # Test for the AIX locale name.
15209 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15210 gt_cv_locale_ja
=ja_JP
15212 # Test for the locale name with explicit encoding suffix.
15213 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15214 gt_cv_locale_ja
=ja_JP.EUC-JP
15216 # Test for the HP-UX, OSF/1, NetBSD locale name.
15217 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15218 gt_cv_locale_ja
=ja_JP.eucJP
15220 # Test for the IRIX, FreeBSD locale name.
15221 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15222 gt_cv_locale_ja
=ja_JP.EUC
15224 # Test for the Solaris 7 locale name.
15225 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15228 # Special test for NetBSD 1.6.
15229 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
15230 gt_cv_locale_ja
=ja_JP.eucJP
15233 gt_cv_locale_ja
=none
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
15247 $as_echo "$gt_cv_locale_ja" >&6; }
15248 LOCALE_JA
=$gt_cv_locale_ja
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
15254 $as_echo_n "checking for a french Unicode locale... " >&6; }
15255 if ${gt_cv_locale_fr_utf8+:} false
; then :
15256 $as_echo_n "(cached) " >&6
15259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15262 #include <locale.h>
15264 #if HAVE_LANGINFO_CODESET
15265 # include <langinfo.h>
15267 #include <stdlib.h>
15268 #include <string.h>
15272 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15273 imitates locale dependent behaviour by looking at the environment
15274 variables, and all locales use the UTF-8 encoding. */
15275 #if !(defined __BEOS__ || defined __HAIKU__)
15276 /* Check whether the given locale name is recognized by the system. */
15277 # if defined _WIN32 && !defined __CYGWIN__
15278 /* On native Windows, setlocale(category, "") looks at the system settings,
15279 not at the environment variables. Also, when an encoding suffix such
15280 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15281 category of the locale to "C". */
15282 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15283 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15286 if (setlocale (LC_ALL, "") == NULL) return 1;
15288 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15289 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15290 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15291 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15292 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15293 some unit tests fail. */
15294 # if HAVE_LANGINFO_CODESET
15296 const char *cs = nl_langinfo (CODESET);
15297 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
15302 /* On Cygwin, avoid locale names without encoding suffix, because the
15303 locale_charset() function relies on the encoding suffix. Note that
15304 LC_ALL is set on the command line. */
15305 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15307 /* Check whether in the abbreviation of the second month, the second
15308 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
15309 two bytes long, with UTF-8 encoding. */
15310 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15311 if (strftime (buf, sizeof (buf), "%b", &t) < 4
15312 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
15315 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
15316 /* Check whether the decimal separator is a comma.
15317 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15318 are nl_langinfo(RADIXCHAR) are both ".". */
15319 if (localeconv () ->decimal_point[0] != ',') return 1;
15325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15326 (eval $ac_link) 2>&5
15328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15329 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15331 # Handle native Windows specially, because there setlocale() interprets
15332 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15333 # "fr" or "fra" as "French" or "French_France.1252",
15334 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15335 # "ja" as "Japanese" or "Japanese_Japan.932",
15338 # Test for the hypothetical native Windows locale name.
15339 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15340 gt_cv_locale_fr_utf8
=French_France
.65001
15343 gt_cv_locale_fr_utf8
=none
15347 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15348 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15349 # configure script would override the LC_ALL setting. Likewise for
15350 # LC_CTYPE, which is also set at the beginning of the configure script.
15351 # Test for the usual locale name.
15352 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15353 gt_cv_locale_fr_utf8
=fr_FR
15355 # Test for the locale name with explicit encoding suffix.
15356 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15357 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
15359 # Test for the Solaris 7 locale name.
15360 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15361 gt_cv_locale_fr_utf8
=fr.UTF-8
15364 gt_cv_locale_fr_utf8
=none
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
15375 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
15376 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
15383 $as_echo_n "checking for a transitional chinese locale... " >&6; }
15384 if ${gt_cv_locale_zh_CN+:} false
; then :
15385 $as_echo_n "(cached) " >&6
15388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15389 /* end confdefs.h. */
15391 #include <locale.h>
15392 #include <stdlib.h>
15394 #if HAVE_LANGINFO_CODESET
15395 # include <langinfo.h>
15397 #include <stdlib.h>
15398 #include <string.h>
15403 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15404 imitates locale dependent behaviour by looking at the environment
15405 variables, and all locales use the UTF-8 encoding. */
15406 #if defined __BEOS__ || defined __HAIKU__
15409 /* Check whether the given locale name is recognized by the system. */
15410 # if defined _WIN32 && !defined __CYGWIN__
15411 /* On native Windows, setlocale(category, "") looks at the system settings,
15412 not at the environment variables. Also, when an encoding suffix such
15413 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15414 category of the locale to "C". */
15415 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15416 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15419 if (setlocale (LC_ALL, "") == NULL) return 1;
15421 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15422 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15423 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15424 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15425 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15426 some unit tests fail.
15427 On MirBSD 10, when an unsupported locale is specified, setlocale()
15428 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15429 # if HAVE_LANGINFO_CODESET
15431 const char *cs = nl_langinfo (CODESET);
15432 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15433 || strcmp (cs, "UTF-8") == 0)
15438 /* On Cygwin, avoid locale names without encoding suffix, because the
15439 locale_charset() function relies on the encoding suffix. Note that
15440 LC_ALL is set on the command line. */
15441 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15443 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15444 This excludes the UTF-8 encoding (except on MirBSD). */
15447 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15448 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15449 for (p = buf; *p != '\0'; p++)
15450 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15453 /* Check whether a typical GB18030 multibyte sequence is recognized as a
15454 single wide character. This excludes the GB2312 and GBK encodings. */
15455 if (mblen ("\203\062\332\066", 5) != 4)
15462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15463 (eval $ac_link) 2>&5
15465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15466 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15468 # Handle native Windows specially, because there setlocale() interprets
15469 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15470 # "fr" or "fra" as "French" or "French_France.1252",
15471 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15472 # "ja" as "Japanese" or "Japanese_Japan.932",
15475 # Test for the hypothetical native Windows locale name.
15476 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15477 gt_cv_locale_zh_CN
=Chinese_China
.54936
15480 gt_cv_locale_zh_CN
=none
15484 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
15485 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
15486 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
15487 gt_cv_locale_zh_CN
=none
15490 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15491 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15492 # configure script would override the LC_ALL setting. Likewise for
15493 # LC_CTYPE, which is also set at the beginning of the configure script.
15494 # Test for the locale name without encoding suffix.
15495 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15496 gt_cv_locale_zh_CN
=zh_CN
15498 # Test for the locale name with explicit encoding suffix.
15499 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15500 gt_cv_locale_zh_CN
=zh_CN.GB18030
15503 gt_cv_locale_zh_CN
=none
15509 # If there was a link error, due to mblen(), the system is so old that
15510 # it certainly doesn't have a chinese locale.
15511 gt_cv_locale_zh_CN
=none
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
15517 $as_echo "$gt_cv_locale_zh_CN" >&6; }
15518 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15522 $as_echo_n "checking for inline... " >&6; }
15523 if ${ac_cv_c_inline+:} false
; then :
15524 $as_echo_n "(cached) " >&6
15527 for ac_kw
in inline __inline__ __inline
; do
15528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15530 #ifndef __cplusplus
15532 static $ac_kw foo_t static_foo () {return 0; }
15533 $ac_kw foo_t foo () {return 0; }
15537 if ac_fn_c_try_compile
"$LINENO"; then :
15538 ac_cv_c_inline
=$ac_kw
15540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15541 test "$ac_cv_c_inline" != no
&& break
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15546 $as_echo "$ac_cv_c_inline" >&6; }
15548 case $ac_cv_c_inline in
15551 case $ac_cv_c_inline in
15553 *) ac_val
=$ac_cv_c_inline;;
15555 cat >>confdefs.h
<<_ACEOF
15556 #ifndef __cplusplus
15557 #define inline $ac_val
15568 GNULIB_EXPLICIT_BZERO
=0;
15575 GNULIB_RAWMEMCHR
=0;
15578 GNULIB_STRCHRNUL
=0;
15586 GNULIB_STRCASESTR
=0;
15593 GNULIB_MBSCASECMP
=0;
15594 GNULIB_MBSNCASECMP
=0;
15595 GNULIB_MBSPCASECMP
=0;
15596 GNULIB_MBSCASESTR
=0;
15603 GNULIB_STRERROR_R
=0;
15604 GNULIB_STRERRORNAME_NP
=0;
15605 GNULIB_SIGABBREV_NP
=0;
15606 GNULIB_SIGDESCR_NP
=0;
15607 GNULIB_STRSIGNAL
=0;
15608 GNULIB_STRVERSCMP
=0;
15610 GNULIB_MDA_MEMCCPY
=1;
15611 GNULIB_MDA_STRDUP
=1;
15612 HAVE_EXPLICIT_BZERO
=1;
15615 HAVE_DECL_MEMMEM
=1;
15617 HAVE_DECL_MEMRCHR
=1;
15622 HAVE_DECL_STRDUP
=1;
15623 HAVE_DECL_STRNDUP
=1;
15624 HAVE_DECL_STRNLEN
=1;
15628 HAVE_DECL_STRTOK_R
=1;
15629 HAVE_DECL_STRERROR_R
=1;
15630 HAVE_STRERRORNAME_NP
=1;
15631 HAVE_SIGABBREV_NP
=1;
15632 HAVE_SIGDESCR_NP
=1;
15633 HAVE_DECL_STRSIGNAL
=1;
15639 REPLACE_STRCHRNUL
=0;
15645 REPLACE_STRCASESTR
=0;
15646 REPLACE_STRTOK_R
=0;
15647 REPLACE_STRERROR
=0;
15648 REPLACE_STRERROR_R
=0;
15649 REPLACE_STRERRORNAME_NP
=0;
15650 REPLACE_STRSIGNAL
=0;
15651 UNDEFINE_STRTOK_R
=0;
15658 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
15659 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
15660 # irrelevant for anonymous mappings.
15661 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
15662 if test "x$ac_cv_func_mmap" = xyes
; then :
15669 # Try to allow MAP_ANONYMOUS.
15670 gl_have_mmap_anonymous
=no
15671 if test $gl_have_mmap = yes; then
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
15673 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15677 #include <sys/mman.h>
15678 #ifdef MAP_ANONYMOUS
15679 I cannot identify this map
15683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15684 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15685 gl_have_mmap_anonymous
=yes
15689 if test $gl_have_mmap_anonymous != yes; then
15690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h. */
15693 #include <sys/mman.h>
15695 I cannot identify this map
15699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15700 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15702 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
15704 gl_have_mmap_anonymous
=yes
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
15710 $as_echo "$gl_have_mmap_anonymous" >&6; }
15711 if test $gl_have_mmap_anonymous = yes; then
15713 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
15722 # Detect platform-specific bugs in some versions of glibc:
15723 # memchr should not dereference anything with length 0
15724 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
15725 # memchr should not dereference overestimated length after a match
15726 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
15727 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
15728 # memchr should cast the second argument to 'unsigned char'.
15729 # This bug exists in Android 4.3.
15730 # Assume that memchr works on platforms that lack mprotect.
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
15732 $as_echo_n "checking whether memchr works... " >&6; }
15733 if ${gl_cv_func_memchr_works+:} false
; then :
15734 $as_echo_n "(cached) " >&6
15736 if test "$cross_compiling" = yes; then :
15738 # Guess no on Android.
15739 linux
*-android*) gl_cv_func_memchr_works
="guessing no" ;;
15740 # Guess yes on native Windows.
15741 mingw
*) gl_cv_func_memchr_works
="guessing yes" ;;
15742 # If we don't know, obey --enable-cross-guesses.
15743 *) gl_cv_func_memchr_works
="$gl_cross_guess_normal" ;;
15747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15748 /* end confdefs.h. */
15750 #include <string.h>
15751 #if HAVE_SYS_MMAN_H
15752 # include <fcntl.h>
15753 # include <unistd.h>
15754 # include <sys/types.h>
15755 # include <sys/mman.h>
15757 # define MAP_FILE 0
15766 char *fence = NULL;
15767 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
15768 # if HAVE_MAP_ANONYMOUS
15769 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
15771 # else /* !HAVE_MAP_ANONYMOUS */
15772 const int flags = MAP_FILE | MAP_PRIVATE;
15773 int fd = open ("/dev/zero", O_RDONLY, 0666);
15777 int pagesize = getpagesize ();
15779 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
15781 if (two_pages != (char *)(-1)
15782 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
15783 fence = two_pages + pagesize;
15788 /* Test against bugs on glibc systems. */
15789 if (memchr (fence, 0, 0))
15791 strcpy (fence - 9, "12345678");
15792 if (memchr (fence - 9, 0, 79) != fence - 1)
15794 if (memchr (fence - 1, 0, 3) != fence - 1)
15796 /* Test against bug on AIX 7.2. */
15797 if (memchr (fence - 4, '6', 16) != fence - 4)
15800 /* Test against bug on Android 4.3. */
15806 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
15815 if ac_fn_c_try_run
"$LINENO"; then :
15816 gl_cv_func_memchr_works
=yes
15818 gl_cv_func_memchr_works
=no
15820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
15827 $as_echo "$gl_cv_func_memchr_works" >&6; }
15828 case "$gl_cv_func_memchr_works" in
15830 *) REPLACE_MEMCHR
=1 ;;
15833 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
15834 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
15840 cat >>confdefs.h
<<_ACEOF
15841 #define HAVE_DECL_MEMMEM $ac_have_decl
15848 for ac_func
in memmem
15850 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
15851 if test "x$ac_cv_func_memmem" = xyes
; then :
15852 cat >>confdefs.h
<<_ACEOF
15853 #define HAVE_MEMMEM 1
15859 if test $ac_cv_func_memmem = yes; then
15865 if test $ac_cv_have_decl_memmem = no
; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15869 $as_echo_n "checking whether memmem works... " >&6; }
15870 if ${gl_cv_func_memmem_works_always+:} false
; then :
15871 $as_echo_n "(cached) " >&6
15873 if test "$cross_compiling" = yes; then :
15874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h. */
15877 #ifdef __GNU_LIBRARY__
15878 #include <features.h>
15879 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15880 || __GLIBC_MINOR__ > 12)) \
15881 || (__GLIBC__ > 2)) \
15882 || defined __UCLIBC__
15885 #elif defined __CYGWIN__
15886 #include <cygwin/version.h>
15887 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15896 $EGREP "Lucky user" >/dev
/null
2>&1; then :
15897 gl_cv_func_memmem_works_always
="guessing yes"
15899 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
15905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15908 #include <string.h> /* for memmem */
15909 #define P "_EF_BF_BD"
15910 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15911 #define NEEDLE P P P P P
15918 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15920 /* Check for empty needle behavior. */
15922 const char *haystack = "AAA";
15923 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
15932 if ac_fn_c_try_run
"$LINENO"; then :
15933 gl_cv_func_memmem_works_always
=yes
15935 gl_cv_func_memmem_works_always
=no
15937 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15938 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15944 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15945 case "$gl_cv_func_memmem_works_always" in
15954 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
15955 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
15961 cat >>confdefs.h
<<_ACEOF
15962 #define HAVE_DECL_MEMRCHR $ac_have_decl
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
15970 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
15971 if ${gl_cv_minmax_in_limits_h+:} false
; then :
15972 $as_echo_n "(cached) " >&6
15974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 #include <limits.h>
15977 int x = MIN (42, 17);
15986 if ac_fn_c_try_compile
"$LINENO"; then :
15987 gl_cv_minmax_in_limits_h
=yes
15989 gl_cv_minmax_in_limits_h
=no
15991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
15994 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
15995 if test $gl_cv_minmax_in_limits_h = yes; then
15997 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
16007 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
16008 if ${gl_cv_minmax_in_sys_param_h+:} false
; then :
16009 $as_echo_n "(cached) " >&6
16011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 #include <sys/param.h>
16014 int x = MIN (42, 17);
16023 if ac_fn_c_try_compile
"$LINENO"; then :
16024 gl_cv_minmax_in_sys_param_h
=yes
16026 gl_cv_minmax_in_sys_param_h
=no
16028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
16031 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
16032 if test $gl_cv_minmax_in_sys_param_h = yes; then
16034 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
16048 $as_echo_n "checking for O_CLOEXEC... " >&6; }
16049 if ${gl_cv_macro_O_CLOEXEC+:} false
; then :
16050 $as_echo_n "(cached) " >&6
16052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16067 if ac_fn_c_try_compile
"$LINENO"; then :
16068 gl_cv_macro_O_CLOEXEC
=yes
16070 gl_cv_macro_O_CLOEXEC
=no
16072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
16075 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
16080 $as_echo_n "checking for promoted mode_t type... " >&6; }
16081 if ${gl_cv_promoted_mode_t+:} false
; then :
16082 $as_echo_n "(cached) " >&6
16085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16086 /* end confdefs.h. */
16087 #include <sys/types.h>
16091 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
16096 if ac_fn_c_try_compile
"$LINENO"; then :
16097 gl_cv_promoted_mode_t
='int'
16099 gl_cv_promoted_mode_t
='mode_t'
16101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
16105 $as_echo "$gl_cv_promoted_mode_t" >&6; }
16107 cat >>confdefs.h
<<_ACEOF
16108 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
16120 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
16121 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
16127 cat >>confdefs.h
<<_ACEOF
16128 #define HAVE_DECL_SETENV $ac_have_decl
16136 if test $ac_cv_have_decl_setenv = no
; then
16144 for ac_header
in search.h
16146 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
16147 if test "x$ac_cv_header_search_h" = xyes
; then :
16148 cat >>confdefs.h
<<_ACEOF
16149 #define HAVE_SEARCH_H 1
16156 for ac_func
in tsearch
16158 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
16159 if test "x$ac_cv_func_tsearch" = xyes
; then :
16160 cat >>confdefs.h
<<_ACEOF
16161 #define HAVE_TSEARCH 1
16170 GNULIB_PTHREAD_SIGMASK
=0;
16172 GNULIB_SIGNAL_H_SIGPIPE
=0;
16173 GNULIB_SIGPROCMASK
=0;
16174 GNULIB_SIGACTION
=0;
16175 HAVE_POSIX_SIGNALBLOCKING
=1;
16176 HAVE_PTHREAD_SIGMASK
=1;
16181 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
16183 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
16185 HAVE_SIGHANDLER_T
=1;
16186 REPLACE_PTHREAD_SIGMASK
=0;
16190 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
16191 #include <signal.h>
16192 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
16193 #include <sys/types.h>
16196 if test "x$ac_cv_type_sigset_t" = xyes
; then :
16198 cat >>confdefs.h
<<_ACEOF
16199 #define HAVE_SIGSET_T 1
16202 gl_cv_type_sigset_t
=yes
16204 gl_cv_type_sigset_t
=no
16207 if test $gl_cv_type_sigset_t != yes; then
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16212 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16213 if ${ac_cv_type_uid_t+:} false
; then :
16214 $as_echo_n "(cached) " >&6
16216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16218 #include <sys/types.h>
16221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16222 $EGREP "uid_t" >/dev
/null
2>&1; then :
16223 ac_cv_type_uid_t
=yes
16225 ac_cv_type_uid_t
=no
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16231 $as_echo "$ac_cv_type_uid_t" >&6; }
16232 if test $ac_cv_type_uid_t = no
; then
16234 $as_echo "#define uid_t int" >>confdefs.h
16237 $as_echo "#define gid_t int" >>confdefs.h
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16242 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16243 if ${ac_cv_header_stdbool_h+:} false
; then :
16244 $as_echo_n "(cached) " >&6
16246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16249 #include <stdbool.h>
16254 typedef _Bool Bool;
16256 "error: bool is not defined"
16259 "error: false is not defined"
16262 "error: false is not 0"
16265 "error: true is not defined"
16268 "error: true is not 1"
16272 #ifndef __bool_true_false_are_defined
16273 "error: __bool_true_false_are_defined is not defined"
16276 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
16278 char a[true == 1 ? 1 : -1];
16279 char b[false == 0 ? 1 : -1];
16280 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16281 char d[(bool) 0.5 == true ? 1 : -1];
16282 /* See body of main program for 'e'. */
16283 char f[(Bool) 0.0 == false ? 1 : -1];
16285 char h[sizeof (Bool)];
16286 char i[sizeof s.t];
16287 enum { j = false, k = true, l = false * true, m = true * 256 };
16288 /* The following fails for
16289 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16291 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16292 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16293 /* Catch a bug in an HP-UX C compiler. See
16294 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16295 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
16306 *pq |= q; *pq |= ! q;
16307 *qq |= q; *qq |= ! q;
16308 /* Refer to every declared value, to avoid compiler optimizations. */
16309 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16310 + !m + !n + !o + !p + !q + !pq + !qq);
16316 if ac_fn_c_try_compile
"$LINENO"; then :
16317 ac_cv_header_stdbool_h
=yes
16319 ac_cv_header_stdbool_h
=no
16321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16324 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16325 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16326 if test "x$ac_cv_type__Bool" = xyes
; then :
16328 cat >>confdefs.h
<<_ACEOF
16329 #define HAVE__BOOL 1
16336 ac_fn_c_check_decl
"$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default"
16337 if test "x$ac_cv_have_decl_fcloseall" = xyes
; then :
16343 cat >>confdefs.h
<<_ACEOF
16344 #define HAVE_DECL_FCLOSEALL $ac_have_decl
16347 ac_fn_c_check_decl
"$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default"
16348 if test "x$ac_cv_have_decl_ecvt" = xyes
; then :
16354 cat >>confdefs.h
<<_ACEOF
16355 #define HAVE_DECL_ECVT $ac_have_decl
16358 ac_fn_c_check_decl
"$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default"
16359 if test "x$ac_cv_have_decl_fcvt" = xyes
; then :
16365 cat >>confdefs.h
<<_ACEOF
16366 #define HAVE_DECL_FCVT $ac_have_decl
16369 ac_fn_c_check_decl
"$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default"
16370 if test "x$ac_cv_have_decl_gcvt" = xyes
; then :
16376 cat >>confdefs.h
<<_ACEOF
16377 #define HAVE_DECL_GCVT $ac_have_decl
16380 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
16381 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
16387 cat >>confdefs.h
<<_ACEOF
16388 #define HAVE_DECL_STRDUP $ac_have_decl
16392 REPLACE_STRERROR_0
=0
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
16394 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
16395 if ${gl_cv_func_strerror_0_works+:} false
; then :
16396 $as_echo_n "(cached) " >&6
16398 if test "$cross_compiling" = yes; then :
16400 # Guess yes on glibc systems.
16401 *-gnu* | gnu
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16402 # Guess yes on musl systems.
16403 *-musl*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16404 # Guess yes on native Windows.
16405 mingw
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
16406 # If we don't know, obey --enable-cross-guesses.
16407 *) gl_cv_func_strerror_0_works
="$gl_cross_guess_normal" ;;
16411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16413 #include <string.h>
16422 str = strerror (0);
16423 if (!*str) result |= 1;
16424 if (errno) result |= 2;
16425 if (strstr (str, "nknown") || strstr (str, "ndefined"))
16432 if ac_fn_c_try_run
"$LINENO"; then :
16433 gl_cv_func_strerror_0_works
=yes
16435 gl_cv_func_strerror_0_works
=no
16437 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16438 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
16444 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
16445 case "$gl_cv_func_strerror_0_works" in
16448 REPLACE_STRERROR_0
=1
16450 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
16464 if test $ac_cv_func_strerror_r = yes; then
16465 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
16467 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
16468 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
16469 $as_echo_n "(cached) " >&6
16471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16473 #include <string.h>
16474 int strerror_r (int, char *, size_t);
16484 if ac_fn_c_try_compile
"$LINENO"; then :
16485 gl_cv_func_strerror_r_posix_signature
=yes
16487 gl_cv_func_strerror_r_posix_signature
=no
16489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
16493 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
16494 if test $gl_cv_func_strerror_r_posix_signature = yes; then
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
16496 $as_echo_n "checking whether strerror_r works... " >&6; }
16497 if ${gl_cv_func_strerror_r_works+:} false
; then :
16498 $as_echo_n "(cached) " >&6
16500 if test "$cross_compiling" = yes; then :
16504 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
16505 # Guess no on HP-UX.
16506 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
16507 # Guess no on BSD variants.
16508 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
16509 # Guess yes otherwise.
16510 *) gl_cv_func_strerror_r_works
="guessing yes";;
16514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16517 #include <string.h>
16524 if (strerror_r (EACCES, buf, 0) < 0)
16527 if (strerror_r (EACCES, buf, sizeof buf) != 0)
16529 strcpy (buf, "Unknown");
16530 if (strerror_r (0, buf, sizeof buf) != 0)
16534 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
16538 if (strerror_r (-3, buf, sizeof buf) < 0)
16550 if ac_fn_c_try_run
"$LINENO"; then :
16551 gl_cv_func_strerror_r_works
=yes
16553 gl_cv_func_strerror_r_works
=no
16555 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16556 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16562 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16565 if test $ac_cv_func___xpg_strerror_r = yes; then
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
16567 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
16568 if ${gl_cv_func_strerror_r_works+:} false
; then :
16569 $as_echo_n "(cached) " >&6
16571 if test "$cross_compiling" = yes; then :
16572 gl_cv_func_strerror_r_works
="$gl_cross_guess_normal"
16575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h. */
16578 #include <string.h>
16583 int __xpg_strerror_r(int, char *, size_t);
16589 char buf[256] = "^";
16591 char *str = strerror (-1);
16592 strcpy (copy, str);
16593 if (__xpg_strerror_r (-2, buf, 1) == 0)
16597 __xpg_strerror_r (-2, buf, 256);
16598 if (strcmp (str, copy))
16606 if ac_fn_c_try_run
"$LINENO"; then :
16607 gl_cv_func_strerror_r_works
=yes
16609 gl_cv_func_strerror_r_works
=no
16611 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16612 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16618 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16624 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16625 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
16631 cat >>confdefs.h
<<_ACEOF
16632 #define HAVE_DECL_STRERROR_R $ac_have_decl
16649 if test $gl_cv_have_include_next = yes; then
16650 gl_cv_next_string_h
='<'string.h
'>'
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
16653 $as_echo_n "checking absolute name of <string.h>... " >&6; }
16654 if ${gl_cv_next_string_h+:} false
; then :
16655 $as_echo_n "(cached) " >&6
16660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16661 /* end confdefs.h. */
16662 #include <string.h>
16665 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16666 *) gl_absname_cpp
="$ac_cpp" ;;
16671 gl_dirsep_regex
='[/\\]'
16674 gl_dirsep_regex
='\/'
16677 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16678 gl_header_literal_regex
=`echo 'string.h' \
16679 | sed -e "$gl_make_literal_regex_sed"`
16680 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16681 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16687 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16688 sed -n "$gl_absolute_header_sed"`
16690 gl_header
=$gl_cv_absolute_string_h
16691 gl_cv_next_string_h
='"'$gl_header'"'
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
16696 $as_echo "$gl_cv_next_string_h" >&6; }
16698 NEXT_STRING_H
=$gl_cv_next_string_h
16700 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16701 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16702 gl_next_as_first_directive
='<'string.h
'>'
16704 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16705 gl_next_as_first_directive
=$gl_cv_next_string_h
16707 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
16733 if test $gl_cv_have_include_next = yes; then
16734 gl_cv_next_strings_h
='<'strings.h
'>'
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
16737 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
16738 if ${gl_cv_next_strings_h+:} false
; then :
16739 $as_echo_n "(cached) " >&6
16742 if test $ac_cv_header_strings_h = yes; then
16747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16749 #include <strings.h>
16752 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16753 *) gl_absname_cpp
="$ac_cpp" ;;
16758 gl_dirsep_regex
='[/\\]'
16761 gl_dirsep_regex
='\/'
16764 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16765 gl_header_literal_regex
=`echo 'strings.h' \
16766 | sed -e "$gl_make_literal_regex_sed"`
16767 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16768 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16774 gl_cv_absolute_strings_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16775 sed -n "$gl_absolute_header_sed"`
16777 gl_header
=$gl_cv_absolute_strings_h
16778 gl_cv_next_strings_h
='"'$gl_header'"'
16780 gl_cv_next_strings_h
='<'strings.h
'>'
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
16786 $as_echo "$gl_cv_next_strings_h" >&6; }
16788 NEXT_STRINGS_H
=$gl_cv_next_strings_h
16790 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16791 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16792 gl_next_as_first_directive
='<'strings.h
'>'
16794 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16795 gl_next_as_first_directive
=$gl_cv_next_strings_h
16797 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
=$gl_next_as_first_directive
16802 if test $ac_cv_header_strings_h = yes; then
16813 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16814 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16820 cat >>confdefs.h
<<_ACEOF
16821 #define HAVE_DECL_STRNLEN $ac_have_decl
16827 if test $REPLACE_MEMCHR = 1; then
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
16831 $as_echo_n "checking whether strstr works... " >&6; }
16832 if ${gl_cv_func_strstr_works_always+:} false
; then :
16833 $as_echo_n "(cached) " >&6
16835 if test "$cross_compiling" = yes; then :
16836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16839 #ifdef __GNU_LIBRARY__
16840 #include <features.h>
16841 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16842 || defined __UCLIBC__
16845 #elif defined __CYGWIN__
16846 #include <cygwin/version.h>
16847 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16856 $EGREP "Lucky user" >/dev
/null
2>&1; then :
16857 gl_cv_func_strstr_works_always
="guessing yes"
16859 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
16865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16868 #include <string.h> /* for strstr */
16869 #ifdef __GNU_LIBRARY__
16870 #include <features.h>
16871 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
16875 #define P "_EF_BF_BD"
16876 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16877 #define NEEDLE P P P P P
16882 return !!strstr (HAYSTACK, NEEDLE);
16888 if ac_fn_c_try_run
"$LINENO"; then :
16889 gl_cv_func_strstr_works_always
=yes
16891 gl_cv_func_strstr_works_always
=no
16893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
16900 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
16901 case "$gl_cv_func_strstr_works_always" in
16909 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
16910 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
16916 cat >>confdefs.h
<<_ACEOF
16917 #define HAVE_DECL_STRTOK_R $ac_have_decl
16932 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
16944 if test $gl_cv_have_include_next = yes; then
16945 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16948 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16949 if ${gl_cv_next_sys_types_h+:} false
; then :
16950 $as_echo_n "(cached) " >&6
16955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 #include <sys/types.h>
16960 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16961 *) gl_absname_cpp
="$ac_cpp" ;;
16966 gl_dirsep_regex
='[/\\]'
16969 gl_dirsep_regex
='\/'
16972 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16973 gl_header_literal_regex
=`echo 'sys/types.h' \
16974 | sed -e "$gl_make_literal_regex_sed"`
16975 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16976 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16982 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16983 sed -n "$gl_absolute_header_sed"`
16985 gl_header
=$gl_cv_absolute_sys_types_h
16986 gl_cv_next_sys_types_h
='"'$gl_header'"'
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16991 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16993 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
16995 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16997 gl_next_as_first_directive
='<'sys
/types.h
'>'
16999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17000 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
17002 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
17015 WINDOWS_STAT_INODES
=0
17026 GNULIB_LOCALTIME
=0;
17027 GNULIB_NANOSLEEP
=0;
17031 GNULIB_TIMESPEC_GET
=0;
17035 GNULIB_MDA_TZSET
=1;
17036 HAVE_DECL_LOCALTIME_R
=1;
17040 HAVE_TIMESPEC_GET
=1;
17042 REPLACE_CTIME
=GNULIB_PORTCHECK
;
17043 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
17044 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
17045 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
17046 REPLACE_STRFTIME
=GNULIB_PORTCHECK
;
17047 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
17048 REPLACE_TZSET
=GNULIB_PORTCHECK
;
17050 : ${GNULIB_GETTIMEOFDAY=0};
17052 REPLACE_LOCALTIME
=0;
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
17057 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
17058 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
17059 $as_echo_n "(cached) " >&6
17061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h. */
17068 static struct timespec x; x.tv_sec = x.tv_nsec;
17073 if ac_fn_c_try_compile
"$LINENO"; then :
17074 gl_cv_sys_struct_timespec_in_time_h
=yes
17076 gl_cv_sys_struct_timespec_in_time_h
=no
17078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
17081 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
17083 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
17084 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
17085 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
17086 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
17087 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
17088 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
17091 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
17092 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
17093 $as_echo_n "(cached) " >&6
17095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17097 #include <sys/time.h>
17102 static struct timespec x; x.tv_sec = x.tv_nsec;
17107 if ac_fn_c_try_compile
"$LINENO"; then :
17108 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
17110 gl_cv_sys_struct_timespec_in_sys_time_h
=no
17112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
17115 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
17116 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
17117 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
17120 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
17121 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
17122 $as_echo_n "(cached) " >&6
17124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h. */
17126 #include <pthread.h>
17131 static struct timespec x; x.tv_sec = x.tv_nsec;
17136 if ac_fn_c_try_compile
"$LINENO"; then :
17137 gl_cv_sys_struct_timespec_in_pthread_h
=yes
17139 gl_cv_sys_struct_timespec_in_pthread_h
=no
17141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
17144 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
17145 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
17146 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
17149 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
17150 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
17151 $as_echo_n "(cached) " >&6
17153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h. */
17155 #include <unistd.h>
17160 static struct timespec x; x.tv_sec = x.tv_nsec;
17165 if ac_fn_c_try_compile
"$LINENO"; then :
17166 gl_cv_sys_struct_timespec_in_unistd_h
=yes
17168 gl_cv_sys_struct_timespec_in_unistd_h
=no
17170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
17173 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
17174 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
17175 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
17196 if test $gl_cv_have_include_next = yes; then
17197 gl_cv_next_time_h
='<'time.h
'>'
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
17200 $as_echo_n "checking absolute name of <time.h>... " >&6; }
17201 if ${gl_cv_next_time_h+:} false
; then :
17202 $as_echo_n "(cached) " >&6
17207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17208 /* end confdefs.h. */
17212 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17213 *) gl_absname_cpp
="$ac_cpp" ;;
17218 gl_dirsep_regex
='[/\\]'
17221 gl_dirsep_regex
='\/'
17224 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17225 gl_header_literal_regex
=`echo 'time.h' \
17226 | sed -e "$gl_make_literal_regex_sed"`
17227 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17228 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17234 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17235 sed -n "$gl_absolute_header_sed"`
17237 gl_header
=$gl_cv_absolute_time_h
17238 gl_cv_next_time_h
='"'$gl_header'"'
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
17243 $as_echo "$gl_cv_next_time_h" >&6; }
17245 NEXT_TIME_H
=$gl_cv_next_time_h
17247 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17249 gl_next_as_first_directive
='<'time.h
'>'
17251 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17252 gl_next_as_first_directive
=$gl_cv_next_time_h
17254 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
17264 $as_echo_n "checking for TIME_UTC in <time.h>... " >&6; }
17265 if ${gl_cv_time_h_has_TIME_UTC+:} false
; then :
17266 $as_echo_n "(cached) " >&6
17268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17269 /* end confdefs.h. */
17275 static int x = TIME_UTC; x++;
17280 if ac_fn_c_try_compile
"$LINENO"; then :
17281 gl_cv_time_h_has_TIME_UTC
=yes
17283 gl_cv_time_h_has_TIME_UTC
=no
17285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
17288 $as_echo "$gl_cv_time_h_has_TIME_UTC" >&6; }
17289 if test $gl_cv_time_h_has_TIME_UTC = yes; then
17290 TIME_H_DEFINES_TIME_UTC
=1
17292 TIME_H_DEFINES_TIME_UTC
=0
17298 ac_fn_c_check_decl
"$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default"
17299 if test "x$ac_cv_have_decl_execvpe" = xyes
; then :
17305 cat >>confdefs.h
<<_ACEOF
17306 #define HAVE_DECL_EXECVPE $ac_have_decl
17309 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
17310 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
17316 cat >>confdefs.h
<<_ACEOF
17317 #define HAVE_DECL_UNSETENV $ac_have_decl
17324 if test $ac_cv_header_crtdefs_h = yes; then
17334 GNULIB_ISWXDIGIT
=0;
17338 GNULIB_TOWCTRANS
=0;
17342 REPLACE_ISWBLANK
=0;
17343 REPLACE_ISWDIGIT
=0;
17344 REPLACE_ISWXDIGIT
=0;
17354 GL_COND_LIBTOOL_TRUE
=
17355 GL_COND_LIBTOOL_FALSE
='#'
17357 GL_COND_LIBTOOL_TRUE
='#'
17358 GL_COND_LIBTOOL_FALSE
=
17361 gl_cond_libtool
=false
17364 gl_m4_base
='import/m4'
17375 gl_source_base
='import'
17378 if test $ac_cv_func_alloca_works = no
; then
17382 # Define an additional variable used in the Makefile substitution.
17383 if test $ac_cv_working_alloca_h = yes; then
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
17385 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
17386 if ${gl_cv_rpl_alloca+:} false
; then :
17387 $as_echo_n "(cached) " >&6
17390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17393 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17399 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
17400 gl_cv_rpl_alloca
=yes
17402 gl_cv_rpl_alloca
=no
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
17409 $as_echo "$gl_cv_rpl_alloca" >&6; }
17410 if test $gl_cv_rpl_alloca = yes; then
17412 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17422 if test -n "$ALLOCA_H"; then
17423 GL_GENERATE_ALLOCA_H_TRUE
=
17424 GL_GENERATE_ALLOCA_H_FALSE
='#'
17426 GL_GENERATE_ALLOCA_H_TRUE
='#'
17427 GL_GENERATE_ALLOCA_H_FALSE
=
17431 if test $ac_cv_working_alloca_h = yes; then
17442 if test $ac_cv_header_arpa_inet_h = yes; then
17457 if test $gl_cv_have_include_next = yes; then
17458 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
17461 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
17462 if ${gl_cv_next_arpa_inet_h+:} false
; then :
17463 $as_echo_n "(cached) " >&6
17466 if test $ac_cv_header_arpa_inet_h = yes; then
17471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17473 #include <arpa/inet.h>
17476 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17477 *) gl_absname_cpp
="$ac_cpp" ;;
17482 gl_dirsep_regex
='[/\\]'
17485 gl_dirsep_regex
='\/'
17488 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17489 gl_header_literal_regex
=`echo 'arpa/inet.h' \
17490 | sed -e "$gl_make_literal_regex_sed"`
17491 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17492 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17498 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17499 sed -n "$gl_absolute_header_sed"`
17501 gl_header
=$gl_cv_absolute_arpa_inet_h
17502 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
17504 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
17510 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
17512 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
17514 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17515 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17516 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
17518 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17519 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
17521 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
17531 if test $ac_cv_header_sys_socket_h = yes; then
17534 if test $ac_cv_header_ws2tcpip_h = yes; then
17555 if test $ac_cv_func_btowc = no
; then
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
17563 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
17564 if ${gl_cv_func_btowc_nul+:} false
; then :
17565 $as_echo_n "(cached) " >&6
17568 if test "$cross_compiling" = yes; then :
17571 # Guess no on Cygwin.
17572 cygwin
*) gl_cv_func_btowc_nul
="guessing no" ;;
17573 # Guess yes on native Windows.
17574 mingw
*) gl_cv_func_btowc_nul
="guessing yes" ;;
17575 # Guess yes otherwise.
17576 *) gl_cv_func_btowc_nul
="guessing yes" ;;
17580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17586 if (btowc ('\0') != 0)
17591 if ac_fn_c_try_run
"$LINENO"; then :
17592 gl_cv_func_btowc_nul
=yes
17594 gl_cv_func_btowc_nul
=no
17596 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17597 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
17603 $as_echo "$gl_cv_func_btowc_nul" >&6; }
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
17606 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
17607 if ${gl_cv_func_btowc_eof+:} false
; then :
17608 $as_echo_n "(cached) " >&6
17612 # Guess no on IRIX.
17613 irix
*) gl_cv_func_btowc_eof
="guessing no" ;;
17614 # Guess yes on native Windows.
17615 mingw
*) gl_cv_func_btowc_eof
="guessing yes" ;;
17616 # Guess yes otherwise.
17617 *) gl_cv_func_btowc_eof
="guessing yes" ;;
17619 if test $LOCALE_FR != none
; then
17620 if test "$cross_compiling" = yes; then :
17623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17626 #include <locale.h>
17631 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
17633 if (btowc (EOF) != WEOF)
17639 if ac_fn_c_try_run
"$LINENO"; then :
17640 gl_cv_func_btowc_eof
=yes
17642 gl_cv_func_btowc_eof
=no
17644 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17645 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
17652 $as_echo "$gl_cv_func_btowc_eof" >&6; }
17654 case "$gl_cv_func_btowc_nul" in
17656 *) REPLACE_BTOWC
=1 ;;
17658 case "$gl_cv_func_btowc_eof" in
17660 *) REPLACE_BTOWC
=1 ;;
17664 if test $HAVE_BTOWC = 0 ||
test $REPLACE_BTOWC = 1; then
17673 gl_LIBOBJS
="$gl_LIBOBJS btowc.$ac_objext"
17690 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
17696 $as_echo_n "checking for __builtin_expect... " >&6; }
17697 if ${gl_cv___builtin_expect+:} false
; then :
17698 $as_echo_n "(cached) " >&6
17700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17701 /* end confdefs.h. */
17704 main (int argc, char **argv)
17706 argc = __builtin_expect (argc, 100);
17707 return argv[argc != 100][0];
17710 if ac_fn_c_try_link
"$LINENO"; then :
17711 gl_cv___builtin_expect
=yes
17713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17714 /* end confdefs.h. */
17716 #include <builtins.h>
17718 main (int argc, char **argv)
17720 argc = __builtin_expect (argc, 100);
17721 return argv[argc != 100][0];
17724 if ac_fn_c_try_link
"$LINENO"; then :
17725 gl_cv___builtin_expect
="in <builtins.h>"
17727 gl_cv___builtin_expect
=no
17729 rm -f core conftest.err conftest.
$ac_objext \
17730 conftest
$ac_exeext conftest.
$ac_ext
17732 rm -f core conftest.err conftest.
$ac_objext \
17733 conftest
$ac_exeext conftest.
$ac_ext
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
17736 $as_echo "$gl_cv___builtin_expect" >&6; }
17737 if test "$gl_cv___builtin_expect" = yes; then
17738 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
17740 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
17741 $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
17749 if test $ac_cv_func_canonicalize_file_name = no
; then
17750 HAVE_CANONICALIZE_FILE_NAME
=0
17751 if test $ac_cv_func_realpath = no
; then
17754 case "$gl_cv_func_realpath_works" in
17756 *) REPLACE_REALPATH
=1 ;;
17760 case "$gl_cv_func_realpath_works" in
17764 REPLACE_CANONICALIZE_FILE_NAME
=1
17770 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
17779 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
17784 cat >>confdefs.h
<<_ACEOF
17785 #define GNULIB_CANONICALIZE_LGPL 1
17794 GNULIB_CANONICALIZE_FILE_NAME
=1
17800 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
17815 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
17830 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system supports file names of any length" >&5
17837 $as_echo_n "checking whether this system supports file names of any length... " >&6; }
17838 if ${gl_cv_have_unlimited_file_name_length+:} false
; then :
17839 $as_echo_n "(cached) " >&6
17841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17842 /* end confdefs.h. */
17844 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17846 # include <unistd.h>
17848 #include <limits.h>
17849 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17850 # include <sys/param.h>
17852 #if !defined PATH_MAX && defined MAXPATHLEN
17853 # define PATH_MAX MAXPATHLEN
17857 # define PATH_MAX 1024
17859 #if defined _WIN32 && ! defined __CYGWIN__
17861 # define PATH_MAX 260
17865 have_arbitrary_file_name_length_limit
17868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17869 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
17870 gl_cv_have_unlimited_file_name_length
=no
17872 gl_cv_have_unlimited_file_name_length
=yes
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_unlimited_file_name_length" >&5
17878 $as_echo "$gl_cv_have_unlimited_file_name_length" >&6; }
17880 if test $gl_cv_have_unlimited_file_name_length = no
; then
17889 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
17896 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
17897 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
17899 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
17900 # programs in the package would end up linked with that potentially-shared
17901 # library, inducing unnecessary run-time overhead.
17904 gl_saved_libs
=$LIBS
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17906 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17907 if ${ac_cv_search_clock_gettime+:} false
; then :
17908 $as_echo_n "(cached) " >&6
17910 ac_func_search_save_LIBS
=$LIBS
17911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h. */
17914 /* Override any GCC internal prototype to avoid an error.
17915 Use char because int might match the return type of a GCC
17916 builtin and then its argument prototype would still apply. */
17920 char clock_gettime ();
17924 return clock_gettime ();
17929 for ac_lib
in '' rt posix4
; do
17930 if test -z "$ac_lib"; then
17931 ac_res
="none required"
17934 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17936 if ac_fn_c_try_link
"$LINENO"; then :
17937 ac_cv_search_clock_gettime
=$ac_res
17939 rm -f core conftest.err conftest.
$ac_objext \
17941 if ${ac_cv_search_clock_gettime+:} false
; then :
17945 if ${ac_cv_search_clock_gettime+:} false
; then :
17948 ac_cv_search_clock_gettime
=no
17950 rm conftest.
$ac_ext
17951 LIBS
=$ac_func_search_save_LIBS
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17954 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17955 ac_res
=$ac_cv_search_clock_gettime
17956 if test "$ac_res" != no
; then :
17957 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17958 test "$ac_cv_search_clock_gettime" = "none required" ||
17959 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
17962 for ac_func
in clock_gettime clock_settime
17964 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17965 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17966 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17967 cat >>confdefs.h
<<_ACEOF
17968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17974 LIBS
=$gl_saved_libs
17978 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
17985 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17994 if test $ac_cv_header_sys_socket_h != yes; then
17995 for ac_header
in winsock2.h
17997 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17998 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
17999 cat >>confdefs.h
<<_ACEOF
18000 #define HAVE_WINSOCK2_H 1
18008 if test "$ac_cv_header_winsock2_h" = yes; then
18010 UNISTD_H_HAVE_WINSOCK2_H
=1
18011 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18017 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
18022 if test $REPLACE_CLOSE = 0; then
18026 if test $ac_cv_func_fchdir = no
; then
18030 if test $HAVE_FCHDIR = 0; then
18036 if test $REPLACE_CLOSE = 1; then
18045 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
18059 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
18066 for ac_func
in closedir
18068 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
18069 if test "x$ac_cv_func_closedir" = xyes
; then :
18070 cat >>confdefs.h
<<_ACEOF
18071 #define HAVE_CLOSEDIR 1
18077 if test $ac_cv_func_closedir = no
; then
18084 if test $ac_cv_func_fchdir = no
; then
18088 if test $HAVE_FCHDIR = 0; then
18089 if test $HAVE_CLOSEDIR = 1; then
18094 case $host_os,$HAVE_CLOSEDIR in
18096 REPLACE_CLOSEDIR
=1;;
18099 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
18108 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
18122 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
18137 if test $gl_cv_have_include_next = yes; then
18138 gl_cv_next_ctype_h
='<'ctype.h
'>'
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
18141 $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
18142 if ${gl_cv_next_ctype_h+:} false
; then :
18143 $as_echo_n "(cached) " >&6
18148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18149 /* end confdefs.h. */
18153 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18154 *) gl_absname_cpp
="$ac_cpp" ;;
18159 gl_dirsep_regex
='[/\\]'
18162 gl_dirsep_regex
='\/'
18165 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18166 gl_header_literal_regex
=`echo 'ctype.h' \
18167 | sed -e "$gl_make_literal_regex_sed"`
18168 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18169 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18175 gl_cv_absolute_ctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18176 sed -n "$gl_absolute_header_sed"`
18178 gl_header
=$gl_cv_absolute_ctype_h
18179 gl_cv_next_ctype_h
='"'$gl_header'"'
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
18184 $as_echo "$gl_cv_next_ctype_h" >&6; }
18186 NEXT_CTYPE_H
=$gl_cv_next_ctype_h
18188 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18190 gl_next_as_first_directive
='<'ctype.h
'>'
18192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18193 gl_next_as_first_directive
=$gl_cv_next_ctype_h
18195 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
=$gl_next_as_first_directive
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
18206 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
18207 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
18208 $as_echo_n "(cached) " >&6
18210 if test "$cross_compiling" = yes; then :
18212 # Guess yes on glibc systems with Linux kernel.
18213 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
18214 # Guess yes on musl systems with Linux kernel.
18215 linux
*-musl*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
18216 # Guess no on native Windows.
18217 mingw
*) gl_cv_struct_dirent_d_ino
="guessing no" ;;
18218 # If we don't know, obey --enable-cross-guesses.
18219 *) gl_cv_struct_dirent_d_ino
="$gl_cross_guess_normal" ;;
18223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225 #include <sys/types.h>
18226 #include <sys/stat.h>
18227 #include <dirent.h>
18232 DIR *dp = opendir (".");
18239 { closedir (dp); return 2; }
18240 if (lstat (e->d_name, &st) != 0)
18241 { closedir (dp); return 3; }
18242 if (e->d_ino != st.st_ino)
18243 { closedir (dp); return 4; }
18251 if ac_fn_c_try_run
"$LINENO"; then :
18252 gl_cv_struct_dirent_d_ino
=yes
18254 gl_cv_struct_dirent_d_ino
=no
18256 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18257 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
18262 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
18263 case "$gl_cv_struct_dirent_d_ino" in
18266 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
18273 $as_echo_n "checking for d_type member in directory struct... " >&6; }
18274 if ${gl_cv_struct_dirent_d_type+:} false
; then :
18275 $as_echo_n "(cached) " >&6
18277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18278 /* end confdefs.h. */
18280 #include <sys/types.h>
18281 #include <dirent.h>
18286 struct dirent dp; dp.d_type = 0;
18291 if ac_fn_c_try_link
"$LINENO"; then :
18292 gl_cv_struct_dirent_d_type
=yes
18294 gl_cv_struct_dirent_d_type
=no
18296 rm -f core conftest.err conftest.
$ac_objext \
18297 conftest
$ac_exeext conftest.
$ac_ext
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
18302 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
18303 if test $gl_cv_struct_dirent_d_type = yes; then
18305 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
18322 if test $gl_cv_have_include_next = yes; then
18323 gl_cv_next_dirent_h
='<'dirent.h
'>'
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
18326 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
18327 if ${gl_cv_next_dirent_h+:} false
; then :
18328 $as_echo_n "(cached) " >&6
18331 if test $ac_cv_header_dirent_h = yes; then
18336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18337 /* end confdefs.h. */
18338 #include <dirent.h>
18341 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18342 *) gl_absname_cpp
="$ac_cpp" ;;
18347 gl_dirsep_regex
='[/\\]'
18350 gl_dirsep_regex
='\/'
18353 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18354 gl_header_literal_regex
=`echo 'dirent.h' \
18355 | sed -e "$gl_make_literal_regex_sed"`
18356 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18357 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18363 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18364 sed -n "$gl_absolute_header_sed"`
18366 gl_header
=$gl_cv_absolute_dirent_h
18367 gl_cv_next_dirent_h
='"'$gl_header'"'
18369 gl_cv_next_dirent_h
='<'dirent.h
'>'
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
18375 $as_echo "$gl_cv_next_dirent_h" >&6; }
18377 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
18379 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18380 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18381 gl_next_as_first_directive
='<'dirent.h
'>'
18383 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18384 gl_next_as_first_directive
=$gl_cv_next_dirent_h
18386 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
18391 if test $ac_cv_header_dirent_h = yes; then
18407 for ac_func
in dirfd
18409 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
18410 if test "x$ac_cv_func_dirfd" = xyes
; then :
18411 cat >>confdefs.h
<<_ACEOF
18412 #define HAVE_DIRFD 1
18418 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
18419 #include <dirent.h>
18421 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
18427 cat >>confdefs.h
<<_ACEOF
18428 #define HAVE_DECL_DIRFD $ac_have_decl
18431 if test $ac_cv_have_decl_dirfd = no
; then
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
18436 $as_echo_n "checking whether dirfd is a macro... " >&6; }
18437 if ${gl_cv_func_dirfd_macro+:} false
; then :
18438 $as_echo_n "(cached) " >&6
18440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h. */
18443 #include <sys/types.h>
18444 #include <dirent.h>
18446 dirent_header_defines_dirfd
18449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18450 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
18451 gl_cv_func_dirfd_macro
=yes
18453 gl_cv_func_dirfd_macro
=no
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
18459 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
18461 # Use the replacement if we have no function or macro with that name,
18462 # or if OS/2 kLIBC whose dirfd() does not work.
18463 # Replace only if the system declares dirfd already.
18464 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
18465 no
,no
,*,yes |
*,*,os2
*,yes)
18468 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
18472 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
18473 ||
test $REPLACE_DIRFD = 1; then
18482 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
18486 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
18487 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
18488 $as_echo_n "(cached) " >&6
18491 dirfd_save_CFLAGS
=$CFLAGS
18492 for ac_expr
in d_fd dd_fd
; do
18494 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
18495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18498 #include <sys/types.h>
18499 #include <dirent.h>
18503 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
18508 if ac_fn_c_try_compile
"$LINENO"; then :
18512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18513 CFLAGS
=$dirfd_save_CFLAGS
18514 test "$dir_fd_found" = yes && break
18516 test "$dir_fd_found" = yes || ac_expr
=no_such_member
18518 gl_cv_sys_dir_fd_member_name
=$ac_expr
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
18523 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
18524 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
18526 cat >>confdefs.h
<<_ACEOF
18527 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
18545 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
18552 $as_echo_n "checking whether // is distinct from /... " >&6; }
18553 if ${gl_cv_double_slash_root+:} false
; then :
18554 $as_echo_n "(cached) " >&6
18556 if test x
"$cross_compiling" = xyes
; then
18557 # When cross-compiling, there is no way to tell whether // is special
18558 # short of a list of hosts. However, the only known hosts to date
18559 # that have a distinct // are Apollo DomainOS (too old to port to),
18560 # Cygwin, and z/OS. If anyone knows of another system for which // has
18561 # special semantics and is distinct from /, please report it to
18562 # <bug-gnulib@gnu.org>.
18564 *-cygwin | i370-ibm-openedition
)
18565 gl_cv_double_slash_root
=yes ;;
18567 # Be optimistic and assume that / and // are the same when we
18569 gl_cv_double_slash_root
='unknown, assuming no' ;;
18572 set x
`ls -di / // 2>/dev/null`
18573 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
18574 gl_cv_double_slash_root
=no
18576 gl_cv_double_slash_root
=yes
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
18581 $as_echo "$gl_cv_double_slash_root" >&6; }
18582 if test "$gl_cv_double_slash_root" = yes; then
18584 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
18592 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
18600 if test $ac_cv_func_fchdir = no
; then
18604 if test $HAVE_FCHDIR = 0; then
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
18609 $as_echo_n "checking whether dup works... " >&6; }
18610 if ${gl_cv_func_dup_works+:} false
; then :
18611 $as_echo_n "(cached) " >&6
18613 if test "$cross_compiling" = yes; then :
18615 # Guess no on native Windows.
18616 mingw
*) gl_cv_func_dup_works
="guessing no" ;;
18617 *) gl_cv_func_dup_works
="guessing yes" ;;
18621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18622 /* end confdefs.h. */
18623 #include <unistd.h>
18633 /* On OS/2 kLIBC, dup does not work on a directory fd. */
18634 int fd = open (".", O_RDONLY);
18635 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
18642 if ac_fn_c_try_run
"$LINENO"; then :
18643 gl_cv_func_dup_works
=yes
18645 gl_cv_func_dup_works
=no
18647 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18648 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
18654 $as_echo "$gl_cv_func_dup_works" >&6; }
18655 case "$gl_cv_func_dup_works" in
18662 if test $REPLACE_DUP = 1; then
18671 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
18686 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
18694 $as_echo_n "checking whether dup2 works... " >&6; }
18695 if ${gl_cv_func_dup2_works+:} false
; then :
18696 $as_echo_n "(cached) " >&6
18698 if test "$cross_compiling" = yes; then :
18700 mingw
*) # on this platform, dup2 always returns 0 for success
18701 gl_cv_func_dup2_works
="guessing no" ;;
18702 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
18703 gl_cv_func_dup2_works
="guessing no" ;;
18705 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
18707 gl_cv_func_dup2_works
="guessing no" ;;
18708 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
18709 gl_cv_func_dup2_works
="guessing no" ;;
18710 *-android*) # implemented using dup3(), which fails if oldfd == newfd
18711 gl_cv_func_dup2_works
="guessing no" ;;
18712 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
18713 gl_cv_func_dup2_works
="guessing no" ;;
18714 *) gl_cv_func_dup2_works
="guessing yes" ;;
18717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18718 /* end confdefs.h. */
18722 #include <limits.h>
18723 #include <sys/resource.h>
18724 #include <unistd.h>
18729 #ifndef RLIM_SAVED_CUR
18730 # define RLIM_SAVED_CUR RLIM_INFINITY
18732 #ifndef RLIM_SAVED_MAX
18733 # define RLIM_SAVED_MAX RLIM_INFINITY
18740 int bad_fd = INT_MAX;
18741 struct rlimit rlim;
18742 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18743 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18744 && rlim.rlim_cur != RLIM_INFINITY
18745 && rlim.rlim_cur != RLIM_SAVED_MAX
18746 && rlim.rlim_cur != RLIM_SAVED_CUR)
18747 bad_fd = rlim.rlim_cur;
18749 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
18752 if (dup2 (1, 1) != 1)
18755 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
18759 if (dup2 (0, 0) != -1)
18761 /* Many gnulib modules require POSIX conformance of EBADF. */
18762 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
18764 /* Flush out some cygwin core dumps. */
18765 if (dup2 (2, -1) != -1 || errno != EBADF)
18769 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
18771 int fd = open (".", O_RDONLY);
18774 else if (dup2 (fd, fd + 1) == -1)
18784 if ac_fn_c_try_run
"$LINENO"; then :
18785 gl_cv_func_dup2_works
=yes
18787 gl_cv_func_dup2_works
=no
18789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18790 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18796 $as_echo "$gl_cv_func_dup2_works" >&6; }
18797 case "$gl_cv_func_dup2_works" in
18801 for ac_func
in setdtablesize
18803 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
18804 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
18805 cat >>confdefs.h
<<_ACEOF
18806 #define HAVE_SETDTABLESIZE 1
18818 if test $ac_cv_func_fchdir = no
; then
18822 if test $HAVE_FCHDIR = 0; then
18827 if test $REPLACE_DUP2 = 1; then
18836 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
18851 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
18867 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18874 $as_echo_n "checking for error_at_line... " >&6; }
18875 if ${ac_cv_lib_error_at_line+:} false
; then :
18876 $as_echo_n "(cached) " >&6
18878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18884 error_at_line (0, 0, "", 0, "an error occurred");
18889 if ac_fn_c_try_link
"$LINENO"; then :
18890 ac_cv_lib_error_at_line
=yes
18892 ac_cv_lib_error_at_line
=no
18894 rm -f core conftest.err conftest.
$ac_objext \
18895 conftest
$ac_exeext conftest.
$ac_ext
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18898 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18900 if test $ac_cv_lib_error_at_line = no
; then
18909 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
18923 if test $ac_cv_have_decl_fchdir = no
; then
18928 if test $HAVE_FCHDIR = 0; then
18937 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
18941 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
18944 $as_echo_n "checking whether open can visit directories... " >&6; }
18945 if ${gl_cv_func_open_directory_works+:} false
; then :
18946 $as_echo_n "(cached) " >&6
18948 if test "$cross_compiling" = yes; then :
18950 # Guess yes on Linux systems.
18951 linux-
* | linux
) gl_cv_func_open_directory_works
="guessing yes" ;;
18952 # Guess yes on glibc systems.
18953 *-gnu* | gnu
*) gl_cv_func_open_directory_works
="guessing yes" ;;
18954 # Guess no on native Windows.
18955 mingw
*) gl_cv_func_open_directory_works
="guessing no" ;;
18956 # If we don't know, obey --enable-cross-guesses.
18957 *) gl_cv_func_open_directory_works
="$gl_cross_guess_normal" ;;
18961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18962 /* end confdefs.h. */
18971 return open(".", O_RDONLY) < 0;
18976 if ac_fn_c_try_run
"$LINENO"; then :
18977 gl_cv_func_open_directory_works
=yes
18979 gl_cv_func_open_directory_works
=no
18981 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18982 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
18987 $as_echo "$gl_cv_func_open_directory_works" >&6; }
18988 case "$gl_cv_func_open_directory_works" in
18992 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
19009 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
19018 if test $ac_cv_func_fcntl = no
; then
19022 if test $ac_cv_func_fcntl = no
; then
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
19030 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
19031 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
19032 $as_echo_n "(cached) " >&6
19034 if test "$cross_compiling" = yes; then :
19036 aix
* | cygwin
* | haiku
*)
19037 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
19038 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
19041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19045 #include <limits.h>
19046 #include <sys/resource.h>
19047 #include <unistd.h>
19052 #ifndef RLIM_SAVED_CUR
19053 # define RLIM_SAVED_CUR RLIM_INFINITY
19055 #ifndef RLIM_SAVED_MAX
19056 # define RLIM_SAVED_MAX RLIM_INFINITY
19063 int bad_fd = INT_MAX;
19064 struct rlimit rlim;
19065 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
19066 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
19067 && rlim.rlim_cur != RLIM_INFINITY
19068 && rlim.rlim_cur != RLIM_SAVED_MAX
19069 && rlim.rlim_cur != RLIM_SAVED_CUR)
19070 bad_fd = rlim.rlim_cur;
19071 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
19072 if (errno != EINVAL) result |= 2;
19073 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
19074 if (errno != EINVAL) result |= 8;
19075 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
19078 fd = open (".", O_RDONLY);
19081 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
19091 if ac_fn_c_try_run
"$LINENO"; then :
19092 gl_cv_func_fcntl_f_dupfd_works
=yes
19094 gl_cv_func_fcntl_f_dupfd_works
=no
19096 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19097 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
19102 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
19103 case $gl_cv_func_fcntl_f_dupfd_works in
19108 if test $ac_cv_func_fcntl = no
; then
19115 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
19120 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
19121 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
19122 $as_echo_n "(cached) " >&6
19124 if test "$cross_compiling" = yes; then :
19126 # Guess no on NetBSD.
19127 netbsd
*) gl_cv_func_fcntl_f_dupfd_cloexec
="guessing no" ;;
19128 *) gl_cv_func_fcntl_f_dupfd_cloexec
="$gl_cross_guess_normal" ;;
19132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19133 /* end confdefs.h. */
19135 #include <unistd.h>
19136 int main (int argc, char *argv[])
19139 /* parent process */
19141 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
19143 return execl ("./conftest", "./conftest", "child", NULL);
19146 /* child process */
19147 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
19152 if ac_fn_c_try_run
"$LINENO"; then :
19153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19157 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
19158 it to support the semantics on older kernels that failed with EINVAL. */
19170 if ac_fn_c_try_compile
"$LINENO"; then :
19171 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
19173 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
19175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19178 gl_cv_func_fcntl_f_dupfd_cloexec
=no
19180 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19181 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
19187 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
19188 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
19193 if test $ac_cv_func_fcntl = no
; then
19206 if test $ac_cv_func_fchdir = no
; then
19210 if test $HAVE_FCHDIR = 0; then
19214 if test $ac_cv_func_fcntl = no
; then
19223 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
19232 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
19246 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
19261 if test $gl_cv_have_include_next = yes; then
19262 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
19265 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
19266 if ${gl_cv_next_fcntl_h+:} false
; then :
19267 $as_echo_n "(cached) " >&6
19272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19277 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19278 *) gl_absname_cpp
="$ac_cpp" ;;
19283 gl_dirsep_regex
='[/\\]'
19286 gl_dirsep_regex
='\/'
19289 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19290 gl_header_literal_regex
=`echo 'fcntl.h' \
19291 | sed -e "$gl_make_literal_regex_sed"`
19292 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19293 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19299 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19300 sed -n "$gl_absolute_header_sed"`
19302 gl_header
=$gl_cv_absolute_fcntl_h
19303 gl_cv_next_fcntl_h
='"'$gl_header'"'
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
19308 $as_echo "$gl_cv_next_fcntl_h" >&6; }
19310 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
19312 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19314 gl_next_as_first_directive
='<'fcntl.h
'>'
19316 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19317 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
19319 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
19335 cat >>confdefs.h
<<_ACEOF
19336 #define GNULIB_FD_SAFER_FLAG 1
19345 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
19346 #include <dirent.h>
19349 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
19355 cat >>confdefs.h
<<_ACEOF
19356 #define HAVE_DECL_FDOPENDIR $ac_have_decl
19358 if test $ac_have_decl = 1; then :
19361 HAVE_DECL_FDOPENDIR
=0
19365 if test $ac_cv_func_fdopendir = no
; then
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
19369 $as_echo_n "checking whether fdopendir works... " >&6; }
19370 if ${gl_cv_func_fdopendir_works+:} false
; then :
19371 $as_echo_n "(cached) " >&6
19373 if test "$cross_compiling" = yes; then :
19375 # Guess yes on glibc systems.
19376 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
19377 # Guess yes on musl systems.
19378 *-musl*) gl_cv_func_fdopendir_works
="guessing yes" ;;
19379 # If we don't know, obey --enable-cross-guesses.
19380 *) gl_cv_func_fdopendir_works
="$gl_cross_guess_normal" ;;
19384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19385 /* end confdefs.h. */
19387 #include <dirent.h>
19389 #include <unistd.h>
19394 #if !HAVE_DECL_FDOPENDIR
19396 # ifdef __cplusplus
19399 DIR *fdopendir (int);
19406 int fd = open ("conftest.c", O_RDONLY);
19407 if (fd < 0) result |= 1;
19408 if (fdopendir (fd)) result |= 2;
19409 if (close (fd)) result |= 4;
19416 if ac_fn_c_try_run
"$LINENO"; then :
19417 gl_cv_func_fdopendir_works
=yes
19419 gl_cv_func_fdopendir_works
=no
19421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
19427 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
19428 case "$gl_cv_func_fdopendir_works" in
19431 REPLACE_FDOPENDIR
=1
19436 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
19445 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
19459 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
19465 cat >>confdefs.h
<<_ACEOF
19466 #define GNULIB_FDOPENDIR 1
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffs" >&5
19474 $as_echo_n "checking for ffs... " >&6; }
19475 if ${gl_cv_func_ffs+:} false
; then :
19476 $as_echo_n "(cached) " >&6
19478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h. */
19480 #include <strings.h>
19486 int (*func) (int) = ffs;
19494 if ac_fn_c_try_link
"$LINENO"; then :
19499 rm -f core conftest.err conftest.
$ac_objext \
19500 conftest
$ac_exeext conftest.
$ac_ext
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ffs" >&5
19504 $as_echo "$gl_cv_func_ffs" >&6; }
19505 if test $gl_cv_func_ffs = no
; then
19509 if test $HAVE_FFS = 0; then
19518 gl_LIBOBJS
="$gl_LIBOBJS ffs.$ac_objext"
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
19536 $as_echo_n "checking for flexible array member... " >&6; }
19537 if ${ac_cv_c_flexmember+:} false
; then :
19538 $as_echo_n "(cached) " >&6
19540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19541 /* end confdefs.h. */
19542 #include <stdlib.h>
19544 #include <stddef.h>
19545 struct m { struct m *next, **list; char name[]; };
19546 struct s { struct s *p; struct m *m; int n; double d[]; };
19550 int m = getchar ();
19551 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
19552 nbytes += sizeof (struct s) - 1;
19553 nbytes -= nbytes % sizeof (struct s);
19554 struct s *p = malloc (nbytes);
19558 return p->d != (double *) NULL;
19563 if ac_fn_c_try_compile
"$LINENO"; then :
19564 ac_cv_c_flexmember
=yes
19566 ac_cv_c_flexmember
=no
19568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
19571 $as_echo "$ac_cv_c_flexmember" >&6; }
19572 if test $ac_cv_c_flexmember = yes; then
19574 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
19577 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
19585 REPLACE_FLOAT_LDBL
=0
19587 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
19590 freebsd
* | dragonfly
*)
19591 case "$host_cpu" in
19596 # On x86_64 systems, the C compiler may still be generating
19598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19600 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
19607 if ac_fn_c_try_compile
"$LINENO"; then :
19612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19617 case "$host_cpu" in
19625 aix
* | freebsd
* | dragonfly
* | linux
*)
19626 if test -n "$FLOAT_H"; then
19627 REPLACE_FLOAT_LDBL
=1
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
19634 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
19635 if ${gl_cv_func_itold_works+:} false
; then :
19636 $as_echo_n "(cached) " >&6
19639 if test "$cross_compiling" = yes; then :
19642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19644 #if defined __LP64__ || defined __arch64__
19651 if ac_fn_c_try_compile
"$LINENO"; then :
19652 gl_cv_func_itold_works
="guessing no"
19654 gl_cv_func_itold_works
="guessing yes"
19656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19658 # Guess yes on native Windows.
19659 mingw
*) gl_cv_func_itold_works
="guessing yes" ;;
19660 *) gl_cv_func_itold_works
="guessing yes" ;;
19664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19668 volatile long double ld;
19677 if ac_fn_c_try_run
"$LINENO"; then :
19678 gl_cv_func_itold_works
=yes
19680 gl_cv_func_itold_works
=no
19682 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19683 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
19689 $as_echo "$gl_cv_func_itold_works" >&6; }
19690 case "$gl_cv_func_itold_works" in
19697 if test -n "$FLOAT_H"; then
19706 if test $gl_cv_have_include_next = yes; then
19707 gl_cv_next_float_h
='<'float.h
'>'
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
19710 $as_echo_n "checking absolute name of <float.h>... " >&6; }
19711 if ${gl_cv_next_float_h+:} false
; then :
19712 $as_echo_n "(cached) " >&6
19717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19718 /* end confdefs.h. */
19722 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19723 *) gl_absname_cpp
="$ac_cpp" ;;
19728 gl_dirsep_regex
='[/\\]'
19731 gl_dirsep_regex
='\/'
19734 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19735 gl_header_literal_regex
=`echo 'float.h' \
19736 | sed -e "$gl_make_literal_regex_sed"`
19737 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19738 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19744 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19745 sed -n "$gl_absolute_header_sed"`
19747 gl_header
=$gl_cv_absolute_float_h
19748 gl_cv_next_float_h
='"'$gl_header'"'
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
19753 $as_echo "$gl_cv_next_float_h" >&6; }
19755 NEXT_FLOAT_H
=$gl_cv_next_float_h
19757 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19759 gl_next_as_first_directive
='<'float.h
'>'
19761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19762 gl_next_as_first_directive
=$gl_cv_next_float_h
19764 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
19771 if test -n "$FLOAT_H"; then
19772 GL_GENERATE_FLOAT_H_TRUE
=
19773 GL_GENERATE_FLOAT_H_FALSE
='#'
19775 GL_GENERATE_FLOAT_H_TRUE
='#'
19776 GL_GENERATE_FLOAT_H_FALSE
=
19781 if test $REPLACE_FLOAT_LDBL = 1; then
19790 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
19793 if test $REPLACE_ITOLD = 1; then
19802 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
19809 gl_fnmatch_required_lowercase
=`
19810 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
19813 if test $ac_cv_func_fnmatch = no
; then
19816 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
19818 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
19819 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
19820 $as_echo_n "(cached) " >&6
19822 if test $gl_fnmatch_required = GNU
; then
19823 gl_fnmatch_gnu_start
=
19824 gl_fnmatch_gnu_end
=
19826 gl_fnmatch_gnu_start
='#if 0'
19827 gl_fnmatch_gnu_end
='#endif'
19829 if test "$cross_compiling" = yes; then :
19831 # Guess yes on musl systems.
19832 *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
19833 # Guess no otherwise, even on glibc systems.
19834 *) eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
19838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h. */
19840 #include <fnmatch.h>
19842 y (char const *pattern, char const *string, int flags)
19844 return fnmatch (pattern, string, flags) == 0;
19847 n (char const *pattern, char const *string, int flags)
19849 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
19855 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
19856 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
19857 static char const A_1[] = { 'A' - 1, 0 };
19858 static char const A01[] = { 'A' + 1, 0 };
19859 static char const a_1[] = { 'a' - 1, 0 };
19860 static char const a01[] = { 'a' + 1, 0 };
19861 static char const bs_1[] = { '\\\\' - 1, 0 };
19862 static char const bs01[] = { '\\\\' + 1, 0 };
19864 if (!n ("a*", "", 0))
19866 if (!y ("a*", "abc", 0))
19868 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
19870 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
19872 if (!y ("a\\\\bc", "abc", 0))
19874 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
19876 if (!y ("*x", ".x", 0))
19878 if (!n ("*x", ".x", FNM_PERIOD))
19880 if (!y (Apat, "\\\\", 0))
19882 if (!y (Apat, "A", 0))
19884 if (!y (apat, "\\\\", 0))
19886 if (!y (apat, "a", 0))
19888 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
19890 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
19892 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
19894 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
19896 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
19898 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
19900 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
19902 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
19904 $gl_fnmatch_gnu_start
19905 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
19907 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
19909 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
19911 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
19913 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
19915 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
19917 $gl_fnmatch_gnu_end
19924 if ac_fn_c_try_run
"$LINENO"; then :
19925 eval "$gl_fnmatch_cache_var=yes"
19927 eval "$gl_fnmatch_cache_var=no"
19929 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19930 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19935 eval ac_res
=\$
$gl_fnmatch_cache_var
19936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19937 $as_echo "$ac_res" >&6; }
19938 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
19939 case "$gl_fnmatch_result" in
19941 *) REPLACE_FNMATCH
=1 ;;
19944 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19947 FNMATCH_H
='fnmatch.h'
19948 if test -n "$FNMATCH_H"; then
19949 GL_GENERATE_FNMATCH_H_TRUE
=
19950 GL_GENERATE_FNMATCH_H_FALSE
='#'
19952 GL_GENERATE_FNMATCH_H_TRUE
='#'
19953 GL_GENERATE_FNMATCH_H_FALSE
=
19959 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19968 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19986 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
19995 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
20004 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
20013 cat >>confdefs.h
<<_ACEOF
20014 #define GNULIB_FNMATCH_GNU 1
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
20023 $as_echo_n "checking whether free is known to preserve errno... " >&6; }
20024 if ${gl_cv_func_free_preserves_errno+:} false
; then :
20025 $as_echo_n "(cached) " >&6
20027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20028 /* end confdefs.h. */
20029 #include <stdlib.h>
20034 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
20035 #elif defined __OpenBSD__
20036 #elif defined __sun
20038 #error "'free' is not known to preserve errno"
20045 if ac_fn_c_try_compile
"$LINENO"; then :
20046 gl_cv_func_free_preserves_errno
=yes
20048 gl_cv_func_free_preserves_errno
=no
20050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
20054 $as_echo "$gl_cv_func_free_preserves_errno" >&6; }
20056 case $gl_cv_func_free_preserves_errno in
20058 *) REPLACE_FREE
=1 ;;
20061 if test $REPLACE_FREE = 1; then
20070 gl_LIBOBJS
="$gl_LIBOBJS free.$ac_objext"
20079 GNULIB_FREE_POSIX
=1
20085 $as_echo "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
20090 if test $gl_func_frexp != yes; then
20099 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
20113 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
20118 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
20127 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
20141 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
20159 if test $ac_cv_func_fchdir = no
; then
20163 if test $HAVE_FCHDIR = 0; then
20164 case "$gl_cv_func_open_directory_works" in
20173 if test $REPLACE_FSTAT = 1; then
20182 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
20194 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
20215 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
20226 if test $ac_cv_func_fstatat = no
; then
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
20230 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
20231 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
20232 $as_echo_n "(cached) " >&6
20234 if test "$cross_compiling" = yes; then :
20236 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
20237 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
20241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20242 /* end confdefs.h. */
20245 #include <sys/stat.h>
20250 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
20254 if ac_fn_c_try_run
"$LINENO"; then :
20255 gl_cv_func_fstatat_zero_flag
=yes
20257 gl_cv_func_fstatat_zero_flag
=no
20259 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20260 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
20266 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
20268 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
20270 *) REPLACE_FSTATAT
=1 ;;
20275 REPLACE_FSTATAT
=1 ;;
20278 case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
20281 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
20287 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
20296 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
20310 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
20322 gl_cv_func_getcwd_path_max
=yes
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
20331 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
20332 if ${gl_cv_func_getcwd_path_max+:} false
; then :
20333 $as_echo_n "(cached) " >&6
20335 # Arrange for deletion of the temporary directory this test creates.
20336 ac_clean_files
="$ac_clean_files confdir3"
20337 if test "$cross_compiling" = yes; then :
20338 # Cross-compilation guesses:
20340 aix
*) # On AIX, it has the AIX bug.
20341 gl_cv_func_getcwd_path_max
='guessing no, it has the AIX bug' ;;
20342 gnu
*) # On Hurd, it is 'yes'.
20343 gl_cv_func_getcwd_path_max
='guessing yes' ;;
20344 linux
* | kfreebsd
*)
20345 # On older Linux+glibc it's 'no, but it is partly working',
20346 # on newer Linux+glibc it's 'yes'.
20347 # On Linux+musl libc, it's 'no, but it is partly working'.
20348 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
20349 gl_cv_func_getcwd_path_max
='guessing no, but it is partly working' ;;
20350 *) # If we don't know, obey --enable-cross-guesses.
20351 gl_cv_func_getcwd_path_max
="$gl_cross_guess_normal" ;;
20355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20356 /* end confdefs.h. */
20359 #include <stdlib.h>
20361 # include <unistd.h>
20363 # include <direct.h>
20365 #include <string.h>
20366 #include <limits.h>
20367 #include <sys/stat.h>
20368 #include <sys/types.h>
20372 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
20374 # include <unistd.h>
20376 #include <limits.h>
20377 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
20378 # include <sys/param.h>
20380 #if !defined PATH_MAX && defined MAXPATHLEN
20381 # define PATH_MAX MAXPATHLEN
20385 # define PATH_MAX 1024
20387 #if defined _WIN32 && ! defined __CYGWIN__
20389 # define PATH_MAX 260
20394 # define AT_FDCWD 0
20396 #ifdef ENAMETOOLONG
20397 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
20399 # define is_ENAMETOOLONG(x) 0
20402 /* Use the getcwd function, not any macro. */
20411 # define S_IRWXU 0700
20414 /* The length of this name must be 8. */
20415 #define DIR_NAME "confdir3"
20416 #define DIR_NAME_LEN 8
20417 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
20419 /* The length of "../". */
20420 #define DOTDOTSLASH_LEN 3
20422 /* Leftover bytes in the buffer, to work around library or OS bugs. */
20423 #define BUF_SLOP 20
20429 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
20430 at least not on a local file system. And if we were to start worrying
20431 about remote file systems, we'd have to enable the wrapper function
20432 all of the time, just to be safe. That's not worth the cost. */
20434 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
20435 - DIR_NAME_SIZE - BUF_SLOP) \
20437 /* FIXME: Assuming there's a system for which this is true,
20438 this should be done in a compile test. */
20441 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
20442 + DIR_NAME_SIZE + BUF_SLOP];
20443 char *cwd = getcwd (buf, PATH_MAX);
20444 size_t initial_cwd_len;
20447 size_t n_chdirs = 0;
20452 cwd_len = initial_cwd_len = strlen (cwd);
20456 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
20459 cwd_len += DIR_NAME_SIZE;
20460 /* If mkdir or chdir fails, it could be that this system cannot create
20461 any file with an absolute name longer than PATH_MAX, such as cygwin.
20462 If so, leave fail as 0, because the current working directory can't
20463 be too long for getcwd if it can't even be created. On Linux with
20464 the 9p file system, mkdir fails with error EINVAL when cwd_len gets
20465 too long; ignore this failure because the getcwd() system call
20466 produces good results whereas the gnulib substitute calls getdents64
20467 which fails with error EPROTO.
20468 For other errors, be pessimistic and consider that as a failure,
20470 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
20472 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20474 if (! (errno == EINVAL))
20480 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
20484 c = getcwd (buf, PATH_MAX);
20485 if (!c && errno == ENOENT)
20495 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
20501 /* Our replacement needs to be able to stat() long ../../paths,
20502 so generate a path larger than PATH_MAX to check,
20503 avoiding the replacement if we can't stat(). */
20504 c = getcwd (buf, cwd_len + 1);
20505 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
20512 if (dotdot_max <= cwd_len - initial_cwd_len)
20514 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
20516 c = getcwd (buf, cwd_len + 1);
20519 if (! (errno == ERANGE || errno == ENOENT
20520 || is_ENAMETOOLONG (errno)))
20525 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
20533 if (c && strlen (c) != cwd_len)
20541 /* Leaving behind such a deep directory is not polite.
20542 So clean up here, right away, even though the driving
20543 shell script would also clean up. */
20547 /* Try rmdir first, in case the chdir failed. */
20549 for (i = 0; i <= n_chdirs; i++)
20551 if (chdir ("..") < 0)
20553 if (rmdir (DIR_NAME) != 0)
20563 if ac_fn_c_try_run
"$LINENO"; then :
20564 gl_cv_func_getcwd_path_max
=yes
20567 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
20568 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
20569 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
20570 *) gl_cv_func_getcwd_path_max
=no
;;
20573 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20574 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
20580 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
20582 case "$gl_cv_func_getcwd_null" in
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
20591 $as_echo_n "checking for getpagesize... " >&6; }
20592 if ${gl_cv_func_getpagesize+:} false
; then :
20593 $as_echo_n "(cached) " >&6
20595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h. */
20597 #include <unistd.h>
20601 return getpagesize();
20607 if ac_fn_c_try_link
"$LINENO"; then :
20608 gl_cv_func_getpagesize
=yes
20610 gl_cv_func_getpagesize
=no
20612 rm -f core conftest.err conftest.
$ac_objext \
20613 conftest
$ac_exeext conftest.
$ac_ext
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
20617 $as_echo "$gl_cv_func_getpagesize" >&6; }
20619 if test $gl_cv_func_getpagesize = yes; then
20621 cat >>confdefs.h
<<_ACEOF
20622 #define HAVE_GETPAGESIZE 1
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd succeeds when 4k < cwd_length < 16k" >&5
20628 $as_echo_n "checking whether getcwd succeeds when 4k < cwd_length < 16k... " >&6; }
20629 if ${gl_cv_func_getcwd_succeeds_beyond_4k+:} false
; then :
20630 $as_echo_n "(cached) " >&6
20632 # Remove any remnants of a previous test.
20633 rm -rf confdir-14B---
20634 # Arrange for deletion of the temporary directory this test creates.
20635 ac_clean_files
="$ac_clean_files confdir-14B---"
20636 if test "$cross_compiling" = yes; then :
20638 # Guess yes on musl systems.
20639 *-musl*) gl_cv_func_getcwd_succeeds_beyond_4k
="guessing yes" ;;
20640 # Guess no otherwise, even on glibc systems.
20641 *) gl_cv_func_getcwd_succeeds_beyond_4k
="guessing no"
20645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20646 /* end confdefs.h. */
20649 #include <stdlib.h>
20651 # include <unistd.h>
20652 #else /* on Windows with MSVC */
20653 # include <direct.h>
20655 #include <string.h>
20656 #include <sys/stat.h>
20659 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
20661 # include <unistd.h>
20663 #include <limits.h>
20664 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
20665 # include <sys/param.h>
20667 #if !defined PATH_MAX && defined MAXPATHLEN
20668 # define PATH_MAX MAXPATHLEN
20672 # define PATH_MAX 1024
20674 #if defined _WIN32 && ! defined __CYGWIN__
20676 # define PATH_MAX 260
20685 # define S_IRWXU 0700
20688 /* FIXME: skip the run-test altogether on systems without getpagesize. */
20689 #if ! HAVE_GETPAGESIZE
20690 # define getpagesize() 0
20693 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
20694 the 16kB pagesize on ia64 linux. Those conditions make the code below
20695 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
20696 #define TARGET_LEN (5 * 1024)
20702 size_t initial_cwd_len;
20705 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
20706 this relatively expensive and invasive test if that's not true. */
20708 int bug_possible = PATH_MAX < getpagesize ();
20710 int bug_possible = 0;
20712 if (! bug_possible)
20715 cwd = getcwd (NULL, 0);
20719 initial_cwd_len = strlen (cwd);
20724 static char const dir_name[] = "confdir-14B---";
20725 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
20726 / sizeof dir_name);
20728 for (d = 0; d < desired_depth; d++)
20730 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
20732 if (! (errno == ERANGE || errno == ENAMETOOLONG
20733 || errno == ENOENT))
20734 fail = 3; /* Unable to construct deep hierarchy. */
20739 /* If libc has the bug in question, this invocation of getcwd
20740 results in a failed assertion. */
20741 cwd = getcwd (NULL, 0);
20743 fail = 4; /* getcwd didn't assert, but it failed for a long name
20744 where the answer could have been learned. */
20747 /* Call rmdir first, in case the above chdir failed. */
20751 if (chdir ("..") < 0)
20764 if ac_fn_c_try_run
"$LINENO"; then :
20765 gl_cv_func_getcwd_succeeds_beyond_4k
=yes
20768 if test $ret -ge 128 ||
test $ret = 4; then
20769 gl_cv_func_getcwd_succeeds_beyond_4k
=no
20771 gl_cv_func_getcwd_succeeds_beyond_4k
=yes
20775 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20776 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_succeeds_beyond_4k" >&5
20782 $as_echo "$gl_cv_func_getcwd_succeeds_beyond_4k" >&6; }
20783 case "$gl_cv_func_getcwd_succeeds_beyond_4k" in
20796 case "$gl_cv_func_getcwd_path_max" in
20797 *"no" |
*"no, it has the AIX bug") ;;
20800 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
20804 case "$gl_cv_func_getcwd_path_max" in
20805 *"no, but it is partly working")
20807 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
20810 *"yes, but with shorter paths")
20812 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
20817 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
20818 ||
test $gl_cv_func_getcwd_posix_signature != yes \
20819 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
20820 ||
test $gl_abort_bug = yes; then
20824 if test $REPLACE_GETCWD = 1; then
20833 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
20843 cat >>confdefs.h
<<_ACEOF
20844 #define GNULIB_GETCWD 1
20859 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20868 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
20875 if test $REPLACE_GETCWD = 1; then
20884 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
20898 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
20910 if test $ac_cv_func_getdelim = yes; then
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
20913 $as_echo_n "checking for working getdelim function... " >&6; }
20914 if ${gl_cv_func_working_getdelim+:} false
; then :
20915 $as_echo_n "(cached) " >&6
20917 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
20918 if test "$cross_compiling" = yes; then :
20919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20920 /* end confdefs.h. */
20922 #include <features.h>
20923 #ifdef __GNU_LIBRARY__
20924 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
20930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20931 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
20932 gl_cv_func_working_getdelim
="guessing yes"
20935 *-musl*) gl_cv_func_working_getdelim
="guessing yes" ;;
20936 *) gl_cv_func_working_getdelim
="$gl_cross_guess_normal" ;;
20944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20945 /* end confdefs.h. */
20947 # include <stdio.h>
20948 # include <stdlib.h>
20949 # include <string.h>
20952 FILE *in = fopen ("./conftest.data", "r");
20956 /* Test result for a NULL buffer and a zero size.
20957 Based on a test program from Karl Heuer. */
20960 int len = getdelim (&line, &siz, '\n', in);
20961 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
20962 { free (line); fclose (in); return 2; }
20966 /* Test result for a NULL buffer and a non-zero size.
20967 This crashes on FreeBSD 8.0. */
20969 size_t siz = (size_t)(~0) / 4;
20970 if (getdelim (&line, &siz, '\n', in) == -1)
20971 { fclose (in); return 3; }
20979 if ac_fn_c_try_run
"$LINENO"; then :
20980 gl_cv_func_working_getdelim
=yes
20982 gl_cv_func_working_getdelim
=no
20984 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20985 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
20991 $as_echo "$gl_cv_func_working_getdelim" >&6; }
20992 case "$gl_cv_func_working_getdelim" in
20994 *) REPLACE_GETDELIM
=1 ;;
21000 if test $ac_cv_have_decl_getdelim = no
; then
21001 HAVE_DECL_GETDELIM
=0
21004 if test $HAVE_GETDELIM = 0 ||
test $REPLACE_GETDELIM = 1; then
21013 gl_LIBOBJS
="$gl_LIBOBJS getdelim.$ac_objext"
21016 for ac_func
in flockfile funlockfile
21018 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21019 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
21020 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
21021 cat >>confdefs.h
<<_ACEOF
21022 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21028 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
21029 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
21035 cat >>confdefs.h
<<_ACEOF
21036 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
21052 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
21061 if test $ac_cv_func_getdtablesize = yes &&
21062 test $ac_cv_have_decl_getdtablesize = yes; then
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
21064 $as_echo_n "checking whether getdtablesize works... " >&6; }
21065 if ${gl_cv_func_getdtablesize_works+:} false
; then :
21066 $as_echo_n "(cached) " >&6
21069 vms
*) gl_cv_func_getdtablesize_works
="no (limitation)" ;;
21071 if test "$cross_compiling" = yes; then :
21073 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
21074 gl_cv_func_getdtablesize_works
="guessing no" ;;
21075 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
21079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21082 #include <unistd.h>
21091 int size = getdtablesize();
21092 if (dup2 (0, getdtablesize()) != -1)
21094 if (size != getdtablesize())
21101 if ac_fn_c_try_run
"$LINENO"; then :
21102 gl_cv_func_getdtablesize_works
=yes
21104 gl_cv_func_getdtablesize_works
=no
21106 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21107 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
21115 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
21116 case "$gl_cv_func_getdtablesize_works" in
21117 *yes |
"no (limitation)") ;;
21118 *) REPLACE_GETDTABLESIZE
=1 ;;
21121 HAVE_GETDTABLESIZE
=0
21124 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
21133 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
21142 GNULIB_GETDTABLESIZE
=1
21148 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
21159 gl_getline_needs_run_time_check
=no
21160 ac_fn_c_check_func
"$LINENO" "getline" "ac_cv_func_getline"
21161 if test "x$ac_cv_func_getline" = xyes
; then :
21162 gl_getline_needs_run_time_check
=yes
21164 am_cv_func_working_getline
=no
21167 if test $gl_getline_needs_run_time_check = yes; then
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
21169 $as_echo_n "checking for working getline function... " >&6; }
21170 if ${am_cv_func_working_getline+:} false
; then :
21171 $as_echo_n "(cached) " >&6
21173 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
21174 if test "$cross_compiling" = yes; then :
21175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21176 /* end confdefs.h. */
21178 #include <features.h>
21179 #ifdef __GNU_LIBRARY__
21180 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
21186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21187 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
21188 am_cv_func_working_getline
="guessing yes"
21191 *-musl*) am_cv_func_working_getline
="guessing yes" ;;
21192 *) am_cv_func_working_getline
="$gl_cross_guess_normal" ;;
21200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21201 /* end confdefs.h. */
21203 # include <stdio.h>
21204 # include <stdlib.h>
21205 # include <string.h>
21208 FILE *in = fopen ("./conftest.data", "r");
21212 /* Test result for a NULL buffer and a zero size.
21213 Based on a test program from Karl Heuer. */
21216 int len = getline (&line, &siz, in);
21217 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
21218 { free (line); fclose (in); return 2; }
21222 /* Test result for a NULL buffer and a non-zero size.
21223 This crashes on FreeBSD 8.0. */
21225 size_t siz = (size_t)(~0) / 4;
21226 if (getline (&line, &siz, in) == -1)
21227 { fclose (in); return 3; }
21235 if ac_fn_c_try_run
"$LINENO"; then :
21236 am_cv_func_working_getline
=yes
21238 am_cv_func_working_getline
=no
21240 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21241 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
21247 $as_echo "$am_cv_func_working_getline" >&6; }
21250 if test $ac_cv_have_decl_getline = no
; then
21251 HAVE_DECL_GETLINE
=0
21254 case "$am_cv_func_working_getline" in
21261 if test $REPLACE_GETLINE = 1; then
21270 gl_LIBOBJS
="$gl_LIBOBJS getline.$ac_objext"
21287 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
21297 if test $ac_cv_have_decl_getlogin_r = no
; then
21298 HAVE_DECL_GETLOGIN_R
=0
21302 if test $ac_cv_func_getlogin_r = no
; then
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
21308 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
21309 if ${gl_cv_func_getlogin_r_works+:} false
; then :
21310 $as_echo_n "(cached) " >&6
21314 # Guess no on Mac OS X, OSF/1.
21315 darwin
* | osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
21316 # Guess yes otherwise.
21317 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
21319 if test "$cross_compiling" = yes; then :
21322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h. */
21325 #include <stddef.h>
21326 #include <string.h>
21327 #include <unistd.h>
21328 #if !HAVE_DECL_GETLOGIN_R
21330 # ifdef __cplusplus
21333 int getlogin_r (char *, size_t);
21341 if (getlogin_r (buf, 0) == 0)
21343 if (getlogin_r (buf, 1) == 0)
21345 if (getlogin_r (buf, 100) == 0)
21347 size_t n = strlen (buf);
21348 if (getlogin_r (buf, n) == 0)
21354 if ac_fn_c_try_run
"$LINENO"; then :
21355 gl_cv_func_getlogin_r_works
=yes
21357 gl_cv_func_getlogin_r_works
=no
21359 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21360 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
21366 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
21367 case "$gl_cv_func_getlogin_r_works" in
21369 *) REPLACE_GETLOGIN_R
=1 ;;
21373 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
21382 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
21393 GNULIB_GETLOGIN_R
=1
21399 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
21408 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
21410 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
21416 cat >>confdefs.h
<<_ACEOF
21417 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
21419 if test $ac_have_decl = 1; then :
21423 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
21425 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
21431 cat >>confdefs.h
<<_ACEOF
21432 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
21434 if test $ac_have_decl = 1; then :
21438 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
21440 if test "x$ac_cv_have_decl___argv" = xyes
; then :
21446 cat >>confdefs.h
<<_ACEOF
21447 #define HAVE_DECL___ARGV $ac_have_decl
21449 if test $ac_have_decl = 1; then :
21454 # Incur the cost of this test only if none of the above worked.
21455 if test $ac_found = 0; then
21456 # On OpenBSD 5.1, using the global __progname variable appears to be
21457 # the only way to implement getprogname.
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
21459 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
21460 if ${gl_cv_var___progname+:} false
; then :
21461 $as_echo_n "(cached) " >&6
21464 gl_cv_var___progname
=
21465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21466 /* end confdefs.h. */
21467 extern char *__progname;
21471 return *__progname;
21477 if ac_fn_c_try_link
"$LINENO"; then :
21478 gl_cv_var___progname
=yes
21481 rm -f core conftest.err conftest.
$ac_objext \
21482 conftest
$ac_exeext conftest.
$ac_ext
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
21487 $as_echo "$gl_cv_var___progname" >&6; }
21488 if test "$gl_cv_var___progname" = yes; then
21490 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
21499 if test "$ac_cv_func_getrandom" != yes; then
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
21503 $as_echo_n "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
21504 if ${gl_cv_func_getrandom_ok+:} false
; then :
21505 $as_echo_n "(cached) " >&6
21507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21508 /* end confdefs.h. */
21509 /* Additional includes are needed before <sys/random.h> on uClibc
21511 #include <sys/types.h>
21512 #include <stdlib.h>
21513 #include <sys/random.h>
21514 ssize_t getrandom (void *, size_t, unsigned int);
21525 if ac_fn_c_try_compile
"$LINENO"; then :
21526 gl_cv_func_getrandom_ok
=yes
21528 gl_cv_func_getrandom_ok
=no
21530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
21534 $as_echo "$gl_cv_func_getrandom_ok" >&6; }
21535 if test $gl_cv_func_getrandom_ok = no
; then
21536 REPLACE_GETRANDOM
=1
21542 for ac_header
in bcrypt.h
21544 ac_fn_c_check_header_compile
"$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
21547 if test "x$ac_cv_header_bcrypt_h" = xyes
; then :
21548 cat >>confdefs.h
<<_ACEOF
21549 #define HAVE_BCRYPT_H 1
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
21557 $as_echo_n "checking whether the bcrypt library is guaranteed to be present... " >&6; }
21558 if ${gl_cv_lib_assume_bcrypt+:} false
; then :
21559 $as_echo_n "(cached) " >&6
21561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21562 /* end confdefs.h. */
21563 #include <windows.h>
21567 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
21576 if ac_fn_c_try_compile
"$LINENO"; then :
21577 gl_cv_lib_assume_bcrypt
=yes
21579 gl_cv_lib_assume_bcrypt
=no
21581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
21585 $as_echo "$gl_cv_lib_assume_bcrypt" >&6; }
21586 if test $gl_cv_lib_assume_bcrypt = yes; then
21588 $as_echo "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
21590 LIB_GETRANDOM
='-lbcrypt'
21592 LIB_GETRANDOM
='-ladvapi32'
21600 if test $HAVE_GETRANDOM = 0 ||
test $REPLACE_GETRANDOM = 1; then
21609 gl_LIBOBJS
="$gl_LIBOBJS getrandom.$ac_objext"
21623 $as_echo "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
21636 gl_gettimeofday_timezone
=void
21637 if test $ac_cv_func_gettimeofday != yes; then
21638 HAVE_GETTIMEOFDAY
=0
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21641 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21642 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
21643 $as_echo_n "(cached) " >&6
21645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21646 /* end confdefs.h. */
21647 #include <sys/time.h>
21649 int gettimeofday (struct timeval *restrict, void *restrict);
21654 /* glibc uses struct timezone * rather than the POSIX void *
21655 if _GNU_SOURCE is defined. However, since the only portable
21656 use of gettimeofday uses NULL as the second parameter, and
21657 since the glibc definition is actually more typesafe, it is
21658 not worth wrapping this to get a compliant signature. */
21659 int (*f) (struct timeval *restrict, void *restrict)
21662 return !(x | c.tv_sec | c.tv_usec);
21668 if ac_fn_c_try_compile
"$LINENO"; then :
21669 gl_cv_func_gettimeofday_posix_signature
=yes
21671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21672 /* end confdefs.h. */
21673 #include <sys/time.h>
21674 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21684 if ac_fn_c_try_compile
"$LINENO"; then :
21685 gl_cv_func_gettimeofday_posix_signature
=almost
21687 gl_cv_func_gettimeofday_posix_signature
=no
21689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21694 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21695 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
21696 gl_gettimeofday_timezone
='struct timezone'
21697 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21698 REPLACE_GETTIMEOFDAY
=1
21700 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21701 REPLACE_GETTIMEOFDAY
=1
21704 mingw
*) REPLACE_GETTIMEOFDAY
=1 ;;
21708 cat >>confdefs.h
<<_ACEOF
21709 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21713 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
21722 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
21731 GNULIB_GETTIMEOFDAY
=1
21737 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
21745 if test $ac_cv_func_glob = no
; then
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1 or 2" >&5
21750 $as_echo_n "checking for GNU glob interface version 1 or 2... " >&6; }
21751 if ${gl_cv_gnu_glob_interface_version_1_2+:} false
; then :
21752 $as_echo_n "(cached) " >&6
21754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21756 #include <gnu-versions.h>
21757 char a[_GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2 ? 1 : -1];
21759 if ac_fn_c_try_compile
"$LINENO"; then :
21760 gl_cv_gnu_glob_interface_version_1_2
=yes
21762 gl_cv_gnu_glob_interface_version_1_2
=no
21764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1_2" >&5
21767 $as_echo "$gl_cv_gnu_glob_interface_version_1_2" >&6; }
21768 if test "$gl_cv_gnu_glob_interface_version_1_2" = "no"; then
21772 if test $REPLACE_GLOB = 0; then
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
21774 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
21775 if ${gl_cv_glob_lists_symlinks+:} false
; then :
21776 $as_echo_n "(cached) " >&6
21778 if test $cross_compiling != yes; then
21779 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
21780 gl_cv_glob_lists_symlinks
=maybe
21782 # If we can't make a symlink, then we cannot test this issue. Be
21783 # pessimistic about this.
21784 gl_cv_glob_lists_symlinks
=no
21786 if test $gl_cv_glob_lists_symlinks = maybe
; then
21787 if test "$cross_compiling" = yes; then :
21791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21792 /* end confdefs.h. */
21793 #include <stddef.h>
21799 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
21807 if ac_fn_c_try_run
"$LINENO"; then :
21808 gl_cv_glob_lists_symlinks
=yes
21810 gl_cv_glob_lists_symlinks
=no
21812 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21813 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21817 rm -f conf$$
-globtest
21819 gl_cv_glob_lists_symlinks
="$gl_cross_guess_normal"
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
21824 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
21825 case "$gl_cv_glob_lists_symlinks" in
21827 *) REPLACE_GLOB
=1 ;;
21833 if test $ac_cv_func_glob_pattern_p = no
; then
21834 HAVE_GLOB_PATTERN_P
=0
21836 if test $REPLACE_GLOB = 1; then
21837 REPLACE_GLOB_PATTERN_P
=1
21841 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
21845 if test -n "$GLOB_H"; then
21846 GL_GENERATE_GLOB_H_TRUE
=
21847 GL_GENERATE_GLOB_H_FALSE
='#'
21849 GL_GENERATE_GLOB_H_TRUE
='#'
21850 GL_GENERATE_GLOB_H_FALSE
=
21856 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
21865 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
21875 gl_LIBOBJS
="$gl_LIBOBJS globfree.$ac_objext"
21883 if test $HAVE_GLOB_PATTERN_P = 0 ||
test $REPLACE_GLOB_PATTERN_P = 1; then
21892 gl_LIBOBJS
="$gl_LIBOBJS glob_pattern_p.$ac_objext"
21906 $as_echo "#define GNULIB_TEST_GLOB 1" >>confdefs.h
21912 LIB_HARD_LOCALE
="$LIB_SETLOCALE_NULL"
21927 if test $ac_cv_header_sys_socket_h != yes; then
21928 for ac_header
in winsock2.h
21930 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21931 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
21932 cat >>confdefs.h
<<_ACEOF
21933 #define HAVE_WINSOCK2_H 1
21941 if test "$ac_cv_header_winsock2_h" = yes; then
21943 UNISTD_H_HAVE_WINSOCK2_H
=1
21944 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
21950 if test $HAVE_WINSOCK2_H = 1; then
21951 REPLACE_INET_NTOP
=1
21952 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
21954 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
21960 cat >>confdefs.h
<<_ACEOF
21961 #define HAVE_DECL_INET_NTOP $ac_have_decl
21964 if test $ac_cv_have_decl_inet_ntop = yes; then
21965 INET_NTOP_LIB
="-lws2_32"
21967 HAVE_DECL_INET_NTOP
=0
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
21972 $as_echo_n "checking for library containing inet_ntop... " >&6; }
21973 if ${ac_cv_search_inet_ntop+:} false
; then :
21974 $as_echo_n "(cached) " >&6
21976 ac_func_search_save_LIBS
=$LIBS
21977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21978 /* end confdefs.h. */
21980 /* Override any GCC internal prototype to avoid an error.
21981 Use char because int might match the return type of a GCC
21982 builtin and then its argument prototype would still apply. */
21990 return inet_ntop ();
21995 for ac_lib
in '' nsl resolv network
; do
21996 if test -z "$ac_lib"; then
21997 ac_res
="none required"
22000 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22002 if ac_fn_c_try_link
"$LINENO"; then :
22003 ac_cv_search_inet_ntop
=$ac_res
22005 rm -f core conftest.err conftest.
$ac_objext \
22007 if ${ac_cv_search_inet_ntop+:} false
; then :
22011 if ${ac_cv_search_inet_ntop+:} false
; then :
22014 ac_cv_search_inet_ntop
=no
22016 rm conftest.
$ac_ext
22017 LIBS
=$ac_func_search_save_LIBS
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
22020 $as_echo "$ac_cv_search_inet_ntop" >&6; }
22021 ac_res
=$ac_cv_search_inet_ntop
22022 if test "$ac_res" != no
; then :
22023 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22026 for ac_func
in inet_ntop
22028 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
22029 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
22030 cat >>confdefs.h
<<_ACEOF
22031 #define HAVE_INET_NTOP 1
22037 if test $ac_cv_func_inet_ntop = no
; then
22045 if test "$ac_cv_search_inet_ntop" != "no" \
22046 && test "$ac_cv_search_inet_ntop" != "none required"; then
22047 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
22051 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
22053 # include <netdb.h>
22057 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
22063 cat >>confdefs.h
<<_ACEOF
22064 #define HAVE_DECL_INET_NTOP $ac_have_decl
22067 if test $ac_cv_have_decl_inet_ntop = no
; then
22068 HAVE_DECL_INET_NTOP
=0
22073 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
22082 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
22102 if test -n "$STDINT_H"; then
22103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22104 /* end confdefs.h. */
22119 if ac_fn_c_try_compile
"$LINENO"; then :
22120 PRIPTR_PREFIX
='"l"'
22122 PRIPTR_PREFIX
='"ll"'
22124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22126 for glpfx
in '' l ll I64
; do
22128 '') gltype1
='int';;
22129 l
) gltype1
='long int';;
22130 ll
) gltype1
='long long int';;
22131 I64
) gltype1
='__int64';;
22133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22134 /* end confdefs.h. */
22135 #include <stdint.h>
22136 extern intptr_t foo;
22137 extern $gltype1 foo;
22146 if ac_fn_c_try_compile
"$LINENO"; then :
22147 PRIPTR_PREFIX
='"'$glpfx'"'
22149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22150 test -n "$PRIPTR_PREFIX" && break
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
22157 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
22158 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
22159 $as_echo_n "(cached) " >&6
22161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22162 /* end confdefs.h. */
22163 /* Work also in C++ mode. */
22164 #define __STDC_LIMIT_MACROS 1
22166 /* Work if build is not clean. */
22167 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22169 #include <limits.h>
22171 #include <stdint.h>
22174 #if defined INT32_MAX && defined INTMAX_MAX
22175 #define CONDITION (INT32_MAX < INTMAX_MAX)
22177 #define CONDITION (sizeof (int) < sizeof (long long int))
22179 int test[CONDITION ? 1 : -1];
22188 if ac_fn_c_try_compile
"$LINENO"; then :
22189 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
22191 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
22193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
22196 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
22197 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
22198 INT32_MAX_LT_INTMAX_MAX
=1;
22200 INT32_MAX_LT_INTMAX_MAX
=0;
22204 if test $APPLE_UNIVERSAL_BUILD = 0; then
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
22207 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
22208 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
22209 $as_echo_n "(cached) " >&6
22211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22212 /* end confdefs.h. */
22213 /* Work also in C++ mode. */
22214 #define __STDC_LIMIT_MACROS 1
22216 /* Work if build is not clean. */
22217 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22219 #include <limits.h>
22221 #include <stdint.h>
22224 #if defined INT64_MAX
22225 #define CONDITION (INT64_MAX == LONG_MAX)
22227 #define CONDITION (sizeof (long long int) == sizeof (long int))
22229 int test[CONDITION ? 1 : -1];
22238 if ac_fn_c_try_compile
"$LINENO"; then :
22239 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
22241 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
22243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
22246 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
22247 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
22248 INT64_MAX_EQ_LONG_MAX
=1;
22250 INT64_MAX_EQ_LONG_MAX
=0;
22255 INT64_MAX_EQ_LONG_MAX
=-1
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
22259 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
22260 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
22261 $as_echo_n "(cached) " >&6
22263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22264 /* end confdefs.h. */
22265 /* Work also in C++ mode. */
22266 #define __STDC_LIMIT_MACROS 1
22268 /* Work if build is not clean. */
22269 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22271 #include <limits.h>
22273 #include <stdint.h>
22276 #if defined UINT32_MAX && defined UINTMAX_MAX
22277 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
22279 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
22281 int test[CONDITION ? 1 : -1];
22290 if ac_fn_c_try_compile
"$LINENO"; then :
22291 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
22293 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
22295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
22298 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
22299 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
22300 UINT32_MAX_LT_UINTMAX_MAX
=1;
22302 UINT32_MAX_LT_UINTMAX_MAX
=0;
22306 if test $APPLE_UNIVERSAL_BUILD = 0; then
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
22309 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
22310 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
22311 $as_echo_n "(cached) " >&6
22313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22314 /* end confdefs.h. */
22315 /* Work also in C++ mode. */
22316 #define __STDC_LIMIT_MACROS 1
22318 /* Work if build is not clean. */
22319 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
22321 #include <limits.h>
22323 #include <stdint.h>
22326 #if defined UINT64_MAX
22327 #define CONDITION (UINT64_MAX == ULONG_MAX)
22329 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
22331 int test[CONDITION ? 1 : -1];
22340 if ac_fn_c_try_compile
"$LINENO"; then :
22341 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
22343 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
22345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
22348 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
22349 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
22350 UINT64_MAX_EQ_ULONG_MAX
=1;
22352 UINT64_MAX_EQ_ULONG_MAX
=0;
22357 UINT64_MAX_EQ_ULONG_MAX
=-1
22367 if test $ac_cv_func_isblank = no
; then
22371 if test $HAVE_ISBLANK = 0; then
22380 gl_LIBOBJS
="$gl_LIBOBJS isblank.$ac_objext"
22385 cat >>confdefs.h
<<_ACEOF
22386 #define GNULIB_ISBLANK 1
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
22403 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
22404 if ${gl_cv_func_isnand_no_libm+:} false
; then :
22405 $as_echo_n "(cached) " >&6
22408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22409 /* end confdefs.h. */
22411 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
22413 # define isnand(x) __builtin_isnan ((double)(x))
22416 # define isnand(x) isnan ((double)(x))
22427 if ac_fn_c_try_link
"$LINENO"; then :
22428 gl_cv_func_isnand_no_libm
=yes
22430 gl_cv_func_isnand_no_libm
=no
22432 rm -f core conftest.err conftest.
$ac_objext \
22433 conftest
$ac_exeext conftest.
$ac_ext
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
22437 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
22439 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
22440 if test $gl_cv_func_isnand_no_libm = yes; then
22442 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
22446 if test $gl_func_isnand_no_libm != yes; then
22455 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
22464 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
22465 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
22466 $as_echo_n "(cached) " >&6
22469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22470 /* end confdefs.h. */
22472 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
22474 # define isnanl(x) __builtin_isnan ((long double)(x))
22475 #elif defined isnan
22477 # define isnanl(x) isnan ((long double)(x))
22488 if ac_fn_c_try_link
"$LINENO"; then :
22489 gl_cv_func_isnanl_no_libm
=yes
22491 gl_cv_func_isnanl_no_libm
=no
22493 rm -f core conftest.err conftest.
$ac_objext \
22494 conftest
$ac_exeext conftest.
$ac_ext
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
22498 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
22500 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
22501 if test $gl_func_isnanl_no_libm = yes; then
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
22507 $as_echo_n "checking whether isnanl works... " >&6; }
22508 if ${gl_cv_func_isnanl_works+:} false
; then :
22509 $as_echo_n "(cached) " >&6
22512 if test "$cross_compiling" = yes; then :
22514 mingw
*) # Guess yes on mingw, no on MSVC.
22515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22516 /* end confdefs.h. */
22523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22524 $EGREP "Known" >/dev
/null
2>&1; then :
22525 gl_cv_func_isnanl_works
="guessing yes"
22527 gl_cv_func_isnanl_works
="guessing no"
22532 *) gl_cv_func_isnanl_works
="guessing yes" ;;
22536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22537 /* end confdefs.h. */
22540 #include <limits.h>
22542 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
22544 # define isnanl(x) __builtin_isnan ((long double)(x))
22545 #elif defined isnan
22547 # define isnanl(x) isnan ((long double)(x))
22550 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22551 typedef union { unsigned int word[NWORDS]; long double value; }
22552 memory_long_double;
22553 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
22554 runtime type conversion. */
22556 static long double NaNl ()
22559 return zero / zero;
22562 # define NaNl() (0.0L / 0.0L)
22568 if (!isnanl (NaNl ()))
22572 memory_long_double m;
22575 /* The isnanl function should be immune against changes in the sign bit and
22576 in the mantissa bits. The xor operation twiddles a bit that can only be
22577 a sign bit or a mantissa bit (since the exponent never extends to
22580 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
22581 for (i = 0; i < NWORDS; i++)
22583 if (!isnanl (m.value))
22587 #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
22588 /* Representation of an 80-bit 'long double' as an initializer for a sequence
22589 of 'unsigned int' words. */
22590 # ifdef WORDS_BIGENDIAN
22591 # define LDBL80_WORDS(exponent,manthi,mantlo) \
22592 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
22593 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
22594 (unsigned int) (mantlo) << 16 \
22597 # define LDBL80_WORDS(exponent,manthi,mantlo) \
22598 { mantlo, manthi, exponent }
22601 static memory_long_double x =
22602 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
22603 if (!isnanl (x.value))
22607 /* Signalling NaN. */
22608 static memory_long_double x =
22609 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
22610 if (!isnanl (x.value))
22613 /* isnanl should return something even for noncanonical values. */
22614 { /* Pseudo-NaN. */
22615 static memory_long_double x =
22616 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
22617 if (isnanl (x.value) && !isnanl (x.value))
22620 { /* Pseudo-Infinity. */
22621 static memory_long_double x =
22622 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
22623 if (isnanl (x.value) && !isnanl (x.value))
22626 { /* Pseudo-Zero. */
22627 static memory_long_double x =
22628 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
22629 if (isnanl (x.value) && !isnanl (x.value))
22632 { /* Unnormalized number. */
22633 static memory_long_double x =
22634 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
22635 if (isnanl (x.value) && !isnanl (x.value))
22638 { /* Pseudo-Denormal. */
22639 static memory_long_double x =
22640 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
22641 if (isnanl (x.value) && !isnanl (x.value))
22649 if ac_fn_c_try_run
"$LINENO"; then :
22650 gl_cv_func_isnanl_works
=yes
22652 gl_cv_func_isnanl_works
=no
22654 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22655 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
22661 $as_echo "$gl_cv_func_isnanl_works" >&6; }
22663 case "$gl_cv_func_isnanl_works" in
22665 *) gl_func_isnanl_no_libm
=no
;;
22668 if test $gl_func_isnanl_no_libm = yes; then
22670 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
22674 if test $gl_func_isnanl_no_libm != yes; then
22683 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
22689 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
22690 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
22691 $as_echo_n "(cached) " >&6
22694 if test "$cross_compiling" = yes; then :
22696 gl_cv_cc_long_double_expbit0
="unknown"
22698 mingw
*) # On native Windows (little-endian), we know the result
22699 # in two cases: mingw, MSVC.
22700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22701 /* end confdefs.h. */
22708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22709 $EGREP "Known" >/dev
/null
2>&1; then :
22710 gl_cv_cc_long_double_expbit0
="word 2 bit 0"
22714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22715 /* end confdefs.h. */
22722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22723 $EGREP "Known" >/dev
/null
2>&1; then :
22724 gl_cv_cc_long_double_expbit0
="word 1 bit 20"
22732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22733 /* end confdefs.h. */
22736 #include <stddef.h>
22738 #include <string.h>
22740 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22741 typedef union { long double value; unsigned int word[NWORDS]; }
22742 memory_long_double;
22743 static unsigned int ored_words[NWORDS];
22744 static unsigned int anded_words[NWORDS];
22745 static void add_to_ored_words (long double *x)
22747 memory_long_double m;
22749 /* Clear it first, in case
22750 sizeof (long double) < sizeof (memory_long_double). */
22751 memset (&m, 0, sizeof (memory_long_double));
22753 for (i = 0; i < NWORDS; i++)
22755 ored_words[i] |= m.word[i];
22756 anded_words[i] &= m.word[i];
22761 static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
22763 FILE *fp = fopen ("conftest.out", "w");
22766 for (j = 0; j < NWORDS; j++)
22767 anded_words[j] = ~ (unsigned int) 0;
22768 for (j = 0; j < 5; j++)
22769 add_to_ored_words (&samples[j]);
22770 /* Remove bits that are common (e.g. if representation of the first mantissa
22771 bit is explicit). */
22772 for (j = 0; j < NWORDS; j++)
22773 ored_words[j] &= ~anded_words[j];
22774 /* Now find the nonzero word. */
22775 for (j = 0; j < NWORDS; j++)
22776 if (ored_words[j] != 0)
22781 for (i = j + 1; i < NWORDS; i++)
22782 if (ored_words[i] != 0)
22784 fprintf (fp, "unknown");
22785 return (fclose (fp) != 0);
22788 if ((ored_words[j] >> i) & 1)
22790 fprintf (fp, "word %d bit %d", (int) j, (int) i);
22791 return (fclose (fp) != 0);
22794 fprintf (fp, "unknown");
22795 return (fclose (fp) != 0);
22799 if ac_fn_c_try_run
"$LINENO"; then :
22800 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
22802 gl_cv_cc_long_double_expbit0
="unknown"
22804 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22805 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
22812 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
22813 case "$gl_cv_cc_long_double_expbit0" in
22815 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22816 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
22818 cat >>confdefs.h
<<_ACEOF
22819 #define LDBL_EXPBIT0_WORD $word
22823 cat >>confdefs.h
<<_ACEOF
22824 #define LDBL_EXPBIT0_BIT $bit
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
22836 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
22837 if ${gl_cv_c___inline+:} false
; then :
22838 $as_echo_n "(cached) " >&6
22840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22841 /* end confdefs.h. */
22843 static __inline foo_t foo (void) { return 0; }
22852 if ac_fn_c_try_compile
"$LINENO"; then :
22853 gl_cv_c___inline
=yes
22855 gl_cv_c___inline
=no
22857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
22860 $as_echo "$gl_cv_c___inline" >&6; }
22861 if test $gl_cv_c___inline = yes; then
22863 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
22871 LOCALCHARSET_TESTS_ENVIRONMENT
=
22886 $as_echo "#define _LCONV_C99 1" >>confdefs.h
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
22892 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
22893 if ${gl_cv_header_locale_h_posix2001+:} false
; then :
22894 $as_echo_n "(cached) " >&6
22896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h. */
22898 #include <locale.h>
22899 int x = LC_MESSAGES;
22900 int y = sizeof (((struct lconv *) 0)->decimal_point);
22909 if ac_fn_c_try_compile
"$LINENO"; then :
22910 gl_cv_header_locale_h_posix2001
=yes
22912 gl_cv_header_locale_h_posix2001
=no
22914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
22917 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
22920 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
22921 if ${gl_cv_sys_struct_lconv_ok+:} false
; then :
22922 $as_echo_n "(cached) " >&6
22924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22925 /* end confdefs.h. */
22926 #include <locale.h>
22928 int x = sizeof (l.decimal_point);
22929 int y = sizeof (l.int_p_cs_precedes);
22938 if ac_fn_c_try_compile
"$LINENO"; then :
22939 gl_cv_sys_struct_lconv_ok
=yes
22941 gl_cv_sys_struct_lconv_ok
=no
22943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
22947 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
22948 if test $gl_cv_sys_struct_lconv_ok = no
; then
22951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h. */
22959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22960 $EGREP "Special" >/dev
/null
2>&1; then :
22963 REPLACE_STRUCT_LCONV
=1
22968 *) REPLACE_STRUCT_LCONV
=1 ;;
22980 if test $gl_cv_have_include_next = yes; then
22981 gl_cv_next_locale_h
='<'locale.h
'>'
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
22984 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
22985 if ${gl_cv_next_locale_h+:} false
; then :
22986 $as_echo_n "(cached) " >&6
22991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22992 /* end confdefs.h. */
22993 #include <locale.h>
22996 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22997 *) gl_absname_cpp
="$ac_cpp" ;;
23002 gl_dirsep_regex
='[/\\]'
23005 gl_dirsep_regex
='\/'
23008 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23009 gl_header_literal_regex
=`echo 'locale.h' \
23010 | sed -e "$gl_make_literal_regex_sed"`
23011 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23012 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23018 gl_cv_absolute_locale_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23019 sed -n "$gl_absolute_header_sed"`
23021 gl_header
=$gl_cv_absolute_locale_h
23022 gl_cv_next_locale_h
='"'$gl_header'"'
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
23027 $as_echo "$gl_cv_next_locale_h" >&6; }
23029 NEXT_LOCALE_H
=$gl_cv_next_locale_h
23031 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23032 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23033 gl_next_as_first_directive
='<'locale.h
'>'
23035 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23036 gl_next_as_first_directive
=$gl_cv_next_locale_h
23038 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
=$gl_next_as_first_directive
23050 if test "$gl_threads_api" = posix
; then
23051 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
23052 # pthread_rwlock_* functions.
23054 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
23056 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
23059 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
23063 if $has_rwlock; then
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
23067 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
23068 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false
; then :
23069 $as_echo_n "(cached) " >&6
23072 LIBS
="$LIBS $LIBMULTITHREAD"
23073 if test "$cross_compiling" = yes; then :
23075 # Guess no on glibc systems.
23076 *-gnu* | gnu
*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
23077 # Guess no on musl systems.
23078 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
23079 # Guess no on bionic systems.
23080 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
23081 # Guess yes on native Windows with the mingw-w64 winpthreads library.
23082 # Guess no on native Windows with the gnulib windows-rwlock module.
23083 mingw
*) if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
23084 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing yes"
23086 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no"
23089 # If we don't know, obey --enable-cross-guesses.
23090 *) gl_cv_pthread_rwlock_rdlock_prefer_writer
="$gl_cross_guess_normal" ;;
23094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23098 #include <pthread.h>
23099 #include <stdlib.h>
23100 #include <unistd.h>
23102 #define SUCCEED() exit (0)
23103 #define FAILURE() exit (1)
23104 #define UNEXPECTED(n) (exit (10 + (n)))
23106 /* The main thread creates the waiting writer and the requesting reader threads
23107 in the default way; this guarantees that they have the same priority.
23108 We can reuse the main thread as first reader thread. */
23110 static pthread_rwlock_t lock;
23111 static pthread_t reader1;
23112 static pthread_t writer;
23113 static pthread_t reader2;
23114 static pthread_t timer;
23115 /* Used to pass control from writer to reader2 and from reader2 to timer,
23116 as in a relay race.
23117 Passing control from one running thread to another running thread
23118 is most likely faster than to create the second thread. */
23119 static pthread_mutex_t baton;
23122 timer_func (void *ignored)
23124 /* Step 13 (can be before or after step 12):
23125 The timer thread takes the baton, then waits a moment to make sure
23126 it can tell whether the second reader thread is blocked at step 12. */
23127 if (pthread_mutex_lock (&baton))
23130 /* By the time we get here, it's clear that the second reader thread is
23131 blocked at step 12. This is the desired behaviour. */
23136 reader2_func (void *ignored)
23140 /* Step 8 (can be before or after step 7):
23141 The second reader thread takes the baton, then waits a moment to make sure
23142 the writer thread has reached step 7. */
23143 if (pthread_mutex_lock (&baton))
23146 /* Step 9: The second reader thread requests the lock. */
23147 err = pthread_rwlock_tryrdlock (&lock);
23150 else if (err != EBUSY)
23152 /* Step 10: Launch a timer, to test whether the next call blocks. */
23153 if (pthread_create (&timer, NULL, timer_func, NULL))
23155 /* Step 11: Release the baton. */
23156 if (pthread_mutex_unlock (&baton))
23158 /* Step 12: The second reader thread requests the lock. */
23159 err = pthread_rwlock_rdlock (&lock);
23167 writer_func (void *ignored)
23169 /* Step 4: Take the baton, so that the second reader thread does not go ahead
23171 if (pthread_mutex_lock (&baton))
23173 /* Step 5: Create the second reader thread. */
23174 if (pthread_create (&reader2, NULL, reader2_func, NULL))
23176 /* Step 6: Release the baton. */
23177 if (pthread_mutex_unlock (&baton))
23179 /* Step 7: The writer thread requests the lock. */
23180 if (pthread_rwlock_wrlock (&lock))
23188 reader1 = pthread_self ();
23190 /* Step 1: The main thread initializes the lock and the baton. */
23191 if (pthread_rwlock_init (&lock, NULL))
23193 if (pthread_mutex_init (&baton, NULL))
23195 /* Step 2: The main thread acquires the lock as a reader. */
23196 if (pthread_rwlock_rdlock (&lock))
23198 /* Step 3: Create the writer thread. */
23199 if (pthread_create (&writer, NULL, writer_func, NULL))
23201 /* Job done. Go to sleep. */
23209 if ac_fn_c_try_run
"$LINENO"; then :
23210 gl_cv_pthread_rwlock_rdlock_prefer_writer
=yes
23212 gl_cv_pthread_rwlock_rdlock_prefer_writer
=no
23214 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23215 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
23222 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
23223 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
23226 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
23232 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
23233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23234 /* end confdefs.h. */
23236 #include <pthread.h>
23241 #if __FreeBSD__ == 4
23242 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
23243 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
23244 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
23245 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
23247 int x = (int)PTHREAD_MUTEX_RECURSIVE;
23255 if ac_fn_c_try_compile
"$LINENO"; then :
23257 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
23260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23266 cat >>confdefs.h
<<_ACEOF
23267 #define GNULIB_LOCK 1
23275 if test $ac_cv_func_lstat = yes; then
23277 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
23286 if test $REPLACE_LSTAT = 1; then
23295 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
23310 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
23317 if test $gl_cv_func_malloc_posix = yes; then
23319 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
23325 if test $REPLACE_MALLOC = 1; then
23334 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
23342 GNULIB_MALLOC_POSIX
=1
23348 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
23366 if test $gl_cv_have_include_next = yes; then
23367 gl_cv_next_math_h
='<'math.h
'>'
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
23370 $as_echo_n "checking absolute name of <math.h>... " >&6; }
23371 if ${gl_cv_next_math_h+:} false
; then :
23372 $as_echo_n "(cached) " >&6
23375 if test $ac_cv_header_math_h = yes; then
23380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23381 /* end confdefs.h. */
23385 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23386 *) gl_absname_cpp
="$ac_cpp" ;;
23391 gl_dirsep_regex
='[/\\]'
23394 gl_dirsep_regex
='\/'
23397 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23398 gl_header_literal_regex
=`echo 'math.h' \
23399 | sed -e "$gl_make_literal_regex_sed"`
23400 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23401 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23407 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23408 sed -n "$gl_absolute_header_sed"`
23410 gl_header
=$gl_cv_absolute_math_h
23411 gl_cv_next_math_h
='"'$gl_header'"'
23413 gl_cv_next_math_h
='<'math.h
'>'
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
23419 $as_echo "$gl_cv_next_math_h" >&6; }
23421 NEXT_MATH_H
=$gl_cv_next_math_h
23423 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23425 gl_next_as_first_directive
='<'math.h
'>'
23427 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23428 gl_next_as_first_directive
=$gl_cv_next_math_h
23430 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
23437 $as_echo_n "checking whether NAN macro works... " >&6; }
23438 if ${gl_cv_header_math_nan_works+:} false
; then :
23439 $as_echo_n "(cached) " >&6
23441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23442 /* end confdefs.h. */
23447 /* Solaris 10 has a broken definition of NAN. Other platforms
23448 fail to provide NAN, or provide it only in C99 mode; this
23449 test only needs to fail when NAN is provided but wrong. */
23459 if ac_fn_c_try_compile
"$LINENO"; then :
23460 gl_cv_header_math_nan_works
=yes
23462 gl_cv_header_math_nan_works
=no
23464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
23467 $as_echo "$gl_cv_header_math_nan_works" >&6; }
23468 if test $gl_cv_header_math_nan_works = no
; then
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
23472 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
23473 if ${gl_cv_header_math_huge_val_works+:} false
; then :
23474 $as_echo_n "(cached) " >&6
23476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23477 /* end confdefs.h. */
23482 /* Solaris 10 has a broken definition of HUGE_VAL. */
23483 double d = HUGE_VAL;
23489 if ac_fn_c_try_compile
"$LINENO"; then :
23490 gl_cv_header_math_huge_val_works
=yes
23492 gl_cv_header_math_huge_val_works
=no
23494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
23497 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
23498 if test $gl_cv_header_math_huge_val_works = no
; then
23519 if case "$host_os" in
23521 *) test $ac_cv_func_mbsinit = yes ;;
23523 && test $ac_cv_func_mbrtowc = yes; then
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
23529 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
23530 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
23531 $as_echo_n "(cached) " >&6
23535 # Guess no on AIX and OSF/1.
23536 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
23537 # Guess yes otherwise.
23538 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
23540 if test $LOCALE_JA != none
; then
23541 if test "$cross_compiling" = yes; then :
23544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23545 /* end confdefs.h. */
23547 #include <locale.h>
23548 #include <string.h>
23552 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23554 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23558 memset (&state, '\0', sizeof (mbstate_t));
23559 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23560 if (mbsinit (&state))
23566 if ac_fn_c_try_run
"$LINENO"; then :
23567 gl_cv_func_mbrtowc_incomplete_state
=yes
23569 gl_cv_func_mbrtowc_incomplete_state
=no
23571 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23572 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23576 if test $LOCALE_FR_UTF8 != none
; then
23577 if test "$cross_compiling" = yes; then :
23580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23581 /* end confdefs.h. */
23583 #include <locale.h>
23584 #include <string.h>
23588 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23590 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
23594 memset (&state, '\0', sizeof (mbstate_t));
23595 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23596 if (mbsinit (&state))
23602 if ac_fn_c_try_run
"$LINENO"; then :
23603 gl_cv_func_mbrtowc_incomplete_state
=yes
23605 gl_cv_func_mbrtowc_incomplete_state
=no
23607 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23608 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
23616 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
23622 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
23623 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
23624 $as_echo_n "(cached) " >&6
23628 # Guess no on Solaris 8.
23629 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
23630 # Guess yes otherwise.
23631 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
23633 if test $LOCALE_ZH_CN != none
; then
23634 if test "$cross_compiling" = yes; then :
23637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23638 /* end confdefs.h. */
23640 #include <locale.h>
23641 #include <stdlib.h>
23642 #include <string.h>
23646 /* This fails on Solaris 8:
23647 mbrtowc returns 2, and sets wc to 0x00F0.
23648 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
23649 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23651 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
23655 memset (&state, '\0', sizeof (mbstate_t));
23656 if (mbrtowc (&wc, input + 3, 6, &state) != 4
23657 && mbtowc (&wc, input + 3, 6) == 4)
23663 if ac_fn_c_try_run
"$LINENO"; then :
23664 gl_cv_func_mbrtowc_sanitycheck
=yes
23666 gl_cv_func_mbrtowc_sanitycheck
=no
23668 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23669 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
23676 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
23678 REPLACE_MBSTATE_T
=0
23679 case "$gl_cv_func_mbrtowc_incomplete_state" in
23681 *) REPLACE_MBSTATE_T
=1 ;;
23683 case "$gl_cv_func_mbrtowc_sanitycheck" in
23685 *) REPLACE_MBSTATE_T
=1 ;;
23688 REPLACE_MBSTATE_T
=1
23693 if test $ac_cv_func_mbrtowc = no
; then
23695 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
23699 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
23705 cat >>confdefs.h
<<_ACEOF
23706 #define HAVE_DECL_MBRTOWC $ac_have_decl
23709 if test $ac_cv_have_decl_mbrtowc = yes; then
23713 if test $REPLACE_MBSTATE_T = 1; then
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
23720 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
23721 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
23722 $as_echo_n "(cached) " >&6
23726 # Guess no on Solaris.
23727 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
23728 # Guess yes otherwise.
23729 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
23731 if test $LOCALE_FR_UTF8 != none
; then
23732 if test "$cross_compiling" = yes; then :
23735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23736 /* end confdefs.h. */
23738 #include <locale.h>
23739 #include <stdlib.h>
23740 #include <string.h>
23746 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23748 char input[] = "\303\237er";
23753 memset (&state, '\0', sizeof (mbstate_t));
23754 wc = (wchar_t) 0xBADFACE;
23755 ret = mbrtowc (&wc, input, 5, &state);
23758 if (!mbsinit (&state))
23761 memset (&state, '\0', sizeof (mbstate_t));
23762 ret = mbrtowc (NULL, input, 5, &state);
23763 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
23765 if (!mbsinit (&state))
23771 if ac_fn_c_try_run
"$LINENO"; then :
23772 gl_cv_func_mbrtowc_null_arg1
=yes
23774 gl_cv_func_mbrtowc_null_arg1
=no
23776 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23777 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
23784 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
23790 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
23791 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
23792 $as_echo_n "(cached) " >&6
23796 # Guess no on OSF/1.
23797 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
23798 # Guess yes otherwise.
23799 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
23801 if test $LOCALE_FR_UTF8 != none
; then
23802 if test "$cross_compiling" = yes; then :
23805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23806 /* end confdefs.h. */
23808 #include <locale.h>
23809 #include <string.h>
23813 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23819 memset (&state, '\0', sizeof (mbstate_t));
23820 wc = (wchar_t) 0xBADFACE;
23821 mbrtowc (&wc, NULL, 5, &state);
23822 /* Check that wc was not modified. */
23823 if (wc != (wchar_t) 0xBADFACE)
23829 if ac_fn_c_try_run
"$LINENO"; then :
23830 gl_cv_func_mbrtowc_null_arg2
=yes
23832 gl_cv_func_mbrtowc_null_arg2
=no
23834 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23835 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
23842 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
23850 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
23851 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
23852 $as_echo_n "(cached) " >&6
23856 # Guess no on HP-UX, Solaris, native Windows.
23857 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
23858 # Guess yes otherwise.
23859 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
23861 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
23862 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
23863 if test "$cross_compiling" = yes; then :
23866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23867 /* end confdefs.h. */
23869 #include <locale.h>
23870 #include <string.h>
23875 int found_some_locale = 0;
23876 /* This fails on Solaris. */
23877 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23879 char input[] = "B\303\274\303\237er"; /* "Büßer" */
23883 memset (&state, '\0', sizeof (mbstate_t));
23884 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23887 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
23890 found_some_locale = 1;
23892 /* This fails on HP-UX 11.11. */
23893 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23895 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23899 memset (&state, '\0', sizeof (mbstate_t));
23900 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23903 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
23906 found_some_locale = 1;
23908 /* This fails on native Windows. */
23909 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
23911 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
23915 memset (&state, '\0', sizeof (mbstate_t));
23916 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23919 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23922 found_some_locale = 1;
23924 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
23926 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
23930 memset (&state, '\0', sizeof (mbstate_t));
23931 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23934 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23937 found_some_locale = 1;
23939 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
23941 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
23945 memset (&state, '\0', sizeof (mbstate_t));
23946 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
23949 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
23952 found_some_locale = 1;
23954 return (found_some_locale ? result : 77);
23957 if ac_fn_c_try_run
"$LINENO"; then :
23958 gl_cv_func_mbrtowc_retval
=yes
23960 if test $?
!= 77; then
23961 gl_cv_func_mbrtowc_retval
=no
23965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23966 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
23973 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
23979 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
23980 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
23981 $as_echo_n "(cached) " >&6
23985 # Guess no on Solaris 8 and 9.
23986 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
23987 # Guess yes otherwise.
23988 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
23990 if test $LOCALE_ZH_CN != none
; then
23991 if test "$cross_compiling" = yes; then :
23994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23995 /* end confdefs.h. */
23997 #include <locale.h>
23998 #include <string.h>
24002 /* This fails on Solaris 8 and 9. */
24003 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24008 memset (&state, '\0', sizeof (mbstate_t));
24009 if (mbrtowc (&wc, "", 1, &state) != 0)
24015 if ac_fn_c_try_run
"$LINENO"; then :
24016 gl_cv_func_mbrtowc_nul_retval
=yes
24018 gl_cv_func_mbrtowc_nul_retval
=no
24020 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24021 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
24028 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
24033 $as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; }
24034 if ${gl_cv_func_mbrtowc_stores_incomplete+:} false
; then :
24035 $as_echo_n "(cached) " >&6
24039 # Guess yes on native Windows.
24040 mingw
*) gl_cv_func_mbrtowc_stores_incomplete
="guessing yes" ;;
24041 *) gl_cv_func_mbrtowc_stores_incomplete
="guessing no" ;;
24045 if test "$cross_compiling" = yes; then :
24048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24049 /* end confdefs.h. */
24051 #include <locale.h>
24052 #include <string.h>
24057 if (setlocale (LC_ALL, "French_France.65001") != NULL)
24059 wchar_t wc = (wchar_t) 0xBADFACE;
24062 memset (&state, '\0', sizeof (mbstate_t));
24063 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
24064 && wc != (wchar_t) 0xBADFACE)
24067 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
24069 wchar_t wc = (wchar_t) 0xBADFACE;
24072 memset (&state, '\0', sizeof (mbstate_t));
24073 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
24074 && wc != (wchar_t) 0xBADFACE)
24077 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
24079 wchar_t wc = (wchar_t) 0xBADFACE;
24082 memset (&state, '\0', sizeof (mbstate_t));
24083 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
24084 && wc != (wchar_t) 0xBADFACE)
24087 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
24089 wchar_t wc = (wchar_t) 0xBADFACE;
24092 memset (&state, '\0', sizeof (mbstate_t));
24093 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
24094 && wc != (wchar_t) 0xBADFACE)
24100 if ac_fn_c_try_run
"$LINENO"; then :
24101 gl_cv_func_mbrtowc_stores_incomplete
=no
24103 gl_cv_func_mbrtowc_stores_incomplete
=yes
24105 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24106 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24112 if test $LOCALE_FR_UTF8 != none
; then
24113 if test "$cross_compiling" = yes; then :
24116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24117 /* end confdefs.h. */
24119 #include <locale.h>
24120 #include <string.h>
24124 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24126 wchar_t wc = (wchar_t) 0xBADFACE;
24129 memset (&state, '\0', sizeof (mbstate_t));
24130 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
24131 && wc != (wchar_t) 0xBADFACE)
24137 if ac_fn_c_try_run
"$LINENO"; then :
24138 gl_cv_func_mbrtowc_stores_incomplete
=no
24140 gl_cv_func_mbrtowc_stores_incomplete
=yes
24142 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24143 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
24152 $as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
24157 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
24158 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
24159 $as_echo_n "(cached) " >&6
24163 # Guess no on AIX and glibc systems.
24164 aix
* |
*-gnu* | gnu
*) gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
24165 # Guess yes on native Windows.
24166 mingw
*) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
24167 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
24169 if test "$cross_compiling" = yes; then :
24172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24173 /* end confdefs.h. */
24177 static mbstate_t mbs;
24181 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
24184 if ac_fn_c_try_run
"$LINENO"; then :
24185 gl_cv_func_mbrtowc_empty_input
=yes
24187 gl_cv_func_mbrtowc_empty_input
=no
24189 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24190 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
24196 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
24200 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
24201 if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false
; then :
24202 $as_echo_n "(cached) " >&6
24205 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="$gl_cross_guess_normal"
24207 if test "$cross_compiling" = yes; then :
24209 # Guess yes on native Windows.
24210 mingw
*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="guessing yes" ;;
24214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24215 /* end confdefs.h. */
24216 #include <limits.h>
24217 #include <locale.h>
24225 char *locale = setlocale (LC_ALL, "C");
24228 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
24232 mbstate_t mbs = { 0, };
24233 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
24243 if ac_fn_c_try_run
"$LINENO"; then :
24244 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=yes
24246 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=no
24248 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24249 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
24255 $as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
24257 case "$gl_cv_func_mbrtowc_null_arg1" in
24260 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
24265 case "$gl_cv_func_mbrtowc_null_arg2" in
24268 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
24273 case "$gl_cv_func_mbrtowc_retval" in
24276 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
24281 case "$gl_cv_func_mbrtowc_nul_retval" in
24284 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
24289 case "$gl_cv_func_mbrtowc_stores_incomplete" in
24292 $as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
24297 case "$gl_cv_func_mbrtowc_empty_input" in
24300 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
24305 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
24308 $as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
24315 if test $REPLACE_MBSTATE_T = 1; then
24317 mingw
*) LIB_MBRTOWC
= ;;
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
24322 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
24323 if ${gl_cv_have_weak+:} false
; then :
24324 $as_echo_n "(cached) " >&6
24327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24328 /* end confdefs.h. */
24329 extern void xyzzy ();
24339 if ac_fn_c_try_link
"$LINENO"; then :
24340 gl_cv_have_weak
=maybe
24342 rm -f core conftest.err conftest.
$ac_objext \
24343 conftest
$ac_exeext conftest.
$ac_ext
24344 if test $gl_cv_have_weak = maybe
; then
24345 if test "$cross_compiling" = yes; then :
24346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24347 /* end confdefs.h. */
24349 Extensible Linking Format
24353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24354 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
24355 gl_cv_have_weak
="guessing yes"
24357 gl_cv_have_weak
="guessing no"
24363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24364 /* end confdefs.h. */
24370 return (fputs == NULL);
24373 if ac_fn_c_try_run
"$LINENO"; then :
24374 gl_cv_have_weak
=yes
24378 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24379 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24383 case " $LDFLAGS " in
24384 *" -static "*) gl_cv_have_weak
=no
;;
24386 case "$gl_cv_have_weak" in
24389 freebsd
* | dragonfly
*)
24391 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
24392 cat <<EOF > conftest2.c
24393 #include <pthread.h>
24394 #pragma weak pthread_mutexattr_gettype
24397 return (pthread_mutexattr_gettype != NULL);
24400 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
24401 || gl_cv_have_weak
=no
24402 rm -f conftest1.c libempty.so conftest2.c conftest
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
24410 $as_echo "$gl_cv_have_weak" >&6; }
24411 case "$gl_cv_have_weak" in
24414 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
24419 case "$gl_cv_have_weak" in
24420 *yes) LIB_MBRTOWC
= ;;
24421 *) LIB_MBRTOWC
="$LIBPTHREAD" ;;
24430 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
24439 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
24441 if test $REPLACE_MBSTATE_T = 1; then
24450 gl_LIBOBJS
="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
24460 gl_LIBOBJS
="$gl_LIBOBJS mbtowc-lock.$ac_objext"
24467 if test -n "$GCC"; then
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
24469 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
24470 if ${gl_cv_cc_vis_werror+:} false
; then :
24471 $as_echo_n "(cached) " >&6
24473 gl_save_CFLAGS
="$CFLAGS"
24474 CFLAGS
="$CFLAGS -Werror"
24475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24476 /* end confdefs.h. */
24486 if ac_fn_c_try_compile
"$LINENO"; then :
24487 gl_cv_cc_vis_werror
=yes
24489 gl_cv_cc_vis_werror
=no
24491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24492 CFLAGS
="$gl_save_CFLAGS"
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
24496 $as_echo "$gl_cv_cc_vis_werror" >&6; }
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
24498 $as_echo_n "checking for simple visibility declarations... " >&6; }
24499 if ${gl_cv_cc_visibility+:} false
; then :
24500 $as_echo_n "(cached) " >&6
24502 gl_save_CFLAGS
="$CFLAGS"
24503 CFLAGS
="$CFLAGS -fvisibility=hidden"
24504 if test $gl_cv_cc_vis_werror = yes; then
24505 CFLAGS
="$CFLAGS -Werror"
24507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24508 /* end confdefs.h. */
24509 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
24510 extern __attribute__((__visibility__("default"))) int exportedvar;
24511 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
24512 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
24513 void dummyfunc (void) {}
24523 if ac_fn_c_try_compile
"$LINENO"; then :
24524 gl_cv_cc_visibility
=yes
24526 gl_cv_cc_visibility
=no
24528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24529 CFLAGS
="$gl_save_CFLAGS"
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
24533 $as_echo "$gl_cv_cc_visibility" >&6; }
24534 if test $gl_cv_cc_visibility = yes; then
24535 CFLAG_VISIBILITY
="-fvisibility=hidden"
24542 cat >>confdefs.h
<<_ACEOF
24543 #define HAVE_VISIBILITY $HAVE_VISIBILITY
24565 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
24581 if case "$host_os" in
24583 *) test $ac_cv_func_mbsinit = yes ;;
24585 && test $ac_cv_func_mbrtowc = yes; then
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24591 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24592 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24593 $as_echo_n "(cached) " >&6
24597 # Guess no on AIX and OSF/1.
24598 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24599 # Guess yes otherwise.
24600 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24602 if test $LOCALE_JA != none
; then
24603 if test "$cross_compiling" = yes; then :
24606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24607 /* end confdefs.h. */
24609 #include <locale.h>
24610 #include <string.h>
24614 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24616 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24620 memset (&state, '\0', sizeof (mbstate_t));
24621 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24622 if (mbsinit (&state))
24628 if ac_fn_c_try_run
"$LINENO"; then :
24629 gl_cv_func_mbrtowc_incomplete_state
=yes
24631 gl_cv_func_mbrtowc_incomplete_state
=no
24633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24634 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24638 if test $LOCALE_FR_UTF8 != none
; then
24639 if test "$cross_compiling" = yes; then :
24642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24643 /* end confdefs.h. */
24645 #include <locale.h>
24646 #include <string.h>
24650 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24652 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
24656 memset (&state, '\0', sizeof (mbstate_t));
24657 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24658 if (mbsinit (&state))
24664 if ac_fn_c_try_run
"$LINENO"; then :
24665 gl_cv_func_mbrtowc_incomplete_state
=yes
24667 gl_cv_func_mbrtowc_incomplete_state
=no
24669 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24670 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24678 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24684 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24685 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
24686 $as_echo_n "(cached) " >&6
24690 # Guess no on Solaris 8.
24691 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
24692 # Guess yes otherwise.
24693 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
24695 if test $LOCALE_ZH_CN != none
; then
24696 if test "$cross_compiling" = yes; then :
24699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24700 /* end confdefs.h. */
24702 #include <locale.h>
24703 #include <stdlib.h>
24704 #include <string.h>
24708 /* This fails on Solaris 8:
24709 mbrtowc returns 2, and sets wc to 0x00F0.
24710 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24711 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24713 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24717 memset (&state, '\0', sizeof (mbstate_t));
24718 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24719 && mbtowc (&wc, input + 3, 6) == 4)
24725 if ac_fn_c_try_run
"$LINENO"; then :
24726 gl_cv_func_mbrtowc_sanitycheck
=yes
24728 gl_cv_func_mbrtowc_sanitycheck
=no
24730 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24731 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24738 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24740 REPLACE_MBSTATE_T
=0
24741 case "$gl_cv_func_mbrtowc_incomplete_state" in
24743 *) REPLACE_MBSTATE_T
=1 ;;
24745 case "$gl_cv_func_mbrtowc_sanitycheck" in
24747 *) REPLACE_MBSTATE_T
=1 ;;
24750 REPLACE_MBSTATE_T
=1
24755 if test $ac_cv_func_mbsinit = no
; then
24757 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
24761 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
24767 cat >>confdefs.h
<<_ACEOF
24768 #define HAVE_DECL_MBSINIT $ac_have_decl
24771 if test $ac_cv_have_decl_mbsinit = yes; then
24775 if test $REPLACE_MBSTATE_T = 1; then
24779 mingw
*) REPLACE_MBSINIT
=1 ;;
24784 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
24793 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
24810 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
24825 if case "$host_os" in
24827 *) test $ac_cv_func_mbsinit = yes ;;
24829 && test $ac_cv_func_mbrtowc = yes; then
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24835 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24836 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24837 $as_echo_n "(cached) " >&6
24841 # Guess no on AIX and OSF/1.
24842 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24843 # Guess yes otherwise.
24844 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24846 if test $LOCALE_JA != none
; then
24847 if test "$cross_compiling" = yes; then :
24850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24851 /* end confdefs.h. */
24853 #include <locale.h>
24854 #include <string.h>
24858 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24860 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24864 memset (&state, '\0', sizeof (mbstate_t));
24865 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24866 if (mbsinit (&state))
24872 if ac_fn_c_try_run
"$LINENO"; then :
24873 gl_cv_func_mbrtowc_incomplete_state
=yes
24875 gl_cv_func_mbrtowc_incomplete_state
=no
24877 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24878 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24882 if test $LOCALE_FR_UTF8 != none
; then
24883 if test "$cross_compiling" = yes; then :
24886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24887 /* end confdefs.h. */
24889 #include <locale.h>
24890 #include <string.h>
24894 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24896 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
24900 memset (&state, '\0', sizeof (mbstate_t));
24901 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24902 if (mbsinit (&state))
24908 if ac_fn_c_try_run
"$LINENO"; then :
24909 gl_cv_func_mbrtowc_incomplete_state
=yes
24911 gl_cv_func_mbrtowc_incomplete_state
=no
24913 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24914 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24922 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24928 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24929 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
24930 $as_echo_n "(cached) " >&6
24934 # Guess no on Solaris 8.
24935 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
24936 # Guess yes otherwise.
24937 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
24939 if test $LOCALE_ZH_CN != none
; then
24940 if test "$cross_compiling" = yes; then :
24943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24944 /* end confdefs.h. */
24946 #include <locale.h>
24947 #include <stdlib.h>
24948 #include <string.h>
24952 /* This fails on Solaris 8:
24953 mbrtowc returns 2, and sets wc to 0x00F0.
24954 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24955 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24957 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24961 memset (&state, '\0', sizeof (mbstate_t));
24962 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24963 && mbtowc (&wc, input + 3, 6) == 4)
24969 if ac_fn_c_try_run
"$LINENO"; then :
24970 gl_cv_func_mbrtowc_sanitycheck
=yes
24972 gl_cv_func_mbrtowc_sanitycheck
=no
24974 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24975 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24982 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24984 REPLACE_MBSTATE_T
=0
24985 case "$gl_cv_func_mbrtowc_incomplete_state" in
24987 *) REPLACE_MBSTATE_T
=1 ;;
24989 case "$gl_cv_func_mbrtowc_sanitycheck" in
24991 *) REPLACE_MBSTATE_T
=1 ;;
24994 REPLACE_MBSTATE_T
=1
24999 if test $ac_cv_func_mbsrtowcs = no
; then
25001 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
25005 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
25011 cat >>confdefs.h
<<_ACEOF
25012 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
25015 if test $ac_cv_have_decl_mbsrtowcs = yes; then
25016 REPLACE_MBSRTOWCS
=1
25019 if test $REPLACE_MBSTATE_T = 1; then
25020 REPLACE_MBSRTOWCS
=1
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
25029 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
25030 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
25031 $as_echo_n "(cached) " >&6
25035 # Guess no on HP-UX, Solaris, mingw.
25036 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
25037 # Guess yes otherwise.
25038 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
25040 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
25041 if test "$cross_compiling" = yes; then :
25044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25045 /* end confdefs.h. */
25047 #include <locale.h>
25048 #include <string.h>
25053 /* Test whether the function supports a NULL destination argument.
25054 This fails on native Windows. */
25055 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
25057 const char input[] = "\337er";
25058 const char *src = input;
25061 memset (&state, '\0', sizeof (mbstate_t));
25062 if (mbsrtowcs (NULL, &src, 1, &state) != 3
25066 /* Test whether the function works when started with a conversion state
25067 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
25068 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
25070 const char input[] = "B\303\274\303\237er";
25073 memset (&state, '\0', sizeof (mbstate_t));
25074 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
25075 if (!mbsinit (&state))
25077 const char *src = input + 2;
25078 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
25082 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
25084 const char input[] = "<\306\374\313\334\270\354>";
25087 memset (&state, '\0', sizeof (mbstate_t));
25088 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
25089 if (!mbsinit (&state))
25091 const char *src = input + 4;
25092 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
25096 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
25098 const char input[] = "B\250\271\201\060\211\070er";
25101 memset (&state, '\0', sizeof (mbstate_t));
25102 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
25103 if (!mbsinit (&state))
25105 const char *src = input + 2;
25106 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
25113 if ac_fn_c_try_run
"$LINENO"; then :
25114 gl_cv_func_mbsrtowcs_works
=yes
25116 gl_cv_func_mbsrtowcs_works
=no
25118 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25119 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
25126 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
25128 case "$gl_cv_func_mbsrtowcs_works" in
25130 *) REPLACE_MBSRTOWCS
=1 ;;
25135 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
25144 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
25154 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
25171 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
25178 for ac_func
in mbtowc
25180 ac_fn_c_check_func
"$LINENO" "mbtowc" "ac_cv_func_mbtowc"
25181 if test "x$ac_cv_func_mbtowc" = xyes
; then :
25182 cat >>confdefs.h
<<_ACEOF
25183 #define HAVE_MBTOWC 1
25189 if test $ac_cv_func_mbtowc = no
; then
25197 if test $HAVE_MBTOWC = 0 ||
test $REPLACE_MBTOWC = 1; then
25206 gl_LIBOBJS
="$gl_LIBOBJS mbtowc.$ac_objext"
25223 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
25228 if test $REPLACE_MEMCHR = 1; then
25237 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
25240 for ac_header
in bp-sym.h
25242 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
25243 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
25244 cat >>confdefs.h
<<_ACEOF
25245 #define HAVE_BP_SYM_H 1
25265 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
25271 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
25273 $as_echo_n "checking whether memmem works in linear time... " >&6; }
25274 if ${gl_cv_func_memmem_works_fast+:} false
; then :
25275 $as_echo_n "(cached) " >&6
25277 if test "$cross_compiling" = yes; then :
25278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25279 /* end confdefs.h. */
25281 #include <features.h>
25282 #ifdef __GNU_LIBRARY__
25283 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
25284 && !defined __UCLIBC__
25289 #include <cygwin/version.h>
25290 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
25296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25297 $EGREP "Lucky user" >/dev
/null
2>&1; then :
25298 gl_cv_func_memmem_works_fast
="guessing yes"
25300 gl_cv_func_memmem_works_fast
="$gl_cross_guess_normal"
25306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h. */
25309 #include <signal.h> /* for signal */
25310 #include <string.h> /* for memmem */
25311 #include <stdlib.h> /* for malloc */
25312 #include <unistd.h> /* for alarm */
25313 static void quit (int sig) { _exit (sig + 128); }
25320 size_t m = 1000000;
25321 char *haystack = (char *) malloc (2 * m + 1);
25322 char *needle = (char *) malloc (m + 1);
25323 /* Failure to compile this test due to missing alarm is okay,
25324 since all such platforms (mingw) also lack memmem. */
25325 signal (SIGALRM, quit);
25327 /* Check for quadratic performance. */
25328 if (haystack && needle)
25330 memset (haystack, 'A', 2 * m);
25331 haystack[2 * m] = 'B';
25332 memset (needle, 'A', m);
25334 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
25337 /* Free allocated memory, in case some sanitizer is watching. */
25346 if ac_fn_c_try_run
"$LINENO"; then :
25347 gl_cv_func_memmem_works_fast
=yes
25349 gl_cv_func_memmem_works_fast
=no
25351 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25352 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
25358 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
25359 case "$gl_cv_func_memmem_works_fast" in
25367 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
25376 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
25383 for ac_func
in memmem
25385 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
25386 if test "x$ac_cv_func_memmem" = xyes
; then :
25387 cat >>confdefs.h
<<_ACEOF
25388 #define HAVE_MEMMEM 1
25394 if test $ac_cv_func_memmem = yes; then
25400 if test $ac_cv_have_decl_memmem = no
; then
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
25404 $as_echo_n "checking whether memmem works... " >&6; }
25405 if ${gl_cv_func_memmem_works_always+:} false
; then :
25406 $as_echo_n "(cached) " >&6
25408 if test "$cross_compiling" = yes; then :
25409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h. */
25412 #ifdef __GNU_LIBRARY__
25413 #include <features.h>
25414 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
25415 || __GLIBC_MINOR__ > 12)) \
25416 || (__GLIBC__ > 2)) \
25417 || defined __UCLIBC__
25420 #elif defined __CYGWIN__
25421 #include <cygwin/version.h>
25422 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
25430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25431 $EGREP "Lucky user" >/dev
/null
2>&1; then :
25432 gl_cv_func_memmem_works_always
="guessing yes"
25434 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
25440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25441 /* end confdefs.h. */
25443 #include <string.h> /* for memmem */
25444 #define P "_EF_BF_BD"
25445 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
25446 #define NEEDLE P P P P P
25453 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
25455 /* Check for empty needle behavior. */
25457 const char *haystack = "AAA";
25458 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
25467 if ac_fn_c_try_run
"$LINENO"; then :
25468 gl_cv_func_memmem_works_always
=yes
25470 gl_cv_func_memmem_works_always
=no
25472 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25473 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
25479 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
25480 case "$gl_cv_func_memmem_works_always" in
25489 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
25498 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
25512 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
25522 for ac_func
in mempcpy
25524 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
25525 if test "x$ac_cv_func_mempcpy" = xyes
; then :
25526 cat >>confdefs.h
<<_ACEOF
25527 #define HAVE_MEMPCPY 1
25533 if test $ac_cv_func_mempcpy = no
; then
25537 if test $HAVE_MEMPCPY = 0; then
25546 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
25563 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
25572 if test $ac_cv_have_decl_memrchr = no
; then
25573 HAVE_DECL_MEMRCHR
=0
25576 for ac_func
in memrchr
25578 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
25579 if test "x$ac_cv_func_memrchr" = xyes
; then :
25580 cat >>confdefs.h
<<_ACEOF
25581 #define HAVE_MEMRCHR 1
25588 if test $ac_cv_func_memrchr = no
; then
25597 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
25612 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
25622 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
25623 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
25624 $as_echo_n "(cached) " >&6
25626 rm -rf conftest.dir
25627 if test "$cross_compiling" = yes; then :
25629 # Guess yes on Linux systems.
25630 linux-
* | linux
) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
25631 # Guess yes on glibc systems.
25632 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
25633 # Guess yes on MSVC, no on mingw.
25634 mingw
*) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25635 /* end confdefs.h. */
25642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25643 $EGREP "Known" >/dev
/null
2>&1; then :
25644 gl_cv_func_mkdir_trailing_slash_works
="guessing yes"
25646 gl_cv_func_mkdir_trailing_slash_works
="guessing no"
25651 # If we don't know, obey --enable-cross-guesses.
25652 *) gl_cv_func_mkdir_trailing_slash_works
="$gl_cross_guess_normal" ;;
25656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25657 /* end confdefs.h. */
25659 #include <sys/types.h>
25660 #include <sys/stat.h>
25668 return mkdir ("conftest.dir/", 0700);
25673 if ac_fn_c_try_run
"$LINENO"; then :
25674 gl_cv_func_mkdir_trailing_slash_works
=yes
25676 gl_cv_func_mkdir_trailing_slash_works
=no
25678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25679 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25682 rm -rf conftest.dir
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
25686 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
25687 case "$gl_cv_func_mkdir_trailing_slash_works" in
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
25695 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
25696 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
25697 $as_echo_n "(cached) " >&6
25699 rm -rf conftest.dir
25700 if test "$cross_compiling" = yes; then :
25702 # Guess yes on glibc systems.
25703 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
25704 # Guess yes on musl systems.
25705 *-musl*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
25706 # Guess no on native Windows.
25707 mingw
*) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
25708 # If we don't know, obey --enable-cross-guesses.
25709 *) gl_cv_func_mkdir_trailing_dot_works
="$gl_cross_guess_normal" ;;
25713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25714 /* end confdefs.h. */
25716 #include <sys/types.h>
25717 #include <sys/stat.h>
25725 return !mkdir ("conftest.dir/./", 0700);
25730 if ac_fn_c_try_run
"$LINENO"; then :
25731 gl_cv_func_mkdir_trailing_dot_works
=yes
25733 gl_cv_func_mkdir_trailing_dot_works
=no
25735 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25736 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25739 rm -rf conftest.dir
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
25744 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
25745 case "$gl_cv_func_mkdir_trailing_dot_works" in
25750 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
25755 if test $REPLACE_MKDIR = 1; then
25764 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
25778 $as_echo "#define GNULIB_TEST_MKDIR 1" >>confdefs.h
25784 for ac_func
in mkdtemp
25786 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
25787 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
25788 cat >>confdefs.h
<<_ACEOF
25789 #define HAVE_MKDTEMP 1
25795 if test $ac_cv_func_mkdtemp = no
; then
25799 if test $HAVE_MKDTEMP = 0; then
25808 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
25824 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
25834 if test $ac_cv_func_mkostemp != yes; then
25838 if test $HAVE_MKOSTEMP = 0; then
25847 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
25854 cat >>confdefs.h
<<_ACEOF
25855 #define GNULIB_MKOSTEMP 1
25870 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
25875 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25884 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
25888 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25897 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
25902 cat >>confdefs.h
<<_ACEOF
25903 #define GNULIB_MSVC_NOTHROW 1
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
25910 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
25911 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
25912 $as_echo_n "(cached) " >&6
25915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25916 /* end confdefs.h. */
25917 #include <netinet/in.h>
25926 if ac_fn_c_try_compile
"$LINENO"; then :
25927 gl_cv_header_netinet_in_h_selfcontained
=yes
25929 gl_cv_header_netinet_in_h_selfcontained
=no
25931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
25935 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
25936 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
25939 NETINET_IN_H
='netinet/in.h'
25940 for ac_header
in netinet
/in.h
25942 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
25943 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
25944 cat >>confdefs.h
<<_ACEOF
25945 #define HAVE_NETINET_IN_H 1
25961 if test $gl_cv_have_include_next = yes; then
25962 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
25965 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
25966 if ${gl_cv_next_netinet_in_h+:} false
; then :
25967 $as_echo_n "(cached) " >&6
25970 if test $ac_cv_header_netinet_in_h = yes; then
25975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25976 /* end confdefs.h. */
25977 #include <netinet/in.h>
25980 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25981 *) gl_absname_cpp
="$ac_cpp" ;;
25986 gl_dirsep_regex
='[/\\]'
25989 gl_dirsep_regex
='\/'
25992 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25993 gl_header_literal_regex
=`echo 'netinet/in.h' \
25994 | sed -e "$gl_make_literal_regex_sed"`
25995 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25996 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26002 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26003 sed -n "$gl_absolute_header_sed"`
26005 gl_header
=$gl_cv_absolute_netinet_in_h
26006 gl_cv_next_netinet_in_h
='"'$gl_header'"'
26008 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
26014 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
26016 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
26018 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26020 gl_next_as_first_directive
='<'netinet
/in.h
'>'
26022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26023 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
26025 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
26030 if test $ac_cv_header_netinet_in_h = yes; then
26031 HAVE_NETINET_IN_H
=1
26033 HAVE_NETINET_IN_H
=0
26038 if test -n "$NETINET_IN_H"; then
26039 GL_GENERATE_NETINET_IN_H_TRUE
=
26040 GL_GENERATE_NETINET_IN_H_FALSE
='#'
26042 GL_GENERATE_NETINET_IN_H_TRUE
='#'
26043 GL_GENERATE_NETINET_IN_H_FALSE
=
26057 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
26063 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
26064 if ${gl_cv_func_open_slash+:} false
; then :
26065 $as_echo_n "(cached) " >&6
26067 # Assume that if we have lstat, we can also check symlinks.
26068 if test $ac_cv_func_lstat = yes; then
26070 ln -s conftest.tmp conftest.lnk
26072 if test "$cross_compiling" = yes; then :
26075 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
26076 gl_cv_func_open_slash
="guessing no" ;;
26078 gl_cv_func_open_slash
="guessing yes" ;;
26082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26083 /* end confdefs.h. */
26087 # include <unistd.h>
26097 if (open ("conftest.lnk/", O_RDONLY) != -1)
26100 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
26105 if ac_fn_c_try_run
"$LINENO"; then :
26106 gl_cv_func_open_slash
=yes
26108 gl_cv_func_open_slash
=no
26110 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26111 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26114 rm -f conftest.sl conftest.tmp conftest.lnk
26117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
26118 $as_echo "$gl_cv_func_open_slash" >&6; }
26119 case "$gl_cv_func_open_slash" in
26122 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
26127 case "$gl_cv_func_open_slash" in
26135 if test $REPLACE_OPEN = 0; then
26139 if test $ac_cv_func_fchdir = no
; then
26143 if test $HAVE_FCHDIR = 0; then
26150 if test $REPLACE_OPEN = 1; then
26159 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
26177 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
26187 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
26191 # Solaris 10 lacks O_CLOEXEC.
26192 # Solaris 9 has *at functions, but uniformly mishandles trailing
26193 # slash in all of them.
26201 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
26210 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
26219 cat >>confdefs.h
<<_ACEOF
26220 #define GNULIB_OPENAT 1
26234 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
26241 for ac_func
in opendir
26243 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
26244 if test "x$ac_cv_func_opendir" = xyes
; then :
26245 cat >>confdefs.h
<<_ACEOF
26246 #define HAVE_OPENDIR 1
26252 if test $ac_cv_func_opendir = no
; then
26259 if test $ac_cv_func_fchdir = no
; then
26263 if test $HAVE_FCHDIR = 0; then
26264 if test $HAVE_OPENDIR = 1; then
26269 case $host_os,$HAVE_OPENDIR in
26271 REPLACE_OPENDIR
=1;;
26274 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
26283 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
26297 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
26308 if test $ac_cv_func_pipe != yes; then
26312 if test $HAVE_PIPE = 0; then
26321 gl_LIBOBJS
="$gl_LIBOBJS pipe.$ac_objext"
26335 $as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h
26343 for ac_func
in rawmemchr
26345 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
26346 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
26347 cat >>confdefs.h
<<_ACEOF
26348 #define HAVE_RAWMEMCHR 1
26354 if test $ac_cv_func_rawmemchr = no
; then
26358 if test $HAVE_RAWMEMCHR = 0; then
26367 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
26382 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
26389 for ac_func
in readdir
26391 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
26392 if test "x$ac_cv_func_readdir" = xyes
; then :
26393 cat >>confdefs.h
<<_ACEOF
26394 #define HAVE_READDIR 1
26400 if test $ac_cv_func_readdir = no
; then
26404 if test $HAVE_READDIR = 0; then
26413 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
26427 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
26434 if test $ac_cv_func_readlink = no
; then
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
26438 $as_echo_n "checking whether readlink signature is correct... " >&6; }
26439 if ${gl_cv_decl_readlink_works+:} false
; then :
26440 $as_echo_n "(cached) " >&6
26442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26443 /* end confdefs.h. */
26444 #include <unistd.h>
26445 /* Cause compilation failure if original declaration has wrong type. */
26446 ssize_t readlink (const char *, char *, size_t);
26455 if ac_fn_c_try_compile
"$LINENO"; then :
26456 gl_cv_decl_readlink_works
=yes
26458 gl_cv_decl_readlink_works
=no
26460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
26463 $as_echo "$gl_cv_decl_readlink_works" >&6; }
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
26465 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
26466 if ${gl_cv_func_readlink_trailing_slash+:} false
; then :
26467 $as_echo_n "(cached) " >&6
26469 # We have readlink, so assume ln -s works.
26470 ln -s conftest.no-such conftest.link
26471 ln -s conftest.link conftest.lnk2
26472 if test "$cross_compiling" = yes; then :
26474 # Guess yes on Linux or glibc systems.
26475 linux-
* | linux |
*-gnu* | gnu
*)
26476 gl_cv_func_readlink_trailing_slash
="guessing yes" ;;
26477 # Guess no on AIX or HP-UX.
26479 gl_cv_func_readlink_trailing_slash
="guessing no" ;;
26480 # If we don't know, obey --enable-cross-guesses.
26482 gl_cv_func_readlink_trailing_slash
="$gl_cross_guess_normal" ;;
26486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26487 /* end confdefs.h. */
26488 #include <unistd.h>
26494 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
26499 if ac_fn_c_try_run
"$LINENO"; then :
26500 gl_cv_func_readlink_trailing_slash
=yes
26502 gl_cv_func_readlink_trailing_slash
=no
26504 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26505 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26508 rm -f conftest.link conftest.lnk2
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5
26511 $as_echo "$gl_cv_func_readlink_trailing_slash" >&6; }
26512 case "$gl_cv_func_readlink_trailing_slash" in
26514 if test "$gl_cv_decl_readlink_works" != yes; then
26520 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5
26527 $as_echo_n "checking whether readlink truncates results correctly... " >&6; }
26528 if ${gl_cv_func_readlink_truncate+:} false
; then :
26529 $as_echo_n "(cached) " >&6
26531 # We have readlink, so assume ln -s works.
26532 ln -s ab conftest.link
26533 if test "$cross_compiling" = yes; then :
26535 # Guess yes on Linux or glibc systems.
26536 linux-
* | linux |
*-gnu* | gnu
*)
26537 gl_cv_func_readlink_truncate
="guessing yes" ;;
26538 # Guess no on AIX or HP-UX.
26540 gl_cv_func_readlink_truncate
="guessing no" ;;
26541 # If we don't know, obey --enable-cross-guesses.
26543 gl_cv_func_readlink_truncate
="$gl_cross_guess_normal" ;;
26547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26548 /* end confdefs.h. */
26549 #include <unistd.h>
26555 return readlink ("conftest.link", &c, 1) != 1;
26560 if ac_fn_c_try_run
"$LINENO"; then :
26561 gl_cv_func_readlink_truncate
=yes
26563 gl_cv_func_readlink_truncate
=no
26565 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26566 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26569 rm -f conftest.link conftest.lnk2
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5
26572 $as_echo "$gl_cv_func_readlink_truncate" >&6; }
26573 case $gl_cv_func_readlink_truncate in
26575 if test "$gl_cv_decl_readlink_works" != yes; then
26581 $as_echo "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h
26588 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
26597 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
26614 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
26621 if test $gl_cv_func_malloc_posix = yes; then
26623 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
26629 if test $REPLACE_REALLOC = 1; then
26638 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
26646 GNULIB_REALLOC_POSIX
=1
26652 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
26662 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
26663 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
26664 $as_echo_n "(cached) " >&6
26666 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
26667 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
26668 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26669 # Assume that if we have lstat, we can also check symlinks.
26670 if test $ac_cv_func_lstat = yes; then
26671 ln -s conftest.f conftest.lnk
26673 if test "$cross_compiling" = yes; then :
26675 # Guess yes on Linux systems.
26676 linux-
* | linux
) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
26677 # Guess yes on glibc systems.
26678 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
26679 # Guess no on native Windows.
26680 mingw
*) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
26681 # If we don't know, obey --enable-cross-guesses.
26682 *) gl_cv_func_rename_slash_dst_works
="$gl_cross_guess_normal" ;;
26686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26687 /* end confdefs.h. */
26689 # include <stdio.h>
26690 # include <stdlib.h>
26696 if (rename ("conftest.f1", "conftest.f2/") == 0)
26698 if (rename ("conftest.d1", "conftest.d2/") != 0)
26701 if (rename ("conftest.f", "conftest.lnk/") == 0)
26710 if ac_fn_c_try_run
"$LINENO"; then :
26711 gl_cv_func_rename_slash_dst_works
=yes
26713 gl_cv_func_rename_slash_dst_works
=no
26715 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26716 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26719 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
26723 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
26724 case "$gl_cv_func_rename_slash_dst_works" in
26729 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
26735 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
26736 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
26737 $as_echo_n "(cached) " >&6
26739 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
26740 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
26741 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26742 # Assume that if we have lstat, we can also check symlinks.
26743 if test $ac_cv_func_lstat = yes; then
26744 ln -s conftest.f conftest.lnk
26746 if test "$cross_compiling" = yes; then :
26748 # Guess yes on Linux systems.
26749 linux-
* | linux
) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26750 # Guess yes on glibc systems.
26751 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26752 # Guess yes on native Windows.
26753 mingw
*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
26754 # If we don't know, obey --enable-cross-guesses.
26755 *) gl_cv_func_rename_slash_src_works
="$gl_cross_guess_normal" ;;
26759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26760 /* end confdefs.h. */
26762 # include <stdio.h>
26763 # include <stdlib.h>
26769 if (rename ("conftest.f1/", "conftest.d3") == 0)
26771 if (rename ("conftest.d1/", "conftest.d2") != 0)
26774 if (rename ("conftest.lnk/", "conftest.f") == 0)
26783 if ac_fn_c_try_run
"$LINENO"; then :
26784 gl_cv_func_rename_slash_src_works
=yes
26786 gl_cv_func_rename_slash_src_works
=no
26788 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26789 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26792 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
26796 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
26797 case "$gl_cv_func_rename_slash_src_works" in
26802 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
26809 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
26810 if ${gl_cv_func_rename_link_works+:} false
; then :
26811 $as_echo_n "(cached) " >&6
26813 if test $ac_cv_func_link = yes; then
26814 if test $cross_compiling != yes; then
26815 rm -rf conftest.f conftest.f1 conftest.f2
26816 if touch conftest.f conftest.f2
&& ln conftest.f conftest.f1
&&
26817 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
26818 if test "$cross_compiling" = yes; then :
26822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26823 /* end confdefs.h. */
26825 # include <errno.h>
26826 # include <stdio.h>
26827 # include <stdlib.h>
26828 # include <unistd.h>
26837 if (rename ("conftest.f", "conftest.f1"))
26839 if (unlink ("conftest.f1"))
26842 /* Allow either the POSIX-required behavior, where the
26843 previous rename kept conftest.f, or the (better) NetBSD
26844 behavior, where it removed conftest.f. */
26845 if (rename ("conftest.f", "conftest.f") != 0
26846 && errno != ENOENT)
26849 if (rename ("conftest.f1", "conftest.f1") == 0)
26851 if (rename ("conftest.f2", "conftest.f2") != 0)
26859 if ac_fn_c_try_run
"$LINENO"; then :
26860 gl_cv_func_rename_link_works
=yes
26862 gl_cv_func_rename_link_works
=no
26864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26869 gl_cv_func_rename_link_works
="guessing no"
26871 rm -rf conftest.f conftest.f1 conftest.f2
26874 # Guess yes on Linux systems.
26875 linux-
* | linux
) gl_cv_func_rename_link_works
="guessing yes" ;;
26876 # Guess yes on glibc systems.
26877 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
26878 # Guess yes on native Windows.
26879 mingw
*) gl_cv_func_rename_link_works
="guessing yes" ;;
26880 # If we don't know, obey --enable-cross-guesses.
26881 *) gl_cv_func_rename_link_works
="$gl_cross_guess_normal" ;;
26885 gl_cv_func_rename_link_works
=yes
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
26890 $as_echo "$gl_cv_func_rename_link_works" >&6; }
26891 case "$gl_cv_func_rename_link_works" in
26896 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
26902 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
26903 if ${gl_cv_func_rename_dest_works+:} false
; then :
26904 $as_echo_n "(cached) " >&6
26906 rm -rf conftest.f conftest.d1 conftest.d2
26907 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
26908 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
26909 if test "$cross_compiling" = yes; then :
26911 # Guess yes on Linux systems.
26912 linux-
* | linux
) gl_cv_func_rename_dest_works
="guessing yes" ;;
26913 # Guess yes on glibc systems.
26914 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
26915 # Guess no on native Windows.
26916 mingw
*) gl_cv_func_rename_dest_works
="guessing no" ;;
26917 # If we don't know, obey --enable-cross-guesses.
26918 *) gl_cv_func_rename_dest_works
="$gl_cross_guess_normal" ;;
26922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26923 /* end confdefs.h. */
26925 # include <stdio.h>
26926 # include <stdlib.h>
26932 if (rename ("conftest.d1", "conftest.d2") != 0)
26934 if (rename ("conftest.d2", "conftest.f") == 0)
26942 if ac_fn_c_try_run
"$LINENO"; then :
26943 gl_cv_func_rename_dest_works
=yes
26945 gl_cv_func_rename_dest_works
=no
26947 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26948 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26951 rm -rf conftest.f conftest.d1 conftest.d2
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
26955 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
26956 case "$gl_cv_func_rename_dest_works" in
26961 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
26966 if test $REPLACE_RENAME = 1; then
26975 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
26989 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
26996 for ac_func
in rewinddir
26998 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
26999 if test "x$ac_cv_func_rewinddir" = xyes
; then :
27000 cat >>confdefs.h
<<_ACEOF
27001 #define HAVE_REWINDDIR 1
27007 if test $ac_cv_func_rewinddir = no
; then
27011 if test $HAVE_REWINDDIR = 0; then
27020 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
27034 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
27042 $as_echo_n "checking whether rmdir works... " >&6; }
27043 if ${gl_cv_func_rmdir_works+:} false
; then :
27044 $as_echo_n "(cached) " >&6
27047 touch conftest.
file
27048 if test "$cross_compiling" = yes; then :
27050 # Guess yes on Linux systems.
27051 linux-
* | linux
) gl_cv_func_rmdir_works
="guessing yes" ;;
27052 # Guess yes on glibc systems.
27053 *-gnu* | gnu
*) gl_cv_func_rmdir_works
="guessing yes" ;;
27054 # Guess no on native Windows.
27055 mingw
*) gl_cv_func_rmdir_works
="guessing no" ;;
27056 # If we don't know, obey --enable-cross-guesses.
27057 *) gl_cv_func_rmdir_works
="$gl_cross_guess_normal" ;;
27061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27062 /* end confdefs.h. */
27066 # include <unistd.h>
27067 #else /* on Windows with MSVC */
27068 # include <direct.h>
27078 if (!rmdir ("conftest.file/"))
27080 else if (errno != ENOTDIR)
27082 if (!rmdir ("conftest.dir/./"))
27090 if ac_fn_c_try_run
"$LINENO"; then :
27091 gl_cv_func_rmdir_works
=yes
27093 gl_cv_func_rmdir_works
=no
27095 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27096 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27099 rm -rf conftest.dir conftest.
file
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
27102 $as_echo "$gl_cv_func_rmdir_works" >&6; }
27103 case "$gl_cv_func_rmdir_works" in
27110 if test $REPLACE_RMDIR = 1; then
27119 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
27133 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
27142 if test $ac_cv_func_setenv = no
; then
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
27146 $as_echo_n "checking whether setenv validates arguments... " >&6; }
27147 if ${gl_cv_func_setenv_works+:} false
; then :
27148 $as_echo_n "(cached) " >&6
27150 if test "$cross_compiling" = yes; then :
27152 # Guess yes on glibc systems.
27153 *-gnu* | gnu
*) gl_cv_func_setenv_works
="guessing yes" ;;
27154 # Guess yes on musl systems.
27155 *-musl*) gl_cv_func_setenv_works
="guessing yes" ;;
27156 # If we don't know, obey --enable-cross-guesses.
27157 *) gl_cv_func_setenv_works
="$gl_cross_guess_normal" ;;
27161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27162 /* end confdefs.h. */
27164 #include <stdlib.h>
27166 #include <string.h>
27174 if (setenv ("", "", 0) != -1)
27176 else if (errno != EINVAL)
27180 if (setenv ("a", "=", 1) != 0)
27182 else if (strcmp (getenv ("a"), "=") != 0)
27191 if ac_fn_c_try_run
"$LINENO"; then :
27192 gl_cv_func_setenv_works
=yes
27194 gl_cv_func_setenv_works
=no
27196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
27202 $as_echo "$gl_cv_func_setenv_works" >&6; }
27203 case "$gl_cv_func_setenv_works" in
27211 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
27220 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
27234 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
27244 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
27245 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
27246 $as_echo_n "(cached) " >&6
27249 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
27250 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
27251 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
27252 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
27253 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
27254 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
27255 # If we don't know, obey --enable-cross-guesses.
27257 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
27262 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
27266 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
27267 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
27271 case "$gl_cv_func_setlocale_null_all_mtsafe" in
27272 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
27273 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
27276 cat >>confdefs.h
<<_ACEOF
27277 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
27282 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
27283 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
27284 $as_echo_n "(cached) " >&6
27287 # Guess no on OpenBSD, AIX.
27289 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
27290 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
27291 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
27292 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
27293 # If we don't know, obey --enable-cross-guesses.
27295 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
27299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
27300 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
27304 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
27305 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
27309 case "$gl_cv_func_setlocale_null_one_mtsafe" in
27310 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
27311 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
27314 cat >>confdefs.h
<<_ACEOF
27315 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
27319 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
27321 mingw
*) LIB_SETLOCALE_NULL
= ;;
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
27326 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
27327 if ${gl_cv_have_weak+:} false
; then :
27328 $as_echo_n "(cached) " >&6
27331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27332 /* end confdefs.h. */
27333 extern void xyzzy ();
27343 if ac_fn_c_try_link
"$LINENO"; then :
27344 gl_cv_have_weak
=maybe
27346 rm -f core conftest.err conftest.
$ac_objext \
27347 conftest
$ac_exeext conftest.
$ac_ext
27348 if test $gl_cv_have_weak = maybe
; then
27349 if test "$cross_compiling" = yes; then :
27350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27351 /* end confdefs.h. */
27353 Extensible Linking Format
27357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27358 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
27359 gl_cv_have_weak
="guessing yes"
27361 gl_cv_have_weak
="guessing no"
27367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27368 /* end confdefs.h. */
27374 return (fputs == NULL);
27377 if ac_fn_c_try_run
"$LINENO"; then :
27378 gl_cv_have_weak
=yes
27382 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27383 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27387 case " $LDFLAGS " in
27388 *" -static "*) gl_cv_have_weak
=no
;;
27390 case "$gl_cv_have_weak" in
27393 freebsd
* | dragonfly
*)
27395 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
27396 cat <<EOF > conftest2.c
27397 #include <pthread.h>
27398 #pragma weak pthread_mutexattr_gettype
27401 return (pthread_mutexattr_gettype != NULL);
27404 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
27405 || gl_cv_have_weak
=no
27406 rm -f conftest1.c libempty.so conftest2.c conftest
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
27414 $as_echo "$gl_cv_have_weak" >&6; }
27415 case "$gl_cv_have_weak" in
27418 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
27423 case "$gl_cv_have_weak" in
27424 *yes) LIB_SETLOCALE_NULL
= ;;
27425 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
27430 LIB_SETLOCALE_NULL
=
27434 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
27443 gl_LIBOBJS
="$gl_LIBOBJS setlocale-lock.$ac_objext"
27450 if test -n "$GCC"; then
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
27452 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
27453 if ${gl_cv_cc_vis_werror+:} false
; then :
27454 $as_echo_n "(cached) " >&6
27456 gl_save_CFLAGS
="$CFLAGS"
27457 CFLAGS
="$CFLAGS -Werror"
27458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27459 /* end confdefs.h. */
27469 if ac_fn_c_try_compile
"$LINENO"; then :
27470 gl_cv_cc_vis_werror
=yes
27472 gl_cv_cc_vis_werror
=no
27474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27475 CFLAGS
="$gl_save_CFLAGS"
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
27479 $as_echo "$gl_cv_cc_vis_werror" >&6; }
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
27481 $as_echo_n "checking for simple visibility declarations... " >&6; }
27482 if ${gl_cv_cc_visibility+:} false
; then :
27483 $as_echo_n "(cached) " >&6
27485 gl_save_CFLAGS
="$CFLAGS"
27486 CFLAGS
="$CFLAGS -fvisibility=hidden"
27487 if test $gl_cv_cc_vis_werror = yes; then
27488 CFLAGS
="$CFLAGS -Werror"
27490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27491 /* end confdefs.h. */
27492 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
27493 extern __attribute__((__visibility__("default"))) int exportedvar;
27494 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
27495 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
27496 void dummyfunc (void) {}
27506 if ac_fn_c_try_compile
"$LINENO"; then :
27507 gl_cv_cc_visibility
=yes
27509 gl_cv_cc_visibility
=no
27511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27512 CFLAGS
="$gl_save_CFLAGS"
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
27516 $as_echo "$gl_cv_cc_visibility" >&6; }
27517 if test $gl_cv_cc_visibility = yes; then
27518 CFLAG_VISIBILITY
="-fvisibility=hidden"
27525 cat >>confdefs.h
<<_ACEOF
27526 #define HAVE_VISIBILITY $HAVE_VISIBILITY
27537 GNULIB_SETLOCALE_NULL
=1
27543 $as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
27558 if test $gl_cv_have_include_next = yes; then
27559 gl_cv_next_signal_h
='<'signal.h
'>'
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
27562 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
27563 if ${gl_cv_next_signal_h+:} false
; then :
27564 $as_echo_n "(cached) " >&6
27569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27570 /* end confdefs.h. */
27571 #include <signal.h>
27574 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27575 *) gl_absname_cpp
="$ac_cpp" ;;
27580 gl_dirsep_regex
='[/\\]'
27583 gl_dirsep_regex
='\/'
27586 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27587 gl_header_literal_regex
=`echo 'signal.h' \
27588 | sed -e "$gl_make_literal_regex_sed"`
27589 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27590 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27596 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27597 sed -n "$gl_absolute_header_sed"`
27599 gl_header
=$gl_cv_absolute_signal_h
27600 gl_cv_next_signal_h
='"'$gl_header'"'
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
27605 $as_echo "$gl_cv_next_signal_h" >&6; }
27607 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
27609 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27610 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27611 gl_next_as_first_directive
='<'signal.h
'>'
27613 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27614 gl_next_as_first_directive
=$gl_cv_next_signal_h
27616 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
27622 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
27623 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
27624 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
27625 #include <signal.h>
27628 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
27631 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
27640 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
27641 #include <signal.h>
27644 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
27647 HAVE_SIGHANDLER_T
=0
27657 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
27658 /* <sys/types.h> is not needed according to POSIX, but the
27659 <sys/socket.h> in i386-unknown-freebsd4.10 and
27660 powerpc-apple-darwin5.5 required it. */
27661 #include <sys/types.h>
27662 #if HAVE_SYS_SOCKET_H
27663 # include <sys/socket.h>
27664 #elif HAVE_WS2TCPIP_H
27665 # include <ws2tcpip.h>
27669 if test "x$ac_cv_type_socklen_t" = xyes
; then :
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
27673 $as_echo_n "checking for socklen_t equivalent... " >&6; }
27674 if ${gl_cv_socklen_t_equiv+:} false
; then :
27675 $as_echo_n "(cached) " >&6
27677 # Systems have either "struct sockaddr *" or
27678 # "void *" as the second argument to getpeername
27679 gl_cv_socklen_t_equiv
=
27680 for arg2
in "struct sockaddr" void
; do
27681 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
27682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27683 /* end confdefs.h. */
27684 #include <sys/types.h>
27685 #include <sys/socket.h>
27687 int getpeername (int, $arg2 *, $t *);
27692 getpeername (0, 0, &len);
27697 if ac_fn_c_try_compile
"$LINENO"; then :
27698 gl_cv_socklen_t_equiv
="$t"
27700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27701 test "$gl_cv_socklen_t_equiv" != "" && break
27703 test "$gl_cv_socklen_t_equiv" != "" && break
27705 if test "$gl_cv_socklen_t_equiv" = ""; then
27706 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
27711 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
27713 cat >>confdefs.h
<<_ACEOF
27714 #define socklen_t $gl_cv_socklen_t_equiv
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
27721 $as_echo_n "checking for ssize_t... " >&6; }
27722 if ${gt_cv_ssize_t+:} false
; then :
27723 $as_echo_n "(cached) " >&6
27725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27726 /* end confdefs.h. */
27727 #include <sys/types.h>
27731 int x = sizeof (ssize_t *) + sizeof (ssize_t);
27737 if ac_fn_c_try_compile
"$LINENO"; then :
27742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
27745 $as_echo "$gt_cv_ssize_t" >&6; }
27746 if test $gt_cv_ssize_t = no
; then
27748 $as_echo "#define ssize_t int" >>confdefs.h
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
27761 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
27762 if ${gl_cv_func_stat_file_slash+:} false
; then :
27763 $as_echo_n "(cached) " >&6
27766 # Assume that if we have lstat, we can also check symlinks.
27767 if test $ac_cv_func_lstat = yes; then
27768 ln -s conftest.tmp conftest.lnk
27770 if test "$cross_compiling" = yes; then :
27772 # Guess yes on Linux systems.
27773 linux-
* | linux
) gl_cv_func_stat_file_slash
="guessing yes" ;;
27774 # Guess yes on glibc systems.
27775 *-gnu* | gnu
*) gl_cv_func_stat_file_slash
="guessing yes" ;;
27776 # If we don't know, obey --enable-cross-guesses.
27777 *) gl_cv_func_stat_file_slash
="$gl_cross_guess_normal" ;;
27781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27782 /* end confdefs.h. */
27783 #include <sys/stat.h>
27790 if (!stat ("conftest.tmp/", &st))
27793 if (!stat ("conftest.lnk/", &st))
27802 if ac_fn_c_try_run
"$LINENO"; then :
27803 gl_cv_func_stat_file_slash
=yes
27805 gl_cv_func_stat_file_slash
=no
27807 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27808 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27811 rm -f conftest.tmp conftest.lnk
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
27814 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
27815 case $gl_cv_func_stat_file_slash in
27819 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
27829 if test $REPLACE_STAT = 1; then
27838 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
27850 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
27871 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
27879 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>
27880 #include <sys/stat.h>
27882 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
27884 cat >>confdefs.h
<<_ACEOF
27885 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
27888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
27889 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
27890 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
27891 $as_echo_n "(cached) " >&6
27893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27894 /* end confdefs.h. */
27896 #include <sys/types.h>
27897 #include <sys/stat.h>
27898 #if HAVE_SYS_TIME_H
27899 # include <sys/time.h>
27902 struct timespec ts;
27915 if ac_fn_c_try_compile
"$LINENO"; then :
27916 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
27918 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
27920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
27923 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
27924 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
27926 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
27930 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>
27931 #include <sys/stat.h>
27933 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
27935 cat >>confdefs.h
<<_ACEOF
27936 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
27941 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
27942 #include <sys/stat.h>
27944 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
27946 cat >>confdefs.h
<<_ACEOF
27947 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
27952 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>
27953 #include <sys/stat.h>
27955 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
27957 cat >>confdefs.h
<<_ACEOF
27958 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
27974 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>
27975 #include <sys/stat.h>
27977 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
; then :
27979 cat >>confdefs.h
<<_ACEOF
27980 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
27985 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
27986 #include <sys/stat.h>
27988 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
; then :
27990 cat >>confdefs.h
<<_ACEOF
27991 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
27996 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>
27997 #include <sys/stat.h>
27999 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
; then :
28001 cat >>confdefs.h
<<_ACEOF
28002 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
28014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
28015 $as_echo_n "checking for working stdalign.h... " >&6; }
28016 if ${gl_cv_header_working_stdalign_h+:} false
; then :
28017 $as_echo_n "(cached) " >&6
28019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28020 /* end confdefs.h. */
28021 #include <stdalign.h>
28022 #include <stddef.h>
28024 /* Test that alignof yields a result consistent with offsetof.
28025 This catches GCC bug 52023
28026 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
28028 template <class t> struct alignof_helper { char a; t b; };
28029 # define ao(type) offsetof (alignof_helper<type>, b)
28031 # define ao(type) offsetof (struct { char a; type b; }, b)
28033 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
28034 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
28035 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
28037 /* Test _Alignas only on platforms where gnulib can help. */
28039 ((defined __cplusplus && 201103 <= __cplusplus) \
28040 || (defined __APPLE__ && defined __MACH__ \
28041 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
28043 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
28044 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
28045 || 1300 <= _MSC_VER)
28046 struct alignas_test { char c; char alignas (8) alignas_8; };
28047 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
28059 if ac_fn_c_try_compile
"$LINENO"; then :
28060 gl_cv_header_working_stdalign_h
=yes
28062 gl_cv_header_working_stdalign_h
=no
28064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
28067 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
28069 if test $gl_cv_header_working_stdalign_h = yes; then
28072 STDALIGN_H
='stdalign.h'
28076 if test -n "$STDALIGN_H"; then
28077 GL_GENERATE_STDALIGN_H_TRUE
=
28078 GL_GENERATE_STDALIGN_H_FALSE
='#'
28080 GL_GENERATE_STDALIGN_H_TRUE
='#'
28081 GL_GENERATE_STDALIGN_H_FALSE
=
28089 if test "$ac_cv_header_stdbool_h" = yes; then
28092 if test -z "$GCC"; then
28093 STDBOOL_H
='stdbool.h'
28103 STDBOOL_H
='stdbool.h'
28106 if test -n "$STDBOOL_H"; then
28107 GL_GENERATE_STDBOOL_H_TRUE
=
28108 GL_GENERATE_STDBOOL_H_FALSE
='#'
28110 GL_GENERATE_STDBOOL_H_TRUE
='#'
28111 GL_GENERATE_STDBOOL_H_FALSE
=
28115 if test "$ac_cv_type__Bool" = yes; then
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
28131 $as_echo_n "checking for good max_align_t... " >&6; }
28132 if ${gl_cv_type_max_align_t+:} false
; then :
28133 $as_echo_n "(cached) " >&6
28135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28136 /* end confdefs.h. */
28137 #include <stddef.h>
28138 unsigned int s = sizeof (max_align_t);
28139 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
28140 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
28141 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
28143 typedef struct { char a; max_align_t b; } max_helper;
28144 typedef struct { char a; long b; } long_helper;
28145 typedef struct { char a; double b; } double_helper;
28146 typedef struct { char a; long double b; } long_double_helper;
28147 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
28148 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
28149 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
28159 if ac_fn_c_try_compile
"$LINENO"; then :
28160 gl_cv_type_max_align_t
=yes
28162 gl_cv_type_max_align_t
=no
28164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
28168 $as_echo "$gl_cv_type_max_align_t" >&6; }
28169 if test $gl_cv_type_max_align_t = no
; then
28174 if test $gt_cv_c_wchar_t = no
; then
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
28180 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
28181 if ${gl_cv_decl_null_works+:} false
; then :
28182 $as_echo_n "(cached) " >&6
28184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28185 /* end confdefs.h. */
28186 #include <stddef.h>
28187 int test[2 * (sizeof NULL == sizeof (void *)) -1];
28197 if ac_fn_c_try_compile
"$LINENO"; then :
28198 gl_cv_decl_null_works
=yes
28200 gl_cv_decl_null_works
=no
28202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
28205 $as_echo "$gl_cv_decl_null_works" >&6; }
28206 if test $gl_cv_decl_null_works = no
; then
28212 if test -n "$STDDEF_H"; then
28213 GL_GENERATE_STDDEF_H_TRUE
=
28214 GL_GENERATE_STDDEF_H_FALSE
='#'
28216 GL_GENERATE_STDDEF_H_TRUE
='#'
28217 GL_GENERATE_STDDEF_H_FALSE
=
28220 if test -n "$STDDEF_H"; then
28229 if test $gl_cv_have_include_next = yes; then
28230 gl_cv_next_stddef_h
='<'stddef.h
'>'
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
28233 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
28234 if ${gl_cv_next_stddef_h+:} false
; then :
28235 $as_echo_n "(cached) " >&6
28240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28241 /* end confdefs.h. */
28242 #include <stddef.h>
28245 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28246 *) gl_absname_cpp
="$ac_cpp" ;;
28251 gl_dirsep_regex
='[/\\]'
28254 gl_dirsep_regex
='\/'
28257 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28258 gl_header_literal_regex
=`echo 'stddef.h' \
28259 | sed -e "$gl_make_literal_regex_sed"`
28260 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28261 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28267 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28268 sed -n "$gl_absolute_header_sed"`
28270 gl_header
=$gl_cv_absolute_stddef_h
28271 gl_cv_next_stddef_h
='"'$gl_header'"'
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
28276 $as_echo "$gl_cv_next_stddef_h" >&6; }
28278 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
28280 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28281 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28282 gl_next_as_first_directive
='<'stddef.h
'>'
28284 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28285 gl_next_as_first_directive
=$gl_cv_next_stddef_h
28287 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
28297 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
28308 if test $gl_cv_have_include_next = yes; then
28309 gl_cv_next_stdio_h
='<'stdio.h
'>'
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
28312 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
28313 if ${gl_cv_next_stdio_h+:} false
; then :
28314 $as_echo_n "(cached) " >&6
28319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28320 /* end confdefs.h. */
28324 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28325 *) gl_absname_cpp
="$ac_cpp" ;;
28330 gl_dirsep_regex
='[/\\]'
28333 gl_dirsep_regex
='\/'
28336 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28337 gl_header_literal_regex
=`echo 'stdio.h' \
28338 | sed -e "$gl_make_literal_regex_sed"`
28339 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28340 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28346 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28347 sed -n "$gl_absolute_header_sed"`
28349 gl_header
=$gl_cv_absolute_stdio_h
28350 gl_cv_next_stdio_h
='"'$gl_header'"'
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
28355 $as_echo "$gl_cv_next_stdio_h" >&6; }
28357 NEXT_STDIO_H
=$gl_cv_next_stdio_h
28359 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28360 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28361 gl_next_as_first_directive
='<'stdio.h
'>'
28363 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28364 gl_next_as_first_directive
=$gl_cv_next_stdio_h
28366 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
28373 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
28374 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
28375 $as_echo_n "(cached) " >&6
28377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28378 /* end confdefs.h. */
28380 #define __STDC_FORMAT_MACROS 1
28382 #include <inttypes.h>
28383 /* For non-mingw systems, compilation will trivially succeed.
28384 For mingw, compilation will succeed for older mingw (system
28385 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
28386 #if (defined _WIN32 && ! defined __CYGWIN__) && \
28387 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
28388 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
28399 if ac_fn_c_try_compile
"$LINENO"; then :
28400 gl_cv_func_printf_attribute_flavor
=system
28402 gl_cv_func_printf_attribute_flavor
=gnu
28404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
28407 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
28408 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
28410 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
28417 cat >>confdefs.h
<<_ACEOF
28418 #define GNULIB_FSCANF 1
28425 cat >>confdefs.h
<<_ACEOF
28426 #define GNULIB_SCANF 1
28457 if test $ac_cv_have_decl_fcloseall = no
; then
28458 HAVE_DECL_FCLOSEALL
=0
28471 if test $gl_cv_have_include_next = yes; then
28472 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
28475 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
28476 if ${gl_cv_next_stdlib_h+:} false
; then :
28477 $as_echo_n "(cached) " >&6
28482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28483 /* end confdefs.h. */
28484 #include <stdlib.h>
28487 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28488 *) gl_absname_cpp
="$ac_cpp" ;;
28493 gl_dirsep_regex
='[/\\]'
28496 gl_dirsep_regex
='\/'
28499 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28500 gl_header_literal_regex
=`echo 'stdlib.h' \
28501 | sed -e "$gl_make_literal_regex_sed"`
28502 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28503 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28509 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28510 sed -n "$gl_absolute_header_sed"`
28512 gl_header
=$gl_cv_absolute_stdlib_h
28513 gl_cv_next_stdlib_h
='"'$gl_header'"'
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
28518 $as_echo "$gl_cv_next_stdlib_h" >&6; }
28520 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
28522 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28523 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28524 gl_next_as_first_directive
='<'stdlib.h
'>'
28526 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28527 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
28529 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
28542 if test $ac_cv_have_decl_ecvt = no
; then
28546 if test $ac_cv_have_decl_fcvt = no
; then
28550 if test $ac_cv_have_decl_gcvt = no
; then
28558 for ac_func
in strchrnul
28560 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
28561 if test "x$ac_cv_func_strchrnul" = xyes
; then :
28562 cat >>confdefs.h
<<_ACEOF
28563 #define HAVE_STRCHRNUL 1
28569 if test $ac_cv_func_strchrnul = no
; then
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
28573 $as_echo_n "checking whether strchrnul works... " >&6; }
28574 if ${gl_cv_func_strchrnul_works+:} false
; then :
28575 $as_echo_n "(cached) " >&6
28577 if test "$cross_compiling" = yes; then :
28578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28579 /* end confdefs.h. */
28581 #if defined __CYGWIN__
28582 #include <cygwin/version.h>
28583 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
28591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28592 $EGREP "Lucky user" >/dev
/null
2>&1; then :
28593 gl_cv_func_strchrnul_works
="guessing yes"
28595 gl_cv_func_strchrnul_works
="guessing no"
28601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28602 /* end confdefs.h. */
28604 #include <string.h> /* for strchrnul */
28609 const char *buf = "a";
28610 return strchrnul (buf, 'b') != buf + 1;
28616 if ac_fn_c_try_run
"$LINENO"; then :
28617 gl_cv_func_strchrnul_works
=yes
28619 gl_cv_func_strchrnul_works
=no
28621 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28622 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
28628 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
28629 case "$gl_cv_func_strchrnul_works" in
28631 *) REPLACE_STRCHRNUL
=1 ;;
28635 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
28644 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
28659 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
28666 if test $gl_cv_func_malloc_posix != yes; then
28670 if test $ac_cv_have_decl_strdup = no
; then
28674 if test $REPLACE_STRDUP = 1; then
28683 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
28698 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
28709 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
28711 $as_echo_n "checking for working strerror function... " >&6; }
28712 if ${gl_cv_func_working_strerror+:} false
; then :
28713 $as_echo_n "(cached) " >&6
28715 if test "$cross_compiling" = yes; then :
28717 # Guess yes on glibc systems.
28718 *-gnu* | gnu
*) gl_cv_func_working_strerror
="guessing yes" ;;
28719 # Guess yes on musl systems.
28720 *-musl*) gl_cv_func_working_strerror
="guessing yes" ;;
28721 # If we don't know, obey --enable-cross-guesses.
28722 *) gl_cv_func_working_strerror
="$gl_cross_guess_normal" ;;
28726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28727 /* end confdefs.h. */
28728 #include <string.h>
28733 if (!*strerror (-2)) return 1;
28738 if ac_fn_c_try_run
"$LINENO"; then :
28739 gl_cv_func_working_strerror
=yes
28741 gl_cv_func_working_strerror
=no
28743 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28744 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
28750 $as_echo "$gl_cv_func_working_strerror" >&6; }
28751 case "$gl_cv_func_working_strerror" in
28758 case "$gl_cv_func_strerror_r_works" in
28759 *no
) REPLACE_STRERROR
=1 ;;
28766 if test $REPLACE_STRERROR = 1; then
28775 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
28780 cat >>confdefs.h
<<_ACEOF
28781 #define GNULIB_STRERROR 1
28796 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
28802 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
28811 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
28817 if test $ac_cv_header_sys_socket_h != yes; then
28818 for ac_header
in winsock2.h
28820 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28821 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
28822 cat >>confdefs.h
<<_ACEOF
28823 #define HAVE_WINSOCK2_H 1
28831 if test "$ac_cv_header_winsock2_h" = yes; then
28833 UNISTD_H_HAVE_WINSOCK2_H
=1
28834 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
28848 if test $ac_cv_have_decl_strerror_r = no
; then
28849 HAVE_DECL_STRERROR_R
=0
28852 if test $ac_cv_func_strerror_r = yes; then
28853 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
28854 if test $gl_cv_func_strerror_r_posix_signature = yes; then
28855 case "$gl_cv_func_strerror_r_works" in
28856 *no
) REPLACE_STRERROR_R
=1 ;;
28859 REPLACE_STRERROR_R
=1
28862 REPLACE_STRERROR_R
=1
28866 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
28875 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
28888 GNULIB_STRERROR_R
=1
28894 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
28900 cat >>confdefs.h
<<_ACEOF
28901 #define GNULIB_STRERROR_R_POSIX 1
28917 if test $ac_cv_have_decl_strnlen = no
; then
28918 HAVE_DECL_STRNLEN
=0
28921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
28922 $as_echo_n "checking for working strnlen... " >&6; }
28923 if ${ac_cv_func_strnlen_working+:} false
; then :
28924 $as_echo_n "(cached) " >&6
28926 if test "$cross_compiling" = yes; then :
28927 # Guess no on AIX systems, yes otherwise.
28929 aix
*) ac_cv_func_strnlen_working
=no
;;
28930 *) ac_cv_func_strnlen_working
=yes;;
28933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28934 /* end confdefs.h. */
28935 $ac_includes_default
28941 #define S_LEN (sizeof S - 1)
28943 /* At least one implementation is buggy: that of AIX 4.3 would
28944 give strnlen (S, 1) == 3. */
28947 for (i = 0; i < S_LEN + 1; ++i)
28949 int expected = i <= S_LEN ? i : S_LEN;
28950 if (strnlen (S, i) != expected)
28959 if ac_fn_c_try_run
"$LINENO"; then :
28960 ac_cv_func_strnlen_working
=yes
28962 ac_cv_func_strnlen_working
=no
28964 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28965 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
28970 $as_echo "$ac_cv_func_strnlen_working" >&6; }
28971 test $ac_cv_func_strnlen_working = no
&& :
28974 if test $ac_cv_func_strnlen_working = no
; then
28979 if test $HAVE_DECL_STRNLEN = 0 ||
test $REPLACE_STRNLEN = 1; then
28988 gl_LIBOBJS
="$gl_LIBOBJS strnlen.$ac_objext"
29003 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
29009 if test $REPLACE_STRSTR = 0; then
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
29011 $as_echo_n "checking whether strstr works in linear time... " >&6; }
29012 if ${gl_cv_func_strstr_linear+:} false
; then :
29013 $as_echo_n "(cached) " >&6
29015 if test "$cross_compiling" = yes; then :
29016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29017 /* end confdefs.h. */
29019 #include <features.h>
29020 #ifdef __GNU_LIBRARY__
29021 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
29022 && !(defined __i386__ || defined __x86_64__) \
29023 && !defined __UCLIBC__
29028 #include <cygwin/version.h>
29029 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
29035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29036 $EGREP "Lucky user" >/dev
/null
2>&1; then :
29037 gl_cv_func_strstr_linear
="guessing yes"
29039 gl_cv_func_strstr_linear
="$gl_cross_guess_normal"
29045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29046 /* end confdefs.h. */
29049 /* z/OS does not deliver signals while strstr() is running (thanks to
29050 restrictions on its LE runtime), which prevents us from limiting the
29051 running time of this test. */
29052 # error "This test does not work properly on z/OS"
29054 #include <signal.h> /* for signal */
29055 #include <string.h> /* for strstr */
29056 #include <stdlib.h> /* for malloc */
29057 #include <unistd.h> /* for alarm */
29058 static void quit (int sig) { _exit (sig + 128); }
29065 size_t m = 1000000;
29066 char *haystack = (char *) malloc (2 * m + 2);
29067 char *needle = (char *) malloc (m + 2);
29068 /* Failure to compile this test due to missing alarm is okay,
29069 since all such platforms (mingw) also have quadratic strstr. */
29070 signal (SIGALRM, quit);
29072 /* Check for quadratic performance. */
29073 if (haystack && needle)
29075 memset (haystack, 'A', 2 * m);
29076 haystack[2 * m] = 'B';
29077 haystack[2 * m + 1] = 0;
29078 memset (needle, 'A', m);
29081 if (!strstr (haystack, needle))
29084 /* Free allocated memory, in case some sanitizer is watching. */
29093 if ac_fn_c_try_run
"$LINENO"; then :
29094 gl_cv_func_strstr_linear
=yes
29096 gl_cv_func_strstr_linear
=no
29098 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29099 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
29105 $as_echo "$gl_cv_func_strstr_linear" >&6; }
29106 case "$gl_cv_func_strstr_linear" in
29114 if test $REPLACE_STRSTR = 1; then
29123 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
29129 if test $REPLACE_MEMCHR = 1; then
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
29133 $as_echo_n "checking whether strstr works... " >&6; }
29134 if ${gl_cv_func_strstr_works_always+:} false
; then :
29135 $as_echo_n "(cached) " >&6
29137 if test "$cross_compiling" = yes; then :
29138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29139 /* end confdefs.h. */
29141 #ifdef __GNU_LIBRARY__
29142 #include <features.h>
29143 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
29144 || defined __UCLIBC__
29147 #elif defined __CYGWIN__
29148 #include <cygwin/version.h>
29149 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
29157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29158 $EGREP "Lucky user" >/dev
/null
2>&1; then :
29159 gl_cv_func_strstr_works_always
="guessing yes"
29161 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
29167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29168 /* end confdefs.h. */
29170 #include <string.h> /* for strstr */
29171 #ifdef __GNU_LIBRARY__
29172 #include <features.h>
29173 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
29177 #define P "_EF_BF_BD"
29178 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
29179 #define NEEDLE P P P P P
29184 return !!strstr (HAYSTACK, NEEDLE);
29190 if ac_fn_c_try_run
"$LINENO"; then :
29191 gl_cv_func_strstr_works_always
=yes
29193 gl_cv_func_strstr_works_always
=no
29195 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29196 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
29202 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
29203 case "$gl_cv_func_strstr_works_always" in
29211 if test $REPLACE_STRSTR = 1; then
29220 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
29234 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
29242 for ac_func
in strtok_r
29244 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
29245 if test "x$ac_cv_func_strtok_r" = xyes
; then :
29246 cat >>confdefs.h
<<_ACEOF
29247 #define HAVE_STRTOK_R 1
29253 if test $ac_cv_func_strtok_r = yes; then
29255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
29256 $as_echo_n "checking whether strtok_r works... " >&6; }
29257 if ${gl_cv_func_strtok_r_works+:} false
; then :
29258 $as_echo_n "(cached) " >&6
29260 if test "$cross_compiling" = yes; then :
29262 # Guess no on glibc systems.
29263 *-gnu* | gnu
*) gl_cv_func_strtok_r_works
="guessing no" ;;
29264 # Guess yes on native Windows.
29265 mingw
*) gl_cv_func_strtok_r_works
="guessing yes" ;;
29266 *) gl_cv_func_strtok_r_works
="guessing yes" ;;
29270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29271 /* end confdefs.h. */
29273 #ifndef __OPTIMIZE__
29274 # define __OPTIMIZE__ 1
29276 #undef __OPTIMIZE_SIZE__
29277 #undef __NO_INLINE__
29278 #include <stdlib.h>
29279 #include <string.h>
29284 static const char dummy[] = "\177\01a";
29285 char delimiters[] = "xxxxxxxx";
29286 char *save_ptr = (char *) dummy;
29287 strtok_r (delimiters, "x", &save_ptr);
29288 strtok_r (NULL, "x", &save_ptr);
29296 if ac_fn_c_try_run
"$LINENO"; then :
29297 gl_cv_func_strtok_r_works
=yes
29299 gl_cv_func_strtok_r_works
=no
29301 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29302 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
29308 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
29309 case "$gl_cv_func_strtok_r_works" in
29311 UNDEFINE_STRTOK_R
=1
29318 if test $ac_cv_have_decl_strtok_r = no
; then
29319 HAVE_DECL_STRTOK_R
=0
29322 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
29331 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
29348 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
29363 if test $gl_cv_have_include_next = yes; then
29364 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
29366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
29367 $as_echo_n "checking absolute name of <sys/random.h>... " >&6; }
29368 if ${gl_cv_next_sys_random_h+:} false
; then :
29369 $as_echo_n "(cached) " >&6
29372 if test $ac_cv_header_sys_random_h = yes; then
29377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29378 /* end confdefs.h. */
29379 #include <sys/random.h>
29382 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29383 *) gl_absname_cpp
="$ac_cpp" ;;
29388 gl_dirsep_regex
='[/\\]'
29391 gl_dirsep_regex
='\/'
29394 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29395 gl_header_literal_regex
=`echo 'sys/random.h' \
29396 | sed -e "$gl_make_literal_regex_sed"`
29397 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29398 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29404 gl_cv_absolute_sys_random_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29405 sed -n "$gl_absolute_header_sed"`
29407 gl_header
=$gl_cv_absolute_sys_random_h
29408 gl_cv_next_sys_random_h
='"'$gl_header'"'
29410 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
29415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
29416 $as_echo "$gl_cv_next_sys_random_h" >&6; }
29418 NEXT_SYS_RANDOM_H
=$gl_cv_next_sys_random_h
29420 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29421 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29422 gl_next_as_first_directive
='<'sys
/random.h
'>'
29424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29425 gl_next_as_first_directive
=$gl_cv_next_sys_random_h
29427 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
=$gl_next_as_first_directive
29432 if test $ac_cv_header_sys_random_h = yes; then
29433 HAVE_SYS_RANDOM_H
=1
29435 HAVE_SYS_RANDOM_H
=0
29440 if test $ac_cv_header_sys_random_h = yes; then
29441 UNISTD_H_HAVE_SYS_RANDOM_H
=1
29465 if test $gl_cv_have_include_next = yes; then
29466 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
29468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
29469 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
29470 if ${gl_cv_next_sys_stat_h+:} false
; then :
29471 $as_echo_n "(cached) " >&6
29474 if test $ac_cv_header_sys_stat_h = yes; then
29479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29480 /* end confdefs.h. */
29481 #include <sys/stat.h>
29484 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29485 *) gl_absname_cpp
="$ac_cpp" ;;
29490 gl_dirsep_regex
='[/\\]'
29493 gl_dirsep_regex
='\/'
29496 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29497 gl_header_literal_regex
=`echo 'sys/stat.h' \
29498 | sed -e "$gl_make_literal_regex_sed"`
29499 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29500 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29506 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29507 sed -n "$gl_absolute_header_sed"`
29509 gl_header
=$gl_cv_absolute_sys_stat_h
29510 gl_cv_next_sys_stat_h
='"'$gl_header'"'
29512 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
29517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
29518 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
29520 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
29522 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29523 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29524 gl_next_as_first_directive
='<'sys
/stat.h
'>'
29526 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29527 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
29529 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
29538 WINDOWS_STAT_TIMESPEC
=0
29547 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
29548 #include <sys/stat.h>
29550 if test "x$ac_cv_type_nlink_t" = xyes
; then :
29554 $as_echo "#define nlink_t int" >>confdefs.h
29583 if test $gl_cv_have_include_next = yes; then
29584 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
29586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
29587 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
29588 if ${gl_cv_next_sys_uio_h+:} false
; then :
29589 $as_echo_n "(cached) " >&6
29592 if test $ac_cv_header_sys_uio_h = yes; then
29597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29598 /* end confdefs.h. */
29599 #include <sys/uio.h>
29602 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29603 *) gl_absname_cpp
="$ac_cpp" ;;
29608 gl_dirsep_regex
='[/\\]'
29611 gl_dirsep_regex
='\/'
29614 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29615 gl_header_literal_regex
=`echo 'sys/uio.h' \
29616 | sed -e "$gl_make_literal_regex_sed"`
29617 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29618 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29624 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29625 sed -n "$gl_absolute_header_sed"`
29627 gl_header
=$gl_cv_absolute_sys_uio_h
29628 gl_cv_next_sys_uio_h
='"'$gl_header'"'
29630 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
29636 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
29638 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
29640 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29641 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29642 gl_next_as_first_directive
='<'sys
/uio.h
'>'
29644 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29645 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
29647 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
29652 if test $ac_cv_header_sys_uio_h = yes; then
29667 cat >>confdefs.h
<<_ACEOF
29668 #define GNULIB_TEMPNAME 1
29682 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,
29683 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29684 been included before. */
29685 #if defined __MINGW32__
29686 # include <unistd.h>
29691 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
29697 cat >>confdefs.h
<<_ACEOF
29698 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
29701 if test $ac_cv_have_decl_localtime_r = no
; then
29702 HAVE_DECL_LOCALTIME_R
=0
29706 if test $ac_cv_func_localtime_r = yes; then
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
29709 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
29710 if ${gl_cv_time_r_posix+:} false
; then :
29711 $as_echo_n "(cached) " >&6
29713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29714 /* end confdefs.h. */
29715 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
29716 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29717 been included before. */
29718 #if defined __MINGW32__
29719 # include <unistd.h>
29726 /* We don't need to append 'restrict's to the argument types,
29727 even though the POSIX signature has the 'restrict's,
29728 since C99 says they can't affect type compatibility. */
29729 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
29731 /* Check the return type is a pointer.
29732 On HP-UX 10 it is 'int'. */
29733 *localtime_r (0, 0);
29739 if ac_fn_c_try_compile
"$LINENO"; then :
29740 gl_cv_time_r_posix
=yes
29742 gl_cv_time_r_posix
=no
29744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
29748 $as_echo "$gl_cv_time_r_posix" >&6; }
29749 if test $gl_cv_time_r_posix = yes; then
29750 REPLACE_LOCALTIME_R
=0
29752 REPLACE_LOCALTIME_R
=1
29756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
29757 $as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
29758 if ${gl_cv_func_localtime_r_inline+:} false
; then :
29759 $as_echo_n "(cached) " >&6
29761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29762 /* end confdefs.h. */
29763 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
29764 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
29765 been included before. */
29766 #if defined __MINGW32__
29767 # include <unistd.h>
29776 localtime_r (&a, &r);
29783 if ac_fn_c_try_link
"$LINENO"; then :
29784 gl_cv_func_localtime_r_inline
=yes
29786 gl_cv_func_localtime_r_inline
=no
29788 rm -f core conftest.err conftest.
$ac_objext \
29789 conftest
$ac_exeext conftest.
$ac_ext
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
29793 $as_echo "$gl_cv_func_localtime_r_inline" >&6; }
29794 if test $gl_cv_func_localtime_r_inline = yes; then
29795 REPLACE_LOCALTIME_R
=1
29799 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
29808 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
29825 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
29841 if test $gl_cv_have_include_next = yes; then
29842 gl_cv_next_unistd_h
='<'unistd.h
'>'
29844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
29845 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
29846 if ${gl_cv_next_unistd_h+:} false
; then :
29847 $as_echo_n "(cached) " >&6
29850 if test $ac_cv_header_unistd_h = yes; then
29855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29856 /* end confdefs.h. */
29857 #include <unistd.h>
29860 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29861 *) gl_absname_cpp
="$ac_cpp" ;;
29866 gl_dirsep_regex
='[/\\]'
29869 gl_dirsep_regex
='\/'
29872 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29873 gl_header_literal_regex
=`echo 'unistd.h' \
29874 | sed -e "$gl_make_literal_regex_sed"`
29875 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29876 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29882 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29883 sed -n "$gl_absolute_header_sed"`
29885 gl_header
=$gl_cv_absolute_unistd_h
29886 gl_cv_next_unistd_h
='"'$gl_header'"'
29888 gl_cv_next_unistd_h
='<'unistd.h
'>'
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
29894 $as_echo "$gl_cv_next_unistd_h" >&6; }
29896 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
29898 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29900 gl_next_as_first_directive
='<'unistd.h
'>'
29902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29903 gl_next_as_first_directive
=$gl_cv_next_unistd_h
29905 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
29910 if test $ac_cv_header_unistd_h = yes; then
29928 if test $ac_cv_have_decl_execvpe = no
; then
29929 HAVE_DECL_EXECVPE
=0
29938 if test $ac_cv_have_decl_unsetenv = no
; then
29939 HAVE_DECL_UNSETENV
=0
29941 for ac_func
in unsetenv
29943 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
29944 if test "x$ac_cv_func_unsetenv" = xyes
; then :
29945 cat >>confdefs.h
<<_ACEOF
29946 #define HAVE_UNSETENV 1
29952 if test $ac_cv_func_unsetenv = no
; then
29956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
29957 $as_echo_n "checking for unsetenv() return type... " >&6; }
29958 if ${gt_cv_func_unsetenv_ret+:} false
; then :
29959 $as_echo_n "(cached) " >&6
29961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29962 /* end confdefs.h. */
29965 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
29966 #include <stdlib.h>
29971 int unsetenv (const char *name);
29981 if ac_fn_c_try_compile
"$LINENO"; then :
29982 gt_cv_func_unsetenv_ret
='int'
29984 gt_cv_func_unsetenv_ret
='void'
29986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
29989 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
29990 if test $gt_cv_func_unsetenv_ret = 'void'; then
29992 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
29998 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
29999 if ${gl_cv_func_unsetenv_works+:} false
; then :
30000 $as_echo_n "(cached) " >&6
30002 if test "$cross_compiling" = yes; then :
30004 # Guess yes on glibc systems.
30005 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
30006 # If we don't know, obey --enable-cross-guesses.
30007 *) gl_cv_func_unsetenv_works
="$gl_cross_guess_normal" ;;
30011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30012 /* end confdefs.h. */
30014 #include <stdlib.h>
30016 extern char **environ;
30025 char entry1[] = "a=1";
30026 char entry2[] = "b=2";
30027 char *env[] = { entry1, entry2, NULL };
30028 if (putenv ((char *) "a=1")) return 1;
30029 if (putenv (entry2)) return 2;
30032 if (getenv ("a")) return 3;
30033 if (!unsetenv ("") || errno != EINVAL) return 4;
30036 if (!getenv ("a")) return 5;
30039 if (getenv ("a")) return 6;
30045 if ac_fn_c_try_run
"$LINENO"; then :
30046 gl_cv_func_unsetenv_works
=yes
30048 gl_cv_func_unsetenv_works
=no
30050 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30051 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
30057 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
30058 case "$gl_cv_func_unsetenv_works" in
30066 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
30075 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
30093 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
30109 if test $gl_cv_have_include_next = yes; then
30110 gl_cv_next_wchar_h
='<'wchar.h
'>'
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
30113 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
30114 if ${gl_cv_next_wchar_h+:} false
; then :
30115 $as_echo_n "(cached) " >&6
30118 if test $ac_cv_header_wchar_h = yes; then
30123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30124 /* end confdefs.h. */
30128 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
30129 *) gl_absname_cpp
="$ac_cpp" ;;
30134 gl_dirsep_regex
='[/\\]'
30137 gl_dirsep_regex
='\/'
30140 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
30141 gl_header_literal_regex
=`echo 'wchar.h' \
30142 | sed -e "$gl_make_literal_regex_sed"`
30143 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30144 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30150 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30151 sed -n "$gl_absolute_header_sed"`
30153 gl_header
=$gl_cv_absolute_wchar_h
30154 gl_cv_next_wchar_h
='"'$gl_header'"'
30156 gl_cv_next_wchar_h
='<'wchar.h
'>'
30161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
30162 $as_echo "$gl_cv_next_wchar_h" >&6; }
30164 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
30166 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
30167 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30168 gl_next_as_first_directive
='<'wchar.h
'>'
30170 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30171 gl_next_as_first_directive
=$gl_cv_next_wchar_h
30173 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
30178 if test $ac_cv_header_wchar_h = yes; then
30188 if test $gt_cv_c_wint_t = yes; then
30203 ac_fn_c_check_decl
"$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
30207 if test "x$ac_cv_have_decl_wcsdup" = xyes
; then :
30213 cat >>confdefs.h
<<_ACEOF
30214 #define HAVE_DECL_WCSDUP $ac_have_decl
30217 if test $ac_cv_have_decl_wcsdup = no
; then
30226 if test $ac_cv_func_iswcntrl = yes; then
30234 if test $gt_cv_c_wint_t = yes; then
30252 if test $gl_cv_have_include_next = yes; then
30253 gl_cv_next_wctype_h
='<'wctype.h
'>'
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
30256 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
30257 if ${gl_cv_next_wctype_h+:} false
; then :
30258 $as_echo_n "(cached) " >&6
30261 if test $ac_cv_header_wctype_h = yes; then
30266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30267 /* end confdefs.h. */
30268 #include <wctype.h>
30271 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
30272 *) gl_absname_cpp
="$ac_cpp" ;;
30277 gl_dirsep_regex
='[/\\]'
30280 gl_dirsep_regex
='\/'
30283 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
30284 gl_header_literal_regex
=`echo 'wctype.h' \
30285 | sed -e "$gl_make_literal_regex_sed"`
30286 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30287 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30293 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30294 sed -n "$gl_absolute_header_sed"`
30296 gl_header
=$gl_cv_absolute_wctype_h
30297 gl_cv_next_wctype_h
='"'$gl_header'"'
30299 gl_cv_next_wctype_h
='<'wctype.h
'>'
30304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
30305 $as_echo "$gl_cv_next_wctype_h" >&6; }
30307 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
30309 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
30310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30311 gl_next_as_first_directive
='<'wctype.h
'>'
30313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30314 gl_next_as_first_directive
=$gl_cv_next_wctype_h
30316 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
30321 if test $ac_cv_header_wctype_h = yes; then
30322 if test $ac_cv_func_iswcntrl = yes; then
30323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
30324 $as_echo_n "checking whether iswcntrl works... " >&6; }
30325 if ${gl_cv_func_iswcntrl_works+:} false
; then :
30326 $as_echo_n "(cached) " >&6
30329 if test "$cross_compiling" = yes; then :
30330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30331 /* end confdefs.h. */
30332 #include <stdlib.h>
30333 #if __GNU_LIBRARY__ == 1
30334 Linux libc5 i18n is broken.
30344 if ac_fn_c_try_compile
"$LINENO"; then :
30345 gl_cv_func_iswcntrl_works
="guessing yes"
30347 gl_cv_func_iswcntrl_works
="guessing no"
30349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30353 /* end confdefs.h. */
30356 #include <wctype.h>
30357 int main () { return iswprint ('x') == 0; }
30360 if ac_fn_c_try_run
"$LINENO"; then :
30361 gl_cv_func_iswcntrl_works
=yes
30363 gl_cv_func_iswcntrl_works
=no
30365 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30366 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
30372 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
30380 if test $GNULIB_OVERRIDES_WINT_T = 1; then
30383 case "$gl_cv_func_iswcntrl_works" in
30384 *yes) REPLACE_ISWCNTRL
=0 ;;
30385 *) REPLACE_ISWCNTRL
=1 ;;
30390 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
30394 if test $REPLACE_ISWCNTRL = 1; then
30397 for ac_func
in towlower
30399 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
30400 if test "x$ac_cv_func_towlower" = xyes
; then :
30401 cat >>confdefs.h
<<_ACEOF
30402 #define HAVE_TOWLOWER 1
30408 if test $ac_cv_func_towlower = yes; then
30411 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h>
30413 # include <wctype.h>
30417 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
30423 cat >>confdefs.h
<<_ACEOF
30424 #define HAVE_DECL_TOWLOWER $ac_have_decl
30427 if test $ac_cv_have_decl_towlower = yes; then
30436 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
30441 $as_echo_n "checking for wctype_t... " >&6; }
30442 if ${gl_cv_type_wctype_t+:} false
; then :
30443 $as_echo_n "(cached) " >&6
30445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30446 /* end confdefs.h. */
30449 # include <wctype.h>
30461 if ac_fn_c_try_compile
"$LINENO"; then :
30462 gl_cv_type_wctype_t
=yes
30464 gl_cv_type_wctype_t
=no
30466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
30470 $as_echo "$gl_cv_type_wctype_t" >&6; }
30471 if test $gl_cv_type_wctype_t = no
; then
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
30476 $as_echo_n "checking for wctrans_t... " >&6; }
30477 if ${gl_cv_type_wctrans_t+:} false
; then :
30478 $as_echo_n "(cached) " >&6
30480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30481 /* end confdefs.h. */
30483 #include <wctype.h>
30494 if ac_fn_c_try_compile
"$LINENO"; then :
30495 gl_cv_type_wctrans_t
=yes
30497 gl_cv_type_wctrans_t
=no
30499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
30503 $as_echo "$gl_cv_type_wctrans_t" >&6; }
30504 if test $gl_cv_type_wctrans_t = no
; then
30523 gl_LIBOBJS
="$gl_LIBOBJS windows-mutex.$ac_objext"
30538 gl_LIBOBJS
="$gl_LIBOBJS windows-once.$ac_objext"
30553 gl_LIBOBJS
="$gl_LIBOBJS windows-recmutex.$ac_objext"
30568 gl_LIBOBJS
="$gl_LIBOBJS windows-rwlock.$ac_objext"
30574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmemchr" >&5
30575 $as_echo_n "checking for wmemchr... " >&6; }
30576 if ${gl_cv_func_wmemchr+:} false
; then :
30577 $as_echo_n "(cached) " >&6
30579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30580 /* end confdefs.h. */
30586 return ! wmemchr ((const wchar_t *) 0, (wchar_t) ' ', 0);
30592 if ac_fn_c_try_link
"$LINENO"; then :
30593 gl_cv_func_wmemchr
=yes
30595 gl_cv_func_wmemchr
=no
30597 rm -f core conftest.err conftest.
$ac_objext \
30598 conftest
$ac_exeext conftest.
$ac_ext
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wmemchr" >&5
30602 $as_echo "$gl_cv_func_wmemchr" >&6; }
30603 if test $gl_cv_func_wmemchr = no
; then
30607 if test $HAVE_WMEMCHR = 0; then
30616 gl_LIBOBJS
="$gl_LIBOBJS wmemchr.$ac_objext"
30630 $as_echo "#define GNULIB_TEST_WMEMCHR 1" >>confdefs.h
30642 if test $ac_cv_func_wmempcpy = no
; then
30646 if test $HAVE_WMEMPCPY = 0; then
30655 gl_LIBOBJS
="$gl_LIBOBJS wmempcpy.$ac_objext"
30669 $as_echo "#define GNULIB_TEST_WMEMPCPY 1" >>confdefs.h
30673 # End of code from modules
30695 gl_source_base
='tests'
30696 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
30698 gl_module_indicator_condition
=$gltests_WITNESS
30708 LIBGNU_LIBDEPS
="$gl_libdeps"
30710 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
30714 am__api_version
='1.15'
30716 # Find a good install program. We prefer a C program (faster),
30717 # so one script is as good as another. But avoid the broken or
30718 # incompatible versions:
30719 # SysV /etc/install, /usr/sbin/install
30720 # SunOS /usr/etc/install
30721 # IRIX /sbin/install
30723 # AmigaOS /C/install, which installs bootblocks on floppy discs
30724 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
30725 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
30726 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
30727 # OS/2's system install, which has a completely different semantic
30728 # ./install, which can be erroneously created by make from ./install.sh.
30729 # Reject install programs that cannot install multiple files.
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
30731 $as_echo_n "checking for a BSD-compatible install... " >&6; }
30732 if test -z "$INSTALL"; then
30733 if ${ac_cv_path_install+:} false
; then :
30734 $as_echo_n "(cached) " >&6
30736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30737 for as_dir
in $PATH
30740 test -z "$as_dir" && as_dir
=.
30741 # Account for people who put trailing slashes in PATH elements.
30742 case $as_dir/ in #((
30743 .
/ | .
// |
/[cC
]/* | \
30744 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
30745 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
30748 # OSF1 and SCO ODT 3.0 have their own names for install.
30749 # Don't use installbsd from OSF since it installs stuff as root
30751 for ac_prog
in ginstall scoinst
install; do
30752 for ac_exec_ext
in '' $ac_executable_extensions; do
30753 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
30754 if test $ac_prog = install &&
30755 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
30756 # AIX install. It has an incompatible calling convention.
30758 elif test $ac_prog = install &&
30759 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
30760 # program-specific install script used by HP pwplus--don't use.
30763 rm -rf conftest.one conftest.two conftest.dir
30764 echo one
> conftest.one
30765 echo two
> conftest.two
30767 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
30768 test -s conftest.one
&& test -s conftest.two
&&
30769 test -s conftest.dir
/conftest.one
&&
30770 test -s conftest.dir
/conftest.two
30772 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
30785 rm -rf conftest.one conftest.two conftest.dir
30788 if test "${ac_cv_path_install+set}" = set; then
30789 INSTALL
=$ac_cv_path_install
30791 # As a last resort, use the slow shell script. Don't cache a
30792 # value for INSTALL within a source directory, because that will
30793 # break other packages using the cache if that directory is
30794 # removed, or if the value is a relative name.
30795 INSTALL
=$ac_install_sh
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
30799 $as_echo "$INSTALL" >&6; }
30801 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
30802 # It thinks the first close brace ends the variable substitution.
30803 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
30805 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
30807 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
30810 $as_echo_n "checking whether build environment is sane... " >&6; }
30811 # Reject unsafe characters in $srcdir or the absolute working directory
30812 # name. Accept space and tab only in the latter.
30816 *[\\\"\
#\$\&\'\`$am_lf]*)
30817 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
30820 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
30821 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
30824 # Do 'set' in a subshell so we don't clobber the current shell's
30825 # arguments. Must try -L first in case configure is actually a
30826 # symlink; some systems play weird games with the mod time of symlinks
30827 # (eg FreeBSD returns the mod time of the symlink's containing
30831 for am_try
in 1 2; do
30832 echo "timestamp, slept: $am_has_slept" > conftest.
file
30833 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
30834 if test "$*" = "X"; then
30836 set X
`ls -t "$srcdir/configure" conftest.file`
30838 if test "$*" != "X $srcdir/configure conftest.file" \
30839 && test "$*" != "X conftest.file $srcdir/configure"; then
30841 # If neither matched, then we have a broken ls. This can happen
30842 # if, for instance, CONFIG_SHELL is bash and it inherits a
30843 # broken ls alias from the environment. This has actually
30844 # happened. Such a system could not be considered "sane".
30845 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
30846 alias in your environment" "$LINENO" 5
30848 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
30855 test "$2" = conftest.
file
30861 as_fn_error $?
"newly created file is older than distributed files!
30862 Check your system clock" "$LINENO" 5
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30865 $as_echo "yes" >&6; }
30866 # If we didn't sleep, we still need to ensure time stamps of config.status and
30867 # generated files are strictly newer.
30869 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
30874 rm -f conftest.
file
30876 test "$program_prefix" != NONE
&&
30877 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
30878 # Use a double $ so make ignores it.
30879 test "$program_suffix" != NONE
&&
30880 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
30881 # Double any \ or $.
30882 # By default was `s,x,x', remove it if useless.
30883 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
30884 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
30886 # Expand $ac_aux_dir to an absolute path.
30887 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
30889 if test x
"${MISSING+set}" != xset
; then
30890 case $am_aux_dir in
30892 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
30894 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
30897 # Use eval to expand $SHELL
30898 if eval "$MISSING --is-lightweight"; then
30899 am_missing_run
="$MISSING "
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
30903 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
30906 if test x
"${install_sh+set}" != xset
; then
30907 case $am_aux_dir in
30909 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
30911 install_sh
="\${SHELL} $am_aux_dir/install-sh"
30915 # Installed binaries are usually stripped using 'strip' when the user
30916 # run "make install-strip". However 'strip' might not be the right
30917 # tool to use in cross-compilation environments, therefore Automake
30918 # will honor the 'STRIP' environment variable to overrule this program.
30919 if test "$cross_compiling" != no
; then
30920 if test -n "$ac_tool_prefix"; then
30921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
30922 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
30923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30924 $as_echo_n "checking for $ac_word... " >&6; }
30925 if ${ac_cv_prog_STRIP+:} false
; then :
30926 $as_echo_n "(cached) " >&6
30928 if test -n "$STRIP"; then
30929 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
30931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30932 for as_dir
in $PATH
30935 test -z "$as_dir" && as_dir
=.
30936 for ac_exec_ext
in '' $ac_executable_extensions; do
30937 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30938 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
30939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30948 STRIP
=$ac_cv_prog_STRIP
30949 if test -n "$STRIP"; then
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
30951 $as_echo "$STRIP" >&6; }
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30954 $as_echo "no" >&6; }
30959 if test -z "$ac_cv_prog_STRIP"; then
30961 # Extract the first word of "strip", so it can be a program name with args.
30962 set dummy strip
; ac_word
=$2
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30964 $as_echo_n "checking for $ac_word... " >&6; }
30965 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
30966 $as_echo_n "(cached) " >&6
30968 if test -n "$ac_ct_STRIP"; then
30969 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
30971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
30972 for as_dir
in $PATH
30975 test -z "$as_dir" && as_dir
=.
30976 for ac_exec_ext
in '' $ac_executable_extensions; do
30977 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
30978 ac_cv_prog_ac_ct_STRIP
="strip"
30979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30988 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
30989 if test -n "$ac_ct_STRIP"; then
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
30991 $as_echo "$ac_ct_STRIP" >&6; }
30993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30994 $as_echo "no" >&6; }
30997 if test "x$ac_ct_STRIP" = x
; then
31000 case $cross_compiling:$ac_tool_warned in
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31004 ac_tool_warned
=yes ;;
31009 STRIP
="$ac_cv_prog_STRIP"
31013 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
31015 for ac_prog
in gawk mawk nawk
awk
31017 # Extract the first word of "$ac_prog", so it can be a program name with args.
31018 set dummy
$ac_prog; ac_word
=$2
31019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31020 $as_echo_n "checking for $ac_word... " >&6; }
31021 if ${ac_cv_prog_AWK+:} false
; then :
31022 $as_echo_n "(cached) " >&6
31024 if test -n "$AWK"; then
31025 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
31027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31028 for as_dir
in $PATH
31031 test -z "$as_dir" && as_dir
=.
31032 for ac_exec_ext
in '' $ac_executable_extensions; do
31033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
31034 ac_cv_prog_AWK
="$ac_prog"
31035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31044 AWK
=$ac_cv_prog_AWK
31045 if test -n "$AWK"; then
31046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
31047 $as_echo "$AWK" >&6; }
31049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31050 $as_echo "no" >&6; }
31054 test -n "$AWK" && break
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
31058 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
31060 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
31061 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
31062 $as_echo_n "(cached) " >&6
31064 cat >conftest.
make <<\_ACEOF
31067 @
echo '@@@%%%=$(MAKE)=@@@%%%'
31069 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
31070 case `${MAKE-make} -f conftest.make 2>/dev/null` in
31071 *@@@
%%%=?
*=@@@
%%%*)
31072 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
31074 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
31076 rm -f conftest.
make
31078 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31080 $as_echo "yes" >&6; }
31083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31084 $as_echo "no" >&6; }
31085 SET_MAKE
="MAKE=${MAKE-make}"
31088 rm -rf .tst
2>/dev
/null
31089 mkdir .tst
2>/dev
/null
31090 if test -d .tst
; then
31095 rmdir .tst
2>/dev
/null
31097 DEPDIR
="${am__leading_dot}deps"
31099 ac_config_commands
="$ac_config_commands depfiles"
31102 am_make
=${MAKE-make}
31103 cat > confinc
<< 'END'
31105 @
echo this is the am__doit target
31108 # If we don't find an include directive, just comment out the code.
31109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
31110 $as_echo_n "checking for style of include used by $am_make... " >&6; }
31114 # First try GNU make style include.
31115 echo "include confinc" > confmf
31116 # Ignore all kinds of additional output from 'make'.
31117 case `$am_make -s -f confmf 2> /dev/null` in #(
31118 *the\ am__doit\ target
*)
31119 am__include
=include
31124 # Now try BSD make style include.
31125 if test "$am__include" = "#"; then
31126 echo '.include "confinc"' > confmf
31127 case `$am_make -s -f confmf 2> /dev/null` in #(
31128 *the\ am__doit\ target
*)
31129 am__include
=.include
31137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
31138 $as_echo "$_am_result" >&6; }
31139 rm -f confinc confmf
31141 # Check whether --enable-dependency-tracking was given.
31142 if test "${enable_dependency_tracking+set}" = set; then :
31143 enableval
=$enable_dependency_tracking;
31146 if test "x$enable_dependency_tracking" != xno
; then
31147 am_depcomp
="$ac_aux_dir/depcomp"
31151 if test "x$enable_dependency_tracking" != xno; then
31160 # Check whether --enable-silent-rules was given.
31161 if test "${enable_silent_rules+set}" = set; then :
31162 enableval
=$enable_silent_rules;
31165 case $enable_silent_rules in # (((
31166 yes) AM_DEFAULT_VERBOSITY
=0;;
31167 no
) AM_DEFAULT_VERBOSITY
=1;;
31168 *) AM_DEFAULT_VERBOSITY
=1;;
31170 am_make
=${MAKE-make}
31171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
31172 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
31173 if ${am_cv_make_support_nested_variables+:} false
; then :
31174 $as_echo_n "(cached) " >&6
31176 if $as_echo 'TRUE=$(BAR$(V))
31182 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
31183 am_cv_make_support_nested_variables
=yes
31185 am_cv_make_support_nested_variables
=no
31188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
31189 $as_echo "$am_cv_make_support_nested_variables" >&6; }
31190 if test $am_cv_make_support_nested_variables = yes; then
31192 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
31194 AM_V
=$AM_DEFAULT_VERBOSITY
31195 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
31199 if test "`cd $srcdir && pwd`" != "`pwd`"; then
31200 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
31201 # is not polluted with repeated "-I."
31202 am__isrc
=' -I$(srcdir)'
31203 # test to see if srcdir already configured
31204 if test -f $srcdir/config.status
; then
31205 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
31209 # test whether we have cygpath
31210 if test -z "$CYGPATH_W"; then
31211 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
31212 CYGPATH_W
='cygpath -w'
31219 # Define the identity of the package.
31221 VERSION
='UNUSED-VERSION'
31224 # Some tools Automake needs.
31226 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
31229 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
31232 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
31235 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
31238 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
31240 # For better backward compatibility. To be removed once Automake 1.9.x
31241 # dies out for good. For more background, see:
31242 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
31243 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
31244 mkdir_p
='$(MKDIR_P)'
31246 # We need awk for the "check" target (and possibly the TAP driver). The
31247 # system "awk" is bad on some platforms.
31248 # Always define AMTAR for backward compatibility. Yes, it's still used
31249 # in the wild :-( We should find a proper way to deprecate it ...
31250 AMTAR
='$${TAR-tar}'
31253 # We'll loop over all known methods to create a tar archive until one works.
31254 _am_tools
='gnutar pax cpio none'
31256 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
31262 depcc
="$CC" am_compiler_list
=
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
31265 $as_echo_n "checking dependency style of $depcc... " >&6; }
31266 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
31267 $as_echo_n "(cached) " >&6
31269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
31270 # We make a subdir and do the tests there. Otherwise we can end up
31271 # making bogus files that we don't know about and never remove. For
31272 # instance it was reported that on HP-UX the gcc test will end up
31273 # making a dummy file named 'D' -- because '-MD' means "put the output
31275 rm -rf conftest.dir
31277 # Copy depcomp to subdir because otherwise we won't find it if we're
31278 # using a relative directory.
31279 cp "$am_depcomp" conftest.dir
31281 # We will build objects and dependencies in a subdirectory because
31282 # it helps to detect inapplicable dependency modes. For instance
31283 # both Tru64's cc and ICC support -MD to output dependencies as a
31284 # side effect of compilation, but ICC will put the dependencies in
31285 # the current directory while Tru64 will put them in the object
31289 am_cv_CC_dependencies_compiler_type
=none
31290 if test "$am_compiler_list" = ""; then
31291 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
31293 am__universal
=false
31294 case " $depcc " in #(
31295 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
31298 for depmode
in $am_compiler_list; do
31299 # Setup a source with many dependencies, because some compilers
31300 # like to wrap large dependency lists on column 80 (with \), and
31301 # we should not choose a depcomp mode which is confused by this.
31303 # We need to recreate these files for each test, as the compiler may
31304 # overwrite some of them when testing with obscure command lines.
31305 # This happens at least with the AIX C compiler.
31307 for i
in 1 2 3 4 5 6; do
31308 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
31309 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
31310 # Solaris 10 /bin/sh.
31311 echo '/* dummy */' > sub
/conftst
$i.h
31313 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
31315 # We check with '-c' and '-o' for the sake of the "dashmstdout"
31316 # mode. It turns out that the SunPro C++ compiler does not properly
31317 # handle '-M -o', and we need to detect this. Also, some Intel
31318 # versions had trouble with output in subdirs.
31319 am__obj
=sub
/conftest.
${OBJEXT-o}
31320 am__minus_obj
="-o $am__obj"
31323 # This depmode causes a compiler race in universal mode.
31324 test "$am__universal" = false ||
continue
31327 # After this tag, mechanisms are not by side-effect, so they'll
31328 # only be used when explicitly requested.
31329 if test "x$enable_dependency_tracking" = xyes
; then
31335 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
31336 # This compiler won't grok '-c -o', but also, the minuso test has
31337 # not run yet. These depmodes are late enough in the game, and
31338 # so weak that their functioning should not be impacted.
31339 am__obj
=conftest.
${OBJEXT-o}
31344 if depmode
=$depmode \
31345 source=sub
/conftest.c object
=$am__obj \
31346 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
31347 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
31348 >/dev
/null
2>conftest.err
&&
31349 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
31350 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
31351 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
31352 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
31353 # icc doesn't choke on unknown options, it will just issue warnings
31354 # or remarks (even with -Werror). So we grep stderr for any message
31355 # that says an option was ignored or not supported.
31356 # When given -MP, icc 7.0 and 7.1 complain thusly:
31357 # icc: Command line warning: ignoring option '-M'; no argument required
31358 # The diagnosis changed in icc 8.0:
31359 # icc: Command line remark: option '-MP' not supported
31360 if (grep 'ignoring option' conftest.err ||
31361 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
31362 am_cv_CC_dependencies_compiler_type
=$depmode
31369 rm -rf conftest.dir
31371 am_cv_CC_dependencies_compiler_type
=none
31375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
31376 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
31377 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
31380 test "x$enable_dependency_tracking" != xno \
31381 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
31382 am__fastdepCC_TRUE
=
31383 am__fastdepCC_FALSE
='#'
31385 am__fastdepCC_TRUE
='#'
31386 am__fastdepCC_FALSE
=
31391 # POSIX will say in a future version that running "rm -f" with no argument
31392 # is OK; and we want to be able to make that assumption in our Makefile
31393 # recipes. So use an aggressive probe to check that the usage we want is
31394 # actually supported "in the wild" to an acceptable degree.
31395 # See automake bug#10828.
31396 # To make any issue more visible, cause the running configure to be aborted
31397 # by default if the 'rm' program in use doesn't match our expectations; the
31398 # user can still override this though.
31399 if rm -f && rm -fr && rm -rf; then : OK
; else
31403 Your 'rm' program seems unable to run without file operands specified
31404 on the command line, even when the '-f' option is present. This is contrary
31405 to the behaviour of most rm programs out there, and not conforming with
31406 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
31408 Please tell bug-automake@gnu.org about your system, including the value
31409 of your $PATH and any error possibly output before this message. This
31410 can help us improve future automake versions.
31413 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
31414 echo 'Configuration will proceed anyway, since you have set the' >&2
31415 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
31419 Aborting the configuration process, to ensure you take notice of the issue.
31421 You can download and install GNU coreutils to get an 'rm' implementation
31422 that behaves properly: <http://www.gnu.org/software/coreutils/>.
31424 If you want to complete the configuration process using your problematic
31425 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
31426 to "yes", and re-run configure.
31429 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
31434 # Check whether --enable-silent-rules was given.
31435 if test "${enable_silent_rules+set}" = set; then :
31436 enableval
=$enable_silent_rules;
31439 case $enable_silent_rules in # (((
31440 yes) AM_DEFAULT_VERBOSITY
=0;;
31441 no
) AM_DEFAULT_VERBOSITY
=1;;
31442 *) AM_DEFAULT_VERBOSITY
=0;;
31444 am_make
=${MAKE-make}
31445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
31446 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
31447 if ${am_cv_make_support_nested_variables+:} false
; then :
31448 $as_echo_n "(cached) " >&6
31450 if $as_echo 'TRUE=$(BAR$(V))
31456 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
31457 am_cv_make_support_nested_variables
=yes
31459 am_cv_make_support_nested_variables
=no
31462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
31463 $as_echo "$am_cv_make_support_nested_variables" >&6; }
31464 if test $am_cv_make_support_nested_variables = yes; then
31466 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
31468 AM_V
=$AM_DEFAULT_VERBOSITY
31469 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
31474 # --------------------- #
31475 # Checks for programs. #
31476 # --------------------- #
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
31480 $as_echo_n "checking whether ln -s works... " >&6; }
31482 if test "$LN_S" = "ln -s"; then
31483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31484 $as_echo "yes" >&6; }
31486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
31487 $as_echo "no, using $LN_S" >&6; }
31490 if test -n "$ac_tool_prefix"; then
31491 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
31492 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
31493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31494 $as_echo_n "checking for $ac_word... " >&6; }
31495 if ${ac_cv_prog_RANLIB+:} false; then :
31496 $as_echo_n "(cached) " >&6
31498 if test -n "$RANLIB"; then
31499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
31501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31502 for as_dir in $PATH
31505 test -z "$as_dir" && as_dir=.
31506 for ac_exec_ext in '' $ac_executable_extensions; do
31507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31508 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
31509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31518 RANLIB=$ac_cv_prog_RANLIB
31519 if test -n "$RANLIB"; then
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
31521 $as_echo "$RANLIB" >&6; }
31523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31524 $as_echo "no" >&6; }
31529 if test -z "$ac_cv_prog_RANLIB"; then
31530 ac_ct_RANLIB=$RANLIB
31531 # Extract the first word of "ranlib", so it can be a program name with args.
31532 set dummy ranlib; ac_word=$2
31533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31534 $as_echo_n "checking for $ac_word... " >&6; }
31535 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
31536 $as_echo_n "(cached) " >&6
31538 if test -n "$ac_ct_RANLIB"; then
31539 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
31541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31542 for as_dir in $PATH
31545 test -z "$as_dir" && as_dir=.
31546 for ac_exec_ext in '' $ac_executable_extensions; do
31547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31548 ac_cv_prog_ac_ct_RANLIB="ranlib"
31549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31558 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
31559 if test -n "$ac_ct_RANLIB"; then
31560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
31561 $as_echo "$ac_ct_RANLIB" >&6; }
31563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31564 $as_echo "no" >&6; }
31567 if test "x$ac_ct_RANLIB" = x; then
31570 case $cross_compiling:$ac_tool_warned in
31572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31574 ac_tool_warned=yes ;;
31576 RANLIB=$ac_ct_RANLIB
31579 RANLIB="$ac_cv_prog_RANLIB"
31583 if test -n "$ac_tool_prefix"; then
31584 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
31585 set dummy ${ac_tool_prefix}ar; ac_word=$2
31586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31587 $as_echo_n "checking for $ac_word... " >&6; }
31588 if ${ac_cv_prog_AR+:} false; then :
31589 $as_echo_n "(cached) " >&6
31591 if test -n "$AR"; then
31592 ac_cv_prog_AR="$AR" # Let the user override the test.
31594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31595 for as_dir in $PATH
31598 test -z "$as_dir" && as_dir=.
31599 for ac_exec_ext in '' $ac_executable_extensions; do
31600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31601 ac_cv_prog_AR="${ac_tool_prefix}ar"
31602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31612 if test -n "$AR"; then
31613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
31614 $as_echo "$AR" >&6; }
31616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31617 $as_echo "no" >&6; }
31622 if test -z "$ac_cv_prog_AR"; then
31624 # Extract the first word of "ar", so it can be a program name with args.
31625 set dummy ar; ac_word=$2
31626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31627 $as_echo_n "checking for $ac_word... " >&6; }
31628 if ${ac_cv_prog_ac_ct_AR+:} false; then :
31629 $as_echo_n "(cached) " >&6
31631 if test -n "$ac_ct_AR"; then
31632 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
31634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31635 for as_dir in $PATH
31638 test -z "$as_dir" && as_dir=.
31639 for ac_exec_ext in '' $ac_executable_extensions; do
31640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31641 ac_cv_prog_ac_ct_AR="ar"
31642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31651 ac_ct_AR=$ac_cv_prog_ac_ct_AR
31652 if test -n "$ac_ct_AR"; then
31653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
31654 $as_echo "$ac_ct_AR" >&6; }
31656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31657 $as_echo "no" >&6; }
31660 if test "x$ac_ct_AR" = x; then
31663 case $cross_compiling:$ac_tool_warned in
31665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31667 ac_tool_warned=yes ;;
31672 AR="$ac_cv_prog_AR"
31676 # ---------------------- #
31677 # Checks for libraries. #
31678 # ---------------------- #
31680 ac_config_files="$ac_config_files Makefile.gnulib.inc"
31683 ac_config_files="$ac_config_files Makefile import/Makefile"
31685 ac_config_commands="$ac_config_commands default"
31687 cat >confcache <<\_ACEOF
31688 # This file is a shell script that caches the results of configure
31689 # tests run on this system so they can be shared between configure
31690 # scripts and configure runs, see configure's option
--config-cache.
31691 # It is not useful on other systems. If it contains results you don't
31692 # want to keep, you may remove or edit it.
31694 # config.status only pays attention to the cache file if you give it
31695 # the --recheck option to rerun configure.
31697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31699 # following values.
31703 # The following way of writing the cache mishandles newlines in values,
31704 # but we know of no workaround that is simple, portable, and efficient.
31705 # So, we kill variables containing newlines.
31706 # Ultrix sh set writes to stderr and can't be redirected directly,
31707 # and sets the high bit in the cache file unless we assign to the vars.
31709 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31710 eval ac_val
=\$
$ac_var
31714 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31715 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31718 _ | IFS | as_nl
) ;; #(
31719 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
31720 *) { eval $ac_var=; unset $ac_var;} ;;
31726 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31727 *${as_nl}ac_space
=\
*)
31728 # `set' does not quote correctly, so add quotes: double-quote
31729 # substitution turns \\\\ into \\, and sed turns \\ into \.
31732 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31735 # `set' quotes correctly as required by POSIX, so do not add quotes.
31736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31745 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31747 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31749 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31750 if test -w "$cache_file"; then
31751 if test "x$cache_file" != "x/dev/null"; then
31752 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31753 $as_echo "$as_me: updating cache $cache_file" >&6;}
31754 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
31755 cat confcache
>"$cache_file"
31757 case $cache_file in #(
31759 mv -f confcache
"$cache_file"$$
&&
31760 mv -f "$cache_file"$$
"$cache_file" ;; #(
31762 mv -f confcache
"$cache_file" ;;
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31768 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31773 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31774 # Let make expand exec_prefix.
31775 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31777 DEFS
=-DHAVE_CONFIG_H
31781 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31782 # 1. Remove the extension, and $U if already installed.
31783 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31784 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
31785 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31786 # will be set to the directory where LIBOBJS objects are built.
31787 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31788 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
31790 LIBOBJS
=$ac_libobjs
31792 LTLIBOBJS
=$ac_ltlibobjs
31795 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31796 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
31797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31799 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
31800 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
31801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31803 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
31804 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
31805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31807 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
31808 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
31809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31811 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
31812 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
31813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31815 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
31816 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
31817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31819 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
31820 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
31821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31823 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
31824 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
31825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31827 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
31828 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
31829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31831 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
31832 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
31833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31835 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
31836 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
31837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31839 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
31840 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
31841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31845 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
31846 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
31847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31849 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
31850 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
31851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31853 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
31854 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
31855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31857 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
31858 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
31859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31861 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
31862 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
31863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31868 if test -n "$gl_LIBOBJS"; then
31869 # Remove the extension.
31870 sed_drop_objext
='s/\.o$//;s/\.obj$//'
31871 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
31872 gl_libobjs
="$gl_libobjs $i.$ac_objext"
31873 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
31876 gl_LIBOBJS
=$gl_libobjs
31878 gl_LTLIBOBJS
=$gl_ltlibobjs
31884 if test -n "$gltests_LIBOBJS"; then
31885 # Remove the extension.
31886 sed_drop_objext
='s/\.o$//;s/\.obj$//'
31887 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
31888 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
31889 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
31892 gltests_LIBOBJS
=$gltests_libobjs
31894 gltests_LTLIBOBJS
=$gltests_ltlibobjs
31897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
31898 $as_echo_n "checking that generated files are newer than configure... " >&6; }
31899 if test -n "$am_sleep_pid"; then
31900 # Hide warnings about reused PIDs.
31901 wait $am_sleep_pid 2>/dev
/null
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
31904 $as_echo "done" >&6; }
31905 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31906 as_fn_error $?
"conditional \"AMDEP\" was never defined.
31907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31909 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31910 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
31911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31913 if test -n "$EXEEXT"; then
31915 am__EXEEXT_FALSE
='#'
31917 am__EXEEXT_TRUE
='#'
31922 : "${CONFIG_STATUS=./config.status}"
31924 ac_clean_files_save
=$ac_clean_files
31925 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31927 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31929 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31931 # Generated by $as_me.
31932 # Run this file to recreate the current configuration.
31933 # Compiler output produced by configure, useful for debugging
31934 # configure, is in config.log if it exists.
31937 ac_cs_recheck=false
31940 SHELL=\${CONFIG_SHELL-$SHELL}
31943 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
31944 ## -------------------- ##
31945 ## M4sh Initialization. ##
31946 ## -------------------- ##
31948 # Be more Bourne compatible
31949 DUALCASE
=1; export DUALCASE
# for MKS sh
31950 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
31953 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31954 # is contrary to our usage. Disable this feature.
31955 alias -g '${1+"$@"}'='"$@"'
31956 setopt NO_GLOB_SUBST
31958 case `(set -o) 2>/dev/null` in #(
31970 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31971 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31973 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31974 # Prefer a ksh shell builtin over an external printf program on Solaris,
31975 # but without wasting forks for bash or zsh.
31976 if test -z "$BASH_VERSION$ZSH_VERSION" \
31977 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31978 as_echo='print
-r --'
31979 as_echo_n='print
-rn --'
31980 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31981 as_echo='printf %s
\n'
31982 as_echo_n='printf %s
'
31984 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31985 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
31986 as_echo_n='/usr
/ucb
/echo -n'
31988 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31989 as_echo_n_body='eval
31993 expr "X$arg" : "X\\(.*\\)$as_nl";
31994 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31996 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
31998 export as_echo_n_body
31999 as_echo_n='sh
-c $as_echo_n_body as_echo
'
32001 export as_echo_body
32002 as_echo='sh
-c $as_echo_body as_echo
'
32005 # The user is always right.
32006 if test "${PATH_SEPARATOR+set}" != set; then
32008 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32009 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32016 # We need space, tab and new line, in precisely that order. Quoting is
32017 # there to prevent editors from complaining about space-tab.
32018 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32019 # splitting by setting IFS to empty value.)
32022 # Find who we are. Look in the path if we contain no directory separator.
32025 *[\\/]* ) as_myself=$0 ;;
32026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32027 for as_dir in $PATH
32030 test -z "$as_dir" && as_dir=.
32031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32037 # We did not find ourselves, most probably we were run as `sh COMMAND'
32038 # in which case we are not to be found in the path.
32039 if test "x$as_myself" = x
; then
32042 if test ! -f "$as_myself"; then
32043 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32047 # Unset variables that we do not need and which cause bugs (e.g. in
32048 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32049 # suppresses any "Segmentation fault" message there. '((' could
32050 # trigger a bug in pdksh 5.2.14.
32051 for as_var
in BASH_ENV ENV MAIL MAILPATH
32052 do eval test x\
${$as_var+set} = xset \
32053 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
32066 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
32069 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32070 # ----------------------------------------
32071 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32072 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32073 # script with STATUS, using 1 if that was 0.
32076 as_status
=$1; test $as_status -eq 0 && as_status
=1
32078 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32079 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32081 $as_echo "$as_me: error: $2" >&2
32082 as_fn_exit
$as_status
32086 # as_fn_set_status STATUS
32087 # -----------------------
32088 # Set $? to STATUS, without forking.
32089 as_fn_set_status
()
32092 } # as_fn_set_status
32094 # as_fn_exit STATUS
32095 # -----------------
32096 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32100 as_fn_set_status
$1
32106 # Portably unset VAR.
32109 { eval $1=; unset $1;}
32111 as_unset
=as_fn_unset
32112 # as_fn_append VAR VALUE
32113 # ----------------------
32114 # Append the text in VALUE to the end of the definition contained in VAR. Take
32115 # advantage of any shell optimizations that allow amortized linear growth over
32116 # repeated appends, instead of the typical quadratic growth present in naive
32118 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
32119 eval 'as_fn_append ()
32130 # as_fn_arith ARG...
32131 # ------------------
32132 # Perform arithmetic evaluation on the ARGs, and store the result in the
32133 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32134 # must be portable across $(()) and expr.
32135 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
32136 eval 'as_fn_arith ()
32143 as_val
=`expr "$@" || test $? -eq 1`
32148 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32149 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32155 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32156 as_basename
=basename
32161 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
32167 as_me
=`$as_basename -- "$0" ||
32168 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32169 X"$0" : 'X\(//\)$' \| \
32170 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32172 sed '/^.*\/\([^/][^/]*\)\/*$/{
32186 # Avoid depending upon Character Ranges.
32187 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32188 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32189 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
32190 as_cr_digits
='0123456789'
32191 as_cr_alnum
=$as_cr_Letters$as_cr_digits
32193 ECHO_C
= ECHO_N
= ECHO_T
=
32194 case `echo -n x` in #(((((
32196 case `echo 'xy\c'` in
32197 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
32199 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
32206 rm -f conf$$ conf$$.exe conf$$.
file
32207 if test -d conf$$.dir
; then
32208 rm -f conf$$.dir
/conf$$.
file
32211 mkdir conf$$.dir
2>/dev
/null
32213 if (echo >conf$$.
file) 2>/dev
/null
; then
32214 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
32216 # ... but there are two gotchas:
32217 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32218 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32219 # In both cases, we have to default to `cp -pR'.
32220 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
32222 elif ln conf$$.
file conf$$
2>/dev
/null
; then
32230 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
32231 rmdir conf$$.dir
2>/dev
/null
32236 # Create "$as_dir" as a directory, including parents if necessary.
32241 -*) as_dir
=.
/$as_dir;;
32243 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
32247 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32248 *) as_qdir
=$as_dir;;
32250 as_dirs
="'$as_qdir' $as_dirs"
32251 as_dir
=`$as_dirname -- "$as_dir" ||
32252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32253 X"$as_dir" : 'X\(//\)[^/]' \| \
32254 X"$as_dir" : 'X\(//\)$' \| \
32255 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32256 $as_echo X"$as_dir" |
32257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32261 /^X\(\/\/\)[^/].*/{
32274 test -d "$as_dir" && break
32276 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32277 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
32281 if mkdir
-p .
2>/dev
/null
; then
32282 as_mkdir_p
='mkdir -p "$as_dir"'
32284 test -d .
/-p && rmdir .
/-p
32289 # as_fn_executable_p FILE
32290 # -----------------------
32291 # Test if FILE is an executable regular file.
32292 as_fn_executable_p
()
32294 test -f "$1" && test -x "$1"
32295 } # as_fn_executable_p
32296 as_test_x
='test -x'
32297 as_executable_p
=as_fn_executable_p
32299 # Sed expression to map a string onto a valid CPP name.
32300 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32302 # Sed expression to map a string onto a valid variable name.
32303 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32307 ## ----------------------------------- ##
32308 ## Main body of $CONFIG_STATUS script. ##
32309 ## ----------------------------------- ##
32311 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
32313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32314 # Save the log message, to keep $0 and so on meaningful, and to
32315 # report actual input values of CONFIG_FILES etc. instead of their
32316 # values after options handling.
32318 This file was extended by libgnu $as_me UNUSED-VERSION, which was
32319 generated by GNU Autoconf 2.69. Invocation command line was
32321 CONFIG_FILES = $CONFIG_FILES
32322 CONFIG_HEADERS = $CONFIG_HEADERS
32323 CONFIG_LINKS = $CONFIG_LINKS
32324 CONFIG_COMMANDS = $CONFIG_COMMANDS
32327 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32332 case $ac_config_files in *"
32333 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
32336 case $ac_config_headers in *"
32337 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
32341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32342 # Files that config.status was made for.
32343 config_files="$ac_config_files"
32344 config_headers="$ac_config_headers"
32345 config_commands="$ac_config_commands"
32349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32351 \`$as_me' instantiates files and other configuration actions
32352 from templates according to the current configuration. Unless the files
32353 and actions are specified as TAGs, all are instantiated by default.
32355 Usage: $0 [OPTION]... [TAG]...
32357 -h, --help print this help, then exit
32358 -V, --version print version number and configuration settings, then exit
32359 --config print configuration, then exit
32360 -q, --quiet, --silent
32361 do not print progress messages
32362 -d, --debug don't remove temporary files
32363 --recheck update $as_me by reconfiguring in the same conditions
32364 --file=FILE[:TEMPLATE]
32365 instantiate the configuration file FILE
32366 --header=FILE[:TEMPLATE]
32367 instantiate the configuration header FILE
32369 Configuration files:
32372 Configuration headers:
32375 Configuration commands:
32378 Report bugs to the package provider."
32381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32382 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32384 libgnu config.status UNUSED-VERSION
32385 configured by $0, generated by GNU Autoconf 2.69,
32386 with options \\"\$ac_cs_config\\"
32388 Copyright (C) 2012 Free Software Foundation, Inc.
32389 This config.status script is free software; the Free Software Foundation
32390 gives unlimited permission to copy, distribute and modify it."
32397 test -n "\$AWK" || AWK=awk
32400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32401 # The default lists apply if the user does not specify any file.
32407 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32408 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
32412 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32424 # Handling of the options.
32425 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
32427 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
32428 $as_echo "$ac_cs_version"; exit ;;
32429 --config |
--confi |
--conf |
--con |
--co |
--c )
32430 $as_echo "$ac_cs_config"; exit ;;
32431 --debug |
--debu |
--deb |
--de |
--d |
-d )
32433 --file |
--fil |
--fi |
--f )
32436 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32437 '') as_fn_error $?
"missing file argument" ;;
32439 as_fn_append CONFIG_FILES
" '$ac_optarg'"
32440 ac_need_defaults
=false
;;
32441 --header |
--heade |
--head |
--hea )
32444 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32446 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
32447 ac_need_defaults
=false
;;
32449 # Conflict between --help and --header
32450 as_fn_error $?
"ambiguous option: \`$1'
32451 Try \`$0 --help' for more information.";;
32452 --help |
--hel |
-h )
32453 $as_echo "$ac_cs_usage"; exit ;;
32454 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
32455 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
32458 # This is an error.
32459 -*) as_fn_error $?
"unrecognized option: \`$1'
32460 Try \`$0 --help' for more information." ;;
32462 *) as_fn_append ac_config_targets
" $1"
32463 ac_need_defaults
=false
;;
32469 ac_configure_extra_args
=
32471 if $ac_cs_silent; then
32473 ac_configure_extra_args
="$ac_configure_extra_args --silent"
32477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32478 if \$ac_cs_recheck; then
32479 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32481 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32482 CONFIG_SHELL='$SHELL'
32483 export CONFIG_SHELL
32488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32492 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32493 ## Running $as_me. ##
32499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32503 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32509 # Handling of arguments.
32510 for ac_config_target
in $ac_config_targets
32512 case $ac_config_target in
32513 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
32514 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
32515 "Makefile.gnulib.inc") CONFIG_FILES
="$CONFIG_FILES Makefile.gnulib.inc" ;;
32516 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
32517 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
32518 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
32520 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32525 # If the user did not use the arguments to specify the items to instantiate,
32526 # then the envvar interface is used. Set only those that are not.
32527 # We use the long form for the default assignment because of an extremely
32528 # bizarre bug on SunOS 4.1.3.
32529 if $ac_need_defaults; then
32530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
32535 # Have a temporary directory for convenience. Make it in the build tree
32536 # simply because there is no reason against having it here, and in addition,
32537 # creating and moving files from /tmp can sometimes cause problems.
32538 # Hook for its removal unless debugging.
32539 # Note that there is a small window in which the directory will not be cleaned:
32540 # after its creation but before its name has been assigned to `$tmp'.
32544 trap 'exit_status=$?
32545 : "${ac_tmp:=$tmp}"
32546 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32548 trap 'as_fn_exit 1' 1 2 13 15
32550 # Create a (secure) tmp directory for tmp files.
32553 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32557 tmp
=.
/conf$$
-$RANDOM
32558 (umask 077 && mkdir
"$tmp")
32559 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
32562 # Set up the scripts for CONFIG_FILES section.
32563 # No need to generate them if there are no CONFIG_FILES.
32564 # This happens for instance with `./config.status config.h'.
32565 if test -n "$CONFIG_FILES"; then
32568 ac_cr
=`echo X | tr X '\015'`
32569 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32570 # But we know of no other shell where ac_cr would be empty at this
32571 # point, so we can use a bashism as a fallback.
32572 if test "x$ac_cr" = x
; then
32573 eval ac_cr
=\$
\'\\r
\'
32575 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32576 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32579 ac_cs_awk_cr
=$ac_cr
32582 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32587 echo "cat >conf$$subs.awk <<_ACEOF" &&
32588 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32590 } >conf$$subs.sh ||
32591 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32592 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32594 for ac_last_try in false false false false false :; do
32595 . ./conf$$subs.sh ||
32596 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32598 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
32599 if test $ac_delim_n = $ac_delim_num; then
32601 elif $ac_last_try; then
32602 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32604 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32607 rm -f conf$$subs.sh
32609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32610 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
32614 s/^/S["/; s
/!.
*/"]=/
32624 s/\(.\{148\}\)..*/\1/
32626 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
32631 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32638 s/\(.\{148\}\)..*/\1/
32640 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
32644 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32649 ' <conf$$subs.awk | sed '
32654 ' >>$CONFIG_STATUS || ac_write_fail=1
32655 rm -f conf$$subs.awk
32656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32658 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
32659 for (key in S) S_is_set[key] = 1
32665 nfields = split(line, field, "@
")
32667 len = length(field[1])
32668 for (i = 2; i < nfields; i++) {
32670 keylen = length(key)
32671 if (S_is_set[key]) {
32673 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32674 len += length(value) + length(field[++i])
32685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32686 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32687 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
32690 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
32691 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
32694 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32695 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
32696 # trailing colons and then remove the whole line if VPATH becomes empty
32697 # (actually we leave an empty line to preserve line numbers).
32698 if test "x
$srcdir" = x.; then
32699 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32718 fi # test -n "$CONFIG_FILES"
32720 # Set up the scripts for CONFIG_HEADERS section.
32721 # No need to generate them if there are no CONFIG_HEADERS.
32722 # This happens for instance with `./config.status Makefile'.
32723 if test -n "$CONFIG_HEADERS"; then
32724 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
32728 # Transform confdefs.h into an awk script `defines.awk', embedded as
32729 # here-document in config.status, that substitutes the proper values into
32730 # config.h.in to produce config.h.
32732 # Create a delimiter string that does not exist in confdefs.h, to ease
32733 # handling of long lines.
32735 for ac_last_try in false false :; do
32736 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
32737 if test -z "$ac_tt"; then
32739 elif $ac_last_try; then
32740 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
32742 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32746 # For the awk script, D is an array of macro values keyed by name,
32747 # likewise P contains macro parameters if any. Preserve backslash
32748 # newline sequences.
32750 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32752 s/.\{148\}/&'"$ac_delim"'/g
32755 s/^[ ]*#[ ]*define[ ][ ]*/ /
32762 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
32764 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
32768 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
32769 D["\
1"]=" \
3\\\\\\n
"\\/p
32771 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
32776 s/.\{148\}/&'"$ac_delim"'/g
32781 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
32784 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
32786 ' <confdefs.h | sed '
32787 s/'"$ac_delim"'/"\\\
32788 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32791 for (key in D) D_is_set[key] = 1
32794 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32796 split(line, arg, " ")
32797 if (arg[1] == "#") {
32801 defundef
= substr
(arg
[1], 2)
32804 split(mac1
, mac2
, "(") #)
32806 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
32807 if (D_is_set
[macro
]) {
32808 # Preserve the white space surrounding the "#".
32809 print prefix
"define", macro P
[macro
] D
[macro
]
32812 # Replace #undef with comments. This is necessary, for example,
32813 # in the case of _POSIX_SOURCE, which is predefined and required
32814 # on some systems where configure will not decide to define it.
32815 if (defundef
== "undef") {
32816 print
"/*", prefix defundef
, macro
, "*/"
32824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32825 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
32826 fi # test -n "$CONFIG_HEADERS"
32829 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32834 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32836 case $ac_mode$ac_tag in
32838 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
32839 :[FH
]-) ac_tag
=-:-;;
32840 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32857 -) ac_f
="$ac_tmp/stdin";;
32858 *) # Look for the file first in the build tree, then in the source tree
32859 # (if the path is not absolute). The absolute path cannot be DOS-style,
32860 # because $ac_f cannot contain `:'.
32864 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32866 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32868 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32869 as_fn_append ac_file_inputs
" '$ac_f'"
32872 # Let's still pretend it is `configure' which instantiates (i.e., don't
32873 # use $as_me), people would be surprised to read:
32874 # /* config.h. Generated by config.status. */
32875 configure_input
='Generated from '`
32876 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32878 if test x
"$ac_file" != x-
; then
32879 configure_input
="$ac_file. $configure_input"
32880 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32881 $as_echo "$as_me: creating $ac_file" >&6;}
32883 # Neutralize special characters interpreted by sed in replacement strings.
32884 case $configure_input in #(
32885 *\
&* |
*\|
* |
*\\* )
32886 ac_sed_conf_input
=`$as_echo "$configure_input" |
32887 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32888 *) ac_sed_conf_input
=$configure_input;;
32892 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
32893 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
32898 ac_dir
=`$as_dirname -- "$ac_file" ||
32899 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32900 X"$ac_file" : 'X\(//\)[^/]' \| \
32901 X"$ac_file" : 'X\(//\)$' \| \
32902 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32903 $as_echo X"$ac_file" |
32904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32908 /^X\(\/\/\)[^/].*/{
32921 as_dir
="$ac_dir"; as_fn_mkdir_p
32925 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32927 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32928 # A ".." for each directory in $ac_dir_suffix.
32929 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32930 case $ac_top_builddir_sub in
32931 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32932 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32935 ac_abs_top_builddir
=$ac_pwd
32936 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32937 # for backward compatibility:
32938 ac_top_builddir
=$ac_top_build_prefix
32941 .
) # We are building in place.
32943 ac_top_srcdir
=$ac_top_builddir_sub
32944 ac_abs_top_srcdir
=$ac_pwd ;;
32945 [\\/]* | ?
:[\\/]* ) # Absolute name.
32946 ac_srcdir
=$srcdir$ac_dir_suffix;
32947 ac_top_srcdir
=$srcdir
32948 ac_abs_top_srcdir
=$srcdir ;;
32949 *) # Relative name.
32950 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32951 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32952 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32954 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32964 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32965 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32967 ac_MKDIR_P
=$MKDIR_P
32969 [\\/$
]* | ?
:[\\/]* ) ;;
32970 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
32974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32975 # If the template does not know about datarootdir, expand it.
32976 # FIXME: This hack should be removed a few years after 2.60.
32977 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32988 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32989 *datarootdir
*) ac_datarootdir_seen
=yes;;
32990 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32992 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32995 ac_datarootdir_hack='
32996 s&@datadir@&$datadir&g
32997 s&@docdir@&$docdir&g
32998 s&@infodir@&$infodir&g
32999 s&@localedir@&$localedir&g
33000 s&@mandir@&$mandir&g
33001 s&\\\${datarootdir}&$datarootdir&g' ;;
33005 # Neutralize VPATH when `$srcdir' = `.'.
33006 # Shell code in configure.ac might set extrasub.
33007 # FIXME: do we really want to maintain this feature?
33008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33009 ac_sed_extra="$ac_vpsub
33012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33014 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
33015 s|@configure_input@|
$ac_sed_conf_input|
;t t
33016 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
33017 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
33018 s
&@srcdir@
&$ac_srcdir&;t t
33019 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
33020 s
&@top_srcdir@
&$ac_top_srcdir&;t t
33021 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
33022 s
&@builddir@
&$ac_builddir&;t t
33023 s
&@abs_builddir@
&$ac_abs_builddir&;t t
33024 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
33025 s
&@INSTALL@
&$ac_INSTALL&;t t
33026 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
33027 $ac_datarootdir_hack
33029 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
33030 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
33032 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33033 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
33034 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33035 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33037 which seems to be undefined. Please make sure it is defined" >&5
33038 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33039 which seems to be undefined. Please make sure it is defined" >&2;}
33041 rm -f "$ac_tmp/stdin"
33043 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33044 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33052 if test x"$ac_file" != x-; then
33054 $as_echo "/* $configure_input */" \
33055 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33056 } >"$ac_tmp/config.h" \
33057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33058 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33059 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33060 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33063 mv "$ac_tmp/config.h" "$ac_file" \
33064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33067 $as_echo "/* $configure_input */" \
33068 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33069 || as_fn_error $? "could not create -" "$LINENO" 5
33071 # Compute "$ac_file"'s index
in $config_headers.
33074 for _am_header
in $config_headers :; do
33075 case $_am_header in
33076 $_am_arg |
$_am_arg:* )
33079 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
33082 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33083 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33084 X"$_am_arg" : 'X\(//\)[^/]' \| \
33085 X"$_am_arg" : 'X\(//\)$' \| \
33086 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33087 $as_echo X"$_am_arg" |
33088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33092 /^X\(\/\/\)[^/].*/{
33104 s/.*/./; q'`/stamp-h
$_am_stamp_count
33107 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33108 $as_echo "$as_me: executing $ac_file commands" >&6;}
33113 case $ac_file$ac_mode in
33114 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
33115 # Older Autoconf quotes --file arguments for eval, but not when files
33116 # are listed without --file. Let's play safe and only enable the eval
33117 # if we detect the quoting.
33118 case $CONFIG_FILES in
33119 *\'*) eval set x
"$CONFIG_FILES" ;;
33120 *) set x
$CONFIG_FILES ;;
33125 # Strip MF so we end up with the name of the file.
33126 mf
=`echo "$mf" | sed -e 's/:.*$//'`
33127 # Check whether this is an Automake generated Makefile or not.
33128 # We used to match only the files named 'Makefile.in', but
33129 # some people rename them; so instead we look at the file content.
33130 # Grep'ing the first line is not enough: some people post-process
33131 # each Makefile.in and add a new line on top of each file to say so.
33132 # Grep'ing the whole file is not good either: AIX grep has a line
33133 # limit of 2048, but all sed's we know have understand at least 4000.
33134 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
33135 dirpart
=`$as_dirname -- "$mf" ||
33136 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33137 X"$mf" : 'X\(//\)[^/]' \| \
33138 X"$mf" : 'X\(//\)$' \| \
33139 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33145 /^X\(\/\/\)[^/].*/{
33161 # Extract the definition of DEPDIR, am__include, and am__quote
33162 # from the Makefile without running 'make'.
33163 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
33164 test -z "$DEPDIR" && continue
33165 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
33166 test -z "$am__include" && continue
33167 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
33168 # Find all dependency output files, they are included files with
33169 # $(DEPDIR) in their names. We invoke sed twice because it is the
33170 # simplest approach to changing $(DEPDIR) to its actual value in the
33172 for file in `sed -n "
33173 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33174 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
33175 # Make sure the directory exists.
33176 test -f "$dirpart/$file" && continue
33177 fdir
=`$as_dirname -- "$file" ||
33178 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33179 X"$file" : 'X\(//\)[^/]' \| \
33180 X"$file" : 'X\(//\)$' \| \
33181 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33182 $as_echo X"$file" |
33183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33187 /^X\(\/\/\)[^/].*/{
33200 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
33201 # echo "creating $dirpart/$file"
33202 echo '# dummy' > "$dirpart/$file"
33208 case x
$CONFIG_HEADERS in
33209 xconfig.h
:config.
in)
33220 ac_clean_files
=$ac_clean_files_save
33222 test $ac_write_fail = 0 ||
33223 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
33226 # configure is writing to config.log, and then calls config.status.
33227 # config.status does its own redirection, appending to config.log.
33228 # Unfortunately, on DOS this fails, as config.log is still kept open
33229 # by configure, so config.status won't be able to write to it; its
33230 # output is simply discarded. So we exec the FD to /dev/null,
33231 # effectively closing config.log, so it can be properly (re)opened and
33232 # appended to by config.status. When coming back to configure, we
33233 # need to make the FD available again.
33234 if test "$no_create" != yes; then
33236 ac_config_status_args
=
33237 test "$silent" = yes &&
33238 ac_config_status_args
="$ac_config_status_args --quiet"
33240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33243 # would make configure fail if this is the last instruction.
33244 $ac_cs_success || as_fn_exit
1
33246 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
33247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33248 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}