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
735 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
739 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
743 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
746 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
749 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
751 NEXT_AS_FIRST_DIRECTIVE_STRING_H
753 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
755 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
758 GL_GENERATE_STDBOOL_H_FALSE
759 GL_GENERATE_STDBOOL_H_TRUE
761 GL_GENERATE_STDALIGN_H_FALSE
762 GL_GENERATE_STDALIGN_H_TRUE
764 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
767 REPLACE_PTHREAD_SIGMASK
769 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
770 HAVE_STRUCT_SIGACTION_SA_SIGACTION
776 HAVE_POSIX_SIGNALBLOCKING
779 GNULIB_SIGNAL_H_SIGPIPE
781 GNULIB_PTHREAD_SIGMASK
785 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
792 GL_GENERATE_NETINET_IN_H_FALSE
793 GL_GENERATE_NETINET_IN_H_TRUE
796 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
799 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
803 HAVE_DECL_GETNAMEINFO
804 HAVE_DECL_GETADDRINFO
805 HAVE_DECL_GAI_STRERROR
806 HAVE_DECL_FREEADDRINFO
811 REPLACE_STRERRORNAME_NP
856 GNULIB_STRERRORNAME_NP
892 GNULIB_EXPLICIT_BZERO
899 NEXT_AS_FIRST_DIRECTIVE_MATH_H
906 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
909 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
911 GL_GENERATE_STDDEF_H_FALSE
912 GL_GENERATE_STDDEF_H_TRUE
928 GNULIB_SETLOCALE_NULL
931 LOCALCHARSET_TESTS_ENVIRONMENT
932 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
934 UINT64_MAX_EQ_ULONG_MAX
935 UINT32_MAX_LT_UINTMAX_MAX
937 INT64_MAX_EQ_LONG_MAX
938 INT32_MAX_LT_INTMAX_MAX
950 GL_GENERATE_STDINT_H_FALSE
951 GL_GENERATE_STDINT_H_TRUE
963 HAVE_SIGNED_SIG_ATOMIC_T
966 BITSIZEOF_SIG_ATOMIC_T
969 APPLE_UNIVERSAL_BUILD
971 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
976 GNULIB_OVERRIDES_WINT_T
977 GL_GENERATE_LIMITS_H_FALSE
978 GL_GENERATE_LIMITS_H_TRUE
980 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
988 GL_GENERATE_GLOB_H_FALSE
989 GL_GENERATE_GLOB_H_TRUE
992 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
994 REPLACE_GLOB_PATTERN_P
999 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1001 REPLACE_STRUCT_TIMEVAL
1002 REPLACE_GETTIMEOFDAY
1021 REPLACE_STDIO_WRITE_FUNCS
1022 REPLACE_STDIO_READ_FUNCS
1031 REPLACE_OBSTACK_PRINTF
1056 HAVE_DECL_OBSTACK_PRINTF
1068 GNULIB_MDA_FCLOSEALL
1069 GNULIB_VSPRINTF_POSIX
1071 GNULIB_VPRINTF_POSIX
1073 GNULIB_VFPRINTF_POSIX
1080 GNULIB_STDIO_H_SIGPIPE
1081 GNULIB_STDIO_H_NONBLOCKING
1082 GNULIB_SPRINTF_POSIX
1096 GNULIB_OBSTACK_PRINTF_POSIX
1097 GNULIB_OBSTACK_PRINTF
1113 GNULIB_FPRINTF_POSIX
1122 WINDOWS_64_BIT_ST_SIZE
1123 WINDOWS_STAT_TIMESPEC
1124 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1153 GNULIB_OVERRIDES_STRUCT_STAT
1170 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1181 REPLACE_SIGNBIT_USING_BUILTINS
1261 HAVE_DECL_REMAINDERL
1448 GL_GENERATE_FNMATCH_H_FALSE
1449 GL_GENERATE_FNMATCH_H_TRUE
1452 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
1458 GL_GENERATE_FLOAT_H_FALSE
1459 GL_GENERATE_FLOAT_H_TRUE
1461 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1463 HAVE_DECL_STRNCASECMP
1467 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1488 GL_GENERATE_ERRNO_H_FALSE
1489 GL_GENERATE_ERRNO_H_TRUE
1491 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1494 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1496 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
1521 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1537 REPLACE_POSIX_MEMALIGN
1543 REPLACE_CANONICALIZE_FILE_NAME
1545 REPLACE_ALIGNED_ALLOC
1549 HAVE_STRUCT_RANDOM_DATA
1580 HAVE_DECL_GETLOADAVG
1584 HAVE_CANONICALIZE_FILE_NAME
1602 GNULIB_SECURE_GETENV
1605 GNULIB_REALLOC_POSIX
1614 GNULIB_POSIX_MEMALIGN
1626 GNULIB_CANONICALIZE_FILE_NAME
1629 GNULIB_ALIGNED_ALLOC
1733 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1743 GL_GENERATE_ALLOCA_H_FALSE
1744 GL_GENERATE_ALLOCA_H_TRUE
1748 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1749 UNISTD_H_HAVE_WINSOCK2_H
1750 UNISTD_H_HAVE_SYS_RANDOM_H
1775 REPLACE_GETDTABLESIZE
1776 REPLACE_GETDOMAINNAME
1797 HAVE_DECL_SETHOSTNAME
1798 HAVE_DECL_GETUSERSHELL
1799 HAVE_DECL_GETPAGESIZE
1800 HAVE_DECL_GETLOGIN_R
1802 HAVE_DECL_GETDOMAINNAME
1839 HAVE_COPY_FILE_RANGE
1866 GNULIB_UNISTD_H_SIGPIPE
1867 GNULIB_UNISTD_H_NONBLOCKING
1897 GNULIB_GETDTABLESIZE
1898 GNULIB_GETDOMAINNAME
1918 GNULIB_COPY_FILE_RANGE
1925 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1928 PRAGMA_SYSTEM_HEADER
1929 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1933 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1934 HAVE_STRUCT_SOCKADDR_STORAGE
1950 GL_COND_LIBTOOL_FALSE
1951 GL_COND_LIBTOOL_TRUE
1979 MAINTAINER_MODE_FALSE
1980 MAINTAINER_MODE_TRUE
2008 program_transform_name
2021 enable_option_checking
2022 enable_maintainer_mode
2026 enable_cross_guesses
2027 enable_dependency_tracking
2030 ac_precious_vars
='build_alias
2041 # Initialize some variables set by options.
2043 ac_init_version
=false
2044 ac_unrecognized_opts
=
2045 ac_unrecognized_sep
=
2046 # The variables have the same names as the options, with
2047 # dashes changed to underlines.
2048 cache_file
=/dev
/null
2055 program_transform_name
=s
,x
,x
,
2063 # Installation directory options.
2064 # These are left unexpanded so users can "make install exec_prefix=/foo"
2065 # and all the variables that are supposed to be based on exec_prefix
2066 # by default will actually change.
2067 # Use braces instead of parens because sh, perl, etc. also accept them.
2068 # (The list follows the same order as the GNU Coding Standards.)
2069 bindir
='${exec_prefix}/bin'
2070 sbindir
='${exec_prefix}/sbin'
2071 libexecdir
='${exec_prefix}/libexec'
2072 datarootdir
='${prefix}/share'
2073 datadir
='${datarootdir}'
2074 sysconfdir
='${prefix}/etc'
2075 sharedstatedir
='${prefix}/com'
2076 localstatedir
='${prefix}/var'
2077 includedir
='${prefix}/include'
2078 oldincludedir
='/usr/include'
2079 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
2080 infodir
='${datarootdir}/info'
2085 libdir
='${exec_prefix}/lib'
2086 localedir
='${datarootdir}/locale'
2087 mandir
='${datarootdir}/man'
2093 # If the previous option needs an argument, assign it.
2094 if test -n "$ac_prev"; then
2095 eval $ac_prev=\
$ac_option
2101 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2106 # Accept the important Cygnus configure options, so we can diagnose typos.
2108 case $ac_dashdash$ac_option in
2112 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
2114 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
2115 bindir
=$ac_optarg ;;
2117 -build |
--build |
--buil |
--bui |
--bu)
2118 ac_prev
=build_alias
;;
2119 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
2120 build_alias
=$ac_optarg ;;
2122 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
2123 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
2124 ac_prev
=cache_file
;;
2125 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
2126 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
2127 cache_file
=$ac_optarg ;;
2129 --config-cache |
-C)
2130 cache_file
=config.cache
;;
2132 -datadir |
--datadir |
--datadi |
--datad)
2134 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
2135 datadir
=$ac_optarg ;;
2137 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
2138 |
--dataroo |
--dataro |
--datar)
2139 ac_prev
=datarootdir
;;
2140 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
2141 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
2142 datarootdir
=$ac_optarg ;;
2144 -disable-* |
--disable-*)
2145 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2146 # Reject names that are not valid shell variable names.
2147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2148 as_fn_error $?
"invalid feature name: $ac_useropt"
2149 ac_useropt_orig
=$ac_useropt
2150 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2151 case $ac_user_opts in
2153 "enable_
$ac_useropt"
2155 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2156 ac_unrecognized_sep
=', ';;
2158 eval enable_
$ac_useropt=no
;;
2160 -docdir |
--docdir |
--docdi |
--doc |
--do)
2162 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
2163 docdir
=$ac_optarg ;;
2165 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
2167 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
2168 dvidir
=$ac_optarg ;;
2170 -enable-* |
--enable-*)
2171 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2172 # Reject names that are not valid shell variable names.
2173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2174 as_fn_error $?
"invalid feature name: $ac_useropt"
2175 ac_useropt_orig
=$ac_useropt
2176 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2177 case $ac_user_opts in
2179 "enable_
$ac_useropt"
2181 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2182 ac_unrecognized_sep
=', ';;
2184 eval enable_
$ac_useropt=\
$ac_optarg ;;
2186 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
2187 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
2188 |
--exec |
--exe |
--ex)
2189 ac_prev
=exec_prefix
;;
2190 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
2191 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
2192 |
--exec=* |
--exe=* |
--ex=*)
2193 exec_prefix
=$ac_optarg ;;
2195 -gas |
--gas |
--ga |
--g)
2196 # Obsolete; use --with-gas.
2199 -help |
--help |
--hel |
--he |
-h)
2200 ac_init_help
=long
;;
2201 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
2202 ac_init_help
=recursive
;;
2203 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
2204 ac_init_help
=short
;;
2206 -host |
--host |
--hos |
--ho)
2207 ac_prev
=host_alias
;;
2208 -host=* |
--host=* |
--hos=* |
--ho=*)
2209 host_alias
=$ac_optarg ;;
2211 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
2213 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
2215 htmldir
=$ac_optarg ;;
2217 -includedir |
--includedir |
--includedi |
--included |
--include \
2218 |
--includ |
--inclu |
--incl |
--inc)
2219 ac_prev
=includedir
;;
2220 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
2221 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
2222 includedir
=$ac_optarg ;;
2224 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
2226 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
2227 infodir
=$ac_optarg ;;
2229 -libdir |
--libdir |
--libdi |
--libd)
2231 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
2232 libdir
=$ac_optarg ;;
2234 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
2235 |
--libexe |
--libex |
--libe)
2236 ac_prev
=libexecdir
;;
2237 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
2238 |
--libexe=* |
--libex=* |
--libe=*)
2239 libexecdir
=$ac_optarg ;;
2241 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2242 ac_prev
=localedir
;;
2243 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2244 localedir
=$ac_optarg ;;
2246 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2247 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2248 ac_prev
=localstatedir
;;
2249 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2250 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2251 localstatedir
=$ac_optarg ;;
2253 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2255 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2256 mandir
=$ac_optarg ;;
2258 -nfp |
--nfp |
--nf)
2259 # Obsolete; use --without-fp.
2262 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2263 |
--no-cr |
--no-c |
-n)
2266 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2267 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2270 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2271 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2272 |
--oldin |
--oldi |
--old |
--ol |
--o)
2273 ac_prev
=oldincludedir
;;
2274 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2275 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2276 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2277 oldincludedir
=$ac_optarg ;;
2279 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2281 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2282 prefix
=$ac_optarg ;;
2284 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2285 |
--program-pre |
--program-pr |
--program-p)
2286 ac_prev
=program_prefix
;;
2287 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2288 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2289 program_prefix
=$ac_optarg ;;
2291 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2292 |
--program-suf |
--program-su |
--program-s)
2293 ac_prev
=program_suffix
;;
2294 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2295 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2296 program_suffix
=$ac_optarg ;;
2298 -program-transform-name |
--program-transform-name \
2299 |
--program-transform-nam |
--program-transform-na \
2300 |
--program-transform-n |
--program-transform- \
2301 |
--program-transform |
--program-transfor \
2302 |
--program-transfo |
--program-transf \
2303 |
--program-trans |
--program-tran \
2304 |
--progr-tra |
--program-tr |
--program-t)
2305 ac_prev
=program_transform_name
;;
2306 -program-transform-name=* |
--program-transform-name=* \
2307 |
--program-transform-nam=* |
--program-transform-na=* \
2308 |
--program-transform-n=* |
--program-transform-=* \
2309 |
--program-transform=* |
--program-transfor=* \
2310 |
--program-transfo=* |
--program-transf=* \
2311 |
--program-trans=* |
--program-tran=* \
2312 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2313 program_transform_name
=$ac_optarg ;;
2315 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2317 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2318 pdfdir
=$ac_optarg ;;
2320 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2322 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2325 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2326 |
-silent |
--silent |
--silen |
--sile |
--sil)
2329 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2331 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2333 sbindir
=$ac_optarg ;;
2335 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2336 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2337 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2339 ac_prev
=sharedstatedir
;;
2340 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2341 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2342 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2344 sharedstatedir
=$ac_optarg ;;
2346 -site |
--site |
--sit)
2348 -site=* |
--site=* |
--sit=*)
2351 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2353 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2354 srcdir
=$ac_optarg ;;
2356 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2357 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2358 ac_prev
=sysconfdir
;;
2359 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2360 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2361 sysconfdir
=$ac_optarg ;;
2363 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2364 ac_prev
=target_alias
;;
2365 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2366 target_alias
=$ac_optarg ;;
2368 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2371 -version |
--version |
--versio |
--versi |
--vers |
-V)
2372 ac_init_version
=: ;;
2375 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2376 # Reject names that are not valid shell variable names.
2377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2378 as_fn_error $?
"invalid package name: $ac_useropt"
2379 ac_useropt_orig
=$ac_useropt
2380 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2381 case $ac_user_opts in
2385 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2386 ac_unrecognized_sep
=', ';;
2388 eval with_
$ac_useropt=\
$ac_optarg ;;
2390 -without-* |
--without-*)
2391 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2392 # Reject names that are not valid shell variable names.
2393 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2394 as_fn_error $?
"invalid package name: $ac_useropt"
2395 ac_useropt_orig
=$ac_useropt
2396 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2397 case $ac_user_opts in
2401 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2402 ac_unrecognized_sep
=', ';;
2404 eval with_
$ac_useropt=no
;;
2407 # Obsolete; use --with-x.
2410 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2411 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2412 ac_prev
=x_includes
;;
2413 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2414 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2415 x_includes
=$ac_optarg ;;
2417 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2418 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2419 ac_prev
=x_libraries
;;
2420 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2421 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2422 x_libraries
=$ac_optarg ;;
2424 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2425 Try \`$0 --help' for more information"
2429 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2430 # Reject names that are not valid shell variable names.
2431 case $ac_envvar in #(
2432 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2433 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2435 eval $ac_envvar=\
$ac_optarg
2436 export $ac_envvar ;;
2439 # FIXME: should be removed in autoconf 3.0.
2440 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2441 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2442 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2443 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2449 if test -n "$ac_prev"; then
2450 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2451 as_fn_error $?
"missing argument to $ac_option"
2454 if test -n "$ac_unrecognized_opts"; then
2455 case $enable_option_checking in
2457 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2458 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2462 # Check all directory arguments for consistency.
2463 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2464 datadir sysconfdir sharedstatedir localstatedir includedir \
2465 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2466 libdir localedir mandir
2468 eval ac_val
=\$
$ac_var
2469 # Remove trailing slashes.
2472 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2473 eval $ac_var=\
$ac_val;;
2475 # Be sure to have absolute directory names.
2477 [\\/$
]* | ?
:[\\/]* ) continue;;
2478 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2480 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2483 # There might be people who depend on the old broken behavior: `$host'
2484 # used to hold the argument of --host etc.
2485 # FIXME: To remove some day.
2488 target
=$target_alias
2490 # FIXME: To remove some day.
2491 if test "x$host_alias" != x
; then
2492 if test "x$build_alias" = x
; then
2493 cross_compiling
=maybe
2494 elif test "x$build_alias" != "x$host_alias"; then
2500 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2502 test "$silent" = yes && exec 6>/dev
/null
2505 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2506 ac_ls_di
=`ls -di .` &&
2507 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2508 as_fn_error $?
"working directory cannot be determined"
2509 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2510 as_fn_error $?
"pwd does not report name of working directory"
2513 # Find the source files, if location was not specified.
2514 if test -z "$srcdir"; then
2515 ac_srcdir_defaulted
=yes
2516 # Try the directory containing this script, then the parent directory.
2517 ac_confdir
=`$as_dirname -- "$as_myself" ||
2518 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2519 X"$as_myself" : 'X\(//\)[^/]' \| \
2520 X"$as_myself" : 'X\(//\)$' \| \
2521 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2522 $as_echo X"$as_myself" |
2523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2541 if test ! -r "$srcdir/$ac_unique_file"; then
2545 ac_srcdir_defaulted
=no
2547 if test ! -r "$srcdir/$ac_unique_file"; then
2548 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2549 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2551 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2553 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2555 # When building in place, set srcdir=.
2556 if test "$ac_abs_confdir" = "$ac_pwd"; then
2559 # Remove unnecessary trailing slashes from srcdir.
2560 # Double slashes in file names in object file debugging info
2561 # mess up M-x gdb in Emacs.
2563 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2565 for ac_var
in $ac_precious_vars; do
2566 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2567 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2568 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2569 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2573 # Report the --help message.
2575 if test "$ac_init_help" = "long"; then
2576 # Omit some internal or obsolete options to make the list less imposing.
2577 # This message is too long to be a string in the A/UX 3.1 sh.
2579 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2581 Usage: $0 [OPTION]... [VAR=VALUE]...
2583 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2584 VAR=VALUE. See below for descriptions of some of the useful variables.
2586 Defaults for the options are specified in brackets.
2589 -h, --help display this help and exit
2590 --help=short display options specific to this package
2591 --help=recursive display the short help of all the included packages
2592 -V, --version display version information and exit
2593 -q, --quiet, --silent do not print \`checking ...' messages
2594 --cache-file=FILE cache test results in FILE [disabled]
2595 -C, --config-cache alias for \`--cache-file=config.cache'
2596 -n, --no-create do not create output files
2597 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2599 Installation directories:
2600 --prefix=PREFIX install architecture-independent files in PREFIX
2601 [$ac_default_prefix]
2602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2605 By default, \`make install' will install all the files in
2606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2608 for instance \`--prefix=\$HOME'.
2610 For better control, use the options below.
2612 Fine tuning of the installation directories:
2613 --bindir=DIR user executables [EPREFIX/bin]
2614 --sbindir=DIR system admin executables [EPREFIX/sbin]
2615 --libexecdir=DIR program executables [EPREFIX/libexec]
2616 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2617 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2618 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2619 --libdir=DIR object code libraries [EPREFIX/lib]
2620 --includedir=DIR C header files [PREFIX/include]
2621 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2622 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2623 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2624 --infodir=DIR info documentation [DATAROOTDIR/info]
2625 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2626 --mandir=DIR man documentation [DATAROOTDIR/man]
2627 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2628 --htmldir=DIR html documentation [DOCDIR]
2629 --dvidir=DIR dvi documentation [DOCDIR]
2630 --pdfdir=DIR pdf documentation [DOCDIR]
2631 --psdir=DIR ps documentation [DOCDIR]
2637 --program-prefix=PREFIX prepend PREFIX to installed program names
2638 --program-suffix=SUFFIX append SUFFIX to installed program names
2639 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2642 --build=BUILD configure
for building on BUILD
[guessed
]
2643 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2644 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2648 if test -n "$ac_init_help"; then
2649 case $ac_init_help in
2650 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2655 --disable-option-checking ignore unrecognized
--enable/--with options
2656 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2657 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2658 --enable-maintainer-mode
2659 enable make rules and dependencies not useful
(and
2660 sometimes confusing
) to the casual installer
2661 --enable-plugins Enable support
for plugins
2662 --disable-largefile omit support
for large files
2663 --enable-threads={isoc|posix|isoc
+posix|windows
}
2664 specify multithreading API
2665 --disable-threads build without multithread safety
2666 --enable-cross-guesses={conservative|risky
}
2667 specify policy
for cross-compilation guesses
2668 --enable-dependency-tracking
2669 do not reject slow dependency extractors
2670 --disable-dependency-tracking
2671 speeds up one-time build
2672 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2673 --disable-silent-rules verbose build output
(undo
: "make V=0")
2675 Some influential environment variables
:
2676 CC C compiler
command
2677 CFLAGS C compiler flags
2678 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2679 nonstandard directory
<lib dir
>
2680 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2681 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2682 you have headers
in a nonstandard directory
<include dir
>
2685 Use these variables to override the choices made by
`configure' or to help
2686 it to find libraries and programs with nonstandard names/locations.
2688 Report bugs to the package provider.
2693 if test "$ac_init_help" = "recursive"; then
2694 # If there are subdirs, report their specific --help.
2695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2696 test -d "$ac_dir" ||
2697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2704 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2705 # A ".." for each directory in $ac_dir_suffix.
2706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2707 case $ac_top_builddir_sub in
2708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2712 ac_abs_top_builddir=$ac_pwd
2713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2714 # for backward compatibility:
2715 ac_top_builddir=$ac_top_build_prefix
2718 .) # We are building in place.
2720 ac_top_srcdir=$ac_top_builddir_sub
2721 ac_abs_top_srcdir=$ac_pwd ;;
2722 [\\/]* | ?:[\\/]* ) # Absolute name.
2723 ac_srcdir=$srcdir$ac_dir_suffix;
2724 ac_top_srcdir=$srcdir
2725 ac_abs_top_srcdir=$srcdir ;;
2727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2728 ac_top_srcdir=$ac_top_build_prefix$srcdir
2729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2733 cd "$ac_dir" || { ac_status=$?; continue; }
2734 # Check for guested configure.
2735 if test -f "$ac_srcdir/configure.gnu"; then
2737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2738 elif test -f "$ac_srcdir/configure"; then
2740 $SHELL "$ac_srcdir/configure" --help=recursive
2742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2744 cd "$ac_pwd" || { ac_status=$?; break; }
2748 test -n "$ac_init_help" && exit $ac_status
2749 if $ac_init_version; then
2751 libgnu configure UNUSED-VERSION
2752 generated by GNU Autoconf 2.69
2754 Copyright (C) 2012 Free Software Foundation, Inc.
2755 This configure script is free software; the Free Software Foundation
2756 gives unlimited permission to copy, distribute and modify it.
2761 ## ------------------------ ##
2762 ## Autoconf initialization. ##
2763 ## ------------------------ ##
2765 # ac_fn_c_try_compile LINENO
2766 # --------------------------
2767 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2768 ac_fn_c_try_compile ()
2770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771 rm -f conftest.$ac_objext
2772 if { { ac_try="$ac_compile"
2774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2775 *) ac_try_echo
=$ac_try;;
2777 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2778 $as_echo "$ac_try_echo"; } >&5
2779 (eval "$ac_compile") 2>conftest.err
2781 if test -s conftest.err
; then
2782 grep -v '^ *+' conftest.err
>conftest.er1
2783 cat conftest.er1
>&5
2784 mv -f conftest.er1 conftest.err
2786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.
$ac_objext; then :
2793 $as_echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.
$ac_ext >&5
2798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2799 as_fn_set_status
$ac_retval
2801 } # ac_fn_c_try_compile
2803 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2804 # -------------------------------------------------------
2805 # Tests whether HEADER exists and can be compiled using the include files in
2806 # INCLUDES, setting the cache variable VAR accordingly.
2807 ac_fn_c_check_header_compile
()
2809 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2811 $as_echo_n "checking for $2... " >&6; }
2812 if eval \
${$3+:} false
; then :
2813 $as_echo_n "(cached) " >&6
2815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2820 if ac_fn_c_try_compile
"$LINENO"; then :
2825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2832 } # ac_fn_c_check_header_compile
2834 # ac_fn_c_try_cpp LINENO
2835 # ----------------------
2836 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2839 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2840 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846 $as_echo "$ac_try_echo"; } >&5
2847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2849 if test -s conftest.err; then
2850 grep -v '^ *+' conftest.err >conftest.er1
2851 cat conftest.er1 >&5
2852 mv -f conftest.er1 conftest.err
2854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2855 test $ac_status = 0; } > conftest.i && {
2856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2861 $as_echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2867 as_fn_set_status $ac_retval
2871 # ac_fn_c_try_run LINENO
2872 # ----------------------
2873 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2874 # that executables *can* be run.
2877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2878 if { { ac_try="$ac_link"
2880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2881 *) ac_try_echo
=$ac_try;;
2883 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884 $as_echo "$ac_try_echo"; } >&5
2885 (eval "$ac_link") 2>&5
2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2889 { { case "(($ac_try" in
2890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2894 $as_echo "$ac_try_echo"; } >&5
2895 (eval "$ac_try") 2>&5
2897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2898 test $ac_status = 0; }; }; then :
2901 $as_echo "$as_me: program exited with status $ac_status" >&5
2902 $as_echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2905 ac_retval=$ac_status
2907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2909 as_fn_set_status $ac_retval
2913 # ac_fn_c_try_link LINENO
2914 # -----------------------
2915 # Try to link conftest.$ac_ext, and return whether this succeeded.
2918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2919 rm -f conftest.$ac_objext conftest$ac_exeext
2920 if { { ac_try="$ac_link"
2922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2923 *) ac_try_echo
=$ac_try;;
2925 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926 $as_echo "$ac_try_echo"; } >&5
2927 (eval "$ac_link") 2>conftest.err
2929 if test -s conftest.err
; then
2930 grep -v '^ *+' conftest.err
>conftest.er1
2931 cat conftest.er1
>&5
2932 mv -f conftest.er1 conftest.err
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; } && {
2936 test -z "$ac_c_werror_flag" ||
2937 test ! -s conftest.err
2938 } && test -s conftest
$ac_exeext && {
2939 test "$cross_compiling" = yes ||
2940 test -x conftest
$ac_exeext
2944 $as_echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.
$ac_ext >&5
2949 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2950 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2951 # interfere with the next link command; also delete a directory that is
2952 # left behind by Apple's compiler. We do this before executing the actions.
2953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2955 as_fn_set_status
$ac_retval
2957 } # ac_fn_c_try_link
2959 # ac_fn_c_check_func LINENO FUNC VAR
2960 # ----------------------------------
2961 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2962 ac_fn_c_check_func
()
2964 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2966 $as_echo_n "checking for $2... " >&6; }
2967 if eval \
${$3+:} false
; then :
2968 $as_echo_n "(cached) " >&6
2970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2971 /* end confdefs.h. */
2972 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2974 #define $2 innocuous_$2
2976 /* System header to define __stub macros and hopefully few prototypes,
2977 which can conflict with char $2 (); below.
2978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2979 <limits.h> exists even on freestanding compilers. */
2982 # include <limits.h>
2984 # include <assert.h>
2989 /* Override any GCC internal prototype to avoid an error.
2990 Use char because int might match the return type of a GCC
2991 builtin and then its argument prototype would still apply. */
2996 /* The GNU C library defines this for functions which it implements
2997 to always fail with ENOSYS. Some functions are actually named
2998 something starting with __ and the normal name is an alias. */
2999 #if defined __stub_$2 || defined __stub___$2
3011 if ac_fn_c_try_link
"$LINENO"; then :
3016 rm -f core conftest.err conftest.
$ac_objext \
3017 conftest
$ac_exeext conftest.
$ac_ext
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3021 $as_echo "$ac_res" >&6; }
3022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3024 } # ac_fn_c_check_func
3026 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
3027 # -------------------------------------------------------
3028 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
3029 # the include files in INCLUDES and setting the cache variable VAR
3031 ac_fn_c_check_header_mongrel
()
3033 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3034 if eval \
${$3+:} false
; then :
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3036 $as_echo_n "checking for $2... " >&6; }
3037 if eval \
${$3+:} false
; then :
3038 $as_echo_n "(cached) " >&6
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3042 $as_echo "$ac_res" >&6; }
3044 # Is the header compilable?
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3046 $as_echo_n "checking $2 usability... " >&6; }
3047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3052 if ac_fn_c_try_compile
"$LINENO"; then :
3053 ac_header_compiler
=yes
3055 ac_header_compiler
=no
3057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3059 $as_echo "$ac_header_compiler" >&6; }
3061 # Is the header present?
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3063 $as_echo_n "checking $2 presence... " >&6; }
3064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3068 if ac_fn_c_try_cpp
"$LINENO"; then :
3069 ac_header_preproc
=yes
3071 ac_header_preproc
=no
3073 rm -f conftest.err conftest.i conftest.
$ac_ext
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3075 $as_echo "$ac_header_preproc" >&6; }
3077 # So? What about this header?
3078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3081 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3083 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3087 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3089 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3091 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3093 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3095 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3099 $as_echo_n "checking for $2... " >&6; }
3100 if eval \
${$3+:} false
; then :
3101 $as_echo_n "(cached) " >&6
3103 eval "$3=\$ac_header_compiler"
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3107 $as_echo "$ac_res" >&6; }
3109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3111 } # ac_fn_c_check_header_mongrel
3113 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3114 # -------------------------------------------
3115 # Tests whether TYPE exists after having included INCLUDES, setting cache
3116 # variable VAR accordingly.
3117 ac_fn_c_check_type
()
3119 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3121 $as_echo_n "checking for $2... " >&6; }
3122 if eval \
${$3+:} false
; then :
3123 $as_echo_n "(cached) " >&6
3126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3138 if ac_fn_c_try_compile
"$LINENO"; then :
3139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3151 if ac_fn_c_try_compile
"$LINENO"; then :
3156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3162 $as_echo "$ac_res" >&6; }
3163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3165 } # ac_fn_c_check_type
3167 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3168 # ----------------------------------------------------
3169 # Tries to find if the field MEMBER exists in type AGGR, after including
3170 # INCLUDES, setting cache variable VAR accordingly.
3171 ac_fn_c_check_member
()
3173 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3175 $as_echo_n "checking for $2.$3... " >&6; }
3176 if eval \
${$4+:} false
; then :
3177 $as_echo_n "(cached) " >&6
3179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3192 if ac_fn_c_try_compile
"$LINENO"; then :
3195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3202 if (sizeof ac_aggr.$3)
3208 if ac_fn_c_try_compile
"$LINENO"; then :
3213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3219 $as_echo "$ac_res" >&6; }
3220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3222 } # ac_fn_c_check_member
3224 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3225 # ---------------------------------------------
3226 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3228 ac_fn_c_check_decl
()
3230 ac_save_ac_compile
="$ac_compile"
3231 if test -n "$ac_compile_for_check_decl"; then
3232 ac_compile
="$ac_compile_for_check_decl"
3234 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3235 as_decl_name
=`echo $2|sed 's/ *(.*//'`
3236 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3238 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3239 if eval \
${$3+:} false
; then :
3240 $as_echo_n "(cached) " >&6
3242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3248 #ifndef $as_decl_name
3250 (void) $as_decl_use;
3252 (void) $as_decl_name;
3260 if ac_fn_c_try_compile
"$LINENO"; then :
3265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3269 $as_echo "$ac_res" >&6; }
3270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3271 ac_compile
="$ac_save_ac_compile"
3273 } # ac_fn_c_check_decl
3275 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3276 # --------------------------------------------
3277 # Tries to find the compile-time value of EXPR in a program that includes
3278 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3280 ac_fn_c_compute_int
()
3282 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3283 if test "$cross_compiling" = yes; then
3284 # Depending upon the size, compute the lo and hi bounds.
3285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3291 static int test_array [1 - 2 * !(($2) >= 0)];
3293 return test_array [0];
3299 if ac_fn_c_try_compile
"$LINENO"; then :
3302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3308 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3310 return test_array [0];
3316 if ac_fn_c_try_compile
"$LINENO"; then :
3317 ac_hi
=$ac_mid; break
3319 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3320 if test $ac_lo -le $ac_mid; then
3324 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3335 static int test_array [1 - 2 * !(($2) < 0)];
3337 return test_array [0];
3343 if ac_fn_c_try_compile
"$LINENO"; then :
3346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3352 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3354 return test_array [0];
3360 if ac_fn_c_try_compile
"$LINENO"; then :
3361 ac_lo
=$ac_mid; break
3363 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3364 if test $ac_mid -le $ac_hi; then
3368 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3378 # Binary search between lo and hi bounds.
3379 while test "x$ac_lo" != "x$ac_hi"; do
3380 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3387 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3389 return test_array [0];
3395 if ac_fn_c_try_compile
"$LINENO"; then :
3398 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3403 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3410 static long int longval () { return $2; }
3411 static unsigned long int ulongval () { return $2; }
3418 FILE *f = fopen ("conftest.val", "w");
3423 long int i = longval ();
3426 fprintf (f, "%ld", i);
3430 unsigned long int i = ulongval ();
3433 fprintf (f, "%lu", i);
3435 /* Do not output a trailing newline, as this causes \r\n confusion
3436 on some platforms. */
3437 return ferror (f) || fclose (f) != 0;
3443 if ac_fn_c_try_run
"$LINENO"; then :
3444 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3454 as_fn_set_status
$ac_retval
3456 } # ac_fn_c_compute_int
3457 cat >config.log
<<_ACEOF
3458 This file contains any messages produced by compilers while
3459 running configure, to aid debugging if configure makes a mistake.
3461 It was created by libgnu $as_me UNUSED-VERSION, which was
3462 generated by GNU Autoconf 2.69. Invocation command line was
3474 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3475 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3476 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3477 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3478 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3480 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3481 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3483 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3484 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3485 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3486 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3487 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3488 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3489 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir
=.
3498 $as_echo "PATH: $as_dir"
3514 # Keep a trace of the command line.
3515 # Strip out --no-create and --no-recursion so they do not pile up.
3516 # Strip out --silent because we don't want to record it for future runs.
3517 # Also quote any args containing shell meta-characters.
3518 # Make two passes to allow for proper duplicate-argument suppression.
3522 ac_must_keep_next
=false
3528 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3529 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3530 |
-silent |
--silent |
--silen |
--sile |
--sil)
3533 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3536 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3538 as_fn_append ac_configure_args1
" '$ac_arg'"
3539 if test $ac_must_keep_next = true
; then
3540 ac_must_keep_next
=false
# Got value, back to normal.
3543 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3544 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3545 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3546 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3547 case "$ac_configure_args0 " in
3548 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3551 -* ) ac_must_keep_next
=true
;;
3554 as_fn_append ac_configure_args
" '$ac_arg'"
3559 { ac_configure_args0
=; unset ac_configure_args0
;}
3560 { ac_configure_args1
=; unset ac_configure_args1
;}
3562 # When interrupted or exit'd, cleanup temporary files, and complete
3563 # config.log. We remove comments because anyway the quotes in there
3564 # would cause problems or look ugly.
3565 # WARNING: Use '\'' to represent an apostrophe within the trap.
3566 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3567 trap 'exit_status=$?
3568 # Save into config.log some information that might help in debugging.
3572 $as_echo "## ---------------- ##
3573 ## Cache variables. ##
3574 ## ---------------- ##"
3576 # The following way of writing the cache mishandles newlines in values,
3578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3579 eval ac_val=\$$ac_var
3583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3584 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3587 _ | IFS | as_nl) ;; #(
3588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3589 *) { eval $ac_var=; unset $ac_var;} ;;
3594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3595 *${as_nl}ac_space=\ *)
3597 "s/'\''/'\''\\\\'\'''\''/g;
3598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3608 $as_echo "## ----------------- ##
3609 ## Output variables. ##
3610 ## ----------------- ##"
3612 for ac_var in $ac_subst_vars
3614 eval ac_val=\$$ac_var
3616 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3618 $as_echo "$ac_var='\''$ac_val'\''"
3622 if test -n "$ac_subst_files"; then
3623 $as_echo "## ------------------- ##
3624 ## File substitutions. ##
3625 ## ------------------- ##"
3627 for ac_var
in $ac_subst_files
3629 eval ac_val
=\$
$ac_var
3631 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3633 $as_echo "$ac_var='\''$ac_val'\''"
3638 if test -s confdefs.h; then
3639 $as_echo "## ----------- ##
3646 test "$ac_signal" != 0 &&
3647 $as_echo "$as_me: caught signal $ac_signal"
3648 $as_echo "$as_me: exit $exit_status"
3650 rm -f core *.core core.conftest.* &&
3651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3654 for ac_signal
in 1 2 13 15; do
3655 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3660 rm -f -r conftest
* confdefs.h
3662 $as_echo "/* confdefs.h */" > confdefs.h
3664 # Predefined preprocessor variables.
3666 cat >>confdefs.h
<<_ACEOF
3667 #define PACKAGE_NAME "$PACKAGE_NAME"
3670 cat >>confdefs.h
<<_ACEOF
3671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3674 cat >>confdefs.h
<<_ACEOF
3675 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3678 cat >>confdefs.h
<<_ACEOF
3679 #define PACKAGE_STRING "$PACKAGE_STRING"
3682 cat >>confdefs.h
<<_ACEOF
3683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3686 cat >>confdefs.h
<<_ACEOF
3687 #define PACKAGE_URL "$PACKAGE_URL"
3691 # Let the site file select an alternate cache file if it wants to.
3692 # Prefer an explicitly selected file to automatically selected ones.
3695 if test -n "$CONFIG_SITE"; then
3696 # We do not want a PATH search for config.site.
3697 case $CONFIG_SITE in #((
3698 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3699 */*) ac_site_file1
=$CONFIG_SITE;;
3700 *) ac_site_file1
=.
/$CONFIG_SITE;;
3702 elif test "x$prefix" != xNONE
; then
3703 ac_site_file1
=$prefix/share
/config.site
3704 ac_site_file2
=$prefix/etc
/config.site
3706 ac_site_file1
=$ac_default_prefix/share
/config.site
3707 ac_site_file2
=$ac_default_prefix/etc
/config.site
3709 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3711 test "x$ac_site_file" = xNONE
&& continue
3712 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3714 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3715 sed 's/^/| /' "$ac_site_file" >&5
3717 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3719 as_fn_error $?
"failed to load site script $ac_site_file
3720 See \`config.log' for more details" "$LINENO" 5; }
3724 if test -r "$cache_file"; then
3725 # Some versions of bash will fail to source /dev/null (special files
3726 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3727 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3729 $as_echo "$as_me: loading cache $cache_file" >&6;}
3731 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3732 *) .
"./$cache_file";;
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3737 $as_echo "$as_me: creating cache $cache_file" >&6;}
3741 as_fn_append ac_header_list
" wchar.h"
3742 as_fn_append ac_header_list
" minix/config.h"
3743 as_fn_append ac_header_list
" sys/socket.h"
3744 as_fn_append ac_header_list
" arpa/inet.h"
3745 as_fn_append ac_header_list
" features.h"
3746 as_fn_append ac_func_list
" btowc"
3747 as_fn_append ac_func_list
" canonicalize_file_name"
3748 as_fn_append ac_func_list
" faccessat"
3749 as_fn_append ac_func_list
" realpath"
3750 as_fn_append ac_header_list
" sys/param.h"
3751 as_fn_append ac_header_list
" unistd.h"
3752 as_fn_append ac_func_list
" chown"
3753 as_fn_append ac_func_list
" fchown"
3754 as_fn_append ac_func_list
" _set_invalid_parameter_handler"
3755 as_fn_append ac_func_list
" fchdir"
3756 as_fn_append ac_header_list
" dirent.h"
3757 as_fn_append ac_func_list
" fcntl"
3758 as_fn_append ac_func_list
" symlink"
3759 as_fn_append ac_func_list
" fdopendir"
3760 as_fn_append ac_func_list
" mempcpy"
3761 as_fn_append ac_header_list
" fnmatch.h"
3762 as_fn_append ac_func_list
" fnmatch"
3763 as_fn_append ac_func_list
" mbsrtowcs"
3764 gl_fnmatch_required
=GNU
3765 as_fn_append ac_header_list
" sys/stat.h"
3766 as_fn_append ac_func_list
" fstatat"
3767 as_fn_append ac_func_list
" getdelim"
3768 as_fn_append ac_func_list
" getdtablesize"
3769 as_fn_append ac_func_list
" getlogin_r"
3770 as_fn_append ac_func_list
" getprogname"
3771 as_fn_append ac_func_list
" getexecname"
3772 as_fn_append ac_func_list
" getrandom"
3773 as_fn_append ac_header_list
" sys/time.h"
3774 as_fn_append ac_func_list
" gettimeofday"
3775 as_fn_append ac_header_list
" glob.h"
3776 as_fn_append ac_func_list
" glob"
3777 as_fn_append ac_func_list
" glob_pattern_p"
3778 as_fn_append ac_func_list
" getpwnam_r"
3779 as_fn_append ac_header_list
" threads.h"
3780 as_fn_append ac_header_list
" netdb.h"
3781 as_fn_append ac_header_list
" netinet/in.h"
3782 as_fn_append ac_header_list
" limits.h"
3783 as_fn_append ac_header_list
" inttypes.h"
3784 as_fn_append ac_header_list
" sys/types.h"
3785 as_fn_append ac_header_list
" stdint.h"
3786 as_fn_append ac_func_list
" isblank"
3787 as_fn_append ac_header_list
" xlocale.h"
3788 as_fn_append ac_func_list
" lstat"
3789 as_fn_append ac_header_list
" math.h"
3790 as_fn_append ac_func_list
" mbsinit"
3791 as_fn_append ac_func_list
" mbrtowc"
3792 as_fn_append ac_header_list
" sys/mman.h"
3793 as_fn_append ac_func_list
" mprotect"
3794 as_fn_append ac_func_list
" mkostemp"
3795 as_fn_append ac_func_list
" openat"
3796 as_fn_append ac_func_list
" pipe"
3797 as_fn_append ac_func_list
" readlink"
3798 as_fn_append ac_func_list
" link"
3799 as_fn_append ac_header_list
" sys/select.h"
3800 as_fn_append ac_func_list
" setenv"
3801 as_fn_append ac_func_list
" strerror_r"
3802 as_fn_append ac_func_list
" __xpg_strerror_r"
3803 as_fn_append ac_func_list
" catgets"
3804 as_fn_append ac_func_list
" snprintf"
3805 as_fn_append ac_header_list
" strings.h"
3806 as_fn_append ac_header_list
" sys/random.h"
3807 as_fn_append ac_header_list
" sys/uio.h"
3808 as_fn_append ac_header_list
" sys/wait.h"
3809 as_fn_append ac_func_list
" localtime_r"
3810 as_fn_append ac_header_list
" crtdefs.h"
3811 as_fn_append ac_func_list
" iswcntrl"
3812 as_fn_append ac_header_list
" wctype.h"
3813 as_fn_append ac_func_list
" wmempcpy"
3814 # Check that the precious variables saved in the cache have kept the same
3816 ac_cache_corrupted
=false
3817 for ac_var
in $ac_precious_vars; do
3818 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3819 eval ac_new_set
=\
$ac_env_${ac_var}_set
3820 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3821 eval ac_new_val
=\
$ac_env_${ac_var}_value
3822 case $ac_old_set,$ac_new_set in
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3825 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3826 ac_cache_corrupted
=: ;;
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3829 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3830 ac_cache_corrupted
=: ;;
3833 if test "x$ac_old_val" != "x$ac_new_val"; then
3834 # differences in whitespace do not lead to failure.
3835 ac_old_val_w
=`echo x $ac_old_val`
3836 ac_new_val_w
=`echo x $ac_new_val`
3837 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3839 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3840 ac_cache_corrupted
=:
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3843 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3844 eval $ac_var=\
$ac_old_val
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3847 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3849 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3852 # Pass precious variables to config.status.
3853 if test "$ac_new_set" = set; then
3855 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3856 *) ac_arg
=$ac_var=$ac_new_val ;;
3858 case " $ac_configure_args " in
3859 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3860 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3864 if $ac_cache_corrupted; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3868 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3869 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3871 ## -------------------- ##
3872 ## Main body of script. ##
3873 ## -------------------- ##
3876 ac_cpp
='$CPP $CPPFLAGS'
3877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3886 ac_config_headers
="$ac_config_headers config.h:config.in"
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3892 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3893 # Check whether --enable-maintainer-mode was given.
3894 if test "${enable_maintainer_mode+set}" = set; then :
3895 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3897 USE_MAINTAINER_MODE
=no
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3901 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3902 if test $USE_MAINTAINER_MODE = yes; then
3903 MAINTAINER_MODE_TRUE
=
3904 MAINTAINER_MODE_FALSE
='#'
3906 MAINTAINER_MODE_TRUE
='#'
3907 MAINTAINER_MODE_FALSE
=
3910 MAINT
=$MAINTAINER_MODE_TRUE
3915 ac_cpp
='$CPP $CPPFLAGS'
3916 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3921 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_CC+:} false
; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC
="$CC" # Let the user override the test.
3930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir
=.
3935 for ac_exec_ext
in '' $ac_executable_extensions; do
3936 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 if test -n "$CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 $as_echo "$CC" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3958 if test -z "$ac_cv_prog_CC"; then
3960 # Extract the first word of "gcc", so it can be a program name with args.
3961 set dummy gcc
; ac_word
=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3965 $as_echo_n "(cached) " >&6
3967 if test -n "$ac_ct_CC"; then
3968 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir
=.
3975 for ac_exec_ext
in '' $ac_executable_extensions; do
3976 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_CC
="gcc"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3988 if test -n "$ac_ct_CC"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3990 $as_echo "$ac_ct_CC" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3996 if test "x$ac_ct_CC" = x
; then
3999 case $cross_compiling:$ac_tool_warned in
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003 ac_tool_warned
=yes ;;
4011 if test -z "$CC"; then
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4014 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if ${ac_cv_prog_CC+:} false
; then :
4018 $as_echo_n "(cached) " >&6
4020 if test -n "$CC"; then
4021 ac_cv_prog_CC
="$CC" # Let the user override the test.
4023 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4027 test -z "$as_dir" && as_dir
=.
4028 for ac_exec_ext
in '' $ac_executable_extensions; do
4029 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 if test -n "$CC"; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043 $as_echo "$CC" >&6; }
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4052 if test -z "$CC"; then
4053 # Extract the first word of "cc", so it can be a program name with args.
4054 set dummy cc
; ac_word
=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_CC+:} false
; then :
4058 $as_echo_n "(cached) " >&6
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC
="$CC" # Let the user override the test.
4064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4068 test -z "$as_dir" && as_dir
=.
4069 for ac_exec_ext
in '' $ac_executable_extensions; do
4070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4072 ac_prog_rejected
=yes
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 if test $ac_prog_rejected = yes; then
4084 # We found a bogon in the path, so make sure we never use it.
4085 set dummy
$ac_cv_prog_CC
4087 if test $# != 0; then
4088 # We chose a different compiler from the bogus one.
4089 # However, it has the same basename, so the bogon will be chosen
4090 # first if we set CC to just the basename; use the full file name.
4092 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4098 if test -n "$CC"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100 $as_echo "$CC" >&6; }
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4108 if test -z "$CC"; then
4109 if test -n "$ac_tool_prefix"; then
4110 for ac_prog
in cl.exe
4112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4113 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if ${ac_cv_prog_CC+:} false
; then :
4117 $as_echo_n "(cached) " >&6
4119 if test -n "$CC"; then
4120 ac_cv_prog_CC
="$CC" # Let the user override the test.
4122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4126 test -z "$as_dir" && as_dir
=.
4127 for ac_exec_ext
in '' $ac_executable_extensions; do
4128 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 if test -n "$CC"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4142 $as_echo "$CC" >&6; }
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4149 test -n "$CC" && break
4152 if test -z "$CC"; then
4154 for ac_prog
in cl.exe
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy
$ac_prog; ac_word
=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4161 $as_echo_n "(cached) " >&6
4163 if test -n "$ac_ct_CC"; then
4164 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir
=.
4171 for ac_exec_ext
in '' $ac_executable_extensions; do
4172 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_CC
="$ac_prog"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4184 if test -n "$ac_ct_CC"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4186 $as_echo "$ac_ct_CC" >&6; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4193 test -n "$ac_ct_CC" && break
4196 if test "x$ac_ct_CC" = x
; then
4199 case $cross_compiling:$ac_tool_warned in
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203 ac_tool_warned
=yes ;;
4210 if test -z "$CC"; then
4211 if test -n "$ac_tool_prefix"; then
4212 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4213 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if ${ac_cv_prog_CC+:} false
; then :
4217 $as_echo_n "(cached) " >&6
4219 if test -n "$CC"; then
4220 ac_cv_prog_CC
="$CC" # Let the user override the test.
4222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4226 test -z "$as_dir" && as_dir
=.
4227 for ac_exec_ext
in '' $ac_executable_extensions; do
4228 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4229 ac_cv_prog_CC
="${ac_tool_prefix}clang"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 if test -n "$CC"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4242 $as_echo "$CC" >&6; }
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4250 if test -z "$ac_cv_prog_CC"; then
4252 # Extract the first word of "clang", so it can be a program name with args.
4253 set dummy clang
; ac_word
=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4257 $as_echo_n "(cached) " >&6
4259 if test -n "$ac_ct_CC"; then
4260 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4266 test -z "$as_dir" && as_dir
=.
4267 for ac_exec_ext
in '' $ac_executable_extensions; do
4268 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_ac_ct_CC
="clang"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4280 if test -n "$ac_ct_CC"; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4282 $as_echo "$ac_ct_CC" >&6; }
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4288 if test "x$ac_ct_CC" = x
; then
4291 case $cross_compiling:$ac_tool_warned in
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4295 ac_tool_warned
=yes ;;
4306 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308 as_fn_error $?
"no acceptable C compiler found in \$PATH
4309 See \`config.log' for more details" "$LINENO" 5; }
4311 # Provide some information about the compiler.
4312 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4315 for ac_option
in --version -v -V -qversion -version; do
4316 { { ac_try
="$ac_compiler $ac_option >&5"
4318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4325 if test -s conftest.err; then
4327 ... rest of stderr output deleted ...
4328 10q' conftest.err >conftest.er1
4329 cat conftest.er1 >&5
4331 rm -f conftest.er1 conftest.err
4332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333 test $ac_status = 0; }
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4347 ac_clean_files_save=$ac_clean_files
4348 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4349 # Try to create an executable without -o first, disregard a.out.
4350 # It will help us diagnose broken compilers, and finding out an intuition
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4353 $as_echo_n "checking whether the C compiler works... " >&6; }
4354 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4356 # The possible output files:
4357 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4360 for ac_file in $ac_files
4363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4364 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4369 if { { ac_try="$ac_link_default"
4371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4372 *) ac_try_echo
=$ac_try;;
4374 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376 (eval "$ac_link_default") 2>&5
4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; }; then :
4380 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4381 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4382 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4383 # so that the user can short-circuit this test for compilers unknown to
4385 for ac_file
in $ac_files ''
4387 test -f "$ac_file" ||
continue
4389 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4392 # We found the default executable, but exeext='' is most
4396 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4398 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4400 # We set ac_cv_exeext here because the later test for it is not
4401 # safe: cross compilers may not add the suffix if given an `-o'
4402 # argument, so we may need to know it at that point already.
4403 # Even if this section looks crufty: it has the advantage of
4410 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4415 if test -z "$ac_file"; then :
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4418 $as_echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.
$ac_ext >&5
4421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4423 as_fn_error
77 "C compiler cannot create executables
4424 See \`config.log' for more details" "$LINENO" 5; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4427 $as_echo "yes" >&6; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4430 $as_echo_n "checking for C compiler default output file name... " >&6; }
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4432 $as_echo "$ac_file" >&6; }
4433 ac_exeext
=$ac_cv_exeext
4435 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4436 ac_clean_files
=$ac_clean_files_save
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4438 $as_echo_n "checking for suffix of executables... " >&6; }
4439 if { { ac_try
="$ac_link"
4441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_link") 2>&5
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }; then :
4450 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4451 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4452 # work properly (i.e., refer to `conftest.exe'), while it won't with
4454 for ac_file
in conftest.exe conftest conftest.
*; do
4455 test -f "$ac_file" ||
continue
4457 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4458 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4466 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4467 See \`config.log' for more details" "$LINENO" 5; }
4469 rm -f conftest conftest
$ac_cv_exeext
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4471 $as_echo "$ac_cv_exeext" >&6; }
4473 rm -f conftest.
$ac_ext
4474 EXEEXT
=$ac_cv_exeext
4476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4482 FILE *f = fopen ("conftest.out", "w");
4483 return ferror (f) || fclose (f) != 0;
4489 ac_clean_files
="$ac_clean_files conftest.out"
4490 # Check that the compiler produces executables we can run. If not, either
4491 # the compiler is broken, or we cross compile.
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4493 $as_echo_n "checking whether we are cross compiling... " >&6; }
4494 if test "$cross_compiling" != yes; then
4495 { { ac_try
="$ac_link"
4497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_link") 2>&5
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }
4506 if { ac_try='./conftest$ac_cv_exeext'
4507 { { case "(($ac_try" in
4508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4509 *) ac_try_echo
=$ac_try;;
4511 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512 $as_echo "$ac_try_echo"; } >&5
4513 (eval "$ac_try") 2>&5
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }; }; then
4519 if test "$cross_compiling" = maybe
; then
4522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4524 as_fn_error $?
"cannot run C compiled programs.
4525 If you meant to cross compile, use \`--host'.
4526 See \`config.log' for more details" "$LINENO" 5; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4531 $as_echo "$cross_compiling" >&6; }
4533 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4534 ac_clean_files
=$ac_clean_files_save
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4536 $as_echo_n "checking for suffix of object files... " >&6; }
4537 if ${ac_cv_objext+:} false
; then :
4538 $as_echo_n "(cached) " >&6
4540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4551 rm -f conftest.o conftest.obj
4552 if { { ac_try
="$ac_compile"
4554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 $as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_compile") 2>&5
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; then :
4563 for ac_file in conftest.o conftest.obj conftest.*; do
4564 test -f "$ac_file" || continue;
4566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4567 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4572 $as_echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4577 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4578 See \
`config.log' for more details" "$LINENO" 5; }
4580 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4583 $as_echo "$ac_cv_objext" >&6; }
4584 OBJEXT=$ac_cv_objext
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4587 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4588 if ${ac_cv_c_compiler_gnu+:} false; then :
4589 $as_echo_n "(cached) " >&6
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4605 if ac_fn_c_try_compile "$LINENO"; then :
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4615 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4616 if test $ac_compiler_gnu = yes; then
4621 ac_test_CFLAGS=${CFLAGS+set}
4622 ac_save_CFLAGS=$CFLAGS
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4624 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4625 if ${ac_cv_prog_cc_g+:} false; then :
4626 $as_echo_n "(cached) " >&6
4628 ac_save_c_werror_flag=$ac_c_werror_flag
4629 ac_c_werror_flag=yes
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4643 if ac_fn_c_try_compile "$LINENO"; then :
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4658 if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_c_werror_flag=$ac_save_c_werror_flag
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4674 if ac_fn_c_try_compile "$LINENO"; then :
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_c_werror_flag=$ac_save_c_werror_flag
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4685 $as_echo "$ac_cv_prog_cc_g" >&6; }
4686 if test "$ac_test_CFLAGS" = set; then
4687 CFLAGS=$ac_save_CFLAGS
4688 elif test $ac_cv_prog_cc_g = yes; then
4689 if test "$GCC" = yes; then
4695 if test "$GCC" = yes; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4702 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
4703 if ${ac_cv_prog_cc_c11+:} false; then :
4704 $as_echo_n "(cached) " >&6
4706 ac_cv_prog_cc_c11=no
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4711 #include <stdbool.h>
4717 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4718 #define debug(...) fprintf (stderr, __VA_ARGS__)
4719 #define showlist(...) puts (#__VA_ARGS__)
4720 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4722 test_varargs_macros (void)
4727 debug ("X = %d\n", x);
4728 showlist (The first, second, and third items.);
4729 report (x>y, "x is %d but y is %d", x, y);
4732 // Check long long types.
4733 #define BIG64 18446744073709551615ull
4734 #define BIG32 4294967295ul
4735 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4737 your preprocessor is broken;
4741 your preprocessor is broken;
4743 static long long int bignum = -9223372036854775807LL;
4744 static unsigned long long int ubignum = BIG64;
4746 struct incomplete_array
4754 const wchar_t *name;
4758 typedef const char *ccp;
4761 test_restrict (ccp restrict text)
4763 // See if C++-style comments work.
4764 // Iterate through items via the restricted pointer.
4765 // Also check for declarations in for loops.
4766 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4771 // Check varargs and va_copy.
4773 test_varargs (const char *format, ...)
4776 va_start (args, format);
4778 va_copy (args_copy, args);
4780 const char *str = "";
4789 str = va_arg (args_copy, const char *);
4792 number = va_arg (args_copy, int);
4795 fnumber = va_arg (args_copy, double);
4804 return *str && number && fnumber;
4807 char _Alignas (double) aligned_as_double;
4808 char _Alignas (0) no_special_alignment;
4809 extern char aligned_as_int;
4810 char _Alignas (0) _Alignas (int) aligned_as_int;
4815 int_alignment = _Alignof (int),
4816 int_array_alignment = _Alignof (int[100]),
4817 char_alignment = _Alignof (char)
4819 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4822 int _Noreturn does_not_return (void) { for (;;) continue; }
4824 // Check _Static_assert.
4825 struct test_static_assert
4828 _Static_assert (sizeof (int) <= sizeof (long int),
4829 "_Static_assert does not work in struct");
4833 // Check UTF-8 literals.
4834 #define u8 syntax error!
4835 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4837 // Check duplicate typedefs.
4838 typedef long *long_ptr;
4839 typedef long int *long_ptr;
4840 typedef long_ptr long_ptr;
4842 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4846 struct { int i; int j; };
4847 struct { int k; long int l; } w;
4857 _Bool success = false;
4860 if (test_restrict ("String literal") == 0)
4862 char *restrict newvar = "Another string";
4865 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4866 test_varargs_macros ();
4868 // Check flexible array members.
4869 struct incomplete_array *ia =
4870 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4872 for (int i = 0; i < ia->datasize; ++i)
4873 ia->data[i] = i * 1.234;
4875 // Check named initializers.
4876 struct named_init ni = {
4878 .name = L"Test wide string",
4879 .average = 543.34343,
4884 int dynamic_array[ni.number];
4885 dynamic_array[ni.number - 1] = 543;
4887 // work around unused variable warnings
4888 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4889 || dynamic_array[ni.number - 1] != 543);
4893 _Static_assert ((offsetof (struct anonymous, i)
4894 == offsetof (struct anonymous, w.k)),
4895 "Anonymous union alignment botch");
4901 for ac_arg in '' -std=gnu11
4903 CC="$ac_save_CC $ac_arg"
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905 ac_cv_prog_cc_c11=$ac_arg
4907 rm -f core conftest.err conftest.$ac_objext
4908 test "x$ac_cv_prog_cc_c11" != "xno" && break
4910 rm -f conftest.$ac_ext
4915 ac_prog_cc_stdc_options=
4916 case "x$ac_cv_prog_cc_c11" in
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4919 $as_echo "none needed" >&6; } ;;
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4922 $as_echo "unsupported" >&6; } ;;
4924 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4925 CC=$CC$ac_prog_cc_stdc_options
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4927 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
4929 if test "x$ac_cv_prog_cc_c11" != xno; then :
4931 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4934 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
4935 if ${ac_cv_prog_cc_c99+:} false; then :
4936 $as_echo_n "(cached) " >&6
4938 ac_cv_prog_cc_c99=no
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4943 #include <stdbool.h>
4949 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4950 #define debug(...) fprintf (stderr, __VA_ARGS__)
4951 #define showlist(...) puts (#__VA_ARGS__)
4952 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4954 test_varargs_macros (void)
4959 debug ("X = %d\n", x);
4960 showlist (The first, second, and third items.);
4961 report (x>y, "x is %d but y is %d", x, y);
4964 // Check long long types.
4965 #define BIG64 18446744073709551615ull
4966 #define BIG32 4294967295ul
4967 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4969 your preprocessor is broken;
4973 your preprocessor is broken;
4975 static long long int bignum = -9223372036854775807LL;
4976 static unsigned long long int ubignum = BIG64;
4978 struct incomplete_array
4986 const wchar_t *name;
4990 typedef const char *ccp;
4993 test_restrict (ccp restrict text)
4995 // See if C++-style comments work.
4996 // Iterate through items via the restricted pointer.
4997 // Also check for declarations in for loops.
4998 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5003 // Check varargs and va_copy.
5005 test_varargs (const char *format, ...)
5008 va_start (args, format);
5010 va_copy (args_copy, args);
5012 const char *str = "";
5021 str = va_arg (args_copy, const char *);
5024 number = va_arg (args_copy, int);
5027 fnumber = va_arg (args_copy, double);
5036 return *str && number && fnumber;
5043 _Bool success = false;
5046 if (test_restrict ("String literal") == 0)
5048 char *restrict newvar = "Another string";
5051 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5052 test_varargs_macros ();
5054 // Check flexible array members.
5055 struct incomplete_array *ia =
5056 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5058 for (int i = 0; i < ia->datasize; ++i)
5059 ia->data[i] = i * 1.234;
5061 // Check named initializers.
5062 struct named_init ni = {
5064 .name = L"Test wide string",
5065 .average = 543.34343,
5070 int dynamic_array[ni.number];
5071 dynamic_array[ni.number - 1] = 543;
5073 // work around unused variable warnings
5074 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5075 || dynamic_array[ni.number - 1] != 543);
5081 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5083 CC="$ac_save_CC $ac_arg"
5084 if ac_fn_c_try_compile "$LINENO"; then :
5085 ac_cv_prog_cc_c99=$ac_arg
5087 rm -f core conftest.err conftest.$ac_objext
5088 test "x$ac_cv_prog_cc_c99" != "xno" && break
5090 rm -f conftest.$ac_ext
5095 ac_prog_cc_stdc_options=
5096 case "x$ac_cv_prog_cc_c99" in
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5099 $as_echo "none needed" >&6; } ;;
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5102 $as_echo "unsupported" >&6; } ;;
5104 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5105 CC=$CC$ac_prog_cc_stdc_options
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5107 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5109 if test "x$ac_cv_prog_cc_c99" != xno; then :
5111 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5114 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
5115 if ${ac_cv_prog_cc_c89+:} false; then :
5116 $as_echo_n "(cached) " >&6
5118 ac_cv_prog_cc_c89=no
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5126 struct buf { int x; };
5127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5128 static char *e (p, i)
5134 static char *f (char * (*g) (char **, int), char **p, ...)
5139 s = g (p, va_arg (v,int));
5144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5145 function prototypes and stuff, but not '\xHH' hex character constants.
5146 These don't provoke an error unfortunately, instead are silently treated
5147 as 'x'. The following induces an error, until -std is added to get
5148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5149 array size at least. It's necessary to write '\x00'==0 to get something
5150 that's true only with -std. */
5151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5154 inside strings and character constants. */
5156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5158 int test (int i, double x);
5159 struct s1 {int (*f) (int a);};
5160 struct s2 {int (*f) (double a);};
5161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5175 CC="$ac_save_CC $ac_arg"
5176 if ac_fn_c_try_compile "$LINENO"; then :
5177 ac_cv_prog_cc_c89=$ac_arg
5179 rm -f core conftest.err conftest.$ac_objext
5180 test "x$ac_cv_prog_cc_c89" != "xno" && break
5182 rm -f conftest.$ac_ext
5187 ac_prog_cc_stdc_options=
5188 case "x$ac_cv_prog_cc_c89" in
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5191 $as_echo "none needed" >&6; } ;;
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5194 $as_echo "unsupported" >&6; } ;;
5196 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5197 CC=$CC$ac_prog_cc_stdc_options
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5201 if test "x$ac_cv_prog_cc_c89" != xno; then :
5203 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5206 ac_cv_prog_cc_stdc=no
5214 ac_cpp='$CPP $CPPFLAGS'
5215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5221 $as_echo_n "checking whether the compiler is clang... " >&6; }
5222 if ${gl_cv_compiler_clang+:} false; then :
5223 $as_echo_n "(cached) " >&6
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5241 if ac_fn_c_try_compile "$LINENO"; then :
5242 gl_cv_compiler_clang=no
5244 gl_cv_compiler_clang=yes
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5250 $as_echo "$gl_cv_compiler_clang" >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5254 $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
5255 if ${gl_cv_compiler_check_decl_option+:} false; then :
5256 $as_echo_n "(cached) " >&6
5258 if test $gl_cv_compiler_clang = yes; then
5259 save_ac_compile="$ac_compile"
5260 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5275 gl_cv_compiler_check_decl_option=none
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 ac_compile="$save_ac_compile"
5280 gl_cv_compiler_check_decl_option=none
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5285 $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
5286 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5287 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5289 ac_compile_for_check_decl="$ac_compile"
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5301 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5302 # On Suns, sometimes $CPP names a directory.
5303 if test -n "$CPP" && test -d "$CPP"; then
5306 if test -z "$CPP"; then
5307 if ${ac_cv_prog_CPP+:} false; then :
5308 $as_echo_n "(cached) " >&6
5310 # Double quotes because CPP needs to be expanded
5311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5314 for ac_c_preproc_warn_flag in '' yes
5316 # Use a header file that comes with gcc, so configuring glibc
5317 # with a fresh cross-compiler works.
5318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5319 # <limits.h> exists even on freestanding compilers.
5320 # On the NeXT, cc -E runs the code through the compiler's parser,
5321 # not just through cpp. "Syntax error" is here to catch this case.
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5325 # include <limits.h>
5327 # include <assert.h>
5331 if ac_fn_c_try_cpp "$LINENO"; then :
5334 # Broken: fails on valid input.
5337 rm -f conftest.err conftest.i conftest.$ac_ext
5339 # OK, works on sane cases. Now check whether nonexistent headers
5340 # can be detected and how.
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 #include <ac_nonexistent.h>
5345 if ac_fn_c_try_cpp "$LINENO"; then :
5346 # Broken: success on invalid input.
5349 # Passes both tests.
5353 rm -f conftest.err conftest.i conftest.$ac_ext
5356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5357 rm -f conftest.i conftest.err conftest.
$ac_ext
5358 if $ac_preproc_ok; then :
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5371 $as_echo "$CPP" >&6; }
5373 for ac_c_preproc_warn_flag
in '' yes
5375 # Use a header file that comes with gcc, so configuring glibc
5376 # with a fresh cross-compiler works.
5377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5378 # <limits.h> exists even on freestanding compilers.
5379 # On the NeXT, cc -E runs the code through the compiler's parser,
5380 # not just through cpp. "Syntax error" is here to catch this case.
5381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5384 # include <limits.h>
5386 # include <assert.h>
5390 if ac_fn_c_try_cpp
"$LINENO"; then :
5393 # Broken: fails on valid input.
5396 rm -f conftest.err conftest.i conftest.
$ac_ext
5398 # OK, works on sane cases. Now check whether nonexistent headers
5399 # can be detected and how.
5400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #include <ac_nonexistent.h>
5404 if ac_fn_c_try_cpp
"$LINENO"; then :
5405 # Broken: success on invalid input.
5408 # Passes both tests.
5412 rm -f conftest.err conftest.i conftest.
$ac_ext
5415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5416 rm -f conftest.i conftest.err conftest.
$ac_ext
5417 if $ac_preproc_ok; then :
5420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5422 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5423 See \`config.log' for more details" "$LINENO" 5; }
5427 ac_cpp
='$CPP $CPPFLAGS'
5428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5434 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5435 if ${ac_cv_path_GREP+:} false
; then :
5436 $as_echo_n "(cached) " >&6
5438 if test -z "$GREP"; then
5439 ac_path_GREP_found
=false
5440 # Loop through the user's path and test for each of PROGNAME-LIST
5441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5442 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5445 test -z "$as_dir" && as_dir
=.
5446 for ac_prog
in grep ggrep
; do
5447 for ac_exec_ext
in '' $ac_executable_extensions; do
5448 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5449 as_fn_executable_p
"$ac_path_GREP" ||
continue
5450 # Check for GNU ac_path_GREP and select it if it is found.
5451 # Check for GNU $ac_path_GREP
5452 case `"$ac_path_GREP" --version 2>&1` in
5454 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5457 $as_echo_n 0123456789 >"conftest.in"
5460 cat "conftest.in" "conftest.in" >"conftest.tmp"
5461 mv "conftest.tmp" "conftest.in"
5462 cp "conftest.in" "conftest.nl"
5463 $as_echo 'GREP' >> "conftest.nl"
5464 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5465 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5466 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5467 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5468 # Best one so far, save it but keep looking for a better one
5469 ac_cv_path_GREP
="$ac_path_GREP"
5470 ac_path_GREP_max
=$ac_count
5472 # 10*(2^10) chars as input seems more than enough
5473 test $ac_count -gt 10 && break
5475 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5478 $ac_path_GREP_found && break 3
5483 if test -z "$ac_cv_path_GREP"; then
5484 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5487 ac_cv_path_GREP
=$GREP
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5492 $as_echo "$ac_cv_path_GREP" >&6; }
5493 GREP
="$ac_cv_path_GREP"
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5497 $as_echo_n "checking for egrep... " >&6; }
5498 if ${ac_cv_path_EGREP+:} false
; then :
5499 $as_echo_n "(cached) " >&6
5501 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5502 then ac_cv_path_EGREP
="$GREP -E"
5504 if test -z "$EGREP"; then
5505 ac_path_EGREP_found
=false
5506 # Loop through the user's path and test for each of PROGNAME-LIST
5507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5508 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5511 test -z "$as_dir" && as_dir
=.
5512 for ac_prog
in egrep; do
5513 for ac_exec_ext
in '' $ac_executable_extensions; do
5514 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5515 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5516 # Check for GNU ac_path_EGREP and select it if it is found.
5517 # Check for GNU $ac_path_EGREP
5518 case `"$ac_path_EGREP" --version 2>&1` in
5520 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5523 $as_echo_n 0123456789 >"conftest.in"
5526 cat "conftest.in" "conftest.in" >"conftest.tmp"
5527 mv "conftest.tmp" "conftest.in"
5528 cp "conftest.in" "conftest.nl"
5529 $as_echo 'EGREP' >> "conftest.nl"
5530 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5531 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5532 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5533 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5534 # Best one so far, save it but keep looking for a better one
5535 ac_cv_path_EGREP
="$ac_path_EGREP"
5536 ac_path_EGREP_max
=$ac_count
5538 # 10*(2^10) chars as input seems more than enough
5539 test $ac_count -gt 10 && break
5541 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5544 $ac_path_EGREP_found && break 3
5549 if test -z "$ac_cv_path_EGREP"; then
5550 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5553 ac_cv_path_EGREP
=$EGREP
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5559 $as_echo "$ac_cv_path_EGREP" >&6; }
5560 EGREP
="$ac_cv_path_EGREP"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5564 $as_echo_n "checking for ANSI C header files... " >&6; }
5565 if ${ac_cv_header_stdc+:} false
; then :
5566 $as_echo_n "(cached) " >&6
5568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5583 if ac_fn_c_try_compile
"$LINENO"; then :
5584 ac_cv_header_stdc
=yes
5586 ac_cv_header_stdc
=no
5588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5590 if test $ac_cv_header_stdc = yes; then
5591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5598 $EGREP "memchr" >/dev
/null
2>&1; then :
5601 ac_cv_header_stdc
=no
5607 if test $ac_cv_header_stdc = yes; then
5608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5615 $EGREP "free" >/dev
/null
2>&1; then :
5618 ac_cv_header_stdc
=no
5624 if test $ac_cv_header_stdc = yes; then
5625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5626 if test "$cross_compiling" = yes; then :
5629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5633 #if ((' ' & 0x0FF) == 0x020)
5634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5637 # define ISLOWER(c) \
5638 (('a' <= (c) && (c) <= 'i') \
5639 || ('j' <= (c) && (c) <= 'r') \
5640 || ('s' <= (c) && (c) <= 'z'))
5641 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5649 for (i = 0; i < 256; i++)
5650 if (XOR (islower (i), ISLOWER (i))
5651 || toupper (i) != TOUPPER (i))
5656 if ac_fn_c_try_run
"$LINENO"; then :
5659 ac_cv_header_stdc
=no
5661 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5662 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5668 $as_echo "$ac_cv_header_stdc" >&6; }
5669 if test $ac_cv_header_stdc = yes; then
5671 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5675 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5676 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5677 inttypes.h stdint.h unistd.h
5679 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5680 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5682 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5683 cat >>confdefs.h
<<_ACEOF
5684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5695 for ac_header
in $ac_header_list
5697 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5698 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5700 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5701 cat >>confdefs.h
<<_ACEOF
5702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5718 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5719 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5720 $as_echo_n "(cached) " >&6
5722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5725 # define __EXTENSIONS__ 1
5726 $ac_includes_default
5735 if ac_fn_c_try_compile
"$LINENO"; then :
5736 ac_cv_safe_to_define___extensions__
=yes
5738 ac_cv_safe_to_define___extensions__
=no
5740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5743 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5746 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5747 if ${ac_cv_should_define__xopen_source+:} false
; then :
5748 $as_echo_n "(cached) " >&6
5750 ac_cv_should_define__xopen_source
=no
5751 if test $ac_cv_header_wchar_h = yes; then :
5752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5765 if ac_fn_c_try_compile
"$LINENO"; then :
5768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5771 #define _XOPEN_SOURCE 500
5782 if ac_fn_c_try_compile
"$LINENO"; then :
5783 ac_cv_should_define__xopen_source
=yes
5785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5791 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5793 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5795 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5797 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5799 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5801 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5803 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5805 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5807 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5809 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5811 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5813 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5815 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5817 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5819 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5821 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5823 if test $ac_cv_header_minix_config_h = yes; then :
5825 $as_echo "#define _MINIX 1" >>confdefs.h
5827 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5829 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5834 if test $ac_cv_safe_to_define___extensions__ = yes; then :
5835 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5838 if test $ac_cv_should_define__xopen_source = yes; then :
5839 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5843 # Needs to run before gl_EARLY so it can override AC_SYS_LARGEFILE included
5846 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5847 if test -f "$ac_dir/install-sh"; then
5849 ac_install_sh
="$ac_aux_dir/install-sh -c"
5851 elif test -f "$ac_dir/install.sh"; then
5853 ac_install_sh
="$ac_aux_dir/install.sh -c"
5855 elif test -f "$ac_dir/shtool"; then
5857 ac_install_sh
="$ac_aux_dir/shtool install -c"
5861 if test -z "$ac_aux_dir"; then
5862 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5865 # These three variables are undocumented and unsupported,
5866 # and are intended to be withdrawn in a future Autoconf release.
5867 # They can cause serious problems if a builder's source tree is in a directory
5868 # whose full name contains unusual characters.
5869 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5870 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5871 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5874 # Make sure we can run config.sub.
5875 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5876 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5879 $as_echo_n "checking build system type... " >&6; }
5880 if ${ac_cv_build+:} false
; then :
5881 $as_echo_n "(cached) " >&6
5883 ac_build_alias
=$build_alias
5884 test "x$ac_build_alias" = x
&&
5885 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5886 test "x$ac_build_alias" = x
&&
5887 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5888 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5889 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5893 $as_echo "$ac_cv_build" >&6; }
5894 case $ac_cv_build in
5896 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5899 ac_save_IFS
=$IFS; IFS
='-'
5905 # Remember, the first character of IFS is used to create $*,
5906 # except with old shells:
5909 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5913 $as_echo_n "checking host system type... " >&6; }
5914 if ${ac_cv_host+:} false
; then :
5915 $as_echo_n "(cached) " >&6
5917 if test "x$host_alias" = x
; then
5918 ac_cv_host
=$ac_cv_build
5920 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5921 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5926 $as_echo "$ac_cv_host" >&6; }
5929 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5932 ac_save_IFS
=$IFS; IFS
='-'
5938 # Remember, the first character of IFS is used to create $*,
5939 # except with old shells:
5942 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5946 $as_echo_n "checking target system type... " >&6; }
5947 if ${ac_cv_target+:} false
; then :
5948 $as_echo_n "(cached) " >&6
5950 if test "x$target_alias" = x
; then
5951 ac_cv_target
=$ac_cv_host
5953 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5954 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5959 $as_echo "$ac_cv_target" >&6; }
5960 case $ac_cv_target in
5962 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
5964 target
=$ac_cv_target
5965 ac_save_IFS
=$IFS; IFS
='-'
5971 # Remember, the first character of IFS is used to create $*,
5972 # except with old shells:
5975 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
5978 # The aliases save the names the user supplied, while $host etc.
5979 # will get canonicalized.
5980 test -n "$target_alias" &&
5981 test "$program_prefix$program_suffix$program_transform_name" = \
5983 program_prefix
=${target_alias}-
5985 # The tests for host and target for $enable_largefile require
5990 # As the $enable_largefile decision depends on --enable-plugins we must set it
5991 # even in directories otherwise not depending on the $plugins option.
5995 for ac_header
in dlfcn.h
5997 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5999 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
6000 cat >>confdefs.h
<<_ACEOF
6001 #define HAVE_DLFCN_H 1
6008 for ac_header
in windows.h
6010 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6012 if test "x$ac_cv_header_windows_h" = xyes
; then :
6013 cat >>confdefs.h
<<_ACEOF
6014 #define HAVE_WINDOWS_H 1
6022 # Check whether --enable-plugins was given.
6023 if test "${enable_plugins+set}" = set; then :
6024 enableval
=$enable_plugins; case "${enableval}" in
6027 if test "$maybe_plugins" != "yes" ; then
6028 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6032 plugins
=$maybe_plugins
6036 if test "$plugins" = "yes"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6038 $as_echo_n "checking for library containing dlsym... " >&6; }
6039 if ${ac_cv_search_dlsym+:} false
; then :
6040 $as_echo_n "(cached) " >&6
6042 ac_func_search_save_LIBS
=$LIBS
6043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6046 /* Override any GCC internal prototype to avoid an error.
6047 Use char because int might match the return type of a GCC
6048 builtin and then its argument prototype would still apply. */
6061 for ac_lib
in '' dl
; do
6062 if test -z "$ac_lib"; then
6063 ac_res
="none required"
6066 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6068 if ac_fn_c_try_link
"$LINENO"; then :
6069 ac_cv_search_dlsym
=$ac_res
6071 rm -f core conftest.err conftest.
$ac_objext \
6073 if ${ac_cv_search_dlsym+:} false
; then :
6077 if ${ac_cv_search_dlsym+:} false
; then :
6080 ac_cv_search_dlsym
=no
6083 LIBS
=$ac_func_search_save_LIBS
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6086 $as_echo "$ac_cv_search_dlsym" >&6; }
6087 ac_res
=$ac_cv_search_dlsym
6088 if test "$ac_res" != no
; then :
6089 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6097 sparc-
*-solaris*|i?
86-*-solaris*)
6098 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
6099 # were mutually exclusive until Solaris 11.3. Without procfs support,
6100 # the bfd/ elf module cannot provide certain routines such as
6101 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
6102 # explicitly requested large-file support through the
6103 # --enable-largefile switch, disable large-file support in favor of
6106 # Check if <sys/procfs.h> is incompatible with large-file support.
6107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #define _FILE_OFFSET_BITS 64
6110 #define _STRUCTURED_PROC 1
6111 #include <sys/procfs.h>
6120 if ac_fn_c_try_compile
"$LINENO"; then :
6121 acx_cv_procfs_lfs
=yes
6123 acx_cv_procfs_lfs
=no
6125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6127 # Forcefully disable large-file support only if necessary, gdb is in
6129 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
6130 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
6131 : ${enable_largefile="no"}
6132 if test "$plugins" = yes; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
6134 plugin support disabled; require large-file support which is incompatible with GDB." >&5
6135 $as_echo "$as_me: WARNING:
6136 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
6141 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
6142 # benefit of g++ 9+ which predefines it on Solaris.
6143 if test "$enable_largefile" = no
; then
6144 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
6150 # Check whether --enable-largefile was given.
6151 if test "${enable_largefile+set}" = set; then :
6152 enableval
=$enable_largefile;
6155 if test "$enable_largefile" != no
; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6158 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6159 if ${ac_cv_sys_largefile_CC+:} false
; then :
6160 $as_echo_n "(cached) " >&6
6162 ac_cv_sys_largefile_CC
=no
6163 if test "$GCC" != yes; then
6166 # IRIX 6.2 and later do not support large files by default,
6167 # so use the C compiler's -n32 option if that helps.
6168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6170 #include <sys/types.h>
6171 /* Check that off_t can represent 2**63 - 1 correctly.
6172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6173 since some C++ compilers masquerading as C compilers
6174 incorrectly reject 9223372036854775807. */
6175 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6177 && LARGE_OFF_T % 2147483647 == 1)
6187 if ac_fn_c_try_compile
"$LINENO"; then :
6190 rm -f core conftest.err conftest.
$ac_objext
6192 if ac_fn_c_try_compile
"$LINENO"; then :
6193 ac_cv_sys_largefile_CC
=' -n32'; break
6195 rm -f core conftest.err conftest.
$ac_objext
6199 rm -f conftest.
$ac_ext
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6203 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6204 if test "$ac_cv_sys_largefile_CC" != no
; then
6205 CC
=$CC$ac_cv_sys_largefile_CC
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6209 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6210 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6211 $as_echo_n "(cached) " >&6
6214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #include <sys/types.h>
6217 /* Check that off_t can represent 2**63 - 1 correctly.
6218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6219 since some C++ compilers masquerading as C compilers
6220 incorrectly reject 9223372036854775807. */
6221 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6223 && LARGE_OFF_T % 2147483647 == 1)
6233 if ac_fn_c_try_compile
"$LINENO"; then :
6234 ac_cv_sys_file_offset_bits
=no
; break
6236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 #define _FILE_OFFSET_BITS 64
6240 #include <sys/types.h>
6241 /* Check that off_t can represent 2**63 - 1 correctly.
6242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6243 since some C++ compilers masquerading as C compilers
6244 incorrectly reject 9223372036854775807. */
6245 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6247 && LARGE_OFF_T % 2147483647 == 1)
6257 if ac_fn_c_try_compile
"$LINENO"; then :
6258 ac_cv_sys_file_offset_bits
=64; break
6260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6261 ac_cv_sys_file_offset_bits
=unknown
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6266 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6267 case $ac_cv_sys_file_offset_bits in #(
6270 cat >>confdefs.h
<<_ACEOF
6271 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6276 if test $ac_cv_sys_file_offset_bits = unknown
; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6278 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6279 if ${ac_cv_sys_large_files+:} false
; then :
6280 $as_echo_n "(cached) " >&6
6283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 #include <sys/types.h>
6286 /* Check that off_t can represent 2**63 - 1 correctly.
6287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6288 since some C++ compilers masquerading as C compilers
6289 incorrectly reject 9223372036854775807. */
6290 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6292 && LARGE_OFF_T % 2147483647 == 1)
6302 if ac_fn_c_try_compile
"$LINENO"; then :
6303 ac_cv_sys_large_files
=no
; break
6305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 #define _LARGE_FILES 1
6309 #include <sys/types.h>
6310 /* Check that off_t can represent 2**63 - 1 correctly.
6311 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6312 since some C++ compilers masquerading as C compilers
6313 incorrectly reject 9223372036854775807. */
6314 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6315 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6316 && LARGE_OFF_T % 2147483647 == 1)
6326 if ac_fn_c_try_compile
"$LINENO"; then :
6327 ac_cv_sys_large_files
=1; break
6329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6330 ac_cv_sys_large_files
=unknown
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6335 $as_echo "$ac_cv_sys_large_files" >&6; }
6336 case $ac_cv_sys_large_files in #(
6339 cat >>confdefs.h
<<_ACEOF
6340 #define _LARGE_FILES $ac_cv_sys_large_files
6356 $as_echo "#define _ISOC11_SOURCE 1" >>confdefs.h
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6365 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6366 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
6367 $as_echo_n "(cached) " >&6
6370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6379 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6380 gl_cv_c_amsterdam_compiler
=yes
6382 gl_cv_c_amsterdam_compiler
=no
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6389 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6391 if test $gl_cv_c_amsterdam_compiler = yes; then
6392 if test -z "$AR"; then
6395 if test -z "$ARFLAGS"; then
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6404 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_prog_AR+:} false
; then :
6408 $as_echo_n "(cached) " >&6
6410 if test -n "$AR"; then
6411 ac_cv_prog_AR
="$AR" # Let the user override the test.
6413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir
=.
6418 for ac_exec_ext
in '' $ac_executable_extensions; do
6419 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6420 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 if test -n "$AR"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6433 $as_echo "$AR" >&6; }
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6441 if test -z "$ac_cv_prog_AR"; then
6443 # Extract the first word of "ar", so it can be a program name with args.
6444 set dummy
ar; ac_word
=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6448 $as_echo_n "(cached) " >&6
6450 if test -n "$ac_ct_AR"; then
6451 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir
=.
6458 for ac_exec_ext
in '' $ac_executable_extensions; do
6459 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6460 ac_cv_prog_ac_ct_AR
="ar"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6471 if test -n "$ac_ct_AR"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6473 $as_echo "$ac_ct_AR" >&6; }
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6479 if test "x$ac_ct_AR" = x
; then
6482 case $cross_compiling:$ac_tool_warned in
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned
=yes ;;
6494 if test -z "$ARFLAGS"; then
6500 if test -z "$RANLIB"; then
6501 if test $gl_cv_c_amsterdam_compiler = yes; then
6504 if test -n "$ac_tool_prefix"; then
6505 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6506 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_RANLIB+:} false
; then :
6510 $as_echo_n "(cached) " >&6
6512 if test -n "$RANLIB"; then
6513 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6519 test -z "$as_dir" && as_dir
=.
6520 for ac_exec_ext
in '' $ac_executable_extensions; do
6521 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6522 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 RANLIB
=$ac_cv_prog_RANLIB
6533 if test -n "$RANLIB"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6535 $as_echo "$RANLIB" >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6543 if test -z "$ac_cv_prog_RANLIB"; then
6544 ac_ct_RANLIB
=$RANLIB
6545 # Extract the first word of "ranlib", so it can be a program name with args.
6546 set dummy ranlib
; ac_word
=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6550 $as_echo_n "(cached) " >&6
6552 if test -n "$ac_ct_RANLIB"; then
6553 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir
=.
6560 for ac_exec_ext
in '' $ac_executable_extensions; do
6561 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6573 if test -n "$ac_ct_RANLIB"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6575 $as_echo "$ac_ct_RANLIB" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6581 if test "x$ac_ct_RANLIB" = x
; then
6584 case $cross_compiling:$ac_tool_warned in
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned
=yes ;;
6590 RANLIB
=$ac_ct_RANLIB
6593 RANLIB
="$ac_cv_prog_RANLIB"
6604 # IEEE behaviour is the default on all CPUs except Alpha and SH
6605 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6606 # and the GCC 4.1.2 manual).
6609 # On Alpha systems, a compiler option provides the behaviour.
6610 # See the ieee(3) manual page, also available at
6611 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
6612 if test -n "$GCC"; then
6613 # GCC has the option -mieee.
6614 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6615 CPPFLAGS
="$CPPFLAGS -mieee"
6617 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6618 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6619 CPPFLAGS
="$CPPFLAGS -ieee"
6623 if test -n "$GCC"; then
6624 # GCC has the option -mieee.
6625 CPPFLAGS
="$CPPFLAGS -mieee"
6636 # Check whether --enable-threads was given.
6637 if test "${enable_threads+set}" = set; then :
6638 enableval
=$enable_threads; gl_use_threads
=$enableval
6640 if test -n "$gl_use_threads_default"; then
6641 gl_use_threads
="$gl_use_threads_default"
6644 osf
*) gl_use_threads
=no
;;
6647 1.
[0-5].
*) gl_use_threads
=no
;;
6648 *) gl_use_threads
=yes ;;
6652 case "$gl_use_winpthreads_default" in
6653 yes) gl_use_threads
=posix
;;
6654 no
) gl_use_threads
=windows
;;
6655 *) gl_use_threads
=yes ;;
6658 *) gl_use_threads
=yes ;;
6664 if test "$gl_use_threads" = yes \
6665 ||
test "$gl_use_threads" = isoc \
6666 ||
test "$gl_use_threads" = posix \
6667 ||
test "$gl_use_threads" = isoc
+posix
; then
6668 # For using <threads.h> or <pthread.h>:
6671 if test -z "$gl_anythreadlib_early_done"; then
6674 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6675 # groks <pthread.h>. cc also understands the flag -pthread, but
6676 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6677 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6678 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6679 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6680 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
6683 # Some systems optimize for single-threaded programs by default, and
6684 # need special flags to disable these optimizations. For example, the
6685 # definition of 'errno' in <errno.h>.
6687 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
6688 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
6690 gl_anythreadlib_early_done
=done
6697 # Pre-early section.
6702 # Code from module absolute-header:
6703 # Code from module accept:
6704 # Code from module alloca:
6705 # Code from module alloca-opt:
6706 # Code from module arpa_inet:
6707 # Code from module assure:
6708 # Code from module at-internal:
6709 # Code from module attribute:
6710 # Code from module basename-lgpl:
6711 # Code from module bind:
6712 # Code from module btowc:
6713 # Code from module builtin-expect:
6714 # Code from module c99:
6715 # Code from module canonicalize-lgpl:
6716 # Code from module chdir:
6717 # Code from module chdir-long:
6718 # Code from module chown:
6719 # Code from module clock-time:
6720 # Code from module cloexec:
6721 # Code from module close:
6722 # Code from module closedir:
6723 # Code from module connect:
6724 # Code from module count-one-bits:
6725 # Code from module ctype:
6726 # Code from module d-ino:
6727 # Code from module d-type:
6728 # Code from module dirent:
6729 # Code from module dirfd:
6730 # Code from module dirname-lgpl:
6731 # Code from module double-slash-root:
6732 # Code from module dup:
6733 # Code from module dup2:
6734 # Code from module eloop-threshold:
6735 # Code from module environ:
6736 # Code from module errno:
6737 # Code from module error:
6738 # Code from module exitfail:
6739 # Code from module extensions:
6740 # Code from module extern-inline:
6741 # Code from module fchdir:
6742 # Code from module fcntl:
6743 # Code from module fcntl-h:
6744 # Code from module fd-hook:
6745 # Code from module fd-safer-flag:
6746 # Code from module fdopendir:
6747 # Code from module ffs:
6748 # Code from module filename:
6749 # Code from module filenamecat-lgpl:
6750 # Code from module flexmember:
6751 # Code from module float:
6752 # Code from module fnmatch:
6753 # Code from module fnmatch-gnu:
6754 # Code from module fnmatch-h:
6755 # Code from module fpieee:
6757 # Code from module fpucw:
6758 # Code from module free-posix:
6759 # Code from module frexp:
6760 # Code from module frexpl:
6761 # Code from module fstat:
6762 # Code from module fstatat:
6763 # Code from module gendocs:
6764 # Code from module getcwd:
6765 # Code from module getcwd-lgpl:
6766 # Code from module getdelim:
6767 # Code from module getdtablesize:
6768 # Code from module getline:
6769 # Code from module getlogin_r:
6770 # Code from module getprogname:
6771 # Code from module getrandom:
6772 # Code from module gettext-h:
6773 # Code from module gettimeofday:
6774 # Code from module gitlog-to-changelog:
6775 # Code from module glob:
6776 # Code from module glob-h:
6777 # Code from module hard-locale:
6778 # Code from module idx:
6779 # Code from module include_next:
6780 # Code from module inet_ntop:
6781 # Code from module intprops:
6782 # Code from module inttypes:
6783 # Code from module inttypes-incomplete:
6784 # Code from module isblank:
6785 # Code from module isnand-nolibm:
6786 # Code from module isnanl-nolibm:
6787 # Code from module largefile:
6789 # Code from module libc-config:
6790 # Code from module limits-h:
6791 # Code from module listen:
6792 # Code from module localcharset:
6793 # Code from module locale:
6794 # Code from module lock:
6795 # Code from module lstat:
6796 # Code from module malloc-posix:
6797 # Code from module malloca:
6798 # Code from module math:
6799 # Code from module mbrtowc:
6800 # Code from module mbsinit:
6801 # Code from module mbsrtowcs:
6802 # Code from module mbtowc:
6803 # Code from module memchr:
6804 # Code from module memmem:
6805 # Code from module memmem-simple:
6806 # Code from module mempcpy:
6807 # Code from module memrchr:
6808 # Code from module minmax:
6809 # Code from module mkdir:
6810 # Code from module mkdtemp:
6811 # Code from module mkostemp:
6812 # Code from module msvc-inval:
6813 # Code from module msvc-nothrow:
6814 # Code from module multiarch:
6815 # Code from module netdb:
6816 # Code from module netinet_in:
6817 # Code from module nocrash:
6818 # Code from module open:
6819 # Code from module openat:
6820 # Code from module openat-die:
6821 # Code from module openat-h:
6822 # Code from module opendir:
6823 # Code from module pathmax:
6824 # Code from module pipe-posix:
6825 # Code from module rawmemchr:
6826 # Code from module readdir:
6827 # Code from module readlink:
6828 # Code from module realloc-posix:
6829 # Code from module rename:
6830 # Code from module rewinddir:
6831 # Code from module rmdir:
6832 # Code from module same-inode:
6833 # Code from module save-cwd:
6834 # Code from module scratch_buffer:
6835 # Code from module select:
6836 # Code from module setenv:
6837 # Code from module setlocale-null:
6838 # Code from module setsockopt:
6839 # Code from module signal-h:
6840 # Code from module snippet/_Noreturn:
6841 # Code from module snippet/arg-nonnull:
6842 # Code from module snippet/c++defs:
6843 # Code from module snippet/warn-on-use:
6844 # Code from module socket:
6845 # Code from module socketlib:
6846 # Code from module sockets:
6847 # Code from module socklen:
6848 # Code from module ssize_t:
6849 # Code from module stat:
6850 # Code from module stat-time:
6851 # Code from module std-gnu11:
6852 # Code from module stdalign:
6853 # Code from module stdbool:
6854 # Code from module stddef:
6855 # Code from module stdint:
6856 # Code from module stdio:
6857 # Code from module stdlib:
6858 # Code from module strchrnul:
6859 # Code from module strdup-posix:
6860 # Code from module streq:
6861 # Code from module strerror:
6862 # Code from module strerror-override:
6863 # Code from module strerror_r-posix:
6864 # Code from module string:
6865 # Code from module strings:
6866 # Code from module strnlen:
6867 # Code from module strnlen1:
6868 # Code from module strstr:
6869 # Code from module strstr-simple:
6870 # Code from module strtok_r:
6871 # Code from module sys_random:
6872 # Code from module sys_select:
6873 # Code from module sys_socket:
6874 # Code from module sys_stat:
6875 # Code from module sys_time:
6876 # Code from module sys_types:
6877 # Code from module sys_uio:
6878 # Code from module sys_wait:
6879 # Code from module tempname:
6880 # Code from module threadlib:
6884 # Code from module time:
6885 # Code from module time_r:
6886 # Code from module unistd:
6887 # Code from module unistd-safer:
6888 # Code from module unsetenv:
6889 # Code from module update-copyright:
6890 # Code from module verify:
6891 # Code from module wchar:
6892 # Code from module wctype-h:
6893 # Code from module windows-mutex:
6894 # Code from module windows-once:
6895 # Code from module windows-recmutex:
6896 # Code from module windows-rwlock:
6897 # Code from module wmemchr:
6898 # Code from module wmempcpy:
6899 # Code from module xalloc-oversized:
6902 am_cv_prog_cc_stdc
=$ac_cv_prog_cc_stdc
6906 for ac_dir
in ..
"$srcdir"/..
; do
6907 if test -f "$ac_dir/install-sh"; then
6909 ac_install_sh
="$ac_aux_dir/install-sh -c"
6911 elif test -f "$ac_dir/install.sh"; then
6913 ac_install_sh
="$ac_aux_dir/install.sh -c"
6915 elif test -f "$ac_dir/shtool"; then
6917 ac_install_sh
="$ac_aux_dir/shtool install -c"
6921 if test -z "$ac_aux_dir"; then
6922 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6925 # These three variables are undocumented and unsupported,
6926 # and are intended to be withdrawn in a future Autoconf release.
6927 # They can cause serious problems if a builder's source tree is in a directory
6928 # whose full name contains unusual characters.
6929 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6930 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6931 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6944 # Check whether --enable-cross-guesses was given.
6945 if test "${enable_cross_guesses+set}" = set; then :
6946 enableval
=$enable_cross_guesses; if test "x$enableval" != xconservative
&& test "x$enableval" != xrisky
; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6948 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6949 enableval
=conservative
6951 gl_cross_guesses
="$enableval"
6953 gl_cross_guesses
=conservative
6956 if test $gl_cross_guesses = risky
; then
6957 gl_cross_guess_normal
="guessing yes"
6958 gl_cross_guess_inverted
="guessing no"
6960 gl_cross_guess_normal
="guessing no"
6961 gl_cross_guess_inverted
="guessing yes"
6963 LIBC_FATAL_STDERR_
=1
6964 export LIBC_FATAL_STDERR_
6972 GNULIB_GETPEERNAME
=0;
6973 GNULIB_GETSOCKNAME
=0;
6974 GNULIB_GETSOCKOPT
=0;
6980 GNULIB_SETSOCKOPT
=0;
6983 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
6984 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
6992 if test $ac_cv_header_sys_socket_h = no
; then
6993 for ac_header
in ws2tcpip.h
6995 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
6996 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
6997 cat >>confdefs.h
<<_ACEOF
6998 #define HAVE_WS2TCPIP_H 1
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7010 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7011 if ${gl_cv_have_include_next+:} false
; then :
7012 $as_echo_n "(cached) " >&6
7014 rm -rf conftestd1a conftestd1b conftestd2
7015 mkdir conftestd1a conftestd1b conftestd2
7016 cat <<EOF > conftestd1a/conftest.h
7017 #define DEFINED_IN_CONFTESTD1
7018 #include_next <conftest.h>
7019 #ifdef DEFINED_IN_CONFTESTD2
7022 #error "include_next doesn't work"
7025 cat <<EOF > conftestd1b/conftest.h
7026 #define DEFINED_IN_CONFTESTD1
7028 #include_next <conftest.h>
7029 #ifdef DEFINED_IN_CONFTESTD2
7032 #error "include_next doesn't work"
7035 cat <<EOF > conftestd2/conftest.h
7036 #ifndef DEFINED_IN_CONFTESTD1
7037 #error "include_next test doesn't work"
7039 #define DEFINED_IN_CONFTESTD2
7041 gl_save_CPPFLAGS
="$CPPFLAGS"
7042 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045 #include <conftest.h>
7047 if ac_fn_c_try_compile
"$LINENO"; then :
7048 gl_cv_have_include_next
=yes
7050 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7053 #include <conftest.h>
7055 if ac_fn_c_try_compile
"$LINENO"; then :
7056 gl_cv_have_include_next
=buggy
7058 gl_cv_have_include_next
=no
7060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7064 CPPFLAGS
="$gl_save_CPPFLAGS"
7065 rm -rf conftestd1a conftestd1b conftestd2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7069 $as_echo "$gl_cv_have_include_next" >&6; }
7070 PRAGMA_SYSTEM_HEADER
=
7071 if test $gl_cv_have_include_next = yes; then
7072 INCLUDE_NEXT
=include_next
7073 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7074 if test -n "$GCC"; then
7075 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7078 if test $gl_cv_have_include_next = buggy
; then
7079 INCLUDE_NEXT
=include
7080 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7082 INCLUDE_NEXT
=include
7083 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
7091 $as_echo_n "checking whether source code line length is unlimited... " >&6; }
7092 if ${gl_cv_source_line_length_unlimited+:} false
; then :
7093 $as_echo_n "(cached) " >&6
7095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104 $EGREP "choke me" >/dev
/null
2>&1; then :
7105 gl_cv_source_line_length_unlimited
=no
7107 gl_cv_source_line_length_unlimited
=yes
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
7114 $as_echo "$gl_cv_source_line_length_unlimited" >&6; }
7115 if test $gl_cv_source_line_length_unlimited = no
; then
7116 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7127 GNULIB_COPY_FILE_RANGE
=0;
7132 GNULIB_EUIDACCESS
=0;
7147 GNULIB_GETDOMAINNAME
=0;
7148 GNULIB_GETDTABLESIZE
=0;
7149 GNULIB_GETENTROPY
=0;
7151 GNULIB_GETHOSTNAME
=0;
7153 GNULIB_GETLOGIN_R
=0;
7154 GNULIB_GETOPT_POSIX
=0;
7155 GNULIB_GETPAGESIZE
=0;
7157 GNULIB_GETUSERSHELL
=0;
7158 GNULIB_GROUP_MEMBER
=0;
7170 GNULIB_READLINKAT
=0;
7172 GNULIB_SETHOSTNAME
=0;
7178 GNULIB_UNISTD_H_NONBLOCKING
=0;
7179 GNULIB_UNISTD_H_SIGPIPE
=0;
7184 GNULIB_MDA_ACCESS
=1;
7190 GNULIB_MDA_EXECLE
=1;
7191 GNULIB_MDA_EXECLP
=1;
7193 GNULIB_MDA_EXECVE
=1;
7194 GNULIB_MDA_EXECVP
=1;
7195 GNULIB_MDA_EXECVPE
=1;
7196 GNULIB_MDA_GETCWD
=1;
7197 GNULIB_MDA_GETPID
=1;
7198 GNULIB_MDA_ISATTY
=1;
7203 GNULIB_MDA_UNLINK
=1;
7206 HAVE_COPY_FILE_RANGE
=1;
7216 HAVE_GETDTABLESIZE
=1;
7223 HAVE_GROUP_MEMBER
=1;
7239 HAVE_DECL_ENVIRON
=1;
7240 HAVE_DECL_EXECVPE
=1;
7242 HAVE_DECL_FDATASYNC
=1;
7243 HAVE_DECL_GETDOMAINNAME
=1;
7244 HAVE_DECL_GETLOGIN
=1;
7245 HAVE_DECL_GETLOGIN_R
=1;
7246 HAVE_DECL_GETPAGESIZE
=1;
7247 HAVE_DECL_GETUSERSHELL
=1;
7248 HAVE_DECL_SETHOSTNAME
=1;
7249 HAVE_DECL_TRUNCATE
=1;
7250 HAVE_DECL_TTYNAME_R
=1;
7265 REPLACE_FACCESSAT
=0;
7267 REPLACE_FTRUNCATE
=0;
7269 REPLACE_GETDOMAINNAME
=0;
7270 REPLACE_GETDTABLESIZE
=0;
7271 REPLACE_GETLOGIN_R
=0;
7272 REPLACE_GETGROUPS
=0;
7273 REPLACE_GETPAGESIZE
=0;
7284 REPLACE_READLINKAT
=0;
7288 REPLACE_SYMLINKAT
=0;
7290 REPLACE_TTYNAME_R
=0;
7295 UNISTD_H_HAVE_SYS_RANDOM_H
=0;
7296 UNISTD_H_HAVE_WINSOCK2_H
=0;
7297 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7301 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7302 if ${ac_cv_c_restrict+:} false
; then :
7303 $as_echo_n "(cached) " >&6
7306 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
7307 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
7308 # Put 'restrict' last, because C++ lacks it.
7309 for ac_kw
in __restrict__ __restrict _Restrict restrict
; do
7310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312 typedef int *int_ptr;
7313 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7314 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7315 int bar (int ip[$ac_kw]) { return ip[0]; }
7323 return foo (t) + bar (t);
7329 if ac_fn_c_try_compile
"$LINENO"; then :
7330 ac_cv_c_restrict
=$ac_kw
7332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7333 test "$ac_cv_c_restrict" != no
&& break
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7338 $as_echo "$ac_cv_c_restrict" >&6; }
7340 case $ac_cv_c_restrict in
7342 no
) $as_echo "#define restrict /**/" >>confdefs.h
7344 *) cat >>confdefs.h
<<_ACEOF
7345 #define restrict $ac_cv_c_restrict
7357 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
7363 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
7364 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
7365 $as_echo_n "(cached) " >&6
7368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 #include <sys/socket.h>
7379 if ac_fn_c_try_compile
"$LINENO"; then :
7380 gl_cv_header_sys_socket_h_selfcontained
=yes
7382 gl_cv_header_sys_socket_h_selfcontained
=no
7384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
7388 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
7389 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
7390 for ac_func
in shutdown
7392 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
7393 if test "x$ac_cv_func_shutdown" = xyes
; then :
7394 cat >>confdefs.h
<<_ACEOF
7395 #define HAVE_SHUTDOWN 1
7401 if test $ac_cv_func_shutdown = yes; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
7403 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
7404 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
7405 $as_echo_n "(cached) " >&6
7408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410 #include <sys/socket.h>
7414 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
7419 if ac_fn_c_try_compile
"$LINENO"; then :
7420 gl_cv_header_sys_socket_h_shut
=yes
7422 gl_cv_header_sys_socket_h_shut
=no
7424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
7428 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
7429 if test $gl_cv_header_sys_socket_h_shut = no
; then
7430 SYS_SOCKET_H
='sys/socket.h'
7434 # We need to check for ws2tcpip.h now.
7446 if test $gl_cv_have_include_next = yes; then
7447 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
7450 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
7451 if ${gl_cv_next_sys_socket_h+:} false
; then :
7452 $as_echo_n "(cached) " >&6
7455 if test $ac_cv_header_sys_socket_h = yes; then
7460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #include <sys/socket.h>
7465 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7466 *) gl_absname_cpp
="$ac_cpp" ;;
7471 gl_dirsep_regex
='[/\\]'
7474 gl_dirsep_regex
='\/'
7477 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
7478 gl_header_literal_regex
=`echo 'sys/socket.h' \
7479 | sed -e "$gl_make_literal_regex_sed"`
7480 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7481 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7487 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7488 sed -n "$gl_absolute_header_sed"`
7490 gl_header
=$gl_cv_absolute_sys_socket_h
7491 gl_cv_next_sys_socket_h
='"'$gl_header'"'
7493 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
7499 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
7501 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
7503 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7504 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7505 gl_next_as_first_directive
='<'sys
/socket.h
'>'
7507 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7508 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
7510 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
7515 if test $ac_cv_header_sys_socket_h = yes; then
7523 if test $ac_cv_header_sys_socket_h = yes; then
7526 if test $ac_cv_header_ws2tcpip_h = yes; then
7535 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7536 /* sys/types.h is not needed according to POSIX, but the
7537 sys/socket.h in i386-unknown-freebsd4.10 and
7538 powerpc-apple-darwin5.5 required it. */
7539 #include <sys/types.h>
7540 #ifdef HAVE_SYS_SOCKET_H
7541 #include <sys/socket.h>
7543 #ifdef HAVE_WS2TCPIP_H
7544 #include <ws2tcpip.h>
7548 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
7550 cat >>confdefs.h
<<_ACEOF
7551 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
7556 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
7557 /* sys/types.h is not needed according to POSIX, but the
7558 sys/socket.h in i386-unknown-freebsd4.10 and
7559 powerpc-apple-darwin5.5 required it. */
7560 #include <sys/types.h>
7561 #ifdef HAVE_SYS_SOCKET_H
7562 #include <sys/socket.h>
7564 #ifdef HAVE_WS2TCPIP_H
7565 #include <ws2tcpip.h>
7569 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
7571 cat >>confdefs.h
<<_ACEOF
7572 #define HAVE_SA_FAMILY_T 1
7578 if test $ac_cv_type_struct_sockaddr_storage = no
; then
7579 HAVE_STRUCT_SOCKADDR_STORAGE
=0
7581 if test $ac_cv_type_sa_family_t = no
; then
7584 if test $ac_cv_type_struct_sockaddr_storage != no
; then
7585 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
7586 #ifdef HAVE_SYS_SOCKET_H
7587 #include <sys/socket.h>
7589 #ifdef HAVE_WS2TCPIP_H
7590 #include <ws2tcpip.h>
7594 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
7596 cat >>confdefs.h
<<_ACEOF
7597 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
7602 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
7606 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
7607 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
7608 SYS_SOCKET_H
='sys/socket.h'
7614 if test $ac_cv_header_sys_socket_h != yes; then
7615 for ac_header
in winsock2.h
7617 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7618 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
7619 cat >>confdefs.h
<<_ACEOF
7620 #define HAVE_WINSOCK2_H 1
7628 if test "$ac_cv_header_winsock2_h" = yes; then
7630 UNISTD_H_HAVE_WINSOCK2_H
=1
7631 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
7644 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7645 if test "x$ac_cv_type_size_t" = xyes
; then :
7649 cat >>confdefs.h
<<_ACEOF
7650 #define size_t unsigned int
7655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7656 # for constant arguments. Useless!
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7658 $as_echo_n "checking for working alloca.h... " >&6; }
7659 if ${ac_cv_working_alloca_h+:} false
; then :
7660 $as_echo_n "(cached) " >&6
7662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7668 char *p = (char *) alloca (2 * sizeof (int));
7674 if ac_fn_c_try_link
"$LINENO"; then :
7675 ac_cv_working_alloca_h
=yes
7677 ac_cv_working_alloca_h
=no
7679 rm -f core conftest.err conftest.
$ac_objext \
7680 conftest
$ac_exeext conftest.
$ac_ext
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7683 $as_echo "$ac_cv_working_alloca_h" >&6; }
7684 if test $ac_cv_working_alloca_h = yes; then
7686 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7691 $as_echo_n "checking for alloca... " >&6; }
7692 if ${ac_cv_func_alloca_works+:} false
; then :
7693 $as_echo_n "(cached) " >&6
7695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7698 # define alloca __builtin_alloca
7701 # include <malloc.h>
7702 # define alloca _alloca
7704 # ifdef HAVE_ALLOCA_H
7705 # include <alloca.h>
7710 # ifndef alloca /* predefined by HP cc +Olibcalls */
7711 void *alloca (size_t);
7721 char *p = (char *) alloca (1);
7727 if ac_fn_c_try_link
"$LINENO"; then :
7728 ac_cv_func_alloca_works
=yes
7730 ac_cv_func_alloca_works
=no
7732 rm -f core conftest.err conftest.
$ac_objext \
7733 conftest
$ac_exeext conftest.
$ac_ext
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7736 $as_echo "$ac_cv_func_alloca_works" >&6; }
7738 if test $ac_cv_func_alloca_works = yes; then
7740 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7743 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7744 # that cause trouble. Some versions do not even contain alloca or
7745 # contain a buggy version. If you still want to use their alloca,
7746 # use ar to extract alloca.o from them instead of compiling alloca.c.
7752 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7754 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7758 $as_echo_n "checking stack direction for C alloca... " >&6; }
7759 if ${ac_cv_c_stack_direction+:} false
; then :
7760 $as_echo_n "(cached) " >&6
7762 if test "$cross_compiling" = yes; then :
7763 ac_cv_c_stack_direction
=0
7765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 $ac_includes_default
7769 find_stack_direction (int *addr, int depth)
7774 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7775 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7780 main (int argc, char **argv)
7782 return find_stack_direction (0, argc + !argv + 20) < 0;
7785 if ac_fn_c_try_run
"$LINENO"; then :
7786 ac_cv_c_stack_direction
=1
7788 ac_cv_c_stack_direction
=-1
7790 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7791 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7796 $as_echo "$ac_cv_c_stack_direction" >&6; }
7797 cat >>confdefs.h
<<_ACEOF
7798 #define STACK_DIRECTION $ac_cv_c_stack_direction
7807 HAVE_DECL_INET_NTOP
=1;
7808 HAVE_DECL_INET_PTON
=1;
7809 REPLACE_INET_NTOP
=0;
7810 REPLACE_INET_PTON
=0;
7818 if test $ac_cv_header_features_h = yes; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7826 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7827 if test -z "$MKDIR_P"; then
7828 if ${ac_cv_path_mkdir+:} false
; then :
7829 $as_echo_n "(cached) " >&6
7831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7832 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7835 test -z "$as_dir" && as_dir
=.
7836 for ac_prog
in mkdir gmkdir
; do
7837 for ac_exec_ext
in '' $ac_executable_extensions; do
7838 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7839 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7840 'mkdir (GNU coreutils) '* | \
7841 'mkdir (coreutils) '* | \
7842 'mkdir (fileutils) '4.1*)
7843 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7853 test -d .
/--version && rmdir .
/--version
7854 if test "${ac_cv_path_mkdir+set}" = set; then
7855 MKDIR_P
="$ac_cv_path_mkdir -p"
7857 # As a last resort, use the slow shell script. Don't cache a
7858 # value for MKDIR_P within a source directory, because that will
7859 # break other packages using the cache if that directory is
7860 # removed, or if the value is a relative name.
7861 MKDIR_P
="$ac_install_sh -d"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7865 $as_echo "$MKDIR_P" >&6; }
7874 GNULIB_MBSNRTOWCS
=0;
7877 GNULIB_WCSNRTOMBS
=0;
7895 GNULIB_WCSCASECMP
=0;
7896 GNULIB_WCSNCASECMP
=0;
7909 GNULIB_MDA_WCSDUP
=1;
7951 HAVE_DECL_WCWIDTH
=1;
7952 REPLACE_MBSTATE_T
=0;
7958 REPLACE_MBSRTOWCS
=0;
7959 REPLACE_MBSNRTOWCS
=0;
7961 REPLACE_WCSRTOMBS
=0;
7962 REPLACE_WCSNRTOMBS
=0;
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
7971 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7972 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
7973 $as_echo_n "(cached) " >&6
7975 gl_cv_header_wchar_h_correct_inline
=yes
7978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7982 #define wcstod renamed_wcstod
7984 extern int zero (void);
7985 int main () { return zero(); }
7988 save_ac_compile
="$ac_compile"
7989 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
7990 if echo '#include "conftest.c"' >conftest1.c \
7991 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7992 (eval $ac_compile) 2>&5
7994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7995 test $ac_status = 0; }; then
7996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
8000 #define wcstod renamed_wcstod
8002 int zero (void) { return 0; }
8005 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
8006 if echo '#include "conftest.c"' >conftest2.c \
8007 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8008 (eval $ac_compile) 2>&5
8010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011 test $ac_status = 0; }; then
8012 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
8015 gl_cv_header_wchar_h_correct_inline
=no
8019 ac_compile
="$save_ac_compile"
8020 rm -f conftest12.c conftest12.
$ac_objext conftest
$ac_exeext
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
8026 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
8027 if test $gl_cv_header_wchar_h_correct_inline = no
; then
8028 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
8029 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
8030 C99 mode. You have four options:
8031 - Add the flag -fgnu89-inline to CC and reconfigure, or
8032 - Fix your include files, using parts of
8033 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
8034 - Use a gcc version older than 4.3, or
8035 - Don't use the flags -std=c99 or -std=gnu99.
8036 Configuration aborted." "$LINENO" 5
8042 for ac_func
in $ac_func_list
8044 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8045 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8046 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8047 cat >>confdefs.h
<<_ACEOF
8048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8058 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8059 if ${am_cv_langinfo_codeset+:} false
; then :
8060 $as_echo_n "(cached) " >&6
8062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 #include <langinfo.h>
8068 char* cs = nl_langinfo(CODESET); return !cs;
8073 if ac_fn_c_try_link
"$LINENO"; then :
8074 am_cv_langinfo_codeset
=yes
8076 am_cv_langinfo_codeset
=no
8078 rm -f core conftest.err conftest.
$ac_objext \
8079 conftest
$ac_exeext conftest.
$ac_ext
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8083 $as_echo "$am_cv_langinfo_codeset" >&6; }
8084 if test $am_cv_langinfo_codeset = yes; then
8086 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8094 $as_echo_n "checking for a traditional french locale... " >&6; }
8095 if ${gt_cv_locale_fr+:} false
; then :
8096 $as_echo_n "(cached) " >&6
8099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8104 #if HAVE_LANGINFO_CODESET
8105 # include <langinfo.h>
8112 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8113 imitates locale dependent behaviour by looking at the environment
8114 variables, and all locales use the UTF-8 encoding. */
8115 #if defined __BEOS__ || defined __HAIKU__
8118 /* Check whether the given locale name is recognized by the system. */
8119 # if defined _WIN32 && !defined __CYGWIN__
8120 /* On native Windows, setlocale(category, "") looks at the system settings,
8121 not at the environment variables. Also, when an encoding suffix such
8122 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8123 category of the locale to "C". */
8124 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8125 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8128 if (setlocale (LC_ALL, "") == NULL) return 1;
8130 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8131 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8132 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8133 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8134 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8135 some unit tests fail.
8136 On MirBSD 10, when an unsupported locale is specified, setlocale()
8137 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8138 # if HAVE_LANGINFO_CODESET
8140 const char *cs = nl_langinfo (CODESET);
8141 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8142 || strcmp (cs, "UTF-8") == 0)
8147 /* On Cygwin, avoid locale names without encoding suffix, because the
8148 locale_charset() function relies on the encoding suffix. Note that
8149 LC_ALL is set on the command line. */
8150 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8152 /* Check whether in the abbreviation of the second month, the second
8153 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8154 one byte long. This excludes the UTF-8 encoding. */
8155 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8156 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8157 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8158 /* Check whether the decimal separator is a comma.
8159 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8160 are nl_langinfo(RADIXCHAR) are both ".". */
8161 if (localeconv () ->decimal_point[0] != ',') return 1;
8168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8169 (eval $ac_link) 2>&5
8171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8172 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
8174 # Handle native Windows specially, because there setlocale() interprets
8175 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8176 # "fr" or "fra" as "French" or "French_France.1252",
8177 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8178 # "ja" as "Japanese" or "Japanese_Japan.932",
8181 # Test for the native Windows locale name.
8182 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
8183 gt_cv_locale_fr
=French_France
.1252
8186 gt_cv_locale_fr
=none
8190 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8191 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8192 # configure script would override the LC_ALL setting. Likewise for
8193 # LC_CTYPE, which is also set at the beginning of the configure script.
8194 # Test for the usual locale name.
8195 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
8196 gt_cv_locale_fr
=fr_FR
8198 # Test for the locale name with explicit encoding suffix.
8199 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
8200 gt_cv_locale_fr
=fr_FR.ISO-8859-1
8202 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8203 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
8204 gt_cv_locale_fr
=fr_FR.ISO8859-1
8206 # Test for the HP-UX locale name.
8207 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
8208 gt_cv_locale_fr
=fr_FR.iso88591
8210 # Test for the Solaris 7 locale name.
8211 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
8215 gt_cv_locale_fr
=none
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8228 $as_echo "$gt_cv_locale_fr" >&6; }
8229 LOCALE_FR
=$gt_cv_locale_fr
8234 GNULIB_ALIGNED_ALLOC
=0;
8236 GNULIB_CALLOC_POSIX
=0;
8237 GNULIB_CANONICALIZE_FILE_NAME
=0;
8238 GNULIB_FREE_POSIX
=0;
8239 GNULIB_GETLOADAVG
=0;
8242 GNULIB_MALLOC_POSIX
=0;
8249 GNULIB_POSIX_MEMALIGN
=0;
8250 GNULIB_POSIX_OPENPT
=0;
8257 GNULIB_REALLOCARRAY
=0;
8258 GNULIB_REALLOC_POSIX
=0;
8261 GNULIB_SECURE_GETENV
=0;
8267 GNULIB_SYSTEM_POSIX
=0;
8274 GNULIB_MDA_MKTEMP
=1;
8275 GNULIB_MDA_PUTENV
=1;
8277 HAVE_ALIGNED_ALLOC
=1;
8279 HAVE_CANONICALIZE_FILE_NAME
=1;
8283 HAVE_DECL_GETLOADAVG
=1;
8287 HAVE_DECL_INITSTATE
=1;
8294 HAVE_POSIX_MEMALIGN
=1;
8295 HAVE_POSIX_OPENPT
=1;
8302 HAVE_REALLOCARRAY
=1;
8305 HAVE_SECURE_GETENV
=1;
8309 HAVE_DECL_SETSTATE
=1;
8314 HAVE_STRUCT_RANDOM_DATA
=1;
8315 HAVE_SYS_LOADAVG_H
=0;
8317 HAVE_DECL_UNSETENV
=1;
8318 REPLACE_ALIGNED_ALLOC
=0;
8320 REPLACE_CANONICALIZE_FILE_NAME
=0;
8322 REPLACE_INITSTATE
=0;
8326 REPLACE_POSIX_MEMALIGN
=0;
8328 REPLACE_PTSNAME_R
=0;
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8344 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
8345 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
8346 $as_echo_n "(cached) " >&6
8348 rm -f conftest.sym conftest.
file
8350 if test "$cross_compiling" = yes; then :
8353 # Guess yes on Linux systems.
8354 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
8356 # Guess yes on glibc systems.
8357 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
8359 # Guess no on native Windows.
8360 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
8362 # If we don't know, obey --enable-cross-guesses.
8363 gl_cv_func_lstat_dereferences_slashed_symlink
="$gl_cross_guess_normal" ;;
8367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369 $ac_includes_default
8374 if (symlink ("conftest.file", "conftest.sym") != 0)
8376 /* Linux will dereference the symlink and fail, as required by
8377 POSIX. That is better in the sense that it means we will not
8378 have to compile and use the lstat wrapper. */
8379 return lstat ("conftest.sym/", &sbuf) == 0;
8385 if ac_fn_c_try_run
"$LINENO"; then :
8386 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
8388 gl_cv_func_lstat_dereferences_slashed_symlink
=no
8390 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8391 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8394 rm -f conftest.sym conftest.
file
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
8398 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8399 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
8402 cat >>confdefs.h
<<_ACEOF
8403 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
8416 $as_echo_n "checking whether // is distinct from /... " >&6; }
8417 if ${gl_cv_double_slash_root+:} false
; then :
8418 $as_echo_n "(cached) " >&6
8420 if test x
"$cross_compiling" = xyes
; then
8421 # When cross-compiling, there is no way to tell whether // is special
8422 # short of a list of hosts. However, the only known hosts to date
8423 # that have a distinct // are Apollo DomainOS (too old to port to),
8424 # Cygwin, and z/OS. If anyone knows of another system for which // has
8425 # special semantics and is distinct from /, please report it to
8426 # <bug-gnulib@gnu.org>.
8428 *-cygwin | i370-ibm-openedition
)
8429 gl_cv_double_slash_root
=yes ;;
8431 # Be optimistic and assume that / and // are the same when we
8433 gl_cv_double_slash_root
='unknown, assuming no' ;;
8436 set x
`ls -di / // 2>/dev/null`
8437 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
8438 gl_cv_double_slash_root
=no
8440 gl_cv_double_slash_root
=yes
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
8445 $as_echo "$gl_cv_double_slash_root" >&6; }
8446 if test "$gl_cv_double_slash_root" = yes; then
8448 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
8457 $as_echo_n "checking whether realpath works... " >&6; }
8458 if ${gl_cv_func_realpath_works+:} false
; then :
8459 $as_echo_n "(cached) " >&6
8462 rm -rf conftest.a conftest.d
8465 if test "$cross_compiling" = yes; then :
8467 # Guess yes on glibc systems.
8468 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
8469 # Guess yes on musl systems.
8470 *-musl*) gl_cv_func_realpath_works
="guessing yes" ;;
8471 # Guess no on native Windows.
8472 mingw
*) gl_cv_func_realpath_works
="guessing no" ;;
8473 # If we don't know, obey --enable-cross-guesses.
8474 *) gl_cv_func_realpath_works
="$gl_cross_guess_normal" ;;
8478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8484 #if defined __MACH__ && defined __APPLE__
8485 /* Avoid a crash on Mac OS X. */
8486 #include <mach/mach.h>
8487 #include <mach/mach_error.h>
8488 #include <mach/thread_status.h>
8489 #include <mach/exception.h>
8490 #include <mach/task.h>
8491 #include <pthread.h>
8492 /* The exception port on which our thread listens. */
8493 static mach_port_t our_exception_port;
8494 /* The main function of the thread listening for exceptions of type
8497 mach_exception_thread (void *arg)
8499 /* Buffer for a message to be received. */
8501 mach_msg_header_t head;
8502 mach_msg_body_t msgh_body;
8505 mach_msg_return_t retval;
8506 /* Wait for a message on the exception port. */
8507 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
8508 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
8509 if (retval != MACH_MSG_SUCCESS)
8516 mach_port_t self = mach_task_self ();
8517 /* Allocate a port on which the thread shall listen for exceptions. */
8518 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
8520 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
8521 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
8522 MACH_MSG_TYPE_MAKE_SEND)
8524 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
8526 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
8527 /* Create the thread listening on the exception port. */
8528 pthread_attr_t attr;
8530 if (pthread_attr_init (&attr) == 0
8531 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
8532 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
8533 pthread_attr_destroy (&attr);
8534 /* Replace the exception port info for these exceptions with our own.
8535 Note that we replace the exception port for the entire task, not only
8536 for a particular thread. This has the effect that when our exception
8537 port gets the message, the thread specific exception port has already
8538 been asked, and we don't need to bother about it.
8539 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
8540 task_set_exception_ports (self, mask, our_exception_port,
8541 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
8546 #elif defined _WIN32 && ! defined __CYGWIN__
8547 /* Avoid a crash on native Windows. */
8548 #define WIN32_LEAN_AND_MEAN
8549 #include <windows.h>
8550 #include <winerror.h>
8552 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
8554 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
8556 case EXCEPTION_ACCESS_VIOLATION:
8557 case EXCEPTION_IN_PAGE_ERROR:
8558 case EXCEPTION_STACK_OVERFLOW:
8559 case EXCEPTION_GUARD_PAGE:
8560 case EXCEPTION_PRIV_INSTRUCTION:
8561 case EXCEPTION_ILLEGAL_INSTRUCTION:
8562 case EXCEPTION_DATATYPE_MISALIGNMENT:
8563 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
8564 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
8567 return EXCEPTION_CONTINUE_SEARCH;
8572 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
8575 /* Avoid a crash on POSIX systems. */
8578 /* A POSIX signal handler. */
8580 exception_handler (int sig)
8588 signal (SIGSEGV, exception_handler);
8591 signal (SIGBUS, exception_handler);
8605 char *name = realpath ("conftest.a", NULL);
8606 if (!(name && *name == '/'))
8611 char *name = realpath ("conftest.b/../conftest.a", NULL);
8617 char *name = realpath ("conftest.a/", NULL);
8623 char *name1 = realpath (".", NULL);
8624 char *name2 = realpath ("conftest.d//./..", NULL);
8625 if (! name1 || ! name2 || strcmp (name1, name2))
8637 if ac_fn_c_try_run
"$LINENO"; then :
8638 gl_cv_func_realpath_works
=yes
8640 gl_cv_func_realpath_works
=no
8642 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8643 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8646 rm -rf conftest.a conftest.d
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
8650 $as_echo "$gl_cv_func_realpath_works" >&6; }
8651 case "$gl_cv_func_realpath_works" in
8654 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
8669 *) for ac_func
in getcwd
8671 ac_fn_c_check_func
"$LINENO" "getcwd" "ac_cv_func_getcwd"
8672 if test "x$ac_cv_func_getcwd" = xyes
; then :
8673 cat >>confdefs.h
<<_ACEOF
8674 #define HAVE_GETCWD 1
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8692 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8693 if ${ac_cv_type_uid_t+:} false
; then :
8694 $as_echo_n "(cached) " >&6
8696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8698 #include <sys/types.h>
8701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8702 $EGREP "uid_t" >/dev
/null
2>&1; then :
8703 ac_cv_type_uid_t
=yes
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8711 $as_echo "$ac_cv_type_uid_t" >&6; }
8712 if test $ac_cv_type_uid_t = no
; then
8714 $as_echo "#define uid_t int" >>confdefs.h
8717 $as_echo "#define gid_t int" >>confdefs.h
8722 #if defined _WIN32 && !defined __CYGWIN__
8723 #define access _access
8724 #define chdir _chdir
8725 #define chmod _chmod
8726 #define close _close
8727 #define creat _creat
8731 #define execl _execl
8732 #define execle _execle
8733 #define execlp _execlp
8734 #define execv _execv
8735 #define execve _execve
8736 #define execvp _execvp
8737 #define execvpe _execvpe
8738 #define fcloseall _fcloseall
8740 #define fdopen _fdopen
8741 #define fileno _fileno
8743 #define getcwd _getcwd
8744 #define getpid _getpid
8746 #define isatty _isatty
8750 #define lfind _lfind
8751 #define lsearch _lsearch
8752 #define lseek _lseek
8753 #define memccpy _memccpy
8754 #define mkdir _mkdir
8755 #define mktemp _mktemp
8757 #define putenv _putenv
8760 #define rmdir _rmdir
8761 #define strdup _strdup
8763 #define tempnam _tempnam
8764 #define tzset _tzset
8765 #define umask _umask
8766 #define unlink _unlink
8767 #define utime _utime
8768 #define wcsdup _wcsdup
8769 #define write _write
8777 for ac_header
in unistd.h
8779 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
8780 if test "x$ac_cv_header_unistd_h" = xyes
; then :
8781 cat >>confdefs.h
<<_ACEOF
8782 #define HAVE_UNISTD_H 1
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
8790 $as_echo_n "checking for working chown... " >&6; }
8791 if ${ac_cv_func_chown_works+:} false
; then :
8792 $as_echo_n "(cached) " >&6
8794 if test "$cross_compiling" = yes; then :
8795 case "$host_os" in # ((
8796 # Guess yes on Linux systems.
8797 linux-
* | linux
) ac_cv_func_chown_works
="guessing yes" ;;
8798 # Guess yes on glibc systems.
8799 *-gnu* | gnu
*) ac_cv_func_chown_works
="guessing yes" ;;
8800 # Guess no on native Windows.
8801 mingw
*) ac_cv_func_chown_works
="guessing no" ;;
8802 # If we don't know, obey --enable-cross-guesses.
8803 *) ac_cv_func_chown_works
="$gl_cross_guess_normal" ;;
8807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809 $ac_includes_default
8819 char *f = "conftest.chown";
8820 struct stat before, after;
8822 if (creat (f, 0600) < 0)
8824 if (stat (f, &before) < 0)
8826 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8828 if (stat (f, &after) < 0)
8830 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8837 if ac_fn_c_try_run
"$LINENO"; then :
8838 ac_cv_func_chown_works
=yes
8840 ac_cv_func_chown_works
=no
8842 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8843 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8846 rm -f conftest.chown
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
8850 $as_echo "$ac_cv_func_chown_works" >&6; }
8851 case "$ac_cv_func_chown_works" in
8854 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown dereferences symlinks" >&5
8861 $as_echo_n "checking whether chown dereferences symlinks... " >&6; }
8862 if ${gl_cv_func_chown_follows_symlink+:} false
; then :
8863 $as_echo_n "(cached) " >&6
8866 if test "$cross_compiling" = yes; then :
8867 gl_cv_func_chown_follows_symlink
="guessing yes"
8870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8884 char const *dangling_symlink = "conftest.dangle";
8886 unlink (dangling_symlink);
8887 if (symlink ("conftest.no-such", dangling_symlink))
8890 /* Exit successfully on a conforming system,
8891 i.e., where chown must fail with ENOENT. */
8892 if (chown (dangling_symlink, getuid (), getgid ()) == 0)
8894 if (errno != ENOENT)
8900 if ac_fn_c_try_run
"$LINENO"; then :
8901 gl_cv_func_chown_follows_symlink
=yes
8903 gl_cv_func_chown_follows_symlink
=no
8905 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8906 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_chown_follows_symlink" >&5
8913 $as_echo "$gl_cv_func_chown_follows_symlink" >&6; }
8915 case "$gl_cv_func_chown_follows_symlink" in
8919 $as_echo "#define CHOWN_MODIFIES_SYMLINK 1" >>confdefs.h
8935 if test $ac_cv_func_chown = no
; then
8938 case "$gl_cv_func_chown_follows_symlink" in
8940 *) REPLACE_CHOWN
=1 ;;
8943 case "$ac_cv_func_chown_works" in
8946 $as_echo "#define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1" >>confdefs.h
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown honors trailing slash" >&5
8953 $as_echo_n "checking whether chown honors trailing slash... " >&6; }
8954 if ${gl_cv_func_chown_slash_works+:} false
; then :
8955 $as_echo_n "(cached) " >&6
8957 touch conftest.
file && rm -f conftest.link
8958 if test "$cross_compiling" = yes; then :
8960 # Guess yes on glibc systems.
8961 *-gnu*) gl_cv_func_chown_slash_works
="guessing yes" ;;
8962 # Guess yes on musl systems.
8963 *-musl*) gl_cv_func_chown_slash_works
="guessing yes" ;;
8964 # If we don't know, obey --enable-cross-guesses.
8965 *) gl_cv_func_chown_slash_works
="$gl_cross_guess_normal" ;;
8969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8982 if (symlink ("conftest.file", "conftest.link")) return 1;
8983 if (chown ("conftest.link/", getuid (), getgid ()) == 0) return 2;
8989 if ac_fn_c_try_run
"$LINENO"; then :
8990 gl_cv_func_chown_slash_works
=yes
8992 gl_cv_func_chown_slash_works
=no
8994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8995 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8998 rm -f conftest.link conftest.
file
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_chown_slash_works" >&5
9001 $as_echo "$gl_cv_func_chown_slash_works" >&6; }
9002 case "$gl_cv_func_chown_slash_works" in
9006 $as_echo "#define CHOWN_TRAILING_SLASH_BUG 1" >>confdefs.h
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown always updates ctime" >&5
9013 $as_echo_n "checking whether chown always updates ctime... " >&6; }
9014 if ${gl_cv_func_chown_ctime_works+:} false
; then :
9015 $as_echo_n "(cached) " >&6
9017 if test "$cross_compiling" = yes; then :
9019 # Guess yes on glibc systems.
9020 *-gnu*) gl_cv_func_chown_ctime_works
="guessing yes" ;;
9021 # Guess yes on musl systems.
9022 *-musl*) gl_cv_func_chown_ctime_works
="guessing yes" ;;
9023 # If we don't know, obey --enable-cross-guesses.
9024 *) gl_cv_func_chown_ctime_works
="$gl_cross_guess_normal" ;;
9028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9035 #include <sys/stat.h>
9043 struct stat st1, st2;
9044 if (close (creat ("conftest.file", 0600))) return 1;
9045 if (stat ("conftest.file", &st1)) return 2;
9047 if (chown ("conftest.file", st1.st_uid, st1.st_gid)) return 3;
9048 if (stat ("conftest.file", &st2)) return 4;
9049 if (st2.st_ctime <= st1.st_ctime) return 5;
9055 if ac_fn_c_try_run
"$LINENO"; then :
9056 gl_cv_func_chown_ctime_works
=yes
9058 gl_cv_func_chown_ctime_works
=no
9060 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9061 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_chown_ctime_works" >&5
9067 $as_echo "$gl_cv_func_chown_ctime_works" >&6; }
9068 case "$gl_cv_func_chown_ctime_works" in
9072 $as_echo "#define CHOWN_CHANGE_TIME_BUG 1" >>confdefs.h
9083 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
9084 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
9086 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
9089 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
9109 HAVE_DECL_FDOPENDIR
=1;
9116 REPLACE_FDOPENDIR
=0;
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
9132 $as_echo_n "checking if environ is properly declared... " >&6; }
9133 if ${gt_cv_var_environ_declaration+:} false
; then :
9134 $as_echo_n "(cached) " >&6
9136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9141 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
9144 extern struct { int foo; } environ;
9153 if ac_fn_c_try_compile
"$LINENO"; then :
9154 gt_cv_var_environ_declaration
=no
9156 gt_cv_var_environ_declaration
=yes
9158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
9161 $as_echo "$gt_cv_var_environ_declaration" >&6; }
9162 if test $gt_cv_var_environ_declaration = yes; then
9164 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
9169 if test $gt_cv_var_environ_declaration != yes; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
9176 $as_echo_n "checking for complete errno.h... " >&6; }
9177 if ${gl_cv_header_errno_h_complete+:} false
; then :
9178 $as_echo_n "(cached) " >&6
9181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9185 #if !defined ETXTBSY
9194 #if !defined ENOLINK
9200 #if !defined EMULTIHOP
9203 #if !defined EBADMSG
9206 #if !defined EOVERFLOW
9209 #if !defined ENOTSUP
9212 #if !defined ENETRESET
9215 #if !defined ECONNABORTED
9224 #if !defined ECANCELED
9227 #if !defined EOWNERDEAD
9230 #if !defined ENOTRECOVERABLE
9238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9239 $EGREP "booboo" >/dev
/null
2>&1; then :
9240 gl_cv_header_errno_h_complete
=no
9242 gl_cv_header_errno_h_complete
=yes
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
9249 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
9250 if test $gl_cv_header_errno_h_complete = yes; then
9261 if test $gl_cv_have_include_next = yes; then
9262 gl_cv_next_errno_h
='<'errno.h
'>'
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
9265 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
9266 if ${gl_cv_next_errno_h+:} false
; then :
9267 $as_echo_n "(cached) " >&6
9272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9277 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9278 *) gl_absname_cpp
="$ac_cpp" ;;
9283 gl_dirsep_regex
='[/\\]'
9286 gl_dirsep_regex
='\/'
9289 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9290 gl_header_literal_regex
=`echo 'errno.h' \
9291 | sed -e "$gl_make_literal_regex_sed"`
9292 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9293 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9299 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9300 sed -n "$gl_absolute_header_sed"`
9302 gl_header
=$gl_cv_absolute_errno_h
9303 gl_cv_next_errno_h
='"'$gl_header'"'
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
9308 $as_echo "$gl_cv_next_errno_h" >&6; }
9310 NEXT_ERRNO_H
=$gl_cv_next_errno_h
9312 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9314 gl_next_as_first_directive
='<'errno.h
'>'
9316 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9317 gl_next_as_first_directive
=$gl_cv_next_errno_h
9319 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
9327 if test -n "$ERRNO_H"; then
9328 GL_GENERATE_ERRNO_H_TRUE
=
9329 GL_GENERATE_ERRNO_H_FALSE
='#'
9331 GL_GENERATE_ERRNO_H_TRUE
='#'
9332 GL_GENERATE_ERRNO_H_FALSE
=
9336 if test -n "$ERRNO_H"; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
9338 $as_echo_n "checking for EMULTIHOP value... " >&6; }
9339 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
9340 $as_echo_n "(cached) " >&6
9343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9353 $EGREP "yes" >/dev
/null
2>&1; then :
9354 gl_cv_header_errno_h_EMULTIHOP
=yes
9356 gl_cv_header_errno_h_EMULTIHOP
=no
9360 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
9361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9364 #define _XOPEN_SOURCE_EXTENDED 1
9371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9372 $EGREP "yes" >/dev
/null
2>&1; then :
9373 gl_cv_header_errno_h_EMULTIHOP
=hidden
9377 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
9378 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
9379 #define _XOPEN_SOURCE_EXTENDED 1
9381 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
9393 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
9394 case $gl_cv_header_errno_h_EMULTIHOP in
9396 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
9399 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
9407 if test -n "$ERRNO_H"; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
9409 $as_echo_n "checking for ENOLINK value... " >&6; }
9410 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
9411 $as_echo_n "(cached) " >&6
9414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9424 $EGREP "yes" >/dev
/null
2>&1; then :
9425 gl_cv_header_errno_h_ENOLINK
=yes
9427 gl_cv_header_errno_h_ENOLINK
=no
9431 if test $gl_cv_header_errno_h_ENOLINK = no
; then
9432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9435 #define _XOPEN_SOURCE_EXTENDED 1
9442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9443 $EGREP "yes" >/dev
/null
2>&1; then :
9444 gl_cv_header_errno_h_ENOLINK
=hidden
9448 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
9449 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
9450 #define _XOPEN_SOURCE_EXTENDED 1
9452 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
9464 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
9465 case $gl_cv_header_errno_h_ENOLINK in
9467 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
9470 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
9478 if test -n "$ERRNO_H"; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
9480 $as_echo_n "checking for EOVERFLOW value... " >&6; }
9481 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
9482 $as_echo_n "(cached) " >&6
9485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9495 $EGREP "yes" >/dev
/null
2>&1; then :
9496 gl_cv_header_errno_h_EOVERFLOW
=yes
9498 gl_cv_header_errno_h_EOVERFLOW
=no
9502 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
9503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9506 #define _XOPEN_SOURCE_EXTENDED 1
9513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9514 $EGREP "yes" >/dev
/null
2>&1; then :
9515 gl_cv_header_errno_h_EOVERFLOW
=hidden
9519 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
9520 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
9521 #define _XOPEN_SOURCE_EXTENDED 1
9523 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
9535 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
9536 case $gl_cv_header_errno_h_EOVERFLOW in
9538 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
9541 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
9549 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
9550 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
9556 cat >>confdefs.h
<<_ACEOF
9557 #define HAVE_DECL_STRERROR_R $ac_have_decl
9560 for ac_func
in strerror_r
9562 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
9563 if test "x$ac_cv_func_strerror_r" = xyes
; then :
9564 cat >>confdefs.h
<<_ACEOF
9565 #define HAVE_STRERROR_R 1
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9572 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
9573 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
9574 $as_echo_n "(cached) " >&6
9577 ac_cv_func_strerror_r_char_p
=no
9578 if test $ac_cv_have_decl_strerror_r = yes; then
9579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 $ac_includes_default
9587 char x = *strerror_r (0, buf, sizeof buf);
9588 char *p = strerror_r (0, buf, sizeof buf);
9595 if ac_fn_c_try_compile
"$LINENO"; then :
9596 ac_cv_func_strerror_r_char_p
=yes
9598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9600 # strerror_r is not declared. Choose between
9601 # systems that have relatively inaccessible declarations for the
9602 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
9603 # former has a strerror_r that returns char*, while the latter
9604 # has a strerror_r that returns `int'.
9605 # This test should segfault on the DEC system.
9606 if test "$cross_compiling" = yes; then :
9609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h. */
9611 $ac_includes_default
9612 extern char *strerror_r ();
9617 char x = *strerror_r (0, buf, sizeof buf);
9618 return ! isalpha (x);
9623 if ac_fn_c_try_run
"$LINENO"; then :
9624 ac_cv_func_strerror_r_char_p
=yes
9626 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9627 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9634 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
9635 if test $ac_cv_func_strerror_r_char_p = yes; then
9637 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9644 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
9645 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
9651 cat >>confdefs.h
<<_ACEOF
9652 #define HAVE_DECL_FCHDIR $ac_have_decl
9658 GNULIB_NONBLOCKING
=0;
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9680 $as_echo_n "checking for working fcntl.h... " >&6; }
9681 if ${gl_cv_header_working_fcntl_h+:} false
; then :
9682 $as_echo_n "(cached) " >&6
9684 if test "$cross_compiling" = yes; then :
9686 # Guess 'no' on native Windows.
9687 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
9688 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
9692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 #include <sys/types.h>
9695 #include <sys/stat.h>
9697 # include <unistd.h>
9698 #else /* on Windows with MSVC */
9700 # include <stdlib.h>
9701 # defined sleep(n) _sleep ((n) * 1000)
9712 #define O_NOFOLLOW 0
9714 static int const constants[] =
9716 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9717 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9724 int result = !constants;
9727 static char const sym[] = "conftest.sym";
9728 if (symlink ("/dev/null", sym) != 0)
9732 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9739 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9743 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9754 static char const file[] = "confdefs.h";
9755 int fd = open (file, O_RDONLY | O_NOATIME);
9761 if (fstat (fd, &st0) != 0)
9767 if (read (fd, &c, 1) != 1)
9771 if (close (fd) != 0)
9776 if (stat (file, &st1) != 0)
9779 if (st0.st_atime != st1.st_atime)
9791 if ac_fn_c_try_run
"$LINENO"; then :
9792 gl_cv_header_working_fcntl_h
=yes
9795 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
9796 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
9797 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9798 *) gl_cv_header_working_fcntl_h
='no';;
9801 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9802 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9808 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9810 case $gl_cv_header_working_fcntl_h in #(
9811 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
9815 cat >>confdefs.h
<<_ACEOF
9816 #define HAVE_WORKING_O_NOATIME $ac_val
9820 case $gl_cv_header_working_fcntl_h in #(
9821 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
9825 cat >>confdefs.h
<<_ACEOF
9826 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9831 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
9833 if test "x$ac_cv_type_pid_t" = xyes
; then :
9836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9839 #if defined _WIN64 && !defined __CYGWIN__
9852 if ac_fn_c_try_compile
"$LINENO"; then :
9855 gl_pid_type
='__int64'
9857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9859 cat >>confdefs.h
<<_ACEOF
9860 #define pid_t $gl_pid_type
9867 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9868 if test "x$ac_cv_type_mode_t" = xyes
; then :
9872 cat >>confdefs.h
<<_ACEOF
9884 HAVE_DECL_STRNCASECMP
=1;
9908 if test $gl_cv_have_include_next = yes; then
9909 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
9912 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
9913 if ${gl_cv_next_fnmatch_h+:} false
; then :
9914 $as_echo_n "(cached) " >&6
9917 if test $ac_cv_header_fnmatch_h = yes; then
9922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9924 #include <fnmatch.h>
9927 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9928 *) gl_absname_cpp
="$ac_cpp" ;;
9933 gl_dirsep_regex
='[/\\]'
9936 gl_dirsep_regex
='\/'
9939 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9940 gl_header_literal_regex
=`echo 'fnmatch.h' \
9941 | sed -e "$gl_make_literal_regex_sed"`
9942 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9943 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9949 gl_cv_absolute_fnmatch_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9950 sed -n "$gl_absolute_header_sed"`
9952 gl_header
=$gl_cv_absolute_fnmatch_h
9953 gl_cv_next_fnmatch_h
='"'$gl_header'"'
9955 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
9961 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
9963 NEXT_FNMATCH_H
=$gl_cv_next_fnmatch_h
9965 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9966 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9967 gl_next_as_first_directive
='<'fnmatch.h
'>'
9969 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9970 gl_next_as_first_directive
=$gl_cv_next_fnmatch_h
9972 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
=$gl_next_as_first_directive
9980 if test $ac_cv_header_fnmatch_h = yes; then
9991 if test $ac_cv_header_fnmatch_h != yes; then
9997 if test -n "$FNMATCH_H"; then
9998 GL_GENERATE_FNMATCH_H_TRUE
=
9999 GL_GENERATE_FNMATCH_H_FALSE
='#'
10001 GL_GENERATE_FNMATCH_H_TRUE
='#'
10002 GL_GENERATE_FNMATCH_H_FALSE
=
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
10015 $as_echo_n "checking for mbstate_t... " >&6; }
10016 if ${ac_cv_type_mbstate_t+:} false
; then :
10017 $as_echo_n "(cached) " >&6
10019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10021 $ac_includes_default
10026 mbstate_t x; return sizeof x;
10031 if ac_fn_c_try_compile
"$LINENO"; then :
10032 ac_cv_type_mbstate_t
=yes
10034 ac_cv_type_mbstate_t
=no
10036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
10039 $as_echo "$ac_cv_type_mbstate_t" >&6; }
10040 if test $ac_cv_type_mbstate_t = yes; then
10042 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
10046 $as_echo "#define mbstate_t int" >>confdefs.h
10067 GNULIB_COPYSIGNF
=0;
10068 GNULIB_COPYSIGNL
=0;
10127 GNULIB_REMAINDER
=0;
10128 GNULIB_REMAINDERF
=0;
10129 GNULIB_REMAINDERL
=0;
10221 HAVE_DECL_COPYSIGNF
=1;
10227 HAVE_DECL_EXPM1L
=1;
10228 HAVE_DECL_FLOORF
=1;
10229 HAVE_DECL_FLOORL
=1;
10230 HAVE_DECL_FREXPL
=1;
10231 HAVE_DECL_LDEXPL
=1;
10233 HAVE_DECL_LOG10L
=1;
10238 HAVE_DECL_REMAINDER
=1;
10239 HAVE_DECL_REMAINDERL
=1;
10242 HAVE_DECL_ROUNDF
=1;
10243 HAVE_DECL_ROUNDL
=1;
10248 HAVE_DECL_TRUNCF
=1;
10249 HAVE_DECL_TRUNCL
=1;
10281 REPLACE_HUGE_VAL
=0;
10288 REPLACE_ISFINITE
=0;
10311 REPLACE_REMAINDER
=0;
10312 REPLACE_REMAINDERF
=0;
10313 REPLACE_REMAINDERL
=0;
10319 REPLACE_SIGNBIT_USING_BUILTINS
=0;
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
10332 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
10333 if ${gl_cv_func_frexp_no_libm+:} false
; then :
10334 $as_echo_n "(cached) " >&6
10337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10344 int e; return frexp (x, &e) > 0;
10349 if ac_fn_c_try_link
"$LINENO"; then :
10350 gl_cv_func_frexp_no_libm
=yes
10352 gl_cv_func_frexp_no_libm
=no
10354 rm -f core conftest.err conftest.
$ac_objext \
10355 conftest
$ac_exeext conftest.
$ac_ext
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
10359 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
10361 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
10362 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
10368 cat >>confdefs.h
<<_ACEOF
10369 #define HAVE_DECL_ALARM $ac_have_decl
10376 if test $gl_cv_func_frexp_no_libm = no
; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10378 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10379 if ${gl_cv_func_frexp_in_libm+:} false
; then :
10380 $as_echo_n "(cached) " >&6
10385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10392 int e; return frexp (x, &e) > 0;
10397 if ac_fn_c_try_link
"$LINENO"; then :
10398 gl_cv_func_frexp_in_libm
=yes
10400 gl_cv_func_frexp_in_libm
=no
10402 rm -f core conftest.err conftest.
$ac_objext \
10403 conftest
$ac_exeext conftest.
$ac_ext
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10408 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10409 if test $gl_cv_func_frexp_in_libm = yes; then
10413 if test $gl_cv_func_frexp_no_libm = yes \
10414 ||
test $gl_cv_func_frexp_in_libm = yes; then
10416 LIBS
="$LIBS $FREXP_LIBM"
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10421 $as_echo_n "checking whether frexp works... " >&6; }
10422 if ${gl_cv_func_frexp_works+:} false
; then :
10423 $as_echo_n "(cached) " >&6
10426 if test "$cross_compiling" = yes; then :
10428 netbsd
* | irix
*) gl_cv_func_frexp_works
="guessing no" ;;
10429 mingw
*) # Guess yes with MSVC, no with mingw.
10430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10439 $EGREP "Good" >/dev
/null
2>&1; then :
10440 gl_cv_func_frexp_works
="guessing yes"
10442 gl_cv_func_frexp_works
="guessing no"
10447 *) gl_cv_func_frexp_works
="guessing yes" ;;
10451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10456 #include <string.h>
10457 #if HAVE_DECL_ALARM
10458 # include <signal.h>
10459 # include <unistd.h>
10461 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10462 ICC 10.0 has a bug when optimizing the expression -zero.
10463 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10464 to PowerPC on Mac OS X 10.5. */
10465 #if defined __hpux || defined __sgi || defined __ICC
10467 compute_minus_zero (void)
10469 return -DBL_MIN * DBL_MIN;
10471 # define minus_zero compute_minus_zero ()
10473 double minus_zero = -0.0;
10481 #if HAVE_DECL_ALARM
10482 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10483 number. Let the test fail in this case. */
10484 signal (SIGALRM, SIG_DFL);
10487 /* Test on denormalized numbers. */
10488 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10493 double y = frexp (x, &exp);
10494 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10495 On NetBSD: y = 0.75. Correct: y = 0.5. */
10499 /* Test on infinite numbers. */
10503 double y = frexp (x, &exp);
10507 /* Test on negative zero. */
10511 double y = frexp (x, &exp);
10512 if (memcmp (&y, &x, sizeof x))
10518 if ac_fn_c_try_run
"$LINENO"; then :
10519 gl_cv_func_frexp_works
=yes
10521 gl_cv_func_frexp_works
=no
10523 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10524 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10530 $as_echo "$gl_cv_func_frexp_works" >&6; }
10533 case "$gl_cv_func_frexp_works" in
10534 *yes) gl_func_frexp
=yes ;;
10535 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
10540 if test $gl_func_frexp = yes; then
10542 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
10549 $as_echo_n "checking whether long double and double are the same... " >&6; }
10550 if ${gl_cv_long_double_equals_double+:} false
; then :
10551 $as_echo_n "(cached) " >&6
10553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10554 /* end confdefs.h. */
10559 typedef int check[sizeof (long double) == sizeof (double)
10560 && LDBL_MANT_DIG == DBL_MANT_DIG
10561 && LDBL_MAX_EXP == DBL_MAX_EXP
10562 && LDBL_MIN_EXP == DBL_MIN_EXP
10569 if ac_fn_c_try_compile
"$LINENO"; then :
10570 gl_cv_long_double_equals_double
=yes
10572 gl_cv_long_double_equals_double
=no
10574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
10578 $as_echo "$gl_cv_long_double_equals_double" >&6; }
10579 if test $gl_cv_long_double_equals_double = yes; then
10581 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
10583 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
10585 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
10595 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10597 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
10605 if test $HAVE_DECL_FREXPL = 1; then
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10608 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10609 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
10610 $as_echo_n "(cached) " >&6
10613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10620 int e; return frexpl (x, &e) > 0;
10625 if ac_fn_c_try_link
"$LINENO"; then :
10626 gl_cv_func_frexpl_no_libm
=yes
10628 gl_cv_func_frexpl_no_libm
=no
10630 rm -f core conftest.err conftest.
$ac_objext \
10631 conftest
$ac_exeext conftest.
$ac_ext
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10635 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10637 if test $gl_cv_func_frexpl_no_libm = no
; then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10639 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10640 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
10641 $as_echo_n "(cached) " >&6
10646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10653 int e; return frexpl (x, &e) > 0;
10658 if ac_fn_c_try_link
"$LINENO"; then :
10659 gl_cv_func_frexpl_in_libm
=yes
10661 gl_cv_func_frexpl_in_libm
=no
10663 rm -f core conftest.err conftest.
$ac_objext \
10664 conftest
$ac_exeext conftest.
$ac_ext
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10669 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10670 if test $gl_cv_func_frexpl_in_libm = yes; then
10674 if test $gl_cv_func_frexpl_no_libm = yes \
10675 ||
test $gl_cv_func_frexpl_in_libm = yes; then
10677 LIBS
="$LIBS $FREXPL_LIBM"
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10681 $as_echo_n "checking whether frexpl works... " >&6; }
10682 if ${gl_cv_func_frexpl_works+:} false
; then :
10683 $as_echo_n "(cached) " >&6
10686 if test "$cross_compiling" = yes; then :
10689 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
10690 gl_cv_func_frexpl_works
="guessing no";;
10691 *) gl_cv_func_frexpl_works
="guessing yes";;
10695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10700 /* Override the values of <float.h>, like done in float.in.h. */
10701 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10702 # undef LDBL_MIN_EXP
10703 # define LDBL_MIN_EXP (-16381)
10705 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
10706 # undef LDBL_MIN_EXP
10707 # define LDBL_MIN_EXP (-16381)
10709 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10710 # undef LDBL_MIN_EXP
10711 # define LDBL_MIN_EXP DBL_MIN_EXP
10713 #if defined __sgi && (LDBL_MANT_DIG >= 106)
10714 # if defined __GNUC__
10715 # undef LDBL_MIN_EXP
10716 # define LDBL_MIN_EXP DBL_MIN_EXP
10723 long double frexpl (long double, int *);
10724 long double zero = 0.0L;
10728 volatile long double x;
10729 /* Test on finite numbers that fails on AIX 5.1. */
10737 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
10738 function returns an invalid (incorrectly normalized) value: it returns
10739 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
10740 but the correct result is
10741 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
10745 long double y = frexpl (x, &exp);
10746 if (!(exp == 1 && y == 0.505L))
10749 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
10750 LDBL_MAX_EXP = 16384.
10751 In the loop end test, we test x against Infinity, rather than comparing
10752 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
10755 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10766 /* Test on denormalized numbers. */
10769 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10774 long double y = frexpl (x, &exp);
10775 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10776 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10777 if (exp != LDBL_MIN_EXP - 1)
10781 /* Test on infinite numbers. */
10782 /* The Microsoft MSVC 14 compiler chokes on the expression 1.0 / 0.0. */
10786 long double y = frexpl (x, &exp);
10793 if ac_fn_c_try_run
"$LINENO"; then :
10794 gl_cv_func_frexpl_works
=yes
10796 gl_cv_func_frexpl_works
=no
10798 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10799 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10805 $as_echo "$gl_cv_func_frexpl_works" >&6; }
10808 case "$gl_cv_func_frexpl_works" in
10809 *yes) gl_func_frexpl
=yes ;;
10810 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
10815 if test $gl_func_frexpl = yes; then
10817 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10821 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
10822 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10824 FREXPL_LIBM
="$FREXP_LIBM"
10846 GNULIB_UTIMENSAT
=0;
10847 GNULIB_OVERRIDES_STRUCT_STAT
=0;
10848 GNULIB_MDA_CHMOD
=1;
10849 GNULIB_MDA_MKDIR
=1;
10850 GNULIB_MDA_UMASK
=1;
10863 REPLACE_FCHMODAT
=0;
10866 REPLACE_FUTIMENS
=0;
10870 REPLACE_MKFIFOAT
=0;
10874 REPLACE_UTIMENSAT
=0;
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10877 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10878 if ${ac_cv_header_stat_broken+:} false
; then :
10879 $as_echo_n "(cached) " >&6
10881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883 #include <sys/types.h>
10884 #include <sys/stat.h>
10886 #if defined S_ISBLK && defined S_IFDIR
10887 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10890 #if defined S_ISBLK && defined S_IFCHR
10891 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10894 #if defined S_ISLNK && defined S_IFREG
10895 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10898 #if defined S_ISSOCK && defined S_IFREG
10899 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10903 if ac_fn_c_try_compile
"$LINENO"; then :
10904 ac_cv_header_stat_broken
=no
10906 ac_cv_header_stat_broken
=yes
10908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10911 $as_echo "$ac_cv_header_stat_broken" >&6; }
10912 if test $ac_cv_header_stat_broken = yes; then
10914 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
10925 $as_echo_n "checking for 64-bit off_t... " >&6; }
10926 if ${gl_cv_type_off_t_64+:} false
; then :
10927 $as_echo_n "(cached) " >&6
10929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931 #include <sys/types.h>
10932 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
10942 if ac_fn_c_try_compile
"$LINENO"; then :
10943 gl_cv_type_off_t_64
=yes
10945 gl_cv_type_off_t_64
=no
10947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
10951 $as_echo "$gl_cv_type_off_t_64" >&6; }
10952 if test $gl_cv_type_off_t_64 = no
; then
10953 WINDOWS_64_BIT_OFF_T
=1
10955 WINDOWS_64_BIT_OFF_T
=0
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
10958 $as_echo_n "checking for 64-bit st_size... " >&6; }
10959 if ${gl_cv_member_st_size_64+:} false
; then :
10960 $as_echo_n "(cached) " >&6
10962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10964 #include <sys/types.h>
10966 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
10976 if ac_fn_c_try_compile
"$LINENO"; then :
10977 gl_cv_member_st_size_64
=yes
10979 gl_cv_member_st_size_64
=no
10981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
10985 $as_echo "$gl_cv_member_st_size_64" >&6; }
10986 if test $gl_cv_member_st_size_64 = no
; then
10987 WINDOWS_64_BIT_ST_SIZE
=1
10989 WINDOWS_64_BIT_ST_SIZE
=0
10993 WINDOWS_64_BIT_OFF_T
=0
10994 WINDOWS_64_BIT_ST_SIZE
=0
11012 if test $gl_cv_have_include_next = yes; then
11013 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
11016 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
11017 if ${gl_cv_next_sys_stat_h+:} false
; then :
11018 $as_echo_n "(cached) " >&6
11021 if test $ac_cv_header_sys_stat_h = yes; then
11026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11028 #include <sys/stat.h>
11031 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11032 *) gl_absname_cpp
="$ac_cpp" ;;
11037 gl_dirsep_regex
='[/\\]'
11040 gl_dirsep_regex
='\/'
11043 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11044 gl_header_literal_regex
=`echo 'sys/stat.h' \
11045 | sed -e "$gl_make_literal_regex_sed"`
11046 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11047 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11053 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11054 sed -n "$gl_absolute_header_sed"`
11056 gl_header
=$gl_cv_absolute_sys_stat_h
11057 gl_cv_next_sys_stat_h
='"'$gl_header'"'
11059 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
11065 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
11067 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
11069 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11070 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11071 gl_next_as_first_directive
='<'sys
/stat.h
'>'
11073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11074 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
11076 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
11085 WINDOWS_STAT_TIMESPEC
=0
11094 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
11095 #include <sys/stat.h>
11097 if test "x$ac_cv_type_nlink_t" = xyes
; then :
11101 $as_echo "#define nlink_t int" >>confdefs.h
11116 for ac_header
in sdkddkver.h
11118 ac_fn_c_check_header_mongrel
"$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
11119 if test "x$ac_cv_header_sdkddkver_h" = xyes
; then :
11120 cat >>confdefs.h
<<_ACEOF
11121 #define HAVE_SDKDDKVER_H 1
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
11136 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
11137 if ${gl_cv_func_getcwd_null+:} false
; then :
11138 $as_echo_n "(cached) " >&6
11140 if test "$cross_compiling" = yes; then :
11142 # Guess yes on glibc systems.
11143 *-gnu* | gnu
*) gl_cv_func_getcwd_null
="guessing yes";;
11144 # Guess yes on musl systems.
11145 *-musl*) gl_cv_func_getcwd_null
="guessing yes";;
11146 # Guess yes on Cygwin.
11147 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
11148 # If we don't know, obey --enable-cross-guesses.
11149 *) gl_cv_func_getcwd_null
="$gl_cross_guess_normal";;
11153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11156 # include <stdlib.h>
11158 # include <unistd.h>
11159 # else /* on Windows with MSVC */
11160 # include <direct.h>
11174 #if defined _WIN32 && ! defined __CYGWIN__
11175 /* mingw cwd does not start with '/', but _getcwd does allocate.
11176 However, mingw fails to honor non-zero size. */
11178 if (chdir ("/") != 0)
11182 char *f = getcwd (NULL, 0);
11186 { free (f); return 3; }
11188 { free (f); return 4; }
11198 if ac_fn_c_try_run
"$LINENO"; then :
11199 gl_cv_func_getcwd_null
=yes
11201 gl_cv_func_getcwd_null
=no
11203 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11204 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
11209 $as_echo "$gl_cv_func_getcwd_null" >&6; }
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
11213 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
11214 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
11215 $as_echo_n "(cached) " >&6
11217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11219 #include <unistd.h>
11231 char *getcwd (char *, size_t);
11238 if ac_fn_c_try_compile
"$LINENO"; then :
11239 gl_cv_func_getcwd_posix_signature
=yes
11241 gl_cv_func_getcwd_posix_signature
=no
11243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
11247 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
11249 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
11250 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
11256 cat >>confdefs.h
<<_ACEOF
11257 #define HAVE_DECL_GETCWD $ac_have_decl
11269 GNULIB_FPRINTF_POSIX
=0;
11285 GNULIB_OBSTACK_PRINTF
=0;
11286 GNULIB_OBSTACK_PRINTF_POSIX
=0;
11291 GNULIB_PRINTF_POSIX
=0;
11300 GNULIB_SPRINTF_POSIX
=0;
11301 GNULIB_STDIO_H_NONBLOCKING
=0;
11302 GNULIB_STDIO_H_SIGPIPE
=0;
11304 GNULIB_VASPRINTF
=0;
11309 GNULIB_VFPRINTF_POSIX
=0;
11311 GNULIB_VPRINTF_POSIX
=0;
11312 GNULIB_VSNPRINTF
=0;
11313 GNULIB_VSPRINTF_POSIX
=0;
11314 GNULIB_MDA_FCLOSEALL
=1;
11315 GNULIB_MDA_FDOPEN
=1;
11316 GNULIB_MDA_FILENO
=1;
11319 GNULIB_MDA_TEMPNAM
=1;
11320 HAVE_DECL_FCLOSEALL
=1;
11321 HAVE_DECL_FPURGE
=1;
11322 HAVE_DECL_FSEEKO
=1;
11323 HAVE_DECL_FTELLO
=1;
11324 HAVE_DECL_GETDELIM
=1;
11325 HAVE_DECL_GETLINE
=1;
11326 HAVE_DECL_OBSTACK_PRINTF
=1;
11327 HAVE_DECL_SNPRINTF
=1;
11328 HAVE_DECL_VSNPRINTF
=1;
11349 REPLACE_GETDELIM
=0;
11351 REPLACE_OBSTACK_PRINTF
=0;
11357 REPLACE_RENAMEAT
=0;
11358 REPLACE_SNPRINTF
=0;
11360 REPLACE_STDIO_READ_FUNCS
=0;
11361 REPLACE_STDIO_WRITE_FUNCS
=0;
11363 REPLACE_VASPRINTF
=0;
11364 REPLACE_VDPRINTF
=0;
11365 REPLACE_VFPRINTF
=0;
11367 REPLACE_VSNPRINTF
=0;
11368 REPLACE_VSPRINTF
=0;
11370 ac_fn_c_check_decl
"$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
11371 if test "x$ac_cv_have_decl_getdelim" = xyes
; then :
11377 cat >>confdefs.h
<<_ACEOF
11378 #define HAVE_DECL_GETDELIM $ac_have_decl
11385 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
11386 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
11392 cat >>confdefs.h
<<_ACEOF
11393 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
11396 ac_fn_c_check_decl
"$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
11397 if test "x$ac_cv_have_decl_getline" = xyes
; then :
11403 cat >>confdefs.h
<<_ACEOF
11404 #define HAVE_DECL_GETLINE $ac_have_decl
11407 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
11408 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
11414 cat >>confdefs.h
<<_ACEOF
11415 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
11420 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
11421 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
11427 cat >>confdefs.h
<<_ACEOF
11428 #define HAVE_DECL_GETLOGIN $ac_have_decl
11435 LIB_GETLOGIN
='-ladvapi32' ;;
11446 GNULIB_GETRANDOM
=0;
11448 REPLACE_GETRANDOM
=0;
11453 GNULIB_GETTIMEOFDAY
=0;
11454 HAVE_GETTIMEOFDAY
=1;
11455 HAVE_STRUCT_TIMEVAL
=1;
11457 REPLACE_GETTIMEOFDAY
=0;
11458 REPLACE_STRUCT_TIMEVAL
=0;
11475 if test $gl_cv_have_include_next = yes; then
11476 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
11479 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
11480 if ${gl_cv_next_sys_time_h+:} false
; then :
11481 $as_echo_n "(cached) " >&6
11484 if test $ac_cv_header_sys_time_h = yes; then
11489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11491 #include <sys/time.h>
11494 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11495 *) gl_absname_cpp
="$ac_cpp" ;;
11500 gl_dirsep_regex
='[/\\]'
11503 gl_dirsep_regex
='\/'
11506 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11507 gl_header_literal_regex
=`echo 'sys/time.h' \
11508 | sed -e "$gl_make_literal_regex_sed"`
11509 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11510 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11516 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11517 sed -n "$gl_absolute_header_sed"`
11519 gl_header
=$gl_cv_absolute_sys_time_h
11520 gl_cv_next_sys_time_h
='"'$gl_header'"'
11522 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
11528 $as_echo "$gl_cv_next_sys_time_h" >&6; }
11530 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
11532 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11533 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11534 gl_next_as_first_directive
='<'sys
/time.h
'>'
11536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11537 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
11539 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
11545 if test $ac_cv_header_sys_time_h != yes; then
11553 if test $ac_cv_header_sys_socket_h != yes; then
11554 for ac_header
in winsock2.h
11556 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11557 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
11558 cat >>confdefs.h
<<_ACEOF
11559 #define HAVE_WINSOCK2_H 1
11567 if test "$ac_cv_header_winsock2_h" = yes; then
11569 UNISTD_H_HAVE_WINSOCK2_H
=1
11570 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
11577 $as_echo_n "checking for struct timeval... " >&6; }
11578 if ${gl_cv_sys_struct_timeval+:} false
; then :
11579 $as_echo_n "(cached) " >&6
11581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11583 #if HAVE_SYS_TIME_H
11584 #include <sys/time.h>
11587 #if HAVE_WINSOCK2_H
11588 # include <winsock2.h>
11594 static struct timeval x; x.tv_sec = x.tv_usec;
11599 if ac_fn_c_try_compile
"$LINENO"; then :
11600 gl_cv_sys_struct_timeval
=yes
11602 gl_cv_sys_struct_timeval
=no
11604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
11608 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
11609 if test $gl_cv_sys_struct_timeval != yes; then
11610 HAVE_STRUCT_TIMEVAL
=0
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
11613 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
11614 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
11615 $as_echo_n "(cached) " >&6
11617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11619 #if HAVE_SYS_TIME_H
11620 #include <sys/time.h>
11623 #if HAVE_WINSOCK2_H
11624 # include <winsock2.h>
11630 static struct timeval x;
11631 typedef int verify_tv_sec_type[
11632 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
11639 if ac_fn_c_try_compile
"$LINENO"; then :
11640 gl_cv_sys_struct_timeval_tv_sec
=yes
11642 gl_cv_sys_struct_timeval_tv_sec
=no
11644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
11648 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
11649 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
11650 REPLACE_STRUCT_TIMEVAL
=1
11666 HAVE_GLOB_PATTERN_P
=1;
11668 REPLACE_GLOB_PATTERN_P
=0;
11686 if test $gl_cv_have_include_next = yes; then
11687 gl_cv_next_glob_h
='<'glob.h
'>'
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <glob.h>" >&5
11690 $as_echo_n "checking absolute name of <glob.h>... " >&6; }
11691 if ${gl_cv_next_glob_h+:} false
; then :
11692 $as_echo_n "(cached) " >&6
11695 if test $ac_cv_header_glob_h = yes; then
11700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h. */
11705 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11706 *) gl_absname_cpp
="$ac_cpp" ;;
11711 gl_dirsep_regex
='[/\\]'
11714 gl_dirsep_regex
='\/'
11717 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11718 gl_header_literal_regex
=`echo 'glob.h' \
11719 | sed -e "$gl_make_literal_regex_sed"`
11720 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11721 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11727 gl_cv_absolute_glob_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11728 sed -n "$gl_absolute_header_sed"`
11730 gl_header
=$gl_cv_absolute_glob_h
11731 gl_cv_next_glob_h
='"'$gl_header'"'
11733 gl_cv_next_glob_h
='<'glob.h
'>'
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_glob_h" >&5
11739 $as_echo "$gl_cv_next_glob_h" >&6; }
11741 NEXT_GLOB_H
=$gl_cv_next_glob_h
11743 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11744 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11745 gl_next_as_first_directive
='<'glob.h
'>'
11747 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11748 gl_next_as_first_directive
=$gl_cv_next_glob_h
11750 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
=$gl_next_as_first_directive
11756 if test $ac_cv_header_glob_h = yes; then
11767 if test $ac_cv_header_glob_h != yes; then
11773 if test -n "$GLOB_H"; then
11774 GL_GENERATE_GLOB_H_TRUE
=
11775 GL_GENERATE_GLOB_H_FALSE
='#'
11777 GL_GENERATE_GLOB_H_TRUE
='#'
11778 GL_GENERATE_GLOB_H_FALSE
=
11796 if test -z "$gl_pthreadlib_body_done"; then
11800 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
11801 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
11802 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11803 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11804 gl_have_pthread_h
=yes
11806 gl_have_pthread_h
=no
11810 if test "$gl_have_pthread_h" = yes; then
11811 # Other possible tests:
11812 # -lpthreads (FSU threads, PCthreads)
11814 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
11815 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
11816 # the second one only in libpthread, and lock.c needs it.
11818 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
11819 # needs -pthread for some reason. See:
11820 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
11822 for gl_pthread
in '' '-pthread'; do
11823 LIBS
="$LIBS $gl_pthread"
11824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11825 /* end confdefs.h. */
11826 #include <pthread.h>
11828 pthread_mutexattr_t ma;
11833 pthread_mutex_lock (&m);
11834 pthread_mutexattr_init (&ma);
11839 if ac_fn_c_try_link
"$LINENO"; then :
11841 LIBPTHREAD
=$gl_pthread
11842 LIBPMULTITHREAD
=$gl_pthread
11844 rm -f core conftest.err conftest.
$ac_objext \
11845 conftest
$ac_exeext conftest.
$ac_ext
11847 test $gl_pthread_api = yes && break
11850 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
11851 # since it is defined as a macro on OSF/1.)
11852 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
11853 # The program links fine without libpthread. But it may actually
11854 # need to link with libpthread in order to create multiple threads.
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11856 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11857 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
11858 $as_echo_n "(cached) " >&6
11860 ac_check_lib_save_LIBS
=$LIBS
11861 LIBS
="-lpthread $LIBS"
11862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11865 /* Override any GCC internal prototype to avoid an error.
11866 Use char because int might match the return type of a GCC
11867 builtin and then its argument prototype would still apply. */
11871 char pthread_kill ();
11875 return pthread_kill ();
11880 if ac_fn_c_try_link
"$LINENO"; then :
11881 ac_cv_lib_pthread_pthread_kill
=yes
11883 ac_cv_lib_pthread_pthread_kill
=no
11885 rm -f core conftest.err conftest.
$ac_objext \
11886 conftest
$ac_exeext conftest.
$ac_ext
11887 LIBS
=$ac_check_lib_save_LIBS
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11890 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11891 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
11892 LIBPMULTITHREAD
=-lpthread
11893 # On Solaris and HP-UX, most pthread functions exist also in libc.
11894 # Therefore pthread_in_use() needs to actually try to create a
11895 # thread: pthread_create from libc will fail, whereas
11896 # pthread_create will actually create a thread.
11897 # On Solaris 10 or newer, this test is no longer needed, because
11898 # libc contains the fully functional pthread functions.
11900 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
11902 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
11908 elif test $gl_pthread_api != yes; then
11909 # Some library is needed. Try libpthread and libc_r.
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
11911 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
11912 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
11913 $as_echo_n "(cached) " >&6
11915 ac_check_lib_save_LIBS
=$LIBS
11916 LIBS
="-lpthread $LIBS"
11917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11926 char pthread_kill ();
11930 return pthread_kill ();
11935 if ac_fn_c_try_link
"$LINENO"; then :
11936 ac_cv_lib_pthread_pthread_kill
=yes
11938 ac_cv_lib_pthread_pthread_kill
=no
11940 rm -f core conftest.err conftest.
$ac_objext \
11941 conftest
$ac_exeext conftest.
$ac_ext
11942 LIBS
=$ac_check_lib_save_LIBS
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
11945 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
11946 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
11948 LIBPTHREAD
=-lpthread
11949 LIBPMULTITHREAD
=-lpthread
11952 if test $gl_pthread_api != yes; then
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
11955 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
11956 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
11957 $as_echo_n "(cached) " >&6
11959 ac_check_lib_save_LIBS
=$LIBS
11961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11970 char pthread_kill ();
11974 return pthread_kill ();
11979 if ac_fn_c_try_link
"$LINENO"; then :
11980 ac_cv_lib_c_r_pthread_kill
=yes
11982 ac_cv_lib_c_r_pthread_kill
=no
11984 rm -f core conftest.err conftest.
$ac_objext \
11985 conftest
$ac_exeext conftest.
$ac_ext
11986 LIBS
=$ac_check_lib_save_LIBS
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
11989 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
11990 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
11993 LIBPMULTITHREAD
=-lc_r
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
12000 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
12002 $as_echo "$gl_pthread_api" >&6; }
12005 if test $gl_pthread_api = yes; then
12007 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
12011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12022 if ac_fn_c_try_link
"$LINENO"; then :
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
12027 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
12028 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
12029 $as_echo_n "(cached) " >&6
12031 ac_check_lib_save_LIBS
=$LIBS
12033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12036 /* Override any GCC internal prototype to avoid an error.
12037 Use char because int might match the return type of a GCC
12038 builtin and then its argument prototype would still apply. */
12042 char sched_yield ();
12046 return sched_yield ();
12051 if ac_fn_c_try_link
"$LINENO"; then :
12052 ac_cv_lib_rt_sched_yield
=yes
12054 ac_cv_lib_rt_sched_yield
=no
12056 rm -f core conftest.err conftest.
$ac_objext \
12057 conftest
$ac_exeext conftest.
$ac_ext
12058 LIBS
=$ac_check_lib_save_LIBS
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
12061 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
12062 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
12063 LIB_SCHED_YIELD
=-lrt
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
12066 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
12067 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
12068 $as_echo_n "(cached) " >&6
12070 ac_check_lib_save_LIBS
=$LIBS
12071 LIBS
="-lposix4 $LIBS"
12072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12081 char sched_yield ();
12085 return sched_yield ();
12090 if ac_fn_c_try_link
"$LINENO"; then :
12091 ac_cv_lib_posix4_sched_yield
=yes
12093 ac_cv_lib_posix4_sched_yield
=no
12095 rm -f core conftest.err conftest.
$ac_objext \
12096 conftest
$ac_exeext conftest.
$ac_ext
12097 LIBS
=$ac_check_lib_save_LIBS
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
12100 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
12101 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
12102 LIB_SCHED_YIELD
=-lposix4
12109 rm -f core conftest.err conftest.
$ac_objext \
12110 conftest
$ac_exeext conftest.
$ac_ext
12113 gl_pthreadlib_body_done
=done
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
12125 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
12126 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
12127 $as_echo_n "(cached) " >&6
12130 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
12131 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
12132 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
12133 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
12134 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
12135 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
12136 # If we don't know, obey --enable-cross-guesses.
12138 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
12143 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
12147 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
12148 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
12152 case "$gl_cv_func_setlocale_null_all_mtsafe" in
12153 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
12154 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
12157 cat >>confdefs.h
<<_ACEOF
12158 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
12163 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
12164 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
12165 $as_echo_n "(cached) " >&6
12168 # Guess no on OpenBSD, AIX.
12170 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
12171 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
12172 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
12173 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
12174 # If we don't know, obey --enable-cross-guesses.
12176 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
12181 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
12185 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
12186 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
12190 case "$gl_cv_func_setlocale_null_one_mtsafe" in
12191 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
12192 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
12195 cat >>confdefs.h
<<_ACEOF
12196 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
12200 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
12202 mingw
*) LIB_SETLOCALE_NULL
= ;;
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
12207 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
12208 if ${gl_cv_have_weak+:} false
; then :
12209 $as_echo_n "(cached) " >&6
12212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12214 extern void xyzzy ();
12224 if ac_fn_c_try_link
"$LINENO"; then :
12225 gl_cv_have_weak
=maybe
12227 rm -f core conftest.err conftest.
$ac_objext \
12228 conftest
$ac_exeext conftest.
$ac_ext
12229 if test $gl_cv_have_weak = maybe
; then
12230 if test "$cross_compiling" = yes; then :
12231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12234 Extensible Linking Format
12238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12239 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
12240 gl_cv_have_weak
="guessing yes"
12242 gl_cv_have_weak
="guessing no"
12248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12255 return (fputs == NULL);
12258 if ac_fn_c_try_run
"$LINENO"; then :
12259 gl_cv_have_weak
=yes
12263 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12264 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12268 case " $LDFLAGS " in
12269 *" -static "*) gl_cv_have_weak
=no
;;
12271 case "$gl_cv_have_weak" in
12274 freebsd
* | dragonfly
*)
12276 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
12277 cat <<EOF > conftest2.c
12278 #include <pthread.h>
12279 #pragma weak pthread_mutexattr_gettype
12282 return (pthread_mutexattr_gettype != NULL);
12285 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
12286 || gl_cv_have_weak
=no
12287 rm -f conftest1.c libempty.so conftest2.c conftest
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
12295 $as_echo "$gl_cv_have_weak" >&6; }
12296 case "$gl_cv_have_weak" in
12299 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
12304 case "$gl_cv_have_weak" in
12305 *yes) LIB_SETLOCALE_NULL
= ;;
12306 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
12311 LIB_SETLOCALE_NULL
=
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
12324 $as_echo_n "checking for IPv4 sockets... " >&6; }
12325 if ${gl_cv_socket_ipv4+:} false
; then :
12326 $as_echo_n "(cached) " >&6
12328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330 #include <sys/types.h>
12331 #ifdef HAVE_SYS_SOCKET_H
12332 #include <sys/socket.h>
12334 #ifdef HAVE_NETINET_IN_H
12335 #include <netinet/in.h>
12337 #ifdef HAVE_WINSOCK2_H
12338 #include <winsock2.h>
12343 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
12344 if (&x && &y && &z) return 0;
12349 if ac_fn_c_try_compile
"$LINENO"; then :
12350 gl_cv_socket_ipv4
=yes
12352 gl_cv_socket_ipv4
=no
12354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
12357 $as_echo "$gl_cv_socket_ipv4" >&6; }
12358 if test $gl_cv_socket_ipv4 = yes; then
12360 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
12365 $as_echo_n "checking for IPv6 sockets... " >&6; }
12366 if ${gl_cv_socket_ipv6+:} false
; then :
12367 $as_echo_n "(cached) " >&6
12369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 #include <sys/types.h>
12372 #ifdef HAVE_SYS_SOCKET_H
12373 #include <sys/socket.h>
12375 #ifdef HAVE_NETINET_IN_H
12376 #include <netinet/in.h>
12378 #ifdef HAVE_WINSOCK2_H
12379 #include <winsock2.h>
12381 #ifdef HAVE_WS2TCPIP_H
12382 #include <ws2tcpip.h>
12387 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
12388 if (&x && &y && &z) return 0;
12393 if ac_fn_c_try_compile
"$LINENO"; then :
12394 gl_cv_socket_ipv6
=yes
12396 gl_cv_socket_ipv6
=no
12398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
12401 $as_echo "$gl_cv_socket_ipv6" >&6; }
12402 if test $gl_cv_socket_ipv6 = yes; then
12404 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
12420 if test $gl_cv_have_include_next = yes; then
12421 gl_cv_next_limits_h
='<'limits.h
'>'
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
12424 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
12425 if ${gl_cv_next_limits_h+:} false
; then :
12426 $as_echo_n "(cached) " >&6
12429 if test $ac_cv_header_limits_h = yes; then
12434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436 #include <limits.h>
12439 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12440 *) gl_absname_cpp
="$ac_cpp" ;;
12445 gl_dirsep_regex
='[/\\]'
12448 gl_dirsep_regex
='\/'
12451 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12452 gl_header_literal_regex
=`echo 'limits.h' \
12453 | sed -e "$gl_make_literal_regex_sed"`
12454 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12455 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12461 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12462 sed -n "$gl_absolute_header_sed"`
12464 gl_header
=$gl_cv_absolute_limits_h
12465 gl_cv_next_limits_h
='"'$gl_header'"'
12467 gl_cv_next_limits_h
='<'limits.h
'>'
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
12473 $as_echo "$gl_cv_next_limits_h" >&6; }
12475 NEXT_LIMITS_H
=$gl_cv_next_limits_h
12477 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12478 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12479 gl_next_as_first_directive
='<'limits.h
'>'
12481 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12482 gl_next_as_first_directive
=$gl_cv_next_limits_h
12484 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
12491 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
12492 if ${gl_cv_header_limits_width+:} false
; then :
12493 $as_echo_n "(cached) " >&6
12495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12498 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12500 #include <limits.h>
12501 long long llm = LLONG_MAX;
12503 int ullw = ULLONG_WIDTH;
12513 if ac_fn_c_try_compile
"$LINENO"; then :
12514 gl_cv_header_limits_width
=yes
12516 gl_cv_header_limits_width
=no
12518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
12521 $as_echo "$gl_cv_header_limits_width" >&6; }
12522 if test "$gl_cv_header_limits_width" = yes; then
12528 if test -n "$LIMITS_H"; then
12529 GL_GENERATE_LIMITS_H_TRUE
=
12530 GL_GENERATE_LIMITS_H_FALSE
='#'
12532 GL_GENERATE_LIMITS_H_TRUE
='#'
12533 GL_GENERATE_LIMITS_H_FALSE
=
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12539 $as_echo_n "checking for wint_t... " >&6; }
12540 if ${gt_cv_c_wint_t+:} false
; then :
12541 $as_echo_n "(cached) " >&6
12543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12546 wint_t foo = (wchar_t)'\0';
12555 if ac_fn_c_try_compile
"$LINENO"; then :
12560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12563 $as_echo "$gt_cv_c_wint_t" >&6; }
12564 if test $gt_cv_c_wint_t = yes; then
12566 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
12570 $as_echo_n "checking whether wint_t is large enough... " >&6; }
12571 if ${gl_cv_type_wint_t_large_enough+:} false
; then :
12572 $as_echo_n "(cached) " >&6
12574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12577 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
12587 if ac_fn_c_try_compile
"$LINENO"; then :
12588 gl_cv_type_wint_t_large_enough
=yes
12590 gl_cv_type_wint_t_large_enough
=no
12592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
12595 $as_echo "$gl_cv_type_wint_t_large_enough" >&6; }
12596 if test $gl_cv_type_wint_t_large_enough = no
; then
12597 GNULIB_OVERRIDES_WINT_T
=1
12599 GNULIB_OVERRIDES_WINT_T
=0
12602 GNULIB_OVERRIDES_WINT_T
=0
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
12614 $as_echo_n "checking whether the compiler produces multi-arch binaries... " >&6; }
12615 if ${gl_cv_c_multiarch+:} false
; then :
12616 $as_echo_n "(cached) " >&6
12618 gl_cv_c_multiarch
=no
12619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621 #ifndef __APPLE_CC__
12622 not a universal capable compiler
12627 if ac_fn_c_try_compile
"$LINENO"; then :
12631 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12632 if test -n "$prev"; then
12634 i?
86 | x86_64 | ppc | ppc64 | arm | arm64
)
12635 if test -z "$arch" ||
test "$arch" = "$word"; then
12638 gl_cv_c_multiarch
=yes
12644 if test "x$word" = "x-arch"; then
12651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
12655 $as_echo "$gl_cv_c_multiarch" >&6; }
12656 if test $gl_cv_c_multiarch = yes; then
12657 APPLE_UNIVERSAL_BUILD
=1
12659 APPLE_UNIVERSAL_BUILD
=0
12669 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12672 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12676 if test $ac_cv_header_wchar_h = yes; then
12684 if test $ac_cv_header_inttypes_h = yes; then
12692 if test $ac_cv_header_sys_types_h = yes; then
12708 if test $gl_cv_have_include_next = yes; then
12709 gl_cv_next_stdint_h
='<'stdint.h
'>'
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
12712 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
12713 if ${gl_cv_next_stdint_h+:} false
; then :
12714 $as_echo_n "(cached) " >&6
12717 if test $ac_cv_header_stdint_h = yes; then
12722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12724 #include <stdint.h>
12727 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12728 *) gl_absname_cpp
="$ac_cpp" ;;
12733 gl_dirsep_regex
='[/\\]'
12736 gl_dirsep_regex
='\/'
12739 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12740 gl_header_literal_regex
=`echo 'stdint.h' \
12741 | sed -e "$gl_make_literal_regex_sed"`
12742 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12743 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12749 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12750 sed -n "$gl_absolute_header_sed"`
12752 gl_header
=$gl_cv_absolute_stdint_h
12753 gl_cv_next_stdint_h
='"'$gl_header'"'
12755 gl_cv_next_stdint_h
='<'stdint.h
'>'
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
12761 $as_echo "$gl_cv_next_stdint_h" >&6; }
12763 NEXT_STDINT_H
=$gl_cv_next_stdint_h
12765 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12767 gl_next_as_first_directive
='<'stdint.h
'>'
12769 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12770 gl_next_as_first_directive
=$gl_cv_next_stdint_h
12772 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
12777 if test $ac_cv_header_stdint_h = yes; then
12784 if test $ac_cv_header_stdint_h = yes; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
12786 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
12787 if ${gl_cv_header_working_stdint_h+:} false
; then :
12788 $as_echo_n "(cached) " >&6
12790 gl_cv_header_working_stdint_h
=no
12791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12795 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12796 #define __STDC_CONSTANT_MACROS 1
12797 #define __STDC_LIMIT_MACROS 1
12798 #include <stdint.h>
12799 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
12800 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12801 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12805 #include <stddef.h>
12806 #include <signal.h>
12808 # include <wchar.h>
12813 int8_t a1 = INT8_MAX;
12814 int8_t a1min = INT8_MIN;
12817 int16_t a2 = INT16_MAX;
12818 int16_t a2min = INT16_MIN;
12821 int32_t a3 = INT32_MAX;
12822 int32_t a3min = INT32_MIN;
12825 int64_t a4 = INT64_MAX;
12826 int64_t a4min = INT64_MIN;
12829 uint8_t b1 = UINT8_MAX;
12831 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12834 uint16_t b2 = UINT16_MAX;
12837 uint32_t b3 = UINT32_MAX;
12840 uint64_t b4 = UINT64_MAX;
12842 int_least8_t c1 = INT8_C (0x7f);
12843 int_least8_t c1max = INT_LEAST8_MAX;
12844 int_least8_t c1min = INT_LEAST8_MIN;
12845 int_least16_t c2 = INT16_C (0x7fff);
12846 int_least16_t c2max = INT_LEAST16_MAX;
12847 int_least16_t c2min = INT_LEAST16_MIN;
12848 int_least32_t c3 = INT32_C (0x7fffffff);
12849 int_least32_t c3max = INT_LEAST32_MAX;
12850 int_least32_t c3min = INT_LEAST32_MIN;
12851 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
12852 int_least64_t c4max = INT_LEAST64_MAX;
12853 int_least64_t c4min = INT_LEAST64_MIN;
12854 uint_least8_t d1 = UINT8_C (0xff);
12855 uint_least8_t d1max = UINT_LEAST8_MAX;
12856 uint_least16_t d2 = UINT16_C (0xffff);
12857 uint_least16_t d2max = UINT_LEAST16_MAX;
12858 uint_least32_t d3 = UINT32_C (0xffffffff);
12859 uint_least32_t d3max = UINT_LEAST32_MAX;
12860 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
12861 uint_least64_t d4max = UINT_LEAST64_MAX;
12862 int_fast8_t e1 = INT_FAST8_MAX;
12863 int_fast8_t e1min = INT_FAST8_MIN;
12864 int_fast16_t e2 = INT_FAST16_MAX;
12865 int_fast16_t e2min = INT_FAST16_MIN;
12866 int_fast32_t e3 = INT_FAST32_MAX;
12867 int_fast32_t e3min = INT_FAST32_MIN;
12868 int_fast64_t e4 = INT_FAST64_MAX;
12869 int_fast64_t e4min = INT_FAST64_MIN;
12870 uint_fast8_t f1 = UINT_FAST8_MAX;
12871 uint_fast16_t f2 = UINT_FAST16_MAX;
12872 uint_fast32_t f3 = UINT_FAST32_MAX;
12873 uint_fast64_t f4 = UINT_FAST64_MAX;
12875 intptr_t g = INTPTR_MAX;
12876 intptr_t gmin = INTPTR_MIN;
12879 uintptr_t h = UINTPTR_MAX;
12881 intmax_t i = INTMAX_MAX;
12882 uintmax_t j = UINTMAX_MAX;
12884 /* Check that SIZE_MAX has the correct type, if possible. */
12885 #if 201112 <= __STDC_VERSION__
12886 int k = _Generic (SIZE_MAX, size_t: 0);
12887 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
12888 || (0x5110 <= __SUNPRO_C && !__STDC__))
12890 extern __typeof__ (SIZE_MAX) k;
12893 #include <limits.h> /* for CHAR_BIT */
12894 #define TYPE_MINIMUM(t) \
12895 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
12896 #define TYPE_MAXIMUM(t) \
12897 ((t) ((t) 0 < (t) -1 \
12899 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
12902 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
12903 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
12905 /* Detect bug in FreeBSD 6.0 / ia64. */
12906 int check_SIG_ATOMIC:
12907 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
12908 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
12910 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
12912 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
12913 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
12915 /* Detect bug in mingw. */
12917 WINT_MIN == TYPE_MINIMUM (wint_t)
12918 && WINT_MAX == TYPE_MAXIMUM (wint_t)
12921 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
12923 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
12924 int check_UINT16_C:
12925 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
12927 /* Detect bugs in OpenBSD 3.9 stdint.h. */
12929 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
12932 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
12935 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
12938 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
12940 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
12941 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
12942 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
12943 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
12944 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
12945 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
12946 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
12947 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
12948 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
12949 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
12950 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12961 if ac_fn_c_try_compile
"$LINENO"; then :
12962 if test "$cross_compiling" = yes; then :
12964 # Guess yes on native Windows.
12965 mingw
*) gl_cv_header_working_stdint_h
="guessing yes" ;;
12966 # In general, assume it works.
12967 *) gl_cv_header_working_stdint_h
="guessing yes" ;;
12971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12975 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12976 #define __STDC_CONSTANT_MACROS 1
12977 #define __STDC_LIMIT_MACROS 1
12978 #include <stdint.h>
12981 #include <stddef.h>
12982 #include <signal.h>
12984 # include <wchar.h>
12989 #include <string.h>
12990 #define MVAL(macro) MVAL1(macro)
12991 #define MVAL1(expression) #expression
12992 static const char *macro_values[] =
13026 for (mv = macro_values; *mv != NULL; mv++)
13028 const char *value = *mv;
13029 /* Test whether it looks like a cast expression. */
13030 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
13031 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
13032 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
13033 || strncmp (value, "((int)"/*)*/, 6) == 0
13034 || strncmp (value, "((signed short)"/*)*/, 15) == 0
13035 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
13036 return mv - macro_values + 1;
13044 if ac_fn_c_try_run
"$LINENO"; then :
13045 gl_cv_header_working_stdint_h
=yes
13047 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13048 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
13057 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
13060 HAVE_C99_STDINT_H
=0
13061 HAVE_SYS_BITYPES_H
=0
13062 HAVE_SYS_INTTYPES_H
=0
13064 case "$gl_cv_header_working_stdint_h" in
13066 HAVE_C99_STDINT_H
=1
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
13068 $as_echo_n "checking whether stdint.h works without ISO C predefines... " >&6; }
13069 if ${gl_cv_header_stdint_without_STDC_macros+:} false
; then :
13070 $as_echo_n "(cached) " >&6
13072 gl_cv_header_stdint_without_STDC_macros
=no
13073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13077 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13078 #include <stdint.h>
13081 #include <stddef.h>
13082 #include <signal.h>
13084 # include <wchar.h>
13088 intmax_t im = INTMAX_MAX;
13089 int32_t i32 = INT32_C (0x7fffffff);
13099 if ac_fn_c_try_compile
"$LINENO"; then :
13100 gl_cv_header_stdint_without_STDC_macros
=yes
13102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
13106 $as_echo "$gl_cv_header_stdint_without_STDC_macros" >&6; }
13108 if test $gl_cv_header_stdint_without_STDC_macros = no
; then
13110 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
13113 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
13117 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
13118 if ${gl_cv_header_stdint_width+:} false
; then :
13119 $as_echo_n "(cached) " >&6
13121 gl_cv_header_stdint_width
=no
13122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13125 /* Work if build is not clean. */
13126 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
13127 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
13128 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
13130 #include <stdint.h>
13132 #include <stddef.h>
13133 #include <signal.h>
13135 # include <wchar.h>
13138 int iw = UINTMAX_WIDTH;
13148 if ac_fn_c_try_compile
"$LINENO"; then :
13149 gl_cv_header_stdint_width
=yes
13151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
13154 $as_echo "$gl_cv_header_stdint_width" >&6; }
13155 if test "$gl_cv_header_stdint_width" = yes; then
13160 for ac_header
in sys
/inttypes.h sys
/bitypes.h
13162 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13163 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13164 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13165 cat >>confdefs.h
<<_ACEOF
13166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13173 if test $ac_cv_header_sys_inttypes_h = yes; then
13174 HAVE_SYS_INTTYPES_H
=1
13176 if test $ac_cv_header_sys_bitypes_h = yes; then
13177 HAVE_SYS_BITYPES_H
=1
13181 if test $APPLE_UNIVERSAL_BUILD = 0; then
13184 for gltype
in ptrdiff_t size_t
; do
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
13186 $as_echo_n "checking for bit size of $gltype... " >&6; }
13187 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
13188 $as_echo_n "(cached) " >&6
13190 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
13191 #include <stddef.h>
13192 #include <signal.h>
13194 # include <wchar.h>
13197 #include <limits.h>"; then :
13203 eval gl_cv_bitsizeof_
${gltype}=\
$result
13206 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13208 $as_echo "$ac_res" >&6; }
13209 eval result
=\
$gl_cv_bitsizeof_${gltype}
13210 if test $result = unknown
; then
13213 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13214 cat >>confdefs.h
<<_ACEOF
13215 #define BITSIZEOF_${GLTYPE} $result
13218 eval BITSIZEOF_
${GLTYPE}=\
$result
13225 for gltype
in sig_atomic_t wchar_t wint_t
; do
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
13227 $as_echo_n "checking for bit size of $gltype... " >&6; }
13228 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
13229 $as_echo_n "(cached) " >&6
13231 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
13232 #include <stddef.h>
13233 #include <signal.h>
13235 # include <wchar.h>
13238 #include <limits.h>"; then :
13244 eval gl_cv_bitsizeof_
${gltype}=\
$result
13247 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13249 $as_echo "$ac_res" >&6; }
13250 eval result
=\
$gl_cv_bitsizeof_${gltype}
13251 if test $result = unknown
; then
13254 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13255 cat >>confdefs.h
<<_ACEOF
13256 #define BITSIZEOF_${GLTYPE} $result
13259 eval BITSIZEOF_
${GLTYPE}=\
$result
13265 for gltype
in sig_atomic_t wchar_t wint_t
; do
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
13267 $as_echo_n "checking whether $gltype is signed... " >&6; }
13268 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
13269 $as_echo_n "(cached) " >&6
13271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13274 #include <stddef.h>
13275 #include <signal.h>
13277 # include <wchar.h>
13280 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
13289 if ac_fn_c_try_compile
"$LINENO"; then :
13294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13295 eval gl_cv_type_
${gltype}_signed
=\
$result
13298 eval ac_res
=\
$gl_cv_type_${gltype}_signed
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13300 $as_echo "$ac_res" >&6; }
13301 eval result
=\
$gl_cv_type_${gltype}_signed
13302 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13303 if test "$result" = yes; then
13304 cat >>confdefs.h
<<_ACEOF
13305 #define HAVE_SIGNED_${GLTYPE} 1
13308 eval HAVE_SIGNED_
${GLTYPE}=1
13310 eval HAVE_SIGNED_
${GLTYPE}=0
13315 gl_cv_type_ptrdiff_t_signed
=yes
13316 gl_cv_type_size_t_signed
=no
13317 if test $APPLE_UNIVERSAL_BUILD = 0; then
13320 for gltype
in ptrdiff_t size_t
; do
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
13322 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
13323 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
13324 $as_echo_n "(cached) " >&6
13326 eval gl_cv_type_
${gltype}_suffix
=no
13327 eval result
=\
$gl_cv_type_${gltype}_signed
13328 if test "$result" = yes; then
13333 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
13335 '') gltype1
='int';;
13336 l
) gltype1
='long int';;
13337 ll
) gltype1
='long long int';;
13338 i64
) gltype1
='__int64';;
13339 u
) gltype1
='unsigned int';;
13340 ul
) gltype1
='unsigned long int';;
13341 ull
) gltype1
='unsigned long long int';;
13342 ui64
)gltype1
='unsigned __int64';;
13344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13347 #include <stddef.h>
13348 #include <signal.h>
13350 # include <wchar.h>
13353 extern $gltype foo;
13354 extern $gltype1 foo;
13363 if ac_fn_c_try_compile
"$LINENO"; then :
13364 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
13366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13367 eval result
=\
$gl_cv_type_${gltype}_suffix
13368 test "$result" != no
&& break
13371 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13373 $as_echo "$ac_res" >&6; }
13374 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13375 eval result
=\
$gl_cv_type_${gltype}_suffix
13376 test "$result" = no
&& result
=
13377 eval ${GLTYPE}_SUFFIX
=\
$result
13378 cat >>confdefs.h
<<_ACEOF
13379 #define ${GLTYPE}_SUFFIX $result
13388 for gltype
in sig_atomic_t wchar_t wint_t
; do
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
13390 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
13391 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
13392 $as_echo_n "(cached) " >&6
13394 eval gl_cv_type_
${gltype}_suffix
=no
13395 eval result
=\
$gl_cv_type_${gltype}_signed
13396 if test "$result" = yes; then
13401 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
13403 '') gltype1
='int';;
13404 l
) gltype1
='long int';;
13405 ll
) gltype1
='long long int';;
13406 i64
) gltype1
='__int64';;
13407 u
) gltype1
='unsigned int';;
13408 ul
) gltype1
='unsigned long int';;
13409 ull
) gltype1
='unsigned long long int';;
13410 ui64
)gltype1
='unsigned __int64';;
13412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13415 #include <stddef.h>
13416 #include <signal.h>
13418 # include <wchar.h>
13421 extern $gltype foo;
13422 extern $gltype1 foo;
13431 if ac_fn_c_try_compile
"$LINENO"; then :
13432 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
13434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13435 eval result
=\
$gl_cv_type_${gltype}_suffix
13436 test "$result" != no
&& break
13439 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13441 $as_echo "$ac_res" >&6; }
13442 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13443 eval result
=\
$gl_cv_type_${gltype}_suffix
13444 test "$result" = no
&& result
=
13445 eval ${GLTYPE}_SUFFIX
=\
$result
13446 cat >>confdefs.h
<<_ACEOF
13447 #define ${GLTYPE}_SUFFIX $result
13454 if test $GNULIB_OVERRIDES_WINT_T = 1; then
13455 BITSIZEOF_WINT_T
=32
13463 LIMITS_H
='limits.h'
13464 if test -n "$LIMITS_H"; then
13465 GL_GENERATE_LIMITS_H_TRUE
=
13466 GL_GENERATE_LIMITS_H_FALSE
='#'
13468 GL_GENERATE_LIMITS_H_TRUE
='#'
13469 GL_GENERATE_LIMITS_H_FALSE
=
13478 if test -n "$STDINT_H"; then
13479 GL_GENERATE_STDINT_H_TRUE
=
13480 GL_GENERATE_STDINT_H_FALSE
='#'
13482 GL_GENERATE_STDINT_H_TRUE
='#'
13483 GL_GENERATE_STDINT_H_FALSE
=
13490 GNULIB_STRTOIMAX
=0;
13491 GNULIB_STRTOUMAX
=0;
13492 HAVE_DECL_IMAXABS
=1;
13493 HAVE_DECL_IMAXDIV
=1;
13494 HAVE_DECL_STRTOIMAX
=1;
13495 HAVE_DECL_STRTOUMAX
=1;
13497 REPLACE_STRTOIMAX
=0;
13498 REPLACE_STRTOUMAX
=0;
13499 INT32_MAX_LT_INTMAX_MAX
=1;
13500 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
13501 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
13502 UINT32_MAX_LT_UINTMAX_MAX
=1;
13503 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
13519 if test $gl_cv_have_include_next = yes; then
13520 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
13523 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
13524 if ${gl_cv_next_inttypes_h+:} false
; then :
13525 $as_echo_n "(cached) " >&6
13528 if test $ac_cv_header_inttypes_h = yes; then
13533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13535 #include <inttypes.h>
13538 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13539 *) gl_absname_cpp
="$ac_cpp" ;;
13544 gl_dirsep_regex
='[/\\]'
13547 gl_dirsep_regex
='\/'
13550 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13551 gl_header_literal_regex
=`echo 'inttypes.h' \
13552 | sed -e "$gl_make_literal_regex_sed"`
13553 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13554 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13560 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13561 sed -n "$gl_absolute_header_sed"`
13563 gl_header
=$gl_cv_absolute_inttypes_h
13564 gl_cv_next_inttypes_h
='"'$gl_header'"'
13566 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
13572 $as_echo "$gl_cv_next_inttypes_h" >&6; }
13574 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
13576 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13577 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13578 gl_next_as_first_directive
='<'inttypes.h
'>'
13580 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13581 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
13583 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
13601 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
13602 if ${gl_cv_cc_double_expbit0+:} false
; then :
13603 $as_echo_n "(cached) " >&6
13606 if test "$cross_compiling" = yes; then :
13608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13611 #if defined arm || defined __arm || defined __arm__
13616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13617 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
13618 gl_cv_cc_double_expbit0
="unknown"
13622 if ${ac_cv_c_bigendian+:} false
; then :
13623 $as_echo_n "(cached) " >&6
13625 ac_cv_c_bigendian
=unknown
13626 # See if we're dealing with a universal compiler.
13627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13629 #ifndef __APPLE_CC__
13630 not a universal capable compiler
13635 if ac_fn_c_try_compile
"$LINENO"; then :
13637 # Check for potential -arch flags. It is not universal unless
13638 # there are at least two -arch flags with different values.
13641 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13642 if test -n "$ac_prev"; then
13644 i?
86 | x86_64 | ppc | ppc64
)
13645 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13648 ac_cv_c_bigendian
=universal
13654 elif test "x$ac_word" = "x-arch"; then
13659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13660 if test $ac_cv_c_bigendian = unknown
; then
13661 # See if sys/param.h defines the BYTE_ORDER macro.
13662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664 #include <sys/types.h>
13665 #include <sys/param.h>
13670 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13671 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13673 bogus endian macros
13680 if ac_fn_c_try_compile
"$LINENO"; then :
13681 # It does; now see whether it defined to BIG_ENDIAN or not.
13682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13684 #include <sys/types.h>
13685 #include <sys/param.h>
13690 #if BYTE_ORDER != BIG_ENDIAN
13698 if ac_fn_c_try_compile
"$LINENO"; then :
13699 ac_cv_c_bigendian
=yes
13701 ac_cv_c_bigendian
=no
13703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13707 if test $ac_cv_c_bigendian = unknown
; then
13708 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711 #include <limits.h>
13716 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13717 bogus endian macros
13724 if ac_fn_c_try_compile
"$LINENO"; then :
13725 # It does; now see whether it defined to _BIG_ENDIAN or not.
13726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 #include <limits.h>
13733 #ifndef _BIG_ENDIAN
13741 if ac_fn_c_try_compile
"$LINENO"; then :
13742 ac_cv_c_bigendian
=yes
13744 ac_cv_c_bigendian
=no
13746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13750 if test $ac_cv_c_bigendian = unknown
; then
13751 # Compile a test program.
13752 if test "$cross_compiling" = yes; then :
13753 # Try to guess by grepping values from an object file.
13754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756 short int ascii_mm[] =
13757 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13758 short int ascii_ii[] =
13759 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13760 int use_ascii (int i) {
13761 return ascii_mm[i] + ascii_ii[i];
13763 short int ebcdic_ii[] =
13764 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13765 short int ebcdic_mm[] =
13766 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13767 int use_ebcdic (int i) {
13768 return ebcdic_mm[i] + ebcdic_ii[i];
13775 return use_ascii (foo) == use_ebcdic (foo);
13780 if ac_fn_c_try_compile
"$LINENO"; then :
13781 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13782 ac_cv_c_bigendian
=yes
13784 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13785 if test "$ac_cv_c_bigendian" = unknown
; then
13786 ac_cv_c_bigendian
=no
13788 # finding both strings is unlikely to happen, but who knows?
13789 ac_cv_c_bigendian
=unknown
13793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13797 $ac_includes_default
13802 /* Are we little or big endian? From Harbison&Steele. */
13806 char c[sizeof (long int)];
13809 return u.c[sizeof (long int) - 1] == 1;
13815 if ac_fn_c_try_run
"$LINENO"; then :
13816 ac_cv_c_bigendian
=no
13818 ac_cv_c_bigendian
=yes
13820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13827 case $ac_cv_c_bigendian in #(
13829 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
13831 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
13834 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13838 gl_cv_cc_double_expbit0
="unknown" ;;
13847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13851 #include <stddef.h>
13853 #include <string.h>
13855 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13856 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
13857 static unsigned int ored_words[NWORDS];
13858 static unsigned int anded_words[NWORDS];
13859 static void add_to_ored_words (double x)
13863 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
13864 memset (&m, 0, sizeof (memory_double));
13866 for (i = 0; i < NWORDS; i++)
13868 ored_words[i] |= m.word[i];
13869 anded_words[i] &= m.word[i];
13875 FILE *fp = fopen ("conftest.out", "w");
13878 for (j = 0; j < NWORDS; j++)
13879 anded_words[j] = ~ (unsigned int) 0;
13880 add_to_ored_words (0.25);
13881 add_to_ored_words (0.5);
13882 add_to_ored_words (1.0);
13883 add_to_ored_words (2.0);
13884 add_to_ored_words (4.0);
13885 /* Remove bits that are common (e.g. if representation of the first mantissa
13886 bit is explicit). */
13887 for (j = 0; j < NWORDS; j++)
13888 ored_words[j] &= ~anded_words[j];
13889 /* Now find the nonzero word. */
13890 for (j = 0; j < NWORDS; j++)
13891 if (ored_words[j] != 0)
13896 for (i = j + 1; i < NWORDS; i++)
13897 if (ored_words[i] != 0)
13899 fprintf (fp, "unknown");
13900 return (fclose (fp) != 0);
13903 if ((ored_words[j] >> i) & 1)
13905 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13906 return (fclose (fp) != 0);
13909 fprintf (fp, "unknown");
13910 return (fclose (fp) != 0);
13914 if ac_fn_c_try_run
"$LINENO"; then :
13915 gl_cv_cc_double_expbit0
=`cat conftest.out`
13917 gl_cv_cc_double_expbit0
="unknown"
13919 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13920 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
13927 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
13928 case "$gl_cv_cc_double_expbit0" in
13930 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
13931 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
13933 cat >>confdefs.h
<<_ACEOF
13934 #define DBL_EXPBIT0_WORD $word
13938 cat >>confdefs.h
<<_ACEOF
13939 #define DBL_EXPBIT0_BIT $bit
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13947 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13948 if ${ac_cv_c_bigendian+:} false
; then :
13949 $as_echo_n "(cached) " >&6
13951 ac_cv_c_bigendian
=unknown
13952 # See if we're dealing with a universal compiler.
13953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955 #ifndef __APPLE_CC__
13956 not a universal capable compiler
13961 if ac_fn_c_try_compile
"$LINENO"; then :
13963 # Check for potential -arch flags. It is not universal unless
13964 # there are at least two -arch flags with different values.
13967 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13968 if test -n "$ac_prev"; then
13970 i?
86 | x86_64 | ppc | ppc64
)
13971 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13974 ac_cv_c_bigendian
=universal
13980 elif test "x$ac_word" = "x-arch"; then
13985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13986 if test $ac_cv_c_bigendian = unknown
; then
13987 # See if sys/param.h defines the BYTE_ORDER macro.
13988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990 #include <sys/types.h>
13991 #include <sys/param.h>
13996 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13997 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13999 bogus endian macros
14006 if ac_fn_c_try_compile
"$LINENO"; then :
14007 # It does; now see whether it defined to BIG_ENDIAN or not.
14008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14010 #include <sys/types.h>
14011 #include <sys/param.h>
14016 #if BYTE_ORDER != BIG_ENDIAN
14024 if ac_fn_c_try_compile
"$LINENO"; then :
14025 ac_cv_c_bigendian
=yes
14027 ac_cv_c_bigendian
=no
14029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14033 if test $ac_cv_c_bigendian = unknown
; then
14034 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14037 #include <limits.h>
14042 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14043 bogus endian macros
14050 if ac_fn_c_try_compile
"$LINENO"; then :
14051 # It does; now see whether it defined to _BIG_ENDIAN or not.
14052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h. */
14054 #include <limits.h>
14059 #ifndef _BIG_ENDIAN
14067 if ac_fn_c_try_compile
"$LINENO"; then :
14068 ac_cv_c_bigendian
=yes
14070 ac_cv_c_bigendian
=no
14072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14076 if test $ac_cv_c_bigendian = unknown
; then
14077 # Compile a test program.
14078 if test "$cross_compiling" = yes; then :
14079 # Try to guess by grepping values from an object file.
14080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082 short int ascii_mm[] =
14083 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14084 short int ascii_ii[] =
14085 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14086 int use_ascii (int i) {
14087 return ascii_mm[i] + ascii_ii[i];
14089 short int ebcdic_ii[] =
14090 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14091 short int ebcdic_mm[] =
14092 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14093 int use_ebcdic (int i) {
14094 return ebcdic_mm[i] + ebcdic_ii[i];
14101 return use_ascii (foo) == use_ebcdic (foo);
14106 if ac_fn_c_try_compile
"$LINENO"; then :
14107 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14108 ac_cv_c_bigendian
=yes
14110 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14111 if test "$ac_cv_c_bigendian" = unknown
; then
14112 ac_cv_c_bigendian
=no
14114 # finding both strings is unlikely to happen, but who knows?
14115 ac_cv_c_bigendian
=unknown
14119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14123 $ac_includes_default
14128 /* Are we little or big endian? From Harbison&Steele. */
14132 char c[sizeof (long int)];
14135 return u.c[sizeof (long int) - 1] == 1;
14141 if ac_fn_c_try_run
"$LINENO"; then :
14142 ac_cv_c_bigendian
=no
14144 ac_cv_c_bigendian
=yes
14146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14147 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14153 $as_echo "$ac_cv_c_bigendian" >&6; }
14154 case $ac_cv_c_bigendian in #(
14156 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14162 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14166 as_fn_error $?
"unknown endianness
14167 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14172 GNULIB_LOCALECONV
=0;
14173 GNULIB_SETLOCALE
=0;
14174 GNULIB_SETLOCALE_NULL
=0;
14175 GNULIB_DUPLOCALE
=0;
14176 GNULIB_LOCALENAME
=0;
14180 REPLACE_LOCALECONV
=0;
14181 REPLACE_SETLOCALE
=0;
14182 REPLACE_NEWLOCALE
=0;
14183 REPLACE_DUPLOCALE
=0;
14184 REPLACE_FREELOCALE
=0;
14185 REPLACE_STRUCT_LCONV
=0;
14189 HAVE_MAX_ALIGN_T
=1;
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14194 $as_echo_n "checking for wchar_t... " >&6; }
14195 if ${gt_cv_c_wchar_t+:} false
; then :
14196 $as_echo_n "(cached) " >&6
14198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 #include <stddef.h>
14201 wchar_t foo = (wchar_t)'\0';
14210 if ac_fn_c_try_compile
"$LINENO"; then :
14211 gt_cv_c_wchar_t
=yes
14215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14218 $as_echo "$gt_cv_c_wchar_t" >&6; }
14219 if test $gt_cv_c_wchar_t = yes; then
14221 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
14234 $as_echo_n "checking for good max_align_t... " >&6; }
14235 if ${gl_cv_type_max_align_t+:} false
; then :
14236 $as_echo_n "(cached) " >&6
14238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14239 /* end confdefs.h. */
14240 #include <stddef.h>
14241 unsigned int s = sizeof (max_align_t);
14242 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
14243 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
14244 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
14246 typedef struct { char a; max_align_t b; } max_helper;
14247 typedef struct { char a; long b; } long_helper;
14248 typedef struct { char a; double b; } double_helper;
14249 typedef struct { char a; long double b; } long_double_helper;
14250 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
14251 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
14252 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
14262 if ac_fn_c_try_compile
"$LINENO"; then :
14263 gl_cv_type_max_align_t
=yes
14265 gl_cv_type_max_align_t
=no
14267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
14271 $as_echo "$gl_cv_type_max_align_t" >&6; }
14272 if test $gl_cv_type_max_align_t = no
; then
14277 if test $gt_cv_c_wchar_t = no
; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14283 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14284 if ${gl_cv_decl_null_works+:} false
; then :
14285 $as_echo_n "(cached) " >&6
14287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 #include <stddef.h>
14290 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14300 if ac_fn_c_try_compile
"$LINENO"; then :
14301 gl_cv_decl_null_works
=yes
14303 gl_cv_decl_null_works
=no
14305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14308 $as_echo "$gl_cv_decl_null_works" >&6; }
14309 if test $gl_cv_decl_null_works = no
; then
14315 if test -n "$STDDEF_H"; then
14316 GL_GENERATE_STDDEF_H_TRUE
=
14317 GL_GENERATE_STDDEF_H_FALSE
='#'
14319 GL_GENERATE_STDDEF_H_TRUE
='#'
14320 GL_GENERATE_STDDEF_H_FALSE
=
14323 if test -n "$STDDEF_H"; then
14332 if test $gl_cv_have_include_next = yes; then
14333 gl_cv_next_stddef_h
='<'stddef.h
'>'
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14336 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14337 if ${gl_cv_next_stddef_h+:} false
; then :
14338 $as_echo_n "(cached) " >&6
14343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14345 #include <stddef.h>
14348 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14349 *) gl_absname_cpp
="$ac_cpp" ;;
14354 gl_dirsep_regex
='[/\\]'
14357 gl_dirsep_regex
='\/'
14360 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14361 gl_header_literal_regex
=`echo 'stddef.h' \
14362 | sed -e "$gl_make_literal_regex_sed"`
14363 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14364 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14370 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14371 sed -n "$gl_absolute_header_sed"`
14373 gl_header
=$gl_cv_absolute_stddef_h
14374 gl_cv_next_stddef_h
='"'$gl_header'"'
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14379 $as_echo "$gl_cv_next_stddef_h" >&6; }
14381 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
14383 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14384 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14385 gl_next_as_first_directive
='<'stddef.h
'>'
14387 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14388 gl_next_as_first_directive
=$gl_cv_next_stddef_h
14390 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
14403 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
14404 if ${gl_cv_header_locale_has_locale_t+:} false
; then :
14405 $as_echo_n "(cached) " >&6
14407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 #include <locale.h>
14419 if ac_fn_c_try_compile
"$LINENO"; then :
14420 gl_cv_header_locale_has_locale_t
=yes
14422 gl_cv_header_locale_has_locale_t
=no
14424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
14428 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
14431 if test $ac_cv_header_xlocale_h = yes; then
14433 if test $gl_cv_header_locale_has_locale_t = yes; then
14434 gl_cv_header_locale_h_needs_xlocale_h
=no
14436 gl_cv_header_locale_h_needs_xlocale_h
=yes
14441 gl_cv_header_locale_h_needs_xlocale_h
=no
14442 if test $gl_cv_header_locale_has_locale_t = yes; then
14452 gl_threads_api
=none
14457 if test "$gl_use_threads" != no
; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
14461 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
14462 if ${gl_cv_have_weak+:} false
; then :
14463 $as_echo_n "(cached) " >&6
14466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14468 extern void xyzzy ();
14478 if ac_fn_c_try_link
"$LINENO"; then :
14479 gl_cv_have_weak
=maybe
14481 rm -f core conftest.err conftest.
$ac_objext \
14482 conftest
$ac_exeext conftest.
$ac_ext
14483 if test $gl_cv_have_weak = maybe
; then
14484 if test "$cross_compiling" = yes; then :
14485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14488 Extensible Linking Format
14492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14493 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
14494 gl_cv_have_weak
="guessing yes"
14496 gl_cv_have_weak
="guessing no"
14502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14509 return (fputs == NULL);
14512 if ac_fn_c_try_run
"$LINENO"; then :
14513 gl_cv_have_weak
=yes
14517 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14518 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14522 case " $LDFLAGS " in
14523 *" -static "*) gl_cv_have_weak
=no
;;
14525 case "$gl_cv_have_weak" in
14528 freebsd
* | dragonfly
*)
14530 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
14531 cat <<EOF > conftest2.c
14532 #include <pthread.h>
14533 #pragma weak pthread_mutexattr_gettype
14536 return (pthread_mutexattr_gettype != NULL);
14539 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
14540 || gl_cv_have_weak
=no
14541 rm -f conftest1.c libempty.so conftest2.c conftest
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
14549 $as_echo "$gl_cv_have_weak" >&6; }
14550 case "$gl_cv_have_weak" in
14553 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
14558 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14562 if test "$gl_use_threads" = isoc ||
test "$gl_use_threads" = isoc
+posix
; then
14564 gl_have_isoc_threads
="$ac_cv_header_threads_h"
14566 if test "$gl_use_threads" = yes \
14567 ||
test "$gl_use_threads" = posix \
14568 ||
test "$gl_use_threads" = isoc
+posix
; then
14571 if test -z "$gl_pthreadlib_body_done"; then
14575 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14576 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14577 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14578 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14579 gl_have_pthread_h
=yes
14581 gl_have_pthread_h
=no
14585 if test "$gl_have_pthread_h" = yes; then
14586 # Other possible tests:
14587 # -lpthreads (FSU threads, PCthreads)
14589 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14590 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14591 # the second one only in libpthread, and lock.c needs it.
14593 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14594 # needs -pthread for some reason. See:
14595 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14597 for gl_pthread
in '' '-pthread'; do
14598 LIBS
="$LIBS $gl_pthread"
14599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601 #include <pthread.h>
14603 pthread_mutexattr_t ma;
14608 pthread_mutex_lock (&m);
14609 pthread_mutexattr_init (&ma);
14614 if ac_fn_c_try_link
"$LINENO"; then :
14616 LIBPTHREAD
=$gl_pthread
14617 LIBPMULTITHREAD
=$gl_pthread
14619 rm -f core conftest.err conftest.
$ac_objext \
14620 conftest
$ac_exeext conftest.
$ac_ext
14622 test $gl_pthread_api = yes && break
14625 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14626 # since it is defined as a macro on OSF/1.)
14627 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14628 # The program links fine without libpthread. But it may actually
14629 # need to link with libpthread in order to create multiple threads.
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14631 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14632 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14633 $as_echo_n "(cached) " >&6
14635 ac_check_lib_save_LIBS
=$LIBS
14636 LIBS
="-lpthread $LIBS"
14637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14640 /* Override any GCC internal prototype to avoid an error.
14641 Use char because int might match the return type of a GCC
14642 builtin and then its argument prototype would still apply. */
14646 char pthread_kill ();
14650 return pthread_kill ();
14655 if ac_fn_c_try_link
"$LINENO"; then :
14656 ac_cv_lib_pthread_pthread_kill
=yes
14658 ac_cv_lib_pthread_pthread_kill
=no
14660 rm -f core conftest.err conftest.
$ac_objext \
14661 conftest
$ac_exeext conftest.
$ac_ext
14662 LIBS
=$ac_check_lib_save_LIBS
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14665 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14666 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14667 LIBPMULTITHREAD
=-lpthread
14668 # On Solaris and HP-UX, most pthread functions exist also in libc.
14669 # Therefore pthread_in_use() needs to actually try to create a
14670 # thread: pthread_create from libc will fail, whereas
14671 # pthread_create will actually create a thread.
14672 # On Solaris 10 or newer, this test is no longer needed, because
14673 # libc contains the fully functional pthread functions.
14675 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14677 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14683 elif test $gl_pthread_api != yes; then
14684 # Some library is needed. Try libpthread and libc_r.
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14686 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14687 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14688 $as_echo_n "(cached) " >&6
14690 ac_check_lib_save_LIBS
=$LIBS
14691 LIBS
="-lpthread $LIBS"
14692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h. */
14695 /* Override any GCC internal prototype to avoid an error.
14696 Use char because int might match the return type of a GCC
14697 builtin and then its argument prototype would still apply. */
14701 char pthread_kill ();
14705 return pthread_kill ();
14710 if ac_fn_c_try_link
"$LINENO"; then :
14711 ac_cv_lib_pthread_pthread_kill
=yes
14713 ac_cv_lib_pthread_pthread_kill
=no
14715 rm -f core conftest.err conftest.
$ac_objext \
14716 conftest
$ac_exeext conftest.
$ac_ext
14717 LIBS
=$ac_check_lib_save_LIBS
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14720 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14721 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14723 LIBPTHREAD
=-lpthread
14724 LIBPMULTITHREAD
=-lpthread
14727 if test $gl_pthread_api != yes; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14730 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14731 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14732 $as_echo_n "(cached) " >&6
14734 ac_check_lib_save_LIBS
=$LIBS
14736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14739 /* Override any GCC internal prototype to avoid an error.
14740 Use char because int might match the return type of a GCC
14741 builtin and then its argument prototype would still apply. */
14745 char pthread_kill ();
14749 return pthread_kill ();
14754 if ac_fn_c_try_link
"$LINENO"; then :
14755 ac_cv_lib_c_r_pthread_kill
=yes
14757 ac_cv_lib_c_r_pthread_kill
=no
14759 rm -f core conftest.err conftest.
$ac_objext \
14760 conftest
$ac_exeext conftest.
$ac_ext
14761 LIBS
=$ac_check_lib_save_LIBS
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14764 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14765 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14768 LIBPMULTITHREAD
=-lc_r
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14775 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14777 $as_echo "$gl_pthread_api" >&6; }
14780 if test $gl_pthread_api = yes; then
14782 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14797 if ac_fn_c_try_link
"$LINENO"; then :
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14802 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14803 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14804 $as_echo_n "(cached) " >&6
14806 ac_check_lib_save_LIBS
=$LIBS
14808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14811 /* Override any GCC internal prototype to avoid an error.
14812 Use char because int might match the return type of a GCC
14813 builtin and then its argument prototype would still apply. */
14817 char sched_yield ();
14821 return sched_yield ();
14826 if ac_fn_c_try_link
"$LINENO"; then :
14827 ac_cv_lib_rt_sched_yield
=yes
14829 ac_cv_lib_rt_sched_yield
=no
14831 rm -f core conftest.err conftest.
$ac_objext \
14832 conftest
$ac_exeext conftest.
$ac_ext
14833 LIBS
=$ac_check_lib_save_LIBS
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14836 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14837 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14838 LIB_SCHED_YIELD
=-lrt
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14841 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14842 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14843 $as_echo_n "(cached) " >&6
14845 ac_check_lib_save_LIBS
=$LIBS
14846 LIBS
="-lposix4 $LIBS"
14847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14850 /* Override any GCC internal prototype to avoid an error.
14851 Use char because int might match the return type of a GCC
14852 builtin and then its argument prototype would still apply. */
14856 char sched_yield ();
14860 return sched_yield ();
14865 if ac_fn_c_try_link
"$LINENO"; then :
14866 ac_cv_lib_posix4_sched_yield
=yes
14868 ac_cv_lib_posix4_sched_yield
=no
14870 rm -f core conftest.err conftest.
$ac_objext \
14871 conftest
$ac_exeext conftest.
$ac_ext
14872 LIBS
=$ac_check_lib_save_LIBS
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14875 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14876 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14877 LIB_SCHED_YIELD
=-lposix4
14884 rm -f core conftest.err conftest.
$ac_objext \
14885 conftest
$ac_exeext conftest.
$ac_ext
14888 gl_pthreadlib_body_done
=done
14891 LIBTHREAD
=$LIBPTHREAD LTLIBTHREAD
=$LIBPTHREAD
14892 LIBMULTITHREAD
=$LIBPMULTITHREAD LTLIBMULTITHREAD
=$LIBPMULTITHREAD
14893 if test $gl_pthread_api = yes; then
14894 if test "$gl_use_threads" = isoc
+posix
&& test "$gl_have_isoc_threads" = yes; then
14895 gl_threads_api
='isoc+posix'
14897 $as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
14899 LIBTHREAD
= LTLIBTHREAD
=
14901 gl_threads_api
=posix
14903 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
14905 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
14906 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
14908 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
14910 LIBTHREAD
= LTLIBTHREAD
=
14913 freebsd
* | dragonfly
*)
14914 if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then
14916 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14926 if test $gl_threads_api = none
; then
14927 if test "$gl_use_threads" = isoc
&& test "$gl_have_isoc_threads" = yes; then
14931 if test -z "$gl_stdthreadlib_body_done"; then
14941 if test -z "$gl_pthreadlib_body_done"; then
14945 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14946 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
14947 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14948 if test "x$ac_cv_header_pthread_h" = xyes
; then :
14949 gl_have_pthread_h
=yes
14951 gl_have_pthread_h
=no
14955 if test "$gl_have_pthread_h" = yes; then
14956 # Other possible tests:
14957 # -lpthreads (FSU threads, PCthreads)
14959 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
14960 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
14961 # the second one only in libpthread, and lock.c needs it.
14963 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
14964 # needs -pthread for some reason. See:
14965 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14967 for gl_pthread
in '' '-pthread'; do
14968 LIBS
="$LIBS $gl_pthread"
14969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 #include <pthread.h>
14973 pthread_mutexattr_t ma;
14978 pthread_mutex_lock (&m);
14979 pthread_mutexattr_init (&ma);
14984 if ac_fn_c_try_link
"$LINENO"; then :
14986 LIBPTHREAD
=$gl_pthread
14987 LIBPMULTITHREAD
=$gl_pthread
14989 rm -f core conftest.err conftest.
$ac_objext \
14990 conftest
$ac_exeext conftest.
$ac_ext
14992 test $gl_pthread_api = yes && break
14995 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
14996 # since it is defined as a macro on OSF/1.)
14997 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
14998 # The program links fine without libpthread. But it may actually
14999 # need to link with libpthread in order to create multiple threads.
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15001 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
15002 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
15003 $as_echo_n "(cached) " >&6
15005 ac_check_lib_save_LIBS
=$LIBS
15006 LIBS
="-lpthread $LIBS"
15007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15010 /* Override any GCC internal prototype to avoid an error.
15011 Use char because int might match the return type of a GCC
15012 builtin and then its argument prototype would still apply. */
15016 char pthread_kill ();
15020 return pthread_kill ();
15025 if ac_fn_c_try_link
"$LINENO"; then :
15026 ac_cv_lib_pthread_pthread_kill
=yes
15028 ac_cv_lib_pthread_pthread_kill
=no
15030 rm -f core conftest.err conftest.
$ac_objext \
15031 conftest
$ac_exeext conftest.
$ac_ext
15032 LIBS
=$ac_check_lib_save_LIBS
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15035 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
15036 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
15037 LIBPMULTITHREAD
=-lpthread
15038 # On Solaris and HP-UX, most pthread functions exist also in libc.
15039 # Therefore pthread_in_use() needs to actually try to create a
15040 # thread: pthread_create from libc will fail, whereas
15041 # pthread_create will actually create a thread.
15042 # On Solaris 10 or newer, this test is no longer needed, because
15043 # libc contains the fully functional pthread functions.
15045 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
15047 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
15053 elif test $gl_pthread_api != yes; then
15054 # Some library is needed. Try libpthread and libc_r.
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15056 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
15057 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
15058 $as_echo_n "(cached) " >&6
15060 ac_check_lib_save_LIBS
=$LIBS
15061 LIBS
="-lpthread $LIBS"
15062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15065 /* Override any GCC internal prototype to avoid an error.
15066 Use char because int might match the return type of a GCC
15067 builtin and then its argument prototype would still apply. */
15071 char pthread_kill ();
15075 return pthread_kill ();
15080 if ac_fn_c_try_link
"$LINENO"; then :
15081 ac_cv_lib_pthread_pthread_kill
=yes
15083 ac_cv_lib_pthread_pthread_kill
=no
15085 rm -f core conftest.err conftest.
$ac_objext \
15086 conftest
$ac_exeext conftest.
$ac_ext
15087 LIBS
=$ac_check_lib_save_LIBS
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15090 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
15091 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
15093 LIBPTHREAD
=-lpthread
15094 LIBPMULTITHREAD
=-lpthread
15097 if test $gl_pthread_api != yes; then
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
15100 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
15101 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
15102 $as_echo_n "(cached) " >&6
15104 ac_check_lib_save_LIBS
=$LIBS
15106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15109 /* Override any GCC internal prototype to avoid an error.
15110 Use char because int might match the return type of a GCC
15111 builtin and then its argument prototype would still apply. */
15115 char pthread_kill ();
15119 return pthread_kill ();
15124 if ac_fn_c_try_link
"$LINENO"; then :
15125 ac_cv_lib_c_r_pthread_kill
=yes
15127 ac_cv_lib_c_r_pthread_kill
=no
15129 rm -f core conftest.err conftest.
$ac_objext \
15130 conftest
$ac_exeext conftest.
$ac_ext
15131 LIBS
=$ac_check_lib_save_LIBS
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
15134 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
15135 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
15138 LIBPMULTITHREAD
=-lc_r
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
15145 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
15147 $as_echo "$gl_pthread_api" >&6; }
15150 if test $gl_pthread_api = yes; then
15152 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
15156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15167 if ac_fn_c_try_link
"$LINENO"; then :
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
15172 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
15173 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
15174 $as_echo_n "(cached) " >&6
15176 ac_check_lib_save_LIBS
=$LIBS
15178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15181 /* Override any GCC internal prototype to avoid an error.
15182 Use char because int might match the return type of a GCC
15183 builtin and then its argument prototype would still apply. */
15187 char sched_yield ();
15191 return sched_yield ();
15196 if ac_fn_c_try_link
"$LINENO"; then :
15197 ac_cv_lib_rt_sched_yield
=yes
15199 ac_cv_lib_rt_sched_yield
=no
15201 rm -f core conftest.err conftest.
$ac_objext \
15202 conftest
$ac_exeext conftest.
$ac_ext
15203 LIBS
=$ac_check_lib_save_LIBS
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
15206 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
15207 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
15208 LIB_SCHED_YIELD
=-lrt
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
15211 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
15212 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
15213 $as_echo_n "(cached) " >&6
15215 ac_check_lib_save_LIBS
=$LIBS
15216 LIBS
="-lposix4 $LIBS"
15217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15220 /* Override any GCC internal prototype to avoid an error.
15221 Use char because int might match the return type of a GCC
15222 builtin and then its argument prototype would still apply. */
15226 char sched_yield ();
15230 return sched_yield ();
15235 if ac_fn_c_try_link
"$LINENO"; then :
15236 ac_cv_lib_posix4_sched_yield
=yes
15238 ac_cv_lib_posix4_sched_yield
=no
15240 rm -f core conftest.err conftest.
$ac_objext \
15241 conftest
$ac_exeext conftest.
$ac_ext
15242 LIBS
=$ac_check_lib_save_LIBS
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
15245 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
15246 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
15247 LIB_SCHED_YIELD
=-lposix4
15254 rm -f core conftest.err conftest.
$ac_objext \
15255 conftest
$ac_exeext conftest.
$ac_ext
15258 gl_pthreadlib_body_done
=done
15261 if test $ac_cv_header_threads_h = yes; then
15262 for ac_func
in thrd_create
15264 ac_fn_c_check_func
"$LINENO" "thrd_create" "ac_cv_func_thrd_create"
15265 if test "x$ac_cv_func_thrd_create" = xyes
; then :
15266 cat >>confdefs.h
<<_ACEOF
15267 #define HAVE_THRD_CREATE 1
15273 if test $ac_cv_func_thrd_create = yes; then
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
15277 $as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
15278 if ${ac_cv_lib_stdthreads_thrd_create+:} false
; then :
15279 $as_echo_n "(cached) " >&6
15281 ac_check_lib_save_LIBS
=$LIBS
15282 LIBS
="-lstdthreads $LIBS"
15283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h. */
15286 /* Override any GCC internal prototype to avoid an error.
15287 Use char because int might match the return type of a GCC
15288 builtin and then its argument prototype would still apply. */
15292 char thrd_create ();
15296 return thrd_create ();
15301 if ac_fn_c_try_link
"$LINENO"; then :
15302 ac_cv_lib_stdthreads_thrd_create
=yes
15304 ac_cv_lib_stdthreads_thrd_create
=no
15306 rm -f core conftest.err conftest.
$ac_objext \
15307 conftest
$ac_exeext conftest.
$ac_ext
15308 LIBS
=$ac_check_lib_save_LIBS
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
15311 $as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
15312 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
; then :
15314 LIBSTDTHREAD
='-lstdthreads -lpthread'
15318 LIBSTDTHREAD
="$LIBPMULTITHREAD"
15324 LIBSTDTHREAD
="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
15331 $as_echo_n "checking whether ISO C threads API is available... " >&6; }
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
15333 $as_echo "$ac_cv_header_threads_h" >&6; }
15334 gl_stdthreadlib_body_done
=done
15337 LIBTHREAD
=$LIBSTDTHREAD LTLIBTHREAD
=$LIBSTDTHREAD
15338 LIBMULTITHREAD
=$LIBSTDTHREAD LTLIBMULTITHREAD
=$LIBSTDTHREAD
15339 gl_threads_api
=isoc
15341 $as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
15345 if test $gl_threads_api = none
; then
15346 case "$gl_use_threads" in
15347 yes | windows | win32
) # The 'win32' is for backward compatibility.
15348 if { case "$host_os" in
15353 gl_threads_api
=windows
15355 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
15363 $as_echo_n "checking for multithread API to use... " >&6; }
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
15365 $as_echo "$gl_threads_api" >&6; }
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
15379 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
15380 if ${gl_cv_func_malloc_posix+:} false
; then :
15381 $as_echo_n "(cached) " >&6
15384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15385 /* end confdefs.h. */
15390 #if defined _WIN32 && ! defined __CYGWIN__
15398 if ac_fn_c_try_compile
"$LINENO"; then :
15399 gl_cv_func_malloc_posix
=yes
15401 gl_cv_func_malloc_posix
=no
15403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
15407 $as_echo "$gl_cv_func_malloc_posix" >&6; }
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15412 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15413 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
15414 $as_echo_n "(cached) " >&6
15416 if test "$cross_compiling" = yes; then :
15418 # Guess yes on platforms where we know the result.
15419 *-gnu* | gnu
* |
*-musl* | freebsd
* | netbsd
* | openbsd
* \
15420 | hpux
* | solaris
* | cygwin
* | mingw
*)
15421 ac_cv_func_malloc_0_nonnull
="guessing yes" ;;
15422 # If we don't know, obey --enable-cross-guesses.
15423 *) ac_cv_func_malloc_0_nonnull
="$gl_cross_guess_normal" ;;
15427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429 #include <stdlib.h>
15434 char *p = malloc (0);
15443 if ac_fn_c_try_run
"$LINENO"; then :
15444 ac_cv_func_malloc_0_nonnull
=yes
15446 ac_cv_func_malloc_0_nonnull
=no
15448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15455 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15456 case "$ac_cv_func_malloc_0_nonnull" in
15458 gl_cv_func_malloc_0_nonnull
=1
15461 gl_cv_func_malloc_0_nonnull
=0
15466 cat >>confdefs.h
<<_ACEOF
15467 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
15481 $as_echo_n "checking for a traditional japanese locale... " >&6; }
15482 if ${gt_cv_locale_ja+:} false
; then :
15483 $as_echo_n "(cached) " >&6
15486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15489 #include <locale.h>
15491 #if HAVE_LANGINFO_CODESET
15492 # include <langinfo.h>
15494 #include <stdlib.h>
15495 #include <string.h>
15500 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15501 imitates locale dependent behaviour by looking at the environment
15502 variables, and all locales use the UTF-8 encoding. */
15503 #if defined __BEOS__ || defined __HAIKU__
15506 /* Check whether the given locale name is recognized by the system. */
15507 # if defined _WIN32 && !defined __CYGWIN__
15508 /* On native Windows, setlocale(category, "") looks at the system settings,
15509 not at the environment variables. Also, when an encoding suffix such
15510 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15511 category of the locale to "C". */
15512 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15513 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15516 if (setlocale (LC_ALL, "") == NULL) return 1;
15518 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15519 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15520 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15521 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15522 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15523 some unit tests fail.
15524 On MirBSD 10, when an unsupported locale is specified, setlocale()
15525 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15526 # if HAVE_LANGINFO_CODESET
15528 const char *cs = nl_langinfo (CODESET);
15529 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15530 || strcmp (cs, "UTF-8") == 0)
15535 /* On Cygwin, avoid locale names without encoding suffix, because the
15536 locale_charset() function relies on the encoding suffix. Note that
15537 LC_ALL is set on the command line. */
15538 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15540 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
15541 on Cygwin 1.5.x. */
15542 if (MB_CUR_MAX == 1)
15544 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15545 This excludes the UTF-8 encoding (except on MirBSD). */
15548 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15549 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15550 for (p = buf; *p != '\0'; p++)
15551 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15560 (eval $ac_link) 2>&5
15562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15563 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15565 # Handle native Windows specially, because there setlocale() interprets
15566 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15567 # "fr" or "fra" as "French" or "French_France.1252",
15568 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15569 # "ja" as "Japanese" or "Japanese_Japan.932",
15572 # Note that on native Windows, the Japanese locale is
15573 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
15574 # cannot use it here.
15575 gt_cv_locale_ja
=none
15578 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15579 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15580 # configure script would override the LC_ALL setting. Likewise for
15581 # LC_CTYPE, which is also set at the beginning of the configure script.
15582 # Test for the AIX locale name.
15583 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15584 gt_cv_locale_ja
=ja_JP
15586 # Test for the locale name with explicit encoding suffix.
15587 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15588 gt_cv_locale_ja
=ja_JP.EUC-JP
15590 # Test for the HP-UX, OSF/1, NetBSD locale name.
15591 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15592 gt_cv_locale_ja
=ja_JP.eucJP
15594 # Test for the IRIX, FreeBSD locale name.
15595 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15596 gt_cv_locale_ja
=ja_JP.EUC
15598 # Test for the Solaris 7 locale name.
15599 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15602 # Special test for NetBSD 1.6.
15603 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
15604 gt_cv_locale_ja
=ja_JP.eucJP
15607 gt_cv_locale_ja
=none
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
15621 $as_echo "$gt_cv_locale_ja" >&6; }
15622 LOCALE_JA
=$gt_cv_locale_ja
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
15628 $as_echo_n "checking for a french Unicode locale... " >&6; }
15629 if ${gt_cv_locale_fr_utf8+:} false
; then :
15630 $as_echo_n "(cached) " >&6
15633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15636 #include <locale.h>
15638 #if HAVE_LANGINFO_CODESET
15639 # include <langinfo.h>
15641 #include <stdlib.h>
15642 #include <string.h>
15646 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15647 imitates locale dependent behaviour by looking at the environment
15648 variables, and all locales use the UTF-8 encoding. */
15649 #if !(defined __BEOS__ || defined __HAIKU__)
15650 /* Check whether the given locale name is recognized by the system. */
15651 # if defined _WIN32 && !defined __CYGWIN__
15652 /* On native Windows, setlocale(category, "") looks at the system settings,
15653 not at the environment variables. Also, when an encoding suffix such
15654 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15655 category of the locale to "C". */
15656 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15657 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15660 if (setlocale (LC_ALL, "") == NULL) return 1;
15662 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15663 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15664 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15665 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15666 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15667 some unit tests fail. */
15668 # if HAVE_LANGINFO_CODESET
15670 const char *cs = nl_langinfo (CODESET);
15671 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
15676 /* On Cygwin, avoid locale names without encoding suffix, because the
15677 locale_charset() function relies on the encoding suffix. Note that
15678 LC_ALL is set on the command line. */
15679 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15681 /* Check whether in the abbreviation of the second month, the second
15682 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
15683 two bytes long, with UTF-8 encoding. */
15684 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15685 if (strftime (buf, sizeof (buf), "%b", &t) < 4
15686 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
15689 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
15690 /* Check whether the decimal separator is a comma.
15691 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15692 are nl_langinfo(RADIXCHAR) are both ".". */
15693 if (localeconv () ->decimal_point[0] != ',') return 1;
15699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15700 (eval $ac_link) 2>&5
15702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15703 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15705 # Handle native Windows specially, because there setlocale() interprets
15706 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15707 # "fr" or "fra" as "French" or "French_France.1252",
15708 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15709 # "ja" as "Japanese" or "Japanese_Japan.932",
15712 # Test for the hypothetical native Windows locale name.
15713 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15714 gt_cv_locale_fr_utf8
=French_France
.65001
15717 gt_cv_locale_fr_utf8
=none
15721 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15722 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15723 # configure script would override the LC_ALL setting. Likewise for
15724 # LC_CTYPE, which is also set at the beginning of the configure script.
15725 # Test for the usual locale name.
15726 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15727 gt_cv_locale_fr_utf8
=fr_FR
15729 # Test for the locale name with explicit encoding suffix.
15730 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15731 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
15733 # Test for the Solaris 7 locale name.
15734 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15735 gt_cv_locale_fr_utf8
=fr.UTF-8
15738 gt_cv_locale_fr_utf8
=none
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
15749 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
15750 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
15757 $as_echo_n "checking for a transitional chinese locale... " >&6; }
15758 if ${gt_cv_locale_zh_CN+:} false
; then :
15759 $as_echo_n "(cached) " >&6
15762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15765 #include <locale.h>
15766 #include <stdlib.h>
15768 #if HAVE_LANGINFO_CODESET
15769 # include <langinfo.h>
15771 #include <stdlib.h>
15772 #include <string.h>
15777 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15778 imitates locale dependent behaviour by looking at the environment
15779 variables, and all locales use the UTF-8 encoding. */
15780 #if defined __BEOS__ || defined __HAIKU__
15783 /* Check whether the given locale name is recognized by the system. */
15784 # if defined _WIN32 && !defined __CYGWIN__
15785 /* On native Windows, setlocale(category, "") looks at the system settings,
15786 not at the environment variables. Also, when an encoding suffix such
15787 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15788 category of the locale to "C". */
15789 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15790 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15793 if (setlocale (LC_ALL, "") == NULL) return 1;
15795 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15796 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15797 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15798 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15799 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15800 some unit tests fail.
15801 On MirBSD 10, when an unsupported locale is specified, setlocale()
15802 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15803 # if HAVE_LANGINFO_CODESET
15805 const char *cs = nl_langinfo (CODESET);
15806 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15807 || strcmp (cs, "UTF-8") == 0)
15812 /* On Cygwin, avoid locale names without encoding suffix, because the
15813 locale_charset() function relies on the encoding suffix. Note that
15814 LC_ALL is set on the command line. */
15815 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15817 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
15818 This excludes the UTF-8 encoding (except on MirBSD). */
15821 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15822 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
15823 for (p = buf; *p != '\0'; p++)
15824 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
15827 /* Check whether a typical GB18030 multibyte sequence is recognized as a
15828 single wide character. This excludes the GB2312 and GBK encodings. */
15829 if (mblen ("\203\062\332\066", 5) != 4)
15836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15837 (eval $ac_link) 2>&5
15839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15840 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15842 # Handle native Windows specially, because there setlocale() interprets
15843 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15844 # "fr" or "fra" as "French" or "French_France.1252",
15845 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15846 # "ja" as "Japanese" or "Japanese_Japan.932",
15849 # Test for the hypothetical native Windows locale name.
15850 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15851 gt_cv_locale_zh_CN
=Chinese_China
.54936
15854 gt_cv_locale_zh_CN
=none
15858 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
15859 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
15860 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
15861 gt_cv_locale_zh_CN
=none
15864 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15865 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15866 # configure script would override the LC_ALL setting. Likewise for
15867 # LC_CTYPE, which is also set at the beginning of the configure script.
15868 # Test for the locale name without encoding suffix.
15869 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15870 gt_cv_locale_zh_CN
=zh_CN
15872 # Test for the locale name with explicit encoding suffix.
15873 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15874 gt_cv_locale_zh_CN
=zh_CN.GB18030
15877 gt_cv_locale_zh_CN
=none
15883 # If there was a link error, due to mblen(), the system is so old that
15884 # it certainly doesn't have a chinese locale.
15885 gt_cv_locale_zh_CN
=none
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
15891 $as_echo "$gt_cv_locale_zh_CN" >&6; }
15892 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15896 $as_echo_n "checking for inline... " >&6; }
15897 if ${ac_cv_c_inline+:} false
; then :
15898 $as_echo_n "(cached) " >&6
15901 for ac_kw
in inline __inline__ __inline
; do
15902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904 #ifndef __cplusplus
15906 static $ac_kw foo_t static_foo () {return 0; }
15907 $ac_kw foo_t foo () {return 0; }
15911 if ac_fn_c_try_compile
"$LINENO"; then :
15912 ac_cv_c_inline
=$ac_kw
15914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15915 test "$ac_cv_c_inline" != no
&& break
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15920 $as_echo "$ac_cv_c_inline" >&6; }
15922 case $ac_cv_c_inline in
15925 case $ac_cv_c_inline in
15927 *) ac_val
=$ac_cv_c_inline;;
15929 cat >>confdefs.h
<<_ACEOF
15930 #ifndef __cplusplus
15931 #define inline $ac_val
15942 GNULIB_EXPLICIT_BZERO
=0;
15949 GNULIB_RAWMEMCHR
=0;
15952 GNULIB_STRCHRNUL
=0;
15960 GNULIB_STRCASESTR
=0;
15967 GNULIB_MBSCASECMP
=0;
15968 GNULIB_MBSNCASECMP
=0;
15969 GNULIB_MBSPCASECMP
=0;
15970 GNULIB_MBSCASESTR
=0;
15977 GNULIB_STRERROR_R
=0;
15978 GNULIB_STRERRORNAME_NP
=0;
15979 GNULIB_SIGABBREV_NP
=0;
15980 GNULIB_SIGDESCR_NP
=0;
15981 GNULIB_STRSIGNAL
=0;
15982 GNULIB_STRVERSCMP
=0;
15984 GNULIB_MDA_MEMCCPY
=1;
15985 GNULIB_MDA_STRDUP
=1;
15986 HAVE_EXPLICIT_BZERO
=1;
15989 HAVE_DECL_MEMMEM
=1;
15991 HAVE_DECL_MEMRCHR
=1;
15996 HAVE_DECL_STRDUP
=1;
15997 HAVE_DECL_STRNDUP
=1;
15998 HAVE_DECL_STRNLEN
=1;
16002 HAVE_DECL_STRTOK_R
=1;
16003 HAVE_DECL_STRERROR_R
=1;
16004 HAVE_STRERRORNAME_NP
=1;
16005 HAVE_SIGABBREV_NP
=1;
16006 HAVE_SIGDESCR_NP
=1;
16007 HAVE_DECL_STRSIGNAL
=1;
16013 REPLACE_STRCHRNUL
=0;
16019 REPLACE_STRCASESTR
=0;
16020 REPLACE_STRTOK_R
=0;
16021 REPLACE_STRERROR
=0;
16022 REPLACE_STRERROR_R
=0;
16023 REPLACE_STRERRORNAME_NP
=0;
16024 REPLACE_STRSIGNAL
=0;
16025 UNDEFINE_STRTOK_R
=0;
16032 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
16033 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
16034 # irrelevant for anonymous mappings.
16035 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
16036 if test "x$ac_cv_func_mmap" = xyes
; then :
16043 # Try to allow MAP_ANONYMOUS.
16044 gl_have_mmap_anonymous
=no
16045 if test $gl_have_mmap = yes; then
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
16047 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
16048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16051 #include <sys/mman.h>
16052 #ifdef MAP_ANONYMOUS
16053 I cannot identify this map
16057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16058 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
16059 gl_have_mmap_anonymous
=yes
16063 if test $gl_have_mmap_anonymous != yes; then
16064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16065 /* end confdefs.h. */
16067 #include <sys/mman.h>
16069 I cannot identify this map
16073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16074 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
16076 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
16078 gl_have_mmap_anonymous
=yes
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
16084 $as_echo "$gl_have_mmap_anonymous" >&6; }
16085 if test $gl_have_mmap_anonymous = yes; then
16087 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
16096 # Detect platform-specific bugs in some versions of glibc:
16097 # memchr should not dereference anything with length 0
16098 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
16099 # memchr should not dereference overestimated length after a match
16100 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
16101 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
16102 # memchr should cast the second argument to 'unsigned char'.
16103 # This bug exists in Android 4.3.
16104 # Assume that memchr works on platforms that lack mprotect.
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
16106 $as_echo_n "checking whether memchr works... " >&6; }
16107 if ${gl_cv_func_memchr_works+:} false
; then :
16108 $as_echo_n "(cached) " >&6
16110 if test "$cross_compiling" = yes; then :
16112 # Guess no on Android.
16113 linux
*-android*) gl_cv_func_memchr_works
="guessing no" ;;
16114 # Guess yes on native Windows.
16115 mingw
*) gl_cv_func_memchr_works
="guessing yes" ;;
16116 # If we don't know, obey --enable-cross-guesses.
16117 *) gl_cv_func_memchr_works
="$gl_cross_guess_normal" ;;
16121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16124 #include <string.h>
16125 #if HAVE_SYS_MMAN_H
16126 # include <fcntl.h>
16127 # include <unistd.h>
16128 # include <sys/types.h>
16129 # include <sys/mman.h>
16131 # define MAP_FILE 0
16140 char *fence = NULL;
16141 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
16142 # if HAVE_MAP_ANONYMOUS
16143 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
16145 # else /* !HAVE_MAP_ANONYMOUS */
16146 const int flags = MAP_FILE | MAP_PRIVATE;
16147 int fd = open ("/dev/zero", O_RDONLY, 0666);
16151 int pagesize = getpagesize ();
16153 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
16155 if (two_pages != (char *)(-1)
16156 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
16157 fence = two_pages + pagesize;
16162 /* Test against bugs on glibc systems. */
16163 if (memchr (fence, 0, 0))
16165 strcpy (fence - 9, "12345678");
16166 if (memchr (fence - 9, 0, 79) != fence - 1)
16168 if (memchr (fence - 1, 0, 3) != fence - 1)
16170 /* Test against bug on AIX 7.2. */
16171 if (memchr (fence - 4, '6', 16) != fence - 4)
16174 /* Test against bug on Android 4.3. */
16180 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
16189 if ac_fn_c_try_run
"$LINENO"; then :
16190 gl_cv_func_memchr_works
=yes
16192 gl_cv_func_memchr_works
=no
16194 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16195 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
16201 $as_echo "$gl_cv_func_memchr_works" >&6; }
16202 case "$gl_cv_func_memchr_works" in
16204 *) REPLACE_MEMCHR
=1 ;;
16207 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
16208 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
16214 cat >>confdefs.h
<<_ACEOF
16215 #define HAVE_DECL_MEMMEM $ac_have_decl
16222 for ac_func
in memmem
16224 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
16225 if test "x$ac_cv_func_memmem" = xyes
; then :
16226 cat >>confdefs.h
<<_ACEOF
16227 #define HAVE_MEMMEM 1
16233 if test $ac_cv_func_memmem = yes; then
16239 if test $ac_cv_have_decl_memmem = no
; then
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
16243 $as_echo_n "checking whether memmem works... " >&6; }
16244 if ${gl_cv_func_memmem_works_always+:} false
; then :
16245 $as_echo_n "(cached) " >&6
16247 if test "$cross_compiling" = yes; then :
16248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16251 #ifdef __GNU_LIBRARY__
16252 #include <features.h>
16253 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
16254 || __GLIBC_MINOR__ > 12)) \
16255 || (__GLIBC__ > 2)) \
16256 || defined __UCLIBC__
16259 #elif defined __CYGWIN__
16260 #include <cygwin/version.h>
16261 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16270 $EGREP "Lucky user" >/dev
/null
2>&1; then :
16271 gl_cv_func_memmem_works_always
="guessing yes"
16273 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
16279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16282 #include <string.h> /* for memmem */
16283 #define P "_EF_BF_BD"
16284 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16285 #define NEEDLE P P P P P
16292 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
16294 /* Check for empty needle behavior. */
16296 const char *haystack = "AAA";
16297 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
16306 if ac_fn_c_try_run
"$LINENO"; then :
16307 gl_cv_func_memmem_works_always
=yes
16309 gl_cv_func_memmem_works_always
=no
16311 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16312 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
16318 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
16319 case "$gl_cv_func_memmem_works_always" in
16328 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
16329 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
16335 cat >>confdefs.h
<<_ACEOF
16336 #define HAVE_DECL_MEMRCHR $ac_have_decl
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
16344 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
16345 if ${gl_cv_minmax_in_limits_h+:} false
; then :
16346 $as_echo_n "(cached) " >&6
16348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16349 /* end confdefs.h. */
16350 #include <limits.h>
16351 int x = MIN (42, 17);
16360 if ac_fn_c_try_compile
"$LINENO"; then :
16361 gl_cv_minmax_in_limits_h
=yes
16363 gl_cv_minmax_in_limits_h
=no
16365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
16368 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
16369 if test $gl_cv_minmax_in_limits_h = yes; then
16371 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
16381 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
16382 if ${gl_cv_minmax_in_sys_param_h+:} false
; then :
16383 $as_echo_n "(cached) " >&6
16385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16387 #include <sys/param.h>
16388 int x = MIN (42, 17);
16397 if ac_fn_c_try_compile
"$LINENO"; then :
16398 gl_cv_minmax_in_sys_param_h
=yes
16400 gl_cv_minmax_in_sys_param_h
=no
16402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
16405 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
16406 if test $gl_cv_minmax_in_sys_param_h = yes; then
16408 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
16421 GNULIB_GETADDRINFO
=0;
16422 HAVE_STRUCT_ADDRINFO
=1;
16423 HAVE_DECL_FREEADDRINFO
=1;
16424 HAVE_DECL_GAI_STRERROR
=1;
16425 HAVE_DECL_GETADDRINFO
=1;
16426 HAVE_DECL_GETNAMEINFO
=1;
16427 REPLACE_GAI_STRERROR
=0;
16428 REPLACE_GETADDRINFO
=0;
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
16432 $as_echo_n "checking for O_CLOEXEC... " >&6; }
16433 if ${gl_cv_macro_O_CLOEXEC+:} false
; then :
16434 $as_echo_n "(cached) " >&6
16436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16437 /* end confdefs.h. */
16451 if ac_fn_c_try_compile
"$LINENO"; then :
16452 gl_cv_macro_O_CLOEXEC
=yes
16454 gl_cv_macro_O_CLOEXEC
=no
16456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
16459 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
16464 $as_echo_n "checking for promoted mode_t type... " >&6; }
16465 if ${gl_cv_promoted_mode_t+:} false
; then :
16466 $as_echo_n "(cached) " >&6
16469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16471 #include <sys/types.h>
16475 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
16480 if ac_fn_c_try_compile
"$LINENO"; then :
16481 gl_cv_promoted_mode_t
='int'
16483 gl_cv_promoted_mode_t
='mode_t'
16485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
16489 $as_echo "$gl_cv_promoted_mode_t" >&6; }
16491 cat >>confdefs.h
<<_ACEOF
16492 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
16517 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
16518 if ${gl_cv_header_sys_select_h_selfcontained+:} false
; then :
16519 $as_echo_n "(cached) " >&6
16522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16524 #include <sys/select.h>
16533 if ac_fn_c_try_compile
"$LINENO"; then :
16534 gl_cv_header_sys_select_h_selfcontained
=yes
16536 gl_cv_header_sys_select_h_selfcontained
=no
16538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16539 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
16540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542 #include <sys/select.h>
16546 int memset; int bzero;
16552 if ac_fn_c_try_compile
"$LINENO"; then :
16553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555 #include <sys/select.h>
16561 #define memset nonexistent_memset
16566 void *memset (void *, int, unsigned long);
16568 #define bzero nonexistent_bzero
16573 void bzero (void *, unsigned long);
16582 if ac_fn_c_try_link
"$LINENO"; then :
16585 gl_cv_header_sys_select_h_selfcontained
=no
16587 rm -f core conftest.err conftest.
$ac_objext \
16588 conftest
$ac_exeext conftest.
$ac_ext
16591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
16596 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
16606 if test $gl_cv_have_include_next = yes; then
16607 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
16610 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
16611 if ${gl_cv_next_sys_select_h+:} false
; then :
16612 $as_echo_n "(cached) " >&6
16615 if test $ac_cv_header_sys_select_h = yes; then
16620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16621 /* end confdefs.h. */
16622 #include <sys/select.h>
16625 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16626 *) gl_absname_cpp
="$ac_cpp" ;;
16631 gl_dirsep_regex
='[/\\]'
16634 gl_dirsep_regex
='\/'
16637 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16638 gl_header_literal_regex
=`echo 'sys/select.h' \
16639 | sed -e "$gl_make_literal_regex_sed"`
16640 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16641 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16647 gl_cv_absolute_sys_select_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16648 sed -n "$gl_absolute_header_sed"`
16650 gl_header
=$gl_cv_absolute_sys_select_h
16651 gl_cv_next_sys_select_h
='"'$gl_header'"'
16653 gl_cv_next_sys_select_h
='<'sys
/select.h
'>'
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
16659 $as_echo "$gl_cv_next_sys_select_h" >&6; }
16661 NEXT_SYS_SELECT_H
=$gl_cv_next_sys_select_h
16663 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16664 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16665 gl_next_as_first_directive
='<'sys
/select.h
'>'
16667 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16668 gl_next_as_first_directive
=$gl_cv_next_sys_select_h
16670 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
=$gl_next_as_first_directive
16675 if test $ac_cv_header_sys_select_h = yes; then
16676 HAVE_SYS_SELECT_H
=1
16678 HAVE_SYS_SELECT_H
=0
16685 if test $ac_cv_header_sys_socket_h != yes; then
16686 for ac_header
in winsock2.h
16688 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16689 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
16690 cat >>confdefs.h
<<_ACEOF
16691 #define HAVE_WINSOCK2_H 1
16699 if test "$ac_cv_header_winsock2_h" = yes; then
16701 UNISTD_H_HAVE_WINSOCK2_H
=1
16702 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
16718 if test $ac_cv_header_sys_socket_h != yes; then
16719 for ac_header
in winsock2.h
16721 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16722 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
16723 cat >>confdefs.h
<<_ACEOF
16724 #define HAVE_WINSOCK2_H 1
16732 if test "$ac_cv_header_winsock2_h" = yes; then
16734 UNISTD_H_HAVE_WINSOCK2_H
=1
16735 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
16741 if test $HAVE_WINSOCK2_H = 1; then
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WSAStartup" >&5
16743 $as_echo_n "checking for WSAStartup... " >&6; }
16744 if ${gl_cv_func_wsastartup+:} false
; then :
16745 $as_echo_n "(cached) " >&6
16748 gl_save_LIBS
="$LIBS"
16749 LIBS
="$LIBS -lws2_32"
16750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16751 /* end confdefs.h. */
16753 #ifdef HAVE_WINSOCK2_H
16754 # include <winsock2.h>
16760 WORD wVersionRequested = MAKEWORD(1, 1);
16762 int err = WSAStartup(wVersionRequested, &wsaData);
16770 if ac_fn_c_try_link
"$LINENO"; then :
16771 gl_cv_func_wsastartup
=yes
16773 gl_cv_func_wsastartup
=no
16775 rm -f core conftest.err conftest.
$ac_objext \
16776 conftest
$ac_exeext conftest.
$ac_ext
16777 LIBS
="$gl_save_LIBS"
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
16781 $as_echo "$gl_cv_func_wsastartup" >&6; }
16782 if test "$gl_cv_func_wsastartup" = "yes"; then
16784 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
16786 LIBSOCKET
='-lws2_32'
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
16790 $as_echo_n "checking for library containing setsockopt... " >&6; }
16791 if ${gl_cv_lib_socket+:} false
; then :
16792 $as_echo_n "(cached) " >&6
16796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16811 if ac_fn_c_try_link
"$LINENO"; then :
16814 gl_save_LIBS
="$LIBS"
16815 LIBS
="$gl_save_LIBS -lsocket"
16816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16831 if ac_fn_c_try_link
"$LINENO"; then :
16832 gl_cv_lib_socket
="-lsocket"
16834 rm -f core conftest.err conftest.
$ac_objext \
16835 conftest
$ac_exeext conftest.
$ac_ext
16836 if test -z "$gl_cv_lib_socket"; then
16837 LIBS
="$gl_save_LIBS -lnetwork"
16838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h. */
16853 if ac_fn_c_try_link
"$LINENO"; then :
16854 gl_cv_lib_socket
="-lnetwork"
16856 rm -f core conftest.err conftest.
$ac_objext \
16857 conftest
$ac_exeext conftest.
$ac_ext
16858 if test -z "$gl_cv_lib_socket"; then
16859 LIBS
="$gl_save_LIBS -lnet"
16860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16875 if ac_fn_c_try_link
"$LINENO"; then :
16876 gl_cv_lib_socket
="-lnet"
16878 rm -f core conftest.err conftest.
$ac_objext \
16879 conftest
$ac_exeext conftest.
$ac_ext
16882 LIBS
="$gl_save_LIBS"
16885 rm -f core conftest.err conftest.
$ac_objext \
16886 conftest
$ac_exeext conftest.
$ac_ext
16887 if test -z "$gl_cv_lib_socket"; then
16888 gl_cv_lib_socket
="none needed"
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
16893 $as_echo "$gl_cv_lib_socket" >&6; }
16894 if test "$gl_cv_lib_socket" != "none needed"; then
16895 LIBSOCKET
="$gl_cv_lib_socket"
16907 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
16908 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
16914 cat >>confdefs.h
<<_ACEOF
16915 #define HAVE_DECL_SETENV $ac_have_decl
16923 if test $ac_cv_have_decl_setenv = no
; then
16931 for ac_header
in search.h
16933 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
16934 if test "x$ac_cv_header_search_h" = xyes
; then :
16935 cat >>confdefs.h
<<_ACEOF
16936 #define HAVE_SEARCH_H 1
16943 for ac_func
in tsearch
16945 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
16946 if test "x$ac_cv_func_tsearch" = xyes
; then :
16947 cat >>confdefs.h
<<_ACEOF
16948 #define HAVE_TSEARCH 1
16957 GNULIB_PTHREAD_SIGMASK
=0;
16959 GNULIB_SIGNAL_H_SIGPIPE
=0;
16960 GNULIB_SIGPROCMASK
=0;
16961 GNULIB_SIGACTION
=0;
16962 HAVE_POSIX_SIGNALBLOCKING
=1;
16963 HAVE_PTHREAD_SIGMASK
=1;
16968 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
16970 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
16972 HAVE_SIGHANDLER_T
=1;
16973 REPLACE_PTHREAD_SIGMASK
=0;
16977 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
16978 #include <signal.h>
16979 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
16980 #include <sys/types.h>
16983 if test "x$ac_cv_type_sigset_t" = xyes
; then :
16985 cat >>confdefs.h
<<_ACEOF
16986 #define HAVE_SIGSET_T 1
16989 gl_cv_type_sigset_t
=yes
16991 gl_cv_type_sigset_t
=no
16994 if test $gl_cv_type_sigset_t != yes; then
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16999 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17000 if ${ac_cv_header_stdbool_h+:} false
; then :
17001 $as_echo_n "(cached) " >&6
17003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17006 #include <stdbool.h>
17011 typedef _Bool Bool;
17013 "error: bool is not defined"
17016 "error: false is not defined"
17019 "error: false is not 0"
17022 "error: true is not defined"
17025 "error: true is not 1"
17029 #ifndef __bool_true_false_are_defined
17030 "error: __bool_true_false_are_defined is not defined"
17033 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
17035 char a[true == 1 ? 1 : -1];
17036 char b[false == 0 ? 1 : -1];
17037 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17038 char d[(bool) 0.5 == true ? 1 : -1];
17039 /* See body of main program for 'e'. */
17040 char f[(Bool) 0.0 == false ? 1 : -1];
17042 char h[sizeof (Bool)];
17043 char i[sizeof s.t];
17044 enum { j = false, k = true, l = false * true, m = true * 256 };
17045 /* The following fails for
17046 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17048 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17049 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17050 /* Catch a bug in an HP-UX C compiler. See
17051 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17052 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
17063 *pq |= q; *pq |= ! q;
17064 *qq |= q; *qq |= ! q;
17065 /* Refer to every declared value, to avoid compiler optimizations. */
17066 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17067 + !m + !n + !o + !p + !q + !pq + !qq);
17073 if ac_fn_c_try_compile
"$LINENO"; then :
17074 ac_cv_header_stdbool_h
=yes
17076 ac_cv_header_stdbool_h
=no
17078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17081 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17082 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17083 if test "x$ac_cv_type__Bool" = xyes
; then :
17085 cat >>confdefs.h
<<_ACEOF
17086 #define HAVE__BOOL 1
17093 ac_fn_c_check_decl
"$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default"
17094 if test "x$ac_cv_have_decl_fcloseall" = xyes
; then :
17100 cat >>confdefs.h
<<_ACEOF
17101 #define HAVE_DECL_FCLOSEALL $ac_have_decl
17104 ac_fn_c_check_decl
"$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default"
17105 if test "x$ac_cv_have_decl_ecvt" = xyes
; then :
17111 cat >>confdefs.h
<<_ACEOF
17112 #define HAVE_DECL_ECVT $ac_have_decl
17115 ac_fn_c_check_decl
"$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default"
17116 if test "x$ac_cv_have_decl_fcvt" = xyes
; then :
17122 cat >>confdefs.h
<<_ACEOF
17123 #define HAVE_DECL_FCVT $ac_have_decl
17126 ac_fn_c_check_decl
"$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default"
17127 if test "x$ac_cv_have_decl_gcvt" = xyes
; then :
17133 cat >>confdefs.h
<<_ACEOF
17134 #define HAVE_DECL_GCVT $ac_have_decl
17137 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
17138 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
17144 cat >>confdefs.h
<<_ACEOF
17145 #define HAVE_DECL_STRDUP $ac_have_decl
17149 REPLACE_STRERROR_0
=0
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
17151 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
17152 if ${gl_cv_func_strerror_0_works+:} false
; then :
17153 $as_echo_n "(cached) " >&6
17155 if test "$cross_compiling" = yes; then :
17157 # Guess yes on glibc systems.
17158 *-gnu* | gnu
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
17159 # Guess yes on musl systems.
17160 *-musl*) gl_cv_func_strerror_0_works
="guessing yes" ;;
17161 # Guess yes on native Windows.
17162 mingw
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
17163 # If we don't know, obey --enable-cross-guesses.
17164 *) gl_cv_func_strerror_0_works
="$gl_cross_guess_normal" ;;
17168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17169 /* end confdefs.h. */
17170 #include <string.h>
17179 str = strerror (0);
17180 if (!*str) result |= 1;
17181 if (errno) result |= 2;
17182 if (strstr (str, "nknown") || strstr (str, "ndefined"))
17189 if ac_fn_c_try_run
"$LINENO"; then :
17190 gl_cv_func_strerror_0_works
=yes
17192 gl_cv_func_strerror_0_works
=no
17194 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17195 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
17201 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
17202 case "$gl_cv_func_strerror_0_works" in
17205 REPLACE_STRERROR_0
=1
17207 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
17221 if test $ac_cv_func_strerror_r = yes; then
17222 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
17224 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
17225 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
17226 $as_echo_n "(cached) " >&6
17228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17230 #include <string.h>
17231 int strerror_r (int, char *, size_t);
17241 if ac_fn_c_try_compile
"$LINENO"; then :
17242 gl_cv_func_strerror_r_posix_signature
=yes
17244 gl_cv_func_strerror_r_posix_signature
=no
17246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
17250 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
17251 if test $gl_cv_func_strerror_r_posix_signature = yes; then
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
17253 $as_echo_n "checking whether strerror_r works... " >&6; }
17254 if ${gl_cv_func_strerror_r_works+:} false
; then :
17255 $as_echo_n "(cached) " >&6
17257 if test "$cross_compiling" = yes; then :
17261 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
17262 # Guess no on HP-UX.
17263 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
17264 # Guess no on BSD variants.
17265 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
17266 # Guess yes otherwise.
17267 *) gl_cv_func_strerror_r_works
="guessing yes";;
17271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h. */
17274 #include <string.h>
17281 if (strerror_r (EACCES, buf, 0) < 0)
17284 if (strerror_r (EACCES, buf, sizeof buf) != 0)
17286 strcpy (buf, "Unknown");
17287 if (strerror_r (0, buf, sizeof buf) != 0)
17291 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
17295 if (strerror_r (-3, buf, sizeof buf) < 0)
17307 if ac_fn_c_try_run
"$LINENO"; then :
17308 gl_cv_func_strerror_r_works
=yes
17310 gl_cv_func_strerror_r_works
=no
17312 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17313 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
17319 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
17322 if test $ac_cv_func___xpg_strerror_r = yes; then
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
17324 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
17325 if ${gl_cv_func_strerror_r_works+:} false
; then :
17326 $as_echo_n "(cached) " >&6
17328 if test "$cross_compiling" = yes; then :
17329 gl_cv_func_strerror_r_works
="$gl_cross_guess_normal"
17332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17335 #include <string.h>
17340 int __xpg_strerror_r(int, char *, size_t);
17346 char buf[256] = "^";
17348 char *str = strerror (-1);
17349 strcpy (copy, str);
17350 if (__xpg_strerror_r (-2, buf, 1) == 0)
17354 __xpg_strerror_r (-2, buf, 256);
17355 if (strcmp (str, copy))
17363 if ac_fn_c_try_run
"$LINENO"; then :
17364 gl_cv_func_strerror_r_works
=yes
17366 gl_cv_func_strerror_r_works
=no
17368 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17369 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
17375 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
17381 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17382 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
17388 cat >>confdefs.h
<<_ACEOF
17389 #define HAVE_DECL_STRERROR_R $ac_have_decl
17406 if test $gl_cv_have_include_next = yes; then
17407 gl_cv_next_string_h
='<'string.h
'>'
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
17410 $as_echo_n "checking absolute name of <string.h>... " >&6; }
17411 if ${gl_cv_next_string_h+:} false
; then :
17412 $as_echo_n "(cached) " >&6
17417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17419 #include <string.h>
17422 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17423 *) gl_absname_cpp
="$ac_cpp" ;;
17428 gl_dirsep_regex
='[/\\]'
17431 gl_dirsep_regex
='\/'
17434 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17435 gl_header_literal_regex
=`echo 'string.h' \
17436 | sed -e "$gl_make_literal_regex_sed"`
17437 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17438 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17444 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17445 sed -n "$gl_absolute_header_sed"`
17447 gl_header
=$gl_cv_absolute_string_h
17448 gl_cv_next_string_h
='"'$gl_header'"'
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
17453 $as_echo "$gl_cv_next_string_h" >&6; }
17455 NEXT_STRING_H
=$gl_cv_next_string_h
17457 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17458 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17459 gl_next_as_first_directive
='<'string.h
'>'
17461 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17462 gl_next_as_first_directive
=$gl_cv_next_string_h
17464 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
17490 if test $gl_cv_have_include_next = yes; then
17491 gl_cv_next_strings_h
='<'strings.h
'>'
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
17494 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
17495 if ${gl_cv_next_strings_h+:} false
; then :
17496 $as_echo_n "(cached) " >&6
17499 if test $ac_cv_header_strings_h = yes; then
17504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h. */
17506 #include <strings.h>
17509 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17510 *) gl_absname_cpp
="$ac_cpp" ;;
17515 gl_dirsep_regex
='[/\\]'
17518 gl_dirsep_regex
='\/'
17521 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17522 gl_header_literal_regex
=`echo 'strings.h' \
17523 | sed -e "$gl_make_literal_regex_sed"`
17524 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17525 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17531 gl_cv_absolute_strings_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17532 sed -n "$gl_absolute_header_sed"`
17534 gl_header
=$gl_cv_absolute_strings_h
17535 gl_cv_next_strings_h
='"'$gl_header'"'
17537 gl_cv_next_strings_h
='<'strings.h
'>'
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
17543 $as_echo "$gl_cv_next_strings_h" >&6; }
17545 NEXT_STRINGS_H
=$gl_cv_next_strings_h
17547 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17548 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17549 gl_next_as_first_directive
='<'strings.h
'>'
17551 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17552 gl_next_as_first_directive
=$gl_cv_next_strings_h
17554 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
=$gl_next_as_first_directive
17559 if test $ac_cv_header_strings_h = yes; then
17570 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
17571 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
17577 cat >>confdefs.h
<<_ACEOF
17578 #define HAVE_DECL_STRNLEN $ac_have_decl
17584 if test $REPLACE_MEMCHR = 1; then
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
17588 $as_echo_n "checking whether strstr works... " >&6; }
17589 if ${gl_cv_func_strstr_works_always+:} false
; then :
17590 $as_echo_n "(cached) " >&6
17592 if test "$cross_compiling" = yes; then :
17593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h. */
17596 #ifdef __GNU_LIBRARY__
17597 #include <features.h>
17598 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17599 || defined __UCLIBC__
17602 #elif defined __CYGWIN__
17603 #include <cygwin/version.h>
17604 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17613 $EGREP "Lucky user" >/dev
/null
2>&1; then :
17614 gl_cv_func_strstr_works_always
="guessing yes"
17616 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
17622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17625 #include <string.h> /* for strstr */
17626 #ifdef __GNU_LIBRARY__
17627 #include <features.h>
17628 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
17632 #define P "_EF_BF_BD"
17633 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
17634 #define NEEDLE P P P P P
17639 return !!strstr (HAYSTACK, NEEDLE);
17645 if ac_fn_c_try_run
"$LINENO"; then :
17646 gl_cv_func_strstr_works_always
=yes
17648 gl_cv_func_strstr_works_always
=no
17650 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17651 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
17657 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
17658 case "$gl_cv_func_strstr_works_always" in
17666 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
17667 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
17673 cat >>confdefs.h
<<_ACEOF
17674 #define HAVE_DECL_STRTOK_R $ac_have_decl
17689 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
17701 if test $gl_cv_have_include_next = yes; then
17702 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
17705 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
17706 if ${gl_cv_next_sys_types_h+:} false
; then :
17707 $as_echo_n "(cached) " >&6
17712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17714 #include <sys/types.h>
17717 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17718 *) gl_absname_cpp
="$ac_cpp" ;;
17723 gl_dirsep_regex
='[/\\]'
17726 gl_dirsep_regex
='\/'
17729 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17730 gl_header_literal_regex
=`echo 'sys/types.h' \
17731 | sed -e "$gl_make_literal_regex_sed"`
17732 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17733 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17739 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17740 sed -n "$gl_absolute_header_sed"`
17742 gl_header
=$gl_cv_absolute_sys_types_h
17743 gl_cv_next_sys_types_h
='"'$gl_header'"'
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
17748 $as_echo "$gl_cv_next_sys_types_h" >&6; }
17750 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
17752 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17753 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17754 gl_next_as_first_directive
='<'sys
/types.h
'>'
17756 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17757 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
17759 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
17772 WINDOWS_STAT_INODES
=0
17788 GNULIB_LOCALTIME
=0;
17789 GNULIB_NANOSLEEP
=0;
17793 GNULIB_TIMESPEC_GET
=0;
17797 GNULIB_MDA_TZSET
=1;
17798 HAVE_DECL_LOCALTIME_R
=1;
17802 HAVE_TIMESPEC_GET
=1;
17804 REPLACE_CTIME
=GNULIB_PORTCHECK
;
17805 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
17806 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
17807 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
17808 REPLACE_STRFTIME
=GNULIB_PORTCHECK
;
17809 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
17810 REPLACE_TZSET
=GNULIB_PORTCHECK
;
17812 : ${GNULIB_GETTIMEOFDAY=0};
17814 REPLACE_LOCALTIME
=0;
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
17819 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
17820 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
17821 $as_echo_n "(cached) " >&6
17823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17824 /* end confdefs.h. */
17830 static struct timespec x; x.tv_sec = x.tv_nsec;
17835 if ac_fn_c_try_compile
"$LINENO"; then :
17836 gl_cv_sys_struct_timespec_in_time_h
=yes
17838 gl_cv_sys_struct_timespec_in_time_h
=no
17840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
17843 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
17845 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
17846 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
17847 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
17848 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
17849 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
17850 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
17853 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
17854 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
17855 $as_echo_n "(cached) " >&6
17857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h. */
17859 #include <sys/time.h>
17864 static struct timespec x; x.tv_sec = x.tv_nsec;
17869 if ac_fn_c_try_compile
"$LINENO"; then :
17870 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
17872 gl_cv_sys_struct_timespec_in_sys_time_h
=no
17874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
17877 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
17878 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
17879 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
17882 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
17883 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
17884 $as_echo_n "(cached) " >&6
17886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17888 #include <pthread.h>
17893 static struct timespec x; x.tv_sec = x.tv_nsec;
17898 if ac_fn_c_try_compile
"$LINENO"; then :
17899 gl_cv_sys_struct_timespec_in_pthread_h
=yes
17901 gl_cv_sys_struct_timespec_in_pthread_h
=no
17903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
17906 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
17907 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
17908 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
17911 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
17912 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
17913 $as_echo_n "(cached) " >&6
17915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17917 #include <unistd.h>
17922 static struct timespec x; x.tv_sec = x.tv_nsec;
17927 if ac_fn_c_try_compile
"$LINENO"; then :
17928 gl_cv_sys_struct_timespec_in_unistd_h
=yes
17930 gl_cv_sys_struct_timespec_in_unistd_h
=no
17932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
17935 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
17936 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
17937 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
17958 if test $gl_cv_have_include_next = yes; then
17959 gl_cv_next_time_h
='<'time.h
'>'
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
17962 $as_echo_n "checking absolute name of <time.h>... " >&6; }
17963 if ${gl_cv_next_time_h+:} false
; then :
17964 $as_echo_n "(cached) " >&6
17969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17970 /* end confdefs.h. */
17974 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17975 *) gl_absname_cpp
="$ac_cpp" ;;
17980 gl_dirsep_regex
='[/\\]'
17983 gl_dirsep_regex
='\/'
17986 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17987 gl_header_literal_regex
=`echo 'time.h' \
17988 | sed -e "$gl_make_literal_regex_sed"`
17989 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17990 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17996 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17997 sed -n "$gl_absolute_header_sed"`
17999 gl_header
=$gl_cv_absolute_time_h
18000 gl_cv_next_time_h
='"'$gl_header'"'
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18005 $as_echo "$gl_cv_next_time_h" >&6; }
18007 NEXT_TIME_H
=$gl_cv_next_time_h
18009 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18010 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18011 gl_next_as_first_directive
='<'time.h
'>'
18013 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18014 gl_next_as_first_directive
=$gl_cv_next_time_h
18016 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
18026 $as_echo_n "checking for TIME_UTC in <time.h>... " >&6; }
18027 if ${gl_cv_time_h_has_TIME_UTC+:} false
; then :
18028 $as_echo_n "(cached) " >&6
18030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h. */
18037 static int x = TIME_UTC; x++;
18042 if ac_fn_c_try_compile
"$LINENO"; then :
18043 gl_cv_time_h_has_TIME_UTC
=yes
18045 gl_cv_time_h_has_TIME_UTC
=no
18047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
18050 $as_echo "$gl_cv_time_h_has_TIME_UTC" >&6; }
18051 if test $gl_cv_time_h_has_TIME_UTC = yes; then
18052 TIME_H_DEFINES_TIME_UTC
=1
18054 TIME_H_DEFINES_TIME_UTC
=0
18060 ac_fn_c_check_decl
"$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default"
18061 if test "x$ac_cv_have_decl_execvpe" = xyes
; then :
18067 cat >>confdefs.h
<<_ACEOF
18068 #define HAVE_DECL_EXECVPE $ac_have_decl
18071 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
18072 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
18078 cat >>confdefs.h
<<_ACEOF
18079 #define HAVE_DECL_UNSETENV $ac_have_decl
18086 if test $ac_cv_header_crtdefs_h = yes; then
18096 GNULIB_ISWXDIGIT
=0;
18100 GNULIB_TOWCTRANS
=0;
18104 REPLACE_ISWBLANK
=0;
18105 REPLACE_ISWDIGIT
=0;
18106 REPLACE_ISWXDIGIT
=0;
18116 GL_COND_LIBTOOL_TRUE
=
18117 GL_COND_LIBTOOL_FALSE
='#'
18119 GL_COND_LIBTOOL_TRUE
='#'
18120 GL_COND_LIBTOOL_FALSE
=
18123 gl_cond_libtool
=false
18126 gl_m4_base
='import/m4'
18137 gl_source_base
='import'
18139 if test "$ac_cv_header_winsock2_h" = yes; then
18148 gl_LIBOBJS
="$gl_LIBOBJS accept.$ac_objext"
18162 $as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
18168 if test $ac_cv_func_alloca_works = no
; then
18172 # Define an additional variable used in the Makefile substitution.
18173 if test $ac_cv_working_alloca_h = yes; then
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18175 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18176 if ${gl_cv_rpl_alloca+:} false
; then :
18177 $as_echo_n "(cached) " >&6
18180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18183 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18189 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
18190 gl_cv_rpl_alloca
=yes
18192 gl_cv_rpl_alloca
=no
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18199 $as_echo "$gl_cv_rpl_alloca" >&6; }
18200 if test $gl_cv_rpl_alloca = yes; then
18202 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18212 if test -n "$ALLOCA_H"; then
18213 GL_GENERATE_ALLOCA_H_TRUE
=
18214 GL_GENERATE_ALLOCA_H_FALSE
='#'
18216 GL_GENERATE_ALLOCA_H_TRUE
='#'
18217 GL_GENERATE_ALLOCA_H_FALSE
=
18221 if test $ac_cv_working_alloca_h = yes; then
18232 if test $ac_cv_header_arpa_inet_h = yes; then
18247 if test $gl_cv_have_include_next = yes; then
18248 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
18251 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
18252 if ${gl_cv_next_arpa_inet_h+:} false
; then :
18253 $as_echo_n "(cached) " >&6
18256 if test $ac_cv_header_arpa_inet_h = yes; then
18261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h. */
18263 #include <arpa/inet.h>
18266 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18267 *) gl_absname_cpp
="$ac_cpp" ;;
18272 gl_dirsep_regex
='[/\\]'
18275 gl_dirsep_regex
='\/'
18278 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18279 gl_header_literal_regex
=`echo 'arpa/inet.h' \
18280 | sed -e "$gl_make_literal_regex_sed"`
18281 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18282 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18288 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18289 sed -n "$gl_absolute_header_sed"`
18291 gl_header
=$gl_cv_absolute_arpa_inet_h
18292 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
18294 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
18300 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
18302 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
18304 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18305 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18306 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
18308 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18309 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
18311 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
18321 if test $ac_cv_header_sys_socket_h = yes; then
18324 if test $ac_cv_header_ws2tcpip_h = yes; then
18340 if test "$ac_cv_header_winsock2_h" = yes; then
18349 gl_LIBOBJS
="$gl_LIBOBJS bind.$ac_objext"
18363 $as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
18373 if test $ac_cv_func_btowc = no
; then
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
18381 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
18382 if ${gl_cv_func_btowc_nul+:} false
; then :
18383 $as_echo_n "(cached) " >&6
18386 if test "$cross_compiling" = yes; then :
18389 # Guess no on Cygwin.
18390 cygwin
*) gl_cv_func_btowc_nul
="guessing no" ;;
18391 # Guess yes on native Windows.
18392 mingw
*) gl_cv_func_btowc_nul
="guessing yes" ;;
18393 # Guess yes otherwise.
18394 *) gl_cv_func_btowc_nul
="guessing yes" ;;
18398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h. */
18404 if (btowc ('\0') != 0)
18409 if ac_fn_c_try_run
"$LINENO"; then :
18410 gl_cv_func_btowc_nul
=yes
18412 gl_cv_func_btowc_nul
=no
18414 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18415 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
18421 $as_echo "$gl_cv_func_btowc_nul" >&6; }
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
18424 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
18425 if ${gl_cv_func_btowc_eof+:} false
; then :
18426 $as_echo_n "(cached) " >&6
18430 # Guess no on IRIX.
18431 irix
*) gl_cv_func_btowc_eof
="guessing no" ;;
18432 # Guess yes on native Windows.
18433 mingw
*) gl_cv_func_btowc_eof
="guessing yes" ;;
18434 # Guess yes otherwise.
18435 *) gl_cv_func_btowc_eof
="guessing yes" ;;
18437 if test $LOCALE_FR != none
; then
18438 if test "$cross_compiling" = yes; then :
18441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h. */
18444 #include <locale.h>
18449 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
18451 if (btowc (EOF) != WEOF)
18457 if ac_fn_c_try_run
"$LINENO"; then :
18458 gl_cv_func_btowc_eof
=yes
18460 gl_cv_func_btowc_eof
=no
18462 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18463 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
18470 $as_echo "$gl_cv_func_btowc_eof" >&6; }
18472 case "$gl_cv_func_btowc_nul" in
18474 *) REPLACE_BTOWC
=1 ;;
18476 case "$gl_cv_func_btowc_eof" in
18478 *) REPLACE_BTOWC
=1 ;;
18482 if test $HAVE_BTOWC = 0 ||
test $REPLACE_BTOWC = 1; then
18491 gl_LIBOBJS
="$gl_LIBOBJS btowc.$ac_objext"
18508 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
18514 $as_echo_n "checking for __builtin_expect... " >&6; }
18515 if ${gl_cv___builtin_expect+:} false
; then :
18516 $as_echo_n "(cached) " >&6
18518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h. */
18522 main (int argc, char **argv)
18524 argc = __builtin_expect (argc, 100);
18525 return argv[argc != 100][0];
18528 if ac_fn_c_try_link
"$LINENO"; then :
18529 gl_cv___builtin_expect
=yes
18531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18534 #include <builtins.h>
18536 main (int argc, char **argv)
18538 argc = __builtin_expect (argc, 100);
18539 return argv[argc != 100][0];
18542 if ac_fn_c_try_link
"$LINENO"; then :
18543 gl_cv___builtin_expect
="in <builtins.h>"
18545 gl_cv___builtin_expect
=no
18547 rm -f core conftest.err conftest.
$ac_objext \
18548 conftest
$ac_exeext conftest.
$ac_ext
18550 rm -f core conftest.err conftest.
$ac_objext \
18551 conftest
$ac_exeext conftest.
$ac_ext
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
18554 $as_echo "$gl_cv___builtin_expect" >&6; }
18555 if test "$gl_cv___builtin_expect" = yes; then
18556 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
18558 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
18559 $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
18567 if test $ac_cv_func_canonicalize_file_name = no
; then
18568 HAVE_CANONICALIZE_FILE_NAME
=0
18569 if test $ac_cv_func_realpath = no
; then
18572 case "$gl_cv_func_realpath_works" in
18574 *) REPLACE_REALPATH
=1 ;;
18578 case "$gl_cv_func_realpath_works" in
18582 REPLACE_CANONICALIZE_FILE_NAME
=1
18588 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
18597 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
18602 cat >>confdefs.h
<<_ACEOF
18603 #define GNULIB_CANONICALIZE_LGPL 1
18612 GNULIB_CANONICALIZE_FILE_NAME
=1
18618 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
18633 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
18648 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system supports file names of any length" >&5
18655 $as_echo_n "checking whether this system supports file names of any length... " >&6; }
18656 if ${gl_cv_have_unlimited_file_name_length+:} false
; then :
18657 $as_echo_n "(cached) " >&6
18659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18660 /* end confdefs.h. */
18662 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
18664 # include <unistd.h>
18666 #include <limits.h>
18667 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
18668 # include <sys/param.h>
18670 #if !defined PATH_MAX && defined MAXPATHLEN
18671 # define PATH_MAX MAXPATHLEN
18675 # define PATH_MAX 1024
18677 #if defined _WIN32 && ! defined __CYGWIN__
18679 # define PATH_MAX 260
18683 have_arbitrary_file_name_length_limit
18686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18687 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
18688 gl_cv_have_unlimited_file_name_length
=no
18690 gl_cv_have_unlimited_file_name_length
=yes
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_unlimited_file_name_length" >&5
18696 $as_echo "$gl_cv_have_unlimited_file_name_length" >&6; }
18698 if test $gl_cv_have_unlimited_file_name_length = no
; then
18707 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
18712 if test $HAVE_CHOWN = 0 ||
test $REPLACE_CHOWN = 1; then
18721 gl_LIBOBJS
="$gl_LIBOBJS chown.$ac_objext"
18724 if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no
; then
18733 gl_LIBOBJS
="$gl_LIBOBJS fchown-stub.$ac_objext"
18747 $as_echo "#define GNULIB_TEST_CHOWN 1" >>confdefs.h
18754 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
18755 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
18757 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
18758 # programs in the package would end up linked with that potentially-shared
18759 # library, inducing unnecessary run-time overhead.
18762 gl_saved_libs
=$LIBS
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18764 $as_echo_n "checking for library containing clock_gettime... " >&6; }
18765 if ${ac_cv_search_clock_gettime+:} false
; then :
18766 $as_echo_n "(cached) " >&6
18768 ac_func_search_save_LIBS
=$LIBS
18769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h. */
18772 /* Override any GCC internal prototype to avoid an error.
18773 Use char because int might match the return type of a GCC
18774 builtin and then its argument prototype would still apply. */
18778 char clock_gettime ();
18782 return clock_gettime ();
18787 for ac_lib
in '' rt posix4
; do
18788 if test -z "$ac_lib"; then
18789 ac_res
="none required"
18792 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18794 if ac_fn_c_try_link
"$LINENO"; then :
18795 ac_cv_search_clock_gettime
=$ac_res
18797 rm -f core conftest.err conftest.
$ac_objext \
18799 if ${ac_cv_search_clock_gettime+:} false
; then :
18803 if ${ac_cv_search_clock_gettime+:} false
; then :
18806 ac_cv_search_clock_gettime
=no
18808 rm conftest.
$ac_ext
18809 LIBS
=$ac_func_search_save_LIBS
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18812 $as_echo "$ac_cv_search_clock_gettime" >&6; }
18813 ac_res
=$ac_cv_search_clock_gettime
18814 if test "$ac_res" != no
; then :
18815 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18816 test "$ac_cv_search_clock_gettime" = "none required" ||
18817 LIB_CLOCK_GETTIME
=$ac_cv_search_clock_gettime
18820 for ac_func
in clock_gettime clock_settime
18822 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18823 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18824 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
18825 cat >>confdefs.h
<<_ACEOF
18826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18832 LIBS
=$gl_saved_libs
18836 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
18843 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
18852 if test $ac_cv_header_sys_socket_h != yes; then
18853 for ac_header
in winsock2.h
18855 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18856 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
18857 cat >>confdefs.h
<<_ACEOF
18858 #define HAVE_WINSOCK2_H 1
18866 if test "$ac_cv_header_winsock2_h" = yes; then
18868 UNISTD_H_HAVE_WINSOCK2_H
=1
18869 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
18875 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
18880 if test $REPLACE_CLOSE = 0; then
18884 if test $ac_cv_func_fchdir = no
; then
18888 if test $HAVE_FCHDIR = 0; then
18894 if test $REPLACE_CLOSE = 1; then
18903 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
18917 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
18924 for ac_func
in closedir
18926 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
18927 if test "x$ac_cv_func_closedir" = xyes
; then :
18928 cat >>confdefs.h
<<_ACEOF
18929 #define HAVE_CLOSEDIR 1
18935 if test $ac_cv_func_closedir = no
; then
18942 if test $ac_cv_func_fchdir = no
; then
18946 if test $HAVE_FCHDIR = 0; then
18947 if test $HAVE_CLOSEDIR = 1; then
18952 case $host_os,$HAVE_CLOSEDIR in
18954 REPLACE_CLOSEDIR
=1;;
18957 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
18966 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
18980 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
18985 if test "$ac_cv_header_winsock2_h" = yes; then
18994 gl_LIBOBJS
="$gl_LIBOBJS connect.$ac_objext"
19008 $as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
19023 if test $gl_cv_have_include_next = yes; then
19024 gl_cv_next_ctype_h
='<'ctype.h
'>'
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5
19027 $as_echo_n "checking absolute name of <ctype.h>... " >&6; }
19028 if ${gl_cv_next_ctype_h+:} false
; then :
19029 $as_echo_n "(cached) " >&6
19034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19035 /* end confdefs.h. */
19039 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19040 *) gl_absname_cpp
="$ac_cpp" ;;
19045 gl_dirsep_regex
='[/\\]'
19048 gl_dirsep_regex
='\/'
19051 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19052 gl_header_literal_regex
=`echo 'ctype.h' \
19053 | sed -e "$gl_make_literal_regex_sed"`
19054 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19055 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19061 gl_cv_absolute_ctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19062 sed -n "$gl_absolute_header_sed"`
19064 gl_header
=$gl_cv_absolute_ctype_h
19065 gl_cv_next_ctype_h
='"'$gl_header'"'
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5
19070 $as_echo "$gl_cv_next_ctype_h" >&6; }
19072 NEXT_CTYPE_H
=$gl_cv_next_ctype_h
19074 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19075 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19076 gl_next_as_first_directive
='<'ctype.h
'>'
19078 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19079 gl_next_as_first_directive
=$gl_cv_next_ctype_h
19081 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H
=$gl_next_as_first_directive
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
19092 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
19093 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
19094 $as_echo_n "(cached) " >&6
19096 if test "$cross_compiling" = yes; then :
19098 # Guess yes on glibc systems with Linux kernel.
19099 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
19100 # Guess yes on musl systems with Linux kernel.
19101 linux
*-musl*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
19102 # Guess no on native Windows.
19103 mingw
*) gl_cv_struct_dirent_d_ino
="guessing no" ;;
19104 # If we don't know, obey --enable-cross-guesses.
19105 *) gl_cv_struct_dirent_d_ino
="$gl_cross_guess_normal" ;;
19109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19110 /* end confdefs.h. */
19111 #include <sys/types.h>
19112 #include <sys/stat.h>
19113 #include <dirent.h>
19118 DIR *dp = opendir (".");
19125 { closedir (dp); return 2; }
19126 if (lstat (e->d_name, &st) != 0)
19127 { closedir (dp); return 3; }
19128 if (e->d_ino != st.st_ino)
19129 { closedir (dp); return 4; }
19137 if ac_fn_c_try_run
"$LINENO"; then :
19138 gl_cv_struct_dirent_d_ino
=yes
19140 gl_cv_struct_dirent_d_ino
=no
19142 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19143 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
19148 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
19149 case "$gl_cv_struct_dirent_d_ino" in
19152 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
19159 $as_echo_n "checking for d_type member in directory struct... " >&6; }
19160 if ${gl_cv_struct_dirent_d_type+:} false
; then :
19161 $as_echo_n "(cached) " >&6
19163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h. */
19166 #include <sys/types.h>
19167 #include <dirent.h>
19172 struct dirent dp; dp.d_type = 0;
19177 if ac_fn_c_try_link
"$LINENO"; then :
19178 gl_cv_struct_dirent_d_type
=yes
19180 gl_cv_struct_dirent_d_type
=no
19182 rm -f core conftest.err conftest.
$ac_objext \
19183 conftest
$ac_exeext conftest.
$ac_ext
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
19188 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
19189 if test $gl_cv_struct_dirent_d_type = yes; then
19191 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
19208 if test $gl_cv_have_include_next = yes; then
19209 gl_cv_next_dirent_h
='<'dirent.h
'>'
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
19212 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
19213 if ${gl_cv_next_dirent_h+:} false
; then :
19214 $as_echo_n "(cached) " >&6
19217 if test $ac_cv_header_dirent_h = yes; then
19222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19223 /* end confdefs.h. */
19224 #include <dirent.h>
19227 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19228 *) gl_absname_cpp
="$ac_cpp" ;;
19233 gl_dirsep_regex
='[/\\]'
19236 gl_dirsep_regex
='\/'
19239 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19240 gl_header_literal_regex
=`echo 'dirent.h' \
19241 | sed -e "$gl_make_literal_regex_sed"`
19242 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19243 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19249 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19250 sed -n "$gl_absolute_header_sed"`
19252 gl_header
=$gl_cv_absolute_dirent_h
19253 gl_cv_next_dirent_h
='"'$gl_header'"'
19255 gl_cv_next_dirent_h
='<'dirent.h
'>'
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
19261 $as_echo "$gl_cv_next_dirent_h" >&6; }
19263 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
19265 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19266 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19267 gl_next_as_first_directive
='<'dirent.h
'>'
19269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19270 gl_next_as_first_directive
=$gl_cv_next_dirent_h
19272 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
19277 if test $ac_cv_header_dirent_h = yes; then
19293 for ac_func
in dirfd
19295 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
19296 if test "x$ac_cv_func_dirfd" = xyes
; then :
19297 cat >>confdefs.h
<<_ACEOF
19298 #define HAVE_DIRFD 1
19304 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
19305 #include <dirent.h>
19307 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
19313 cat >>confdefs.h
<<_ACEOF
19314 #define HAVE_DECL_DIRFD $ac_have_decl
19317 if test $ac_cv_have_decl_dirfd = no
; then
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
19322 $as_echo_n "checking whether dirfd is a macro... " >&6; }
19323 if ${gl_cv_func_dirfd_macro+:} false
; then :
19324 $as_echo_n "(cached) " >&6
19326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19329 #include <sys/types.h>
19330 #include <dirent.h>
19332 dirent_header_defines_dirfd
19335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19336 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
19337 gl_cv_func_dirfd_macro
=yes
19339 gl_cv_func_dirfd_macro
=no
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
19345 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
19347 # Use the replacement if we have no function or macro with that name,
19348 # or if OS/2 kLIBC whose dirfd() does not work.
19349 # Replace only if the system declares dirfd already.
19350 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
19351 no
,no
,*,yes |
*,*,os2
*,yes)
19354 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
19358 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
19359 ||
test $REPLACE_DIRFD = 1; then
19368 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
19372 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
19373 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
19374 $as_echo_n "(cached) " >&6
19377 dirfd_save_CFLAGS
=$CFLAGS
19378 for ac_expr
in d_fd dd_fd
; do
19380 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
19381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19382 /* end confdefs.h. */
19384 #include <sys/types.h>
19385 #include <dirent.h>
19389 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
19394 if ac_fn_c_try_compile
"$LINENO"; then :
19398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19399 CFLAGS
=$dirfd_save_CFLAGS
19400 test "$dir_fd_found" = yes && break
19402 test "$dir_fd_found" = yes || ac_expr
=no_such_member
19404 gl_cv_sys_dir_fd_member_name
=$ac_expr
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
19409 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
19410 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
19412 cat >>confdefs.h
<<_ACEOF
19413 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
19431 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
19438 $as_echo_n "checking whether // is distinct from /... " >&6; }
19439 if ${gl_cv_double_slash_root+:} false
; then :
19440 $as_echo_n "(cached) " >&6
19442 if test x
"$cross_compiling" = xyes
; then
19443 # When cross-compiling, there is no way to tell whether // is special
19444 # short of a list of hosts. However, the only known hosts to date
19445 # that have a distinct // are Apollo DomainOS (too old to port to),
19446 # Cygwin, and z/OS. If anyone knows of another system for which // has
19447 # special semantics and is distinct from /, please report it to
19448 # <bug-gnulib@gnu.org>.
19450 *-cygwin | i370-ibm-openedition
)
19451 gl_cv_double_slash_root
=yes ;;
19453 # Be optimistic and assume that / and // are the same when we
19455 gl_cv_double_slash_root
='unknown, assuming no' ;;
19458 set x
`ls -di / // 2>/dev/null`
19459 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
19460 gl_cv_double_slash_root
=no
19462 gl_cv_double_slash_root
=yes
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
19467 $as_echo "$gl_cv_double_slash_root" >&6; }
19468 if test "$gl_cv_double_slash_root" = yes; then
19470 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
19478 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19486 if test $ac_cv_func_fchdir = no
; then
19490 if test $HAVE_FCHDIR = 0; then
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
19495 $as_echo_n "checking whether dup works... " >&6; }
19496 if ${gl_cv_func_dup_works+:} false
; then :
19497 $as_echo_n "(cached) " >&6
19499 if test "$cross_compiling" = yes; then :
19501 # Guess no on native Windows.
19502 mingw
*) gl_cv_func_dup_works
="guessing no" ;;
19503 *) gl_cv_func_dup_works
="guessing yes" ;;
19507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19508 /* end confdefs.h. */
19509 #include <unistd.h>
19519 /* On OS/2 kLIBC, dup does not work on a directory fd. */
19520 int fd = open (".", O_RDONLY);
19521 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
19528 if ac_fn_c_try_run
"$LINENO"; then :
19529 gl_cv_func_dup_works
=yes
19531 gl_cv_func_dup_works
=no
19533 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19534 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
19540 $as_echo "$gl_cv_func_dup_works" >&6; }
19541 case "$gl_cv_func_dup_works" in
19548 if test $REPLACE_DUP = 1; then
19557 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
19572 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19580 $as_echo_n "checking whether dup2 works... " >&6; }
19581 if ${gl_cv_func_dup2_works+:} false
; then :
19582 $as_echo_n "(cached) " >&6
19584 if test "$cross_compiling" = yes; then :
19586 mingw
*) # on this platform, dup2 always returns 0 for success
19587 gl_cv_func_dup2_works
="guessing no" ;;
19588 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
19589 gl_cv_func_dup2_works
="guessing no" ;;
19591 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
19593 gl_cv_func_dup2_works
="guessing no" ;;
19594 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19595 gl_cv_func_dup2_works
="guessing no" ;;
19596 *-android*) # implemented using dup3(), which fails if oldfd == newfd
19597 gl_cv_func_dup2_works
="guessing no" ;;
19598 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
19599 gl_cv_func_dup2_works
="guessing no" ;;
19600 *) gl_cv_func_dup2_works
="guessing yes" ;;
19603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h. */
19608 #include <limits.h>
19609 #include <sys/resource.h>
19610 #include <unistd.h>
19615 #ifndef RLIM_SAVED_CUR
19616 # define RLIM_SAVED_CUR RLIM_INFINITY
19618 #ifndef RLIM_SAVED_MAX
19619 # define RLIM_SAVED_MAX RLIM_INFINITY
19626 int bad_fd = INT_MAX;
19627 struct rlimit rlim;
19628 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
19629 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
19630 && rlim.rlim_cur != RLIM_INFINITY
19631 && rlim.rlim_cur != RLIM_SAVED_MAX
19632 && rlim.rlim_cur != RLIM_SAVED_CUR)
19633 bad_fd = rlim.rlim_cur;
19635 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19638 if (dup2 (1, 1) != 1)
19641 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19645 if (dup2 (0, 0) != -1)
19647 /* Many gnulib modules require POSIX conformance of EBADF. */
19648 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
19650 /* Flush out some cygwin core dumps. */
19651 if (dup2 (2, -1) != -1 || errno != EBADF)
19655 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
19657 int fd = open (".", O_RDONLY);
19660 else if (dup2 (fd, fd + 1) == -1)
19670 if ac_fn_c_try_run
"$LINENO"; then :
19671 gl_cv_func_dup2_works
=yes
19673 gl_cv_func_dup2_works
=no
19675 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19676 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19682 $as_echo "$gl_cv_func_dup2_works" >&6; }
19683 case "$gl_cv_func_dup2_works" in
19687 for ac_func
in setdtablesize
19689 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
19690 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
19691 cat >>confdefs.h
<<_ACEOF
19692 #define HAVE_SETDTABLESIZE 1
19704 if test $ac_cv_func_fchdir = no
; then
19708 if test $HAVE_FCHDIR = 0; then
19713 if test $REPLACE_DUP2 = 1; then
19722 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
19737 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
19753 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
19760 $as_echo_n "checking for error_at_line... " >&6; }
19761 if ${ac_cv_lib_error_at_line+:} false
; then :
19762 $as_echo_n "(cached) " >&6
19764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19765 /* end confdefs.h. */
19770 error_at_line (0, 0, "", 0, "an error occurred");
19775 if ac_fn_c_try_link
"$LINENO"; then :
19776 ac_cv_lib_error_at_line
=yes
19778 ac_cv_lib_error_at_line
=no
19780 rm -f core conftest.err conftest.
$ac_objext \
19781 conftest
$ac_exeext conftest.
$ac_ext
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
19784 $as_echo "$ac_cv_lib_error_at_line" >&6; }
19786 if test $ac_cv_lib_error_at_line = no
; then
19795 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
19809 if test $ac_cv_have_decl_fchdir = no
; then
19814 if test $HAVE_FCHDIR = 0; then
19823 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
19827 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
19830 $as_echo_n "checking whether open can visit directories... " >&6; }
19831 if ${gl_cv_func_open_directory_works+:} false
; then :
19832 $as_echo_n "(cached) " >&6
19834 if test "$cross_compiling" = yes; then :
19836 # Guess yes on Linux systems.
19837 linux-
* | linux
) gl_cv_func_open_directory_works
="guessing yes" ;;
19838 # Guess yes on glibc systems.
19839 *-gnu* | gnu
*) gl_cv_func_open_directory_works
="guessing yes" ;;
19840 # Guess no on native Windows.
19841 mingw
*) gl_cv_func_open_directory_works
="guessing no" ;;
19842 # If we don't know, obey --enable-cross-guesses.
19843 *) gl_cv_func_open_directory_works
="$gl_cross_guess_normal" ;;
19847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19848 /* end confdefs.h. */
19857 return open(".", O_RDONLY) < 0;
19862 if ac_fn_c_try_run
"$LINENO"; then :
19863 gl_cv_func_open_directory_works
=yes
19865 gl_cv_func_open_directory_works
=no
19867 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19868 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
19873 $as_echo "$gl_cv_func_open_directory_works" >&6; }
19874 case "$gl_cv_func_open_directory_works" in
19878 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
19895 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
19904 if test $ac_cv_func_fcntl = no
; then
19908 if test $ac_cv_func_fcntl = no
; then
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
19916 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
19917 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
19918 $as_echo_n "(cached) " >&6
19920 if test "$cross_compiling" = yes; then :
19922 aix
* | cygwin
* | haiku
*)
19923 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
19924 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
19927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h. */
19931 #include <limits.h>
19932 #include <sys/resource.h>
19933 #include <unistd.h>
19938 #ifndef RLIM_SAVED_CUR
19939 # define RLIM_SAVED_CUR RLIM_INFINITY
19941 #ifndef RLIM_SAVED_MAX
19942 # define RLIM_SAVED_MAX RLIM_INFINITY
19949 int bad_fd = INT_MAX;
19950 struct rlimit rlim;
19951 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
19952 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
19953 && rlim.rlim_cur != RLIM_INFINITY
19954 && rlim.rlim_cur != RLIM_SAVED_MAX
19955 && rlim.rlim_cur != RLIM_SAVED_CUR)
19956 bad_fd = rlim.rlim_cur;
19957 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
19958 if (errno != EINVAL) result |= 2;
19959 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
19960 if (errno != EINVAL) result |= 8;
19961 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
19964 fd = open (".", O_RDONLY);
19967 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
19977 if ac_fn_c_try_run
"$LINENO"; then :
19978 gl_cv_func_fcntl_f_dupfd_works
=yes
19980 gl_cv_func_fcntl_f_dupfd_works
=no
19982 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19983 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
19988 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
19989 case $gl_cv_func_fcntl_f_dupfd_works in
19994 if test $ac_cv_func_fcntl = no
; then
20001 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
20006 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
20007 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
20008 $as_echo_n "(cached) " >&6
20010 if test "$cross_compiling" = yes; then :
20012 # Guess no on NetBSD.
20013 netbsd
*) gl_cv_func_fcntl_f_dupfd_cloexec
="guessing no" ;;
20014 *) gl_cv_func_fcntl_f_dupfd_cloexec
="$gl_cross_guess_normal" ;;
20018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20019 /* end confdefs.h. */
20021 #include <unistd.h>
20022 int main (int argc, char *argv[])
20025 /* parent process */
20027 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
20029 return execl ("./conftest", "./conftest", "child", NULL);
20032 /* child process */
20033 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
20038 if ac_fn_c_try_run
"$LINENO"; then :
20039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h. */
20043 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
20044 it to support the semantics on older kernels that failed with EINVAL. */
20056 if ac_fn_c_try_compile
"$LINENO"; then :
20057 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
20059 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
20061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20064 gl_cv_func_fcntl_f_dupfd_cloexec
=no
20066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20067 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
20073 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
20074 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
20079 if test $ac_cv_func_fcntl = no
; then
20092 if test $ac_cv_func_fchdir = no
; then
20096 if test $HAVE_FCHDIR = 0; then
20100 if test $ac_cv_func_fcntl = no
; then
20109 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
20118 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
20132 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
20147 if test $gl_cv_have_include_next = yes; then
20148 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
20151 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
20152 if ${gl_cv_next_fcntl_h+:} false
; then :
20153 $as_echo_n "(cached) " >&6
20158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20159 /* end confdefs.h. */
20163 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20164 *) gl_absname_cpp
="$ac_cpp" ;;
20169 gl_dirsep_regex
='[/\\]'
20172 gl_dirsep_regex
='\/'
20175 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20176 gl_header_literal_regex
=`echo 'fcntl.h' \
20177 | sed -e "$gl_make_literal_regex_sed"`
20178 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20179 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20185 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20186 sed -n "$gl_absolute_header_sed"`
20188 gl_header
=$gl_cv_absolute_fcntl_h
20189 gl_cv_next_fcntl_h
='"'$gl_header'"'
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
20194 $as_echo "$gl_cv_next_fcntl_h" >&6; }
20196 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
20198 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20199 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20200 gl_next_as_first_directive
='<'fcntl.h
'>'
20202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20203 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
20205 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
20221 cat >>confdefs.h
<<_ACEOF
20222 #define GNULIB_FD_SAFER_FLAG 1
20231 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
20232 #include <dirent.h>
20235 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
20241 cat >>confdefs.h
<<_ACEOF
20242 #define HAVE_DECL_FDOPENDIR $ac_have_decl
20244 if test $ac_have_decl = 1; then :
20247 HAVE_DECL_FDOPENDIR
=0
20251 if test $ac_cv_func_fdopendir = no
; then
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
20255 $as_echo_n "checking whether fdopendir works... " >&6; }
20256 if ${gl_cv_func_fdopendir_works+:} false
; then :
20257 $as_echo_n "(cached) " >&6
20259 if test "$cross_compiling" = yes; then :
20261 # Guess yes on glibc systems.
20262 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
20263 # Guess yes on musl systems.
20264 *-musl*) gl_cv_func_fdopendir_works
="guessing yes" ;;
20265 # If we don't know, obey --enable-cross-guesses.
20266 *) gl_cv_func_fdopendir_works
="$gl_cross_guess_normal" ;;
20270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20271 /* end confdefs.h. */
20273 #include <dirent.h>
20275 #include <unistd.h>
20280 #if !HAVE_DECL_FDOPENDIR
20282 # ifdef __cplusplus
20285 DIR *fdopendir (int);
20292 int fd = open ("conftest.c", O_RDONLY);
20293 if (fd < 0) result |= 1;
20294 if (fdopendir (fd)) result |= 2;
20295 if (close (fd)) result |= 4;
20302 if ac_fn_c_try_run
"$LINENO"; then :
20303 gl_cv_func_fdopendir_works
=yes
20305 gl_cv_func_fdopendir_works
=no
20307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
20313 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
20314 case "$gl_cv_func_fdopendir_works" in
20317 REPLACE_FDOPENDIR
=1
20322 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
20331 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
20345 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
20351 cat >>confdefs.h
<<_ACEOF
20352 #define GNULIB_FDOPENDIR 1
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffs" >&5
20360 $as_echo_n "checking for ffs... " >&6; }
20361 if ${gl_cv_func_ffs+:} false
; then :
20362 $as_echo_n "(cached) " >&6
20364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20365 /* end confdefs.h. */
20366 #include <strings.h>
20372 int (*func) (int) = ffs;
20380 if ac_fn_c_try_link
"$LINENO"; then :
20385 rm -f core conftest.err conftest.
$ac_objext \
20386 conftest
$ac_exeext conftest.
$ac_ext
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ffs" >&5
20390 $as_echo "$gl_cv_func_ffs" >&6; }
20391 if test $gl_cv_func_ffs = no
; then
20395 if test $HAVE_FFS = 0; then
20404 gl_LIBOBJS
="$gl_LIBOBJS ffs.$ac_objext"
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
20422 $as_echo_n "checking for flexible array member... " >&6; }
20423 if ${ac_cv_c_flexmember+:} false
; then :
20424 $as_echo_n "(cached) " >&6
20426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20427 /* end confdefs.h. */
20428 #include <stdlib.h>
20430 #include <stddef.h>
20431 struct m { struct m *next, **list; char name[]; };
20432 struct s { struct s *p; struct m *m; int n; double d[]; };
20436 int m = getchar ();
20437 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
20438 nbytes += sizeof (struct s) - 1;
20439 nbytes -= nbytes % sizeof (struct s);
20440 struct s *p = malloc (nbytes);
20444 return p->d != (double *) NULL;
20449 if ac_fn_c_try_compile
"$LINENO"; then :
20450 ac_cv_c_flexmember
=yes
20452 ac_cv_c_flexmember
=no
20454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
20457 $as_echo "$ac_cv_c_flexmember" >&6; }
20458 if test $ac_cv_c_flexmember = yes; then
20460 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
20463 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
20471 REPLACE_FLOAT_LDBL
=0
20473 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
20476 freebsd
* | dragonfly
*)
20477 case "$host_cpu" in
20482 # On x86_64 systems, the C compiler may still be generating
20484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20485 /* end confdefs.h. */
20486 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
20493 if ac_fn_c_try_compile
"$LINENO"; then :
20498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20503 case "$host_cpu" in
20511 aix
* | freebsd
* | dragonfly
* | linux
*)
20512 if test -n "$FLOAT_H"; then
20513 REPLACE_FLOAT_LDBL
=1
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
20520 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
20521 if ${gl_cv_func_itold_works+:} false
; then :
20522 $as_echo_n "(cached) " >&6
20525 if test "$cross_compiling" = yes; then :
20528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20529 /* end confdefs.h. */
20530 #if defined __LP64__ || defined __arch64__
20537 if ac_fn_c_try_compile
"$LINENO"; then :
20538 gl_cv_func_itold_works
="guessing no"
20540 gl_cv_func_itold_works
="guessing yes"
20542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20544 # Guess yes on native Windows.
20545 mingw
*) gl_cv_func_itold_works
="guessing yes" ;;
20546 *) gl_cv_func_itold_works
="guessing yes" ;;
20550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20551 /* end confdefs.h. */
20554 volatile long double ld;
20563 if ac_fn_c_try_run
"$LINENO"; then :
20564 gl_cv_func_itold_works
=yes
20566 gl_cv_func_itold_works
=no
20568 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20569 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
20575 $as_echo "$gl_cv_func_itold_works" >&6; }
20576 case "$gl_cv_func_itold_works" in
20583 if test -n "$FLOAT_H"; then
20592 if test $gl_cv_have_include_next = yes; then
20593 gl_cv_next_float_h
='<'float.h
'>'
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
20596 $as_echo_n "checking absolute name of <float.h>... " >&6; }
20597 if ${gl_cv_next_float_h+:} false
; then :
20598 $as_echo_n "(cached) " >&6
20603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20604 /* end confdefs.h. */
20608 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20609 *) gl_absname_cpp
="$ac_cpp" ;;
20614 gl_dirsep_regex
='[/\\]'
20617 gl_dirsep_regex
='\/'
20620 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20621 gl_header_literal_regex
=`echo 'float.h' \
20622 | sed -e "$gl_make_literal_regex_sed"`
20623 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20624 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20630 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20631 sed -n "$gl_absolute_header_sed"`
20633 gl_header
=$gl_cv_absolute_float_h
20634 gl_cv_next_float_h
='"'$gl_header'"'
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
20639 $as_echo "$gl_cv_next_float_h" >&6; }
20641 NEXT_FLOAT_H
=$gl_cv_next_float_h
20643 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20644 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20645 gl_next_as_first_directive
='<'float.h
'>'
20647 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20648 gl_next_as_first_directive
=$gl_cv_next_float_h
20650 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
20657 if test -n "$FLOAT_H"; then
20658 GL_GENERATE_FLOAT_H_TRUE
=
20659 GL_GENERATE_FLOAT_H_FALSE
='#'
20661 GL_GENERATE_FLOAT_H_TRUE
='#'
20662 GL_GENERATE_FLOAT_H_FALSE
=
20667 if test $REPLACE_FLOAT_LDBL = 1; then
20676 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
20679 if test $REPLACE_ITOLD = 1; then
20688 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
20695 gl_fnmatch_required_lowercase
=`
20696 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
20699 if test $ac_cv_func_fnmatch = no
; then
20702 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
20704 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
20705 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
20706 $as_echo_n "(cached) " >&6
20708 if test $gl_fnmatch_required = GNU
; then
20709 gl_fnmatch_gnu_start
=
20710 gl_fnmatch_gnu_end
=
20712 gl_fnmatch_gnu_start
='#if 0'
20713 gl_fnmatch_gnu_end
='#endif'
20715 if test "$cross_compiling" = yes; then :
20717 # Guess yes on musl systems.
20718 *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
20719 # Guess no otherwise, even on glibc systems.
20720 *) eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
20724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20725 /* end confdefs.h. */
20726 #include <fnmatch.h>
20728 y (char const *pattern, char const *string, int flags)
20730 return fnmatch (pattern, string, flags) == 0;
20733 n (char const *pattern, char const *string, int flags)
20735 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
20741 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
20742 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
20743 static char const A_1[] = { 'A' - 1, 0 };
20744 static char const A01[] = { 'A' + 1, 0 };
20745 static char const a_1[] = { 'a' - 1, 0 };
20746 static char const a01[] = { 'a' + 1, 0 };
20747 static char const bs_1[] = { '\\\\' - 1, 0 };
20748 static char const bs01[] = { '\\\\' + 1, 0 };
20750 if (!n ("a*", "", 0))
20752 if (!y ("a*", "abc", 0))
20754 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
20756 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
20758 if (!y ("a\\\\bc", "abc", 0))
20760 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
20762 if (!y ("*x", ".x", 0))
20764 if (!n ("*x", ".x", FNM_PERIOD))
20766 if (!y (Apat, "\\\\", 0))
20768 if (!y (Apat, "A", 0))
20770 if (!y (apat, "\\\\", 0))
20772 if (!y (apat, "a", 0))
20774 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
20776 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
20778 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
20780 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
20782 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
20784 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
20786 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
20788 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
20790 $gl_fnmatch_gnu_start
20791 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
20793 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
20795 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
20797 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
20799 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
20801 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
20803 $gl_fnmatch_gnu_end
20810 if ac_fn_c_try_run
"$LINENO"; then :
20811 eval "$gl_fnmatch_cache_var=yes"
20813 eval "$gl_fnmatch_cache_var=no"
20815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20816 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20821 eval ac_res
=\$
$gl_fnmatch_cache_var
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20823 $as_echo "$ac_res" >&6; }
20824 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
20825 case "$gl_fnmatch_result" in
20827 *) REPLACE_FNMATCH
=1 ;;
20830 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
20833 FNMATCH_H
='fnmatch.h'
20834 if test -n "$FNMATCH_H"; then
20835 GL_GENERATE_FNMATCH_H_TRUE
=
20836 GL_GENERATE_FNMATCH_H_FALSE
='#'
20838 GL_GENERATE_FNMATCH_H_TRUE
='#'
20839 GL_GENERATE_FNMATCH_H_FALSE
=
20845 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
20854 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
20872 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
20881 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
20890 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
20899 cat >>confdefs.h
<<_ACEOF
20900 #define GNULIB_FNMATCH_GNU 1
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
20909 $as_echo_n "checking whether free is known to preserve errno... " >&6; }
20910 if ${gl_cv_func_free_preserves_errno+:} false
; then :
20911 $as_echo_n "(cached) " >&6
20913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20914 /* end confdefs.h. */
20915 #include <stdlib.h>
20920 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
20921 #elif defined __OpenBSD__
20922 #elif defined __sun
20924 #error "'free' is not known to preserve errno"
20931 if ac_fn_c_try_compile
"$LINENO"; then :
20932 gl_cv_func_free_preserves_errno
=yes
20934 gl_cv_func_free_preserves_errno
=no
20936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
20940 $as_echo "$gl_cv_func_free_preserves_errno" >&6; }
20942 case $gl_cv_func_free_preserves_errno in
20944 *) REPLACE_FREE
=1 ;;
20947 if test $REPLACE_FREE = 1; then
20956 gl_LIBOBJS
="$gl_LIBOBJS free.$ac_objext"
20965 GNULIB_FREE_POSIX
=1
20971 $as_echo "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
20976 if test $gl_func_frexp != yes; then
20985 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
20999 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
21004 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
21013 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
21027 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
21045 if test $ac_cv_func_fchdir = no
; then
21049 if test $HAVE_FCHDIR = 0; then
21050 case "$gl_cv_func_open_directory_works" in
21059 if test $REPLACE_FSTAT = 1; then
21068 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
21080 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
21101 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
21112 if test $ac_cv_func_fstatat = no
; then
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21116 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21117 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
21118 $as_echo_n "(cached) " >&6
21120 if test "$cross_compiling" = yes; then :
21122 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
21123 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
21127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21128 /* end confdefs.h. */
21131 #include <sys/stat.h>
21136 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21140 if ac_fn_c_try_run
"$LINENO"; then :
21141 gl_cv_func_fstatat_zero_flag
=yes
21143 gl_cv_func_fstatat_zero_flag
=no
21145 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21146 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21152 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21154 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21156 *) REPLACE_FSTATAT
=1 ;;
21161 REPLACE_FSTATAT
=1 ;;
21164 case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
21167 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
21173 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
21182 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
21196 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
21208 gl_cv_func_getcwd_path_max
=yes
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
21217 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
21218 if ${gl_cv_func_getcwd_path_max+:} false
; then :
21219 $as_echo_n "(cached) " >&6
21221 # Arrange for deletion of the temporary directory this test creates.
21222 ac_clean_files
="$ac_clean_files confdir3"
21223 if test "$cross_compiling" = yes; then :
21224 # Cross-compilation guesses:
21226 aix
*) # On AIX, it has the AIX bug.
21227 gl_cv_func_getcwd_path_max
='guessing no, it has the AIX bug' ;;
21228 gnu
*) # On Hurd, it is 'yes'.
21229 gl_cv_func_getcwd_path_max
='guessing yes' ;;
21230 linux
* | kfreebsd
*)
21231 # On older Linux+glibc it's 'no, but it is partly working',
21232 # on newer Linux+glibc it's 'yes'.
21233 # On Linux+musl libc, it's 'no, but it is partly working'.
21234 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
21235 gl_cv_func_getcwd_path_max
='guessing no, but it is partly working' ;;
21236 *) # If we don't know, obey --enable-cross-guesses.
21237 gl_cv_func_getcwd_path_max
="$gl_cross_guess_normal" ;;
21241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21242 /* end confdefs.h. */
21245 #include <stdlib.h>
21247 # include <unistd.h>
21249 # include <direct.h>
21251 #include <string.h>
21252 #include <limits.h>
21253 #include <sys/stat.h>
21254 #include <sys/types.h>
21258 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
21260 # include <unistd.h>
21262 #include <limits.h>
21263 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
21264 # include <sys/param.h>
21266 #if !defined PATH_MAX && defined MAXPATHLEN
21267 # define PATH_MAX MAXPATHLEN
21271 # define PATH_MAX 1024
21273 #if defined _WIN32 && ! defined __CYGWIN__
21275 # define PATH_MAX 260
21280 # define AT_FDCWD 0
21282 #ifdef ENAMETOOLONG
21283 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
21285 # define is_ENAMETOOLONG(x) 0
21288 /* Use the getcwd function, not any macro. */
21297 # define S_IRWXU 0700
21300 /* The length of this name must be 8. */
21301 #define DIR_NAME "confdir3"
21302 #define DIR_NAME_LEN 8
21303 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
21305 /* The length of "../". */
21306 #define DOTDOTSLASH_LEN 3
21308 /* Leftover bytes in the buffer, to work around library or OS bugs. */
21309 #define BUF_SLOP 20
21315 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
21316 at least not on a local file system. And if we were to start worrying
21317 about remote file systems, we'd have to enable the wrapper function
21318 all of the time, just to be safe. That's not worth the cost. */
21320 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
21321 - DIR_NAME_SIZE - BUF_SLOP) \
21323 /* FIXME: Assuming there's a system for which this is true,
21324 this should be done in a compile test. */
21327 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
21328 + DIR_NAME_SIZE + BUF_SLOP];
21329 char *cwd = getcwd (buf, PATH_MAX);
21330 size_t initial_cwd_len;
21333 size_t n_chdirs = 0;
21338 cwd_len = initial_cwd_len = strlen (cwd);
21342 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
21345 cwd_len += DIR_NAME_SIZE;
21346 /* If mkdir or chdir fails, it could be that this system cannot create
21347 any file with an absolute name longer than PATH_MAX, such as cygwin.
21348 If so, leave fail as 0, because the current working directory can't
21349 be too long for getcwd if it can't even be created. On Linux with
21350 the 9p file system, mkdir fails with error EINVAL when cwd_len gets
21351 too long; ignore this failure because the getcwd() system call
21352 produces good results whereas the gnulib substitute calls getdents64
21353 which fails with error EPROTO.
21354 For other errors, be pessimistic and consider that as a failure,
21356 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
21358 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
21360 if (! (errno == EINVAL))
21366 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
21370 c = getcwd (buf, PATH_MAX);
21371 if (!c && errno == ENOENT)
21381 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
21387 /* Our replacement needs to be able to stat() long ../../paths,
21388 so generate a path larger than PATH_MAX to check,
21389 avoiding the replacement if we can't stat(). */
21390 c = getcwd (buf, cwd_len + 1);
21391 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
21398 if (dotdot_max <= cwd_len - initial_cwd_len)
21400 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
21402 c = getcwd (buf, cwd_len + 1);
21405 if (! (errno == ERANGE || errno == ENOENT
21406 || is_ENAMETOOLONG (errno)))
21411 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
21419 if (c && strlen (c) != cwd_len)
21427 /* Leaving behind such a deep directory is not polite.
21428 So clean up here, right away, even though the driving
21429 shell script would also clean up. */
21433 /* Try rmdir first, in case the chdir failed. */
21435 for (i = 0; i <= n_chdirs; i++)
21437 if (chdir ("..") < 0)
21439 if (rmdir (DIR_NAME) != 0)
21449 if ac_fn_c_try_run
"$LINENO"; then :
21450 gl_cv_func_getcwd_path_max
=yes
21453 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
21454 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
21455 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
21456 *) gl_cv_func_getcwd_path_max
=no
;;
21459 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21460 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
21466 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
21468 case "$gl_cv_func_getcwd_null" in
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
21477 $as_echo_n "checking for getpagesize... " >&6; }
21478 if ${gl_cv_func_getpagesize+:} false
; then :
21479 $as_echo_n "(cached) " >&6
21481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21482 /* end confdefs.h. */
21483 #include <unistd.h>
21487 return getpagesize();
21493 if ac_fn_c_try_link
"$LINENO"; then :
21494 gl_cv_func_getpagesize
=yes
21496 gl_cv_func_getpagesize
=no
21498 rm -f core conftest.err conftest.
$ac_objext \
21499 conftest
$ac_exeext conftest.
$ac_ext
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
21503 $as_echo "$gl_cv_func_getpagesize" >&6; }
21505 if test $gl_cv_func_getpagesize = yes; then
21507 cat >>confdefs.h
<<_ACEOF
21508 #define HAVE_GETPAGESIZE 1
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd succeeds when 4k < cwd_length < 16k" >&5
21514 $as_echo_n "checking whether getcwd succeeds when 4k < cwd_length < 16k... " >&6; }
21515 if ${gl_cv_func_getcwd_succeeds_beyond_4k+:} false
; then :
21516 $as_echo_n "(cached) " >&6
21518 # Remove any remnants of a previous test.
21519 rm -rf confdir-14B---
21520 # Arrange for deletion of the temporary directory this test creates.
21521 ac_clean_files
="$ac_clean_files confdir-14B---"
21522 if test "$cross_compiling" = yes; then :
21524 # Guess yes on musl systems.
21525 *-musl*) gl_cv_func_getcwd_succeeds_beyond_4k
="guessing yes" ;;
21526 # Guess no otherwise, even on glibc systems.
21527 *) gl_cv_func_getcwd_succeeds_beyond_4k
="guessing no"
21531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21532 /* end confdefs.h. */
21535 #include <stdlib.h>
21537 # include <unistd.h>
21538 #else /* on Windows with MSVC */
21539 # include <direct.h>
21541 #include <string.h>
21542 #include <sys/stat.h>
21545 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
21547 # include <unistd.h>
21549 #include <limits.h>
21550 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
21551 # include <sys/param.h>
21553 #if !defined PATH_MAX && defined MAXPATHLEN
21554 # define PATH_MAX MAXPATHLEN
21558 # define PATH_MAX 1024
21560 #if defined _WIN32 && ! defined __CYGWIN__
21562 # define PATH_MAX 260
21571 # define S_IRWXU 0700
21574 /* FIXME: skip the run-test altogether on systems without getpagesize. */
21575 #if ! HAVE_GETPAGESIZE
21576 # define getpagesize() 0
21579 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
21580 the 16kB pagesize on ia64 linux. Those conditions make the code below
21581 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
21582 #define TARGET_LEN (5 * 1024)
21588 size_t initial_cwd_len;
21591 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
21592 this relatively expensive and invasive test if that's not true. */
21594 int bug_possible = PATH_MAX < getpagesize ();
21596 int bug_possible = 0;
21598 if (! bug_possible)
21601 cwd = getcwd (NULL, 0);
21605 initial_cwd_len = strlen (cwd);
21610 static char const dir_name[] = "confdir-14B---";
21611 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
21612 / sizeof dir_name);
21614 for (d = 0; d < desired_depth; d++)
21616 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
21618 if (! (errno == ERANGE || errno == ENAMETOOLONG
21619 || errno == ENOENT))
21620 fail = 3; /* Unable to construct deep hierarchy. */
21625 /* If libc has the bug in question, this invocation of getcwd
21626 results in a failed assertion. */
21627 cwd = getcwd (NULL, 0);
21629 fail = 4; /* getcwd didn't assert, but it failed for a long name
21630 where the answer could have been learned. */
21633 /* Call rmdir first, in case the above chdir failed. */
21637 if (chdir ("..") < 0)
21650 if ac_fn_c_try_run
"$LINENO"; then :
21651 gl_cv_func_getcwd_succeeds_beyond_4k
=yes
21654 if test $ret -ge 128 ||
test $ret = 4; then
21655 gl_cv_func_getcwd_succeeds_beyond_4k
=no
21657 gl_cv_func_getcwd_succeeds_beyond_4k
=yes
21661 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21662 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_succeeds_beyond_4k" >&5
21668 $as_echo "$gl_cv_func_getcwd_succeeds_beyond_4k" >&6; }
21669 case "$gl_cv_func_getcwd_succeeds_beyond_4k" in
21682 case "$gl_cv_func_getcwd_path_max" in
21683 *"no" |
*"no, it has the AIX bug") ;;
21686 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
21690 case "$gl_cv_func_getcwd_path_max" in
21691 *"no, but it is partly working")
21693 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
21696 *"yes, but with shorter paths")
21698 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
21703 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
21704 ||
test $gl_cv_func_getcwd_posix_signature != yes \
21705 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
21706 ||
test $gl_abort_bug = yes; then
21710 if test $REPLACE_GETCWD = 1; then
21719 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
21729 cat >>confdefs.h
<<_ACEOF
21730 #define GNULIB_GETCWD 1
21745 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
21754 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
21761 if test $REPLACE_GETCWD = 1; then
21770 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
21784 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
21796 if test $ac_cv_func_getdelim = yes; then
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
21799 $as_echo_n "checking for working getdelim function... " >&6; }
21800 if ${gl_cv_func_working_getdelim+:} false
; then :
21801 $as_echo_n "(cached) " >&6
21803 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
21804 if test "$cross_compiling" = yes; then :
21805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21806 /* end confdefs.h. */
21808 #include <features.h>
21809 #ifdef __GNU_LIBRARY__
21810 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
21816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21817 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
21818 gl_cv_func_working_getdelim
="guessing yes"
21821 *-musl*) gl_cv_func_working_getdelim
="guessing yes" ;;
21822 *) gl_cv_func_working_getdelim
="$gl_cross_guess_normal" ;;
21830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21833 # include <stdio.h>
21834 # include <stdlib.h>
21835 # include <string.h>
21838 FILE *in = fopen ("./conftest.data", "r");
21842 /* Test result for a NULL buffer and a zero size.
21843 Based on a test program from Karl Heuer. */
21846 int len = getdelim (&line, &siz, '\n', in);
21847 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
21848 { free (line); fclose (in); return 2; }
21852 /* Test result for a NULL buffer and a non-zero size.
21853 This crashes on FreeBSD 8.0. */
21855 size_t siz = (size_t)(~0) / 4;
21856 if (getdelim (&line, &siz, '\n', in) == -1)
21857 { fclose (in); return 3; }
21865 if ac_fn_c_try_run
"$LINENO"; then :
21866 gl_cv_func_working_getdelim
=yes
21868 gl_cv_func_working_getdelim
=no
21870 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21871 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
21877 $as_echo "$gl_cv_func_working_getdelim" >&6; }
21878 case "$gl_cv_func_working_getdelim" in
21880 *) REPLACE_GETDELIM
=1 ;;
21886 if test $ac_cv_have_decl_getdelim = no
; then
21887 HAVE_DECL_GETDELIM
=0
21890 if test $HAVE_GETDELIM = 0 ||
test $REPLACE_GETDELIM = 1; then
21899 gl_LIBOBJS
="$gl_LIBOBJS getdelim.$ac_objext"
21902 for ac_func
in flockfile funlockfile
21904 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21905 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
21906 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
21907 cat >>confdefs.h
<<_ACEOF
21908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21914 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
21915 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
21921 cat >>confdefs.h
<<_ACEOF
21922 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
21938 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
21947 if test $ac_cv_func_getdtablesize = yes &&
21948 test $ac_cv_have_decl_getdtablesize = yes; then
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
21950 $as_echo_n "checking whether getdtablesize works... " >&6; }
21951 if ${gl_cv_func_getdtablesize_works+:} false
; then :
21952 $as_echo_n "(cached) " >&6
21955 vms
*) gl_cv_func_getdtablesize_works
="no (limitation)" ;;
21957 if test "$cross_compiling" = yes; then :
21959 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
21960 gl_cv_func_getdtablesize_works
="guessing no" ;;
21961 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
21965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21966 /* end confdefs.h. */
21968 #include <unistd.h>
21977 int size = getdtablesize();
21978 if (dup2 (0, getdtablesize()) != -1)
21980 if (size != getdtablesize())
21987 if ac_fn_c_try_run
"$LINENO"; then :
21988 gl_cv_func_getdtablesize_works
=yes
21990 gl_cv_func_getdtablesize_works
=no
21992 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21993 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
22001 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
22002 case "$gl_cv_func_getdtablesize_works" in
22003 *yes |
"no (limitation)") ;;
22004 *) REPLACE_GETDTABLESIZE
=1 ;;
22007 HAVE_GETDTABLESIZE
=0
22010 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
22019 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
22028 GNULIB_GETDTABLESIZE
=1
22034 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
22045 gl_getline_needs_run_time_check
=no
22046 ac_fn_c_check_func
"$LINENO" "getline" "ac_cv_func_getline"
22047 if test "x$ac_cv_func_getline" = xyes
; then :
22048 gl_getline_needs_run_time_check
=yes
22050 am_cv_func_working_getline
=no
22053 if test $gl_getline_needs_run_time_check = yes; then
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
22055 $as_echo_n "checking for working getline function... " >&6; }
22056 if ${am_cv_func_working_getline+:} false
; then :
22057 $as_echo_n "(cached) " >&6
22059 echo fooNbarN |
tr -d '\012' |
tr N
'\012' > conftest.data
22060 if test "$cross_compiling" = yes; then :
22061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h. */
22064 #include <features.h>
22065 #ifdef __GNU_LIBRARY__
22066 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
22072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22073 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
22074 am_cv_func_working_getline
="guessing yes"
22077 *-musl*) am_cv_func_working_getline
="guessing yes" ;;
22078 *) am_cv_func_working_getline
="$gl_cross_guess_normal" ;;
22086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22089 # include <stdio.h>
22090 # include <stdlib.h>
22091 # include <string.h>
22094 FILE *in = fopen ("./conftest.data", "r");
22098 /* Test result for a NULL buffer and a zero size.
22099 Based on a test program from Karl Heuer. */
22102 int len = getline (&line, &siz, in);
22103 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
22104 { free (line); fclose (in); return 2; }
22108 /* Test result for a NULL buffer and a non-zero size.
22109 This crashes on FreeBSD 8.0. */
22111 size_t siz = (size_t)(~0) / 4;
22112 if (getline (&line, &siz, in) == -1)
22113 { fclose (in); return 3; }
22121 if ac_fn_c_try_run
"$LINENO"; then :
22122 am_cv_func_working_getline
=yes
22124 am_cv_func_working_getline
=no
22126 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22127 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
22133 $as_echo "$am_cv_func_working_getline" >&6; }
22136 if test $ac_cv_have_decl_getline = no
; then
22137 HAVE_DECL_GETLINE
=0
22140 case "$am_cv_func_working_getline" in
22147 if test $REPLACE_GETLINE = 1; then
22156 gl_LIBOBJS
="$gl_LIBOBJS getline.$ac_objext"
22173 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
22183 if test $ac_cv_have_decl_getlogin_r = no
; then
22184 HAVE_DECL_GETLOGIN_R
=0
22188 if test $ac_cv_func_getlogin_r = no
; then
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
22194 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
22195 if ${gl_cv_func_getlogin_r_works+:} false
; then :
22196 $as_echo_n "(cached) " >&6
22200 # Guess no on Mac OS X, OSF/1.
22201 darwin
* | osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
22202 # Guess yes otherwise.
22203 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
22205 if test "$cross_compiling" = yes; then :
22208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22209 /* end confdefs.h. */
22211 #include <stddef.h>
22212 #include <string.h>
22213 #include <unistd.h>
22214 #if !HAVE_DECL_GETLOGIN_R
22216 # ifdef __cplusplus
22219 int getlogin_r (char *, size_t);
22227 if (getlogin_r (buf, 0) == 0)
22229 if (getlogin_r (buf, 1) == 0)
22231 if (getlogin_r (buf, 100) == 0)
22233 size_t n = strlen (buf);
22234 if (getlogin_r (buf, n) == 0)
22240 if ac_fn_c_try_run
"$LINENO"; then :
22241 gl_cv_func_getlogin_r_works
=yes
22243 gl_cv_func_getlogin_r_works
=no
22245 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22246 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
22252 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
22253 case "$gl_cv_func_getlogin_r_works" in
22255 *) REPLACE_GETLOGIN_R
=1 ;;
22259 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
22268 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
22279 GNULIB_GETLOGIN_R
=1
22285 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
22294 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
22296 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
22302 cat >>confdefs.h
<<_ACEOF
22303 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
22305 if test $ac_have_decl = 1; then :
22309 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
22311 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
22317 cat >>confdefs.h
<<_ACEOF
22318 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
22320 if test $ac_have_decl = 1; then :
22324 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
22326 if test "x$ac_cv_have_decl___argv" = xyes
; then :
22332 cat >>confdefs.h
<<_ACEOF
22333 #define HAVE_DECL___ARGV $ac_have_decl
22335 if test $ac_have_decl = 1; then :
22340 # Incur the cost of this test only if none of the above worked.
22341 if test $ac_found = 0; then
22342 # On OpenBSD 5.1, using the global __progname variable appears to be
22343 # the only way to implement getprogname.
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
22345 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
22346 if ${gl_cv_var___progname+:} false
; then :
22347 $as_echo_n "(cached) " >&6
22350 gl_cv_var___progname
=
22351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22352 /* end confdefs.h. */
22353 extern char *__progname;
22357 return *__progname;
22363 if ac_fn_c_try_link
"$LINENO"; then :
22364 gl_cv_var___progname
=yes
22367 rm -f core conftest.err conftest.
$ac_objext \
22368 conftest
$ac_exeext conftest.
$ac_ext
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
22373 $as_echo "$gl_cv_var___progname" >&6; }
22374 if test "$gl_cv_var___progname" = yes; then
22376 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
22385 if test "$ac_cv_func_getrandom" != yes; then
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getrandom is compatible with its GNU+BSD signature" >&5
22389 $as_echo_n "checking whether getrandom is compatible with its GNU+BSD signature... " >&6; }
22390 if ${gl_cv_func_getrandom_ok+:} false
; then :
22391 $as_echo_n "(cached) " >&6
22393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22394 /* end confdefs.h. */
22395 /* Additional includes are needed before <sys/random.h> on uClibc
22397 #include <sys/types.h>
22398 #include <stdlib.h>
22399 #include <sys/random.h>
22400 ssize_t getrandom (void *, size_t, unsigned int);
22411 if ac_fn_c_try_compile
"$LINENO"; then :
22412 gl_cv_func_getrandom_ok
=yes
22414 gl_cv_func_getrandom_ok
=no
22416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getrandom_ok" >&5
22420 $as_echo "$gl_cv_func_getrandom_ok" >&6; }
22421 if test $gl_cv_func_getrandom_ok = no
; then
22422 REPLACE_GETRANDOM
=1
22428 for ac_header
in bcrypt.h
22430 ac_fn_c_check_header_compile
"$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#include <windows.h>
22433 if test "x$ac_cv_header_bcrypt_h" = xyes
; then :
22434 cat >>confdefs.h
<<_ACEOF
22435 #define HAVE_BCRYPT_H 1
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the bcrypt library is guaranteed to be present" >&5
22443 $as_echo_n "checking whether the bcrypt library is guaranteed to be present... " >&6; }
22444 if ${gl_cv_lib_assume_bcrypt+:} false
; then :
22445 $as_echo_n "(cached) " >&6
22447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h. */
22449 #include <windows.h>
22453 #if !(_WIN32_WINNT >= _WIN32_WINNT_WIN7)
22462 if ac_fn_c_try_compile
"$LINENO"; then :
22463 gl_cv_lib_assume_bcrypt
=yes
22465 gl_cv_lib_assume_bcrypt
=no
22467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_assume_bcrypt" >&5
22471 $as_echo "$gl_cv_lib_assume_bcrypt" >&6; }
22472 if test $gl_cv_lib_assume_bcrypt = yes; then
22474 $as_echo "#define HAVE_LIB_BCRYPT 1" >>confdefs.h
22476 LIB_GETRANDOM
='-lbcrypt'
22478 LIB_GETRANDOM
='-ladvapi32'
22486 if test $HAVE_GETRANDOM = 0 ||
test $REPLACE_GETRANDOM = 1; then
22495 gl_LIBOBJS
="$gl_LIBOBJS getrandom.$ac_objext"
22509 $as_echo "#define GNULIB_TEST_GETRANDOM 1" >>confdefs.h
22522 gl_gettimeofday_timezone
=void
22523 if test $ac_cv_func_gettimeofday != yes; then
22524 HAVE_GETTIMEOFDAY
=0
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22527 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22528 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
22529 $as_echo_n "(cached) " >&6
22531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22532 /* end confdefs.h. */
22533 #include <sys/time.h>
22535 int gettimeofday (struct timeval *restrict, void *restrict);
22540 /* glibc uses struct timezone * rather than the POSIX void *
22541 if _GNU_SOURCE is defined. However, since the only portable
22542 use of gettimeofday uses NULL as the second parameter, and
22543 since the glibc definition is actually more typesafe, it is
22544 not worth wrapping this to get a compliant signature. */
22545 int (*f) (struct timeval *restrict, void *restrict)
22548 return !(x | c.tv_sec | c.tv_usec);
22554 if ac_fn_c_try_compile
"$LINENO"; then :
22555 gl_cv_func_gettimeofday_posix_signature
=yes
22557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22558 /* end confdefs.h. */
22559 #include <sys/time.h>
22560 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22570 if ac_fn_c_try_compile
"$LINENO"; then :
22571 gl_cv_func_gettimeofday_posix_signature
=almost
22573 gl_cv_func_gettimeofday_posix_signature
=no
22575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22580 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22581 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
22582 gl_gettimeofday_timezone
='struct timezone'
22583 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22584 REPLACE_GETTIMEOFDAY
=1
22586 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22587 REPLACE_GETTIMEOFDAY
=1
22590 mingw
*) REPLACE_GETTIMEOFDAY
=1 ;;
22594 cat >>confdefs.h
<<_ACEOF
22595 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22599 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
22608 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
22617 GNULIB_GETTIMEOFDAY
=1
22623 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
22631 if test $ac_cv_func_glob = no
; then
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1 or 2" >&5
22636 $as_echo_n "checking for GNU glob interface version 1 or 2... " >&6; }
22637 if ${gl_cv_gnu_glob_interface_version_1_2+:} false
; then :
22638 $as_echo_n "(cached) " >&6
22640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22641 /* end confdefs.h. */
22642 #include <gnu-versions.h>
22643 char a[_GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2 ? 1 : -1];
22645 if ac_fn_c_try_compile
"$LINENO"; then :
22646 gl_cv_gnu_glob_interface_version_1_2
=yes
22648 gl_cv_gnu_glob_interface_version_1_2
=no
22650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1_2" >&5
22653 $as_echo "$gl_cv_gnu_glob_interface_version_1_2" >&6; }
22654 if test "$gl_cv_gnu_glob_interface_version_1_2" = "no"; then
22658 if test $REPLACE_GLOB = 0; then
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
22660 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
22661 if ${gl_cv_glob_lists_symlinks+:} false
; then :
22662 $as_echo_n "(cached) " >&6
22664 if test $cross_compiling != yes; then
22665 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
22666 gl_cv_glob_lists_symlinks
=maybe
22668 # If we can't make a symlink, then we cannot test this issue. Be
22669 # pessimistic about this.
22670 gl_cv_glob_lists_symlinks
=no
22672 if test $gl_cv_glob_lists_symlinks = maybe
; then
22673 if test "$cross_compiling" = yes; then :
22677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22678 /* end confdefs.h. */
22679 #include <stddef.h>
22685 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
22693 if ac_fn_c_try_run
"$LINENO"; then :
22694 gl_cv_glob_lists_symlinks
=yes
22696 gl_cv_glob_lists_symlinks
=no
22698 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22699 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22703 rm -f conf$$
-globtest
22705 gl_cv_glob_lists_symlinks
="$gl_cross_guess_normal"
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
22710 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
22711 case "$gl_cv_glob_lists_symlinks" in
22713 *) REPLACE_GLOB
=1 ;;
22719 if test $ac_cv_func_glob_pattern_p = no
; then
22720 HAVE_GLOB_PATTERN_P
=0
22722 if test $REPLACE_GLOB = 1; then
22723 REPLACE_GLOB_PATTERN_P
=1
22727 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
22731 if test -n "$GLOB_H"; then
22732 GL_GENERATE_GLOB_H_TRUE
=
22733 GL_GENERATE_GLOB_H_FALSE
='#'
22735 GL_GENERATE_GLOB_H_TRUE
='#'
22736 GL_GENERATE_GLOB_H_FALSE
=
22742 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
22751 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
22761 gl_LIBOBJS
="$gl_LIBOBJS globfree.$ac_objext"
22769 if test $HAVE_GLOB_PATTERN_P = 0 ||
test $REPLACE_GLOB_PATTERN_P = 1; then
22778 gl_LIBOBJS
="$gl_LIBOBJS glob_pattern_p.$ac_objext"
22792 $as_echo "#define GNULIB_TEST_GLOB 1" >>confdefs.h
22798 LIB_HARD_LOCALE
="$LIB_SETLOCALE_NULL"
22813 if test $ac_cv_header_sys_socket_h != yes; then
22814 for ac_header
in winsock2.h
22816 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22817 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
22818 cat >>confdefs.h
<<_ACEOF
22819 #define HAVE_WINSOCK2_H 1
22827 if test "$ac_cv_header_winsock2_h" = yes; then
22829 UNISTD_H_HAVE_WINSOCK2_H
=1
22830 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
22836 if test $HAVE_WINSOCK2_H = 1; then
22837 REPLACE_INET_NTOP
=1
22838 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
22840 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
22846 cat >>confdefs.h
<<_ACEOF
22847 #define HAVE_DECL_INET_NTOP $ac_have_decl
22850 if test $ac_cv_have_decl_inet_ntop = yes; then
22851 INET_NTOP_LIB
="-lws2_32"
22853 HAVE_DECL_INET_NTOP
=0
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
22858 $as_echo_n "checking for library containing inet_ntop... " >&6; }
22859 if ${ac_cv_search_inet_ntop+:} false
; then :
22860 $as_echo_n "(cached) " >&6
22862 ac_func_search_save_LIBS
=$LIBS
22863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22864 /* end confdefs.h. */
22866 /* Override any GCC internal prototype to avoid an error.
22867 Use char because int might match the return type of a GCC
22868 builtin and then its argument prototype would still apply. */
22876 return inet_ntop ();
22881 for ac_lib
in '' nsl resolv network
; do
22882 if test -z "$ac_lib"; then
22883 ac_res
="none required"
22886 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22888 if ac_fn_c_try_link
"$LINENO"; then :
22889 ac_cv_search_inet_ntop
=$ac_res
22891 rm -f core conftest.err conftest.
$ac_objext \
22893 if ${ac_cv_search_inet_ntop+:} false
; then :
22897 if ${ac_cv_search_inet_ntop+:} false
; then :
22900 ac_cv_search_inet_ntop
=no
22902 rm conftest.
$ac_ext
22903 LIBS
=$ac_func_search_save_LIBS
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
22906 $as_echo "$ac_cv_search_inet_ntop" >&6; }
22907 ac_res
=$ac_cv_search_inet_ntop
22908 if test "$ac_res" != no
; then :
22909 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22912 for ac_func
in inet_ntop
22914 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
22915 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
22916 cat >>confdefs.h
<<_ACEOF
22917 #define HAVE_INET_NTOP 1
22923 if test $ac_cv_func_inet_ntop = no
; then
22931 if test "$ac_cv_search_inet_ntop" != "no" \
22932 && test "$ac_cv_search_inet_ntop" != "none required"; then
22933 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
22937 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
22939 # include <netdb.h>
22943 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
22949 cat >>confdefs.h
<<_ACEOF
22950 #define HAVE_DECL_INET_NTOP $ac_have_decl
22953 if test $ac_cv_have_decl_inet_ntop = no
; then
22954 HAVE_DECL_INET_NTOP
=0
22959 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
22968 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
22988 if test -n "$STDINT_H"; then
22989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22990 /* end confdefs.h. */
23005 if ac_fn_c_try_compile
"$LINENO"; then :
23006 PRIPTR_PREFIX
='"l"'
23008 PRIPTR_PREFIX
='"ll"'
23010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23012 for glpfx
in '' l ll I64
; do
23014 '') gltype1
='int';;
23015 l
) gltype1
='long int';;
23016 ll
) gltype1
='long long int';;
23017 I64
) gltype1
='__int64';;
23019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23020 /* end confdefs.h. */
23021 #include <stdint.h>
23022 extern intptr_t foo;
23023 extern $gltype1 foo;
23032 if ac_fn_c_try_compile
"$LINENO"; then :
23033 PRIPTR_PREFIX
='"'$glpfx'"'
23035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23036 test -n "$PRIPTR_PREFIX" && break
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
23043 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
23044 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
23045 $as_echo_n "(cached) " >&6
23047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23048 /* end confdefs.h. */
23049 /* Work also in C++ mode. */
23050 #define __STDC_LIMIT_MACROS 1
23052 /* Work if build is not clean. */
23053 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
23055 #include <limits.h>
23057 #include <stdint.h>
23060 #if defined INT32_MAX && defined INTMAX_MAX
23061 #define CONDITION (INT32_MAX < INTMAX_MAX)
23063 #define CONDITION (sizeof (int) < sizeof (long long int))
23065 int test[CONDITION ? 1 : -1];
23074 if ac_fn_c_try_compile
"$LINENO"; then :
23075 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
23077 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
23079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
23082 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
23083 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
23084 INT32_MAX_LT_INTMAX_MAX
=1;
23086 INT32_MAX_LT_INTMAX_MAX
=0;
23090 if test $APPLE_UNIVERSAL_BUILD = 0; then
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
23093 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
23094 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
23095 $as_echo_n "(cached) " >&6
23097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23098 /* end confdefs.h. */
23099 /* Work also in C++ mode. */
23100 #define __STDC_LIMIT_MACROS 1
23102 /* Work if build is not clean. */
23103 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
23105 #include <limits.h>
23107 #include <stdint.h>
23110 #if defined INT64_MAX
23111 #define CONDITION (INT64_MAX == LONG_MAX)
23113 #define CONDITION (sizeof (long long int) == sizeof (long int))
23115 int test[CONDITION ? 1 : -1];
23124 if ac_fn_c_try_compile
"$LINENO"; then :
23125 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
23127 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
23129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
23132 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
23133 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
23134 INT64_MAX_EQ_LONG_MAX
=1;
23136 INT64_MAX_EQ_LONG_MAX
=0;
23141 INT64_MAX_EQ_LONG_MAX
=-1
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
23145 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
23146 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
23147 $as_echo_n "(cached) " >&6
23149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23150 /* end confdefs.h. */
23151 /* Work also in C++ mode. */
23152 #define __STDC_LIMIT_MACROS 1
23154 /* Work if build is not clean. */
23155 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
23157 #include <limits.h>
23159 #include <stdint.h>
23162 #if defined UINT32_MAX && defined UINTMAX_MAX
23163 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
23165 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
23167 int test[CONDITION ? 1 : -1];
23176 if ac_fn_c_try_compile
"$LINENO"; then :
23177 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
23179 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
23181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
23184 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
23185 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
23186 UINT32_MAX_LT_UINTMAX_MAX
=1;
23188 UINT32_MAX_LT_UINTMAX_MAX
=0;
23192 if test $APPLE_UNIVERSAL_BUILD = 0; then
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
23195 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
23196 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
23197 $as_echo_n "(cached) " >&6
23199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23200 /* end confdefs.h. */
23201 /* Work also in C++ mode. */
23202 #define __STDC_LIMIT_MACROS 1
23204 /* Work if build is not clean. */
23205 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
23207 #include <limits.h>
23209 #include <stdint.h>
23212 #if defined UINT64_MAX
23213 #define CONDITION (UINT64_MAX == ULONG_MAX)
23215 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
23217 int test[CONDITION ? 1 : -1];
23226 if ac_fn_c_try_compile
"$LINENO"; then :
23227 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
23229 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
23231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
23234 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
23235 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
23236 UINT64_MAX_EQ_ULONG_MAX
=1;
23238 UINT64_MAX_EQ_ULONG_MAX
=0;
23243 UINT64_MAX_EQ_ULONG_MAX
=-1
23253 if test $ac_cv_func_isblank = no
; then
23257 if test $HAVE_ISBLANK = 0; then
23266 gl_LIBOBJS
="$gl_LIBOBJS isblank.$ac_objext"
23271 cat >>confdefs.h
<<_ACEOF
23272 #define GNULIB_ISBLANK 1
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
23289 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
23290 if ${gl_cv_func_isnand_no_libm+:} false
; then :
23291 $as_echo_n "(cached) " >&6
23294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23295 /* end confdefs.h. */
23297 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
23299 # define isnand(x) __builtin_isnan ((double)(x))
23302 # define isnand(x) isnan ((double)(x))
23313 if ac_fn_c_try_link
"$LINENO"; then :
23314 gl_cv_func_isnand_no_libm
=yes
23316 gl_cv_func_isnand_no_libm
=no
23318 rm -f core conftest.err conftest.
$ac_objext \
23319 conftest
$ac_exeext conftest.
$ac_ext
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
23323 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
23325 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
23326 if test $gl_cv_func_isnand_no_libm = yes; then
23328 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
23332 if test $gl_func_isnand_no_libm != yes; then
23341 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
23350 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
23351 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
23352 $as_echo_n "(cached) " >&6
23355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23356 /* end confdefs.h. */
23358 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
23360 # define isnanl(x) __builtin_isnan ((long double)(x))
23361 #elif defined isnan
23363 # define isnanl(x) isnan ((long double)(x))
23374 if ac_fn_c_try_link
"$LINENO"; then :
23375 gl_cv_func_isnanl_no_libm
=yes
23377 gl_cv_func_isnanl_no_libm
=no
23379 rm -f core conftest.err conftest.
$ac_objext \
23380 conftest
$ac_exeext conftest.
$ac_ext
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
23384 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
23386 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
23387 if test $gl_func_isnanl_no_libm = yes; then
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
23393 $as_echo_n "checking whether isnanl works... " >&6; }
23394 if ${gl_cv_func_isnanl_works+:} false
; then :
23395 $as_echo_n "(cached) " >&6
23398 if test "$cross_compiling" = yes; then :
23400 mingw
*) # Guess yes on mingw, no on MSVC.
23401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23402 /* end confdefs.h. */
23409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23410 $EGREP "Known" >/dev
/null
2>&1; then :
23411 gl_cv_func_isnanl_works
="guessing yes"
23413 gl_cv_func_isnanl_works
="guessing no"
23418 *) gl_cv_func_isnanl_works
="guessing yes" ;;
23422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23423 /* end confdefs.h. */
23426 #include <limits.h>
23428 #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
23430 # define isnanl(x) __builtin_isnan ((long double)(x))
23431 #elif defined isnan
23433 # define isnanl(x) isnan ((long double)(x))
23436 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23437 typedef union { unsigned int word[NWORDS]; long double value; }
23438 memory_long_double;
23439 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
23440 runtime type conversion. */
23442 static long double NaNl ()
23445 return zero / zero;
23448 # define NaNl() (0.0L / 0.0L)
23454 if (!isnanl (NaNl ()))
23458 memory_long_double m;
23461 /* The isnanl function should be immune against changes in the sign bit and
23462 in the mantissa bits. The xor operation twiddles a bit that can only be
23463 a sign bit or a mantissa bit (since the exponent never extends to
23466 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
23467 for (i = 0; i < NWORDS; i++)
23469 if (!isnanl (m.value))
23473 #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
23474 /* Representation of an 80-bit 'long double' as an initializer for a sequence
23475 of 'unsigned int' words. */
23476 # ifdef WORDS_BIGENDIAN
23477 # define LDBL80_WORDS(exponent,manthi,mantlo) \
23478 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
23479 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
23480 (unsigned int) (mantlo) << 16 \
23483 # define LDBL80_WORDS(exponent,manthi,mantlo) \
23484 { mantlo, manthi, exponent }
23487 static memory_long_double x =
23488 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
23489 if (!isnanl (x.value))
23493 /* Signalling NaN. */
23494 static memory_long_double x =
23495 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
23496 if (!isnanl (x.value))
23499 /* isnanl should return something even for noncanonical values. */
23500 { /* Pseudo-NaN. */
23501 static memory_long_double x =
23502 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
23503 if (isnanl (x.value) && !isnanl (x.value))
23506 { /* Pseudo-Infinity. */
23507 static memory_long_double x =
23508 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
23509 if (isnanl (x.value) && !isnanl (x.value))
23512 { /* Pseudo-Zero. */
23513 static memory_long_double x =
23514 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
23515 if (isnanl (x.value) && !isnanl (x.value))
23518 { /* Unnormalized number. */
23519 static memory_long_double x =
23520 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
23521 if (isnanl (x.value) && !isnanl (x.value))
23524 { /* Pseudo-Denormal. */
23525 static memory_long_double x =
23526 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
23527 if (isnanl (x.value) && !isnanl (x.value))
23535 if ac_fn_c_try_run
"$LINENO"; then :
23536 gl_cv_func_isnanl_works
=yes
23538 gl_cv_func_isnanl_works
=no
23540 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23541 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
23547 $as_echo "$gl_cv_func_isnanl_works" >&6; }
23549 case "$gl_cv_func_isnanl_works" in
23551 *) gl_func_isnanl_no_libm
=no
;;
23554 if test $gl_func_isnanl_no_libm = yes; then
23556 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
23560 if test $gl_func_isnanl_no_libm != yes; then
23569 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
23575 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
23576 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
23577 $as_echo_n "(cached) " >&6
23580 if test "$cross_compiling" = yes; then :
23582 gl_cv_cc_long_double_expbit0
="unknown"
23584 mingw
*) # On native Windows (little-endian), we know the result
23585 # in two cases: mingw, MSVC.
23586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23587 /* end confdefs.h. */
23594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23595 $EGREP "Known" >/dev
/null
2>&1; then :
23596 gl_cv_cc_long_double_expbit0
="word 2 bit 0"
23600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23601 /* end confdefs.h. */
23608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23609 $EGREP "Known" >/dev
/null
2>&1; then :
23610 gl_cv_cc_long_double_expbit0
="word 1 bit 20"
23618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23619 /* end confdefs.h. */
23622 #include <stddef.h>
23624 #include <string.h>
23626 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23627 typedef union { long double value; unsigned int word[NWORDS]; }
23628 memory_long_double;
23629 static unsigned int ored_words[NWORDS];
23630 static unsigned int anded_words[NWORDS];
23631 static void add_to_ored_words (long double *x)
23633 memory_long_double m;
23635 /* Clear it first, in case
23636 sizeof (long double) < sizeof (memory_long_double). */
23637 memset (&m, 0, sizeof (memory_long_double));
23639 for (i = 0; i < NWORDS; i++)
23641 ored_words[i] |= m.word[i];
23642 anded_words[i] &= m.word[i];
23647 static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
23649 FILE *fp = fopen ("conftest.out", "w");
23652 for (j = 0; j < NWORDS; j++)
23653 anded_words[j] = ~ (unsigned int) 0;
23654 for (j = 0; j < 5; j++)
23655 add_to_ored_words (&samples[j]);
23656 /* Remove bits that are common (e.g. if representation of the first mantissa
23657 bit is explicit). */
23658 for (j = 0; j < NWORDS; j++)
23659 ored_words[j] &= ~anded_words[j];
23660 /* Now find the nonzero word. */
23661 for (j = 0; j < NWORDS; j++)
23662 if (ored_words[j] != 0)
23667 for (i = j + 1; i < NWORDS; i++)
23668 if (ored_words[i] != 0)
23670 fprintf (fp, "unknown");
23671 return (fclose (fp) != 0);
23674 if ((ored_words[j] >> i) & 1)
23676 fprintf (fp, "word %d bit %d", (int) j, (int) i);
23677 return (fclose (fp) != 0);
23680 fprintf (fp, "unknown");
23681 return (fclose (fp) != 0);
23685 if ac_fn_c_try_run
"$LINENO"; then :
23686 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
23688 gl_cv_cc_long_double_expbit0
="unknown"
23690 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23691 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
23698 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
23699 case "$gl_cv_cc_long_double_expbit0" in
23701 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
23702 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
23704 cat >>confdefs.h
<<_ACEOF
23705 #define LDBL_EXPBIT0_WORD $word
23709 cat >>confdefs.h
<<_ACEOF
23710 #define LDBL_EXPBIT0_BIT $bit
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
23722 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
23723 if ${gl_cv_c___inline+:} false
; then :
23724 $as_echo_n "(cached) " >&6
23726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23727 /* end confdefs.h. */
23729 static __inline foo_t foo (void) { return 0; }
23738 if ac_fn_c_try_compile
"$LINENO"; then :
23739 gl_cv_c___inline
=yes
23741 gl_cv_c___inline
=no
23743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
23746 $as_echo "$gl_cv_c___inline" >&6; }
23747 if test $gl_cv_c___inline = yes; then
23749 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
23755 if test "$ac_cv_header_winsock2_h" = yes; then
23764 gl_LIBOBJS
="$gl_LIBOBJS listen.$ac_objext"
23778 $as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
23785 LOCALCHARSET_TESTS_ENVIRONMENT
=
23800 $as_echo "#define _LCONV_C99 1" >>confdefs.h
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
23806 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
23807 if ${gl_cv_header_locale_h_posix2001+:} false
; then :
23808 $as_echo_n "(cached) " >&6
23810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23811 /* end confdefs.h. */
23812 #include <locale.h>
23813 int x = LC_MESSAGES;
23814 int y = sizeof (((struct lconv *) 0)->decimal_point);
23823 if ac_fn_c_try_compile
"$LINENO"; then :
23824 gl_cv_header_locale_h_posix2001
=yes
23826 gl_cv_header_locale_h_posix2001
=no
23828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
23831 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
23834 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
23835 if ${gl_cv_sys_struct_lconv_ok+:} false
; then :
23836 $as_echo_n "(cached) " >&6
23838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23839 /* end confdefs.h. */
23840 #include <locale.h>
23842 int x = sizeof (l.decimal_point);
23843 int y = sizeof (l.int_p_cs_precedes);
23852 if ac_fn_c_try_compile
"$LINENO"; then :
23853 gl_cv_sys_struct_lconv_ok
=yes
23855 gl_cv_sys_struct_lconv_ok
=no
23857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
23861 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
23862 if test $gl_cv_sys_struct_lconv_ok = no
; then
23865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23866 /* end confdefs.h. */
23873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23874 $EGREP "Special" >/dev
/null
2>&1; then :
23877 REPLACE_STRUCT_LCONV
=1
23882 *) REPLACE_STRUCT_LCONV
=1 ;;
23894 if test $gl_cv_have_include_next = yes; then
23895 gl_cv_next_locale_h
='<'locale.h
'>'
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
23898 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
23899 if ${gl_cv_next_locale_h+:} false
; then :
23900 $as_echo_n "(cached) " >&6
23905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23906 /* end confdefs.h. */
23907 #include <locale.h>
23910 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23911 *) gl_absname_cpp
="$ac_cpp" ;;
23916 gl_dirsep_regex
='[/\\]'
23919 gl_dirsep_regex
='\/'
23922 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23923 gl_header_literal_regex
=`echo 'locale.h' \
23924 | sed -e "$gl_make_literal_regex_sed"`
23925 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23926 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23932 gl_cv_absolute_locale_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23933 sed -n "$gl_absolute_header_sed"`
23935 gl_header
=$gl_cv_absolute_locale_h
23936 gl_cv_next_locale_h
='"'$gl_header'"'
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
23941 $as_echo "$gl_cv_next_locale_h" >&6; }
23943 NEXT_LOCALE_H
=$gl_cv_next_locale_h
23945 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23946 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23947 gl_next_as_first_directive
='<'locale.h
'>'
23949 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23950 gl_next_as_first_directive
=$gl_cv_next_locale_h
23952 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
=$gl_next_as_first_directive
23964 if test "$gl_threads_api" = posix
; then
23965 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
23966 # pthread_rwlock_* functions.
23968 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
23970 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
23973 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
23977 if $has_rwlock; then
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
23981 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
23982 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false
; then :
23983 $as_echo_n "(cached) " >&6
23986 LIBS
="$LIBS $LIBMULTITHREAD"
23987 if test "$cross_compiling" = yes; then :
23989 # Guess no on glibc systems.
23990 *-gnu* | gnu
*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
23991 # Guess no on musl systems.
23992 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
23993 # Guess no on bionic systems.
23994 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
23995 # Guess yes on native Windows with the mingw-w64 winpthreads library.
23996 # Guess no on native Windows with the gnulib windows-rwlock module.
23997 mingw
*) if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
23998 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing yes"
24000 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no"
24003 # If we don't know, obey --enable-cross-guesses.
24004 *) gl_cv_pthread_rwlock_rdlock_prefer_writer
="$gl_cross_guess_normal" ;;
24008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24009 /* end confdefs.h. */
24012 #include <pthread.h>
24013 #include <stdlib.h>
24014 #include <unistd.h>
24016 #define SUCCEED() exit (0)
24017 #define FAILURE() exit (1)
24018 #define UNEXPECTED(n) (exit (10 + (n)))
24020 /* The main thread creates the waiting writer and the requesting reader threads
24021 in the default way; this guarantees that they have the same priority.
24022 We can reuse the main thread as first reader thread. */
24024 static pthread_rwlock_t lock;
24025 static pthread_t reader1;
24026 static pthread_t writer;
24027 static pthread_t reader2;
24028 static pthread_t timer;
24029 /* Used to pass control from writer to reader2 and from reader2 to timer,
24030 as in a relay race.
24031 Passing control from one running thread to another running thread
24032 is most likely faster than to create the second thread. */
24033 static pthread_mutex_t baton;
24036 timer_func (void *ignored)
24038 /* Step 13 (can be before or after step 12):
24039 The timer thread takes the baton, then waits a moment to make sure
24040 it can tell whether the second reader thread is blocked at step 12. */
24041 if (pthread_mutex_lock (&baton))
24044 /* By the time we get here, it's clear that the second reader thread is
24045 blocked at step 12. This is the desired behaviour. */
24050 reader2_func (void *ignored)
24054 /* Step 8 (can be before or after step 7):
24055 The second reader thread takes the baton, then waits a moment to make sure
24056 the writer thread has reached step 7. */
24057 if (pthread_mutex_lock (&baton))
24060 /* Step 9: The second reader thread requests the lock. */
24061 err = pthread_rwlock_tryrdlock (&lock);
24064 else if (err != EBUSY)
24066 /* Step 10: Launch a timer, to test whether the next call blocks. */
24067 if (pthread_create (&timer, NULL, timer_func, NULL))
24069 /* Step 11: Release the baton. */
24070 if (pthread_mutex_unlock (&baton))
24072 /* Step 12: The second reader thread requests the lock. */
24073 err = pthread_rwlock_rdlock (&lock);
24081 writer_func (void *ignored)
24083 /* Step 4: Take the baton, so that the second reader thread does not go ahead
24085 if (pthread_mutex_lock (&baton))
24087 /* Step 5: Create the second reader thread. */
24088 if (pthread_create (&reader2, NULL, reader2_func, NULL))
24090 /* Step 6: Release the baton. */
24091 if (pthread_mutex_unlock (&baton))
24093 /* Step 7: The writer thread requests the lock. */
24094 if (pthread_rwlock_wrlock (&lock))
24102 reader1 = pthread_self ();
24104 /* Step 1: The main thread initializes the lock and the baton. */
24105 if (pthread_rwlock_init (&lock, NULL))
24107 if (pthread_mutex_init (&baton, NULL))
24109 /* Step 2: The main thread acquires the lock as a reader. */
24110 if (pthread_rwlock_rdlock (&lock))
24112 /* Step 3: Create the writer thread. */
24113 if (pthread_create (&writer, NULL, writer_func, NULL))
24115 /* Job done. Go to sleep. */
24123 if ac_fn_c_try_run
"$LINENO"; then :
24124 gl_cv_pthread_rwlock_rdlock_prefer_writer
=yes
24126 gl_cv_pthread_rwlock_rdlock_prefer_writer
=no
24128 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24129 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
24136 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
24137 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
24140 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
24146 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
24147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24148 /* end confdefs.h. */
24150 #include <pthread.h>
24155 #if __FreeBSD__ == 4
24156 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
24157 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
24158 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
24159 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
24161 int x = (int)PTHREAD_MUTEX_RECURSIVE;
24169 if ac_fn_c_try_compile
"$LINENO"; then :
24171 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
24174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24180 cat >>confdefs.h
<<_ACEOF
24181 #define GNULIB_LOCK 1
24189 if test $ac_cv_func_lstat = yes; then
24191 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
24200 if test $REPLACE_LSTAT = 1; then
24209 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
24224 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
24231 if test $gl_cv_func_malloc_posix = yes; then
24233 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24239 if test $REPLACE_MALLOC = 1; then
24248 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
24256 GNULIB_MALLOC_POSIX
=1
24262 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
24280 if test $gl_cv_have_include_next = yes; then
24281 gl_cv_next_math_h
='<'math.h
'>'
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
24284 $as_echo_n "checking absolute name of <math.h>... " >&6; }
24285 if ${gl_cv_next_math_h+:} false
; then :
24286 $as_echo_n "(cached) " >&6
24289 if test $ac_cv_header_math_h = yes; then
24294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24295 /* end confdefs.h. */
24299 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24300 *) gl_absname_cpp
="$ac_cpp" ;;
24305 gl_dirsep_regex
='[/\\]'
24308 gl_dirsep_regex
='\/'
24311 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24312 gl_header_literal_regex
=`echo 'math.h' \
24313 | sed -e "$gl_make_literal_regex_sed"`
24314 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24315 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24321 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24322 sed -n "$gl_absolute_header_sed"`
24324 gl_header
=$gl_cv_absolute_math_h
24325 gl_cv_next_math_h
='"'$gl_header'"'
24327 gl_cv_next_math_h
='<'math.h
'>'
24332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
24333 $as_echo "$gl_cv_next_math_h" >&6; }
24335 NEXT_MATH_H
=$gl_cv_next_math_h
24337 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24338 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24339 gl_next_as_first_directive
='<'math.h
'>'
24341 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24342 gl_next_as_first_directive
=$gl_cv_next_math_h
24344 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
24351 $as_echo_n "checking whether NAN macro works... " >&6; }
24352 if ${gl_cv_header_math_nan_works+:} false
; then :
24353 $as_echo_n "(cached) " >&6
24355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24356 /* end confdefs.h. */
24361 /* Solaris 10 has a broken definition of NAN. Other platforms
24362 fail to provide NAN, or provide it only in C99 mode; this
24363 test only needs to fail when NAN is provided but wrong. */
24373 if ac_fn_c_try_compile
"$LINENO"; then :
24374 gl_cv_header_math_nan_works
=yes
24376 gl_cv_header_math_nan_works
=no
24378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
24381 $as_echo "$gl_cv_header_math_nan_works" >&6; }
24382 if test $gl_cv_header_math_nan_works = no
; then
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
24386 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
24387 if ${gl_cv_header_math_huge_val_works+:} false
; then :
24388 $as_echo_n "(cached) " >&6
24390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24391 /* end confdefs.h. */
24396 /* Solaris 10 has a broken definition of HUGE_VAL. */
24397 double d = HUGE_VAL;
24403 if ac_fn_c_try_compile
"$LINENO"; then :
24404 gl_cv_header_math_huge_val_works
=yes
24406 gl_cv_header_math_huge_val_works
=no
24408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
24411 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
24412 if test $gl_cv_header_math_huge_val_works = no
; then
24433 if case "$host_os" in
24435 *) test $ac_cv_func_mbsinit = yes ;;
24437 && test $ac_cv_func_mbrtowc = yes; then
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
24443 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24444 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
24445 $as_echo_n "(cached) " >&6
24449 # Guess no on AIX and OSF/1.
24450 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
24451 # Guess yes otherwise.
24452 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
24454 if test $LOCALE_JA != none
; then
24455 if test "$cross_compiling" = yes; then :
24458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24459 /* end confdefs.h. */
24461 #include <locale.h>
24462 #include <string.h>
24466 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24468 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24472 memset (&state, '\0', sizeof (mbstate_t));
24473 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24474 if (mbsinit (&state))
24480 if ac_fn_c_try_run
"$LINENO"; then :
24481 gl_cv_func_mbrtowc_incomplete_state
=yes
24483 gl_cv_func_mbrtowc_incomplete_state
=no
24485 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24486 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24490 if test $LOCALE_FR_UTF8 != none
; then
24491 if test "$cross_compiling" = yes; then :
24494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24495 /* end confdefs.h. */
24497 #include <locale.h>
24498 #include <string.h>
24502 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24504 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
24508 memset (&state, '\0', sizeof (mbstate_t));
24509 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24510 if (mbsinit (&state))
24516 if ac_fn_c_try_run
"$LINENO"; then :
24517 gl_cv_func_mbrtowc_incomplete_state
=yes
24519 gl_cv_func_mbrtowc_incomplete_state
=no
24521 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24522 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24530 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
24536 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24537 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
24538 $as_echo_n "(cached) " >&6
24542 # Guess no on Solaris 8.
24543 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
24544 # Guess yes otherwise.
24545 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
24547 if test $LOCALE_ZH_CN != none
; then
24548 if test "$cross_compiling" = yes; then :
24551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24552 /* end confdefs.h. */
24554 #include <locale.h>
24555 #include <stdlib.h>
24556 #include <string.h>
24560 /* This fails on Solaris 8:
24561 mbrtowc returns 2, and sets wc to 0x00F0.
24562 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
24563 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24565 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24569 memset (&state, '\0', sizeof (mbstate_t));
24570 if (mbrtowc (&wc, input + 3, 6, &state) != 4
24571 && mbtowc (&wc, input + 3, 6) == 4)
24577 if ac_fn_c_try_run
"$LINENO"; then :
24578 gl_cv_func_mbrtowc_sanitycheck
=yes
24580 gl_cv_func_mbrtowc_sanitycheck
=no
24582 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24583 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24590 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24592 REPLACE_MBSTATE_T
=0
24593 case "$gl_cv_func_mbrtowc_incomplete_state" in
24595 *) REPLACE_MBSTATE_T
=1 ;;
24597 case "$gl_cv_func_mbrtowc_sanitycheck" in
24599 *) REPLACE_MBSTATE_T
=1 ;;
24602 REPLACE_MBSTATE_T
=1
24607 if test $ac_cv_func_mbrtowc = no
; then
24609 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
24613 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
24619 cat >>confdefs.h
<<_ACEOF
24620 #define HAVE_DECL_MBRTOWC $ac_have_decl
24623 if test $ac_cv_have_decl_mbrtowc = yes; then
24627 if test $REPLACE_MBSTATE_T = 1; then
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
24634 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
24635 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
24636 $as_echo_n "(cached) " >&6
24640 # Guess no on Solaris.
24641 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
24642 # Guess yes otherwise.
24643 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
24645 if test $LOCALE_FR_UTF8 != none
; then
24646 if test "$cross_compiling" = yes; then :
24649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24650 /* end confdefs.h. */
24652 #include <locale.h>
24653 #include <stdlib.h>
24654 #include <string.h>
24660 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24662 char input[] = "\303\237er";
24667 memset (&state, '\0', sizeof (mbstate_t));
24668 wc = (wchar_t) 0xBADFACE;
24669 ret = mbrtowc (&wc, input, 5, &state);
24672 if (!mbsinit (&state))
24675 memset (&state, '\0', sizeof (mbstate_t));
24676 ret = mbrtowc (NULL, input, 5, &state);
24677 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
24679 if (!mbsinit (&state))
24685 if ac_fn_c_try_run
"$LINENO"; then :
24686 gl_cv_func_mbrtowc_null_arg1
=yes
24688 gl_cv_func_mbrtowc_null_arg1
=no
24690 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24691 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
24698 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
24704 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
24705 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
24706 $as_echo_n "(cached) " >&6
24710 # Guess no on OSF/1.
24711 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
24712 # Guess yes otherwise.
24713 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
24715 if test $LOCALE_FR_UTF8 != none
; then
24716 if test "$cross_compiling" = yes; then :
24719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24720 /* end confdefs.h. */
24722 #include <locale.h>
24723 #include <string.h>
24727 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24733 memset (&state, '\0', sizeof (mbstate_t));
24734 wc = (wchar_t) 0xBADFACE;
24735 mbrtowc (&wc, NULL, 5, &state);
24736 /* Check that wc was not modified. */
24737 if (wc != (wchar_t) 0xBADFACE)
24743 if ac_fn_c_try_run
"$LINENO"; then :
24744 gl_cv_func_mbrtowc_null_arg2
=yes
24746 gl_cv_func_mbrtowc_null_arg2
=no
24748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
24756 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
24764 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
24765 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
24766 $as_echo_n "(cached) " >&6
24770 # Guess no on HP-UX, Solaris, native Windows.
24771 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
24772 # Guess yes otherwise.
24773 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
24775 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
24776 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
24777 if test "$cross_compiling" = yes; then :
24780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24781 /* end confdefs.h. */
24783 #include <locale.h>
24784 #include <string.h>
24789 int found_some_locale = 0;
24790 /* This fails on Solaris. */
24791 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24793 char input[] = "B\303\274\303\237er"; /* "Büßer" */
24797 memset (&state, '\0', sizeof (mbstate_t));
24798 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24801 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
24804 found_some_locale = 1;
24806 /* This fails on HP-UX 11.11. */
24807 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24809 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24813 memset (&state, '\0', sizeof (mbstate_t));
24814 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24817 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
24820 found_some_locale = 1;
24822 /* This fails on native Windows. */
24823 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
24825 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
24829 memset (&state, '\0', sizeof (mbstate_t));
24830 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
24833 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
24836 found_some_locale = 1;
24838 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
24840 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
24844 memset (&state, '\0', sizeof (mbstate_t));
24845 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
24848 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
24851 found_some_locale = 1;
24853 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
24855 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
24859 memset (&state, '\0', sizeof (mbstate_t));
24860 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
24863 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
24866 found_some_locale = 1;
24868 return (found_some_locale ? result : 77);
24871 if ac_fn_c_try_run
"$LINENO"; then :
24872 gl_cv_func_mbrtowc_retval
=yes
24874 if test $?
!= 77; then
24875 gl_cv_func_mbrtowc_retval
=no
24879 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24880 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
24887 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
24893 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
24894 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
24895 $as_echo_n "(cached) " >&6
24899 # Guess no on Solaris 8 and 9.
24900 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
24901 # Guess yes otherwise.
24902 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
24904 if test $LOCALE_ZH_CN != none
; then
24905 if test "$cross_compiling" = yes; then :
24908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24909 /* end confdefs.h. */
24911 #include <locale.h>
24912 #include <string.h>
24916 /* This fails on Solaris 8 and 9. */
24917 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24922 memset (&state, '\0', sizeof (mbstate_t));
24923 if (mbrtowc (&wc, "", 1, &state) != 0)
24929 if ac_fn_c_try_run
"$LINENO"; then :
24930 gl_cv_func_mbrtowc_nul_retval
=yes
24932 gl_cv_func_mbrtowc_nul_retval
=no
24934 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24935 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
24942 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
24947 $as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; }
24948 if ${gl_cv_func_mbrtowc_stores_incomplete+:} false
; then :
24949 $as_echo_n "(cached) " >&6
24953 # Guess yes on native Windows.
24954 mingw
*) gl_cv_func_mbrtowc_stores_incomplete
="guessing yes" ;;
24955 *) gl_cv_func_mbrtowc_stores_incomplete
="guessing no" ;;
24959 if test "$cross_compiling" = yes; then :
24962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24963 /* end confdefs.h. */
24965 #include <locale.h>
24966 #include <string.h>
24971 if (setlocale (LC_ALL, "French_France.65001") != NULL)
24973 wchar_t wc = (wchar_t) 0xBADFACE;
24976 memset (&state, '\0', sizeof (mbstate_t));
24977 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
24978 && wc != (wchar_t) 0xBADFACE)
24981 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
24983 wchar_t wc = (wchar_t) 0xBADFACE;
24986 memset (&state, '\0', sizeof (mbstate_t));
24987 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
24988 && wc != (wchar_t) 0xBADFACE)
24991 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
24993 wchar_t wc = (wchar_t) 0xBADFACE;
24996 memset (&state, '\0', sizeof (mbstate_t));
24997 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
24998 && wc != (wchar_t) 0xBADFACE)
25001 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
25003 wchar_t wc = (wchar_t) 0xBADFACE;
25006 memset (&state, '\0', sizeof (mbstate_t));
25007 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
25008 && wc != (wchar_t) 0xBADFACE)
25014 if ac_fn_c_try_run
"$LINENO"; then :
25015 gl_cv_func_mbrtowc_stores_incomplete
=no
25017 gl_cv_func_mbrtowc_stores_incomplete
=yes
25019 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25020 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25026 if test $LOCALE_FR_UTF8 != none
; then
25027 if test "$cross_compiling" = yes; then :
25030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25031 /* end confdefs.h. */
25033 #include <locale.h>
25034 #include <string.h>
25038 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
25040 wchar_t wc = (wchar_t) 0xBADFACE;
25043 memset (&state, '\0', sizeof (mbstate_t));
25044 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
25045 && wc != (wchar_t) 0xBADFACE)
25051 if ac_fn_c_try_run
"$LINENO"; then :
25052 gl_cv_func_mbrtowc_stores_incomplete
=no
25054 gl_cv_func_mbrtowc_stores_incomplete
=yes
25056 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25057 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
25066 $as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
25071 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
25072 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
25073 $as_echo_n "(cached) " >&6
25077 # Guess no on AIX and glibc systems.
25078 aix
* |
*-gnu* | gnu
*) gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
25079 # Guess yes on native Windows.
25080 mingw
*) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
25081 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
25083 if test "$cross_compiling" = yes; then :
25086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25087 /* end confdefs.h. */
25091 static mbstate_t mbs;
25095 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
25098 if ac_fn_c_try_run
"$LINENO"; then :
25099 gl_cv_func_mbrtowc_empty_input
=yes
25101 gl_cv_func_mbrtowc_empty_input
=no
25103 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25104 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
25110 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
25114 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
25115 if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false
; then :
25116 $as_echo_n "(cached) " >&6
25119 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="$gl_cross_guess_normal"
25121 if test "$cross_compiling" = yes; then :
25123 # Guess yes on native Windows.
25124 mingw
*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="guessing yes" ;;
25128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25129 /* end confdefs.h. */
25130 #include <limits.h>
25131 #include <locale.h>
25139 char *locale = setlocale (LC_ALL, "C");
25142 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
25146 mbstate_t mbs = { 0, };
25147 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
25157 if ac_fn_c_try_run
"$LINENO"; then :
25158 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=yes
25160 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=no
25162 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25163 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
25169 $as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
25171 case "$gl_cv_func_mbrtowc_null_arg1" in
25174 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
25179 case "$gl_cv_func_mbrtowc_null_arg2" in
25182 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
25187 case "$gl_cv_func_mbrtowc_retval" in
25190 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
25195 case "$gl_cv_func_mbrtowc_nul_retval" in
25198 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
25203 case "$gl_cv_func_mbrtowc_stores_incomplete" in
25206 $as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
25211 case "$gl_cv_func_mbrtowc_empty_input" in
25214 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
25219 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
25222 $as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
25229 if test $REPLACE_MBSTATE_T = 1; then
25231 mingw
*) LIB_MBRTOWC
= ;;
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
25236 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
25237 if ${gl_cv_have_weak+:} false
; then :
25238 $as_echo_n "(cached) " >&6
25241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25242 /* end confdefs.h. */
25243 extern void xyzzy ();
25253 if ac_fn_c_try_link
"$LINENO"; then :
25254 gl_cv_have_weak
=maybe
25256 rm -f core conftest.err conftest.
$ac_objext \
25257 conftest
$ac_exeext conftest.
$ac_ext
25258 if test $gl_cv_have_weak = maybe
; then
25259 if test "$cross_compiling" = yes; then :
25260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25261 /* end confdefs.h. */
25263 Extensible Linking Format
25267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25268 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
25269 gl_cv_have_weak
="guessing yes"
25271 gl_cv_have_weak
="guessing no"
25277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25278 /* end confdefs.h. */
25284 return (fputs == NULL);
25287 if ac_fn_c_try_run
"$LINENO"; then :
25288 gl_cv_have_weak
=yes
25292 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25293 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25297 case " $LDFLAGS " in
25298 *" -static "*) gl_cv_have_weak
=no
;;
25300 case "$gl_cv_have_weak" in
25303 freebsd
* | dragonfly
*)
25305 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
25306 cat <<EOF > conftest2.c
25307 #include <pthread.h>
25308 #pragma weak pthread_mutexattr_gettype
25311 return (pthread_mutexattr_gettype != NULL);
25314 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
25315 || gl_cv_have_weak
=no
25316 rm -f conftest1.c libempty.so conftest2.c conftest
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
25324 $as_echo "$gl_cv_have_weak" >&6; }
25325 case "$gl_cv_have_weak" in
25328 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
25333 case "$gl_cv_have_weak" in
25334 *yes) LIB_MBRTOWC
= ;;
25335 *) LIB_MBRTOWC
="$LIBPTHREAD" ;;
25344 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
25353 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
25355 if test $REPLACE_MBSTATE_T = 1; then
25364 gl_LIBOBJS
="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
25374 gl_LIBOBJS
="$gl_LIBOBJS mbtowc-lock.$ac_objext"
25381 if test -n "$GCC"; then
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
25383 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
25384 if ${gl_cv_cc_vis_werror+:} false
; then :
25385 $as_echo_n "(cached) " >&6
25387 gl_save_CFLAGS
="$CFLAGS"
25388 CFLAGS
="$CFLAGS -Werror"
25389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25390 /* end confdefs.h. */
25400 if ac_fn_c_try_compile
"$LINENO"; then :
25401 gl_cv_cc_vis_werror
=yes
25403 gl_cv_cc_vis_werror
=no
25405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25406 CFLAGS
="$gl_save_CFLAGS"
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
25410 $as_echo "$gl_cv_cc_vis_werror" >&6; }
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
25412 $as_echo_n "checking for simple visibility declarations... " >&6; }
25413 if ${gl_cv_cc_visibility+:} false
; then :
25414 $as_echo_n "(cached) " >&6
25416 gl_save_CFLAGS
="$CFLAGS"
25417 CFLAGS
="$CFLAGS -fvisibility=hidden"
25418 if test $gl_cv_cc_vis_werror = yes; then
25419 CFLAGS
="$CFLAGS -Werror"
25421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25422 /* end confdefs.h. */
25423 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
25424 extern __attribute__((__visibility__("default"))) int exportedvar;
25425 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
25426 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
25427 void dummyfunc (void) {}
25437 if ac_fn_c_try_compile
"$LINENO"; then :
25438 gl_cv_cc_visibility
=yes
25440 gl_cv_cc_visibility
=no
25442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25443 CFLAGS
="$gl_save_CFLAGS"
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
25447 $as_echo "$gl_cv_cc_visibility" >&6; }
25448 if test $gl_cv_cc_visibility = yes; then
25449 CFLAG_VISIBILITY
="-fvisibility=hidden"
25456 cat >>confdefs.h
<<_ACEOF
25457 #define HAVE_VISIBILITY $HAVE_VISIBILITY
25479 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
25495 if case "$host_os" in
25497 *) test $ac_cv_func_mbsinit = yes ;;
25499 && test $ac_cv_func_mbrtowc = yes; then
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
25505 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
25506 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
25507 $as_echo_n "(cached) " >&6
25511 # Guess no on AIX and OSF/1.
25512 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
25513 # Guess yes otherwise.
25514 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
25516 if test $LOCALE_JA != none
; then
25517 if test "$cross_compiling" = yes; then :
25520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25521 /* end confdefs.h. */
25523 #include <locale.h>
25524 #include <string.h>
25528 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
25530 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
25534 memset (&state, '\0', sizeof (mbstate_t));
25535 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
25536 if (mbsinit (&state))
25542 if ac_fn_c_try_run
"$LINENO"; then :
25543 gl_cv_func_mbrtowc_incomplete_state
=yes
25545 gl_cv_func_mbrtowc_incomplete_state
=no
25547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25548 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25552 if test $LOCALE_FR_UTF8 != none
; then
25553 if test "$cross_compiling" = yes; then :
25556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25557 /* end confdefs.h. */
25559 #include <locale.h>
25560 #include <string.h>
25564 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
25566 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
25570 memset (&state, '\0', sizeof (mbstate_t));
25571 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
25572 if (mbsinit (&state))
25578 if ac_fn_c_try_run
"$LINENO"; then :
25579 gl_cv_func_mbrtowc_incomplete_state
=yes
25581 gl_cv_func_mbrtowc_incomplete_state
=no
25583 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25584 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
25592 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
25598 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
25599 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
25600 $as_echo_n "(cached) " >&6
25604 # Guess no on Solaris 8.
25605 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
25606 # Guess yes otherwise.
25607 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
25609 if test $LOCALE_ZH_CN != none
; then
25610 if test "$cross_compiling" = yes; then :
25613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25614 /* end confdefs.h. */
25616 #include <locale.h>
25617 #include <stdlib.h>
25618 #include <string.h>
25622 /* This fails on Solaris 8:
25623 mbrtowc returns 2, and sets wc to 0x00F0.
25624 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
25625 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
25627 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
25631 memset (&state, '\0', sizeof (mbstate_t));
25632 if (mbrtowc (&wc, input + 3, 6, &state) != 4
25633 && mbtowc (&wc, input + 3, 6) == 4)
25639 if ac_fn_c_try_run
"$LINENO"; then :
25640 gl_cv_func_mbrtowc_sanitycheck
=yes
25642 gl_cv_func_mbrtowc_sanitycheck
=no
25644 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25645 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
25652 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
25654 REPLACE_MBSTATE_T
=0
25655 case "$gl_cv_func_mbrtowc_incomplete_state" in
25657 *) REPLACE_MBSTATE_T
=1 ;;
25659 case "$gl_cv_func_mbrtowc_sanitycheck" in
25661 *) REPLACE_MBSTATE_T
=1 ;;
25664 REPLACE_MBSTATE_T
=1
25669 if test $ac_cv_func_mbsinit = no
; then
25671 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
25675 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
25681 cat >>confdefs.h
<<_ACEOF
25682 #define HAVE_DECL_MBSINIT $ac_have_decl
25685 if test $ac_cv_have_decl_mbsinit = yes; then
25689 if test $REPLACE_MBSTATE_T = 1; then
25693 mingw
*) REPLACE_MBSINIT
=1 ;;
25698 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
25707 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
25724 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
25739 if case "$host_os" in
25741 *) test $ac_cv_func_mbsinit = yes ;;
25743 && test $ac_cv_func_mbrtowc = yes; then
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
25749 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
25750 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
25751 $as_echo_n "(cached) " >&6
25755 # Guess no on AIX and OSF/1.
25756 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
25757 # Guess yes otherwise.
25758 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
25760 if test $LOCALE_JA != none
; then
25761 if test "$cross_compiling" = yes; then :
25764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25765 /* end confdefs.h. */
25767 #include <locale.h>
25768 #include <string.h>
25772 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
25774 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
25778 memset (&state, '\0', sizeof (mbstate_t));
25779 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
25780 if (mbsinit (&state))
25786 if ac_fn_c_try_run
"$LINENO"; then :
25787 gl_cv_func_mbrtowc_incomplete_state
=yes
25789 gl_cv_func_mbrtowc_incomplete_state
=no
25791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25796 if test $LOCALE_FR_UTF8 != none
; then
25797 if test "$cross_compiling" = yes; then :
25800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25801 /* end confdefs.h. */
25803 #include <locale.h>
25804 #include <string.h>
25808 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
25810 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
25814 memset (&state, '\0', sizeof (mbstate_t));
25815 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
25816 if (mbsinit (&state))
25822 if ac_fn_c_try_run
"$LINENO"; then :
25823 gl_cv_func_mbrtowc_incomplete_state
=yes
25825 gl_cv_func_mbrtowc_incomplete_state
=no
25827 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25828 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
25836 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
25842 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
25843 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
25844 $as_echo_n "(cached) " >&6
25848 # Guess no on Solaris 8.
25849 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
25850 # Guess yes otherwise.
25851 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
25853 if test $LOCALE_ZH_CN != none
; then
25854 if test "$cross_compiling" = yes; then :
25857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25858 /* end confdefs.h. */
25860 #include <locale.h>
25861 #include <stdlib.h>
25862 #include <string.h>
25866 /* This fails on Solaris 8:
25867 mbrtowc returns 2, and sets wc to 0x00F0.
25868 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
25869 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
25871 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
25875 memset (&state, '\0', sizeof (mbstate_t));
25876 if (mbrtowc (&wc, input + 3, 6, &state) != 4
25877 && mbtowc (&wc, input + 3, 6) == 4)
25883 if ac_fn_c_try_run
"$LINENO"; then :
25884 gl_cv_func_mbrtowc_sanitycheck
=yes
25886 gl_cv_func_mbrtowc_sanitycheck
=no
25888 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25889 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
25896 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
25898 REPLACE_MBSTATE_T
=0
25899 case "$gl_cv_func_mbrtowc_incomplete_state" in
25901 *) REPLACE_MBSTATE_T
=1 ;;
25903 case "$gl_cv_func_mbrtowc_sanitycheck" in
25905 *) REPLACE_MBSTATE_T
=1 ;;
25908 REPLACE_MBSTATE_T
=1
25913 if test $ac_cv_func_mbsrtowcs = no
; then
25915 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
25919 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
25925 cat >>confdefs.h
<<_ACEOF
25926 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
25929 if test $ac_cv_have_decl_mbsrtowcs = yes; then
25930 REPLACE_MBSRTOWCS
=1
25933 if test $REPLACE_MBSTATE_T = 1; then
25934 REPLACE_MBSRTOWCS
=1
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
25943 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
25944 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
25945 $as_echo_n "(cached) " >&6
25949 # Guess no on HP-UX, Solaris, mingw.
25950 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
25951 # Guess yes otherwise.
25952 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
25954 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
25955 if test "$cross_compiling" = yes; then :
25958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25959 /* end confdefs.h. */
25961 #include <locale.h>
25962 #include <string.h>
25967 /* Test whether the function supports a NULL destination argument.
25968 This fails on native Windows. */
25969 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
25971 const char input[] = "\337er";
25972 const char *src = input;
25975 memset (&state, '\0', sizeof (mbstate_t));
25976 if (mbsrtowcs (NULL, &src, 1, &state) != 3
25980 /* Test whether the function works when started with a conversion state
25981 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
25982 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
25984 const char input[] = "B\303\274\303\237er";
25987 memset (&state, '\0', sizeof (mbstate_t));
25988 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
25989 if (!mbsinit (&state))
25991 const char *src = input + 2;
25992 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
25996 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
25998 const char input[] = "<\306\374\313\334\270\354>";
26001 memset (&state, '\0', sizeof (mbstate_t));
26002 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
26003 if (!mbsinit (&state))
26005 const char *src = input + 4;
26006 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
26010 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
26012 const char input[] = "B\250\271\201\060\211\070er";
26015 memset (&state, '\0', sizeof (mbstate_t));
26016 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
26017 if (!mbsinit (&state))
26019 const char *src = input + 2;
26020 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
26027 if ac_fn_c_try_run
"$LINENO"; then :
26028 gl_cv_func_mbsrtowcs_works
=yes
26030 gl_cv_func_mbsrtowcs_works
=no
26032 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26033 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
26040 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
26042 case "$gl_cv_func_mbsrtowcs_works" in
26044 *) REPLACE_MBSRTOWCS
=1 ;;
26049 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
26058 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
26068 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
26085 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
26092 for ac_func
in mbtowc
26094 ac_fn_c_check_func
"$LINENO" "mbtowc" "ac_cv_func_mbtowc"
26095 if test "x$ac_cv_func_mbtowc" = xyes
; then :
26096 cat >>confdefs.h
<<_ACEOF
26097 #define HAVE_MBTOWC 1
26103 if test $ac_cv_func_mbtowc = no
; then
26111 if test $HAVE_MBTOWC = 0 ||
test $REPLACE_MBTOWC = 1; then
26120 gl_LIBOBJS
="$gl_LIBOBJS mbtowc.$ac_objext"
26137 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
26142 if test $REPLACE_MEMCHR = 1; then
26151 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
26154 for ac_header
in bp-sym.h
26156 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
26157 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
26158 cat >>confdefs.h
<<_ACEOF
26159 #define HAVE_BP_SYM_H 1
26179 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
26185 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
26187 $as_echo_n "checking whether memmem works in linear time... " >&6; }
26188 if ${gl_cv_func_memmem_works_fast+:} false
; then :
26189 $as_echo_n "(cached) " >&6
26191 if test "$cross_compiling" = yes; then :
26192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26193 /* end confdefs.h. */
26195 #include <features.h>
26196 #ifdef __GNU_LIBRARY__
26197 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
26198 && !defined __UCLIBC__
26203 #include <cygwin/version.h>
26204 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
26210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26211 $EGREP "Lucky user" >/dev
/null
2>&1; then :
26212 gl_cv_func_memmem_works_fast
="guessing yes"
26214 gl_cv_func_memmem_works_fast
="$gl_cross_guess_normal"
26220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26221 /* end confdefs.h. */
26223 #include <signal.h> /* for signal */
26224 #include <string.h> /* for memmem */
26225 #include <stdlib.h> /* for malloc */
26226 #include <unistd.h> /* for alarm */
26227 static void quit (int sig) { _exit (sig + 128); }
26234 size_t m = 1000000;
26235 char *haystack = (char *) malloc (2 * m + 1);
26236 char *needle = (char *) malloc (m + 1);
26237 /* Failure to compile this test due to missing alarm is okay,
26238 since all such platforms (mingw) also lack memmem. */
26239 signal (SIGALRM, quit);
26241 /* Check for quadratic performance. */
26242 if (haystack && needle)
26244 memset (haystack, 'A', 2 * m);
26245 haystack[2 * m] = 'B';
26246 memset (needle, 'A', m);
26248 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
26251 /* Free allocated memory, in case some sanitizer is watching. */
26260 if ac_fn_c_try_run
"$LINENO"; then :
26261 gl_cv_func_memmem_works_fast
=yes
26263 gl_cv_func_memmem_works_fast
=no
26265 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26266 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
26272 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
26273 case "$gl_cv_func_memmem_works_fast" in
26281 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
26290 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
26297 for ac_func
in memmem
26299 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
26300 if test "x$ac_cv_func_memmem" = xyes
; then :
26301 cat >>confdefs.h
<<_ACEOF
26302 #define HAVE_MEMMEM 1
26308 if test $ac_cv_func_memmem = yes; then
26314 if test $ac_cv_have_decl_memmem = no
; then
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
26318 $as_echo_n "checking whether memmem works... " >&6; }
26319 if ${gl_cv_func_memmem_works_always+:} false
; then :
26320 $as_echo_n "(cached) " >&6
26322 if test "$cross_compiling" = yes; then :
26323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26324 /* end confdefs.h. */
26326 #ifdef __GNU_LIBRARY__
26327 #include <features.h>
26328 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
26329 || __GLIBC_MINOR__ > 12)) \
26330 || (__GLIBC__ > 2)) \
26331 || defined __UCLIBC__
26334 #elif defined __CYGWIN__
26335 #include <cygwin/version.h>
26336 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
26344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26345 $EGREP "Lucky user" >/dev
/null
2>&1; then :
26346 gl_cv_func_memmem_works_always
="guessing yes"
26348 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
26354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26355 /* end confdefs.h. */
26357 #include <string.h> /* for memmem */
26358 #define P "_EF_BF_BD"
26359 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
26360 #define NEEDLE P P P P P
26367 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
26369 /* Check for empty needle behavior. */
26371 const char *haystack = "AAA";
26372 if (memmem (haystack, 3, (const char *) 1, 0) != haystack)
26381 if ac_fn_c_try_run
"$LINENO"; then :
26382 gl_cv_func_memmem_works_always
=yes
26384 gl_cv_func_memmem_works_always
=no
26386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
26393 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
26394 case "$gl_cv_func_memmem_works_always" in
26403 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
26412 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
26426 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
26436 for ac_func
in mempcpy
26438 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
26439 if test "x$ac_cv_func_mempcpy" = xyes
; then :
26440 cat >>confdefs.h
<<_ACEOF
26441 #define HAVE_MEMPCPY 1
26447 if test $ac_cv_func_mempcpy = no
; then
26451 if test $HAVE_MEMPCPY = 0; then
26460 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
26477 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
26486 if test $ac_cv_have_decl_memrchr = no
; then
26487 HAVE_DECL_MEMRCHR
=0
26490 for ac_func
in memrchr
26492 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
26493 if test "x$ac_cv_func_memrchr" = xyes
; then :
26494 cat >>confdefs.h
<<_ACEOF
26495 #define HAVE_MEMRCHR 1
26502 if test $ac_cv_func_memrchr = no
; then
26511 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
26526 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
26536 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
26537 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
26538 $as_echo_n "(cached) " >&6
26540 rm -rf conftest.dir
26541 if test "$cross_compiling" = yes; then :
26543 # Guess yes on Linux systems.
26544 linux-
* | linux
) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
26545 # Guess yes on glibc systems.
26546 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
26547 # Guess yes on MSVC, no on mingw.
26548 mingw
*) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26549 /* end confdefs.h. */
26556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26557 $EGREP "Known" >/dev
/null
2>&1; then :
26558 gl_cv_func_mkdir_trailing_slash_works
="guessing yes"
26560 gl_cv_func_mkdir_trailing_slash_works
="guessing no"
26565 # If we don't know, obey --enable-cross-guesses.
26566 *) gl_cv_func_mkdir_trailing_slash_works
="$gl_cross_guess_normal" ;;
26570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26571 /* end confdefs.h. */
26573 #include <sys/types.h>
26574 #include <sys/stat.h>
26582 return mkdir ("conftest.dir/", 0700);
26587 if ac_fn_c_try_run
"$LINENO"; then :
26588 gl_cv_func_mkdir_trailing_slash_works
=yes
26590 gl_cv_func_mkdir_trailing_slash_works
=no
26592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26596 rm -rf conftest.dir
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
26600 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
26601 case "$gl_cv_func_mkdir_trailing_slash_works" in
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
26609 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
26610 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
26611 $as_echo_n "(cached) " >&6
26613 rm -rf conftest.dir
26614 if test "$cross_compiling" = yes; then :
26616 # Guess yes on glibc systems.
26617 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
26618 # Guess yes on musl systems.
26619 *-musl*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
26620 # Guess no on native Windows.
26621 mingw
*) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
26622 # If we don't know, obey --enable-cross-guesses.
26623 *) gl_cv_func_mkdir_trailing_dot_works
="$gl_cross_guess_normal" ;;
26627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26628 /* end confdefs.h. */
26630 #include <sys/types.h>
26631 #include <sys/stat.h>
26639 return !mkdir ("conftest.dir/./", 0700);
26644 if ac_fn_c_try_run
"$LINENO"; then :
26645 gl_cv_func_mkdir_trailing_dot_works
=yes
26647 gl_cv_func_mkdir_trailing_dot_works
=no
26649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26650 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26653 rm -rf conftest.dir
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
26658 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
26659 case "$gl_cv_func_mkdir_trailing_dot_works" in
26664 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
26669 if test $REPLACE_MKDIR = 1; then
26678 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
26692 $as_echo "#define GNULIB_TEST_MKDIR 1" >>confdefs.h
26698 for ac_func
in mkdtemp
26700 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
26701 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
26702 cat >>confdefs.h
<<_ACEOF
26703 #define HAVE_MKDTEMP 1
26709 if test $ac_cv_func_mkdtemp = no
; then
26713 if test $HAVE_MKDTEMP = 0; then
26722 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
26738 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
26748 if test $ac_cv_func_mkostemp != yes; then
26752 if test $HAVE_MKOSTEMP = 0; then
26761 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
26768 cat >>confdefs.h
<<_ACEOF
26769 #define GNULIB_MKOSTEMP 1
26784 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
26789 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26798 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
26802 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26811 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
26816 cat >>confdefs.h
<<_ACEOF
26817 #define GNULIB_MSVC_NOTHROW 1
26833 if test $gl_cv_have_include_next = yes; then
26834 gl_cv_next_netdb_h
='<'netdb.h
'>'
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
26837 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
26838 if ${gl_cv_next_netdb_h+:} false
; then :
26839 $as_echo_n "(cached) " >&6
26842 if test $ac_cv_header_netdb_h = yes; then
26847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26848 /* end confdefs.h. */
26852 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26853 *) gl_absname_cpp
="$ac_cpp" ;;
26858 gl_dirsep_regex
='[/\\]'
26861 gl_dirsep_regex
='\/'
26864 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26865 gl_header_literal_regex
=`echo 'netdb.h' \
26866 | sed -e "$gl_make_literal_regex_sed"`
26867 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26868 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26874 gl_cv_absolute_netdb_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26875 sed -n "$gl_absolute_header_sed"`
26877 gl_header
=$gl_cv_absolute_netdb_h
26878 gl_cv_next_netdb_h
='"'$gl_header'"'
26880 gl_cv_next_netdb_h
='<'netdb.h
'>'
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
26886 $as_echo "$gl_cv_next_netdb_h" >&6; }
26888 NEXT_NETDB_H
=$gl_cv_next_netdb_h
26890 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26892 gl_next_as_first_directive
='<'netdb.h
'>'
26894 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26895 gl_next_as_first_directive
=$gl_cv_next_netdb_h
26897 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
=$gl_next_as_first_directive
26902 if test $ac_cv_header_netdb_h = yes; then
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
26915 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
26916 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
26917 $as_echo_n "(cached) " >&6
26920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26921 /* end confdefs.h. */
26922 #include <netinet/in.h>
26931 if ac_fn_c_try_compile
"$LINENO"; then :
26932 gl_cv_header_netinet_in_h_selfcontained
=yes
26934 gl_cv_header_netinet_in_h_selfcontained
=no
26936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
26940 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
26941 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
26944 NETINET_IN_H
='netinet/in.h'
26945 for ac_header
in netinet
/in.h
26947 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
26948 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
26949 cat >>confdefs.h
<<_ACEOF
26950 #define HAVE_NETINET_IN_H 1
26966 if test $gl_cv_have_include_next = yes; then
26967 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
26970 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
26971 if ${gl_cv_next_netinet_in_h+:} false
; then :
26972 $as_echo_n "(cached) " >&6
26975 if test $ac_cv_header_netinet_in_h = yes; then
26980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26981 /* end confdefs.h. */
26982 #include <netinet/in.h>
26985 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26986 *) gl_absname_cpp
="$ac_cpp" ;;
26991 gl_dirsep_regex
='[/\\]'
26994 gl_dirsep_regex
='\/'
26997 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26998 gl_header_literal_regex
=`echo 'netinet/in.h' \
26999 | sed -e "$gl_make_literal_regex_sed"`
27000 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27001 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27007 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27008 sed -n "$gl_absolute_header_sed"`
27010 gl_header
=$gl_cv_absolute_netinet_in_h
27011 gl_cv_next_netinet_in_h
='"'$gl_header'"'
27013 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
27019 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
27021 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
27023 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27024 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27025 gl_next_as_first_directive
='<'netinet
/in.h
'>'
27027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27028 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
27030 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
27035 if test $ac_cv_header_netinet_in_h = yes; then
27036 HAVE_NETINET_IN_H
=1
27038 HAVE_NETINET_IN_H
=0
27043 if test -n "$NETINET_IN_H"; then
27044 GL_GENERATE_NETINET_IN_H_TRUE
=
27045 GL_GENERATE_NETINET_IN_H_FALSE
='#'
27047 GL_GENERATE_NETINET_IN_H_TRUE
='#'
27048 GL_GENERATE_NETINET_IN_H_FALSE
=
27062 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
27068 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
27069 if ${gl_cv_func_open_slash+:} false
; then :
27070 $as_echo_n "(cached) " >&6
27072 # Assume that if we have lstat, we can also check symlinks.
27073 if test $ac_cv_func_lstat = yes; then
27075 ln -s conftest.tmp conftest.lnk
27077 if test "$cross_compiling" = yes; then :
27080 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
27081 gl_cv_func_open_slash
="guessing no" ;;
27083 gl_cv_func_open_slash
="guessing yes" ;;
27087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27088 /* end confdefs.h. */
27092 # include <unistd.h>
27102 if (open ("conftest.lnk/", O_RDONLY) != -1)
27105 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
27110 if ac_fn_c_try_run
"$LINENO"; then :
27111 gl_cv_func_open_slash
=yes
27113 gl_cv_func_open_slash
=no
27115 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27116 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27119 rm -f conftest.sl conftest.tmp conftest.lnk
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
27123 $as_echo "$gl_cv_func_open_slash" >&6; }
27124 case "$gl_cv_func_open_slash" in
27127 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
27132 case "$gl_cv_func_open_slash" in
27140 if test $REPLACE_OPEN = 0; then
27144 if test $ac_cv_func_fchdir = no
; then
27148 if test $HAVE_FCHDIR = 0; then
27155 if test $REPLACE_OPEN = 1; then
27164 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
27182 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
27192 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
27196 # Solaris 10 lacks O_CLOEXEC.
27197 # Solaris 9 has *at functions, but uniformly mishandles trailing
27198 # slash in all of them.
27206 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
27215 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
27224 cat >>confdefs.h
<<_ACEOF
27225 #define GNULIB_OPENAT 1
27239 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
27246 for ac_func
in opendir
27248 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
27249 if test "x$ac_cv_func_opendir" = xyes
; then :
27250 cat >>confdefs.h
<<_ACEOF
27251 #define HAVE_OPENDIR 1
27257 if test $ac_cv_func_opendir = no
; then
27264 if test $ac_cv_func_fchdir = no
; then
27268 if test $HAVE_FCHDIR = 0; then
27269 if test $HAVE_OPENDIR = 1; then
27274 case $host_os,$HAVE_OPENDIR in
27276 REPLACE_OPENDIR
=1;;
27279 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
27288 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
27302 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
27313 if test $ac_cv_func_pipe != yes; then
27317 if test $HAVE_PIPE = 0; then
27326 gl_LIBOBJS
="$gl_LIBOBJS pipe.$ac_objext"
27340 $as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h
27348 for ac_func
in rawmemchr
27350 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
27351 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
27352 cat >>confdefs.h
<<_ACEOF
27353 #define HAVE_RAWMEMCHR 1
27359 if test $ac_cv_func_rawmemchr = no
; then
27363 if test $HAVE_RAWMEMCHR = 0; then
27372 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
27387 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
27394 for ac_func
in readdir
27396 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
27397 if test "x$ac_cv_func_readdir" = xyes
; then :
27398 cat >>confdefs.h
<<_ACEOF
27399 #define HAVE_READDIR 1
27405 if test $ac_cv_func_readdir = no
; then
27409 if test $HAVE_READDIR = 0; then
27418 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
27432 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
27439 if test $ac_cv_func_readlink = no
; then
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
27443 $as_echo_n "checking whether readlink signature is correct... " >&6; }
27444 if ${gl_cv_decl_readlink_works+:} false
; then :
27445 $as_echo_n "(cached) " >&6
27447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27448 /* end confdefs.h. */
27449 #include <unistd.h>
27450 /* Cause compilation failure if original declaration has wrong type. */
27451 ssize_t readlink (const char *, char *, size_t);
27460 if ac_fn_c_try_compile
"$LINENO"; then :
27461 gl_cv_decl_readlink_works
=yes
27463 gl_cv_decl_readlink_works
=no
27465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
27468 $as_echo "$gl_cv_decl_readlink_works" >&6; }
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
27470 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
27471 if ${gl_cv_func_readlink_trailing_slash+:} false
; then :
27472 $as_echo_n "(cached) " >&6
27474 # We have readlink, so assume ln -s works.
27475 ln -s conftest.no-such conftest.link
27476 ln -s conftest.link conftest.lnk2
27477 if test "$cross_compiling" = yes; then :
27479 # Guess yes on Linux or glibc systems.
27480 linux-
* | linux |
*-gnu* | gnu
*)
27481 gl_cv_func_readlink_trailing_slash
="guessing yes" ;;
27482 # Guess no on AIX or HP-UX.
27484 gl_cv_func_readlink_trailing_slash
="guessing no" ;;
27485 # If we don't know, obey --enable-cross-guesses.
27487 gl_cv_func_readlink_trailing_slash
="$gl_cross_guess_normal" ;;
27491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27492 /* end confdefs.h. */
27493 #include <unistd.h>
27499 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
27504 if ac_fn_c_try_run
"$LINENO"; then :
27505 gl_cv_func_readlink_trailing_slash
=yes
27507 gl_cv_func_readlink_trailing_slash
=no
27509 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27510 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27513 rm -f conftest.link conftest.lnk2
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5
27516 $as_echo "$gl_cv_func_readlink_trailing_slash" >&6; }
27517 case "$gl_cv_func_readlink_trailing_slash" in
27519 if test "$gl_cv_decl_readlink_works" != yes; then
27525 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5
27532 $as_echo_n "checking whether readlink truncates results correctly... " >&6; }
27533 if ${gl_cv_func_readlink_truncate+:} false
; then :
27534 $as_echo_n "(cached) " >&6
27536 # We have readlink, so assume ln -s works.
27537 ln -s ab conftest.link
27538 if test "$cross_compiling" = yes; then :
27540 # Guess yes on Linux or glibc systems.
27541 linux-
* | linux |
*-gnu* | gnu
*)
27542 gl_cv_func_readlink_truncate
="guessing yes" ;;
27543 # Guess no on AIX or HP-UX.
27545 gl_cv_func_readlink_truncate
="guessing no" ;;
27546 # If we don't know, obey --enable-cross-guesses.
27548 gl_cv_func_readlink_truncate
="$gl_cross_guess_normal" ;;
27552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27553 /* end confdefs.h. */
27554 #include <unistd.h>
27560 return readlink ("conftest.link", &c, 1) != 1;
27565 if ac_fn_c_try_run
"$LINENO"; then :
27566 gl_cv_func_readlink_truncate
=yes
27568 gl_cv_func_readlink_truncate
=no
27570 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27571 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27574 rm -f conftest.link conftest.lnk2
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5
27577 $as_echo "$gl_cv_func_readlink_truncate" >&6; }
27578 case $gl_cv_func_readlink_truncate in
27580 if test "$gl_cv_decl_readlink_works" != yes; then
27586 $as_echo "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h
27593 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
27602 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
27619 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
27626 if test $gl_cv_func_malloc_posix = yes; then
27628 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
27634 if test $REPLACE_REALLOC = 1; then
27643 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
27651 GNULIB_REALLOC_POSIX
=1
27657 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
27667 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
27668 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
27669 $as_echo_n "(cached) " >&6
27671 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
27672 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
27673 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
27674 # Assume that if we have lstat, we can also check symlinks.
27675 if test $ac_cv_func_lstat = yes; then
27676 ln -s conftest.f conftest.lnk
27678 if test "$cross_compiling" = yes; then :
27680 # Guess yes on Linux systems.
27681 linux-
* | linux
) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
27682 # Guess yes on glibc systems.
27683 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
27684 # Guess no on native Windows.
27685 mingw
*) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
27686 # If we don't know, obey --enable-cross-guesses.
27687 *) gl_cv_func_rename_slash_dst_works
="$gl_cross_guess_normal" ;;
27691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27692 /* end confdefs.h. */
27694 # include <stdio.h>
27695 # include <stdlib.h>
27701 if (rename ("conftest.f1", "conftest.f2/") == 0)
27703 if (rename ("conftest.d1", "conftest.d2/") != 0)
27706 if (rename ("conftest.f", "conftest.lnk/") == 0)
27715 if ac_fn_c_try_run
"$LINENO"; then :
27716 gl_cv_func_rename_slash_dst_works
=yes
27718 gl_cv_func_rename_slash_dst_works
=no
27720 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27721 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27724 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
27728 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
27729 case "$gl_cv_func_rename_slash_dst_works" in
27734 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
27740 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
27741 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
27742 $as_echo_n "(cached) " >&6
27744 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
27745 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
27746 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
27747 # Assume that if we have lstat, we can also check symlinks.
27748 if test $ac_cv_func_lstat = yes; then
27749 ln -s conftest.f conftest.lnk
27751 if test "$cross_compiling" = yes; then :
27753 # Guess yes on Linux systems.
27754 linux-
* | linux
) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
27755 # Guess yes on glibc systems.
27756 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
27757 # Guess yes on native Windows.
27758 mingw
*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
27759 # If we don't know, obey --enable-cross-guesses.
27760 *) gl_cv_func_rename_slash_src_works
="$gl_cross_guess_normal" ;;
27764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27765 /* end confdefs.h. */
27767 # include <stdio.h>
27768 # include <stdlib.h>
27774 if (rename ("conftest.f1/", "conftest.d3") == 0)
27776 if (rename ("conftest.d1/", "conftest.d2") != 0)
27779 if (rename ("conftest.lnk/", "conftest.f") == 0)
27788 if ac_fn_c_try_run
"$LINENO"; then :
27789 gl_cv_func_rename_slash_src_works
=yes
27791 gl_cv_func_rename_slash_src_works
=no
27793 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27794 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27797 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
27801 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
27802 case "$gl_cv_func_rename_slash_src_works" in
27807 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
27814 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
27815 if ${gl_cv_func_rename_link_works+:} false
; then :
27816 $as_echo_n "(cached) " >&6
27818 if test $ac_cv_func_link = yes; then
27819 if test $cross_compiling != yes; then
27820 rm -rf conftest.f conftest.f1 conftest.f2
27821 if touch conftest.f conftest.f2
&& ln conftest.f conftest.f1
&&
27822 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
27823 if test "$cross_compiling" = yes; then :
27827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27828 /* end confdefs.h. */
27830 # include <errno.h>
27831 # include <stdio.h>
27832 # include <stdlib.h>
27833 # include <unistd.h>
27842 if (rename ("conftest.f", "conftest.f1"))
27844 if (unlink ("conftest.f1"))
27847 /* Allow either the POSIX-required behavior, where the
27848 previous rename kept conftest.f, or the (better) NetBSD
27849 behavior, where it removed conftest.f. */
27850 if (rename ("conftest.f", "conftest.f") != 0
27851 && errno != ENOENT)
27854 if (rename ("conftest.f1", "conftest.f1") == 0)
27856 if (rename ("conftest.f2", "conftest.f2") != 0)
27864 if ac_fn_c_try_run
"$LINENO"; then :
27865 gl_cv_func_rename_link_works
=yes
27867 gl_cv_func_rename_link_works
=no
27869 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27870 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27874 gl_cv_func_rename_link_works
="guessing no"
27876 rm -rf conftest.f conftest.f1 conftest.f2
27879 # Guess yes on Linux systems.
27880 linux-
* | linux
) gl_cv_func_rename_link_works
="guessing yes" ;;
27881 # Guess yes on glibc systems.
27882 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
27883 # Guess yes on native Windows.
27884 mingw
*) gl_cv_func_rename_link_works
="guessing yes" ;;
27885 # If we don't know, obey --enable-cross-guesses.
27886 *) gl_cv_func_rename_link_works
="$gl_cross_guess_normal" ;;
27890 gl_cv_func_rename_link_works
=yes
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
27895 $as_echo "$gl_cv_func_rename_link_works" >&6; }
27896 case "$gl_cv_func_rename_link_works" in
27901 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
27907 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
27908 if ${gl_cv_func_rename_dest_works+:} false
; then :
27909 $as_echo_n "(cached) " >&6
27911 rm -rf conftest.f conftest.d1 conftest.d2
27912 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
27913 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
27914 if test "$cross_compiling" = yes; then :
27916 # Guess yes on Linux systems.
27917 linux-
* | linux
) gl_cv_func_rename_dest_works
="guessing yes" ;;
27918 # Guess yes on glibc systems.
27919 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
27920 # Guess no on native Windows.
27921 mingw
*) gl_cv_func_rename_dest_works
="guessing no" ;;
27922 # If we don't know, obey --enable-cross-guesses.
27923 *) gl_cv_func_rename_dest_works
="$gl_cross_guess_normal" ;;
27927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27928 /* end confdefs.h. */
27930 # include <stdio.h>
27931 # include <stdlib.h>
27937 if (rename ("conftest.d1", "conftest.d2") != 0)
27939 if (rename ("conftest.d2", "conftest.f") == 0)
27947 if ac_fn_c_try_run
"$LINENO"; then :
27948 gl_cv_func_rename_dest_works
=yes
27950 gl_cv_func_rename_dest_works
=no
27952 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27953 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27956 rm -rf conftest.f conftest.d1 conftest.d2
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
27960 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
27961 case "$gl_cv_func_rename_dest_works" in
27966 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
27971 if test $REPLACE_RENAME = 1; then
27980 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
27994 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
28001 for ac_func
in rewinddir
28003 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
28004 if test "x$ac_cv_func_rewinddir" = xyes
; then :
28005 cat >>confdefs.h
<<_ACEOF
28006 #define HAVE_REWINDDIR 1
28012 if test $ac_cv_func_rewinddir = no
; then
28016 if test $HAVE_REWINDDIR = 0; then
28025 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
28039 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
28047 $as_echo_n "checking whether rmdir works... " >&6; }
28048 if ${gl_cv_func_rmdir_works+:} false
; then :
28049 $as_echo_n "(cached) " >&6
28052 touch conftest.
file
28053 if test "$cross_compiling" = yes; then :
28055 # Guess yes on Linux systems.
28056 linux-
* | linux
) gl_cv_func_rmdir_works
="guessing yes" ;;
28057 # Guess yes on glibc systems.
28058 *-gnu* | gnu
*) gl_cv_func_rmdir_works
="guessing yes" ;;
28059 # Guess no on native Windows.
28060 mingw
*) gl_cv_func_rmdir_works
="guessing no" ;;
28061 # If we don't know, obey --enable-cross-guesses.
28062 *) gl_cv_func_rmdir_works
="$gl_cross_guess_normal" ;;
28066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28067 /* end confdefs.h. */
28071 # include <unistd.h>
28072 #else /* on Windows with MSVC */
28073 # include <direct.h>
28083 if (!rmdir ("conftest.file/"))
28085 else if (errno != ENOTDIR)
28087 if (!rmdir ("conftest.dir/./"))
28095 if ac_fn_c_try_run
"$LINENO"; then :
28096 gl_cv_func_rmdir_works
=yes
28098 gl_cv_func_rmdir_works
=no
28100 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28101 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28104 rm -rf conftest.dir conftest.
file
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
28107 $as_echo "$gl_cv_func_rmdir_works" >&6; }
28108 case "$gl_cv_func_rmdir_works" in
28115 if test $REPLACE_RMDIR = 1; then
28124 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
28138 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
28149 if test "$ac_cv_header_winsock2_h" = yes; then
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
28154 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
28155 if ${gl_cv_func_select_supports0+:} false
; then :
28156 $as_echo_n "(cached) " >&6
28159 if test "$cross_compiling" = yes; then :
28162 # Guess no on Interix.
28163 interix
*) gl_cv_func_select_supports0
="guessing no";;
28164 # Guess yes otherwise.
28165 *) gl_cv_func_select_supports0
="guessing yes";;
28169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28170 /* end confdefs.h. */
28172 #include <sys/types.h>
28173 #include <sys/time.h>
28174 #if HAVE_SYS_SELECT_H
28175 #include <sys/select.h>
28179 struct timeval timeout;
28180 timeout.tv_sec = 0;
28181 timeout.tv_usec = 5;
28182 return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
28185 if ac_fn_c_try_run
"$LINENO"; then :
28186 gl_cv_func_select_supports0
=yes
28188 gl_cv_func_select_supports0
=no
28190 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28191 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
28197 $as_echo "$gl_cv_func_select_supports0" >&6; }
28198 case "$gl_cv_func_select_supports0" in
28200 *) REPLACE_SELECT
=1 ;;
28203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
28204 $as_echo_n "checking whether select detects invalid fds... " >&6; }
28205 if ${gl_cv_func_select_detects_ebadf+:} false
; then :
28206 $as_echo_n "(cached) " >&6
28209 if test "$cross_compiling" = yes; then :
28212 # Guess yes on Linux systems.
28213 linux-
* | linux
) gl_cv_func_select_detects_ebadf
="guessing yes" ;;
28214 # Guess yes on glibc systems.
28215 *-gnu* | gnu
*) gl_cv_func_select_detects_ebadf
="guessing yes" ;;
28216 # If we don't know, obey --enable-cross-guesses.
28217 *) gl_cv_func_select_detects_ebadf
="$gl_cross_guess_normal" ;;
28221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28222 /* end confdefs.h. */
28224 #include <sys/types.h>
28225 #include <sys/time.h>
28226 #if HAVE_SYS_SELECT_H
28227 # include <sys/select.h>
28229 #include <unistd.h>
28244 struct timeval timeout;
28245 timeout.tv_sec = 0;
28246 timeout.tv_usec = 5;
28247 return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
28253 if ac_fn_c_try_run
"$LINENO"; then :
28254 gl_cv_func_select_detects_ebadf
=yes
28256 gl_cv_func_select_detects_ebadf
=no
28258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
28265 $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
28266 case $gl_cv_func_select_detects_ebadf in
28268 *) REPLACE_SELECT
=1 ;;
28272 LIB_SELECT
="$LIBSOCKET"
28273 if test $REPLACE_SELECT = 1; then
28276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28277 /* end confdefs.h. */
28279 #define WIN32_LEAN_AND_MEAN
28280 #include <windows.h>
28284 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
28288 if ac_fn_c_try_link
"$LINENO"; then :
28291 LIB_SELECT
="$LIB_SELECT -luser32"
28293 rm -f core conftest.err conftest.
$ac_objext \
28294 conftest
$ac_exeext conftest.
$ac_ext
28300 if test $REPLACE_SELECT = 1; then
28309 gl_LIBOBJS
="$gl_LIBOBJS select.$ac_objext"
28323 $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
28329 if test $ac_cv_func_setenv = no
; then
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
28333 $as_echo_n "checking whether setenv validates arguments... " >&6; }
28334 if ${gl_cv_func_setenv_works+:} false
; then :
28335 $as_echo_n "(cached) " >&6
28337 if test "$cross_compiling" = yes; then :
28339 # Guess yes on glibc systems.
28340 *-gnu* | gnu
*) gl_cv_func_setenv_works
="guessing yes" ;;
28341 # Guess yes on musl systems.
28342 *-musl*) gl_cv_func_setenv_works
="guessing yes" ;;
28343 # If we don't know, obey --enable-cross-guesses.
28344 *) gl_cv_func_setenv_works
="$gl_cross_guess_normal" ;;
28348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28349 /* end confdefs.h. */
28351 #include <stdlib.h>
28353 #include <string.h>
28361 if (setenv ("", "", 0) != -1)
28363 else if (errno != EINVAL)
28367 if (setenv ("a", "=", 1) != 0)
28369 else if (strcmp (getenv ("a"), "=") != 0)
28378 if ac_fn_c_try_run
"$LINENO"; then :
28379 gl_cv_func_setenv_works
=yes
28381 gl_cv_func_setenv_works
=no
28383 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28384 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
28389 $as_echo "$gl_cv_func_setenv_works" >&6; }
28390 case "$gl_cv_func_setenv_works" in
28398 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
28407 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
28421 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
28431 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
28432 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
28433 $as_echo_n "(cached) " >&6
28436 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
28437 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
28438 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
28439 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
28440 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
28441 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
28442 # If we don't know, obey --enable-cross-guesses.
28444 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
28449 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
28453 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
28454 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
28458 case "$gl_cv_func_setlocale_null_all_mtsafe" in
28459 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
28460 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
28463 cat >>confdefs.h
<<_ACEOF
28464 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
28469 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
28470 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
28471 $as_echo_n "(cached) " >&6
28474 # Guess no on OpenBSD, AIX.
28476 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
28477 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
28478 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
28479 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
28480 # If we don't know, obey --enable-cross-guesses.
28482 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
28487 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
28491 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
28492 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
28496 case "$gl_cv_func_setlocale_null_one_mtsafe" in
28497 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
28498 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
28501 cat >>confdefs.h
<<_ACEOF
28502 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
28506 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
28508 mingw
*) LIB_SETLOCALE_NULL
= ;;
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
28513 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
28514 if ${gl_cv_have_weak+:} false
; then :
28515 $as_echo_n "(cached) " >&6
28518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28519 /* end confdefs.h. */
28520 extern void xyzzy ();
28530 if ac_fn_c_try_link
"$LINENO"; then :
28531 gl_cv_have_weak
=maybe
28533 rm -f core conftest.err conftest.
$ac_objext \
28534 conftest
$ac_exeext conftest.
$ac_ext
28535 if test $gl_cv_have_weak = maybe
; then
28536 if test "$cross_compiling" = yes; then :
28537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28538 /* end confdefs.h. */
28540 Extensible Linking Format
28544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28545 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
28546 gl_cv_have_weak
="guessing yes"
28548 gl_cv_have_weak
="guessing no"
28554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28555 /* end confdefs.h. */
28561 return (fputs == NULL);
28564 if ac_fn_c_try_run
"$LINENO"; then :
28565 gl_cv_have_weak
=yes
28569 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28570 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28574 case " $LDFLAGS " in
28575 *" -static "*) gl_cv_have_weak
=no
;;
28577 case "$gl_cv_have_weak" in
28580 freebsd
* | dragonfly
*)
28582 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
28583 cat <<EOF > conftest2.c
28584 #include <pthread.h>
28585 #pragma weak pthread_mutexattr_gettype
28588 return (pthread_mutexattr_gettype != NULL);
28591 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
28592 || gl_cv_have_weak
=no
28593 rm -f conftest1.c libempty.so conftest2.c conftest
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
28601 $as_echo "$gl_cv_have_weak" >&6; }
28602 case "$gl_cv_have_weak" in
28605 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
28610 case "$gl_cv_have_weak" in
28611 *yes) LIB_SETLOCALE_NULL
= ;;
28612 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
28617 LIB_SETLOCALE_NULL
=
28621 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
28630 gl_LIBOBJS
="$gl_LIBOBJS setlocale-lock.$ac_objext"
28637 if test -n "$GCC"; then
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
28639 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
28640 if ${gl_cv_cc_vis_werror+:} false
; then :
28641 $as_echo_n "(cached) " >&6
28643 gl_save_CFLAGS
="$CFLAGS"
28644 CFLAGS
="$CFLAGS -Werror"
28645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28646 /* end confdefs.h. */
28656 if ac_fn_c_try_compile
"$LINENO"; then :
28657 gl_cv_cc_vis_werror
=yes
28659 gl_cv_cc_vis_werror
=no
28661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28662 CFLAGS
="$gl_save_CFLAGS"
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
28666 $as_echo "$gl_cv_cc_vis_werror" >&6; }
28667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
28668 $as_echo_n "checking for simple visibility declarations... " >&6; }
28669 if ${gl_cv_cc_visibility+:} false
; then :
28670 $as_echo_n "(cached) " >&6
28672 gl_save_CFLAGS
="$CFLAGS"
28673 CFLAGS
="$CFLAGS -fvisibility=hidden"
28674 if test $gl_cv_cc_vis_werror = yes; then
28675 CFLAGS
="$CFLAGS -Werror"
28677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28678 /* end confdefs.h. */
28679 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
28680 extern __attribute__((__visibility__("default"))) int exportedvar;
28681 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
28682 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
28683 void dummyfunc (void) {}
28693 if ac_fn_c_try_compile
"$LINENO"; then :
28694 gl_cv_cc_visibility
=yes
28696 gl_cv_cc_visibility
=no
28698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28699 CFLAGS
="$gl_save_CFLAGS"
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
28703 $as_echo "$gl_cv_cc_visibility" >&6; }
28704 if test $gl_cv_cc_visibility = yes; then
28705 CFLAG_VISIBILITY
="-fvisibility=hidden"
28712 cat >>confdefs.h
<<_ACEOF
28713 #define HAVE_VISIBILITY $HAVE_VISIBILITY
28724 GNULIB_SETLOCALE_NULL
=1
28730 $as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
28735 if test "$ac_cv_header_winsock2_h" = yes; then
28744 gl_LIBOBJS
="$gl_LIBOBJS setsockopt.$ac_objext"
28752 GNULIB_SETSOCKOPT
=1
28758 $as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
28773 if test $gl_cv_have_include_next = yes; then
28774 gl_cv_next_signal_h
='<'signal.h
'>'
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
28777 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
28778 if ${gl_cv_next_signal_h+:} false
; then :
28779 $as_echo_n "(cached) " >&6
28784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28785 /* end confdefs.h. */
28786 #include <signal.h>
28789 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28790 *) gl_absname_cpp
="$ac_cpp" ;;
28795 gl_dirsep_regex
='[/\\]'
28798 gl_dirsep_regex
='\/'
28801 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28802 gl_header_literal_regex
=`echo 'signal.h' \
28803 | sed -e "$gl_make_literal_regex_sed"`
28804 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28805 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28811 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28812 sed -n "$gl_absolute_header_sed"`
28814 gl_header
=$gl_cv_absolute_signal_h
28815 gl_cv_next_signal_h
='"'$gl_header'"'
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
28820 $as_echo "$gl_cv_next_signal_h" >&6; }
28822 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
28824 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28825 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28826 gl_next_as_first_directive
='<'signal.h
'>'
28828 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28829 gl_next_as_first_directive
=$gl_cv_next_signal_h
28831 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
28837 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
28838 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
28839 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
28840 #include <signal.h>
28843 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
28846 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
28855 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
28856 #include <signal.h>
28859 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
28862 HAVE_SIGHANDLER_T
=0
28873 if test "$ac_cv_header_winsock2_h" = yes; then
28882 gl_LIBOBJS
="$gl_LIBOBJS socket.$ac_objext"
28885 # When this module is used, sockets may actually occur as file descriptors,
28886 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
28890 if test "$ac_cv_header_winsock2_h" = yes; then
28891 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=1
28892 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=1
28905 $as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
28911 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
28912 /* <sys/types.h> is not needed according to POSIX, but the
28913 <sys/socket.h> in i386-unknown-freebsd4.10 and
28914 powerpc-apple-darwin5.5 required it. */
28915 #include <sys/types.h>
28916 #if HAVE_SYS_SOCKET_H
28917 # include <sys/socket.h>
28918 #elif HAVE_WS2TCPIP_H
28919 # include <ws2tcpip.h>
28923 if test "x$ac_cv_type_socklen_t" = xyes
; then :
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
28927 $as_echo_n "checking for socklen_t equivalent... " >&6; }
28928 if ${gl_cv_socklen_t_equiv+:} false
; then :
28929 $as_echo_n "(cached) " >&6
28931 # Systems have either "struct sockaddr *" or
28932 # "void *" as the second argument to getpeername
28933 gl_cv_socklen_t_equiv
=
28934 for arg2
in "struct sockaddr" void
; do
28935 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
28936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28937 /* end confdefs.h. */
28938 #include <sys/types.h>
28939 #include <sys/socket.h>
28941 int getpeername (int, $arg2 *, $t *);
28946 getpeername (0, 0, &len);
28951 if ac_fn_c_try_compile
"$LINENO"; then :
28952 gl_cv_socklen_t_equiv
="$t"
28954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28955 test "$gl_cv_socklen_t_equiv" != "" && break
28957 test "$gl_cv_socklen_t_equiv" != "" && break
28959 if test "$gl_cv_socklen_t_equiv" = ""; then
28960 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
28965 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
28967 cat >>confdefs.h
<<_ACEOF
28968 #define socklen_t $gl_cv_socklen_t_equiv
28974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
28975 $as_echo_n "checking for ssize_t... " >&6; }
28976 if ${gt_cv_ssize_t+:} false
; then :
28977 $as_echo_n "(cached) " >&6
28979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28980 /* end confdefs.h. */
28981 #include <sys/types.h>
28985 int x = sizeof (ssize_t *) + sizeof (ssize_t);
28991 if ac_fn_c_try_compile
"$LINENO"; then :
28996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
28999 $as_echo "$gt_cv_ssize_t" >&6; }
29000 if test $gt_cv_ssize_t = no
; then
29002 $as_echo "#define ssize_t int" >>confdefs.h
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
29015 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
29016 if ${gl_cv_func_stat_file_slash+:} false
; then :
29017 $as_echo_n "(cached) " >&6
29020 # Assume that if we have lstat, we can also check symlinks.
29021 if test $ac_cv_func_lstat = yes; then
29022 ln -s conftest.tmp conftest.lnk
29024 if test "$cross_compiling" = yes; then :
29026 # Guess yes on Linux systems.
29027 linux-
* | linux
) gl_cv_func_stat_file_slash
="guessing yes" ;;
29028 # Guess yes on glibc systems.
29029 *-gnu* | gnu
*) gl_cv_func_stat_file_slash
="guessing yes" ;;
29030 # If we don't know, obey --enable-cross-guesses.
29031 *) gl_cv_func_stat_file_slash
="$gl_cross_guess_normal" ;;
29035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29036 /* end confdefs.h. */
29037 #include <sys/stat.h>
29044 if (!stat ("conftest.tmp/", &st))
29047 if (!stat ("conftest.lnk/", &st))
29056 if ac_fn_c_try_run
"$LINENO"; then :
29057 gl_cv_func_stat_file_slash
=yes
29059 gl_cv_func_stat_file_slash
=no
29061 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29062 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29065 rm -f conftest.tmp conftest.lnk
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
29068 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
29069 case $gl_cv_func_stat_file_slash in
29073 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
29083 if test $REPLACE_STAT = 1; then
29092 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
29104 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
29125 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
29133 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>
29134 #include <sys/stat.h>
29136 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
29138 cat >>confdefs.h
<<_ACEOF
29139 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
29142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
29143 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
29144 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
29145 $as_echo_n "(cached) " >&6
29147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29148 /* end confdefs.h. */
29150 #include <sys/types.h>
29151 #include <sys/stat.h>
29152 #if HAVE_SYS_TIME_H
29153 # include <sys/time.h>
29156 struct timespec ts;
29169 if ac_fn_c_try_compile
"$LINENO"; then :
29170 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
29172 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
29174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
29177 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
29178 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
29180 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
29184 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>
29185 #include <sys/stat.h>
29187 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
29189 cat >>confdefs.h
<<_ACEOF
29190 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
29195 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
29196 #include <sys/stat.h>
29198 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
29200 cat >>confdefs.h
<<_ACEOF
29201 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
29206 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>
29207 #include <sys/stat.h>
29209 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
29211 cat >>confdefs.h
<<_ACEOF
29212 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
29228 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>
29229 #include <sys/stat.h>
29231 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
; then :
29233 cat >>confdefs.h
<<_ACEOF
29234 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
29239 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
29240 #include <sys/stat.h>
29242 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
; then :
29244 cat >>confdefs.h
<<_ACEOF
29245 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
29250 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>
29251 #include <sys/stat.h>
29253 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
; then :
29255 cat >>confdefs.h
<<_ACEOF
29256 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
29269 $as_echo_n "checking for working stdalign.h... " >&6; }
29270 if ${gl_cv_header_working_stdalign_h+:} false
; then :
29271 $as_echo_n "(cached) " >&6
29273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29274 /* end confdefs.h. */
29275 #include <stdalign.h>
29276 #include <stddef.h>
29278 /* Test that alignof yields a result consistent with offsetof.
29279 This catches GCC bug 52023
29280 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
29282 template <class t> struct alignof_helper { char a; t b; };
29283 # define ao(type) offsetof (alignof_helper<type>, b)
29285 # define ao(type) offsetof (struct { char a; type b; }, b)
29287 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
29288 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
29289 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
29291 /* Test _Alignas only on platforms where gnulib can help. */
29293 ((defined __cplusplus && 201103 <= __cplusplus) \
29294 || (defined __APPLE__ && defined __MACH__ \
29295 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
29297 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
29298 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
29299 || 1300 <= _MSC_VER)
29300 struct alignas_test { char c; char alignas (8) alignas_8; };
29301 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
29313 if ac_fn_c_try_compile
"$LINENO"; then :
29314 gl_cv_header_working_stdalign_h
=yes
29316 gl_cv_header_working_stdalign_h
=no
29318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
29321 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
29323 if test $gl_cv_header_working_stdalign_h = yes; then
29326 STDALIGN_H
='stdalign.h'
29330 if test -n "$STDALIGN_H"; then
29331 GL_GENERATE_STDALIGN_H_TRUE
=
29332 GL_GENERATE_STDALIGN_H_FALSE
='#'
29334 GL_GENERATE_STDALIGN_H_TRUE
='#'
29335 GL_GENERATE_STDALIGN_H_FALSE
=
29343 if test "$ac_cv_header_stdbool_h" = yes; then
29346 if test -z "$GCC"; then
29347 STDBOOL_H
='stdbool.h'
29357 STDBOOL_H
='stdbool.h'
29360 if test -n "$STDBOOL_H"; then
29361 GL_GENERATE_STDBOOL_H_TRUE
=
29362 GL_GENERATE_STDBOOL_H_FALSE
='#'
29364 GL_GENERATE_STDBOOL_H_TRUE
='#'
29365 GL_GENERATE_STDBOOL_H_FALSE
=
29369 if test "$ac_cv_type__Bool" = yes; then
29384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
29385 $as_echo_n "checking for good max_align_t... " >&6; }
29386 if ${gl_cv_type_max_align_t+:} false
; then :
29387 $as_echo_n "(cached) " >&6
29389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29390 /* end confdefs.h. */
29391 #include <stddef.h>
29392 unsigned int s = sizeof (max_align_t);
29393 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
29394 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
29395 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
29397 typedef struct { char a; max_align_t b; } max_helper;
29398 typedef struct { char a; long b; } long_helper;
29399 typedef struct { char a; double b; } double_helper;
29400 typedef struct { char a; long double b; } long_double_helper;
29401 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
29402 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
29403 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
29413 if ac_fn_c_try_compile
"$LINENO"; then :
29414 gl_cv_type_max_align_t
=yes
29416 gl_cv_type_max_align_t
=no
29418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
29422 $as_echo "$gl_cv_type_max_align_t" >&6; }
29423 if test $gl_cv_type_max_align_t = no
; then
29428 if test $gt_cv_c_wchar_t = no
; then
29433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
29434 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
29435 if ${gl_cv_decl_null_works+:} false
; then :
29436 $as_echo_n "(cached) " >&6
29438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29439 /* end confdefs.h. */
29440 #include <stddef.h>
29441 int test[2 * (sizeof NULL == sizeof (void *)) -1];
29451 if ac_fn_c_try_compile
"$LINENO"; then :
29452 gl_cv_decl_null_works
=yes
29454 gl_cv_decl_null_works
=no
29456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
29459 $as_echo "$gl_cv_decl_null_works" >&6; }
29460 if test $gl_cv_decl_null_works = no
; then
29466 if test -n "$STDDEF_H"; then
29467 GL_GENERATE_STDDEF_H_TRUE
=
29468 GL_GENERATE_STDDEF_H_FALSE
='#'
29470 GL_GENERATE_STDDEF_H_TRUE
='#'
29471 GL_GENERATE_STDDEF_H_FALSE
=
29474 if test -n "$STDDEF_H"; then
29483 if test $gl_cv_have_include_next = yes; then
29484 gl_cv_next_stddef_h
='<'stddef.h
'>'
29486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
29487 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
29488 if ${gl_cv_next_stddef_h+:} false
; then :
29489 $as_echo_n "(cached) " >&6
29494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29495 /* end confdefs.h. */
29496 #include <stddef.h>
29499 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29500 *) gl_absname_cpp
="$ac_cpp" ;;
29505 gl_dirsep_regex
='[/\\]'
29508 gl_dirsep_regex
='\/'
29511 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29512 gl_header_literal_regex
=`echo 'stddef.h' \
29513 | sed -e "$gl_make_literal_regex_sed"`
29514 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29515 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29521 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29522 sed -n "$gl_absolute_header_sed"`
29524 gl_header
=$gl_cv_absolute_stddef_h
29525 gl_cv_next_stddef_h
='"'$gl_header'"'
29529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
29530 $as_echo "$gl_cv_next_stddef_h" >&6; }
29532 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
29534 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29535 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29536 gl_next_as_first_directive
='<'stddef.h
'>'
29538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29539 gl_next_as_first_directive
=$gl_cv_next_stddef_h
29541 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
29551 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
29562 if test $gl_cv_have_include_next = yes; then
29563 gl_cv_next_stdio_h
='<'stdio.h
'>'
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
29566 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
29567 if ${gl_cv_next_stdio_h+:} false
; then :
29568 $as_echo_n "(cached) " >&6
29573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29574 /* end confdefs.h. */
29578 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29579 *) gl_absname_cpp
="$ac_cpp" ;;
29584 gl_dirsep_regex
='[/\\]'
29587 gl_dirsep_regex
='\/'
29590 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29591 gl_header_literal_regex
=`echo 'stdio.h' \
29592 | sed -e "$gl_make_literal_regex_sed"`
29593 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29594 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29600 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29601 sed -n "$gl_absolute_header_sed"`
29603 gl_header
=$gl_cv_absolute_stdio_h
29604 gl_cv_next_stdio_h
='"'$gl_header'"'
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
29609 $as_echo "$gl_cv_next_stdio_h" >&6; }
29611 NEXT_STDIO_H
=$gl_cv_next_stdio_h
29613 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29614 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29615 gl_next_as_first_directive
='<'stdio.h
'>'
29617 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29618 gl_next_as_first_directive
=$gl_cv_next_stdio_h
29620 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
29626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
29627 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
29628 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
29629 $as_echo_n "(cached) " >&6
29631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29632 /* end confdefs.h. */
29634 #define __STDC_FORMAT_MACROS 1
29636 #include <inttypes.h>
29637 /* For non-mingw systems, compilation will trivially succeed.
29638 For mingw, compilation will succeed for older mingw (system
29639 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
29640 #if (defined _WIN32 && ! defined __CYGWIN__) && \
29641 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
29642 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
29653 if ac_fn_c_try_compile
"$LINENO"; then :
29654 gl_cv_func_printf_attribute_flavor
=system
29656 gl_cv_func_printf_attribute_flavor
=gnu
29658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
29661 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
29662 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
29664 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
29671 cat >>confdefs.h
<<_ACEOF
29672 #define GNULIB_FSCANF 1
29679 cat >>confdefs.h
<<_ACEOF
29680 #define GNULIB_SCANF 1
29711 if test $ac_cv_have_decl_fcloseall = no
; then
29712 HAVE_DECL_FCLOSEALL
=0
29725 if test $gl_cv_have_include_next = yes; then
29726 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
29729 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
29730 if ${gl_cv_next_stdlib_h+:} false
; then :
29731 $as_echo_n "(cached) " >&6
29736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29737 /* end confdefs.h. */
29738 #include <stdlib.h>
29741 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
29742 *) gl_absname_cpp
="$ac_cpp" ;;
29747 gl_dirsep_regex
='[/\\]'
29750 gl_dirsep_regex
='\/'
29753 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
29754 gl_header_literal_regex
=`echo 'stdlib.h' \
29755 | sed -e "$gl_make_literal_regex_sed"`
29756 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29757 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29763 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29764 sed -n "$gl_absolute_header_sed"`
29766 gl_header
=$gl_cv_absolute_stdlib_h
29767 gl_cv_next_stdlib_h
='"'$gl_header'"'
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
29772 $as_echo "$gl_cv_next_stdlib_h" >&6; }
29774 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
29776 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
29777 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29778 gl_next_as_first_directive
='<'stdlib.h
'>'
29780 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29781 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
29783 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
29796 if test $ac_cv_have_decl_ecvt = no
; then
29800 if test $ac_cv_have_decl_fcvt = no
; then
29804 if test $ac_cv_have_decl_gcvt = no
; then
29812 for ac_func
in strchrnul
29814 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
29815 if test "x$ac_cv_func_strchrnul" = xyes
; then :
29816 cat >>confdefs.h
<<_ACEOF
29817 #define HAVE_STRCHRNUL 1
29823 if test $ac_cv_func_strchrnul = no
; then
29826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
29827 $as_echo_n "checking whether strchrnul works... " >&6; }
29828 if ${gl_cv_func_strchrnul_works+:} false
; then :
29829 $as_echo_n "(cached) " >&6
29831 if test "$cross_compiling" = yes; then :
29832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29833 /* end confdefs.h. */
29835 #if defined __CYGWIN__
29836 #include <cygwin/version.h>
29837 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
29845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29846 $EGREP "Lucky user" >/dev
/null
2>&1; then :
29847 gl_cv_func_strchrnul_works
="guessing yes"
29849 gl_cv_func_strchrnul_works
="guessing no"
29855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29856 /* end confdefs.h. */
29858 #include <string.h> /* for strchrnul */
29863 const char *buf = "a";
29864 return strchrnul (buf, 'b') != buf + 1;
29870 if ac_fn_c_try_run
"$LINENO"; then :
29871 gl_cv_func_strchrnul_works
=yes
29873 gl_cv_func_strchrnul_works
=no
29875 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29876 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
29882 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
29883 case "$gl_cv_func_strchrnul_works" in
29885 *) REPLACE_STRCHRNUL
=1 ;;
29889 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
29898 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
29913 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
29920 if test $gl_cv_func_malloc_posix != yes; then
29924 if test $ac_cv_have_decl_strdup = no
; then
29928 if test $REPLACE_STRDUP = 1; then
29937 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
29952 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
29963 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
29965 $as_echo_n "checking for working strerror function... " >&6; }
29966 if ${gl_cv_func_working_strerror+:} false
; then :
29967 $as_echo_n "(cached) " >&6
29969 if test "$cross_compiling" = yes; then :
29971 # Guess yes on glibc systems.
29972 *-gnu* | gnu
*) gl_cv_func_working_strerror
="guessing yes" ;;
29973 # Guess yes on musl systems.
29974 *-musl*) gl_cv_func_working_strerror
="guessing yes" ;;
29975 # If we don't know, obey --enable-cross-guesses.
29976 *) gl_cv_func_working_strerror
="$gl_cross_guess_normal" ;;
29980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29981 /* end confdefs.h. */
29982 #include <string.h>
29987 if (!*strerror (-2)) return 1;
29992 if ac_fn_c_try_run
"$LINENO"; then :
29993 gl_cv_func_working_strerror
=yes
29995 gl_cv_func_working_strerror
=no
29997 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29998 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
30004 $as_echo "$gl_cv_func_working_strerror" >&6; }
30005 case "$gl_cv_func_working_strerror" in
30012 case "$gl_cv_func_strerror_r_works" in
30013 *no
) REPLACE_STRERROR
=1 ;;
30020 if test $REPLACE_STRERROR = 1; then
30029 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
30034 cat >>confdefs.h
<<_ACEOF
30035 #define GNULIB_STRERROR 1
30050 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
30056 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
30065 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
30071 if test $ac_cv_header_sys_socket_h != yes; then
30072 for ac_header
in winsock2.h
30074 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30075 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
30076 cat >>confdefs.h
<<_ACEOF
30077 #define HAVE_WINSOCK2_H 1
30085 if test "$ac_cv_header_winsock2_h" = yes; then
30087 UNISTD_H_HAVE_WINSOCK2_H
=1
30088 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
30102 if test $ac_cv_have_decl_strerror_r = no
; then
30103 HAVE_DECL_STRERROR_R
=0
30106 if test $ac_cv_func_strerror_r = yes; then
30107 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
30108 if test $gl_cv_func_strerror_r_posix_signature = yes; then
30109 case "$gl_cv_func_strerror_r_works" in
30110 *no
) REPLACE_STRERROR_R
=1 ;;
30113 REPLACE_STRERROR_R
=1
30116 REPLACE_STRERROR_R
=1
30120 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
30129 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
30142 GNULIB_STRERROR_R
=1
30148 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
30154 cat >>confdefs.h
<<_ACEOF
30155 #define GNULIB_STRERROR_R_POSIX 1
30171 if test $ac_cv_have_decl_strnlen = no
; then
30172 HAVE_DECL_STRNLEN
=0
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
30176 $as_echo_n "checking for working strnlen... " >&6; }
30177 if ${ac_cv_func_strnlen_working+:} false
; then :
30178 $as_echo_n "(cached) " >&6
30180 if test "$cross_compiling" = yes; then :
30181 # Guess no on AIX systems, yes otherwise.
30183 aix
*) ac_cv_func_strnlen_working
=no
;;
30184 *) ac_cv_func_strnlen_working
=yes;;
30187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30188 /* end confdefs.h. */
30189 $ac_includes_default
30195 #define S_LEN (sizeof S - 1)
30197 /* At least one implementation is buggy: that of AIX 4.3 would
30198 give strnlen (S, 1) == 3. */
30201 for (i = 0; i < S_LEN + 1; ++i)
30203 int expected = i <= S_LEN ? i : S_LEN;
30204 if (strnlen (S, i) != expected)
30213 if ac_fn_c_try_run
"$LINENO"; then :
30214 ac_cv_func_strnlen_working
=yes
30216 ac_cv_func_strnlen_working
=no
30218 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30219 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
30224 $as_echo "$ac_cv_func_strnlen_working" >&6; }
30225 test $ac_cv_func_strnlen_working = no
&& :
30228 if test $ac_cv_func_strnlen_working = no
; then
30233 if test $HAVE_DECL_STRNLEN = 0 ||
test $REPLACE_STRNLEN = 1; then
30242 gl_LIBOBJS
="$gl_LIBOBJS strnlen.$ac_objext"
30257 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
30263 if test $REPLACE_STRSTR = 0; then
30264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
30265 $as_echo_n "checking whether strstr works in linear time... " >&6; }
30266 if ${gl_cv_func_strstr_linear+:} false
; then :
30267 $as_echo_n "(cached) " >&6
30269 if test "$cross_compiling" = yes; then :
30270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30271 /* end confdefs.h. */
30273 #include <features.h>
30274 #ifdef __GNU_LIBRARY__
30275 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
30276 && !(defined __i386__ || defined __x86_64__) \
30277 && !defined __UCLIBC__
30282 #include <cygwin/version.h>
30283 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
30289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30290 $EGREP "Lucky user" >/dev
/null
2>&1; then :
30291 gl_cv_func_strstr_linear
="guessing yes"
30293 gl_cv_func_strstr_linear
="$gl_cross_guess_normal"
30299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30300 /* end confdefs.h. */
30303 /* z/OS does not deliver signals while strstr() is running (thanks to
30304 restrictions on its LE runtime), which prevents us from limiting the
30305 running time of this test. */
30306 # error "This test does not work properly on z/OS"
30308 #include <signal.h> /* for signal */
30309 #include <string.h> /* for strstr */
30310 #include <stdlib.h> /* for malloc */
30311 #include <unistd.h> /* for alarm */
30312 static void quit (int sig) { _exit (sig + 128); }
30319 size_t m = 1000000;
30320 char *haystack = (char *) malloc (2 * m + 2);
30321 char *needle = (char *) malloc (m + 2);
30322 /* Failure to compile this test due to missing alarm is okay,
30323 since all such platforms (mingw) also have quadratic strstr. */
30324 signal (SIGALRM, quit);
30326 /* Check for quadratic performance. */
30327 if (haystack && needle)
30329 memset (haystack, 'A', 2 * m);
30330 haystack[2 * m] = 'B';
30331 haystack[2 * m + 1] = 0;
30332 memset (needle, 'A', m);
30335 if (!strstr (haystack, needle))
30338 /* Free allocated memory, in case some sanitizer is watching. */
30347 if ac_fn_c_try_run
"$LINENO"; then :
30348 gl_cv_func_strstr_linear
=yes
30350 gl_cv_func_strstr_linear
=no
30352 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30353 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
30359 $as_echo "$gl_cv_func_strstr_linear" >&6; }
30360 case "$gl_cv_func_strstr_linear" in
30368 if test $REPLACE_STRSTR = 1; then
30377 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
30383 if test $REPLACE_MEMCHR = 1; then
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
30387 $as_echo_n "checking whether strstr works... " >&6; }
30388 if ${gl_cv_func_strstr_works_always+:} false
; then :
30389 $as_echo_n "(cached) " >&6
30391 if test "$cross_compiling" = yes; then :
30392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30393 /* end confdefs.h. */
30395 #ifdef __GNU_LIBRARY__
30396 #include <features.h>
30397 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
30398 || defined __UCLIBC__
30401 #elif defined __CYGWIN__
30402 #include <cygwin/version.h>
30403 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
30411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30412 $EGREP "Lucky user" >/dev
/null
2>&1; then :
30413 gl_cv_func_strstr_works_always
="guessing yes"
30415 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
30421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30422 /* end confdefs.h. */
30424 #include <string.h> /* for strstr */
30425 #ifdef __GNU_LIBRARY__
30426 #include <features.h>
30427 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
30431 #define P "_EF_BF_BD"
30432 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
30433 #define NEEDLE P P P P P
30438 return !!strstr (HAYSTACK, NEEDLE);
30444 if ac_fn_c_try_run
"$LINENO"; then :
30445 gl_cv_func_strstr_works_always
=yes
30447 gl_cv_func_strstr_works_always
=no
30449 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30450 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
30456 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
30457 case "$gl_cv_func_strstr_works_always" in
30465 if test $REPLACE_STRSTR = 1; then
30474 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
30488 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
30496 for ac_func
in strtok_r
30498 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
30499 if test "x$ac_cv_func_strtok_r" = xyes
; then :
30500 cat >>confdefs.h
<<_ACEOF
30501 #define HAVE_STRTOK_R 1
30507 if test $ac_cv_func_strtok_r = yes; then
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
30510 $as_echo_n "checking whether strtok_r works... " >&6; }
30511 if ${gl_cv_func_strtok_r_works+:} false
; then :
30512 $as_echo_n "(cached) " >&6
30514 if test "$cross_compiling" = yes; then :
30516 # Guess no on glibc systems.
30517 *-gnu* | gnu
*) gl_cv_func_strtok_r_works
="guessing no" ;;
30518 # Guess yes on native Windows.
30519 mingw
*) gl_cv_func_strtok_r_works
="guessing yes" ;;
30520 *) gl_cv_func_strtok_r_works
="guessing yes" ;;
30524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30525 /* end confdefs.h. */
30527 #ifndef __OPTIMIZE__
30528 # define __OPTIMIZE__ 1
30530 #undef __OPTIMIZE_SIZE__
30531 #undef __NO_INLINE__
30532 #include <stdlib.h>
30533 #include <string.h>
30538 static const char dummy[] = "\177\01a";
30539 char delimiters[] = "xxxxxxxx";
30540 char *save_ptr = (char *) dummy;
30541 strtok_r (delimiters, "x", &save_ptr);
30542 strtok_r (NULL, "x", &save_ptr);
30550 if ac_fn_c_try_run
"$LINENO"; then :
30551 gl_cv_func_strtok_r_works
=yes
30553 gl_cv_func_strtok_r_works
=no
30555 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30556 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
30562 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
30563 case "$gl_cv_func_strtok_r_works" in
30565 UNDEFINE_STRTOK_R
=1
30572 if test $ac_cv_have_decl_strtok_r = no
; then
30573 HAVE_DECL_STRTOK_R
=0
30576 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
30585 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
30602 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
30617 if test $gl_cv_have_include_next = yes; then
30618 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/random.h>" >&5
30621 $as_echo_n "checking absolute name of <sys/random.h>... " >&6; }
30622 if ${gl_cv_next_sys_random_h+:} false
; then :
30623 $as_echo_n "(cached) " >&6
30626 if test $ac_cv_header_sys_random_h = yes; then
30631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30632 /* end confdefs.h. */
30633 #include <sys/random.h>
30636 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
30637 *) gl_absname_cpp
="$ac_cpp" ;;
30642 gl_dirsep_regex
='[/\\]'
30645 gl_dirsep_regex
='\/'
30648 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
30649 gl_header_literal_regex
=`echo 'sys/random.h' \
30650 | sed -e "$gl_make_literal_regex_sed"`
30651 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30652 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30658 gl_cv_absolute_sys_random_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30659 sed -n "$gl_absolute_header_sed"`
30661 gl_header
=$gl_cv_absolute_sys_random_h
30662 gl_cv_next_sys_random_h
='"'$gl_header'"'
30664 gl_cv_next_sys_random_h
='<'sys
/random.h
'>'
30669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_random_h" >&5
30670 $as_echo "$gl_cv_next_sys_random_h" >&6; }
30672 NEXT_SYS_RANDOM_H
=$gl_cv_next_sys_random_h
30674 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
30675 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30676 gl_next_as_first_directive
='<'sys
/random.h
'>'
30678 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30679 gl_next_as_first_directive
=$gl_cv_next_sys_random_h
30681 NEXT_AS_FIRST_DIRECTIVE_SYS_RANDOM_H
=$gl_next_as_first_directive
30686 if test $ac_cv_header_sys_random_h = yes; then
30687 HAVE_SYS_RANDOM_H
=1
30689 HAVE_SYS_RANDOM_H
=0
30694 if test $ac_cv_header_sys_random_h = yes; then
30695 UNISTD_H_HAVE_SYS_RANDOM_H
=1
30721 if test $gl_cv_have_include_next = yes; then
30722 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
30725 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
30726 if ${gl_cv_next_sys_stat_h+:} false
; then :
30727 $as_echo_n "(cached) " >&6
30730 if test $ac_cv_header_sys_stat_h = yes; then
30735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30736 /* end confdefs.h. */
30737 #include <sys/stat.h>
30740 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
30741 *) gl_absname_cpp
="$ac_cpp" ;;
30746 gl_dirsep_regex
='[/\\]'
30749 gl_dirsep_regex
='\/'
30752 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
30753 gl_header_literal_regex
=`echo 'sys/stat.h' \
30754 | sed -e "$gl_make_literal_regex_sed"`
30755 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30756 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30762 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30763 sed -n "$gl_absolute_header_sed"`
30765 gl_header
=$gl_cv_absolute_sys_stat_h
30766 gl_cv_next_sys_stat_h
='"'$gl_header'"'
30768 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
30773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
30774 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
30776 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
30778 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
30779 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30780 gl_next_as_first_directive
='<'sys
/stat.h
'>'
30782 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30783 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
30785 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
30794 WINDOWS_STAT_TIMESPEC
=0
30803 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
30804 #include <sys/stat.h>
30806 if test "x$ac_cv_type_nlink_t" = xyes
; then :
30810 $as_echo "#define nlink_t int" >>confdefs.h
30839 if test $gl_cv_have_include_next = yes; then
30840 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
30843 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
30844 if ${gl_cv_next_sys_uio_h+:} false
; then :
30845 $as_echo_n "(cached) " >&6
30848 if test $ac_cv_header_sys_uio_h = yes; then
30853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30854 /* end confdefs.h. */
30855 #include <sys/uio.h>
30858 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
30859 *) gl_absname_cpp
="$ac_cpp" ;;
30864 gl_dirsep_regex
='[/\\]'
30867 gl_dirsep_regex
='\/'
30870 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
30871 gl_header_literal_regex
=`echo 'sys/uio.h' \
30872 | sed -e "$gl_make_literal_regex_sed"`
30873 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30874 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30880 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30881 sed -n "$gl_absolute_header_sed"`
30883 gl_header
=$gl_cv_absolute_sys_uio_h
30884 gl_cv_next_sys_uio_h
='"'$gl_header'"'
30886 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
30891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
30892 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
30894 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
30896 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
30897 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30898 gl_next_as_first_directive
='<'sys
/uio.h
'>'
30900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30901 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
30903 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
30908 if test $ac_cv_header_sys_uio_h = yes; then
30928 if test $gl_cv_have_include_next = yes; then
30929 gl_cv_next_sys_wait_h
='<'sys
/wait.h
'>'
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
30932 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
30933 if ${gl_cv_next_sys_wait_h+:} false
; then :
30934 $as_echo_n "(cached) " >&6
30937 if test $ac_cv_header_sys_wait_h = yes; then
30942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30943 /* end confdefs.h. */
30944 #include <sys/wait.h>
30947 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
30948 *) gl_absname_cpp
="$ac_cpp" ;;
30953 gl_dirsep_regex
='[/\\]'
30956 gl_dirsep_regex
='\/'
30959 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
30960 gl_header_literal_regex
=`echo 'sys/wait.h' \
30961 | sed -e "$gl_make_literal_regex_sed"`
30962 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30963 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30969 gl_cv_absolute_sys_wait_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30970 sed -n "$gl_absolute_header_sed"`
30972 gl_header
=$gl_cv_absolute_sys_wait_h
30973 gl_cv_next_sys_wait_h
='"'$gl_header'"'
30975 gl_cv_next_sys_wait_h
='<'sys
/wait.h
'>'
30980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
30981 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
30983 NEXT_SYS_WAIT_H
=$gl_cv_next_sys_wait_h
30985 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
30986 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30987 gl_next_as_first_directive
='<'sys
/wait.h
'>'
30989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30990 gl_next_as_first_directive
=$gl_cv_next_sys_wait_h
30992 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
=$gl_next_as_first_directive
31012 cat >>confdefs.h
<<_ACEOF
31013 #define GNULIB_TEMPNAME 1
31027 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,
31028 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
31029 been included before. */
31030 #if defined __MINGW32__
31031 # include <unistd.h>
31036 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
31042 cat >>confdefs.h
<<_ACEOF
31043 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
31046 if test $ac_cv_have_decl_localtime_r = no
; then
31047 HAVE_DECL_LOCALTIME_R
=0
31051 if test $ac_cv_func_localtime_r = yes; then
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
31054 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
31055 if ${gl_cv_time_r_posix+:} false
; then :
31056 $as_echo_n "(cached) " >&6
31058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31059 /* end confdefs.h. */
31060 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
31061 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
31062 been included before. */
31063 #if defined __MINGW32__
31064 # include <unistd.h>
31071 /* We don't need to append 'restrict's to the argument types,
31072 even though the POSIX signature has the 'restrict's,
31073 since C99 says they can't affect type compatibility. */
31074 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
31076 /* Check the return type is a pointer.
31077 On HP-UX 10 it is 'int'. */
31078 *localtime_r (0, 0);
31084 if ac_fn_c_try_compile
"$LINENO"; then :
31085 gl_cv_time_r_posix
=yes
31087 gl_cv_time_r_posix
=no
31089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
31093 $as_echo "$gl_cv_time_r_posix" >&6; }
31094 if test $gl_cv_time_r_posix = yes; then
31095 REPLACE_LOCALTIME_R
=0
31097 REPLACE_LOCALTIME_R
=1
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
31102 $as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
31103 if ${gl_cv_func_localtime_r_inline+:} false
; then :
31104 $as_echo_n "(cached) " >&6
31106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31107 /* end confdefs.h. */
31108 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
31109 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
31110 been included before. */
31111 #if defined __MINGW32__
31112 # include <unistd.h>
31121 localtime_r (&a, &r);
31128 if ac_fn_c_try_link
"$LINENO"; then :
31129 gl_cv_func_localtime_r_inline
=yes
31131 gl_cv_func_localtime_r_inline
=no
31133 rm -f core conftest.err conftest.
$ac_objext \
31134 conftest
$ac_exeext conftest.
$ac_ext
31137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
31138 $as_echo "$gl_cv_func_localtime_r_inline" >&6; }
31139 if test $gl_cv_func_localtime_r_inline = yes; then
31140 REPLACE_LOCALTIME_R
=1
31144 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
31153 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
31170 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
31186 if test $gl_cv_have_include_next = yes; then
31187 gl_cv_next_unistd_h
='<'unistd.h
'>'
31189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
31190 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
31191 if ${gl_cv_next_unistd_h+:} false
; then :
31192 $as_echo_n "(cached) " >&6
31195 if test $ac_cv_header_unistd_h = yes; then
31200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31201 /* end confdefs.h. */
31202 #include <unistd.h>
31205 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
31206 *) gl_absname_cpp
="$ac_cpp" ;;
31211 gl_dirsep_regex
='[/\\]'
31214 gl_dirsep_regex
='\/'
31217 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
31218 gl_header_literal_regex
=`echo 'unistd.h' \
31219 | sed -e "$gl_make_literal_regex_sed"`
31220 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31221 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31227 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31228 sed -n "$gl_absolute_header_sed"`
31230 gl_header
=$gl_cv_absolute_unistd_h
31231 gl_cv_next_unistd_h
='"'$gl_header'"'
31233 gl_cv_next_unistd_h
='<'unistd.h
'>'
31238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
31239 $as_echo "$gl_cv_next_unistd_h" >&6; }
31241 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
31243 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
31244 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31245 gl_next_as_first_directive
='<'unistd.h
'>'
31247 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31248 gl_next_as_first_directive
=$gl_cv_next_unistd_h
31250 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
31255 if test $ac_cv_header_unistd_h = yes; then
31273 if test $ac_cv_have_decl_execvpe = no
; then
31274 HAVE_DECL_EXECVPE
=0
31283 if test $ac_cv_have_decl_unsetenv = no
; then
31284 HAVE_DECL_UNSETENV
=0
31286 for ac_func
in unsetenv
31288 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
31289 if test "x$ac_cv_func_unsetenv" = xyes
; then :
31290 cat >>confdefs.h
<<_ACEOF
31291 #define HAVE_UNSETENV 1
31297 if test $ac_cv_func_unsetenv = no
; then
31301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
31302 $as_echo_n "checking for unsetenv() return type... " >&6; }
31303 if ${gt_cv_func_unsetenv_ret+:} false
; then :
31304 $as_echo_n "(cached) " >&6
31306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31307 /* end confdefs.h. */
31310 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
31311 #include <stdlib.h>
31316 int unsetenv (const char *name);
31326 if ac_fn_c_try_compile
"$LINENO"; then :
31327 gt_cv_func_unsetenv_ret
='int'
31329 gt_cv_func_unsetenv_ret
='void'
31331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
31334 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
31335 if test $gt_cv_func_unsetenv_ret = 'void'; then
31337 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
31342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
31343 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
31344 if ${gl_cv_func_unsetenv_works+:} false
; then :
31345 $as_echo_n "(cached) " >&6
31347 if test "$cross_compiling" = yes; then :
31349 # Guess yes on glibc systems.
31350 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
31351 # If we don't know, obey --enable-cross-guesses.
31352 *) gl_cv_func_unsetenv_works
="$gl_cross_guess_normal" ;;
31356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31357 /* end confdefs.h. */
31359 #include <stdlib.h>
31361 extern char **environ;
31370 char entry1[] = "a=1";
31371 char entry2[] = "b=2";
31372 char *env[] = { entry1, entry2, NULL };
31373 if (putenv ((char *) "a=1")) return 1;
31374 if (putenv (entry2)) return 2;
31377 if (getenv ("a")) return 3;
31378 if (!unsetenv ("") || errno != EINVAL) return 4;
31381 if (!getenv ("a")) return 5;
31384 if (getenv ("a")) return 6;
31390 if ac_fn_c_try_run
"$LINENO"; then :
31391 gl_cv_func_unsetenv_works
=yes
31393 gl_cv_func_unsetenv_works
=no
31395 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
31396 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
31402 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
31403 case "$gl_cv_func_unsetenv_works" in
31411 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
31420 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
31438 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
31454 if test $gl_cv_have_include_next = yes; then
31455 gl_cv_next_wchar_h
='<'wchar.h
'>'
31457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
31458 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
31459 if ${gl_cv_next_wchar_h+:} false
; then :
31460 $as_echo_n "(cached) " >&6
31463 if test $ac_cv_header_wchar_h = yes; then
31468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31469 /* end confdefs.h. */
31473 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
31474 *) gl_absname_cpp
="$ac_cpp" ;;
31479 gl_dirsep_regex
='[/\\]'
31482 gl_dirsep_regex
='\/'
31485 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
31486 gl_header_literal_regex
=`echo 'wchar.h' \
31487 | sed -e "$gl_make_literal_regex_sed"`
31488 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31489 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31495 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31496 sed -n "$gl_absolute_header_sed"`
31498 gl_header
=$gl_cv_absolute_wchar_h
31499 gl_cv_next_wchar_h
='"'$gl_header'"'
31501 gl_cv_next_wchar_h
='<'wchar.h
'>'
31506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
31507 $as_echo "$gl_cv_next_wchar_h" >&6; }
31509 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
31511 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
31512 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31513 gl_next_as_first_directive
='<'wchar.h
'>'
31515 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31516 gl_next_as_first_directive
=$gl_cv_next_wchar_h
31518 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
31523 if test $ac_cv_header_wchar_h = yes; then
31533 if test $gt_cv_c_wint_t = yes; then
31548 ac_fn_c_check_decl
"$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
31552 if test "x$ac_cv_have_decl_wcsdup" = xyes
; then :
31558 cat >>confdefs.h
<<_ACEOF
31559 #define HAVE_DECL_WCSDUP $ac_have_decl
31562 if test $ac_cv_have_decl_wcsdup = no
; then
31571 if test $ac_cv_func_iswcntrl = yes; then
31579 if test $gt_cv_c_wint_t = yes; then
31597 if test $gl_cv_have_include_next = yes; then
31598 gl_cv_next_wctype_h
='<'wctype.h
'>'
31600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
31601 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
31602 if ${gl_cv_next_wctype_h+:} false
; then :
31603 $as_echo_n "(cached) " >&6
31606 if test $ac_cv_header_wctype_h = yes; then
31611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31612 /* end confdefs.h. */
31613 #include <wctype.h>
31616 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
31617 *) gl_absname_cpp
="$ac_cpp" ;;
31622 gl_dirsep_regex
='[/\\]'
31625 gl_dirsep_regex
='\/'
31628 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
31629 gl_header_literal_regex
=`echo 'wctype.h' \
31630 | sed -e "$gl_make_literal_regex_sed"`
31631 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31632 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31638 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31639 sed -n "$gl_absolute_header_sed"`
31641 gl_header
=$gl_cv_absolute_wctype_h
31642 gl_cv_next_wctype_h
='"'$gl_header'"'
31644 gl_cv_next_wctype_h
='<'wctype.h
'>'
31649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
31650 $as_echo "$gl_cv_next_wctype_h" >&6; }
31652 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
31654 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
31655 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31656 gl_next_as_first_directive
='<'wctype.h
'>'
31658 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31659 gl_next_as_first_directive
=$gl_cv_next_wctype_h
31661 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
31666 if test $ac_cv_header_wctype_h = yes; then
31667 if test $ac_cv_func_iswcntrl = yes; then
31668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
31669 $as_echo_n "checking whether iswcntrl works... " >&6; }
31670 if ${gl_cv_func_iswcntrl_works+:} false
; then :
31671 $as_echo_n "(cached) " >&6
31674 if test "$cross_compiling" = yes; then :
31675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31676 /* end confdefs.h. */
31677 #include <stdlib.h>
31678 #if __GNU_LIBRARY__ == 1
31679 Linux libc5 i18n is broken.
31689 if ac_fn_c_try_compile
"$LINENO"; then :
31690 gl_cv_func_iswcntrl_works
="guessing yes"
31692 gl_cv_func_iswcntrl_works
="guessing no"
31694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31698 /* end confdefs.h. */
31701 #include <wctype.h>
31702 int main () { return iswprint ('x') == 0; }
31705 if ac_fn_c_try_run
"$LINENO"; then :
31706 gl_cv_func_iswcntrl_works
=yes
31708 gl_cv_func_iswcntrl_works
=no
31710 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
31711 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
31716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
31717 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
31725 if test $GNULIB_OVERRIDES_WINT_T = 1; then
31728 case "$gl_cv_func_iswcntrl_works" in
31729 *yes) REPLACE_ISWCNTRL
=0 ;;
31730 *) REPLACE_ISWCNTRL
=1 ;;
31735 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
31739 if test $REPLACE_ISWCNTRL = 1; then
31742 for ac_func
in towlower
31744 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
31745 if test "x$ac_cv_func_towlower" = xyes
; then :
31746 cat >>confdefs.h
<<_ACEOF
31747 #define HAVE_TOWLOWER 1
31753 if test $ac_cv_func_towlower = yes; then
31756 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h>
31758 # include <wctype.h>
31762 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
31768 cat >>confdefs.h
<<_ACEOF
31769 #define HAVE_DECL_TOWLOWER $ac_have_decl
31772 if test $ac_cv_have_decl_towlower = yes; then
31781 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
31786 $as_echo_n "checking for wctype_t... " >&6; }
31787 if ${gl_cv_type_wctype_t+:} false
; then :
31788 $as_echo_n "(cached) " >&6
31790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31791 /* end confdefs.h. */
31794 # include <wctype.h>
31806 if ac_fn_c_try_compile
"$LINENO"; then :
31807 gl_cv_type_wctype_t
=yes
31809 gl_cv_type_wctype_t
=no
31811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
31815 $as_echo "$gl_cv_type_wctype_t" >&6; }
31816 if test $gl_cv_type_wctype_t = no
; then
31820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
31821 $as_echo_n "checking for wctrans_t... " >&6; }
31822 if ${gl_cv_type_wctrans_t+:} false
; then :
31823 $as_echo_n "(cached) " >&6
31825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31826 /* end confdefs.h. */
31828 #include <wctype.h>
31839 if ac_fn_c_try_compile
"$LINENO"; then :
31840 gl_cv_type_wctrans_t
=yes
31842 gl_cv_type_wctrans_t
=no
31844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
31847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
31848 $as_echo "$gl_cv_type_wctrans_t" >&6; }
31849 if test $gl_cv_type_wctrans_t = no
; then
31868 gl_LIBOBJS
="$gl_LIBOBJS windows-mutex.$ac_objext"
31883 gl_LIBOBJS
="$gl_LIBOBJS windows-once.$ac_objext"
31898 gl_LIBOBJS
="$gl_LIBOBJS windows-recmutex.$ac_objext"
31913 gl_LIBOBJS
="$gl_LIBOBJS windows-rwlock.$ac_objext"
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmemchr" >&5
31920 $as_echo_n "checking for wmemchr... " >&6; }
31921 if ${gl_cv_func_wmemchr+:} false
; then :
31922 $as_echo_n "(cached) " >&6
31924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
31925 /* end confdefs.h. */
31931 return ! wmemchr ((const wchar_t *) 0, (wchar_t) ' ', 0);
31937 if ac_fn_c_try_link
"$LINENO"; then :
31938 gl_cv_func_wmemchr
=yes
31940 gl_cv_func_wmemchr
=no
31942 rm -f core conftest.err conftest.
$ac_objext \
31943 conftest
$ac_exeext conftest.
$ac_ext
31946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wmemchr" >&5
31947 $as_echo "$gl_cv_func_wmemchr" >&6; }
31948 if test $gl_cv_func_wmemchr = no
; then
31952 if test $HAVE_WMEMCHR = 0; then
31961 gl_LIBOBJS
="$gl_LIBOBJS wmemchr.$ac_objext"
31975 $as_echo "#define GNULIB_TEST_WMEMCHR 1" >>confdefs.h
31987 if test $ac_cv_func_wmempcpy = no
; then
31991 if test $HAVE_WMEMPCPY = 0; then
32000 gl_LIBOBJS
="$gl_LIBOBJS wmempcpy.$ac_objext"
32014 $as_echo "#define GNULIB_TEST_WMEMPCPY 1" >>confdefs.h
32018 # End of code from modules
32040 gl_source_base
='tests'
32041 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
32043 gl_module_indicator_condition
=$gltests_WITNESS
32053 LIBGNU_LIBDEPS
="$gl_libdeps"
32055 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
32059 am__api_version
='1.15'
32061 # Find a good install program. We prefer a C program (faster),
32062 # so one script is as good as another. But avoid the broken or
32063 # incompatible versions:
32064 # SysV /etc/install, /usr/sbin/install
32065 # SunOS /usr/etc/install
32066 # IRIX /sbin/install
32068 # AmigaOS /C/install, which installs bootblocks on floppy discs
32069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
32070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
32071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
32072 # OS/2's system install, which has a completely different semantic
32073 # ./install, which can be erroneously created by make from ./install.sh.
32074 # Reject install programs that cannot install multiple files.
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
32076 $as_echo_n "checking for a BSD-compatible install... " >&6; }
32077 if test -z "$INSTALL"; then
32078 if ${ac_cv_path_install+:} false
; then :
32079 $as_echo_n "(cached) " >&6
32081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
32082 for as_dir
in $PATH
32085 test -z "$as_dir" && as_dir
=.
32086 # Account for people who put trailing slashes in PATH elements.
32087 case $as_dir/ in #((
32088 .
/ | .
// |
/[cC
]/* | \
32089 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
32090 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
32093 # OSF1 and SCO ODT 3.0 have their own names for install.
32094 # Don't use installbsd from OSF since it installs stuff as root
32096 for ac_prog
in ginstall scoinst
install; do
32097 for ac_exec_ext
in '' $ac_executable_extensions; do
32098 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
32099 if test $ac_prog = install &&
32100 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
32101 # AIX install. It has an incompatible calling convention.
32103 elif test $ac_prog = install &&
32104 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
32105 # program-specific install script used by HP pwplus--don't use.
32108 rm -rf conftest.one conftest.two conftest.dir
32109 echo one
> conftest.one
32110 echo two
> conftest.two
32112 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
32113 test -s conftest.one
&& test -s conftest.two
&&
32114 test -s conftest.dir
/conftest.one
&&
32115 test -s conftest.dir
/conftest.two
32117 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
32130 rm -rf conftest.one conftest.two conftest.dir
32133 if test "${ac_cv_path_install+set}" = set; then
32134 INSTALL
=$ac_cv_path_install
32136 # As a last resort, use the slow shell script. Don't cache a
32137 # value for INSTALL within a source directory, because that will
32138 # break other packages using the cache if that directory is
32139 # removed, or if the value is a relative name.
32140 INSTALL
=$ac_install_sh
32143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
32144 $as_echo "$INSTALL" >&6; }
32146 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
32147 # It thinks the first close brace ends the variable substitution.
32148 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
32150 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
32152 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
32154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
32155 $as_echo_n "checking whether build environment is sane... " >&6; }
32156 # Reject unsafe characters in $srcdir or the absolute working directory
32157 # name. Accept space and tab only in the latter.
32161 *[\\\"\
#\$\&\'\`$am_lf]*)
32162 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
32165 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
32166 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
32169 # Do 'set' in a subshell so we don't clobber the current shell's
32170 # arguments. Must try -L first in case configure is actually a
32171 # symlink; some systems play weird games with the mod time of symlinks
32172 # (eg FreeBSD returns the mod time of the symlink's containing
32176 for am_try
in 1 2; do
32177 echo "timestamp, slept: $am_has_slept" > conftest.
file
32178 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
32179 if test "$*" = "X"; then
32181 set X
`ls -t "$srcdir/configure" conftest.file`
32183 if test "$*" != "X $srcdir/configure conftest.file" \
32184 && test "$*" != "X conftest.file $srcdir/configure"; then
32186 # If neither matched, then we have a broken ls. This can happen
32187 # if, for instance, CONFIG_SHELL is bash and it inherits a
32188 # broken ls alias from the environment. This has actually
32189 # happened. Such a system could not be considered "sane".
32190 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
32191 alias in your environment" "$LINENO" 5
32193 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
32200 test "$2" = conftest.
file
32206 as_fn_error $?
"newly created file is older than distributed files!
32207 Check your system clock" "$LINENO" 5
32209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32210 $as_echo "yes" >&6; }
32211 # If we didn't sleep, we still need to ensure time stamps of config.status and
32212 # generated files are strictly newer.
32214 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
32219 rm -f conftest.
file
32221 test "$program_prefix" != NONE
&&
32222 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
32223 # Use a double $ so make ignores it.
32224 test "$program_suffix" != NONE
&&
32225 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
32226 # Double any \ or $.
32227 # By default was `s,x,x', remove it if useless.
32228 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
32229 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
32231 # Expand $ac_aux_dir to an absolute path.
32232 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
32234 if test x
"${MISSING+set}" != xset
; then
32235 case $am_aux_dir in
32237 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
32239 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
32242 # Use eval to expand $SHELL
32243 if eval "$MISSING --is-lightweight"; then
32244 am_missing_run
="$MISSING "
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
32248 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
32251 if test x
"${install_sh+set}" != xset
; then
32252 case $am_aux_dir in
32254 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
32256 install_sh
="\${SHELL} $am_aux_dir/install-sh"
32260 # Installed binaries are usually stripped using 'strip' when the user
32261 # run "make install-strip". However 'strip' might not be the right
32262 # tool to use in cross-compilation environments, therefore Automake
32263 # will honor the 'STRIP' environment variable to overrule this program.
32264 if test "$cross_compiling" != no
; then
32265 if test -n "$ac_tool_prefix"; then
32266 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
32267 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
32268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32269 $as_echo_n "checking for $ac_word... " >&6; }
32270 if ${ac_cv_prog_STRIP+:} false
; then :
32271 $as_echo_n "(cached) " >&6
32273 if test -n "$STRIP"; then
32274 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
32276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
32277 for as_dir
in $PATH
32280 test -z "$as_dir" && as_dir
=.
32281 for ac_exec_ext
in '' $ac_executable_extensions; do
32282 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
32283 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
32284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32293 STRIP
=$ac_cv_prog_STRIP
32294 if test -n "$STRIP"; then
32295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
32296 $as_echo "$STRIP" >&6; }
32298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32299 $as_echo "no" >&6; }
32304 if test -z "$ac_cv_prog_STRIP"; then
32306 # Extract the first word of "strip", so it can be a program name with args.
32307 set dummy strip
; ac_word
=$2
32308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32309 $as_echo_n "checking for $ac_word... " >&6; }
32310 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
32311 $as_echo_n "(cached) " >&6
32313 if test -n "$ac_ct_STRIP"; then
32314 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
32316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
32317 for as_dir
in $PATH
32320 test -z "$as_dir" && as_dir
=.
32321 for ac_exec_ext
in '' $ac_executable_extensions; do
32322 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
32323 ac_cv_prog_ac_ct_STRIP
="strip"
32324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32333 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
32334 if test -n "$ac_ct_STRIP"; then
32335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
32336 $as_echo "$ac_ct_STRIP" >&6; }
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32339 $as_echo "no" >&6; }
32342 if test "x$ac_ct_STRIP" = x
; then
32345 case $cross_compiling:$ac_tool_warned in
32347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32349 ac_tool_warned
=yes ;;
32354 STRIP
="$ac_cv_prog_STRIP"
32358 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
32360 for ac_prog
in gawk mawk nawk
awk
32362 # Extract the first word of "$ac_prog", so it can be a program name with args.
32363 set dummy
$ac_prog; ac_word
=$2
32364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32365 $as_echo_n "checking for $ac_word... " >&6; }
32366 if ${ac_cv_prog_AWK+:} false
; then :
32367 $as_echo_n "(cached) " >&6
32369 if test -n "$AWK"; then
32370 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
32372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
32373 for as_dir
in $PATH
32376 test -z "$as_dir" && as_dir
=.
32377 for ac_exec_ext
in '' $ac_executable_extensions; do
32378 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
32379 ac_cv_prog_AWK
="$ac_prog"
32380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32389 AWK
=$ac_cv_prog_AWK
32390 if test -n "$AWK"; then
32391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
32392 $as_echo "$AWK" >&6; }
32394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32395 $as_echo "no" >&6; }
32399 test -n "$AWK" && break
32402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
32403 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
32405 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
32406 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
32407 $as_echo_n "(cached) " >&6
32409 cat >conftest.
make <<\_ACEOF
32412 @
echo '@@@%%%=$(MAKE)=@@@%%%'
32414 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
32415 case `${MAKE-make} -f conftest.make 2>/dev/null` in
32416 *@@@
%%%=?
*=@@@
%%%*)
32417 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
32419 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
32421 rm -f conftest.
make
32423 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
32424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32425 $as_echo "yes" >&6; }
32428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32429 $as_echo "no" >&6; }
32430 SET_MAKE
="MAKE=${MAKE-make}"
32433 rm -rf .tst
2>/dev
/null
32434 mkdir .tst
2>/dev
/null
32435 if test -d .tst
; then
32440 rmdir .tst
2>/dev
/null
32442 DEPDIR
="${am__leading_dot}deps"
32444 ac_config_commands
="$ac_config_commands depfiles"
32447 am_make
=${MAKE-make}
32448 cat > confinc
<< 'END'
32450 @
echo this is the am__doit target
32453 # If we don't find an include directive, just comment out the code.
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
32455 $as_echo_n "checking for style of include used by $am_make... " >&6; }
32459 # First try GNU make style include.
32460 echo "include confinc" > confmf
32461 # Ignore all kinds of additional output from 'make'.
32462 case `$am_make -s -f confmf 2> /dev/null` in #(
32463 *the\ am__doit\ target
*)
32464 am__include
=include
32469 # Now try BSD make style include.
32470 if test "$am__include" = "#"; then
32471 echo '.include "confinc"' > confmf
32472 case `$am_make -s -f confmf 2> /dev/null` in #(
32473 *the\ am__doit\ target
*)
32474 am__include
=.include
32482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
32483 $as_echo "$_am_result" >&6; }
32484 rm -f confinc confmf
32486 # Check whether --enable-dependency-tracking was given.
32487 if test "${enable_dependency_tracking+set}" = set; then :
32488 enableval
=$enable_dependency_tracking;
32491 if test "x$enable_dependency_tracking" != xno
; then
32492 am_depcomp
="$ac_aux_dir/depcomp"
32496 if test "x$enable_dependency_tracking" != xno; then
32505 # Check whether --enable-silent-rules was given.
32506 if test "${enable_silent_rules+set}" = set; then :
32507 enableval
=$enable_silent_rules;
32510 case $enable_silent_rules in # (((
32511 yes) AM_DEFAULT_VERBOSITY
=0;;
32512 no
) AM_DEFAULT_VERBOSITY
=1;;
32513 *) AM_DEFAULT_VERBOSITY
=1;;
32515 am_make
=${MAKE-make}
32516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
32517 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
32518 if ${am_cv_make_support_nested_variables+:} false
; then :
32519 $as_echo_n "(cached) " >&6
32521 if $as_echo 'TRUE=$(BAR$(V))
32527 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
32528 am_cv_make_support_nested_variables
=yes
32530 am_cv_make_support_nested_variables
=no
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
32534 $as_echo "$am_cv_make_support_nested_variables" >&6; }
32535 if test $am_cv_make_support_nested_variables = yes; then
32537 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
32539 AM_V
=$AM_DEFAULT_VERBOSITY
32540 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
32544 if test "`cd $srcdir && pwd`" != "`pwd`"; then
32545 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
32546 # is not polluted with repeated "-I."
32547 am__isrc
=' -I$(srcdir)'
32548 # test to see if srcdir already configured
32549 if test -f $srcdir/config.status
; then
32550 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
32554 # test whether we have cygpath
32555 if test -z "$CYGPATH_W"; then
32556 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
32557 CYGPATH_W
='cygpath -w'
32564 # Define the identity of the package.
32566 VERSION
='UNUSED-VERSION'
32569 # Some tools Automake needs.
32571 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
32574 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
32577 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
32580 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
32583 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
32585 # For better backward compatibility. To be removed once Automake 1.9.x
32586 # dies out for good. For more background, see:
32587 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
32588 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
32589 mkdir_p
='$(MKDIR_P)'
32591 # We need awk for the "check" target (and possibly the TAP driver). The
32592 # system "awk" is bad on some platforms.
32593 # Always define AMTAR for backward compatibility. Yes, it's still used
32594 # in the wild :-( We should find a proper way to deprecate it ...
32595 AMTAR
='$${TAR-tar}'
32598 # We'll loop over all known methods to create a tar archive until one works.
32599 _am_tools
='gnutar pax cpio none'
32601 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
32607 depcc
="$CC" am_compiler_list
=
32609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
32610 $as_echo_n "checking dependency style of $depcc... " >&6; }
32611 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
32612 $as_echo_n "(cached) " >&6
32614 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32615 # We make a subdir and do the tests there. Otherwise we can end up
32616 # making bogus files that we don't know about and never remove. For
32617 # instance it was reported that on HP-UX the gcc test will end up
32618 # making a dummy file named 'D' -- because '-MD' means "put the output
32620 rm -rf conftest.dir
32622 # Copy depcomp to subdir because otherwise we won't find it if we're
32623 # using a relative directory.
32624 cp "$am_depcomp" conftest.dir
32626 # We will build objects and dependencies in a subdirectory because
32627 # it helps to detect inapplicable dependency modes. For instance
32628 # both Tru64's cc and ICC support -MD to output dependencies as a
32629 # side effect of compilation, but ICC will put the dependencies in
32630 # the current directory while Tru64 will put them in the object
32634 am_cv_CC_dependencies_compiler_type
=none
32635 if test "$am_compiler_list" = ""; then
32636 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32638 am__universal
=false
32639 case " $depcc " in #(
32640 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
32643 for depmode
in $am_compiler_list; do
32644 # Setup a source with many dependencies, because some compilers
32645 # like to wrap large dependency lists on column 80 (with \), and
32646 # we should not choose a depcomp mode which is confused by this.
32648 # We need to recreate these files for each test, as the compiler may
32649 # overwrite some of them when testing with obscure command lines.
32650 # This happens at least with the AIX C compiler.
32652 for i
in 1 2 3 4 5 6; do
32653 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
32654 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
32655 # Solaris 10 /bin/sh.
32656 echo '/* dummy */' > sub
/conftst
$i.h
32658 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32660 # We check with '-c' and '-o' for the sake of the "dashmstdout"
32661 # mode. It turns out that the SunPro C++ compiler does not properly
32662 # handle '-M -o', and we need to detect this. Also, some Intel
32663 # versions had trouble with output in subdirs.
32664 am__obj
=sub
/conftest.
${OBJEXT-o}
32665 am__minus_obj
="-o $am__obj"
32668 # This depmode causes a compiler race in universal mode.
32669 test "$am__universal" = false ||
continue
32672 # After this tag, mechanisms are not by side-effect, so they'll
32673 # only be used when explicitly requested.
32674 if test "x$enable_dependency_tracking" = xyes
; then
32680 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
32681 # This compiler won't grok '-c -o', but also, the minuso test has
32682 # not run yet. These depmodes are late enough in the game, and
32683 # so weak that their functioning should not be impacted.
32684 am__obj
=conftest.
${OBJEXT-o}
32689 if depmode
=$depmode \
32690 source=sub
/conftest.c object
=$am__obj \
32691 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
32692 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
32693 >/dev
/null
2>conftest.err
&&
32694 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
32695 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
32696 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
32697 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
32698 # icc doesn't choke on unknown options, it will just issue warnings
32699 # or remarks (even with -Werror). So we grep stderr for any message
32700 # that says an option was ignored or not supported.
32701 # When given -MP, icc 7.0 and 7.1 complain thusly:
32702 # icc: Command line warning: ignoring option '-M'; no argument required
32703 # The diagnosis changed in icc 8.0:
32704 # icc: Command line remark: option '-MP' not supported
32705 if (grep 'ignoring option' conftest.err ||
32706 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
32707 am_cv_CC_dependencies_compiler_type
=$depmode
32714 rm -rf conftest.dir
32716 am_cv_CC_dependencies_compiler_type
=none
32720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
32721 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
32722 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
32725 test "x$enable_dependency_tracking" != xno \
32726 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
32727 am__fastdepCC_TRUE
=
32728 am__fastdepCC_FALSE
='#'
32730 am__fastdepCC_TRUE
='#'
32731 am__fastdepCC_FALSE
=
32736 # POSIX will say in a future version that running "rm -f" with no argument
32737 # is OK; and we want to be able to make that assumption in our Makefile
32738 # recipes. So use an aggressive probe to check that the usage we want is
32739 # actually supported "in the wild" to an acceptable degree.
32740 # See automake bug#10828.
32741 # To make any issue more visible, cause the running configure to be aborted
32742 # by default if the 'rm' program in use doesn't match our expectations; the
32743 # user can still override this though.
32744 if rm -f && rm -fr && rm -rf; then : OK
; else
32748 Your 'rm' program seems unable to run without file operands specified
32749 on the command line, even when the '-f' option is present. This is contrary
32750 to the behaviour of most rm programs out there, and not conforming with
32751 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
32753 Please tell bug-automake@gnu.org about your system, including the value
32754 of your $PATH and any error possibly output before this message. This
32755 can help us improve future automake versions.
32758 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
32759 echo 'Configuration will proceed anyway, since you have set the' >&2
32760 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
32764 Aborting the configuration process, to ensure you take notice of the issue.
32766 You can download and install GNU coreutils to get an 'rm' implementation
32767 that behaves properly: <http://www.gnu.org/software/coreutils/>.
32769 If you want to complete the configuration process using your problematic
32770 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
32771 to "yes", and re-run configure.
32774 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
32779 # Check whether --enable-silent-rules was given.
32780 if test "${enable_silent_rules+set}" = set; then :
32781 enableval
=$enable_silent_rules;
32784 case $enable_silent_rules in # (((
32785 yes) AM_DEFAULT_VERBOSITY
=0;;
32786 no
) AM_DEFAULT_VERBOSITY
=1;;
32787 *) AM_DEFAULT_VERBOSITY
=0;;
32789 am_make
=${MAKE-make}
32790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
32791 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
32792 if ${am_cv_make_support_nested_variables+:} false
; then :
32793 $as_echo_n "(cached) " >&6
32795 if $as_echo 'TRUE=$(BAR$(V))
32801 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
32802 am_cv_make_support_nested_variables
=yes
32804 am_cv_make_support_nested_variables
=no
32807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
32808 $as_echo "$am_cv_make_support_nested_variables" >&6; }
32809 if test $am_cv_make_support_nested_variables = yes; then
32811 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
32813 AM_V
=$AM_DEFAULT_VERBOSITY
32814 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
32819 # --------------------- #
32820 # Checks for programs. #
32821 # --------------------- #
32824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
32825 $as_echo_n "checking whether ln -s works... " >&6; }
32827 if test "$LN_S" = "ln -s"; then
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32829 $as_echo "yes" >&6; }
32831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
32832 $as_echo "no, using $LN_S" >&6; }
32835 if test -n "$ac_tool_prefix"; then
32836 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
32837 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
32838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32839 $as_echo_n "checking for $ac_word... " >&6; }
32840 if ${ac_cv_prog_RANLIB+:} false; then :
32841 $as_echo_n "(cached) " >&6
32843 if test -n "$RANLIB"; then
32844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
32846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32847 for as_dir in $PATH
32850 test -z "$as_dir" && as_dir=.
32851 for ac_exec_ext in '' $ac_executable_extensions; do
32852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32853 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
32854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32863 RANLIB=$ac_cv_prog_RANLIB
32864 if test -n "$RANLIB"; then
32865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
32866 $as_echo "$RANLIB" >&6; }
32868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32869 $as_echo "no" >&6; }
32874 if test -z "$ac_cv_prog_RANLIB"; then
32875 ac_ct_RANLIB=$RANLIB
32876 # Extract the first word of "ranlib", so it can be a program name with args.
32877 set dummy ranlib; ac_word=$2
32878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32879 $as_echo_n "checking for $ac_word... " >&6; }
32880 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
32881 $as_echo_n "(cached) " >&6
32883 if test -n "$ac_ct_RANLIB"; then
32884 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
32886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32887 for as_dir in $PATH
32890 test -z "$as_dir" && as_dir=.
32891 for ac_exec_ext in '' $ac_executable_extensions; do
32892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32893 ac_cv_prog_ac_ct_RANLIB="ranlib"
32894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32903 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
32904 if test -n "$ac_ct_RANLIB"; then
32905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
32906 $as_echo "$ac_ct_RANLIB" >&6; }
32908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32909 $as_echo "no" >&6; }
32912 if test "x$ac_ct_RANLIB" = x; then
32915 case $cross_compiling:$ac_tool_warned in
32917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32919 ac_tool_warned=yes ;;
32921 RANLIB=$ac_ct_RANLIB
32924 RANLIB="$ac_cv_prog_RANLIB"
32928 if test -n "$ac_tool_prefix"; then
32929 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
32930 set dummy ${ac_tool_prefix}ar; ac_word=$2
32931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32932 $as_echo_n "checking for $ac_word... " >&6; }
32933 if ${ac_cv_prog_AR+:} false; then :
32934 $as_echo_n "(cached) " >&6
32936 if test -n "$AR"; then
32937 ac_cv_prog_AR="$AR" # Let the user override the test.
32939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32940 for as_dir in $PATH
32943 test -z "$as_dir" && as_dir=.
32944 for ac_exec_ext in '' $ac_executable_extensions; do
32945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32946 ac_cv_prog_AR="${ac_tool_prefix}ar"
32947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32957 if test -n "$AR"; then
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
32959 $as_echo "$AR" >&6; }
32961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32962 $as_echo "no" >&6; }
32967 if test -z "$ac_cv_prog_AR"; then
32969 # Extract the first word of "ar", so it can be a program name with args.
32970 set dummy ar; ac_word=$2
32971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32972 $as_echo_n "checking for $ac_word... " >&6; }
32973 if ${ac_cv_prog_ac_ct_AR+:} false; then :
32974 $as_echo_n "(cached) " >&6
32976 if test -n "$ac_ct_AR"; then
32977 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
32979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32980 for as_dir in $PATH
32983 test -z "$as_dir" && as_dir=.
32984 for ac_exec_ext in '' $ac_executable_extensions; do
32985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32986 ac_cv_prog_ac_ct_AR="ar"
32987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32996 ac_ct_AR=$ac_cv_prog_ac_ct_AR
32997 if test -n "$ac_ct_AR"; then
32998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
32999 $as_echo "$ac_ct_AR" >&6; }
33001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33002 $as_echo "no" >&6; }
33005 if test "x$ac_ct_AR" = x; then
33008 case $cross_compiling:$ac_tool_warned in
33010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33012 ac_tool_warned=yes ;;
33017 AR="$ac_cv_prog_AR"
33021 # ---------------------- #
33022 # Checks for libraries. #
33023 # ---------------------- #
33025 ac_config_files="$ac_config_files Makefile.gnulib.inc"
33028 ac_config_files="$ac_config_files Makefile import/Makefile"
33030 ac_config_commands="$ac_config_commands default"
33032 cat >confcache <<\_ACEOF
33033 # This file is a shell script that caches the results of configure
33034 # tests run on this system so they can be shared between configure
33035 # scripts and configure runs, see configure's option
--config-cache.
33036 # It is not useful on other systems. If it contains results you don't
33037 # want to keep, you may remove or edit it.
33039 # config.status only pays attention to the cache file if you give it
33040 # the --recheck option to rerun configure.
33042 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33043 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33044 # following values.
33048 # The following way of writing the cache mishandles newlines in values,
33049 # but we know of no workaround that is simple, portable, and efficient.
33050 # So, we kill variables containing newlines.
33051 # Ultrix sh set writes to stderr and can't be redirected directly,
33052 # and sets the high bit in the cache file unless we assign to the vars.
33054 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33055 eval ac_val
=\$
$ac_var
33059 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33060 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33063 _ | IFS | as_nl
) ;; #(
33064 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
33065 *) { eval $ac_var=; unset $ac_var;} ;;
33071 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33072 *${as_nl}ac_space
=\
*)
33073 # `set' does not quote correctly, so add quotes: double-quote
33074 # substitution turns \\\\ into \\, and sed turns \\ into \.
33077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33080 # `set' quotes correctly as required by POSIX, so do not add quotes.
33081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33090 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33092 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33094 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
33095 if test -w "$cache_file"; then
33096 if test "x$cache_file" != "x/dev/null"; then
33097 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33098 $as_echo "$as_me: updating cache $cache_file" >&6;}
33099 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
33100 cat confcache
>"$cache_file"
33102 case $cache_file in #(
33104 mv -f confcache
"$cache_file"$$
&&
33105 mv -f "$cache_file"$$
"$cache_file" ;; #(
33107 mv -f confcache
"$cache_file" ;;
33112 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33113 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33118 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33119 # Let make expand exec_prefix.
33120 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33122 DEFS
=-DHAVE_CONFIG_H
33126 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33127 # 1. Remove the extension, and $U if already installed.
33128 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
33129 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
33130 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33131 # will be set to the directory where LIBOBJS objects are built.
33132 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33133 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
33135 LIBOBJS
=$ac_libobjs
33137 LTLIBOBJS
=$ac_ltlibobjs
33140 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33141 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
33142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33144 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
33145 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
33146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33148 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
33149 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
33150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33152 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
33153 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
33154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33156 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
33157 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
33158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33160 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
33161 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
33162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33164 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
33165 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
33166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33168 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
33169 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
33170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33172 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
33173 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
33174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33176 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
33177 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
33178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33180 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
33181 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
33182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33184 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
33185 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
33186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33190 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
33191 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
33192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33194 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
33195 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
33196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33198 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
33199 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
33200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33202 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
33203 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
33204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33206 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
33207 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
33208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33213 if test -n "$gl_LIBOBJS"; then
33214 # Remove the extension.
33215 sed_drop_objext
='s/\.o$//;s/\.obj$//'
33216 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
33217 gl_libobjs
="$gl_libobjs $i.$ac_objext"
33218 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
33221 gl_LIBOBJS
=$gl_libobjs
33223 gl_LTLIBOBJS
=$gl_ltlibobjs
33229 if test -n "$gltests_LIBOBJS"; then
33230 # Remove the extension.
33231 sed_drop_objext
='s/\.o$//;s/\.obj$//'
33232 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
33233 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
33234 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
33237 gltests_LIBOBJS
=$gltests_libobjs
33239 gltests_LTLIBOBJS
=$gltests_ltlibobjs
33242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
33243 $as_echo_n "checking that generated files are newer than configure... " >&6; }
33244 if test -n "$am_sleep_pid"; then
33245 # Hide warnings about reused PIDs.
33246 wait $am_sleep_pid 2>/dev
/null
33248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
33249 $as_echo "done" >&6; }
33250 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33251 as_fn_error $?
"conditional \"AMDEP\" was never defined.
33252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33254 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33255 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
33256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33258 if test -n "$EXEEXT"; then
33260 am__EXEEXT_FALSE
='#'
33262 am__EXEEXT_TRUE
='#'
33267 : "${CONFIG_STATUS=./config.status}"
33269 ac_clean_files_save
=$ac_clean_files
33270 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33271 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33272 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33274 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33276 # Generated by $as_me.
33277 # Run this file to recreate the current configuration.
33278 # Compiler output produced by configure, useful for debugging
33279 # configure, is in config.log if it exists.
33282 ac_cs_recheck=false
33285 SHELL=\${CONFIG_SHELL-$SHELL}
33288 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
33289 ## -------------------- ##
33290 ## M4sh Initialization. ##
33291 ## -------------------- ##
33293 # Be more Bourne compatible
33294 DUALCASE
=1; export DUALCASE
# for MKS sh
33295 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
33298 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33299 # is contrary to our usage. Disable this feature.
33300 alias -g '${1+"$@"}'='"$@"'
33301 setopt NO_GLOB_SUBST
33303 case `(set -o) 2>/dev/null` in #(
33315 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33316 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33318 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33319 # Prefer a ksh shell builtin over an external printf program on Solaris,
33320 # but without wasting forks for bash or zsh.
33321 if test -z "$BASH_VERSION$ZSH_VERSION" \
33322 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33323 as_echo='print
-r --'
33324 as_echo_n='print
-rn --'
33325 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33326 as_echo='printf %s
\n'
33327 as_echo_n='printf %s
'
33329 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33330 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
33331 as_echo_n='/usr
/ucb
/echo -n'
33333 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33334 as_echo_n_body='eval
33338 expr "X$arg" : "X\\(.*\\)$as_nl";
33339 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33341 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
33343 export as_echo_n_body
33344 as_echo_n='sh
-c $as_echo_n_body as_echo
'
33346 export as_echo_body
33347 as_echo='sh
-c $as_echo_body as_echo
'
33350 # The user is always right.
33351 if test "${PATH_SEPARATOR+set}" != set; then
33353 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33354 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33361 # We need space, tab and new line, in precisely that order. Quoting is
33362 # there to prevent editors from complaining about space-tab.
33363 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33364 # splitting by setting IFS to empty value.)
33367 # Find who we are. Look in the path if we contain no directory separator.
33370 *[\\/]* ) as_myself=$0 ;;
33371 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33372 for as_dir in $PATH
33375 test -z "$as_dir" && as_dir=.
33376 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33382 # We did not find ourselves, most probably we were run as `sh COMMAND'
33383 # in which case we are not to be found in the path.
33384 if test "x$as_myself" = x
; then
33387 if test ! -f "$as_myself"; then
33388 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33392 # Unset variables that we do not need and which cause bugs (e.g. in
33393 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33394 # suppresses any "Segmentation fault" message there. '((' could
33395 # trigger a bug in pdksh 5.2.14.
33396 for as_var
in BASH_ENV ENV MAIL MAILPATH
33397 do eval test x\
${$as_var+set} = xset \
33398 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
33411 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
33414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33415 # ----------------------------------------
33416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33418 # script with STATUS, using 1 if that was 0.
33421 as_status
=$1; test $as_status -eq 0 && as_status
=1
33423 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
33424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33426 $as_echo "$as_me: error: $2" >&2
33427 as_fn_exit
$as_status
33431 # as_fn_set_status STATUS
33432 # -----------------------
33433 # Set $? to STATUS, without forking.
33434 as_fn_set_status
()
33437 } # as_fn_set_status
33439 # as_fn_exit STATUS
33440 # -----------------
33441 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33445 as_fn_set_status
$1
33451 # Portably unset VAR.
33454 { eval $1=; unset $1;}
33456 as_unset
=as_fn_unset
33457 # as_fn_append VAR VALUE
33458 # ----------------------
33459 # Append the text in VALUE to the end of the definition contained in VAR. Take
33460 # advantage of any shell optimizations that allow amortized linear growth over
33461 # repeated appends, instead of the typical quadratic growth present in naive
33463 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
33464 eval 'as_fn_append ()
33475 # as_fn_arith ARG...
33476 # ------------------
33477 # Perform arithmetic evaluation on the ARGs, and store the result in the
33478 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33479 # must be portable across $(()) and expr.
33480 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
33481 eval 'as_fn_arith ()
33488 as_val
=`expr "$@" || test $? -eq 1`
33493 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33494 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33500 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33501 as_basename
=basename
33506 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33512 as_me
=`$as_basename -- "$0" ||
33513 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33514 X"$0" : 'X\(//\)$' \| \
33515 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33517 sed '/^.*\/\([^/][^/]*\)\/*$/{
33531 # Avoid depending upon Character Ranges.
33532 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33533 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33534 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33535 as_cr_digits
='0123456789'
33536 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33538 ECHO_C
= ECHO_N
= ECHO_T
=
33539 case `echo -n x` in #(((((
33541 case `echo 'xy\c'` in
33542 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33544 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
33551 rm -f conf$$ conf$$.exe conf$$.
file
33552 if test -d conf$$.dir
; then
33553 rm -f conf$$.dir
/conf$$.
file
33556 mkdir conf$$.dir
2>/dev
/null
33558 if (echo >conf$$.
file) 2>/dev
/null
; then
33559 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33561 # ... but there are two gotchas:
33562 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33563 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33564 # In both cases, we have to default to `cp -pR'.
33565 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33567 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33575 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33576 rmdir conf$$.dir
2>/dev
/null
33581 # Create "$as_dir" as a directory, including parents if necessary.
33586 -*) as_dir
=.
/$as_dir;;
33588 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33592 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33593 *) as_qdir
=$as_dir;;
33595 as_dirs
="'$as_qdir' $as_dirs"
33596 as_dir
=`$as_dirname -- "$as_dir" ||
33597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33598 X"$as_dir" : 'X\(//\)[^/]' \| \
33599 X"$as_dir" : 'X\(//\)$' \| \
33600 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33601 $as_echo X"$as_dir" |
33602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33606 /^X\(\/\/\)[^/].*/{
33619 test -d "$as_dir" && break
33621 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33622 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33626 if mkdir
-p .
2>/dev
/null
; then
33627 as_mkdir_p
='mkdir -p "$as_dir"'
33629 test -d .
/-p && rmdir .
/-p
33634 # as_fn_executable_p FILE
33635 # -----------------------
33636 # Test if FILE is an executable regular file.
33637 as_fn_executable_p
()
33639 test -f "$1" && test -x "$1"
33640 } # as_fn_executable_p
33641 as_test_x
='test -x'
33642 as_executable_p
=as_fn_executable_p
33644 # Sed expression to map a string onto a valid CPP name.
33645 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33647 # Sed expression to map a string onto a valid variable name.
33648 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33652 ## ----------------------------------- ##
33653 ## Main body of $CONFIG_STATUS script. ##
33654 ## ----------------------------------- ##
33656 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33659 # Save the log message, to keep $0 and so on meaningful, and to
33660 # report actual input values of CONFIG_FILES etc. instead of their
33661 # values after options handling.
33663 This file was extended by libgnu $as_me UNUSED-VERSION, which was
33664 generated by GNU Autoconf 2.69. Invocation command line was
33666 CONFIG_FILES = $CONFIG_FILES
33667 CONFIG_HEADERS = $CONFIG_HEADERS
33668 CONFIG_LINKS = $CONFIG_LINKS
33669 CONFIG_COMMANDS = $CONFIG_COMMANDS
33672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33677 case $ac_config_files in *"
33678 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33681 case $ac_config_headers in *"
33682 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33687 # Files that config.status was made for.
33688 config_files="$ac_config_files"
33689 config_headers="$ac_config_headers"
33690 config_commands="$ac_config_commands"
33694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33696 \`$as_me' instantiates files and other configuration actions
33697 from templates according to the current configuration. Unless the files
33698 and actions are specified as TAGs, all are instantiated by default.
33700 Usage: $0 [OPTION]... [TAG]...
33702 -h, --help print this help, then exit
33703 -V, --version print version number and configuration settings, then exit
33704 --config print configuration, then exit
33705 -q, --quiet, --silent
33706 do not print progress messages
33707 -d, --debug don't remove temporary files
33708 --recheck update $as_me by reconfiguring in the same conditions
33709 --file=FILE[:TEMPLATE]
33710 instantiate the configuration file FILE
33711 --header=FILE[:TEMPLATE]
33712 instantiate the configuration header FILE
33714 Configuration files:
33717 Configuration headers:
33720 Configuration commands:
33723 Report bugs to the package provider."
33726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33727 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33729 libgnu config.status UNUSED-VERSION
33730 configured by $0, generated by GNU Autoconf 2.69,
33731 with options \\"\$ac_cs_config\\"
33733 Copyright (C) 2012 Free Software Foundation, Inc.
33734 This config.status script is free software; the Free Software Foundation
33735 gives unlimited permission to copy, distribute and modify it."
33742 test -n "\$AWK" || AWK=awk
33745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33746 # The default lists apply if the user does not specify any file.
33752 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33753 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33757 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33769 # Handling of the options.
33770 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33772 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33773 $as_echo "$ac_cs_version"; exit ;;
33774 --config |
--confi |
--conf |
--con |
--co |
--c )
33775 $as_echo "$ac_cs_config"; exit ;;
33776 --debug |
--debu |
--deb |
--de |
--d |
-d )
33778 --file |
--fil |
--fi |
--f )
33781 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33782 '') as_fn_error $?
"missing file argument" ;;
33784 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33785 ac_need_defaults
=false
;;
33786 --header |
--heade |
--head |
--hea )
33789 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33791 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33792 ac_need_defaults
=false
;;
33794 # Conflict between --help and --header
33795 as_fn_error $?
"ambiguous option: \`$1'
33796 Try \`$0 --help' for more information.";;
33797 --help |
--hel |
-h )
33798 $as_echo "$ac_cs_usage"; exit ;;
33799 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33800 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33803 # This is an error.
33804 -*) as_fn_error $?
"unrecognized option: \`$1'
33805 Try \`$0 --help' for more information." ;;
33807 *) as_fn_append ac_config_targets
" $1"
33808 ac_need_defaults
=false
;;
33814 ac_configure_extra_args
=
33816 if $ac_cs_silent; then
33818 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33823 if \$ac_cs_recheck; then
33824 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33826 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33827 CONFIG_SHELL='$SHELL'
33828 export CONFIG_SHELL
33833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33837 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33838 ## Running $as_me. ##
33844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33848 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33854 # Handling of arguments.
33855 for ac_config_target
in $ac_config_targets
33857 case $ac_config_target in
33858 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
33859 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
33860 "Makefile.gnulib.inc") CONFIG_FILES
="$CONFIG_FILES Makefile.gnulib.inc" ;;
33861 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
33862 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
33863 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
33865 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33870 # If the user did not use the arguments to specify the items to instantiate,
33871 # then the envvar interface is used. Set only those that are not.
33872 # We use the long form for the default assignment because of an extremely
33873 # bizarre bug on SunOS 4.1.3.
33874 if $ac_need_defaults; then
33875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
33877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
33880 # Have a temporary directory for convenience. Make it in the build tree
33881 # simply because there is no reason against having it here, and in addition,
33882 # creating and moving files from /tmp can sometimes cause problems.
33883 # Hook for its removal unless debugging.
33884 # Note that there is a small window in which the directory will not be cleaned:
33885 # after its creation but before its name has been assigned to `$tmp'.
33889 trap 'exit_status=$?
33890 : "${ac_tmp:=$tmp}"
33891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33893 trap 'as_fn_exit 1' 1 2 13 15
33895 # Create a (secure) tmp directory for tmp files.
33898 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33902 tmp
=.
/conf$$
-$RANDOM
33903 (umask 077 && mkdir
"$tmp")
33904 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
33907 # Set up the scripts for CONFIG_FILES section.
33908 # No need to generate them if there are no CONFIG_FILES.
33909 # This happens for instance with `./config.status config.h'.
33910 if test -n "$CONFIG_FILES"; then
33913 ac_cr
=`echo X | tr X '\015'`
33914 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33915 # But we know of no other shell where ac_cr would be empty at this
33916 # point, so we can use a bashism as a fallback.
33917 if test "x$ac_cr" = x
; then
33918 eval ac_cr
=\$
\'\\r
\'
33920 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33924 ac_cs_awk_cr
=$ac_cr
33927 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33932 echo "cat >conf$$subs.awk <<_ACEOF" &&
33933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33935 } >conf$$subs.sh ||
33936 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33939 for ac_last_try in false false false false false :; do
33940 . ./conf$$subs.sh ||
33941 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33943 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
33944 if test $ac_delim_n = $ac_delim_num; then
33946 elif $ac_last_try; then
33947 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
33949 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
33952 rm -f conf$$subs.sh
33954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33955 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
33959 s/^/S["/; s
/!.
*/"]=/
33969 s/\(.\{148\}\)..*/\1/
33971 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
33976 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33983 s/\(.\{148\}\)..*/\1/
33985 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
33989 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
33994 ' <conf$$subs.awk | sed '
33999 ' >>$CONFIG_STATUS || ac_write_fail=1
34000 rm -f conf$$subs.awk
34001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34003 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
34004 for (key in S) S_is_set[key] = 1
34010 nfields = split(line, field, "@
")
34012 len = length(field[1])
34013 for (i = 2; i < nfields; i++) {
34015 keylen = length(key)
34016 if (S_is_set[key]) {
34018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34019 len += length(value) + length(field[++i])
34030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34031 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34032 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
34035 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
34036 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
34039 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34040 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
34041 # trailing colons and then remove the whole line if VPATH becomes empty
34042 # (actually we leave an empty line to preserve line numbers).
34043 if test "x
$srcdir" = x.; then
34044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34063 fi # test -n "$CONFIG_FILES"
34065 # Set up the scripts for CONFIG_HEADERS section.
34066 # No need to generate them if there are no CONFIG_HEADERS.
34067 # This happens for instance with `./config.status Makefile'.
34068 if test -n "$CONFIG_HEADERS"; then
34069 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
34073 # Transform confdefs.h into an awk script `defines.awk', embedded as
34074 # here-document in config.status, that substitutes the proper values into
34075 # config.h.in to produce config.h.
34077 # Create a delimiter string that does not exist in confdefs.h, to ease
34078 # handling of long lines.
34080 for ac_last_try in false false :; do
34081 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
34082 if test -z "$ac_tt"; then
34084 elif $ac_last_try; then
34085 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
34087 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
34091 # For the awk script, D is an array of macro values keyed by name,
34092 # likewise P contains macro parameters if any. Preserve backslash
34093 # newline sequences.
34095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34097 s/.\{148\}/&'"$ac_delim"'/g
34100 s/^[ ]*#[ ]*define[ ][ ]*/ /
34107 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
34109 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
34113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
34114 D["\
1"]=" \
3\\\\\\n
"\\/p
34116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
34121 s/.\{148\}/&'"$ac_delim"'/g
34126 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
34129 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
34131 ' <confdefs.h | sed '
34132 s/'"$ac_delim"'/"\\\
34133 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34136 for (key in D) D_is_set[key] = 1
34139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34141 split(line, arg, " ")
34142 if (arg[1] == "#") {
34146 defundef
= substr
(arg
[1], 2)
34149 split(mac1
, mac2
, "(") #)
34151 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
34152 if (D_is_set
[macro
]) {
34153 # Preserve the white space surrounding the "#".
34154 print prefix
"define", macro P
[macro
] D
[macro
]
34157 # Replace #undef with comments. This is necessary, for example,
34158 # in the case of _POSIX_SOURCE, which is predefined and required
34159 # on some systems where configure will not decide to define it.
34160 if (defundef
== "undef") {
34161 print
"/*", prefix defundef
, macro
, "*/"
34169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34170 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
34171 fi # test -n "$CONFIG_HEADERS"
34174 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34179 :[FHLC
]) ac_mode
=$ac_tag; continue;;
34181 case $ac_mode$ac_tag in
34183 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
34184 :[FH
]-) ac_tag
=-:-;;
34185 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
34202 -) ac_f
="$ac_tmp/stdin";;
34203 *) # Look for the file first in the build tree, then in the source tree
34204 # (if the path is not absolute). The absolute path cannot be DOS-style,
34205 # because $ac_f cannot contain `:'.
34209 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
34211 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34213 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34214 as_fn_append ac_file_inputs
" '$ac_f'"
34217 # Let's still pretend it is `configure' which instantiates (i.e., don't
34218 # use $as_me), people would be surprised to read:
34219 # /* config.h. Generated by config.status. */
34220 configure_input
='Generated from '`
34221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34223 if test x
"$ac_file" != x-
; then
34224 configure_input
="$ac_file. $configure_input"
34225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34226 $as_echo "$as_me: creating $ac_file" >&6;}
34228 # Neutralize special characters interpreted by sed in replacement strings.
34229 case $configure_input in #(
34230 *\
&* |
*\|
* |
*\\* )
34231 ac_sed_conf_input
=`$as_echo "$configure_input" |
34232 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34233 *) ac_sed_conf_input
=$configure_input;;
34237 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
34238 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
34243 ac_dir
=`$as_dirname -- "$ac_file" ||
34244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34245 X"$ac_file" : 'X\(//\)[^/]' \| \
34246 X"$ac_file" : 'X\(//\)$' \| \
34247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34248 $as_echo X"$ac_file" |
34249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34253 /^X\(\/\/\)[^/].*/{
34266 as_dir
="$ac_dir"; as_fn_mkdir_p
34270 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34272 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34273 # A ".." for each directory in $ac_dir_suffix.
34274 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34275 case $ac_top_builddir_sub in
34276 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34277 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34280 ac_abs_top_builddir
=$ac_pwd
34281 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34282 # for backward compatibility:
34283 ac_top_builddir
=$ac_top_build_prefix
34286 .
) # We are building in place.
34288 ac_top_srcdir
=$ac_top_builddir_sub
34289 ac_abs_top_srcdir
=$ac_pwd ;;
34290 [\\/]* | ?
:[\\/]* ) # Absolute name.
34291 ac_srcdir
=$srcdir$ac_dir_suffix;
34292 ac_top_srcdir
=$srcdir
34293 ac_abs_top_srcdir
=$srcdir ;;
34294 *) # Relative name.
34295 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34296 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34297 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34299 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34309 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
34310 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
34312 ac_MKDIR_P
=$MKDIR_P
34314 [\\/$
]* | ?
:[\\/]* ) ;;
34315 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
34319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34320 # If the template does not know about datarootdir, expand it.
34321 # FIXME: This hack should be removed a few years after 2.60.
34322 ac_datarootdir_hack
=; ac_datarootdir_seen
=
34333 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34334 *datarootdir
*) ac_datarootdir_seen
=yes;;
34335 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
34336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34337 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34340 ac_datarootdir_hack='
34341 s&@datadir@&$datadir&g
34342 s&@docdir@&$docdir&g
34343 s&@infodir@&$infodir&g
34344 s&@localedir@&$localedir&g
34345 s&@mandir@&$mandir&g
34346 s&\\\${datarootdir}&$datarootdir&g' ;;
34350 # Neutralize VPATH when `$srcdir' = `.'.
34351 # Shell code in configure.ac might set extrasub.
34352 # FIXME: do we really want to maintain this feature?
34353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34354 ac_sed_extra="$ac_vpsub
34357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34359 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
34360 s|@configure_input@|
$ac_sed_conf_input|
;t t
34361 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
34362 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
34363 s
&@srcdir@
&$ac_srcdir&;t t
34364 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
34365 s
&@top_srcdir@
&$ac_top_srcdir&;t t
34366 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
34367 s
&@builddir@
&$ac_builddir&;t t
34368 s
&@abs_builddir@
&$ac_abs_builddir&;t t
34369 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
34370 s
&@INSTALL@
&$ac_INSTALL&;t t
34371 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
34372 $ac_datarootdir_hack
34374 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
34375 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
34377 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34378 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
34379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34380 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
34381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
34382 which seems to be undefined. Please make sure it is defined" >&5
34383 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
34384 which seems to be undefined. Please make sure it is defined" >&2;}
34386 rm -f "$ac_tmp/stdin"
34388 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34389 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34397 if test x"$ac_file" != x-; then
34399 $as_echo "/* $configure_input */" \
34400 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34401 } >"$ac_tmp/config.h" \
34402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34403 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34404 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34405 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34408 mv "$ac_tmp/config.h" "$ac_file" \
34409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34412 $as_echo "/* $configure_input */" \
34413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34414 || as_fn_error $? "could not create -" "$LINENO" 5
34416 # Compute "$ac_file"'s index
in $config_headers.
34419 for _am_header
in $config_headers :; do
34420 case $_am_header in
34421 $_am_arg |
$_am_arg:* )
34424 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
34427 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34428 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34429 X"$_am_arg" : 'X\(//\)[^/]' \| \
34430 X"$_am_arg" : 'X\(//\)$' \| \
34431 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34432 $as_echo X"$_am_arg" |
34433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34437 /^X\(\/\/\)[^/].*/{
34449 s/.*/./; q'`/stamp-h
$_am_stamp_count
34452 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34453 $as_echo "$as_me: executing $ac_file commands" >&6;}
34458 case $ac_file$ac_mode in
34459 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
34460 # Older Autoconf quotes --file arguments for eval, but not when files
34461 # are listed without --file. Let's play safe and only enable the eval
34462 # if we detect the quoting.
34463 case $CONFIG_FILES in
34464 *\'*) eval set x
"$CONFIG_FILES" ;;
34465 *) set x
$CONFIG_FILES ;;
34470 # Strip MF so we end up with the name of the file.
34471 mf
=`echo "$mf" | sed -e 's/:.*$//'`
34472 # Check whether this is an Automake generated Makefile or not.
34473 # We used to match only the files named 'Makefile.in', but
34474 # some people rename them; so instead we look at the file content.
34475 # Grep'ing the first line is not enough: some people post-process
34476 # each Makefile.in and add a new line on top of each file to say so.
34477 # Grep'ing the whole file is not good either: AIX grep has a line
34478 # limit of 2048, but all sed's we know have understand at least 4000.
34479 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
34480 dirpart
=`$as_dirname -- "$mf" ||
34481 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34482 X"$mf" : 'X\(//\)[^/]' \| \
34483 X"$mf" : 'X\(//\)$' \| \
34484 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34490 /^X\(\/\/\)[^/].*/{
34506 # Extract the definition of DEPDIR, am__include, and am__quote
34507 # from the Makefile without running 'make'.
34508 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
34509 test -z "$DEPDIR" && continue
34510 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
34511 test -z "$am__include" && continue
34512 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
34513 # Find all dependency output files, they are included files with
34514 # $(DEPDIR) in their names. We invoke sed twice because it is the
34515 # simplest approach to changing $(DEPDIR) to its actual value in the
34517 for file in `sed -n "
34518 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34519 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
34520 # Make sure the directory exists.
34521 test -f "$dirpart/$file" && continue
34522 fdir
=`$as_dirname -- "$file" ||
34523 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34524 X"$file" : 'X\(//\)[^/]' \| \
34525 X"$file" : 'X\(//\)$' \| \
34526 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34527 $as_echo X"$file" |
34528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34532 /^X\(\/\/\)[^/].*/{
34545 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
34546 # echo "creating $dirpart/$file"
34547 echo '# dummy' > "$dirpart/$file"
34553 case x
$CONFIG_HEADERS in
34554 xconfig.h
:config.
in)
34565 ac_clean_files
=$ac_clean_files_save
34567 test $ac_write_fail = 0 ||
34568 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
34571 # configure is writing to config.log, and then calls config.status.
34572 # config.status does its own redirection, appending to config.log.
34573 # Unfortunately, on DOS this fails, as config.log is still kept open
34574 # by configure, so config.status won't be able to write to it; its
34575 # output is simply discarded. So we exec the FD to /dev/null,
34576 # effectively closing config.log, so it can be properly (re)opened and
34577 # appended to by config.status. When coming back to configure, we
34578 # need to make the FD available again.
34579 if test "$no_create" != yes; then
34581 ac_config_status_args
=
34582 test "$silent" = yes &&
34583 ac_config_status_args
="$ac_config_status_args --quiet"
34585 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34587 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34588 # would make configure fail if this is the last instruction.
34589 $ac_cs_success || as_fn_exit
1
34591 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
34592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34593 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}