2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgnu UNUSED-VERSION.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
578 PACKAGE_NAME
='libgnu'
579 PACKAGE_TARNAME
='libgnu'
580 PACKAGE_VERSION
='UNUSED-VERSION'
581 PACKAGE_STRING
='libgnu UNUSED-VERSION'
585 ac_unique_file
="import/memmem.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 gl_use_threads_default
=
623 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 UNISTD_H_DEFINES_STRUCT_TIMESPEC
702 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
703 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
704 TIME_H_DEFINES_STRUCT_TIMESPEC
705 NEXT_AS_FIRST_DIRECTIVE_TIME_H
708 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
712 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
714 NEXT_AS_FIRST_DIRECTIVE_STRING_H
716 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
718 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
721 GL_GENERATE_STDBOOL_H_FALSE
722 GL_GENERATE_STDBOOL_H_TRUE
724 GL_GENERATE_STDALIGN_H_FALSE
725 GL_GENERATE_STDALIGN_H_TRUE
727 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
730 REPLACE_PTHREAD_SIGMASK
732 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
733 HAVE_STRUCT_SIGACTION_SA_SIGACTION
739 HAVE_POSIX_SIGNALBLOCKING
742 GNULIB_SIGNAL_H_SIGPIPE
744 GNULIB_PTHREAD_SIGMASK
752 REPLACE_STDIO_WRITE_FUNCS
753 REPLACE_STDIO_READ_FUNCS
762 REPLACE_OBSTACK_PRINTF
787 HAVE_DECL_OBSTACK_PRINTF
793 GNULIB_VSPRINTF_POSIX
797 GNULIB_VFPRINTF_POSIX
804 GNULIB_STDIO_H_SIGPIPE
805 GNULIB_STDIO_H_NONBLOCKING
820 GNULIB_OBSTACK_PRINTF_POSIX
821 GNULIB_OBSTACK_PRINTF
846 GL_GENERATE_NETINET_IN_H_FALSE
847 GL_GENERATE_NETINET_IN_H_TRUE
850 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
926 GNULIB_EXPLICIT_BZERO
1029 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1036 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1039 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1041 GL_GENERATE_STDDEF_H_FALSE
1042 GL_GENERATE_STDDEF_H_TRUE
1047 REPLACE_STRUCT_LCONV
1058 GNULIB_SETLOCALE_NULL
1061 LOCALCHARSET_TESTS_ENVIRONMENT
1062 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1064 UINT64_MAX_EQ_ULONG_MAX
1065 UINT32_MAX_LT_UINTMAX_MAX
1068 INT64_MAX_EQ_LONG_MAX
1069 INT32_MAX_LT_INTMAX_MAX
1081 GL_GENERATE_STDINT_H_FALSE
1082 GL_GENERATE_STDINT_H_TRUE
1094 HAVE_SIGNED_SIG_ATOMIC_T
1097 BITSIZEOF_SIG_ATOMIC_T
1100 APPLE_UNIVERSAL_BUILD
1102 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1107 GNULIB_OVERRIDES_WINT_T
1108 GL_GENERATE_LIMITS_H_FALSE
1109 GL_GENERATE_LIMITS_H_TRUE
1111 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1114 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1118 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1119 HAVE_STRUCT_SOCKADDR_STORAGE
1141 GL_GENERATE_GLOB_H_FALSE
1142 GL_GENERATE_GLOB_H_TRUE
1145 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
1147 REPLACE_GLOB_PATTERN_P
1166 HAVE_DECL_LOCALTIME_R
1177 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1179 REPLACE_STRUCT_TIMEVAL
1180 REPLACE_GETTIMEOFDAY
1188 WINDOWS_64_BIT_ST_SIZE
1189 WINDOWS_STAT_TIMESPEC
1190 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1214 GNULIB_OVERRIDES_STRUCT_STAT
1229 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1240 REPLACE_SIGNBIT_USING_GCC
1320 HAVE_DECL_REMAINDERL
1501 GL_GENERATE_FNMATCH_H_FALSE
1502 GL_GENERATE_FNMATCH_H_TRUE
1505 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
1511 GL_GENERATE_FLOAT_H_FALSE
1512 GL_GENERATE_FLOAT_H_TRUE
1514 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1516 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1535 GL_GENERATE_ERRNO_H_FALSE
1536 GL_GENERATE_ERRNO_H_TRUE
1538 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1541 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1565 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1566 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1567 UNISTD_H_HAVE_WINSOCK2_H
1592 REPLACE_GETDTABLESIZE
1593 REPLACE_GETDOMAINNAME
1607 HAVE_DECL_SETHOSTNAME
1608 HAVE_DECL_GETUSERSHELL
1609 HAVE_DECL_GETPAGESIZE
1610 HAVE_DECL_GETLOGIN_R
1612 HAVE_DECL_GETDOMAINNAME
1647 HAVE_COPY_FILE_RANGE
1653 GNULIB_UNISTD_H_SIGPIPE
1654 GNULIB_UNISTD_H_NONBLOCKING
1683 GNULIB_GETDTABLESIZE
1684 GNULIB_GETDOMAINNAME
1697 GNULIB_COPY_FILE_RANGE
1720 REPLACE_CANONICALIZE_FILE_NAME
1725 HAVE_STRUCT_RANDOM_DATA
1755 HAVE_DECL_GETLOADAVG
1756 HAVE_CANONICALIZE_FILE_NAME
1768 GNULIB_SECURE_GETENV
1771 GNULIB_REALLOC_POSIX
1790 GNULIB_CANONICALIZE_FILE_NAME
1797 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1800 PRAGMA_SYSTEM_HEADER
1801 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1811 GL_GENERATE_ALLOCA_H_FALSE
1812 GL_GENERATE_ALLOCA_H_TRUE
1815 GL_COND_LIBTOOL_FALSE
1816 GL_COND_LIBTOOL_TRUE
1844 MAINTAINER_MODE_FALSE
1845 MAINTAINER_MODE_TRUE
1873 program_transform_name
1886 enable_option_checking
1887 enable_maintainer_mode
1891 enable_cross_guesses
1892 enable_dependency_tracking
1895 ac_precious_vars
='build_alias
1906 # Initialize some variables set by options.
1908 ac_init_version
=false
1909 ac_unrecognized_opts
=
1910 ac_unrecognized_sep
=
1911 # The variables have the same names as the options, with
1912 # dashes changed to underlines.
1913 cache_file
=/dev
/null
1920 program_transform_name
=s
,x
,x
,
1928 # Installation directory options.
1929 # These are left unexpanded so users can "make install exec_prefix=/foo"
1930 # and all the variables that are supposed to be based on exec_prefix
1931 # by default will actually change.
1932 # Use braces instead of parens because sh, perl, etc. also accept them.
1933 # (The list follows the same order as the GNU Coding Standards.)
1934 bindir
='${exec_prefix}/bin'
1935 sbindir
='${exec_prefix}/sbin'
1936 libexecdir
='${exec_prefix}/libexec'
1937 datarootdir
='${prefix}/share'
1938 datadir
='${datarootdir}'
1939 sysconfdir
='${prefix}/etc'
1940 sharedstatedir
='${prefix}/com'
1941 localstatedir
='${prefix}/var'
1942 includedir
='${prefix}/include'
1943 oldincludedir
='/usr/include'
1944 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1945 infodir
='${datarootdir}/info'
1950 libdir
='${exec_prefix}/lib'
1951 localedir
='${datarootdir}/locale'
1952 mandir
='${datarootdir}/man'
1958 # If the previous option needs an argument, assign it.
1959 if test -n "$ac_prev"; then
1960 eval $ac_prev=\
$ac_option
1966 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1971 # Accept the important Cygnus configure options, so we can diagnose typos.
1973 case $ac_dashdash$ac_option in
1977 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1979 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1980 bindir
=$ac_optarg ;;
1982 -build |
--build |
--buil |
--bui |
--bu)
1983 ac_prev
=build_alias
;;
1984 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1985 build_alias
=$ac_optarg ;;
1987 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1988 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1989 ac_prev
=cache_file
;;
1990 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1991 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1992 cache_file
=$ac_optarg ;;
1994 --config-cache |
-C)
1995 cache_file
=config.cache
;;
1997 -datadir |
--datadir |
--datadi |
--datad)
1999 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
2000 datadir
=$ac_optarg ;;
2002 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
2003 |
--dataroo |
--dataro |
--datar)
2004 ac_prev
=datarootdir
;;
2005 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
2006 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
2007 datarootdir
=$ac_optarg ;;
2009 -disable-* |
--disable-*)
2010 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2011 # Reject names that are not valid shell variable names.
2012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2013 as_fn_error $?
"invalid feature name: $ac_useropt"
2014 ac_useropt_orig
=$ac_useropt
2015 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2016 case $ac_user_opts in
2018 "enable_
$ac_useropt"
2020 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2021 ac_unrecognized_sep
=', ';;
2023 eval enable_
$ac_useropt=no
;;
2025 -docdir |
--docdir |
--docdi |
--doc |
--do)
2027 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
2028 docdir
=$ac_optarg ;;
2030 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
2032 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
2033 dvidir
=$ac_optarg ;;
2035 -enable-* |
--enable-*)
2036 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2037 # Reject names that are not valid shell variable names.
2038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2039 as_fn_error $?
"invalid feature name: $ac_useropt"
2040 ac_useropt_orig
=$ac_useropt
2041 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2042 case $ac_user_opts in
2044 "enable_
$ac_useropt"
2046 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2047 ac_unrecognized_sep
=', ';;
2049 eval enable_
$ac_useropt=\
$ac_optarg ;;
2051 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
2052 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
2053 |
--exec |
--exe |
--ex)
2054 ac_prev
=exec_prefix
;;
2055 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
2056 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
2057 |
--exec=* |
--exe=* |
--ex=*)
2058 exec_prefix
=$ac_optarg ;;
2060 -gas |
--gas |
--ga |
--g)
2061 # Obsolete; use --with-gas.
2064 -help |
--help |
--hel |
--he |
-h)
2065 ac_init_help
=long
;;
2066 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
2067 ac_init_help
=recursive
;;
2068 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
2069 ac_init_help
=short
;;
2071 -host |
--host |
--hos |
--ho)
2072 ac_prev
=host_alias
;;
2073 -host=* |
--host=* |
--hos=* |
--ho=*)
2074 host_alias
=$ac_optarg ;;
2076 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
2078 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
2080 htmldir
=$ac_optarg ;;
2082 -includedir |
--includedir |
--includedi |
--included |
--include \
2083 |
--includ |
--inclu |
--incl |
--inc)
2084 ac_prev
=includedir
;;
2085 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
2086 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
2087 includedir
=$ac_optarg ;;
2089 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
2091 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
2092 infodir
=$ac_optarg ;;
2094 -libdir |
--libdir |
--libdi |
--libd)
2096 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
2097 libdir
=$ac_optarg ;;
2099 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
2100 |
--libexe |
--libex |
--libe)
2101 ac_prev
=libexecdir
;;
2102 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
2103 |
--libexe=* |
--libex=* |
--libe=*)
2104 libexecdir
=$ac_optarg ;;
2106 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2107 ac_prev
=localedir
;;
2108 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2109 localedir
=$ac_optarg ;;
2111 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2112 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2113 ac_prev
=localstatedir
;;
2114 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2115 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2116 localstatedir
=$ac_optarg ;;
2118 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2120 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2121 mandir
=$ac_optarg ;;
2123 -nfp |
--nfp |
--nf)
2124 # Obsolete; use --without-fp.
2127 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2128 |
--no-cr |
--no-c |
-n)
2131 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2132 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2135 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2136 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2137 |
--oldin |
--oldi |
--old |
--ol |
--o)
2138 ac_prev
=oldincludedir
;;
2139 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2140 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2141 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2142 oldincludedir
=$ac_optarg ;;
2144 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2146 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2147 prefix
=$ac_optarg ;;
2149 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2150 |
--program-pre |
--program-pr |
--program-p)
2151 ac_prev
=program_prefix
;;
2152 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2153 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2154 program_prefix
=$ac_optarg ;;
2156 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2157 |
--program-suf |
--program-su |
--program-s)
2158 ac_prev
=program_suffix
;;
2159 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2160 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2161 program_suffix
=$ac_optarg ;;
2163 -program-transform-name |
--program-transform-name \
2164 |
--program-transform-nam |
--program-transform-na \
2165 |
--program-transform-n |
--program-transform- \
2166 |
--program-transform |
--program-transfor \
2167 |
--program-transfo |
--program-transf \
2168 |
--program-trans |
--program-tran \
2169 |
--progr-tra |
--program-tr |
--program-t)
2170 ac_prev
=program_transform_name
;;
2171 -program-transform-name=* |
--program-transform-name=* \
2172 |
--program-transform-nam=* |
--program-transform-na=* \
2173 |
--program-transform-n=* |
--program-transform-=* \
2174 |
--program-transform=* |
--program-transfor=* \
2175 |
--program-transfo=* |
--program-transf=* \
2176 |
--program-trans=* |
--program-tran=* \
2177 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2178 program_transform_name
=$ac_optarg ;;
2180 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2182 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2183 pdfdir
=$ac_optarg ;;
2185 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2187 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2190 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2191 |
-silent |
--silent |
--silen |
--sile |
--sil)
2194 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2196 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2198 sbindir
=$ac_optarg ;;
2200 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2201 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2202 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2204 ac_prev
=sharedstatedir
;;
2205 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2206 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2207 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2209 sharedstatedir
=$ac_optarg ;;
2211 -site |
--site |
--sit)
2213 -site=* |
--site=* |
--sit=*)
2216 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2218 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2219 srcdir
=$ac_optarg ;;
2221 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2222 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2223 ac_prev
=sysconfdir
;;
2224 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2225 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2226 sysconfdir
=$ac_optarg ;;
2228 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2229 ac_prev
=target_alias
;;
2230 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2231 target_alias
=$ac_optarg ;;
2233 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2236 -version |
--version |
--versio |
--versi |
--vers |
-V)
2237 ac_init_version
=: ;;
2240 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2241 # Reject names that are not valid shell variable names.
2242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2243 as_fn_error $?
"invalid package name: $ac_useropt"
2244 ac_useropt_orig
=$ac_useropt
2245 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2246 case $ac_user_opts in
2250 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2251 ac_unrecognized_sep
=', ';;
2253 eval with_
$ac_useropt=\
$ac_optarg ;;
2255 -without-* |
--without-*)
2256 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2257 # Reject names that are not valid shell variable names.
2258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2259 as_fn_error $?
"invalid package name: $ac_useropt"
2260 ac_useropt_orig
=$ac_useropt
2261 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2262 case $ac_user_opts in
2266 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2267 ac_unrecognized_sep
=', ';;
2269 eval with_
$ac_useropt=no
;;
2272 # Obsolete; use --with-x.
2275 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2276 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2277 ac_prev
=x_includes
;;
2278 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2279 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2280 x_includes
=$ac_optarg ;;
2282 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2283 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2284 ac_prev
=x_libraries
;;
2285 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2286 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2287 x_libraries
=$ac_optarg ;;
2289 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2290 Try \`$0 --help' for more information"
2294 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2295 # Reject names that are not valid shell variable names.
2296 case $ac_envvar in #(
2297 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2298 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2300 eval $ac_envvar=\
$ac_optarg
2301 export $ac_envvar ;;
2304 # FIXME: should be removed in autoconf 3.0.
2305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2314 if test -n "$ac_prev"; then
2315 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2316 as_fn_error $?
"missing argument to $ac_option"
2319 if test -n "$ac_unrecognized_opts"; then
2320 case $enable_option_checking in
2322 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2327 # Check all directory arguments for consistency.
2328 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2329 datadir sysconfdir sharedstatedir localstatedir includedir \
2330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2331 libdir localedir mandir
2333 eval ac_val
=\$
$ac_var
2334 # Remove trailing slashes.
2337 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2338 eval $ac_var=\
$ac_val;;
2340 # Be sure to have absolute directory names.
2342 [\\/$
]* | ?
:[\\/]* ) continue;;
2343 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2345 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2348 # There might be people who depend on the old broken behavior: `$host'
2349 # used to hold the argument of --host etc.
2350 # FIXME: To remove some day.
2353 target
=$target_alias
2355 # FIXME: To remove some day.
2356 if test "x$host_alias" != x
; then
2357 if test "x$build_alias" = x
; then
2358 cross_compiling
=maybe
2359 elif test "x$build_alias" != "x$host_alias"; then
2365 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2367 test "$silent" = yes && exec 6>/dev
/null
2370 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2371 ac_ls_di
=`ls -di .` &&
2372 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2373 as_fn_error $?
"working directory cannot be determined"
2374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2375 as_fn_error $?
"pwd does not report name of working directory"
2378 # Find the source files, if location was not specified.
2379 if test -z "$srcdir"; then
2380 ac_srcdir_defaulted
=yes
2381 # Try the directory containing this script, then the parent directory.
2382 ac_confdir
=`$as_dirname -- "$as_myself" ||
2383 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2384 X"$as_myself" : 'X\(//\)[^/]' \| \
2385 X"$as_myself" : 'X\(//\)$' \| \
2386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2387 $as_echo X"$as_myself" |
2388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2406 if test ! -r "$srcdir/$ac_unique_file"; then
2410 ac_srcdir_defaulted
=no
2412 if test ! -r "$srcdir/$ac_unique_file"; then
2413 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2414 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2416 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2420 # When building in place, set srcdir=.
2421 if test "$ac_abs_confdir" = "$ac_pwd"; then
2424 # Remove unnecessary trailing slashes from srcdir.
2425 # Double slashes in file names in object file debugging info
2426 # mess up M-x gdb in Emacs.
2428 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2430 for ac_var
in $ac_precious_vars; do
2431 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2432 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2433 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2434 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2438 # Report the --help message.
2440 if test "$ac_init_help" = "long"; then
2441 # Omit some internal or obsolete options to make the list less imposing.
2442 # This message is too long to be a string in the A/UX 3.1 sh.
2444 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2446 Usage: $0 [OPTION]... [VAR=VALUE]...
2448 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2449 VAR=VALUE. See below for descriptions of some of the useful variables.
2451 Defaults for the options are specified in brackets.
2454 -h, --help display this help and exit
2455 --help=short display options specific to this package
2456 --help=recursive display the short help of all the included packages
2457 -V, --version display version information and exit
2458 -q, --quiet, --silent do not print \`checking ...' messages
2459 --cache-file=FILE cache test results in FILE [disabled]
2460 -C, --config-cache alias for \`--cache-file=config.cache'
2461 -n, --no-create do not create output files
2462 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2464 Installation directories:
2465 --prefix=PREFIX install architecture-independent files in PREFIX
2466 [$ac_default_prefix]
2467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2470 By default, \`make install' will install all the files in
2471 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2472 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2473 for instance \`--prefix=\$HOME'.
2475 For better control, use the options below.
2477 Fine tuning of the installation directories:
2478 --bindir=DIR user executables [EPREFIX/bin]
2479 --sbindir=DIR system admin executables [EPREFIX/sbin]
2480 --libexecdir=DIR program executables [EPREFIX/libexec]
2481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2483 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2484 --libdir=DIR object code libraries [EPREFIX/lib]
2485 --includedir=DIR C header files [PREFIX/include]
2486 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2489 --infodir=DIR info documentation [DATAROOTDIR/info]
2490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2491 --mandir=DIR man documentation [DATAROOTDIR/man]
2492 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2493 --htmldir=DIR html documentation [DOCDIR]
2494 --dvidir=DIR dvi documentation [DOCDIR]
2495 --pdfdir=DIR pdf documentation [DOCDIR]
2496 --psdir=DIR ps documentation [DOCDIR]
2502 --program-prefix=PREFIX prepend PREFIX to installed program names
2503 --program-suffix=SUFFIX append SUFFIX to installed program names
2504 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2507 --build=BUILD configure
for building on BUILD
[guessed
]
2508 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2509 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2513 if test -n "$ac_init_help"; then
2514 case $ac_init_help in
2515 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2520 --disable-option-checking ignore unrecognized
--enable/--with options
2521 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2522 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2523 --enable-maintainer-mode
2524 enable make rules and dependencies not useful
(and
2525 sometimes confusing
) to the casual installer
2526 --enable-plugins Enable support
for plugins
2527 --disable-largefile omit support
for large files
2528 --enable-threads={isoc|posix|isoc
+posix|windows
}
2529 specify multithreading API
2530 --disable-threads build without multithread safety
2531 --enable-cross-guesses={conservative|risky
}
2532 specify policy
for cross-compilation guesses
2533 --enable-dependency-tracking
2534 do not reject slow dependency extractors
2535 --disable-dependency-tracking
2536 speeds up one-time build
2537 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2538 --disable-silent-rules verbose build output
(undo
: "make V=0")
2540 Some influential environment variables
:
2541 CC C compiler
command
2542 CFLAGS C compiler flags
2543 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2544 nonstandard directory
<lib dir
>
2545 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2546 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2547 you have headers
in a nonstandard directory
<include dir
>
2550 Use these variables to override the choices made by
`configure' or to help
2551 it to find libraries and programs with nonstandard names/locations.
2553 Report bugs to the package provider.
2558 if test "$ac_init_help" = "recursive"; then
2559 # If there are subdirs, report their specific --help.
2560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2561 test -d "$ac_dir" ||
2562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2569 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2570 # A ".." for each directory in $ac_dir_suffix.
2571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2572 case $ac_top_builddir_sub in
2573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2577 ac_abs_top_builddir=$ac_pwd
2578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2579 # for backward compatibility:
2580 ac_top_builddir=$ac_top_build_prefix
2583 .) # We are building in place.
2585 ac_top_srcdir=$ac_top_builddir_sub
2586 ac_abs_top_srcdir=$ac_pwd ;;
2587 [\\/]* | ?:[\\/]* ) # Absolute name.
2588 ac_srcdir=$srcdir$ac_dir_suffix;
2589 ac_top_srcdir=$srcdir
2590 ac_abs_top_srcdir=$srcdir ;;
2592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2593 ac_top_srcdir=$ac_top_build_prefix$srcdir
2594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2598 cd "$ac_dir" || { ac_status=$?; continue; }
2599 # Check for guested configure.
2600 if test -f "$ac_srcdir/configure.gnu"; then
2602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2603 elif test -f "$ac_srcdir/configure"; then
2605 $SHELL "$ac_srcdir/configure" --help=recursive
2607 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2609 cd "$ac_pwd" || { ac_status=$?; break; }
2613 test -n "$ac_init_help" && exit $ac_status
2614 if $ac_init_version; then
2616 libgnu configure UNUSED-VERSION
2617 generated by GNU Autoconf 2.69
2619 Copyright (C) 2012 Free Software Foundation, Inc.
2620 This configure script is free software; the Free Software Foundation
2621 gives unlimited permission to copy, distribute and modify it.
2626 ## ------------------------ ##
2627 ## Autoconf initialization. ##
2628 ## ------------------------ ##
2630 # ac_fn_c_try_compile LINENO
2631 # --------------------------
2632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2633 ac_fn_c_try_compile ()
2635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636 rm -f conftest.$ac_objext
2637 if { { ac_try="$ac_compile"
2639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2640 *) ac_try_echo
=$ac_try;;
2642 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2643 $as_echo "$ac_try_echo"; } >&5
2644 (eval "$ac_compile") 2>conftest.err
2646 if test -s conftest.err
; then
2647 grep -v '^ *+' conftest.err
>conftest.er1
2648 cat conftest.er1
>&5
2649 mv -f conftest.er1 conftest.err
2651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2652 test $ac_status = 0; } && {
2653 test -z "$ac_c_werror_flag" ||
2654 test ! -s conftest.err
2655 } && test -s conftest.
$ac_objext; then :
2658 $as_echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.
$ac_ext >&5
2663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2664 as_fn_set_status
$ac_retval
2666 } # ac_fn_c_try_compile
2668 # ac_fn_c_try_cpp LINENO
2669 # ----------------------
2670 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2673 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2674 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2680 $as_echo "$ac_try_echo"; } >&5
2681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2683 if test -s conftest.err; then
2684 grep -v '^ *+' conftest.err >conftest.er1
2685 cat conftest.er1 >&5
2686 mv -f conftest.er1 conftest.err
2688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689 test $ac_status = 0; } > conftest.i && {
2690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2691 test ! -s conftest.err
2695 $as_echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2701 as_fn_set_status $ac_retval
2705 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2706 # -------------------------------------------------------
2707 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2708 # the include files in INCLUDES and setting the cache variable VAR
2710 ac_fn_c_check_header_mongrel ()
2712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2713 if eval \${$3+:} false; then :
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2715 $as_echo_n "checking for $2... " >&6; }
2716 if eval \${$3+:} false; then :
2717 $as_echo_n "(cached) " >&6
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2723 # Is the header compilable?
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2725 $as_echo_n "checking $2 usability... " >&6; }
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2731 if ac_fn_c_try_compile "$LINENO"; then :
2732 ac_header_compiler=yes
2734 ac_header_compiler=no
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2738 $as_echo "$ac_header_compiler" >&6; }
2740 # Is the header present?
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2742 $as_echo_n "checking $2 presence... " >&6; }
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744 /* end confdefs.h. */
2747 if ac_fn_c_try_cpp "$LINENO"; then :
2748 ac_header_preproc=yes
2750 ac_header_preproc=no
2752 rm -f conftest.err conftest.i conftest.$ac_ext
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2754 $as_echo "$ac_header_preproc" >&6; }
2756 # So? What about this header?
2757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2760 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2762 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2766 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2768 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2770 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2772 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2774 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2778 $as_echo_n "checking for $2... " >&6; }
2779 if eval \${$3+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 eval "$3=\$ac_header_compiler"
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2786 $as_echo "$ac_res" >&6; }
2788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790 } # ac_fn_c_check_header_mongrel
2792 # ac_fn_c_try_run LINENO
2793 # ----------------------
2794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2795 # that executables *can* be run.
2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799 if { { ac_try="$ac_link"
2801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2802 *) ac_try_echo
=$ac_try;;
2804 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2805 $as_echo "$ac_try_echo"; } >&5
2806 (eval "$ac_link") 2>&5
2808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2809 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2810 { { case "(($ac_try" in
2811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815 $as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_try") 2>&5
2818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; }; }; then :
2822 $as_echo "$as_me: program exited with status $ac_status" >&5
2823 $as_echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 ac_retval=$ac_status
2828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2830 as_fn_set_status $ac_retval
2834 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2835 # -------------------------------------------------------
2836 # Tests whether HEADER exists and can be compiled using the include files in
2837 # INCLUDES, setting the cache variable VAR accordingly.
2838 ac_fn_c_check_header_compile ()
2840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2842 $as_echo_n "checking for $2... " >&6; }
2843 if eval \${$3+:} false; then :
2844 $as_echo_n "(cached) " >&6
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2851 if ac_fn_c_try_compile "$LINENO"; then :
2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2860 $as_echo "$ac_res" >&6; }
2861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2863 } # ac_fn_c_check_header_compile
2865 # ac_fn_c_try_link LINENO
2866 # -----------------------
2867 # Try to link conftest.$ac_ext, and return whether this succeeded.
2870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2871 rm -f conftest.$ac_objext conftest$ac_exeext
2872 if { { ac_try="$ac_link"
2874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2875 *) ac_try_echo
=$ac_try;;
2877 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878 $as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_link") 2>conftest.err
2881 if test -s conftest.err
; then
2882 grep -v '^ *+' conftest.err
>conftest.er1
2883 cat conftest.er1
>&5
2884 mv -f conftest.er1 conftest.err
2886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2887 test $ac_status = 0; } && {
2888 test -z "$ac_c_werror_flag" ||
2889 test ! -s conftest.err
2890 } && test -s conftest
$ac_exeext && {
2891 test "$cross_compiling" = yes ||
2892 test -x conftest
$ac_exeext
2896 $as_echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.
$ac_ext >&5
2901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2903 # interfere with the next link command; also delete a directory that is
2904 # left behind by Apple's compiler. We do this before executing the actions.
2905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2907 as_fn_set_status
$ac_retval
2909 } # ac_fn_c_try_link
2911 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2912 # -------------------------------------------
2913 # Tests whether TYPE exists after having included INCLUDES, setting cache
2914 # variable VAR accordingly.
2915 ac_fn_c_check_type
()
2917 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2919 $as_echo_n "checking for $2... " >&6; }
2920 if eval \
${$3+:} false
; then :
2921 $as_echo_n "(cached) " >&6
2924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2936 if ac_fn_c_try_compile
"$LINENO"; then :
2937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h. */
2949 if ac_fn_c_try_compile
"$LINENO"; then :
2954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2960 $as_echo "$ac_res" >&6; }
2961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2963 } # ac_fn_c_check_type
2965 # ac_fn_c_check_func LINENO FUNC VAR
2966 # ----------------------------------
2967 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2968 ac_fn_c_check_func
()
2970 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2972 $as_echo_n "checking for $2... " >&6; }
2973 if eval \
${$3+:} false
; then :
2974 $as_echo_n "(cached) " >&6
2976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2978 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2980 #define $2 innocuous_$2
2982 /* System header to define __stub macros and hopefully few prototypes,
2983 which can conflict with char $2 (); below.
2984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2985 <limits.h> exists even on freestanding compilers. */
2988 # include <limits.h>
2990 # include <assert.h>
2995 /* Override any GCC internal prototype to avoid an error.
2996 Use char because int might match the return type of a GCC
2997 builtin and then its argument prototype would still apply. */
3002 /* The GNU C library defines this for functions which it implements
3003 to always fail with ENOSYS. Some functions are actually named
3004 something starting with __ and the normal name is an alias. */
3005 #if defined __stub_$2 || defined __stub___$2
3017 if ac_fn_c_try_link
"$LINENO"; then :
3022 rm -f core conftest.err conftest.
$ac_objext \
3023 conftest
$ac_exeext conftest.
$ac_ext
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3027 $as_echo "$ac_res" >&6; }
3028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3030 } # ac_fn_c_check_func
3032 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3033 # ---------------------------------------------
3034 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3036 ac_fn_c_check_decl
()
3038 ac_save_ac_compile
="$ac_compile"
3039 if test -n "$ac_compile_for_check_decl"; then
3040 ac_compile
="$ac_compile_for_check_decl"
3042 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3043 as_decl_name
=`echo $2|sed 's/ *(.*//'`
3044 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3046 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3047 if eval \
${$3+:} false
; then :
3048 $as_echo_n "(cached) " >&6
3050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h. */
3056 #ifndef $as_decl_name
3058 (void) $as_decl_use;
3060 (void) $as_decl_name;
3068 if ac_fn_c_try_compile
"$LINENO"; then :
3073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3077 $as_echo "$ac_res" >&6; }
3078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3079 ac_compile
="$ac_save_ac_compile"
3081 } # ac_fn_c_check_decl
3083 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3084 # --------------------------------------------
3085 # Tries to find the compile-time value of EXPR in a program that includes
3086 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3088 ac_fn_c_compute_int
()
3090 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3091 if test "$cross_compiling" = yes; then
3092 # Depending upon the size, compute the lo and hi bounds.
3093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3099 static int test_array [1 - 2 * !(($2) >= 0)];
3101 return test_array [0];
3107 if ac_fn_c_try_compile
"$LINENO"; then :
3110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3116 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3118 return test_array [0];
3124 if ac_fn_c_try_compile
"$LINENO"; then :
3125 ac_hi
=$ac_mid; break
3127 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3128 if test $ac_lo -le $ac_mid; then
3132 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3143 static int test_array [1 - 2 * !(($2) < 0)];
3145 return test_array [0];
3151 if ac_fn_c_try_compile
"$LINENO"; then :
3154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3160 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3162 return test_array [0];
3168 if ac_fn_c_try_compile
"$LINENO"; then :
3169 ac_lo
=$ac_mid; break
3171 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3172 if test $ac_mid -le $ac_hi; then
3176 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3186 # Binary search between lo and hi bounds.
3187 while test "x$ac_lo" != "x$ac_hi"; do
3188 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3195 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3197 return test_array [0];
3203 if ac_fn_c_try_compile
"$LINENO"; then :
3206 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3211 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3218 static long int longval () { return $2; }
3219 static unsigned long int ulongval () { return $2; }
3226 FILE *f = fopen ("conftest.val", "w");
3231 long int i = longval ();
3234 fprintf (f, "%ld", i);
3238 unsigned long int i = ulongval ();
3241 fprintf (f, "%lu", i);
3243 /* Do not output a trailing newline, as this causes \r\n confusion
3244 on some platforms. */
3245 return ferror (f) || fclose (f) != 0;
3251 if ac_fn_c_try_run
"$LINENO"; then :
3252 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3256 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3257 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3262 as_fn_set_status
$ac_retval
3264 } # ac_fn_c_compute_int
3266 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3267 # ----------------------------------------------------
3268 # Tries to find if the field MEMBER exists in type AGGR, after including
3269 # INCLUDES, setting cache variable VAR accordingly.
3270 ac_fn_c_check_member
()
3272 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3274 $as_echo_n "checking for $2.$3... " >&6; }
3275 if eval \
${$4+:} false
; then :
3276 $as_echo_n "(cached) " >&6
3278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3291 if ac_fn_c_try_compile
"$LINENO"; then :
3294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3301 if (sizeof ac_aggr.$3)
3307 if ac_fn_c_try_compile
"$LINENO"; then :
3312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3318 $as_echo "$ac_res" >&6; }
3319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3321 } # ac_fn_c_check_member
3322 cat >config.log
<<_ACEOF
3323 This file contains any messages produced by compilers while
3324 running configure, to aid debugging if configure makes a mistake.
3326 It was created by libgnu $as_me UNUSED-VERSION, which was
3327 generated by GNU Autoconf 2.69. Invocation command line was
3339 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3340 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3341 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3342 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3343 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3345 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3346 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3348 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3349 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3350 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3351 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3352 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3353 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3354 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir
=.
3363 $as_echo "PATH: $as_dir"
3379 # Keep a trace of the command line.
3380 # Strip out --no-create and --no-recursion so they do not pile up.
3381 # Strip out --silent because we don't want to record it for future runs.
3382 # Also quote any args containing shell meta-characters.
3383 # Make two passes to allow for proper duplicate-argument suppression.
3387 ac_must_keep_next
=false
3393 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3394 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3395 |
-silent |
--silent |
--silen |
--sile |
--sil)
3398 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3401 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3403 as_fn_append ac_configure_args1
" '$ac_arg'"
3404 if test $ac_must_keep_next = true
; then
3405 ac_must_keep_next
=false
# Got value, back to normal.
3408 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3409 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3410 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3411 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3412 case "$ac_configure_args0 " in
3413 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3416 -* ) ac_must_keep_next
=true
;;
3419 as_fn_append ac_configure_args
" '$ac_arg'"
3424 { ac_configure_args0
=; unset ac_configure_args0
;}
3425 { ac_configure_args1
=; unset ac_configure_args1
;}
3427 # When interrupted or exit'd, cleanup temporary files, and complete
3428 # config.log. We remove comments because anyway the quotes in there
3429 # would cause problems or look ugly.
3430 # WARNING: Use '\'' to represent an apostrophe within the trap.
3431 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3432 trap 'exit_status=$?
3433 # Save into config.log some information that might help in debugging.
3437 $as_echo "## ---------------- ##
3438 ## Cache variables. ##
3439 ## ---------------- ##"
3441 # The following way of writing the cache mishandles newlines in values,
3443 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3444 eval ac_val=\$$ac_var
3448 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3449 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3452 _ | IFS | as_nl) ;; #(
3453 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3454 *) { eval $ac_var=; unset $ac_var;} ;;
3459 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3460 *${as_nl}ac_space=\ *)
3462 "s/'\''/'\''\\\\'\'''\''/g;
3463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3466 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3473 $as_echo "## ----------------- ##
3474 ## Output variables. ##
3475 ## ----------------- ##"
3477 for ac_var in $ac_subst_vars
3479 eval ac_val=\$$ac_var
3481 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3483 $as_echo "$ac_var='\''$ac_val'\''"
3487 if test -n "$ac_subst_files"; then
3488 $as_echo "## ------------------- ##
3489 ## File substitutions. ##
3490 ## ------------------- ##"
3492 for ac_var
in $ac_subst_files
3494 eval ac_val
=\$
$ac_var
3496 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3498 $as_echo "$ac_var='\''$ac_val'\''"
3503 if test -s confdefs.h; then
3504 $as_echo "## ----------- ##
3511 test "$ac_signal" != 0 &&
3512 $as_echo "$as_me: caught signal $ac_signal"
3513 $as_echo "$as_me: exit $exit_status"
3515 rm -f core *.core core.conftest.* &&
3516 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3519 for ac_signal
in 1 2 13 15; do
3520 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3525 rm -f -r conftest
* confdefs.h
3527 $as_echo "/* confdefs.h */" > confdefs.h
3529 # Predefined preprocessor variables.
3531 cat >>confdefs.h
<<_ACEOF
3532 #define PACKAGE_NAME "$PACKAGE_NAME"
3535 cat >>confdefs.h
<<_ACEOF
3536 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3539 cat >>confdefs.h
<<_ACEOF
3540 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3543 cat >>confdefs.h
<<_ACEOF
3544 #define PACKAGE_STRING "$PACKAGE_STRING"
3547 cat >>confdefs.h
<<_ACEOF
3548 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3551 cat >>confdefs.h
<<_ACEOF
3552 #define PACKAGE_URL "$PACKAGE_URL"
3556 # Let the site file select an alternate cache file if it wants to.
3557 # Prefer an explicitly selected file to automatically selected ones.
3560 if test -n "$CONFIG_SITE"; then
3561 # We do not want a PATH search for config.site.
3562 case $CONFIG_SITE in #((
3563 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3564 */*) ac_site_file1
=$CONFIG_SITE;;
3565 *) ac_site_file1
=.
/$CONFIG_SITE;;
3567 elif test "x$prefix" != xNONE
; then
3568 ac_site_file1
=$prefix/share
/config.site
3569 ac_site_file2
=$prefix/etc
/config.site
3571 ac_site_file1
=$ac_default_prefix/share
/config.site
3572 ac_site_file2
=$ac_default_prefix/etc
/config.site
3574 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3576 test "x$ac_site_file" = xNONE
&& continue
3577 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3579 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3580 sed 's/^/| /' "$ac_site_file" >&5
3582 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $?
"failed to load site script $ac_site_file
3585 See \`config.log' for more details" "$LINENO" 5; }
3589 if test -r "$cache_file"; then
3590 # Some versions of bash will fail to source /dev/null (special files
3591 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3592 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3594 $as_echo "$as_me: loading cache $cache_file" >&6;}
3596 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3597 *) .
"./$cache_file";;
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3602 $as_echo "$as_me: creating cache $cache_file" >&6;}
3606 as_fn_append ac_header_list
" arpa/inet.h"
3607 as_fn_append ac_header_list
" features.h"
3608 as_fn_append ac_header_list
" sys/socket.h"
3609 as_fn_append ac_func_list
" canonicalize_file_name"
3610 as_fn_append ac_func_list
" getcwd"
3611 as_fn_append ac_func_list
" readlink"
3612 as_fn_append ac_func_list
" realpath"
3613 as_fn_append ac_header_list
" sys/param.h"
3614 as_fn_append ac_header_list
" unistd.h"
3615 as_fn_append ac_func_list
" _set_invalid_parameter_handler"
3616 as_fn_append ac_func_list
" fchdir"
3617 as_fn_append ac_header_list
" dirent.h"
3618 as_fn_append ac_func_list
" fcntl"
3619 as_fn_append ac_func_list
" symlink"
3620 as_fn_append ac_func_list
" fdopendir"
3621 as_fn_append ac_func_list
" mempcpy"
3622 as_fn_append ac_header_list
" fnmatch.h"
3623 as_fn_append ac_func_list
" fnmatch"
3624 as_fn_append ac_func_list
" btowc"
3625 as_fn_append ac_func_list
" isblank"
3626 as_fn_append ac_func_list
" iswctype"
3627 as_fn_append ac_func_list
" mbsrtowcs"
3628 as_fn_append ac_func_list
" wmemchr"
3629 as_fn_append ac_func_list
" wmemcpy"
3630 as_fn_append ac_func_list
" wmempcpy"
3631 as_fn_append ac_header_list
" wctype.h"
3632 gl_fnmatch_required
=GNU
3633 as_fn_append ac_header_list
" sys/stat.h"
3634 as_fn_append ac_func_list
" fstatat"
3635 as_fn_append ac_func_list
" getdtablesize"
3636 as_fn_append ac_func_list
" getlogin_r"
3637 as_fn_append ac_func_list
" getprogname"
3638 as_fn_append ac_func_list
" getexecname"
3639 as_fn_append ac_header_list
" sys/time.h"
3640 as_fn_append ac_func_list
" gettimeofday"
3641 as_fn_append ac_header_list
" glob.h"
3642 as_fn_append ac_func_list
" glob"
3643 as_fn_append ac_func_list
" glob_pattern_p"
3644 as_fn_append ac_func_list
" getpwnam_r"
3645 as_fn_append ac_header_list
" threads.h"
3646 as_fn_append ac_header_list
" netdb.h"
3647 as_fn_append ac_header_list
" netinet/in.h"
3648 as_fn_append ac_header_list
" limits.h"
3649 as_fn_append ac_header_list
" wchar.h"
3650 as_fn_append ac_header_list
" stdint.h"
3651 as_fn_append ac_header_list
" inttypes.h"
3652 as_fn_append ac_header_list
" xlocale.h"
3653 as_fn_append ac_func_list
" lstat"
3654 as_fn_append ac_header_list
" math.h"
3655 as_fn_append ac_func_list
" mbsinit"
3656 as_fn_append ac_func_list
" mbrtowc"
3657 as_fn_append ac_header_list
" sys/mman.h"
3658 as_fn_append ac_func_list
" mprotect"
3659 as_fn_append ac_func_list
" mkostemp"
3660 as_fn_append ac_func_list
" openat"
3661 as_fn_append ac_func_list
" link"
3662 as_fn_append ac_func_list
" setenv"
3663 as_fn_append ac_func_list
" strdup"
3664 as_fn_append ac_func_list
" strerror_r"
3665 as_fn_append ac_func_list
" __xpg_strerror_r"
3666 as_fn_append ac_func_list
" catgets"
3667 as_fn_append ac_func_list
" snprintf"
3668 as_fn_append ac_header_list
" sys/uio.h"
3669 as_fn_append ac_func_list
" localtime_r"
3670 as_fn_append ac_func_list
" pipe"
3671 as_fn_append ac_header_list
" crtdefs.h"
3672 as_fn_append ac_func_list
" iswcntrl"
3673 # Check that the precious variables saved in the cache have kept the same
3675 ac_cache_corrupted
=false
3676 for ac_var
in $ac_precious_vars; do
3677 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3678 eval ac_new_set
=\
$ac_env_${ac_var}_set
3679 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3680 eval ac_new_val
=\
$ac_env_${ac_var}_value
3681 case $ac_old_set,$ac_new_set in
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3684 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3685 ac_cache_corrupted
=: ;;
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3688 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3689 ac_cache_corrupted
=: ;;
3692 if test "x$ac_old_val" != "x$ac_new_val"; then
3693 # differences in whitespace do not lead to failure.
3694 ac_old_val_w
=`echo x $ac_old_val`
3695 ac_new_val_w
=`echo x $ac_new_val`
3696 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3698 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3699 ac_cache_corrupted
=:
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3702 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3703 eval $ac_var=\
$ac_old_val
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3706 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3708 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3711 # Pass precious variables to config.status.
3712 if test "$ac_new_set" = set; then
3714 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3715 *) ac_arg
=$ac_var=$ac_new_val ;;
3717 case " $ac_configure_args " in
3718 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3719 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3723 if $ac_cache_corrupted; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3727 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3728 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3730 ## -------------------- ##
3731 ## Main body of script. ##
3732 ## -------------------- ##
3735 ac_cpp
='$CPP $CPPFLAGS'
3736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3745 ac_config_headers
="$ac_config_headers config.h:config.in"
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3751 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3752 # Check whether --enable-maintainer-mode was given.
3753 if test "${enable_maintainer_mode+set}" = set; then :
3754 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3756 USE_MAINTAINER_MODE
=no
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3760 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3761 if test $USE_MAINTAINER_MODE = yes; then
3762 MAINTAINER_MODE_TRUE
=
3763 MAINTAINER_MODE_FALSE
='#'
3765 MAINTAINER_MODE_TRUE
='#'
3766 MAINTAINER_MODE_FALSE
=
3769 MAINT
=$MAINTAINER_MODE_TRUE
3774 ac_cpp
='$CPP $CPPFLAGS'
3775 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3778 if test -n "$ac_tool_prefix"; then
3779 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3780 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_CC+:} false
; then :
3784 $as_echo_n "(cached) " >&6
3786 if test -n "$CC"; then
3787 ac_cv_prog_CC
="$CC" # Let the user override the test.
3789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3793 test -z "$as_dir" && as_dir
=.
3794 for ac_exec_ext
in '' $ac_executable_extensions; do
3795 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3796 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 if test -n "$CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3809 $as_echo "$CC" >&6; }
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3817 if test -z "$ac_cv_prog_CC"; then
3819 # Extract the first word of "gcc", so it can be a program name with args.
3820 set dummy gcc
; ac_word
=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3824 $as_echo_n "(cached) " >&6
3826 if test -n "$ac_ct_CC"; then
3827 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3833 test -z "$as_dir" && as_dir
=.
3834 for ac_exec_ext
in '' $ac_executable_extensions; do
3835 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3836 ac_cv_prog_ac_ct_CC
="gcc"
3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3847 if test -n "$ac_ct_CC"; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3849 $as_echo "$ac_ct_CC" >&6; }
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3855 if test "x$ac_ct_CC" = x
; then
3858 case $cross_compiling:$ac_tool_warned in
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3862 ac_tool_warned
=yes ;;
3870 if test -z "$CC"; then
3871 if test -n "$ac_tool_prefix"; then
3872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3873 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_prog_CC+:} false
; then :
3877 $as_echo_n "(cached) " >&6
3879 if test -n "$CC"; then
3880 ac_cv_prog_CC
="$CC" # Let the user override the test.
3882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir
=.
3887 for ac_exec_ext
in '' $ac_executable_extensions; do
3888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 if test -n "$CC"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3902 $as_echo "$CC" >&6; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3911 if test -z "$CC"; then
3912 # Extract the first word of "cc", so it can be a program name with args.
3913 set dummy cc
; ac_word
=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_CC+:} false
; then :
3917 $as_echo_n "(cached) " >&6
3919 if test -n "$CC"; then
3920 ac_cv_prog_CC
="$CC" # Let the user override the test.
3923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir
=.
3928 for ac_exec_ext
in '' $ac_executable_extensions; do
3929 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3930 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3931 ac_prog_rejected
=yes
3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 if test $ac_prog_rejected = yes; then
3943 # We found a bogon in the path, so make sure we never use it.
3944 set dummy
$ac_cv_prog_CC
3946 if test $# != 0; then
3947 # We chose a different compiler from the bogus one.
3948 # However, it has the same basename, so the bogon will be chosen
3949 # first if we set CC to just the basename; use the full file name.
3951 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3957 if test -n "$CC"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3959 $as_echo "$CC" >&6; }
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3967 if test -z "$CC"; then
3968 if test -n "$ac_tool_prefix"; then
3969 for ac_prog
in cl.exe
3971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3972 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974 $as_echo_n "checking for $ac_word... " >&6; }
3975 if ${ac_cv_prog_CC+:} false
; then :
3976 $as_echo_n "(cached) " >&6
3978 if test -n "$CC"; then
3979 ac_cv_prog_CC
="$CC" # Let the user override the test.
3981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3985 test -z "$as_dir" && as_dir
=.
3986 for ac_exec_ext
in '' $ac_executable_extensions; do
3987 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 if test -n "$CC"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001 $as_echo "$CC" >&6; }
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 $as_echo "no" >&6; }
4008 test -n "$CC" && break
4011 if test -z "$CC"; then
4013 for ac_prog
in cl.exe
4015 # Extract the first word of "$ac_prog", so it can be a program name with args.
4016 set dummy
$ac_prog; ac_word
=$2
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 $as_echo_n "checking for $ac_word... " >&6; }
4019 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4020 $as_echo_n "(cached) " >&6
4022 if test -n "$ac_ct_CC"; then
4023 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir
=.
4030 for ac_exec_ext
in '' $ac_executable_extensions; do
4031 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4032 ac_cv_prog_ac_ct_CC
="$ac_prog"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4043 if test -n "$ac_ct_CC"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4045 $as_echo "$ac_ct_CC" >&6; }
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4052 test -n "$ac_ct_CC" && break
4055 if test "x$ac_ct_CC" = x
; then
4058 case $cross_compiling:$ac_tool_warned in
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4062 ac_tool_warned
=yes ;;
4069 if test -z "$CC"; then
4070 if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4072 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if ${ac_cv_prog_CC+:} false
; then :
4076 $as_echo_n "(cached) " >&6
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC
="$CC" # Let the user override the test.
4081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4085 test -z "$as_dir" && as_dir
=.
4086 for ac_exec_ext
in '' $ac_executable_extensions; do
4087 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_CC
="${ac_tool_prefix}clang"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 if test -n "$CC"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4109 if test -z "$ac_cv_prog_CC"; then
4111 # Extract the first word of "clang", so it can be a program name with args.
4112 set dummy clang
; ac_word
=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4116 $as_echo_n "(cached) " >&6
4118 if test -n "$ac_ct_CC"; then
4119 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir
=.
4126 for ac_exec_ext
in '' $ac_executable_extensions; do
4127 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_ac_ct_CC
="clang"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4139 if test -n "$ac_ct_CC"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4141 $as_echo "$ac_ct_CC" >&6; }
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4147 if test "x$ac_ct_CC" = x
; then
4150 case $cross_compiling:$ac_tool_warned in
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154 ac_tool_warned
=yes ;;
4165 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4167 as_fn_error $?
"no acceptable C compiler found in \$PATH
4168 See \`config.log' for more details" "$LINENO" 5; }
4170 # Provide some information about the compiler.
4171 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4174 for ac_option
in --version -v -V -qversion -version; do
4175 { { ac_try
="$ac_compiler $ac_option >&5"
4177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4184 if test -s conftest.err; then
4186 ... rest of stderr output deleted ...
4187 10q' conftest.err >conftest.er1
4188 cat conftest.er1 >&5
4190 rm -f conftest.er1 conftest.err
4191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4192 test $ac_status = 0; }
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4206 ac_clean_files_save=$ac_clean_files
4207 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4208 # Try to create an executable without -o first, disregard a.out.
4209 # It will help us diagnose broken compilers, and finding out an intuition
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4212 $as_echo_n "checking whether the C compiler works... " >&6; }
4213 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4215 # The possible output files:
4216 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4219 for ac_file in $ac_files
4222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4223 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4228 if { { ac_try="$ac_link_default"
4230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4231 *) ac_try_echo
=$ac_try;;
4233 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4234 $as_echo "$ac_try_echo"; } >&5
4235 (eval "$ac_link_default") 2>&5
4237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238 test $ac_status = 0; }; then :
4239 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4240 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4241 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4242 # so that the user can short-circuit this test for compilers unknown to
4244 for ac_file
in $ac_files ''
4246 test -f "$ac_file" ||
continue
4248 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4251 # We found the default executable, but exeext='' is most
4255 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4257 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4259 # We set ac_cv_exeext here because the later test for it is not
4260 # safe: cross compilers may not add the suffix if given an `-o'
4261 # argument, so we may need to know it at that point already.
4262 # Even if this section looks crufty: it has the advantage of
4269 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4274 if test -z "$ac_file"; then :
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4277 $as_echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.
$ac_ext >&5
4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282 as_fn_error
77 "C compiler cannot create executables
4283 See \`config.log' for more details" "$LINENO" 5; }
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4286 $as_echo "yes" >&6; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4289 $as_echo_n "checking for C compiler default output file name... " >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4291 $as_echo "$ac_file" >&6; }
4292 ac_exeext
=$ac_cv_exeext
4294 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4295 ac_clean_files
=$ac_clean_files_save
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4297 $as_echo_n "checking for suffix of executables... " >&6; }
4298 if { { ac_try
="$ac_link"
4300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_link") 2>&5
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }; then :
4309 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4310 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4311 # work properly (i.e., refer to `conftest.exe'), while it won't with
4313 for ac_file
in conftest.exe conftest conftest.
*; do
4314 test -f "$ac_file" ||
continue
4316 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4317 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4326 See \`config.log' for more details" "$LINENO" 5; }
4328 rm -f conftest conftest
$ac_cv_exeext
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4330 $as_echo "$ac_cv_exeext" >&6; }
4332 rm -f conftest.
$ac_ext
4333 EXEEXT
=$ac_cv_exeext
4335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4341 FILE *f = fopen ("conftest.out", "w");
4342 return ferror (f) || fclose (f) != 0;
4348 ac_clean_files
="$ac_clean_files conftest.out"
4349 # Check that the compiler produces executables we can run. If not, either
4350 # the compiler is broken, or we cross compile.
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4352 $as_echo_n "checking whether we are cross compiling... " >&6; }
4353 if test "$cross_compiling" != yes; then
4354 { { ac_try
="$ac_link"
4356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360 $as_echo "$ac_try_echo"; } >&5
4361 (eval "$ac_link") 2>&5
4363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4364 test $ac_status = 0; }
4365 if { ac_try='./conftest$ac_cv_exeext'
4366 { { case "(($ac_try" in
4367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4368 *) ac_try_echo
=$ac_try;;
4370 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 $as_echo "$ac_try_echo"; } >&5
4372 (eval "$ac_try") 2>&5
4374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; }; }; then
4378 if test "$cross_compiling" = maybe
; then
4381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4383 as_fn_error $?
"cannot run C compiled programs.
4384 If you meant to cross compile, use \`--host'.
4385 See \`config.log' for more details" "$LINENO" 5; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4390 $as_echo "$cross_compiling" >&6; }
4392 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4393 ac_clean_files
=$ac_clean_files_save
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4395 $as_echo_n "checking for suffix of object files... " >&6; }
4396 if ${ac_cv_objext+:} false
; then :
4397 $as_echo_n "(cached) " >&6
4399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4410 rm -f conftest.o conftest.obj
4411 if { { ac_try
="$ac_compile"
4413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_compile") 2>&5
4420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421 test $ac_status = 0; }; then :
4422 for ac_file in conftest.o conftest.obj conftest.*; do
4423 test -f "$ac_file" || continue;
4425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4426 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4431 $as_echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4436 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4437 See \
`config.log' for more details" "$LINENO" 5; }
4439 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4442 $as_echo "$ac_cv_objext" >&6; }
4443 OBJEXT=$ac_cv_objext
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4446 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4447 if ${ac_cv_c_compiler_gnu+:} false; then :
4448 $as_echo_n "(cached) " >&6
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4464 if ac_fn_c_try_compile "$LINENO"; then :
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4474 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4475 if test $ac_compiler_gnu = yes; then
4480 ac_test_CFLAGS=${CFLAGS+set}
4481 ac_save_CFLAGS=$CFLAGS
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4483 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4484 if ${ac_cv_prog_cc_g+:} false; then :
4485 $as_echo_n "(cached) " >&6
4487 ac_save_c_werror_flag=$ac_c_werror_flag
4488 ac_c_werror_flag=yes
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4502 if ac_fn_c_try_compile "$LINENO"; then :
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4517 if ac_fn_c_try_compile "$LINENO"; then :
4520 ac_c_werror_flag=$ac_save_c_werror_flag
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4533 if ac_fn_c_try_compile "$LINENO"; then :
4536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 ac_c_werror_flag=$ac_save_c_werror_flag
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4544 $as_echo "$ac_cv_prog_cc_g" >&6; }
4545 if test "$ac_test_CFLAGS" = set; then
4546 CFLAGS=$ac_save_CFLAGS
4547 elif test $ac_cv_prog_cc_g = yes; then
4548 if test "$GCC" = yes; then
4554 if test "$GCC" = yes; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4561 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
4562 if ${ac_cv_prog_cc_c11+:} false; then :
4563 $as_echo_n "(cached) " >&6
4565 ac_cv_prog_cc_c11=no
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4570 #include <stdbool.h>
4576 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4577 #define debug(...) fprintf (stderr, __VA_ARGS__)
4578 #define showlist(...) puts (#__VA_ARGS__)
4579 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4581 test_varargs_macros (void)
4586 debug ("X = %d\n", x);
4587 showlist (The first, second, and third items.);
4588 report (x>y, "x is %d but y is %d", x, y);
4591 // Check long long types.
4592 #define BIG64 18446744073709551615ull
4593 #define BIG32 4294967295ul
4594 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4596 your preprocessor is broken;
4600 your preprocessor is broken;
4602 static long long int bignum = -9223372036854775807LL;
4603 static unsigned long long int ubignum = BIG64;
4605 struct incomplete_array
4613 const wchar_t *name;
4617 typedef const char *ccp;
4620 test_restrict (ccp restrict text)
4622 // See if C++-style comments work.
4623 // Iterate through items via the restricted pointer.
4624 // Also check for declarations in for loops.
4625 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4630 // Check varargs and va_copy.
4632 test_varargs (const char *format, ...)
4635 va_start (args, format);
4637 va_copy (args_copy, args);
4639 const char *str = "";
4648 str = va_arg (args_copy, const char *);
4651 number = va_arg (args_copy, int);
4654 fnumber = va_arg (args_copy, double);
4663 return *str && number && fnumber;
4666 char _Alignas (double) aligned_as_double;
4667 char _Alignas (0) no_special_alignment;
4668 extern char aligned_as_int;
4669 char _Alignas (0) _Alignas (int) aligned_as_int;
4674 int_alignment = _Alignof (int),
4675 int_array_alignment = _Alignof (int[100]),
4676 char_alignment = _Alignof (char)
4678 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4681 int _Noreturn does_not_return (void) { for (;;) continue; }
4683 // Check _Static_assert.
4684 struct test_static_assert
4687 _Static_assert (sizeof (int) <= sizeof (long int),
4688 "_Static_assert does not work in struct");
4692 // Check UTF-8 literals.
4693 #define u8 syntax error!
4694 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4696 // Check duplicate typedefs.
4697 typedef long *long_ptr;
4698 typedef long int *long_ptr;
4699 typedef long_ptr long_ptr;
4701 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4705 struct { int i; int j; };
4706 struct { int k; long int l; } w;
4716 _Bool success = false;
4719 if (test_restrict ("String literal") == 0)
4721 char *restrict newvar = "Another string";
4724 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4725 test_varargs_macros ();
4727 // Check flexible array members.
4728 struct incomplete_array *ia =
4729 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4731 for (int i = 0; i < ia->datasize; ++i)
4732 ia->data[i] = i * 1.234;
4734 // Check named initializers.
4735 struct named_init ni = {
4737 .name = L"Test wide string",
4738 .average = 543.34343,
4743 int dynamic_array[ni.number];
4744 dynamic_array[ni.number - 1] = 543;
4746 // work around unused variable warnings
4747 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4748 || dynamic_array[ni.number - 1] != 543);
4752 _Static_assert ((offsetof (struct anonymous, i)
4753 == offsetof (struct anonymous, w.k)),
4754 "Anonymous union alignment botch");
4760 for ac_arg in '' -std=gnu11
4762 CC="$ac_save_CC $ac_arg"
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_cv_prog_cc_c11=$ac_arg
4766 rm -f core conftest.err conftest.$ac_objext
4767 test "x$ac_cv_prog_cc_c11" != "xno" && break
4769 rm -f conftest.$ac_ext
4774 ac_prog_cc_stdc_options=
4775 case "x$ac_cv_prog_cc_c11" in
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4778 $as_echo "none needed" >&6; } ;;
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4781 $as_echo "unsupported" >&6; } ;;
4783 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4784 CC=$CC$ac_prog_cc_stdc_options
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4786 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
4788 if test "x$ac_cv_prog_cc_c11" != xno; then :
4790 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4793 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
4794 if ${ac_cv_prog_cc_c99+:} false; then :
4795 $as_echo_n "(cached) " >&6
4797 ac_cv_prog_cc_c99=no
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4802 #include <stdbool.h>
4808 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4809 #define debug(...) fprintf (stderr, __VA_ARGS__)
4810 #define showlist(...) puts (#__VA_ARGS__)
4811 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4813 test_varargs_macros (void)
4818 debug ("X = %d\n", x);
4819 showlist (The first, second, and third items.);
4820 report (x>y, "x is %d but y is %d", x, y);
4823 // Check long long types.
4824 #define BIG64 18446744073709551615ull
4825 #define BIG32 4294967295ul
4826 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4828 your preprocessor is broken;
4832 your preprocessor is broken;
4834 static long long int bignum = -9223372036854775807LL;
4835 static unsigned long long int ubignum = BIG64;
4837 struct incomplete_array
4845 const wchar_t *name;
4849 typedef const char *ccp;
4852 test_restrict (ccp restrict text)
4854 // See if C++-style comments work.
4855 // Iterate through items via the restricted pointer.
4856 // Also check for declarations in for loops.
4857 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4862 // Check varargs and va_copy.
4864 test_varargs (const char *format, ...)
4867 va_start (args, format);
4869 va_copy (args_copy, args);
4871 const char *str = "";
4880 str = va_arg (args_copy, const char *);
4883 number = va_arg (args_copy, int);
4886 fnumber = va_arg (args_copy, double);
4895 return *str && number && fnumber;
4902 _Bool success = false;
4905 if (test_restrict ("String literal") == 0)
4907 char *restrict newvar = "Another string";
4910 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4911 test_varargs_macros ();
4913 // Check flexible array members.
4914 struct incomplete_array *ia =
4915 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4917 for (int i = 0; i < ia->datasize; ++i)
4918 ia->data[i] = i * 1.234;
4920 // Check named initializers.
4921 struct named_init ni = {
4923 .name = L"Test wide string",
4924 .average = 543.34343,
4929 int dynamic_array[ni.number];
4930 dynamic_array[ni.number - 1] = 543;
4932 // work around unused variable warnings
4933 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4934 || dynamic_array[ni.number - 1] != 543);
4940 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
4942 CC="$ac_save_CC $ac_arg"
4943 if ac_fn_c_try_compile "$LINENO"; then :
4944 ac_cv_prog_cc_c99=$ac_arg
4946 rm -f core conftest.err conftest.$ac_objext
4947 test "x$ac_cv_prog_cc_c99" != "xno" && break
4949 rm -f conftest.$ac_ext
4954 ac_prog_cc_stdc_options=
4955 case "x$ac_cv_prog_cc_c99" in
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4958 $as_echo "none needed" >&6; } ;;
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4961 $as_echo "unsupported" >&6; } ;;
4963 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
4964 CC=$CC$ac_prog_cc_stdc_options
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4966 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4968 if test "x$ac_cv_prog_cc_c99" != xno; then :
4970 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4973 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
4974 if ${ac_cv_prog_cc_c89+:} false; then :
4975 $as_echo_n "(cached) " >&6
4977 ac_cv_prog_cc_c89=no
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4984 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4985 struct buf { int x; };
4986 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4987 static char *e (p, i)
4993 static char *f (char * (*g) (char **, int), char **p, ...)
4998 s = g (p, va_arg (v,int));
5003 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5004 function prototypes and stuff, but not '\xHH' hex character constants.
5005 These don't provoke an error unfortunately, instead are silently treated
5006 as 'x'. The following induces an error, until -std is added to get
5007 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5008 array size at least. It's necessary to write '\x00'==0 to get something
5009 that's true only with -std. */
5010 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5012 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5013 inside strings and character constants. */
5015 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5017 int test (int i, double x);
5018 struct s1 {int (*f) (int a);};
5019 struct s2 {int (*f) (double a);};
5020 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5026 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5031 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5032 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5034 CC="$ac_save_CC $ac_arg"
5035 if ac_fn_c_try_compile "$LINENO"; then :
5036 ac_cv_prog_cc_c89=$ac_arg
5038 rm -f core conftest.err conftest.$ac_objext
5039 test "x$ac_cv_prog_cc_c89" != "xno" && break
5041 rm -f conftest.$ac_ext
5046 ac_prog_cc_stdc_options=
5047 case "x$ac_cv_prog_cc_c89" in
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5050 $as_echo "none needed" >&6; } ;;
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5053 $as_echo "unsupported" >&6; } ;;
5055 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5056 CC=$CC$ac_prog_cc_stdc_options
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5058 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5060 if test "x$ac_cv_prog_cc_c89" != xno; then :
5062 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5065 ac_cv_prog_cc_stdc=no
5073 ac_cpp='$CPP $CPPFLAGS'
5074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5080 $as_echo_n "checking whether the compiler is clang... " >&6; }
5081 if ${gl_cv_compiler_clang+:} false; then :
5082 $as_echo_n "(cached) " >&6
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5100 if ac_fn_c_try_compile "$LINENO"; then :
5101 gl_cv_compiler_clang=no
5103 gl_cv_compiler_clang=yes
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5109 $as_echo "$gl_cv_compiler_clang" >&6; }
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5113 $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
5114 if ${gl_cv_compiler_check_decl_option+:} false; then :
5115 $as_echo_n "(cached) " >&6
5117 if test $gl_cv_compiler_clang = yes; then
5118 save_ac_compile="$ac_compile"
5119 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5131 if ac_fn_c_try_compile "$LINENO"; then :
5132 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5134 gl_cv_compiler_check_decl_option=none
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 ac_compile="$save_ac_compile"
5139 gl_cv_compiler_check_decl_option=none
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5144 $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
5145 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5146 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5148 ac_compile_for_check_decl="$ac_compile"
5154 ac_cpp='$CPP $CPPFLAGS'
5155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5159 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5160 # On Suns, sometimes $CPP names a directory.
5161 if test -n "$CPP" && test -d "$CPP"; then
5164 if test -z "$CPP"; then
5165 if ${ac_cv_prog_CPP+:} false; then :
5166 $as_echo_n "(cached) " >&6
5168 # Double quotes because CPP needs to be expanded
5169 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5172 for ac_c_preproc_warn_flag in '' yes
5174 # Use a header file that comes with gcc, so configuring glibc
5175 # with a fresh cross-compiler works.
5176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5177 # <limits.h> exists even on freestanding compilers.
5178 # On the NeXT, cc -E runs the code through the compiler's parser,
5179 # not just through cpp. "Syntax error" is here to catch this case.
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5183 # include <limits.h>
5185 # include <assert.h>
5189 if ac_fn_c_try_cpp "$LINENO"; then :
5192 # Broken: fails on valid input.
5195 rm -f conftest.err conftest.i conftest.$ac_ext
5197 # OK, works on sane cases. Now check whether nonexistent headers
5198 # can be detected and how.
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 #include <ac_nonexistent.h>
5203 if ac_fn_c_try_cpp "$LINENO"; then :
5204 # Broken: success on invalid input.
5207 # Passes both tests.
5211 rm -f conftest.err conftest.i conftest.$ac_ext
5214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215 rm -f conftest.i conftest.err conftest.
$ac_ext
5216 if $ac_preproc_ok; then :
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5229 $as_echo "$CPP" >&6; }
5231 for ac_c_preproc_warn_flag
in '' yes
5233 # Use a header file that comes with gcc, so configuring glibc
5234 # with a fresh cross-compiler works.
5235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5236 # <limits.h> exists even on freestanding compilers.
5237 # On the NeXT, cc -E runs the code through the compiler's parser,
5238 # not just through cpp. "Syntax error" is here to catch this case.
5239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5242 # include <limits.h>
5244 # include <assert.h>
5248 if ac_fn_c_try_cpp
"$LINENO"; then :
5251 # Broken: fails on valid input.
5254 rm -f conftest.err conftest.i conftest.
$ac_ext
5256 # OK, works on sane cases. Now check whether nonexistent headers
5257 # can be detected and how.
5258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260 #include <ac_nonexistent.h>
5262 if ac_fn_c_try_cpp
"$LINENO"; then :
5263 # Broken: success on invalid input.
5266 # Passes both tests.
5270 rm -f conftest.err conftest.i conftest.
$ac_ext
5273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5274 rm -f conftest.i conftest.err conftest.
$ac_ext
5275 if $ac_preproc_ok; then :
5278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5280 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5281 See \`config.log' for more details" "$LINENO" 5; }
5285 ac_cpp
='$CPP $CPPFLAGS'
5286 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5292 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5293 if ${ac_cv_path_GREP+:} false
; then :
5294 $as_echo_n "(cached) " >&6
5296 if test -z "$GREP"; then
5297 ac_path_GREP_found
=false
5298 # Loop through the user's path and test for each of PROGNAME-LIST
5299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5300 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5303 test -z "$as_dir" && as_dir
=.
5304 for ac_prog
in grep ggrep
; do
5305 for ac_exec_ext
in '' $ac_executable_extensions; do
5306 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5307 as_fn_executable_p
"$ac_path_GREP" ||
continue
5308 # Check for GNU ac_path_GREP and select it if it is found.
5309 # Check for GNU $ac_path_GREP
5310 case `"$ac_path_GREP" --version 2>&1` in
5312 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5315 $as_echo_n 0123456789 >"conftest.in"
5318 cat "conftest.in" "conftest.in" >"conftest.tmp"
5319 mv "conftest.tmp" "conftest.in"
5320 cp "conftest.in" "conftest.nl"
5321 $as_echo 'GREP' >> "conftest.nl"
5322 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5323 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5324 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5325 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5326 # Best one so far, save it but keep looking for a better one
5327 ac_cv_path_GREP
="$ac_path_GREP"
5328 ac_path_GREP_max
=$ac_count
5330 # 10*(2^10) chars as input seems more than enough
5331 test $ac_count -gt 10 && break
5333 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5336 $ac_path_GREP_found && break 3
5341 if test -z "$ac_cv_path_GREP"; then
5342 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5345 ac_cv_path_GREP
=$GREP
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5350 $as_echo "$ac_cv_path_GREP" >&6; }
5351 GREP
="$ac_cv_path_GREP"
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5355 $as_echo_n "checking for egrep... " >&6; }
5356 if ${ac_cv_path_EGREP+:} false
; then :
5357 $as_echo_n "(cached) " >&6
5359 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5360 then ac_cv_path_EGREP
="$GREP -E"
5362 if test -z "$EGREP"; then
5363 ac_path_EGREP_found
=false
5364 # Loop through the user's path and test for each of PROGNAME-LIST
5365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5366 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5369 test -z "$as_dir" && as_dir
=.
5370 for ac_prog
in egrep; do
5371 for ac_exec_ext
in '' $ac_executable_extensions; do
5372 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5373 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5374 # Check for GNU ac_path_EGREP and select it if it is found.
5375 # Check for GNU $ac_path_EGREP
5376 case `"$ac_path_EGREP" --version 2>&1` in
5378 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5381 $as_echo_n 0123456789 >"conftest.in"
5384 cat "conftest.in" "conftest.in" >"conftest.tmp"
5385 mv "conftest.tmp" "conftest.in"
5386 cp "conftest.in" "conftest.nl"
5387 $as_echo 'EGREP' >> "conftest.nl"
5388 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5389 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5390 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5391 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5392 # Best one so far, save it but keep looking for a better one
5393 ac_cv_path_EGREP
="$ac_path_EGREP"
5394 ac_path_EGREP_max
=$ac_count
5396 # 10*(2^10) chars as input seems more than enough
5397 test $ac_count -gt 10 && break
5399 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5402 $ac_path_EGREP_found && break 3
5407 if test -z "$ac_cv_path_EGREP"; then
5408 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5411 ac_cv_path_EGREP
=$EGREP
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5417 $as_echo "$ac_cv_path_EGREP" >&6; }
5418 EGREP
="$ac_cv_path_EGREP"
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5422 $as_echo_n "checking for ANSI C header files... " >&6; }
5423 if ${ac_cv_header_stdc+:} false
; then :
5424 $as_echo_n "(cached) " >&6
5426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5441 if ac_fn_c_try_compile
"$LINENO"; then :
5442 ac_cv_header_stdc
=yes
5444 ac_cv_header_stdc
=no
5446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5448 if test $ac_cv_header_stdc = yes; then
5449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5456 $EGREP "memchr" >/dev
/null
2>&1; then :
5459 ac_cv_header_stdc
=no
5465 if test $ac_cv_header_stdc = yes; then
5466 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5473 $EGREP "free" >/dev
/null
2>&1; then :
5476 ac_cv_header_stdc
=no
5482 if test $ac_cv_header_stdc = yes; then
5483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5484 if test "$cross_compiling" = yes; then :
5487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5491 #if ((' ' & 0x0FF) == 0x020)
5492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5495 # define ISLOWER(c) \
5496 (('a' <= (c) && (c) <= 'i') \
5497 || ('j' <= (c) && (c) <= 'r') \
5498 || ('s' <= (c) && (c) <= 'z'))
5499 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5507 for (i = 0; i < 256; i++)
5508 if (XOR (islower (i), ISLOWER (i))
5509 || toupper (i) != TOUPPER (i))
5514 if ac_fn_c_try_run
"$LINENO"; then :
5517 ac_cv_header_stdc
=no
5519 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5520 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5526 $as_echo "$ac_cv_header_stdc" >&6; }
5527 if test $ac_cv_header_stdc = yes; then
5529 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5533 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5534 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5535 inttypes.h stdint.h unistd.h
5537 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5540 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5541 cat >>confdefs.h
<<_ACEOF
5542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5551 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5552 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5559 if test "$MINIX" = yes; then
5561 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5564 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5567 $as_echo "#define _MINIX 1" >>confdefs.h
5570 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5576 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5577 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5578 $as_echo_n "(cached) " >&6
5580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5583 # define __EXTENSIONS__ 1
5584 $ac_includes_default
5593 if ac_fn_c_try_compile
"$LINENO"; then :
5594 ac_cv_safe_to_define___extensions__
=yes
5596 ac_cv_safe_to_define___extensions__
=no
5598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5601 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5602 test $ac_cv_safe_to_define___extensions__ = yes &&
5603 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5605 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5607 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5609 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5611 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5613 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5615 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5617 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5619 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5621 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5623 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5625 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5627 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5629 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5631 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5634 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5635 if ${ac_cv_should_define__xopen_source+:} false
; then :
5636 $as_echo_n "(cached) " >&6
5638 ac_cv_should_define__xopen_source
=no
5639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5652 if ac_fn_c_try_compile
"$LINENO"; then :
5655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5658 #define _XOPEN_SOURCE 500
5669 if ac_fn_c_try_compile
"$LINENO"; then :
5670 ac_cv_should_define__xopen_source
=yes
5672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5677 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5678 test $ac_cv_should_define__xopen_source = yes &&
5679 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5681 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5684 # Needs to run before gl_EARLY so it can override AC_SYS_LARGEFILE included
5687 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5688 if test -f "$ac_dir/install-sh"; then
5690 ac_install_sh
="$ac_aux_dir/install-sh -c"
5692 elif test -f "$ac_dir/install.sh"; then
5694 ac_install_sh
="$ac_aux_dir/install.sh -c"
5696 elif test -f "$ac_dir/shtool"; then
5698 ac_install_sh
="$ac_aux_dir/shtool install -c"
5702 if test -z "$ac_aux_dir"; then
5703 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5706 # These three variables are undocumented and unsupported,
5707 # and are intended to be withdrawn in a future Autoconf release.
5708 # They can cause serious problems if a builder's source tree is in a directory
5709 # whose full name contains unusual characters.
5710 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5711 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5712 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5715 # Make sure we can run config.sub.
5716 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5717 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5720 $as_echo_n "checking build system type... " >&6; }
5721 if ${ac_cv_build+:} false
; then :
5722 $as_echo_n "(cached) " >&6
5724 ac_build_alias
=$build_alias
5725 test "x$ac_build_alias" = x
&&
5726 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5727 test "x$ac_build_alias" = x
&&
5728 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5729 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5730 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5734 $as_echo "$ac_cv_build" >&6; }
5735 case $ac_cv_build in
5737 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5740 ac_save_IFS
=$IFS; IFS
='-'
5746 # Remember, the first character of IFS is used to create $*,
5747 # except with old shells:
5750 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5754 $as_echo_n "checking host system type... " >&6; }
5755 if ${ac_cv_host+:} false
; then :
5756 $as_echo_n "(cached) " >&6
5758 if test "x$host_alias" = x
; then
5759 ac_cv_host
=$ac_cv_build
5761 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5762 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5767 $as_echo "$ac_cv_host" >&6; }
5770 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5773 ac_save_IFS
=$IFS; IFS
='-'
5779 # Remember, the first character of IFS is used to create $*,
5780 # except with old shells:
5783 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5787 $as_echo_n "checking target system type... " >&6; }
5788 if ${ac_cv_target+:} false
; then :
5789 $as_echo_n "(cached) " >&6
5791 if test "x$target_alias" = x
; then
5792 ac_cv_target
=$ac_cv_host
5794 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5795 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5800 $as_echo "$ac_cv_target" >&6; }
5801 case $ac_cv_target in
5803 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
5805 target
=$ac_cv_target
5806 ac_save_IFS
=$IFS; IFS
='-'
5812 # Remember, the first character of IFS is used to create $*,
5813 # except with old shells:
5816 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
5819 # The aliases save the names the user supplied, while $host etc.
5820 # will get canonicalized.
5821 test -n "$target_alias" &&
5822 test "$program_prefix$program_suffix$program_transform_name" = \
5824 program_prefix
=${target_alias}-
5826 # The tests for host and target for $enable_largefile require
5831 # As the $enable_largefile decision depends on --enable-plugins we must set it
5832 # even in directories otherwise not depending on the $plugins option.
5836 for ac_header
in dlfcn.h
5838 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5840 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5841 cat >>confdefs.h
<<_ACEOF
5842 #define HAVE_DLFCN_H 1
5849 for ac_header
in windows.h
5851 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5853 if test "x$ac_cv_header_windows_h" = xyes
; then :
5854 cat >>confdefs.h
<<_ACEOF
5855 #define HAVE_WINDOWS_H 1
5863 # Check whether --enable-plugins was given.
5864 if test "${enable_plugins+set}" = set; then :
5865 enableval
=$enable_plugins; case "${enableval}" in
5868 if test "$maybe_plugins" != "yes" ; then
5869 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5873 plugins
=$maybe_plugins
5877 if test "$plugins" = "yes"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5879 $as_echo_n "checking for library containing dlsym... " >&6; }
5880 if ${ac_cv_search_dlsym+:} false
; then :
5881 $as_echo_n "(cached) " >&6
5883 ac_func_search_save_LIBS
=$LIBS
5884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5887 /* Override any GCC internal prototype to avoid an error.
5888 Use char because int might match the return type of a GCC
5889 builtin and then its argument prototype would still apply. */
5902 for ac_lib
in '' dl
; do
5903 if test -z "$ac_lib"; then
5904 ac_res
="none required"
5907 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5909 if ac_fn_c_try_link
"$LINENO"; then :
5910 ac_cv_search_dlsym
=$ac_res
5912 rm -f core conftest.err conftest.
$ac_objext \
5914 if ${ac_cv_search_dlsym+:} false
; then :
5918 if ${ac_cv_search_dlsym+:} false
; then :
5921 ac_cv_search_dlsym
=no
5924 LIBS
=$ac_func_search_save_LIBS
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5927 $as_echo "$ac_cv_search_dlsym" >&6; }
5928 ac_res
=$ac_cv_search_dlsym
5929 if test "$ac_res" != no
; then :
5930 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5938 sparc-
*-solaris*|i?
86-*-solaris*)
5939 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
5940 # were mutually exclusive until Solaris 11.3. Without procfs support,
5941 # the bfd/ elf module cannot provide certain routines such as
5942 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
5943 # explicitly requested large-file support through the
5944 # --enable-largefile switch, disable large-file support in favor of
5947 # Check if <sys/procfs.h> is incompatible with large-file support.
5948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 #define _FILE_OFFSET_BITS 64
5951 #define _STRUCTURED_PROC 1
5952 #include <sys/procfs.h>
5961 if ac_fn_c_try_compile
"$LINENO"; then :
5962 acx_cv_procfs_lfs
=yes
5964 acx_cv_procfs_lfs
=no
5966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5968 # Forcefully disable large-file support only if necessary, gdb is in
5970 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
5971 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
5972 : ${enable_largefile="no"}
5973 if test "$plugins" = yes; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5975 plugin support disabled; require large-file support which is incompatible with GDB." >&5
5976 $as_echo "$as_me: WARNING:
5977 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
5982 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
5983 # benefit of g++ 9+ which predefines it on Solaris.
5984 if test "$enable_largefile" = no
; then
5985 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
5991 # Check whether --enable-largefile was given.
5992 if test "${enable_largefile+set}" = set; then :
5993 enableval
=$enable_largefile;
5996 if test "$enable_largefile" != no
; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5999 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6000 if ${ac_cv_sys_largefile_CC+:} false
; then :
6001 $as_echo_n "(cached) " >&6
6003 ac_cv_sys_largefile_CC
=no
6004 if test "$GCC" != yes; then
6007 # IRIX 6.2 and later do not support large files by default,
6008 # so use the C compiler's -n32 option if that helps.
6009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #include <sys/types.h>
6012 /* Check that off_t can represent 2**63 - 1 correctly.
6013 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6014 since some C++ compilers masquerading as C compilers
6015 incorrectly reject 9223372036854775807. */
6016 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6017 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6018 && LARGE_OFF_T % 2147483647 == 1)
6028 if ac_fn_c_try_compile
"$LINENO"; then :
6031 rm -f core conftest.err conftest.
$ac_objext
6033 if ac_fn_c_try_compile
"$LINENO"; then :
6034 ac_cv_sys_largefile_CC
=' -n32'; break
6036 rm -f core conftest.err conftest.
$ac_objext
6040 rm -f conftest.
$ac_ext
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6044 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6045 if test "$ac_cv_sys_largefile_CC" != no
; then
6046 CC
=$CC$ac_cv_sys_largefile_CC
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6050 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6051 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6052 $as_echo_n "(cached) " >&6
6055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 #include <sys/types.h>
6058 /* Check that off_t can represent 2**63 - 1 correctly.
6059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6060 since some C++ compilers masquerading as C compilers
6061 incorrectly reject 9223372036854775807. */
6062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6064 && LARGE_OFF_T % 2147483647 == 1)
6074 if ac_fn_c_try_compile
"$LINENO"; then :
6075 ac_cv_sys_file_offset_bits
=no
; break
6077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #define _FILE_OFFSET_BITS 64
6081 #include <sys/types.h>
6082 /* Check that off_t can represent 2**63 - 1 correctly.
6083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6084 since some C++ compilers masquerading as C compilers
6085 incorrectly reject 9223372036854775807. */
6086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6088 && LARGE_OFF_T % 2147483647 == 1)
6098 if ac_fn_c_try_compile
"$LINENO"; then :
6099 ac_cv_sys_file_offset_bits
=64; break
6101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6102 ac_cv_sys_file_offset_bits
=unknown
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6107 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6108 case $ac_cv_sys_file_offset_bits in #(
6111 cat >>confdefs.h
<<_ACEOF
6112 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6117 if test $ac_cv_sys_file_offset_bits = unknown
; then
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6119 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6120 if ${ac_cv_sys_large_files+:} false
; then :
6121 $as_echo_n "(cached) " >&6
6124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <sys/types.h>
6127 /* Check that off_t can represent 2**63 - 1 correctly.
6128 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6129 since some C++ compilers masquerading as C compilers
6130 incorrectly reject 9223372036854775807. */
6131 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6132 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6133 && LARGE_OFF_T % 2147483647 == 1)
6143 if ac_fn_c_try_compile
"$LINENO"; then :
6144 ac_cv_sys_large_files
=no
; break
6146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6149 #define _LARGE_FILES 1
6150 #include <sys/types.h>
6151 /* Check that off_t can represent 2**63 - 1 correctly.
6152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6153 since some C++ compilers masquerading as C compilers
6154 incorrectly reject 9223372036854775807. */
6155 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6157 && LARGE_OFF_T % 2147483647 == 1)
6167 if ac_fn_c_try_compile
"$LINENO"; then :
6168 ac_cv_sys_large_files
=1; break
6170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6171 ac_cv_sys_large_files
=unknown
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6176 $as_echo "$ac_cv_sys_large_files" >&6; }
6177 case $ac_cv_sys_large_files in #(
6180 cat >>confdefs.h
<<_ACEOF
6181 #define _LARGE_FILES $ac_cv_sys_large_files
6189 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6204 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6205 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
6206 $as_echo_n "(cached) " >&6
6209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6218 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
6219 gl_cv_c_amsterdam_compiler
=yes
6221 gl_cv_c_amsterdam_compiler
=no
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6228 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6230 if test $gl_cv_c_amsterdam_compiler = yes; then
6231 if test -z "$AR"; then
6234 if test -z "$ARFLAGS"; then
6241 if test -n "$ac_tool_prefix"; then
6242 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6243 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_AR+:} false
; then :
6247 $as_echo_n "(cached) " >&6
6249 if test -n "$AR"; then
6250 ac_cv_prog_AR
="$AR" # Let the user override the test.
6252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6256 test -z "$as_dir" && as_dir
=.
6257 for ac_exec_ext
in '' $ac_executable_extensions; do
6258 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 if test -n "$AR"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6272 $as_echo "$AR" >&6; }
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6280 if test -z "$ac_cv_prog_AR"; then
6282 # Extract the first word of "ar", so it can be a program name with args.
6283 set dummy
ar; ac_word
=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6287 $as_echo_n "(cached) " >&6
6289 if test -n "$ac_ct_AR"; then
6290 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6296 test -z "$as_dir" && as_dir
=.
6297 for ac_exec_ext
in '' $ac_executable_extensions; do
6298 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_ac_ct_AR
="ar"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6310 if test -n "$ac_ct_AR"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6312 $as_echo "$ac_ct_AR" >&6; }
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6318 if test "x$ac_ct_AR" = x
; then
6321 case $cross_compiling:$ac_tool_warned in
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325 ac_tool_warned
=yes ;;
6333 if test -z "$ARFLAGS"; then
6339 if test -z "$RANLIB"; then
6340 if test $gl_cv_c_amsterdam_compiler = yes; then
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6345 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_RANLIB+:} false
; then :
6349 $as_echo_n "(cached) " >&6
6351 if test -n "$RANLIB"; then
6352 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir
=.
6359 for ac_exec_ext
in '' $ac_executable_extensions; do
6360 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 RANLIB
=$ac_cv_prog_RANLIB
6372 if test -n "$RANLIB"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6374 $as_echo "$RANLIB" >&6; }
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6382 if test -z "$ac_cv_prog_RANLIB"; then
6383 ac_ct_RANLIB
=$RANLIB
6384 # Extract the first word of "ranlib", so it can be a program name with args.
6385 set dummy ranlib
; ac_word
=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6389 $as_echo_n "(cached) " >&6
6391 if test -n "$ac_ct_RANLIB"; then
6392 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir
=.
6399 for ac_exec_ext
in '' $ac_executable_extensions; do
6400 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6412 if test -n "$ac_ct_RANLIB"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6414 $as_echo "$ac_ct_RANLIB" >&6; }
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6420 if test "x$ac_ct_RANLIB" = x
; then
6423 case $cross_compiling:$ac_tool_warned in
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned
=yes ;;
6429 RANLIB
=$ac_ct_RANLIB
6432 RANLIB
="$ac_cv_prog_RANLIB"
6443 # IEEE behaviour is the default on all CPUs except Alpha and SH
6444 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6445 # and the GCC 4.1.2 manual).
6448 # On Alpha systems, a compiler option provides the behaviour.
6449 # See the ieee(3) manual page, also available at
6450 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
6451 if test -n "$GCC"; then
6452 # GCC has the option -mieee.
6453 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6454 CPPFLAGS
="$CPPFLAGS -mieee"
6456 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6457 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6458 CPPFLAGS
="$CPPFLAGS -ieee"
6462 if test -n "$GCC"; then
6463 # GCC has the option -mieee.
6464 CPPFLAGS
="$CPPFLAGS -mieee"
6475 # Check whether --enable-threads was given.
6476 if test "${enable_threads+set}" = set; then :
6477 enableval
=$enable_threads; gl_use_threads
=$enableval
6479 if test -n "$gl_use_threads_default"; then
6480 gl_use_threads
="$gl_use_threads_default"
6483 osf
*) gl_use_threads
=no
;;
6486 1.
[0-5].
*) gl_use_threads
=no
;;
6487 *) gl_use_threads
=yes ;;
6491 case "$gl_use_winpthreads_default" in
6492 yes) gl_use_threads
=posix
;;
6493 no
) gl_use_threads
=windows
;;
6494 *) gl_use_threads
=yes ;;
6497 *) gl_use_threads
=yes ;;
6503 if test "$gl_use_threads" = yes \
6504 ||
test "$gl_use_threads" = isoc \
6505 ||
test "$gl_use_threads" = posix \
6506 ||
test "$gl_use_threads" = isoc
+posix
; then
6507 # For using <threads.h> or <pthread.h>:
6510 if test -z "$gl_anythreadlib_early_done"; then
6513 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6514 # groks <pthread.h>. cc also understands the flag -pthread, but
6515 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6516 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6517 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6518 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6519 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
6522 # Some systems optimize for single-threaded programs by default, and
6523 # need special flags to disable these optimizations. For example, the
6524 # definition of 'errno' in <errno.h>.
6526 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
6527 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
6529 gl_anythreadlib_early_done
=done
6536 # Pre-early section.
6541 # Code from module absolute-header:
6542 # Code from module alloca:
6543 # Code from module alloca-opt:
6544 # Code from module arpa_inet:
6545 # Code from module assure:
6546 # Code from module at-internal:
6547 # Code from module builtin-expect:
6548 # Code from module c99:
6549 # Code from module canonicalize-lgpl:
6550 # Code from module chdir:
6551 # Code from module chdir-long:
6552 # Code from module cloexec:
6553 # Code from module close:
6554 # Code from module closedir:
6555 # Code from module count-one-bits:
6556 # Code from module d-ino:
6557 # Code from module d-type:
6558 # Code from module dirent:
6559 # Code from module dirfd:
6560 # Code from module dirname-lgpl:
6561 # Code from module dosname:
6562 # Code from module double-slash-root:
6563 # Code from module dup:
6564 # Code from module dup2:
6565 # Code from module environ:
6566 # Code from module errno:
6567 # Code from module error:
6568 # Code from module exitfail:
6569 # Code from module extensions:
6570 # Code from module extern-inline:
6571 # Code from module fchdir:
6572 # Code from module fcntl:
6573 # Code from module fcntl-h:
6574 # Code from module fd-hook:
6575 # Code from module fd-safer-flag:
6576 # Code from module fdopendir:
6577 # Code from module filename:
6578 # Code from module filenamecat-lgpl:
6579 # Code from module flexmember:
6580 # Code from module float:
6581 # Code from module fnmatch:
6582 # Code from module fnmatch-gnu:
6583 # Code from module fnmatch-h:
6584 # Code from module fpieee:
6586 # Code from module fpucw:
6587 # Code from module frexp:
6588 # Code from module frexpl:
6589 # Code from module fstat:
6590 # Code from module fstatat:
6591 # Code from module getcwd:
6592 # Code from module getcwd-lgpl:
6593 # Code from module getdtablesize:
6594 # Code from module getlogin_r:
6595 # Code from module getprogname:
6596 # Code from module gettext-h:
6597 # Code from module gettimeofday:
6598 # Code from module glob:
6599 # Code from module glob-h:
6600 # Code from module hard-locale:
6601 # Code from module include_next:
6602 # Code from module inet_ntop:
6603 # Code from module intprops:
6604 # Code from module inttypes:
6605 # Code from module inttypes-incomplete:
6606 # Code from module isnand-nolibm:
6607 # Code from module isnanl-nolibm:
6608 # Code from module largefile:
6610 # Code from module libc-config:
6611 # Code from module limits-h:
6612 # Code from module localcharset:
6613 # Code from module locale:
6614 # Code from module localtime-buffer:
6615 # Code from module lock:
6616 # Code from module lstat:
6617 # Code from module malloc-posix:
6618 # Code from module malloca:
6619 # Code from module math:
6620 # Code from module mbrtowc:
6621 # Code from module mbsinit:
6622 # Code from module mbsrtowcs:
6623 # Code from module memchr:
6624 # Code from module memmem:
6625 # Code from module memmem-simple:
6626 # Code from module mempcpy:
6627 # Code from module memrchr:
6628 # Code from module mkdir:
6629 # Code from module mkdtemp:
6630 # Code from module mkostemp:
6631 # Code from module msvc-inval:
6632 # Code from module msvc-nothrow:
6633 # Code from module multiarch:
6634 # Code from module netinet_in:
6635 # Code from module nocrash:
6636 # Code from module open:
6637 # Code from module openat:
6638 # Code from module openat-die:
6639 # Code from module openat-h:
6640 # Code from module opendir:
6641 # Code from module pathmax:
6642 # Code from module rawmemchr:
6643 # Code from module readdir:
6644 # Code from module readlink:
6645 # Code from module realloc-posix:
6646 # Code from module rename:
6647 # Code from module rewinddir:
6648 # Code from module rmdir:
6649 # Code from module same-inode:
6650 # Code from module save-cwd:
6651 # Code from module scratch_buffer:
6652 # Code from module setenv:
6653 # Code from module setlocale-null:
6654 # Code from module signal-h:
6655 # Code from module snippet/_Noreturn:
6656 # Code from module snippet/arg-nonnull:
6657 # Code from module snippet/c++defs:
6658 # Code from module snippet/warn-on-use:
6659 # Code from module socklen:
6660 # Code from module ssize_t:
6661 # Code from module stat:
6662 # Code from module stat-time:
6663 # Code from module std-gnu11:
6664 # Code from module stdalign:
6665 # Code from module stdbool:
6666 # Code from module stddef:
6667 # Code from module stdint:
6668 # Code from module stdio:
6669 # Code from module stdlib:
6670 # Code from module strchrnul:
6671 # Code from module strdup-posix:
6672 # Code from module streq:
6673 # Code from module strerror:
6674 # Code from module strerror-override:
6675 # Code from module strerror_r-posix:
6676 # Code from module string:
6677 # Code from module strnlen1:
6678 # Code from module strstr:
6679 # Code from module strstr-simple:
6680 # Code from module strtok_r:
6681 # Code from module sys_socket:
6682 # Code from module sys_stat:
6683 # Code from module sys_time:
6684 # Code from module sys_types:
6685 # Code from module sys_uio:
6686 # Code from module tempname:
6687 # Code from module threadlib:
6691 # Code from module time:
6692 # Code from module time_r:
6693 # Code from module unistd:
6694 # Code from module unistd-safer:
6695 # Code from module unsetenv:
6696 # Code from module update-copyright:
6697 # Code from module verify:
6698 # Code from module wchar:
6699 # Code from module wctype-h:
6700 # Code from module windows-mutex:
6701 # Code from module windows-once:
6702 # Code from module windows-recmutex:
6703 # Code from module windows-rwlock:
6704 # Code from module xalloc-oversized:
6707 am_cv_prog_cc_stdc
=$ac_cv_prog_cc_stdc
6711 for ac_dir
in ..
"$srcdir"/..
; do
6712 if test -f "$ac_dir/install-sh"; then
6714 ac_install_sh
="$ac_aux_dir/install-sh -c"
6716 elif test -f "$ac_dir/install.sh"; then
6718 ac_install_sh
="$ac_aux_dir/install.sh -c"
6720 elif test -f "$ac_dir/shtool"; then
6722 ac_install_sh
="$ac_aux_dir/shtool install -c"
6726 if test -z "$ac_aux_dir"; then
6727 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6730 # These three variables are undocumented and unsupported,
6731 # and are intended to be withdrawn in a future Autoconf release.
6732 # They can cause serious problems if a builder's source tree is in a directory
6733 # whose full name contains unusual characters.
6734 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6735 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6736 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6747 # Check whether --enable-cross-guesses was given.
6748 if test "${enable_cross_guesses+set}" = set; then :
6749 enableval
=$enable_cross_guesses; if test "x$enableval" != xconservative
&& test "x$enableval" != xrisky
; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6751 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6752 enableval
=conservative
6754 gl_cross_guesses
="$enableval"
6756 gl_cross_guesses
=conservative
6759 if test $gl_cross_guesses = risky
; then
6760 gl_cross_guess_normal
="guessing yes"
6761 gl_cross_guess_inverted
="guessing no"
6763 gl_cross_guess_normal
="guessing no"
6764 gl_cross_guess_inverted
="guessing yes"
6766 LIBC_FATAL_STDERR_
=1
6767 export LIBC_FATAL_STDERR_
6770 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6771 if test "x$ac_cv_type_size_t" = xyes
; then :
6775 cat >>confdefs.h
<<_ACEOF
6776 #define size_t unsigned int
6781 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6782 # for constant arguments. Useless!
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6784 $as_echo_n "checking for working alloca.h... " >&6; }
6785 if ${ac_cv_working_alloca_h+:} false
; then :
6786 $as_echo_n "(cached) " >&6
6788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6794 char *p = (char *) alloca (2 * sizeof (int));
6800 if ac_fn_c_try_link
"$LINENO"; then :
6801 ac_cv_working_alloca_h
=yes
6803 ac_cv_working_alloca_h
=no
6805 rm -f core conftest.err conftest.
$ac_objext \
6806 conftest
$ac_exeext conftest.
$ac_ext
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6809 $as_echo "$ac_cv_working_alloca_h" >&6; }
6810 if test $ac_cv_working_alloca_h = yes; then
6812 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6817 $as_echo_n "checking for alloca... " >&6; }
6818 if ${ac_cv_func_alloca_works+:} false
; then :
6819 $as_echo_n "(cached) " >&6
6821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6824 # define alloca __builtin_alloca
6827 # include <malloc.h>
6828 # define alloca _alloca
6830 # ifdef HAVE_ALLOCA_H
6831 # include <alloca.h>
6836 # ifndef alloca /* predefined by HP cc +Olibcalls */
6837 void *alloca (size_t);
6847 char *p = (char *) alloca (1);
6853 if ac_fn_c_try_link
"$LINENO"; then :
6854 ac_cv_func_alloca_works
=yes
6856 ac_cv_func_alloca_works
=no
6858 rm -f core conftest.err conftest.
$ac_objext \
6859 conftest
$ac_exeext conftest.
$ac_ext
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6862 $as_echo "$ac_cv_func_alloca_works" >&6; }
6864 if test $ac_cv_func_alloca_works = yes; then
6866 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6869 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6870 # that cause trouble. Some versions do not even contain alloca or
6871 # contain a buggy version. If you still want to use their alloca,
6872 # use ar to extract alloca.o from them instead of compiling alloca.c.
6878 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6880 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6884 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6885 if ${ac_cv_os_cray+:} false
; then :
6886 $as_echo_n "(cached) " >&6
6888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 #if defined CRAY && ! defined CRAY2
6897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6898 $EGREP "webecray" >/dev
/null
2>&1; then :
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6907 $as_echo "$ac_cv_os_cray" >&6; }
6908 if test $ac_cv_os_cray = yes; then
6909 for ac_func
in _getb67 GETB67 getb67
; do
6910 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6911 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6912 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6914 cat >>confdefs.h
<<_ACEOF
6915 #define CRAY_STACKSEG_END $ac_func
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6925 $as_echo_n "checking stack direction for C alloca... " >&6; }
6926 if ${ac_cv_c_stack_direction+:} false
; then :
6927 $as_echo_n "(cached) " >&6
6929 if test "$cross_compiling" = yes; then :
6930 ac_cv_c_stack_direction
=0
6932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6934 $ac_includes_default
6936 find_stack_direction (int *addr, int depth)
6941 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6942 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6947 main (int argc, char **argv)
6949 return find_stack_direction (0, argc + !argv + 20) < 0;
6952 if ac_fn_c_try_run
"$LINENO"; then :
6953 ac_cv_c_stack_direction
=1
6955 ac_cv_c_stack_direction
=-1
6957 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6958 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6963 $as_echo "$ac_cv_c_stack_direction" >&6; }
6964 cat >>confdefs.h
<<_ACEOF
6965 #define STACK_DIRECTION $ac_cv_c_stack_direction
6974 HAVE_DECL_INET_NTOP
=1;
6975 HAVE_DECL_INET_PTON
=1;
6976 REPLACE_INET_NTOP
=0;
6977 REPLACE_INET_PTON
=0;
6982 for ac_header
in $ac_header_list
6984 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6985 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6987 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6988 cat >>confdefs.h
<<_ACEOF
6989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7001 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7002 if ${gl_cv_have_include_next+:} false
; then :
7003 $as_echo_n "(cached) " >&6
7005 rm -rf conftestd1a conftestd1b conftestd2
7006 mkdir conftestd1a conftestd1b conftestd2
7007 cat <<EOF > conftestd1a/conftest.h
7008 #define DEFINED_IN_CONFTESTD1
7009 #include_next <conftest.h>
7010 #ifdef DEFINED_IN_CONFTESTD2
7013 #error "include_next doesn't work"
7016 cat <<EOF > conftestd1b/conftest.h
7017 #define DEFINED_IN_CONFTESTD1
7019 #include_next <conftest.h>
7020 #ifdef DEFINED_IN_CONFTESTD2
7023 #error "include_next doesn't work"
7026 cat <<EOF > conftestd2/conftest.h
7027 #ifndef DEFINED_IN_CONFTESTD1
7028 #error "include_next test doesn't work"
7030 #define DEFINED_IN_CONFTESTD2
7032 gl_save_CPPFLAGS
="$CPPFLAGS"
7033 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 #include <conftest.h>
7038 if ac_fn_c_try_compile
"$LINENO"; then :
7039 gl_cv_have_include_next
=yes
7041 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7044 #include <conftest.h>
7046 if ac_fn_c_try_compile
"$LINENO"; then :
7047 gl_cv_have_include_next
=buggy
7049 gl_cv_have_include_next
=no
7051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7055 CPPFLAGS
="$gl_save_CPPFLAGS"
7056 rm -rf conftestd1a conftestd1b conftestd2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7060 $as_echo "$gl_cv_have_include_next" >&6; }
7061 PRAGMA_SYSTEM_HEADER
=
7062 if test $gl_cv_have_include_next = yes; then
7063 INCLUDE_NEXT
=include_next
7064 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7065 if test -n "$GCC"; then
7066 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7069 if test $gl_cv_have_include_next = buggy
; then
7070 INCLUDE_NEXT
=include
7071 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7073 INCLUDE_NEXT
=include
7074 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7081 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7082 if ${gl_cv_pragma_columns+:} false
; then :
7083 $as_echo_n "(cached) " >&6
7085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7094 $EGREP "choke me" >/dev
/null
2>&1; then :
7095 gl_cv_pragma_columns
=yes
7097 gl_cv_pragma_columns
=no
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7104 $as_echo "$gl_cv_pragma_columns" >&6; }
7105 if test $gl_cv_pragma_columns = yes; then
7106 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7116 if test $ac_cv_header_features_h = yes; then
7126 if test $ac_cv_header_sys_socket_h = no
; then
7127 for ac_header
in ws2tcpip.h
7129 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7130 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
7131 cat >>confdefs.h
<<_ACEOF
7132 #define HAVE_WS2TCPIP_H 1
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7142 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7143 if test -z "$MKDIR_P"; then
7144 if ${ac_cv_path_mkdir+:} false
; then :
7145 $as_echo_n "(cached) " >&6
7147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7148 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7151 test -z "$as_dir" && as_dir
=.
7152 for ac_prog
in mkdir gmkdir
; do
7153 for ac_exec_ext
in '' $ac_executable_extensions; do
7154 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7155 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7156 'mkdir (GNU coreutils) '* | \
7157 'mkdir (coreutils) '* | \
7158 'mkdir (fileutils) '4.1*)
7159 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7169 test -d .
/--version && rmdir .
/--version
7170 if test "${ac_cv_path_mkdir+set}" = set; then
7171 MKDIR_P
="$ac_cv_path_mkdir -p"
7173 # As a last resort, use the slow shell script. Don't cache a
7174 # value for MKDIR_P within a source directory, because that will
7175 # break other packages using the cache if that directory is
7176 # removed, or if the value is a relative name.
7177 MKDIR_P
="$ac_install_sh -d"
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7181 $as_echo "$MKDIR_P" >&6; }
7186 GNULIB_CALLOC_POSIX
=0;
7187 GNULIB_CANONICALIZE_FILE_NAME
=0;
7188 GNULIB_GETLOADAVG
=0;
7191 GNULIB_MALLOC_POSIX
=0;
7198 GNULIB_POSIX_OPENPT
=0;
7205 GNULIB_REALLOCARRAY
=0;
7206 GNULIB_REALLOC_POSIX
=0;
7209 GNULIB_SECURE_GETENV
=0;
7215 GNULIB_SYSTEM_POSIX
=0;
7221 HAVE_CANONICALIZE_FILE_NAME
=1;
7222 HAVE_DECL_GETLOADAVG
=1;
7226 HAVE_DECL_INITSTATE
=1;
7233 HAVE_POSIX_OPENPT
=1;
7240 HAVE_REALLOCARRAY
=1;
7243 HAVE_SECURE_GETENV
=1;
7247 HAVE_DECL_SETSTATE
=1;
7252 HAVE_STRUCT_RANDOM_DATA
=1;
7253 HAVE_SYS_LOADAVG_H
=0;
7255 HAVE_DECL_UNSETENV
=1;
7257 REPLACE_CANONICALIZE_FILE_NAME
=0;
7258 REPLACE_INITSTATE
=0;
7263 REPLACE_PTSNAME_R
=0;
7280 for ac_func
in $ac_func_list
7282 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7283 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7284 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7285 cat >>confdefs.h
<<_ACEOF
7286 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7301 $as_echo_n "checking whether // is distinct from /... " >&6; }
7302 if ${gl_cv_double_slash_root+:} false
; then :
7303 $as_echo_n "(cached) " >&6
7305 if test x
"$cross_compiling" = xyes
; then
7306 # When cross-compiling, there is no way to tell whether // is special
7307 # short of a list of hosts. However, the only known hosts to date
7308 # that have a distinct // are Apollo DomainOS (too old to port to),
7309 # Cygwin, and z/OS. If anyone knows of another system for which // has
7310 # special semantics and is distinct from /, please report it to
7311 # <bug-gnulib@gnu.org>.
7313 *-cygwin | i370-ibm-openedition
)
7314 gl_cv_double_slash_root
=yes ;;
7316 # Be optimistic and assume that / and // are the same when we
7318 gl_cv_double_slash_root
='unknown, assuming no' ;;
7321 set x
`ls -di / // 2>/dev/null`
7322 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7323 gl_cv_double_slash_root
=no
7325 gl_cv_double_slash_root
=yes
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7330 $as_echo "$gl_cv_double_slash_root" >&6; }
7331 if test "$gl_cv_double_slash_root" = yes; then
7333 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7342 $as_echo_n "checking whether realpath works... " >&6; }
7343 if ${gl_cv_func_realpath_works+:} false
; then :
7344 $as_echo_n "(cached) " >&6
7349 if test "$cross_compiling" = yes; then :
7351 # Guess yes on glibc systems.
7352 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7353 # Guess yes on musl systems.
7354 *-musl*) gl_cv_func_realpath_works
="guessing yes" ;;
7355 # Guess no on native Windows.
7356 mingw
*) gl_cv_func_realpath_works
="guessing no" ;;
7357 # If we don't know, obey --enable-cross-guesses.
7358 *) gl_cv_func_realpath_works
="$gl_cross_guess_normal" ;;
7362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7368 #if defined __MACH__ && defined __APPLE__
7369 /* Avoid a crash on Mac OS X. */
7370 #include <mach/mach.h>
7371 #include <mach/mach_error.h>
7372 #include <mach/thread_status.h>
7373 #include <mach/exception.h>
7374 #include <mach/task.h>
7375 #include <pthread.h>
7376 /* The exception port on which our thread listens. */
7377 static mach_port_t our_exception_port;
7378 /* The main function of the thread listening for exceptions of type
7381 mach_exception_thread (void *arg)
7383 /* Buffer for a message to be received. */
7385 mach_msg_header_t head;
7386 mach_msg_body_t msgh_body;
7389 mach_msg_return_t retval;
7390 /* Wait for a message on the exception port. */
7391 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7392 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7393 if (retval != MACH_MSG_SUCCESS)
7400 mach_port_t self = mach_task_self ();
7401 /* Allocate a port on which the thread shall listen for exceptions. */
7402 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7404 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7405 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7406 MACH_MSG_TYPE_MAKE_SEND)
7408 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7410 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7411 /* Create the thread listening on the exception port. */
7412 pthread_attr_t attr;
7414 if (pthread_attr_init (&attr) == 0
7415 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7416 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7417 pthread_attr_destroy (&attr);
7418 /* Replace the exception port info for these exceptions with our own.
7419 Note that we replace the exception port for the entire task, not only
7420 for a particular thread. This has the effect that when our exception
7421 port gets the message, the thread specific exception port has already
7422 been asked, and we don't need to bother about it.
7423 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7424 task_set_exception_ports (self, mask, our_exception_port,
7425 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7430 #elif defined _WIN32 && ! defined __CYGWIN__
7431 /* Avoid a crash on native Windows. */
7432 #define WIN32_LEAN_AND_MEAN
7433 #include <windows.h>
7434 #include <winerror.h>
7436 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7438 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7440 case EXCEPTION_ACCESS_VIOLATION:
7441 case EXCEPTION_IN_PAGE_ERROR:
7442 case EXCEPTION_STACK_OVERFLOW:
7443 case EXCEPTION_GUARD_PAGE:
7444 case EXCEPTION_PRIV_INSTRUCTION:
7445 case EXCEPTION_ILLEGAL_INSTRUCTION:
7446 case EXCEPTION_DATATYPE_MISALIGNMENT:
7447 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7448 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7451 return EXCEPTION_CONTINUE_SEARCH;
7456 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7459 /* Avoid a crash on POSIX systems. */
7462 /* A POSIX signal handler. */
7464 exception_handler (int sig)
7472 signal (SIGSEGV, exception_handler);
7475 signal (SIGBUS, exception_handler);
7489 char *name = realpath ("conftest.a", NULL);
7490 if (!(name && *name == '/'))
7495 char *name = realpath ("conftest.b/../conftest.a", NULL);
7501 char *name = realpath ("conftest.a/", NULL);
7507 char *name1 = realpath (".", NULL);
7508 char *name2 = realpath ("conftest.d//./..", NULL);
7509 if (! name1 || ! name2 || strcmp (name1, name2))
7521 if ac_fn_c_try_run
"$LINENO"; then :
7522 gl_cv_func_realpath_works
=yes
7524 gl_cv_func_realpath_works
=no
7526 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7527 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7530 rm -rf conftest.a conftest.d
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7534 $as_echo "$gl_cv_func_realpath_works" >&6; }
7535 case "$gl_cv_func_realpath_works" in
7538 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7557 GNULIB_COPY_FILE_RANGE
=0;
7562 GNULIB_EUIDACCESS
=0;
7570 GNULIB_GETDOMAINNAME
=0;
7571 GNULIB_GETDTABLESIZE
=0;
7573 GNULIB_GETHOSTNAME
=0;
7575 GNULIB_GETLOGIN_R
=0;
7576 GNULIB_GETOPT_POSIX
=0;
7577 GNULIB_GETPAGESIZE
=0;
7579 GNULIB_GETUSERSHELL
=0;
7580 GNULIB_GROUP_MEMBER
=0;
7592 GNULIB_READLINKAT
=0;
7594 GNULIB_SETHOSTNAME
=0;
7600 GNULIB_UNISTD_H_NONBLOCKING
=0;
7601 GNULIB_UNISTD_H_SIGPIPE
=0;
7607 HAVE_COPY_FILE_RANGE
=1;
7617 HAVE_GETDTABLESIZE
=1;
7623 HAVE_GROUP_MEMBER
=1;
7639 HAVE_DECL_ENVIRON
=1;
7641 HAVE_DECL_FDATASYNC
=1;
7642 HAVE_DECL_GETDOMAINNAME
=1;
7643 HAVE_DECL_GETLOGIN
=1;
7644 HAVE_DECL_GETLOGIN_R
=1;
7645 HAVE_DECL_GETPAGESIZE
=1;
7646 HAVE_DECL_GETUSERSHELL
=1;
7647 HAVE_DECL_SETHOSTNAME
=1;
7648 HAVE_DECL_TRUNCATE
=1;
7649 HAVE_DECL_TTYNAME_R
=1;
7657 REPLACE_FACCESSAT
=0;
7659 REPLACE_FTRUNCATE
=0;
7661 REPLACE_GETDOMAINNAME
=0;
7662 REPLACE_GETDTABLESIZE
=0;
7663 REPLACE_GETLOGIN_R
=0;
7664 REPLACE_GETGROUPS
=0;
7665 REPLACE_GETPAGESIZE
=0;
7676 REPLACE_READLINKAT
=0;
7680 REPLACE_SYMLINKAT
=0;
7682 REPLACE_TTYNAME_R
=0;
7687 UNISTD_H_HAVE_WINSOCK2_H
=0;
7688 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7700 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7701 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7703 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7706 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7726 HAVE_DECL_FDOPENDIR
=1;
7733 REPLACE_FDOPENDIR
=0;
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7745 $as_echo_n "checking if environ is properly declared... " >&6; }
7746 if ${gt_cv_var_environ_declaration+:} false
; then :
7747 $as_echo_n "(cached) " >&6
7749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h. */
7754 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7757 extern struct { int foo; } environ;
7766 if ac_fn_c_try_compile
"$LINENO"; then :
7767 gt_cv_var_environ_declaration
=no
7769 gt_cv_var_environ_declaration
=yes
7771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7774 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7775 if test $gt_cv_var_environ_declaration = yes; then
7777 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7782 if test $gt_cv_var_environ_declaration != yes; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7789 $as_echo_n "checking for complete errno.h... " >&6; }
7790 if ${gl_cv_header_errno_h_complete+:} false
; then :
7791 $as_echo_n "(cached) " >&6
7794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7798 #if !defined ETXTBSY
7807 #if !defined ENOLINK
7813 #if !defined EMULTIHOP
7816 #if !defined EBADMSG
7819 #if !defined EOVERFLOW
7822 #if !defined ENOTSUP
7825 #if !defined ENETRESET
7828 #if !defined ECONNABORTED
7837 #if !defined ECANCELED
7840 #if !defined EOWNERDEAD
7843 #if !defined ENOTRECOVERABLE
7851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7852 $EGREP "booboo" >/dev
/null
2>&1; then :
7853 gl_cv_header_errno_h_complete
=no
7855 gl_cv_header_errno_h_complete
=yes
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7862 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7863 if test $gl_cv_header_errno_h_complete = yes; then
7874 if test $gl_cv_have_include_next = yes; then
7875 gl_cv_next_errno_h
='<'errno.h
'>'
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7878 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7879 if ${gl_cv_next_errno_h+:} false
; then :
7880 $as_echo_n "(cached) " >&6
7885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7890 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7891 *) gl_absname_cpp
="$ac_cpp" ;;
7896 gl_dirsep_regex
='[/\\]'
7899 gl_dirsep_regex
='\/'
7902 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
7903 gl_header_literal_regex
=`echo 'errno.h' \
7904 | sed -e "$gl_make_literal_regex_sed"`
7905 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7906 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7912 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7913 sed -n "$gl_absolute_header_sed"`
7915 gl_header
=$gl_cv_absolute_errno_h
7916 gl_cv_next_errno_h
='"'$gl_header'"'
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7921 $as_echo "$gl_cv_next_errno_h" >&6; }
7923 NEXT_ERRNO_H
=$gl_cv_next_errno_h
7925 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7926 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7927 gl_next_as_first_directive
='<'errno.h
'>'
7929 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7930 gl_next_as_first_directive
=$gl_cv_next_errno_h
7932 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
7940 if test -n "$ERRNO_H"; then
7941 GL_GENERATE_ERRNO_H_TRUE
=
7942 GL_GENERATE_ERRNO_H_FALSE
='#'
7944 GL_GENERATE_ERRNO_H_TRUE
='#'
7945 GL_GENERATE_ERRNO_H_FALSE
=
7949 if test -n "$ERRNO_H"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7951 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7952 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
7953 $as_echo_n "(cached) " >&6
7956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7966 $EGREP "yes" >/dev
/null
2>&1; then :
7967 gl_cv_header_errno_h_EMULTIHOP
=yes
7969 gl_cv_header_errno_h_EMULTIHOP
=no
7973 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
7974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7977 #define _XOPEN_SOURCE_EXTENDED 1
7984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7985 $EGREP "yes" >/dev
/null
2>&1; then :
7986 gl_cv_header_errno_h_EMULTIHOP
=hidden
7990 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
7991 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7992 #define _XOPEN_SOURCE_EXTENDED 1
7994 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8006 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8007 case $gl_cv_header_errno_h_EMULTIHOP in
8009 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8012 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8020 if test -n "$ERRNO_H"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8022 $as_echo_n "checking for ENOLINK value... " >&6; }
8023 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8024 $as_echo_n "(cached) " >&6
8027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8037 $EGREP "yes" >/dev
/null
2>&1; then :
8038 gl_cv_header_errno_h_ENOLINK
=yes
8040 gl_cv_header_errno_h_ENOLINK
=no
8044 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8048 #define _XOPEN_SOURCE_EXTENDED 1
8055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8056 $EGREP "yes" >/dev
/null
2>&1; then :
8057 gl_cv_header_errno_h_ENOLINK
=hidden
8061 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8062 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8063 #define _XOPEN_SOURCE_EXTENDED 1
8065 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8077 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8078 case $gl_cv_header_errno_h_ENOLINK in
8080 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8083 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8091 if test -n "$ERRNO_H"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8093 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8094 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8095 $as_echo_n "(cached) " >&6
8098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8108 $EGREP "yes" >/dev
/null
2>&1; then :
8109 gl_cv_header_errno_h_EOVERFLOW
=yes
8111 gl_cv_header_errno_h_EOVERFLOW
=no
8115 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8119 #define _XOPEN_SOURCE_EXTENDED 1
8126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8127 $EGREP "yes" >/dev
/null
2>&1; then :
8128 gl_cv_header_errno_h_EOVERFLOW
=hidden
8132 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8133 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8134 #define _XOPEN_SOURCE_EXTENDED 1
8136 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8148 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8149 case $gl_cv_header_errno_h_EOVERFLOW in
8151 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8154 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8162 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8163 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
8169 cat >>confdefs.h
<<_ACEOF
8170 #define HAVE_DECL_STRERROR_R $ac_have_decl
8173 for ac_func
in strerror_r
8175 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8176 if test "x$ac_cv_func_strerror_r" = xyes
; then :
8177 cat >>confdefs.h
<<_ACEOF
8178 #define HAVE_STRERROR_R 1
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8185 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8186 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
8187 $as_echo_n "(cached) " >&6
8190 ac_cv_func_strerror_r_char_p
=no
8191 if test $ac_cv_have_decl_strerror_r = yes; then
8192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 $ac_includes_default
8200 char x = *strerror_r (0, buf, sizeof buf);
8201 char *p = strerror_r (0, buf, sizeof buf);
8208 if ac_fn_c_try_compile
"$LINENO"; then :
8209 ac_cv_func_strerror_r_char_p
=yes
8211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8213 # strerror_r is not declared. Choose between
8214 # systems that have relatively inaccessible declarations for the
8215 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8216 # former has a strerror_r that returns char*, while the latter
8217 # has a strerror_r that returns `int'.
8218 # This test should segfault on the DEC system.
8219 if test "$cross_compiling" = yes; then :
8222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 $ac_includes_default
8225 extern char *strerror_r ();
8230 char x = *strerror_r (0, buf, sizeof buf);
8231 return ! isalpha (x);
8236 if ac_fn_c_try_run
"$LINENO"; then :
8237 ac_cv_func_strerror_r_char_p
=yes
8239 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8240 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8247 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8248 if test $ac_cv_func_strerror_r_char_p = yes; then
8250 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8257 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8258 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8264 cat >>confdefs.h
<<_ACEOF
8265 #define HAVE_DECL_FCHDIR $ac_have_decl
8271 GNULIB_NONBLOCKING
=0;
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8291 $as_echo_n "checking for working fcntl.h... " >&6; }
8292 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8293 $as_echo_n "(cached) " >&6
8295 if test "$cross_compiling" = yes; then :
8297 # Guess 'no' on native Windows.
8298 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
8299 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
8303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305 #include <sys/types.h>
8306 #include <sys/stat.h>
8308 # include <unistd.h>
8309 #else /* on Windows with MSVC */
8311 # include <stdlib.h>
8312 # defined sleep(n) _sleep ((n) * 1000)
8319 #define O_NOFOLLOW 0
8321 static int const constants[] =
8323 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8324 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8331 int result = !constants;
8334 static char const sym[] = "conftest.sym";
8335 if (symlink ("/dev/null", sym) != 0)
8339 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8346 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8350 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8361 static char const file[] = "confdefs.h";
8362 int fd = open (file, O_RDONLY | O_NOATIME);
8368 if (fstat (fd, &st0) != 0)
8374 if (read (fd, &c, 1) != 1)
8378 if (close (fd) != 0)
8383 if (stat (file, &st1) != 0)
8386 if (st0.st_atime != st1.st_atime)
8398 if ac_fn_c_try_run
"$LINENO"; then :
8399 gl_cv_header_working_fcntl_h
=yes
8402 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8403 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8404 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8405 *) gl_cv_header_working_fcntl_h
='no';;
8408 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8409 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8415 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8417 case $gl_cv_header_working_fcntl_h in #(
8418 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8422 cat >>confdefs.h
<<_ACEOF
8423 #define HAVE_WORKING_O_NOATIME $ac_val
8427 case $gl_cv_header_working_fcntl_h in #(
8428 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8432 cat >>confdefs.h
<<_ACEOF
8433 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8437 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8438 if test "x$ac_cv_type_pid_t" = xyes
; then :
8442 cat >>confdefs.h
<<_ACEOF
8448 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8449 if test "x$ac_cv_type_mode_t" = xyes
; then :
8453 cat >>confdefs.h
<<_ACEOF
8483 if test $gl_cv_have_include_next = yes; then
8484 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
8487 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
8488 if ${gl_cv_next_fnmatch_h+:} false
; then :
8489 $as_echo_n "(cached) " >&6
8492 if test $ac_cv_header_fnmatch_h = yes; then
8497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 #include <fnmatch.h>
8502 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8503 *) gl_absname_cpp
="$ac_cpp" ;;
8508 gl_dirsep_regex
='[/\\]'
8511 gl_dirsep_regex
='\/'
8514 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8515 gl_header_literal_regex
=`echo 'fnmatch.h' \
8516 | sed -e "$gl_make_literal_regex_sed"`
8517 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8518 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8524 gl_cv_absolute_fnmatch_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8525 sed -n "$gl_absolute_header_sed"`
8527 gl_header
=$gl_cv_absolute_fnmatch_h
8528 gl_cv_next_fnmatch_h
='"'$gl_header'"'
8530 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
8536 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
8538 NEXT_FNMATCH_H
=$gl_cv_next_fnmatch_h
8540 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8541 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8542 gl_next_as_first_directive
='<'fnmatch.h
'>'
8544 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8545 gl_next_as_first_directive
=$gl_cv_next_fnmatch_h
8547 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
=$gl_next_as_first_directive
8555 if test $ac_cv_header_fnmatch_h = yes; then
8566 if test $ac_cv_header_fnmatch_h != yes; then
8572 if test -n "$FNMATCH_H"; then
8573 GL_GENERATE_FNMATCH_H_TRUE
=
8574 GL_GENERATE_FNMATCH_H_FALSE
='#'
8576 GL_GENERATE_FNMATCH_H_TRUE
='#'
8577 GL_GENERATE_FNMATCH_H_FALSE
=
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8590 $as_echo_n "checking for mbstate_t... " >&6; }
8591 if ${ac_cv_type_mbstate_t+:} false
; then :
8592 $as_echo_n "(cached) " >&6
8594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 $ac_includes_default
8597 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8599 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8600 included before <wchar.h>. */
8608 mbstate_t x; return sizeof x;
8613 if ac_fn_c_try_compile
"$LINENO"; then :
8614 ac_cv_type_mbstate_t
=yes
8616 ac_cv_type_mbstate_t
=no
8618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8621 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8622 if test $ac_cv_type_mbstate_t = yes; then
8624 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8628 $as_echo "#define mbstate_t int" >>confdefs.h
8724 GNULIB_REMAINDERF
=0;
8725 GNULIB_REMAINDERL
=0;
8811 HAVE_DECL_COPYSIGNF
=1;
8828 HAVE_DECL_REMAINDER
=1;
8829 HAVE_DECL_REMAINDERL
=1;
8901 REPLACE_REMAINDER
=0;
8902 REPLACE_REMAINDERF
=0;
8903 REPLACE_REMAINDERL
=0;
8909 REPLACE_SIGNBIT_USING_GCC
=0;
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
8922 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
8923 if ${gl_cv_func_frexp_no_libm+:} false
; then :
8924 $as_echo_n "(cached) " >&6
8927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8934 int e; return frexp (x, &e) > 0;
8939 if ac_fn_c_try_link
"$LINENO"; then :
8940 gl_cv_func_frexp_no_libm
=yes
8942 gl_cv_func_frexp_no_libm
=no
8944 rm -f core conftest.err conftest.
$ac_objext \
8945 conftest
$ac_exeext conftest.
$ac_ext
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
8949 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
8951 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
8952 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
8958 cat >>confdefs.h
<<_ACEOF
8959 #define HAVE_DECL_ALARM $ac_have_decl
8966 if test $gl_cv_func_frexp_no_libm = no
; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
8968 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
8969 if ${gl_cv_func_frexp_in_libm+:} false
; then :
8970 $as_echo_n "(cached) " >&6
8975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8982 int e; return frexp (x, &e) > 0;
8987 if ac_fn_c_try_link
"$LINENO"; then :
8988 gl_cv_func_frexp_in_libm
=yes
8990 gl_cv_func_frexp_in_libm
=no
8992 rm -f core conftest.err conftest.
$ac_objext \
8993 conftest
$ac_exeext conftest.
$ac_ext
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
8998 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
8999 if test $gl_cv_func_frexp_in_libm = yes; then
9003 if test $gl_cv_func_frexp_no_libm = yes \
9004 ||
test $gl_cv_func_frexp_in_libm = yes; then
9006 LIBS
="$LIBS $FREXP_LIBM"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
9011 $as_echo_n "checking whether frexp works... " >&6; }
9012 if ${gl_cv_func_frexp_works+:} false
; then :
9013 $as_echo_n "(cached) " >&6
9016 if test "$cross_compiling" = yes; then :
9018 netbsd
* | irix
*) gl_cv_func_frexp_works
="guessing no" ;;
9019 mingw
*) # Guess yes with MSVC, no with mingw.
9020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9029 $EGREP "Good" >/dev
/null
2>&1; then :
9030 gl_cv_func_frexp_works
="guessing yes"
9032 gl_cv_func_frexp_works
="guessing no"
9037 *) gl_cv_func_frexp_works
="guessing yes" ;;
9041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9048 # include <signal.h>
9049 # include <unistd.h>
9051 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
9052 ICC 10.0 has a bug when optimizing the expression -zero.
9053 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
9054 to PowerPC on Mac OS X 10.5. */
9055 #if defined __hpux || defined __sgi || defined __ICC
9057 compute_minus_zero (void)
9059 return -DBL_MIN * DBL_MIN;
9061 # define minus_zero compute_minus_zero ()
9063 double minus_zero = -0.0;
9072 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
9073 number. Let the test fail in this case. */
9074 signal (SIGALRM, SIG_DFL);
9077 /* Test on denormalized numbers. */
9078 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
9083 double y = frexp (x, &exp);
9084 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
9085 On NetBSD: y = 0.75. Correct: y = 0.5. */
9089 /* Test on infinite numbers. */
9093 double y = frexp (x, &exp);
9097 /* Test on negative zero. */
9101 double y = frexp (x, &exp);
9102 if (memcmp (&y, &x, sizeof x))
9108 if ac_fn_c_try_run
"$LINENO"; then :
9109 gl_cv_func_frexp_works
=yes
9111 gl_cv_func_frexp_works
=no
9113 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9114 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
9120 $as_echo "$gl_cv_func_frexp_works" >&6; }
9123 case "$gl_cv_func_frexp_works" in
9124 *yes) gl_func_frexp
=yes ;;
9125 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
9130 if test $gl_func_frexp = yes; then
9132 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9139 $as_echo_n "checking whether long double and double are the same... " >&6; }
9140 if ${gl_cv_long_double_equals_double+:} false
; then :
9141 $as_echo_n "(cached) " >&6
9143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9149 typedef int check[sizeof (long double) == sizeof (double)
9150 && LDBL_MANT_DIG == DBL_MANT_DIG
9151 && LDBL_MAX_EXP == DBL_MAX_EXP
9152 && LDBL_MIN_EXP == DBL_MIN_EXP
9159 if ac_fn_c_try_compile
"$LINENO"; then :
9160 gl_cv_long_double_equals_double
=yes
9162 gl_cv_long_double_equals_double
=no
9164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9168 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9169 if test $gl_cv_long_double_equals_double = yes; then
9171 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9173 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9175 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9185 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
9187 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
9195 if test $HAVE_DECL_FREXPL = 1; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
9198 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
9199 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
9200 $as_echo_n "(cached) " >&6
9203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9204 /* end confdefs.h. */
9210 int e; return frexpl (x, &e) > 0;
9215 if ac_fn_c_try_link
"$LINENO"; then :
9216 gl_cv_func_frexpl_no_libm
=yes
9218 gl_cv_func_frexpl_no_libm
=no
9220 rm -f core conftest.err conftest.
$ac_objext \
9221 conftest
$ac_exeext conftest.
$ac_ext
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
9225 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
9227 if test $gl_cv_func_frexpl_no_libm = no
; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
9229 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
9230 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
9231 $as_echo_n "(cached) " >&6
9236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9243 int e; return frexpl (x, &e) > 0;
9248 if ac_fn_c_try_link
"$LINENO"; then :
9249 gl_cv_func_frexpl_in_libm
=yes
9251 gl_cv_func_frexpl_in_libm
=no
9253 rm -f core conftest.err conftest.
$ac_objext \
9254 conftest
$ac_exeext conftest.
$ac_ext
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
9259 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
9260 if test $gl_cv_func_frexpl_in_libm = yes; then
9264 if test $gl_cv_func_frexpl_no_libm = yes \
9265 ||
test $gl_cv_func_frexpl_in_libm = yes; then
9267 LIBS
="$LIBS $FREXPL_LIBM"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
9271 $as_echo_n "checking whether frexpl works... " >&6; }
9272 if ${gl_cv_func_frexpl_works+:} false
; then :
9273 $as_echo_n "(cached) " >&6
9276 if test "$cross_compiling" = yes; then :
9279 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
9280 gl_cv_func_frexpl_works
="guessing no";;
9281 *) gl_cv_func_frexpl_works
="guessing yes";;
9285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9290 /* Override the values of <float.h>, like done in float.in.h. */
9291 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
9292 # undef LDBL_MIN_EXP
9293 # define LDBL_MIN_EXP (-16381)
9295 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
9296 # undef LDBL_MIN_EXP
9297 # define LDBL_MIN_EXP (-16381)
9299 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
9300 # undef LDBL_MIN_EXP
9301 # define LDBL_MIN_EXP DBL_MIN_EXP
9303 #if defined __sgi && (LDBL_MANT_DIG >= 106)
9304 # if defined __GNUC__
9305 # undef LDBL_MIN_EXP
9306 # define LDBL_MIN_EXP DBL_MIN_EXP
9313 long double frexpl (long double, int *);
9317 volatile long double x;
9318 /* Test on finite numbers that fails on AIX 5.1. */
9326 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
9327 function returns an invalid (incorrectly normalized) value: it returns
9328 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
9329 but the correct result is
9330 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
9334 long double y = frexpl (x, &exp);
9335 if (!(exp == 1 && y == 0.505L))
9338 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
9339 LDBL_MAX_EXP = 16384.
9340 In the loop end test, we test x against Infinity, rather than comparing
9341 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
9344 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
9355 /* Test on denormalized numbers. */
9358 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
9363 long double y = frexpl (x, &exp);
9364 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
9365 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
9366 if (exp != LDBL_MIN_EXP - 1)
9370 /* Test on infinite numbers. */
9374 long double y = frexpl (x, &exp);
9381 if ac_fn_c_try_run
"$LINENO"; then :
9382 gl_cv_func_frexpl_works
=yes
9384 gl_cv_func_frexpl_works
=no
9386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
9393 $as_echo "$gl_cv_func_frexpl_works" >&6; }
9396 case "$gl_cv_func_frexpl_works" in
9397 *yes) gl_func_frexpl
=yes ;;
9398 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
9403 if test $gl_func_frexpl = yes; then
9405 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
9409 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
9410 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
9412 FREXPL_LIBM
="$FREXP_LIBM"
9433 GNULIB_OVERRIDES_STRUCT_STAT
=0;
9455 REPLACE_UTIMENSAT
=0;
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9458 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9459 if ${ac_cv_header_stat_broken+:} false
; then :
9460 $as_echo_n "(cached) " >&6
9462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464 #include <sys/types.h>
9465 #include <sys/stat.h>
9467 #if defined S_ISBLK && defined S_IFDIR
9468 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9471 #if defined S_ISBLK && defined S_IFCHR
9472 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9475 #if defined S_ISLNK && defined S_IFREG
9476 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9479 #if defined S_ISSOCK && defined S_IFREG
9480 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9484 if ac_fn_c_try_compile
"$LINENO"; then :
9485 ac_cv_header_stat_broken
=no
9487 ac_cv_header_stat_broken
=yes
9489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9492 $as_echo "$ac_cv_header_stat_broken" >&6; }
9493 if test $ac_cv_header_stat_broken = yes; then
9495 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9506 $as_echo_n "checking for 64-bit off_t... " >&6; }
9507 if ${gl_cv_type_off_t_64+:} false
; then :
9508 $as_echo_n "(cached) " >&6
9510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512 #include <sys/types.h>
9513 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9523 if ac_fn_c_try_compile
"$LINENO"; then :
9524 gl_cv_type_off_t_64
=yes
9526 gl_cv_type_off_t_64
=no
9528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9532 $as_echo "$gl_cv_type_off_t_64" >&6; }
9533 if test $gl_cv_type_off_t_64 = no
; then
9534 WINDOWS_64_BIT_OFF_T
=1
9536 WINDOWS_64_BIT_OFF_T
=0
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
9539 $as_echo_n "checking for 64-bit st_size... " >&6; }
9540 if ${gl_cv_member_st_size_64+:} false
; then :
9541 $as_echo_n "(cached) " >&6
9543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545 #include <sys/types.h>
9547 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
9557 if ac_fn_c_try_compile
"$LINENO"; then :
9558 gl_cv_member_st_size_64
=yes
9560 gl_cv_member_st_size_64
=no
9562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
9566 $as_echo "$gl_cv_member_st_size_64" >&6; }
9567 if test $gl_cv_member_st_size_64 = no
; then
9568 WINDOWS_64_BIT_ST_SIZE
=1
9570 WINDOWS_64_BIT_ST_SIZE
=0
9574 WINDOWS_64_BIT_OFF_T
=0
9575 WINDOWS_64_BIT_ST_SIZE
=0
9593 if test $gl_cv_have_include_next = yes; then
9594 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
9597 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
9598 if ${gl_cv_next_sys_stat_h+:} false
; then :
9599 $as_echo_n "(cached) " >&6
9602 if test $ac_cv_header_sys_stat_h = yes; then
9607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 #include <sys/stat.h>
9612 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9613 *) gl_absname_cpp
="$ac_cpp" ;;
9618 gl_dirsep_regex
='[/\\]'
9621 gl_dirsep_regex
='\/'
9624 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9625 gl_header_literal_regex
=`echo 'sys/stat.h' \
9626 | sed -e "$gl_make_literal_regex_sed"`
9627 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9628 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9634 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9635 sed -n "$gl_absolute_header_sed"`
9637 gl_header
=$gl_cv_absolute_sys_stat_h
9638 gl_cv_next_sys_stat_h
='"'$gl_header'"'
9640 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
9646 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
9648 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
9650 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9651 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9652 gl_next_as_first_directive
='<'sys
/stat.h
'>'
9654 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9655 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
9657 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
9666 WINDOWS_STAT_TIMESPEC
=0
9675 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
9676 #include <sys/stat.h>
9678 if test "x$ac_cv_type_nlink_t" = xyes
; then :
9682 $as_echo "#define nlink_t int" >>confdefs.h
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9693 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9694 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
9695 $as_echo_n "(cached) " >&6
9697 rm -f conftest.sym conftest.
file
9699 if test "$cross_compiling" = yes; then :
9702 # Guess yes on Linux systems.
9703 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9705 # Guess yes on glibc systems.
9706 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9708 # Guess no on native Windows.
9709 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
9711 # If we don't know, obey --enable-cross-guesses.
9712 gl_cv_func_lstat_dereferences_slashed_symlink
="$gl_cross_guess_normal" ;;
9716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718 $ac_includes_default
9723 if (symlink ("conftest.file", "conftest.sym") != 0)
9725 /* Linux will dereference the symlink and fail, as required by
9726 POSIX. That is better in the sense that it means we will not
9727 have to compile and use the lstat wrapper. */
9728 return lstat ("conftest.sym/", &sbuf) == 0;
9734 if ac_fn_c_try_run
"$LINENO"; then :
9735 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
9737 gl_cv_func_lstat_dereferences_slashed_symlink
=no
9739 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9740 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9743 rm -f conftest.sym conftest.
file
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9747 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9748 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9751 cat >>confdefs.h
<<_ACEOF
9752 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9763 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9764 if ${gl_cv_func_getcwd_null+:} false
; then :
9765 $as_echo_n "(cached) " >&6
9767 if test "$cross_compiling" = yes; then :
9769 # Guess yes on glibc systems.
9770 *-gnu* | gnu
*) gl_cv_func_getcwd_null
="guessing yes";;
9771 # Guess yes on musl systems.
9772 *-musl*) gl_cv_func_getcwd_null
="guessing yes";;
9773 # Guess yes on Cygwin.
9774 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
9775 # If we don't know, obey --enable-cross-guesses.
9776 *) gl_cv_func_getcwd_null
="$gl_cross_guess_normal";;
9780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9783 # include <stdlib.h>
9785 # include <unistd.h>
9786 # else /* on Windows with MSVC */
9787 # include <direct.h>
9797 #if defined _WIN32 && ! defined __CYGWIN__
9798 /* mingw cwd does not start with '/', but getcwd does allocate.
9799 However, mingw fails to honor non-zero size. */
9801 if (chdir ("/") != 0)
9805 char *f = getcwd (NULL, 0);
9809 { free (f); return 3; }
9811 { free (f); return 4; }
9821 if ac_fn_c_try_run
"$LINENO"; then :
9822 gl_cv_func_getcwd_null
=yes
9824 gl_cv_func_getcwd_null
=no
9826 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9827 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9832 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9836 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9837 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9838 $as_echo_n "(cached) " >&6
9840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9850 char *getcwd (char *, size_t);
9857 if ac_fn_c_try_compile
"$LINENO"; then :
9858 gl_cv_func_getcwd_posix_signature
=yes
9860 gl_cv_func_getcwd_posix_signature
=no
9862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9866 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9868 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9869 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
9875 cat >>confdefs.h
<<_ACEOF
9876 #define HAVE_DECL_GETCWD $ac_have_decl
9881 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9882 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
9888 cat >>confdefs.h
<<_ACEOF
9889 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9892 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9893 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
9899 cat >>confdefs.h
<<_ACEOF
9900 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9905 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9906 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
9912 cat >>confdefs.h
<<_ACEOF
9913 #define HAVE_DECL_GETLOGIN $ac_have_decl
9920 LIB_GETLOGIN
='-ladvapi32' ;;
9931 GNULIB_GETTIMEOFDAY
=0;
9932 HAVE_GETTIMEOFDAY
=1;
9933 HAVE_STRUCT_TIMEVAL
=1;
9935 REPLACE_GETTIMEOFDAY
=0;
9936 REPLACE_STRUCT_TIMEVAL
=0;
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9939 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9940 if ${ac_cv_c_restrict+:} false
; then :
9941 $as_echo_n "(cached) " >&6
9944 # The order here caters to the fact that C++ does not require restrict.
9945 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948 typedef int *int_ptr;
9949 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9950 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9951 int bar (int ip[$ac_kw]) { return ip[0]; }
9959 return foo (t) + bar (t);
9965 if ac_fn_c_try_compile
"$LINENO"; then :
9966 ac_cv_c_restrict
=$ac_kw
9968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9969 test "$ac_cv_c_restrict" != no
&& break
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9974 $as_echo "$ac_cv_c_restrict" >&6; }
9976 case $ac_cv_c_restrict in
9978 no
) $as_echo "#define restrict /**/" >>confdefs.h
9980 *) cat >>confdefs.h
<<_ACEOF
9981 #define restrict $ac_cv_c_restrict
10001 if test $gl_cv_have_include_next = yes; then
10002 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
10005 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10006 if ${gl_cv_next_sys_time_h+:} false
; then :
10007 $as_echo_n "(cached) " >&6
10010 if test $ac_cv_header_sys_time_h = yes; then
10015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017 #include <sys/time.h>
10020 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10021 *) gl_absname_cpp
="$ac_cpp" ;;
10026 gl_dirsep_regex
='[/\\]'
10029 gl_dirsep_regex
='\/'
10032 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10033 gl_header_literal_regex
=`echo 'sys/time.h' \
10034 | sed -e "$gl_make_literal_regex_sed"`
10035 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10036 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10042 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10043 sed -n "$gl_absolute_header_sed"`
10045 gl_header
=$gl_cv_absolute_sys_time_h
10046 gl_cv_next_sys_time_h
='"'$gl_header'"'
10048 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
10054 $as_echo "$gl_cv_next_sys_time_h" >&6; }
10056 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
10058 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10059 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10060 gl_next_as_first_directive
='<'sys
/time.h
'>'
10062 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10063 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
10065 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
10071 if test $ac_cv_header_sys_time_h != yes; then
10079 if test $ac_cv_header_sys_socket_h != yes; then
10080 for ac_header
in winsock2.h
10082 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10083 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10084 cat >>confdefs.h
<<_ACEOF
10085 #define HAVE_WINSOCK2_H 1
10093 if test "$ac_cv_header_winsock2_h" = yes; then
10095 UNISTD_H_HAVE_WINSOCK2_H
=1
10096 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10103 $as_echo_n "checking for struct timeval... " >&6; }
10104 if ${gl_cv_sys_struct_timeval+:} false
; then :
10105 $as_echo_n "(cached) " >&6
10107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109 #if HAVE_SYS_TIME_H
10110 #include <sys/time.h>
10113 #if HAVE_WINSOCK2_H
10114 # include <winsock2.h>
10120 static struct timeval x; x.tv_sec = x.tv_usec;
10125 if ac_fn_c_try_compile
"$LINENO"; then :
10126 gl_cv_sys_struct_timeval
=yes
10128 gl_cv_sys_struct_timeval
=no
10130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10134 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10135 if test $gl_cv_sys_struct_timeval != yes; then
10136 HAVE_STRUCT_TIMEVAL
=0
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10139 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10140 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
10141 $as_echo_n "(cached) " >&6
10143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145 #if HAVE_SYS_TIME_H
10146 #include <sys/time.h>
10149 #if HAVE_WINSOCK2_H
10150 # include <winsock2.h>
10156 static struct timeval x;
10157 typedef int verify_tv_sec_type[
10158 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10165 if ac_fn_c_try_compile
"$LINENO"; then :
10166 gl_cv_sys_struct_timeval_tv_sec
=yes
10168 gl_cv_sys_struct_timeval_tv_sec
=no
10170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10174 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10175 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10176 REPLACE_STRUCT_TIMEVAL
=1
10190 NEED_LOCALTIME_BUFFER
=0
10195 GNULIB_LOCALTIME
=0;
10196 GNULIB_NANOSLEEP
=0;
10203 HAVE_DECL_LOCALTIME_R
=1;
10209 REPLACE_CTIME
=GNULIB_PORTCHECK
;
10210 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
10211 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
10212 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
10213 REPLACE_STRFTIME
=GNULIB_PORTCHECK
;
10214 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
10215 REPLACE_TZSET
=GNULIB_PORTCHECK
;
10217 : ${GNULIB_GETTIMEOFDAY=0};
10219 REPLACE_LOCALTIME
=0;
10224 HAVE_GLOB_PATTERN_P
=1;
10226 REPLACE_GLOB_PATTERN_P
=0;
10244 if test $gl_cv_have_include_next = yes; then
10245 gl_cv_next_glob_h
='<'glob.h
'>'
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <glob.h>" >&5
10248 $as_echo_n "checking absolute name of <glob.h>... " >&6; }
10249 if ${gl_cv_next_glob_h+:} false
; then :
10250 $as_echo_n "(cached) " >&6
10253 if test $ac_cv_header_glob_h = yes; then
10258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10263 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10264 *) gl_absname_cpp
="$ac_cpp" ;;
10269 gl_dirsep_regex
='[/\\]'
10272 gl_dirsep_regex
='\/'
10275 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10276 gl_header_literal_regex
=`echo 'glob.h' \
10277 | sed -e "$gl_make_literal_regex_sed"`
10278 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10279 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10285 gl_cv_absolute_glob_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10286 sed -n "$gl_absolute_header_sed"`
10288 gl_header
=$gl_cv_absolute_glob_h
10289 gl_cv_next_glob_h
='"'$gl_header'"'
10291 gl_cv_next_glob_h
='<'glob.h
'>'
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_glob_h" >&5
10297 $as_echo "$gl_cv_next_glob_h" >&6; }
10299 NEXT_GLOB_H
=$gl_cv_next_glob_h
10301 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10302 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10303 gl_next_as_first_directive
='<'glob.h
'>'
10305 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10306 gl_next_as_first_directive
=$gl_cv_next_glob_h
10308 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
=$gl_next_as_first_directive
10314 if test $ac_cv_header_glob_h = yes; then
10325 if test $ac_cv_header_glob_h != yes; then
10331 if test -n "$GLOB_H"; then
10332 GL_GENERATE_GLOB_H_TRUE
=
10333 GL_GENERATE_GLOB_H_FALSE
='#'
10335 GL_GENERATE_GLOB_H_TRUE
='#'
10336 GL_GENERATE_GLOB_H_FALSE
=
10354 if test -z "$gl_pthreadlib_body_done"; then
10358 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
10359 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
10360 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10361 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10362 gl_have_pthread_h
=yes
10364 gl_have_pthread_h
=no
10368 if test "$gl_have_pthread_h" = yes; then
10369 # Other possible tests:
10370 # -lpthreads (FSU threads, PCthreads)
10372 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
10373 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
10374 # the second one only in libpthread, and lock.c needs it.
10376 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
10377 # needs -pthread for some reason. See:
10378 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
10380 for gl_pthread
in '' '-pthread'; do
10381 LIBS
="$LIBS $gl_pthread"
10382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384 #include <pthread.h>
10386 pthread_mutexattr_t ma;
10391 pthread_mutex_lock (&m);
10392 pthread_mutexattr_init (&ma);
10397 if ac_fn_c_try_link
"$LINENO"; then :
10399 LIBPTHREAD
=$gl_pthread
10400 LIBPMULTITHREAD
=$gl_pthread
10402 rm -f core conftest.err conftest.
$ac_objext \
10403 conftest
$ac_exeext conftest.
$ac_ext
10405 test $gl_pthread_api = yes && break
10408 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
10409 # since it is defined as a macro on OSF/1.)
10410 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
10411 # The program links fine without libpthread. But it may actually
10412 # need to link with libpthread in order to create multiple threads.
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
10414 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
10415 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
10416 $as_echo_n "(cached) " >&6
10418 ac_check_lib_save_LIBS
=$LIBS
10419 LIBS
="-lpthread $LIBS"
10420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10429 char pthread_kill ();
10433 return pthread_kill ();
10438 if ac_fn_c_try_link
"$LINENO"; then :
10439 ac_cv_lib_pthread_pthread_kill
=yes
10441 ac_cv_lib_pthread_pthread_kill
=no
10443 rm -f core conftest.err conftest.
$ac_objext \
10444 conftest
$ac_exeext conftest.
$ac_ext
10445 LIBS
=$ac_check_lib_save_LIBS
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
10448 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
10449 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
10450 LIBPMULTITHREAD
=-lpthread
10451 # On Solaris and HP-UX, most pthread functions exist also in libc.
10452 # Therefore pthread_in_use() needs to actually try to create a
10453 # thread: pthread_create from libc will fail, whereas
10454 # pthread_create will actually create a thread.
10455 # On Solaris 10 or newer, this test is no longer needed, because
10456 # libc contains the fully functional pthread functions.
10458 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
10460 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
10466 elif test $gl_pthread_api != yes; then
10467 # Some library is needed. Try libpthread and libc_r.
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
10469 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
10470 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
10471 $as_echo_n "(cached) " >&6
10473 ac_check_lib_save_LIBS
=$LIBS
10474 LIBS
="-lpthread $LIBS"
10475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10478 /* Override any GCC internal prototype to avoid an error.
10479 Use char because int might match the return type of a GCC
10480 builtin and then its argument prototype would still apply. */
10484 char pthread_kill ();
10488 return pthread_kill ();
10493 if ac_fn_c_try_link
"$LINENO"; then :
10494 ac_cv_lib_pthread_pthread_kill
=yes
10496 ac_cv_lib_pthread_pthread_kill
=no
10498 rm -f core conftest.err conftest.
$ac_objext \
10499 conftest
$ac_exeext conftest.
$ac_ext
10500 LIBS
=$ac_check_lib_save_LIBS
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
10503 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
10504 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
10506 LIBPTHREAD
=-lpthread
10507 LIBPMULTITHREAD
=-lpthread
10510 if test $gl_pthread_api != yes; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
10513 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
10514 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
10515 $as_echo_n "(cached) " >&6
10517 ac_check_lib_save_LIBS
=$LIBS
10519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10522 /* Override any GCC internal prototype to avoid an error.
10523 Use char because int might match the return type of a GCC
10524 builtin and then its argument prototype would still apply. */
10528 char pthread_kill ();
10532 return pthread_kill ();
10537 if ac_fn_c_try_link
"$LINENO"; then :
10538 ac_cv_lib_c_r_pthread_kill
=yes
10540 ac_cv_lib_c_r_pthread_kill
=no
10542 rm -f core conftest.err conftest.
$ac_objext \
10543 conftest
$ac_exeext conftest.
$ac_ext
10544 LIBS
=$ac_check_lib_save_LIBS
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
10547 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
10548 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
10551 LIBPMULTITHREAD
=-lc_r
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
10558 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
10560 $as_echo "$gl_pthread_api" >&6; }
10563 if test $gl_pthread_api = yes; then
10565 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
10569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10580 if ac_fn_c_try_link
"$LINENO"; then :
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
10585 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
10586 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
10587 $as_echo_n "(cached) " >&6
10589 ac_check_lib_save_LIBS
=$LIBS
10591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10594 /* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10600 char sched_yield ();
10604 return sched_yield ();
10609 if ac_fn_c_try_link
"$LINENO"; then :
10610 ac_cv_lib_rt_sched_yield
=yes
10612 ac_cv_lib_rt_sched_yield
=no
10614 rm -f core conftest.err conftest.
$ac_objext \
10615 conftest
$ac_exeext conftest.
$ac_ext
10616 LIBS
=$ac_check_lib_save_LIBS
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
10619 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
10620 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
10621 LIB_SCHED_YIELD
=-lrt
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
10624 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
10625 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
10626 $as_echo_n "(cached) " >&6
10628 ac_check_lib_save_LIBS
=$LIBS
10629 LIBS
="-lposix4 $LIBS"
10630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10633 /* Override any GCC internal prototype to avoid an error.
10634 Use char because int might match the return type of a GCC
10635 builtin and then its argument prototype would still apply. */
10639 char sched_yield ();
10643 return sched_yield ();
10648 if ac_fn_c_try_link
"$LINENO"; then :
10649 ac_cv_lib_posix4_sched_yield
=yes
10651 ac_cv_lib_posix4_sched_yield
=no
10653 rm -f core conftest.err conftest.
$ac_objext \
10654 conftest
$ac_exeext conftest.
$ac_ext
10655 LIBS
=$ac_check_lib_save_LIBS
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
10658 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
10659 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
10660 LIB_SCHED_YIELD
=-lposix4
10667 rm -f core conftest.err conftest.
$ac_objext \
10668 conftest
$ac_exeext conftest.
$ac_ext
10671 gl_pthreadlib_body_done
=done
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
10683 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
10684 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
10685 $as_echo_n "(cached) " >&6
10688 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
10689 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
10690 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
10691 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
10692 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
10693 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
10694 # If we don't know, obey --enable-cross-guesses.
10696 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
10701 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
10705 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
10706 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
10710 case "$gl_cv_func_setlocale_null_all_mtsafe" in
10711 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
10712 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
10715 cat >>confdefs.h
<<_ACEOF
10716 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
10721 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
10722 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
10723 $as_echo_n "(cached) " >&6
10726 # Guess no on OpenBSD, AIX.
10728 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
10729 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
10730 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
10731 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
10732 # If we don't know, obey --enable-cross-guesses.
10734 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
10739 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
10743 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
10744 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
10748 case "$gl_cv_func_setlocale_null_one_mtsafe" in
10749 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
10750 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
10753 cat >>confdefs.h
<<_ACEOF
10754 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
10758 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
10760 mingw
*) LIB_SETLOCALE_NULL
= ;;
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
10765 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
10766 if ${gl_cv_have_weak+:} false
; then :
10767 $as_echo_n "(cached) " >&6
10770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10772 extern void xyzzy ();
10782 if ac_fn_c_try_link
"$LINENO"; then :
10783 gl_cv_have_weak
=maybe
10785 rm -f core conftest.err conftest.
$ac_objext \
10786 conftest
$ac_exeext conftest.
$ac_ext
10787 if test $gl_cv_have_weak = maybe
; then
10788 if test "$cross_compiling" = yes; then :
10789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10792 Extensible Linking Format
10796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10797 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
10798 gl_cv_have_weak
="guessing yes"
10800 gl_cv_have_weak
="guessing no"
10806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10813 return (fputs == NULL);
10816 if ac_fn_c_try_run
"$LINENO"; then :
10817 gl_cv_have_weak
=yes
10821 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10822 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10826 case " $LDFLAGS " in
10827 *" -static "*) gl_cv_have_weak
=no
;;
10829 case "$gl_cv_have_weak" in
10832 freebsd
* | dragonfly
*)
10834 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
10835 cat <<EOF > conftest2.c
10836 #include <pthread.h>
10837 #pragma weak pthread_mutexattr_gettype
10840 return (pthread_mutexattr_gettype != NULL);
10843 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
10844 || gl_cv_have_weak
=no
10845 rm -f conftest1.c libempty.so conftest2.c conftest
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
10853 $as_echo "$gl_cv_have_weak" >&6; }
10854 case "$gl_cv_have_weak" in
10857 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
10862 case "$gl_cv_have_weak" in
10863 *yes) LIB_SETLOCALE_NULL
= ;;
10864 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
10869 LIB_SETLOCALE_NULL
=
10880 GNULIB_GETPEERNAME
=0;
10881 GNULIB_GETSOCKNAME
=0;
10882 GNULIB_GETSOCKOPT
=0;
10888 GNULIB_SETSOCKOPT
=0;
10891 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
10892 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
10894 HAVE_SA_FAMILY_T
=1;
10904 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
10910 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
10911 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
10912 $as_echo_n "(cached) " >&6
10915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10916 /* end confdefs.h. */
10917 #include <sys/socket.h>
10926 if ac_fn_c_try_compile
"$LINENO"; then :
10927 gl_cv_header_sys_socket_h_selfcontained
=yes
10929 gl_cv_header_sys_socket_h_selfcontained
=no
10931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
10935 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
10936 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
10937 for ac_func
in shutdown
10939 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
10940 if test "x$ac_cv_func_shutdown" = xyes
; then :
10941 cat >>confdefs.h
<<_ACEOF
10942 #define HAVE_SHUTDOWN 1
10948 if test $ac_cv_func_shutdown = yes; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
10950 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
10951 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
10952 $as_echo_n "(cached) " >&6
10955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957 #include <sys/socket.h>
10961 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
10966 if ac_fn_c_try_compile
"$LINENO"; then :
10967 gl_cv_header_sys_socket_h_shut
=yes
10969 gl_cv_header_sys_socket_h_shut
=no
10971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
10975 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
10976 if test $gl_cv_header_sys_socket_h_shut = no
; then
10977 SYS_SOCKET_H
='sys/socket.h'
10981 # We need to check for ws2tcpip.h now.
10993 if test $gl_cv_have_include_next = yes; then
10994 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
10997 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
10998 if ${gl_cv_next_sys_socket_h+:} false
; then :
10999 $as_echo_n "(cached) " >&6
11002 if test $ac_cv_header_sys_socket_h = yes; then
11007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009 #include <sys/socket.h>
11012 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11013 *) gl_absname_cpp
="$ac_cpp" ;;
11018 gl_dirsep_regex
='[/\\]'
11021 gl_dirsep_regex
='\/'
11024 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11025 gl_header_literal_regex
=`echo 'sys/socket.h' \
11026 | sed -e "$gl_make_literal_regex_sed"`
11027 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11028 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11034 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11035 sed -n "$gl_absolute_header_sed"`
11037 gl_header
=$gl_cv_absolute_sys_socket_h
11038 gl_cv_next_sys_socket_h
='"'$gl_header'"'
11040 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
11046 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
11048 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
11050 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11051 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11052 gl_next_as_first_directive
='<'sys
/socket.h
'>'
11054 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11055 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
11057 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
11062 if test $ac_cv_header_sys_socket_h = yes; then
11063 HAVE_SYS_SOCKET_H
=1
11065 HAVE_SYS_SOCKET_H
=0
11070 if test $ac_cv_header_sys_socket_h = yes; then
11073 if test $ac_cv_header_ws2tcpip_h = yes; then
11082 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
11083 /* sys/types.h is not needed according to POSIX, but the
11084 sys/socket.h in i386-unknown-freebsd4.10 and
11085 powerpc-apple-darwin5.5 required it. */
11086 #include <sys/types.h>
11087 #ifdef HAVE_SYS_SOCKET_H
11088 #include <sys/socket.h>
11090 #ifdef HAVE_WS2TCPIP_H
11091 #include <ws2tcpip.h>
11095 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
11097 cat >>confdefs.h
<<_ACEOF
11098 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11103 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
11104 /* sys/types.h is not needed according to POSIX, but the
11105 sys/socket.h in i386-unknown-freebsd4.10 and
11106 powerpc-apple-darwin5.5 required it. */
11107 #include <sys/types.h>
11108 #ifdef HAVE_SYS_SOCKET_H
11109 #include <sys/socket.h>
11111 #ifdef HAVE_WS2TCPIP_H
11112 #include <ws2tcpip.h>
11116 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
11118 cat >>confdefs.h
<<_ACEOF
11119 #define HAVE_SA_FAMILY_T 1
11125 if test $ac_cv_type_struct_sockaddr_storage = no
; then
11126 HAVE_STRUCT_SOCKADDR_STORAGE
=0
11128 if test $ac_cv_type_sa_family_t = no
; then
11131 if test $ac_cv_type_struct_sockaddr_storage != no
; then
11132 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
11133 #ifdef HAVE_SYS_SOCKET_H
11134 #include <sys/socket.h>
11136 #ifdef HAVE_WS2TCPIP_H
11137 #include <ws2tcpip.h>
11141 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
11143 cat >>confdefs.h
<<_ACEOF
11144 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11149 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
11153 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
11154 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
11155 SYS_SOCKET_H
='sys/socket.h'
11161 if test $ac_cv_header_sys_socket_h != yes; then
11162 for ac_header
in winsock2.h
11164 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11165 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
11166 cat >>confdefs.h
<<_ACEOF
11167 #define HAVE_WINSOCK2_H 1
11175 if test "$ac_cv_header_winsock2_h" = yes; then
11177 UNISTD_H_HAVE_WINSOCK2_H
=1
11178 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
11196 $as_echo_n "checking for IPv4 sockets... " >&6; }
11197 if ${gl_cv_socket_ipv4+:} false
; then :
11198 $as_echo_n "(cached) " >&6
11200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11202 #include <sys/types.h>
11203 #ifdef HAVE_SYS_SOCKET_H
11204 #include <sys/socket.h>
11206 #ifdef HAVE_NETINET_IN_H
11207 #include <netinet/in.h>
11209 #ifdef HAVE_WINSOCK2_H
11210 #include <winsock2.h>
11215 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
11216 if (&x && &y && &z) return 0;
11221 if ac_fn_c_try_compile
"$LINENO"; then :
11222 gl_cv_socket_ipv4
=yes
11224 gl_cv_socket_ipv4
=no
11226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
11229 $as_echo "$gl_cv_socket_ipv4" >&6; }
11230 if test $gl_cv_socket_ipv4 = yes; then
11232 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
11237 $as_echo_n "checking for IPv6 sockets... " >&6; }
11238 if ${gl_cv_socket_ipv6+:} false
; then :
11239 $as_echo_n "(cached) " >&6
11241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11243 #include <sys/types.h>
11244 #ifdef HAVE_SYS_SOCKET_H
11245 #include <sys/socket.h>
11247 #ifdef HAVE_NETINET_IN_H
11248 #include <netinet/in.h>
11250 #ifdef HAVE_WINSOCK2_H
11251 #include <winsock2.h>
11253 #ifdef HAVE_WS2TCPIP_H
11254 #include <ws2tcpip.h>
11259 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
11260 if (&x && &y && &z) return 0;
11265 if ac_fn_c_try_compile
"$LINENO"; then :
11266 gl_cv_socket_ipv6
=yes
11268 gl_cv_socket_ipv6
=no
11270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
11273 $as_echo "$gl_cv_socket_ipv6" >&6; }
11274 if test $gl_cv_socket_ipv6 = yes; then
11276 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
11292 if test $gl_cv_have_include_next = yes; then
11293 gl_cv_next_limits_h
='<'limits.h
'>'
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
11296 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
11297 if ${gl_cv_next_limits_h+:} false
; then :
11298 $as_echo_n "(cached) " >&6
11301 if test $ac_cv_header_limits_h = yes; then
11306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11308 #include <limits.h>
11311 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11312 *) gl_absname_cpp
="$ac_cpp" ;;
11317 gl_dirsep_regex
='[/\\]'
11320 gl_dirsep_regex
='\/'
11323 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11324 gl_header_literal_regex
=`echo 'limits.h' \
11325 | sed -e "$gl_make_literal_regex_sed"`
11326 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11327 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11333 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11334 sed -n "$gl_absolute_header_sed"`
11336 gl_header
=$gl_cv_absolute_limits_h
11337 gl_cv_next_limits_h
='"'$gl_header'"'
11339 gl_cv_next_limits_h
='<'limits.h
'>'
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
11345 $as_echo "$gl_cv_next_limits_h" >&6; }
11347 NEXT_LIMITS_H
=$gl_cv_next_limits_h
11349 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11350 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11351 gl_next_as_first_directive
='<'limits.h
'>'
11353 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11354 gl_next_as_first_directive
=$gl_cv_next_limits_h
11356 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
11363 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
11364 if ${gl_cv_header_limits_width+:} false
; then :
11365 $as_echo_n "(cached) " >&6
11367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11370 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11372 #include <limits.h>
11373 long long llm = LLONG_MAX;
11375 int ullw = ULLONG_WIDTH;
11385 if ac_fn_c_try_compile
"$LINENO"; then :
11386 gl_cv_header_limits_width
=yes
11388 gl_cv_header_limits_width
=no
11390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
11393 $as_echo "$gl_cv_header_limits_width" >&6; }
11394 if test "$gl_cv_header_limits_width" = yes; then
11400 if test -n "$LIMITS_H"; then
11401 GL_GENERATE_LIMITS_H_TRUE
=
11402 GL_GENERATE_LIMITS_H_FALSE
='#'
11404 GL_GENERATE_LIMITS_H_TRUE
='#'
11405 GL_GENERATE_LIMITS_H_FALSE
=
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11411 $as_echo_n "checking for wint_t... " >&6; }
11412 if ${gt_cv_c_wint_t+:} false
; then :
11413 $as_echo_n "(cached) " >&6
11415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11418 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11420 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11421 before <wchar.h>. */
11422 #include <stddef.h>
11426 wint_t foo = (wchar_t)'\0';
11435 if ac_fn_c_try_compile
"$LINENO"; then :
11440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11443 $as_echo "$gt_cv_c_wint_t" >&6; }
11444 if test $gt_cv_c_wint_t = yes; then
11446 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
11450 $as_echo_n "checking whether wint_t is too small... " >&6; }
11451 if ${gl_cv_type_wint_t_too_small+:} false
; then :
11452 $as_echo_n "(cached) " >&6
11454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11457 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11459 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11460 included before <wchar.h>. */
11461 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11462 # include <stddef.h>
11463 # include <stdio.h>
11467 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
11477 if ac_fn_c_try_compile
"$LINENO"; then :
11478 gl_cv_type_wint_t_too_small
=no
11480 gl_cv_type_wint_t_too_small
=yes
11482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
11485 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
11486 if test $gl_cv_type_wint_t_too_small = yes; then
11487 GNULIB_OVERRIDES_WINT_T
=1
11489 GNULIB_OVERRIDES_WINT_T
=0
11492 GNULIB_OVERRIDES_WINT_T
=0
11501 gl_cv_c_multiarch
=no
11502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504 #ifndef __APPLE_CC__
11505 not a universal capable compiler
11510 if ac_fn_c_try_compile
"$LINENO"; then :
11514 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
11515 if test -n "$prev"; then
11517 i?
86 | x86_64 | ppc | ppc64
)
11518 if test -z "$arch" ||
test "$arch" = "$word"; then
11521 gl_cv_c_multiarch
=yes
11527 if test "x$word" = "x-arch"; then
11534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11535 if test $gl_cv_c_multiarch = yes; then
11536 APPLE_UNIVERSAL_BUILD
=1
11538 APPLE_UNIVERSAL_BUILD
=0
11548 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11551 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11555 if test $ac_cv_header_wchar_h = yes; then
11562 if test $ac_cv_header_inttypes_h = yes; then
11569 if test $ac_cv_header_sys_types_h = yes; then
11585 if test $gl_cv_have_include_next = yes; then
11586 gl_cv_next_stdint_h
='<'stdint.h
'>'
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
11589 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
11590 if ${gl_cv_next_stdint_h+:} false
; then :
11591 $as_echo_n "(cached) " >&6
11594 if test $ac_cv_header_stdint_h = yes; then
11599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11601 #include <stdint.h>
11604 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11605 *) gl_absname_cpp
="$ac_cpp" ;;
11610 gl_dirsep_regex
='[/\\]'
11613 gl_dirsep_regex
='\/'
11616 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11617 gl_header_literal_regex
=`echo 'stdint.h' \
11618 | sed -e "$gl_make_literal_regex_sed"`
11619 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11620 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11626 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11627 sed -n "$gl_absolute_header_sed"`
11629 gl_header
=$gl_cv_absolute_stdint_h
11630 gl_cv_next_stdint_h
='"'$gl_header'"'
11632 gl_cv_next_stdint_h
='<'stdint.h
'>'
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
11638 $as_echo "$gl_cv_next_stdint_h" >&6; }
11640 NEXT_STDINT_H
=$gl_cv_next_stdint_h
11642 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11643 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11644 gl_next_as_first_directive
='<'stdint.h
'>'
11646 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11647 gl_next_as_first_directive
=$gl_cv_next_stdint_h
11649 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
11654 if test $ac_cv_header_stdint_h = yes; then
11661 if test $ac_cv_header_stdint_h = yes; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
11663 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
11664 if ${gl_cv_header_working_stdint_h+:} false
; then :
11665 $as_echo_n "(cached) " >&6
11667 gl_cv_header_working_stdint_h
=no
11668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11672 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11673 #define __STDC_CONSTANT_MACROS 1
11674 #define __STDC_LIMIT_MACROS 1
11675 #include <stdint.h>
11676 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
11677 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
11678 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
11682 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11683 included before <wchar.h>. */
11684 #include <stddef.h>
11685 #include <signal.h>
11687 # include <stdio.h>
11689 # include <wchar.h>
11694 int8_t a1 = INT8_MAX;
11695 int8_t a1min = INT8_MIN;
11698 int16_t a2 = INT16_MAX;
11699 int16_t a2min = INT16_MIN;
11702 int32_t a3 = INT32_MAX;
11703 int32_t a3min = INT32_MIN;
11706 int64_t a4 = INT64_MAX;
11707 int64_t a4min = INT64_MIN;
11710 uint8_t b1 = UINT8_MAX;
11712 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
11715 uint16_t b2 = UINT16_MAX;
11718 uint32_t b3 = UINT32_MAX;
11721 uint64_t b4 = UINT64_MAX;
11723 int_least8_t c1 = INT8_C (0x7f);
11724 int_least8_t c1max = INT_LEAST8_MAX;
11725 int_least8_t c1min = INT_LEAST8_MIN;
11726 int_least16_t c2 = INT16_C (0x7fff);
11727 int_least16_t c2max = INT_LEAST16_MAX;
11728 int_least16_t c2min = INT_LEAST16_MIN;
11729 int_least32_t c3 = INT32_C (0x7fffffff);
11730 int_least32_t c3max = INT_LEAST32_MAX;
11731 int_least32_t c3min = INT_LEAST32_MIN;
11732 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
11733 int_least64_t c4max = INT_LEAST64_MAX;
11734 int_least64_t c4min = INT_LEAST64_MIN;
11735 uint_least8_t d1 = UINT8_C (0xff);
11736 uint_least8_t d1max = UINT_LEAST8_MAX;
11737 uint_least16_t d2 = UINT16_C (0xffff);
11738 uint_least16_t d2max = UINT_LEAST16_MAX;
11739 uint_least32_t d3 = UINT32_C (0xffffffff);
11740 uint_least32_t d3max = UINT_LEAST32_MAX;
11741 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
11742 uint_least64_t d4max = UINT_LEAST64_MAX;
11743 int_fast8_t e1 = INT_FAST8_MAX;
11744 int_fast8_t e1min = INT_FAST8_MIN;
11745 int_fast16_t e2 = INT_FAST16_MAX;
11746 int_fast16_t e2min = INT_FAST16_MIN;
11747 int_fast32_t e3 = INT_FAST32_MAX;
11748 int_fast32_t e3min = INT_FAST32_MIN;
11749 int_fast64_t e4 = INT_FAST64_MAX;
11750 int_fast64_t e4min = INT_FAST64_MIN;
11751 uint_fast8_t f1 = UINT_FAST8_MAX;
11752 uint_fast16_t f2 = UINT_FAST16_MAX;
11753 uint_fast32_t f3 = UINT_FAST32_MAX;
11754 uint_fast64_t f4 = UINT_FAST64_MAX;
11756 intptr_t g = INTPTR_MAX;
11757 intptr_t gmin = INTPTR_MIN;
11760 uintptr_t h = UINTPTR_MAX;
11762 intmax_t i = INTMAX_MAX;
11763 uintmax_t j = UINTMAX_MAX;
11765 /* Check that SIZE_MAX has the correct type, if possible. */
11766 #if 201112 <= __STDC_VERSION__
11767 int k = _Generic (SIZE_MAX, size_t: 0);
11768 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
11769 || (0x5110 <= __SUNPRO_C && !__STDC__))
11771 extern __typeof__ (SIZE_MAX) k;
11774 #include <limits.h> /* for CHAR_BIT */
11775 #define TYPE_MINIMUM(t) \
11776 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
11777 #define TYPE_MAXIMUM(t) \
11778 ((t) ((t) 0 < (t) -1 \
11780 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
11783 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
11784 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
11786 /* Detect bug in FreeBSD 6.0 / ia64. */
11787 int check_SIG_ATOMIC:
11788 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
11789 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
11791 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
11793 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
11794 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
11796 /* Detect bug in mingw. */
11798 WINT_MIN == TYPE_MINIMUM (wint_t)
11799 && WINT_MAX == TYPE_MAXIMUM (wint_t)
11802 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
11804 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11805 int check_UINT16_C:
11806 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11808 /* Detect bugs in OpenBSD 3.9 stdint.h. */
11810 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11813 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11816 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11819 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11821 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11822 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11823 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11824 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11825 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11826 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11827 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11828 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11829 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11830 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11831 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
11842 if ac_fn_c_try_compile
"$LINENO"; then :
11843 if test "$cross_compiling" = yes; then :
11845 # Guess yes on native Windows.
11846 mingw
*) gl_cv_header_working_stdint_h
="guessing yes" ;;
11847 # In general, assume it works.
11848 *) gl_cv_header_working_stdint_h
="guessing yes" ;;
11852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11856 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11857 #define __STDC_CONSTANT_MACROS 1
11858 #define __STDC_LIMIT_MACROS 1
11859 #include <stdint.h>
11862 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11863 included before <wchar.h>. */
11864 #include <stddef.h>
11865 #include <signal.h>
11867 # include <stdio.h>
11869 # include <wchar.h>
11874 #include <string.h>
11875 #define MVAL(macro) MVAL1(macro)
11876 #define MVAL1(expression) #expression
11877 static const char *macro_values[] =
11911 for (mv = macro_values; *mv != NULL; mv++)
11913 const char *value = *mv;
11914 /* Test whether it looks like a cast expression. */
11915 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
11916 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
11917 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
11918 || strncmp (value, "((int)"/*)*/, 6) == 0
11919 || strncmp (value, "((signed short)"/*)*/, 15) == 0
11920 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
11921 return mv - macro_values + 1;
11929 if ac_fn_c_try_run
"$LINENO"; then :
11930 gl_cv_header_working_stdint_h
=yes
11932 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11933 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
11942 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
11945 HAVE_C99_STDINT_H
=0
11946 HAVE_SYS_BITYPES_H
=0
11947 HAVE_SYS_INTTYPES_H
=0
11949 case "$gl_cv_header_working_stdint_h" in
11951 HAVE_C99_STDINT_H
=1
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
11953 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
11954 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
11955 $as_echo_n "(cached) " >&6
11957 gl_cv_header_stdint_predates_cxx11_h
=yes
11958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11962 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11963 #include <stdint.h>
11966 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11967 included before <wchar.h>. */
11968 #include <stddef.h>
11969 #include <signal.h>
11971 # include <stdio.h>
11973 # include <wchar.h>
11977 intmax_t im = INTMAX_MAX;
11978 int32_t i32 = INT32_C (0x7fffffff);
11988 if ac_fn_c_try_compile
"$LINENO"; then :
11989 gl_cv_header_stdint_predates_cxx11_h
=no
11991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
11994 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
11996 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
11998 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
12001 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
12005 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
12006 if ${gl_cv_header_stdint_width+:} false
; then :
12007 $as_echo_n "(cached) " >&6
12009 gl_cv_header_stdint_width
=no
12010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12013 /* Work if build is not clean. */
12014 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
12015 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12016 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12018 #include <stdint.h>
12020 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12021 included before <wchar.h>. */
12022 #include <stddef.h>
12023 #include <signal.h>
12025 # include <stdio.h>
12027 # include <wchar.h>
12030 int iw = UINTMAX_WIDTH;
12040 if ac_fn_c_try_compile
"$LINENO"; then :
12041 gl_cv_header_stdint_width
=yes
12043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
12046 $as_echo "$gl_cv_header_stdint_width" >&6; }
12047 if test "$gl_cv_header_stdint_width" = yes; then
12052 for ac_header
in sys
/inttypes.h sys
/bitypes.h
12054 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12055 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12056 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12057 cat >>confdefs.h
<<_ACEOF
12058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12065 if test $ac_cv_header_sys_inttypes_h = yes; then
12066 HAVE_SYS_INTTYPES_H
=1
12068 if test $ac_cv_header_sys_bitypes_h = yes; then
12069 HAVE_SYS_BITYPES_H
=1
12073 if test $APPLE_UNIVERSAL_BUILD = 0; then
12076 for gltype
in ptrdiff_t size_t
; do
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12078 $as_echo_n "checking for bit size of $gltype... " >&6; }
12079 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12080 $as_echo_n "(cached) " >&6
12082 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12083 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12084 included before <wchar.h>. */
12085 #include <stddef.h>
12086 #include <signal.h>
12088 # include <stdio.h>
12090 # include <wchar.h>
12093 #include <limits.h>"; then :
12099 eval gl_cv_bitsizeof_
${gltype}=\
$result
12102 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12104 $as_echo "$ac_res" >&6; }
12105 eval result
=\
$gl_cv_bitsizeof_${gltype}
12106 if test $result = unknown
; then
12109 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12110 cat >>confdefs.h
<<_ACEOF
12111 #define BITSIZEOF_${GLTYPE} $result
12114 eval BITSIZEOF_
${GLTYPE}=\
$result
12121 for gltype
in sig_atomic_t wchar_t wint_t
; do
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12123 $as_echo_n "checking for bit size of $gltype... " >&6; }
12124 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
12125 $as_echo_n "(cached) " >&6
12127 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12128 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12129 included before <wchar.h>. */
12130 #include <stddef.h>
12131 #include <signal.h>
12133 # include <stdio.h>
12135 # include <wchar.h>
12138 #include <limits.h>"; then :
12144 eval gl_cv_bitsizeof_
${gltype}=\
$result
12147 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12149 $as_echo "$ac_res" >&6; }
12150 eval result
=\
$gl_cv_bitsizeof_${gltype}
12151 if test $result = unknown
; then
12154 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12155 cat >>confdefs.h
<<_ACEOF
12156 #define BITSIZEOF_${GLTYPE} $result
12159 eval BITSIZEOF_
${GLTYPE}=\
$result
12165 for gltype
in sig_atomic_t wchar_t wint_t
; do
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
12167 $as_echo_n "checking whether $gltype is signed... " >&6; }
12168 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
12169 $as_echo_n "(cached) " >&6
12171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12174 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12175 included before <wchar.h>. */
12176 #include <stddef.h>
12177 #include <signal.h>
12179 # include <stdio.h>
12181 # include <wchar.h>
12184 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12193 if ac_fn_c_try_compile
"$LINENO"; then :
12198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12199 eval gl_cv_type_
${gltype}_signed
=\
$result
12202 eval ac_res
=\
$gl_cv_type_${gltype}_signed
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12204 $as_echo "$ac_res" >&6; }
12205 eval result
=\
$gl_cv_type_${gltype}_signed
12206 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12207 if test "$result" = yes; then
12208 cat >>confdefs.h
<<_ACEOF
12209 #define HAVE_SIGNED_${GLTYPE} 1
12212 eval HAVE_SIGNED_
${GLTYPE}=1
12214 eval HAVE_SIGNED_
${GLTYPE}=0
12219 gl_cv_type_ptrdiff_t_signed
=yes
12220 gl_cv_type_size_t_signed
=no
12221 if test $APPLE_UNIVERSAL_BUILD = 0; then
12224 for gltype
in ptrdiff_t size_t
; do
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12226 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12227 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12228 $as_echo_n "(cached) " >&6
12230 eval gl_cv_type_
${gltype}_suffix
=no
12231 eval result
=\
$gl_cv_type_${gltype}_signed
12232 if test "$result" = yes; then
12237 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12239 '') gltype1
='int';;
12240 l
) gltype1
='long int';;
12241 ll
) gltype1
='long long int';;
12242 i64
) gltype1
='__int64';;
12243 u
) gltype1
='unsigned int';;
12244 ul
) gltype1
='unsigned long int';;
12245 ull
) gltype1
='unsigned long long int';;
12246 ui64
)gltype1
='unsigned __int64';;
12248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12251 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12252 included before <wchar.h>. */
12253 #include <stddef.h>
12254 #include <signal.h>
12256 # include <stdio.h>
12258 # include <wchar.h>
12261 extern $gltype foo;
12262 extern $gltype1 foo;
12271 if ac_fn_c_try_compile
"$LINENO"; then :
12272 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12275 eval result
=\
$gl_cv_type_${gltype}_suffix
12276 test "$result" != no
&& break
12279 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12281 $as_echo "$ac_res" >&6; }
12282 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12283 eval result
=\
$gl_cv_type_${gltype}_suffix
12284 test "$result" = no
&& result
=
12285 eval ${GLTYPE}_SUFFIX
=\
$result
12286 cat >>confdefs.h
<<_ACEOF
12287 #define ${GLTYPE}_SUFFIX $result
12296 for gltype
in sig_atomic_t wchar_t wint_t
; do
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12298 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12299 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
12300 $as_echo_n "(cached) " >&6
12302 eval gl_cv_type_
${gltype}_suffix
=no
12303 eval result
=\
$gl_cv_type_${gltype}_signed
12304 if test "$result" = yes; then
12309 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
12311 '') gltype1
='int';;
12312 l
) gltype1
='long int';;
12313 ll
) gltype1
='long long int';;
12314 i64
) gltype1
='__int64';;
12315 u
) gltype1
='unsigned int';;
12316 ul
) gltype1
='unsigned long int';;
12317 ull
) gltype1
='unsigned long long int';;
12318 ui64
)gltype1
='unsigned __int64';;
12320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12324 included before <wchar.h>. */
12325 #include <stddef.h>
12326 #include <signal.h>
12328 # include <stdio.h>
12330 # include <wchar.h>
12333 extern $gltype foo;
12334 extern $gltype1 foo;
12343 if ac_fn_c_try_compile
"$LINENO"; then :
12344 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
12346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12347 eval result
=\
$gl_cv_type_${gltype}_suffix
12348 test "$result" != no
&& break
12351 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12353 $as_echo "$ac_res" >&6; }
12354 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12355 eval result
=\
$gl_cv_type_${gltype}_suffix
12356 test "$result" = no
&& result
=
12357 eval ${GLTYPE}_SUFFIX
=\
$result
12358 cat >>confdefs.h
<<_ACEOF
12359 #define ${GLTYPE}_SUFFIX $result
12366 if test $GNULIB_OVERRIDES_WINT_T = 1; then
12367 BITSIZEOF_WINT_T
=32
12375 LIMITS_H
='limits.h'
12376 if test -n "$LIMITS_H"; then
12377 GL_GENERATE_LIMITS_H_TRUE
=
12378 GL_GENERATE_LIMITS_H_FALSE
='#'
12380 GL_GENERATE_LIMITS_H_TRUE
='#'
12381 GL_GENERATE_LIMITS_H_FALSE
=
12390 if test -n "$STDINT_H"; then
12391 GL_GENERATE_STDINT_H_TRUE
=
12392 GL_GENERATE_STDINT_H_FALSE
='#'
12394 GL_GENERATE_STDINT_H_TRUE
='#'
12395 GL_GENERATE_STDINT_H_FALSE
=
12404 GNULIB_STRTOIMAX
=0;
12405 GNULIB_STRTOUMAX
=0;
12406 HAVE_DECL_IMAXABS
=1;
12407 HAVE_DECL_IMAXDIV
=1;
12408 HAVE_DECL_STRTOIMAX
=1;
12409 HAVE_DECL_STRTOUMAX
=1;
12411 REPLACE_STRTOIMAX
=0;
12412 REPLACE_STRTOUMAX
=0;
12413 INT32_MAX_LT_INTMAX_MAX
=1;
12414 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
12415 PRI_MACROS_BROKEN
=0;
12416 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
12417 UINT32_MAX_LT_UINTMAX_MAX
=1;
12418 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
12434 if test $gl_cv_have_include_next = yes; then
12435 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
12438 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
12439 if ${gl_cv_next_inttypes_h+:} false
; then :
12440 $as_echo_n "(cached) " >&6
12443 if test $ac_cv_header_inttypes_h = yes; then
12448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12450 #include <inttypes.h>
12453 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12454 *) gl_absname_cpp
="$ac_cpp" ;;
12459 gl_dirsep_regex
='[/\\]'
12462 gl_dirsep_regex
='\/'
12465 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12466 gl_header_literal_regex
=`echo 'inttypes.h' \
12467 | sed -e "$gl_make_literal_regex_sed"`
12468 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12469 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12475 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12476 sed -n "$gl_absolute_header_sed"`
12478 gl_header
=$gl_cv_absolute_inttypes_h
12479 gl_cv_next_inttypes_h
='"'$gl_header'"'
12481 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
12487 $as_echo "$gl_cv_next_inttypes_h" >&6; }
12489 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
12491 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12492 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12493 gl_next_as_first_directive
='<'inttypes.h
'>'
12495 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12496 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
12498 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
12511 for ac_header
in inttypes.h
12513 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12514 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
12515 cat >>confdefs.h
<<_ACEOF
12516 #define HAVE_INTTYPES_H 1
12523 if test $ac_cv_header_inttypes_h = yes; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12525 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12526 if ${gt_cv_inttypes_pri_broken+:} false
; then :
12527 $as_echo_n "(cached) " >&6
12530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12533 #include <inttypes.h>
12546 if ac_fn_c_try_compile
"$LINENO"; then :
12547 gt_cv_inttypes_pri_broken
=no
12549 gt_cv_inttypes_pri_broken
=yes
12551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12555 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12557 if test "$gt_cv_inttypes_pri_broken" = yes; then
12559 cat >>confdefs.h
<<_ACEOF
12560 #define PRI_MACROS_BROKEN 1
12563 PRI_MACROS_BROKEN
=1
12565 PRI_MACROS_BROKEN
=0
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
12571 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
12572 if ${gl_cv_cc_double_expbit0+:} false
; then :
12573 $as_echo_n "(cached) " >&6
12576 if test "$cross_compiling" = yes; then :
12578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12581 #if defined arm || defined __arm || defined __arm__
12586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12587 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
12588 gl_cv_cc_double_expbit0
="unknown"
12592 if ${ac_cv_c_bigendian+:} false
; then :
12593 $as_echo_n "(cached) " >&6
12595 ac_cv_c_bigendian
=unknown
12596 # See if we're dealing with a universal compiler.
12597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599 #ifndef __APPLE_CC__
12600 not a universal capable compiler
12605 if ac_fn_c_try_compile
"$LINENO"; then :
12607 # Check for potential -arch flags. It is not universal unless
12608 # there are at least two -arch flags with different values.
12611 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12612 if test -n "$ac_prev"; then
12614 i?
86 | x86_64 | ppc | ppc64
)
12615 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12618 ac_cv_c_bigendian
=universal
12624 elif test "x$ac_word" = "x-arch"; then
12629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12630 if test $ac_cv_c_bigendian = unknown
; then
12631 # See if sys/param.h defines the BYTE_ORDER macro.
12632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 #include <sys/types.h>
12635 #include <sys/param.h>
12640 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12641 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12643 bogus endian macros
12650 if ac_fn_c_try_compile
"$LINENO"; then :
12651 # It does; now see whether it defined to BIG_ENDIAN or not.
12652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h. */
12654 #include <sys/types.h>
12655 #include <sys/param.h>
12660 #if BYTE_ORDER != BIG_ENDIAN
12668 if ac_fn_c_try_compile
"$LINENO"; then :
12669 ac_cv_c_bigendian
=yes
12671 ac_cv_c_bigendian
=no
12673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12677 if test $ac_cv_c_bigendian = unknown
; then
12678 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681 #include <limits.h>
12686 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12687 bogus endian macros
12694 if ac_fn_c_try_compile
"$LINENO"; then :
12695 # It does; now see whether it defined to _BIG_ENDIAN or not.
12696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12698 #include <limits.h>
12703 #ifndef _BIG_ENDIAN
12711 if ac_fn_c_try_compile
"$LINENO"; then :
12712 ac_cv_c_bigendian
=yes
12714 ac_cv_c_bigendian
=no
12716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12720 if test $ac_cv_c_bigendian = unknown
; then
12721 # Compile a test program.
12722 if test "$cross_compiling" = yes; then :
12723 # Try to guess by grepping values from an object file.
12724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12726 short int ascii_mm[] =
12727 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12728 short int ascii_ii[] =
12729 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12730 int use_ascii (int i) {
12731 return ascii_mm[i] + ascii_ii[i];
12733 short int ebcdic_ii[] =
12734 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12735 short int ebcdic_mm[] =
12736 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12737 int use_ebcdic (int i) {
12738 return ebcdic_mm[i] + ebcdic_ii[i];
12745 return use_ascii (foo) == use_ebcdic (foo);
12750 if ac_fn_c_try_compile
"$LINENO"; then :
12751 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12752 ac_cv_c_bigendian
=yes
12754 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12755 if test "$ac_cv_c_bigendian" = unknown
; then
12756 ac_cv_c_bigendian
=no
12758 # finding both strings is unlikely to happen, but who knows?
12759 ac_cv_c_bigendian
=unknown
12763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767 $ac_includes_default
12772 /* Are we little or big endian? From Harbison&Steele. */
12776 char c[sizeof (long int)];
12779 return u.c[sizeof (long int) - 1] == 1;
12785 if ac_fn_c_try_run
"$LINENO"; then :
12786 ac_cv_c_bigendian
=no
12788 ac_cv_c_bigendian
=yes
12790 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12791 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12797 case $ac_cv_c_bigendian in #(
12799 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
12801 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
12804 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12808 gl_cv_cc_double_expbit0
="unknown" ;;
12817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12821 #include <stddef.h>
12823 #include <string.h>
12825 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12826 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
12827 static unsigned int ored_words[NWORDS];
12828 static unsigned int anded_words[NWORDS];
12829 static void add_to_ored_words (double x)
12833 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
12834 memset (&m, 0, sizeof (memory_double));
12836 for (i = 0; i < NWORDS; i++)
12838 ored_words[i] |= m.word[i];
12839 anded_words[i] &= m.word[i];
12845 FILE *fp = fopen ("conftest.out", "w");
12848 for (j = 0; j < NWORDS; j++)
12849 anded_words[j] = ~ (unsigned int) 0;
12850 add_to_ored_words (0.25);
12851 add_to_ored_words (0.5);
12852 add_to_ored_words (1.0);
12853 add_to_ored_words (2.0);
12854 add_to_ored_words (4.0);
12855 /* Remove bits that are common (e.g. if representation of the first mantissa
12856 bit is explicit). */
12857 for (j = 0; j < NWORDS; j++)
12858 ored_words[j] &= ~anded_words[j];
12859 /* Now find the nonzero word. */
12860 for (j = 0; j < NWORDS; j++)
12861 if (ored_words[j] != 0)
12866 for (i = j + 1; i < NWORDS; i++)
12867 if (ored_words[i] != 0)
12869 fprintf (fp, "unknown");
12870 return (fclose (fp) != 0);
12873 if ((ored_words[j] >> i) & 1)
12875 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12876 return (fclose (fp) != 0);
12879 fprintf (fp, "unknown");
12880 return (fclose (fp) != 0);
12884 if ac_fn_c_try_run
"$LINENO"; then :
12885 gl_cv_cc_double_expbit0
=`cat conftest.out`
12887 gl_cv_cc_double_expbit0
="unknown"
12889 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12890 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
12897 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
12898 case "$gl_cv_cc_double_expbit0" in
12900 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12901 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
12903 cat >>confdefs.h
<<_ACEOF
12904 #define DBL_EXPBIT0_WORD $word
12908 cat >>confdefs.h
<<_ACEOF
12909 #define DBL_EXPBIT0_BIT $bit
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12917 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12918 if ${ac_cv_c_bigendian+:} false
; then :
12919 $as_echo_n "(cached) " >&6
12921 ac_cv_c_bigendian
=unknown
12922 # See if we're dealing with a universal compiler.
12923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925 #ifndef __APPLE_CC__
12926 not a universal capable compiler
12931 if ac_fn_c_try_compile
"$LINENO"; then :
12933 # Check for potential -arch flags. It is not universal unless
12934 # there are at least two -arch flags with different values.
12937 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12938 if test -n "$ac_prev"; then
12940 i?
86 | x86_64 | ppc | ppc64
)
12941 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12944 ac_cv_c_bigendian
=universal
12950 elif test "x$ac_word" = "x-arch"; then
12955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12956 if test $ac_cv_c_bigendian = unknown
; then
12957 # See if sys/param.h defines the BYTE_ORDER macro.
12958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12960 #include <sys/types.h>
12961 #include <sys/param.h>
12966 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12967 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12969 bogus endian macros
12976 if ac_fn_c_try_compile
"$LINENO"; then :
12977 # It does; now see whether it defined to BIG_ENDIAN or not.
12978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12980 #include <sys/types.h>
12981 #include <sys/param.h>
12986 #if BYTE_ORDER != BIG_ENDIAN
12994 if ac_fn_c_try_compile
"$LINENO"; then :
12995 ac_cv_c_bigendian
=yes
12997 ac_cv_c_bigendian
=no
12999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13003 if test $ac_cv_c_bigendian = unknown
; then
13004 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007 #include <limits.h>
13012 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13013 bogus endian macros
13020 if ac_fn_c_try_compile
"$LINENO"; then :
13021 # It does; now see whether it defined to _BIG_ENDIAN or not.
13022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13024 #include <limits.h>
13029 #ifndef _BIG_ENDIAN
13037 if ac_fn_c_try_compile
"$LINENO"; then :
13038 ac_cv_c_bigendian
=yes
13040 ac_cv_c_bigendian
=no
13042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13046 if test $ac_cv_c_bigendian = unknown
; then
13047 # Compile a test program.
13048 if test "$cross_compiling" = yes; then :
13049 # Try to guess by grepping values from an object file.
13050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13052 short int ascii_mm[] =
13053 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13054 short int ascii_ii[] =
13055 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13056 int use_ascii (int i) {
13057 return ascii_mm[i] + ascii_ii[i];
13059 short int ebcdic_ii[] =
13060 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13061 short int ebcdic_mm[] =
13062 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13063 int use_ebcdic (int i) {
13064 return ebcdic_mm[i] + ebcdic_ii[i];
13071 return use_ascii (foo) == use_ebcdic (foo);
13076 if ac_fn_c_try_compile
"$LINENO"; then :
13077 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13078 ac_cv_c_bigendian
=yes
13080 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13081 if test "$ac_cv_c_bigendian" = unknown
; then
13082 ac_cv_c_bigendian
=no
13084 # finding both strings is unlikely to happen, but who knows?
13085 ac_cv_c_bigendian
=unknown
13089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 $ac_includes_default
13098 /* Are we little or big endian? From Harbison&Steele. */
13102 char c[sizeof (long int)];
13105 return u.c[sizeof (long int) - 1] == 1;
13111 if ac_fn_c_try_run
"$LINENO"; then :
13112 ac_cv_c_bigendian
=no
13114 ac_cv_c_bigendian
=yes
13116 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13117 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13123 $as_echo "$ac_cv_c_bigendian" >&6; }
13124 case $ac_cv_c_bigendian in #(
13126 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13132 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13136 as_fn_error $?
"unknown endianness
13137 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13143 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13144 if ${am_cv_langinfo_codeset+:} false
; then :
13145 $as_echo_n "(cached) " >&6
13147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13149 #include <langinfo.h>
13153 char* cs = nl_langinfo(CODESET); return !cs;
13158 if ac_fn_c_try_link
"$LINENO"; then :
13159 am_cv_langinfo_codeset
=yes
13161 am_cv_langinfo_codeset
=no
13163 rm -f core conftest.err conftest.
$ac_objext \
13164 conftest
$ac_exeext conftest.
$ac_ext
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13168 $as_echo "$am_cv_langinfo_codeset" >&6; }
13169 if test $am_cv_langinfo_codeset = yes; then
13171 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13176 GNULIB_LOCALECONV
=0;
13177 GNULIB_SETLOCALE
=0;
13178 GNULIB_SETLOCALE_NULL
=0;
13179 GNULIB_DUPLOCALE
=0;
13180 GNULIB_LOCALENAME
=0;
13184 REPLACE_LOCALECONV
=0;
13185 REPLACE_SETLOCALE
=0;
13186 REPLACE_NEWLOCALE
=0;
13187 REPLACE_DUPLOCALE
=0;
13188 REPLACE_FREELOCALE
=0;
13189 REPLACE_STRUCT_LCONV
=0;
13193 HAVE_MAX_ALIGN_T
=1;
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13198 $as_echo_n "checking for wchar_t... " >&6; }
13199 if ${gt_cv_c_wchar_t+:} false
; then :
13200 $as_echo_n "(cached) " >&6
13202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13204 #include <stddef.h>
13205 wchar_t foo = (wchar_t)'\0';
13214 if ac_fn_c_try_compile
"$LINENO"; then :
13215 gt_cv_c_wchar_t
=yes
13219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13222 $as_echo "$gt_cv_c_wchar_t" >&6; }
13223 if test $gt_cv_c_wchar_t = yes; then
13225 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
13235 $as_echo_n "checking for good max_align_t... " >&6; }
13236 if ${gl_cv_type_max_align_t+:} false
; then :
13237 $as_echo_n "(cached) " >&6
13239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241 #include <stddef.h>
13242 unsigned int s = sizeof (max_align_t);
13243 #if defined __GNUC__ || defined __IBM__ALIGNOF__
13244 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
13245 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
13256 if ac_fn_c_try_compile
"$LINENO"; then :
13257 gl_cv_type_max_align_t
=yes
13259 gl_cv_type_max_align_t
=no
13261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
13265 $as_echo "$gl_cv_type_max_align_t" >&6; }
13266 if test $gl_cv_type_max_align_t = no
; then
13271 if test $gt_cv_c_wchar_t = no
; then
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13277 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13278 if ${gl_cv_decl_null_works+:} false
; then :
13279 $as_echo_n "(cached) " >&6
13281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h. */
13283 #include <stddef.h>
13284 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13294 if ac_fn_c_try_compile
"$LINENO"; then :
13295 gl_cv_decl_null_works
=yes
13297 gl_cv_decl_null_works
=no
13299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13302 $as_echo "$gl_cv_decl_null_works" >&6; }
13303 if test $gl_cv_decl_null_works = no
; then
13309 if test -n "$STDDEF_H"; then
13310 GL_GENERATE_STDDEF_H_TRUE
=
13311 GL_GENERATE_STDDEF_H_FALSE
='#'
13313 GL_GENERATE_STDDEF_H_TRUE
='#'
13314 GL_GENERATE_STDDEF_H_FALSE
=
13317 if test -n "$STDDEF_H"; then
13326 if test $gl_cv_have_include_next = yes; then
13327 gl_cv_next_stddef_h
='<'stddef.h
'>'
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13330 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13331 if ${gl_cv_next_stddef_h+:} false
; then :
13332 $as_echo_n "(cached) " >&6
13337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13339 #include <stddef.h>
13342 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13343 *) gl_absname_cpp
="$ac_cpp" ;;
13348 gl_dirsep_regex
='[/\\]'
13351 gl_dirsep_regex
='\/'
13354 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13355 gl_header_literal_regex
=`echo 'stddef.h' \
13356 | sed -e "$gl_make_literal_regex_sed"`
13357 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13358 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13364 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13365 sed -n "$gl_absolute_header_sed"`
13367 gl_header
=$gl_cv_absolute_stddef_h
13368 gl_cv_next_stddef_h
='"'$gl_header'"'
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13373 $as_echo "$gl_cv_next_stddef_h" >&6; }
13375 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
13377 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13379 gl_next_as_first_directive
='<'stddef.h
'>'
13381 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13382 gl_next_as_first_directive
=$gl_cv_next_stddef_h
13384 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
13397 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
13398 if ${gl_cv_header_locale_has_locale_t+:} false
; then :
13399 $as_echo_n "(cached) " >&6
13401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13403 #include <locale.h>
13413 if ac_fn_c_try_compile
"$LINENO"; then :
13414 gl_cv_header_locale_has_locale_t
=yes
13416 gl_cv_header_locale_has_locale_t
=no
13418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
13422 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
13425 if test $ac_cv_header_xlocale_h = yes; then
13427 if test $gl_cv_header_locale_has_locale_t = yes; then
13428 gl_cv_header_locale_h_needs_xlocale_h
=no
13430 gl_cv_header_locale_h_needs_xlocale_h
=yes
13435 gl_cv_header_locale_h_needs_xlocale_h
=no
13436 if test $gl_cv_header_locale_has_locale_t = yes; then
13446 gl_threads_api
=none
13451 if test "$gl_use_threads" != no
; then
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
13455 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
13456 if ${gl_cv_have_weak+:} false
; then :
13457 $as_echo_n "(cached) " >&6
13460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13462 extern void xyzzy ();
13472 if ac_fn_c_try_link
"$LINENO"; then :
13473 gl_cv_have_weak
=maybe
13475 rm -f core conftest.err conftest.
$ac_objext \
13476 conftest
$ac_exeext conftest.
$ac_ext
13477 if test $gl_cv_have_weak = maybe
; then
13478 if test "$cross_compiling" = yes; then :
13479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13482 Extensible Linking Format
13486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13487 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
13488 gl_cv_have_weak
="guessing yes"
13490 gl_cv_have_weak
="guessing no"
13496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13503 return (fputs == NULL);
13506 if ac_fn_c_try_run
"$LINENO"; then :
13507 gl_cv_have_weak
=yes
13511 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13512 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13516 case " $LDFLAGS " in
13517 *" -static "*) gl_cv_have_weak
=no
;;
13519 case "$gl_cv_have_weak" in
13522 freebsd
* | dragonfly
*)
13524 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
13525 cat <<EOF > conftest2.c
13526 #include <pthread.h>
13527 #pragma weak pthread_mutexattr_gettype
13530 return (pthread_mutexattr_gettype != NULL);
13533 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
13534 || gl_cv_have_weak
=no
13535 rm -f conftest1.c libempty.so conftest2.c conftest
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
13543 $as_echo "$gl_cv_have_weak" >&6; }
13544 case "$gl_cv_have_weak" in
13547 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
13552 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13556 if test "$gl_use_threads" = isoc ||
test "$gl_use_threads" = isoc
+posix
; then
13558 gl_have_isoc_threads
="$ac_cv_header_threads_h"
13560 if test "$gl_use_threads" = yes \
13561 ||
test "$gl_use_threads" = posix \
13562 ||
test "$gl_use_threads" = isoc
+posix
; then
13565 if test -z "$gl_pthreadlib_body_done"; then
13569 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
13570 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
13571 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13572 if test "x$ac_cv_header_pthread_h" = xyes
; then :
13573 gl_have_pthread_h
=yes
13575 gl_have_pthread_h
=no
13579 if test "$gl_have_pthread_h" = yes; then
13580 # Other possible tests:
13581 # -lpthreads (FSU threads, PCthreads)
13583 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
13584 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
13585 # the second one only in libpthread, and lock.c needs it.
13587 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
13588 # needs -pthread for some reason. See:
13589 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
13591 for gl_pthread
in '' '-pthread'; do
13592 LIBS
="$LIBS $gl_pthread"
13593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595 #include <pthread.h>
13597 pthread_mutexattr_t ma;
13602 pthread_mutex_lock (&m);
13603 pthread_mutexattr_init (&ma);
13608 if ac_fn_c_try_link
"$LINENO"; then :
13610 LIBPTHREAD
=$gl_pthread
13611 LIBPMULTITHREAD
=$gl_pthread
13613 rm -f core conftest.err conftest.
$ac_objext \
13614 conftest
$ac_exeext conftest.
$ac_ext
13616 test $gl_pthread_api = yes && break
13619 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
13620 # since it is defined as a macro on OSF/1.)
13621 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
13622 # The program links fine without libpthread. But it may actually
13623 # need to link with libpthread in order to create multiple threads.
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
13625 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13626 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
13627 $as_echo_n "(cached) " >&6
13629 ac_check_lib_save_LIBS
=$LIBS
13630 LIBS
="-lpthread $LIBS"
13631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13634 /* Override any GCC internal prototype to avoid an error.
13635 Use char because int might match the return type of a GCC
13636 builtin and then its argument prototype would still apply. */
13640 char pthread_kill ();
13644 return pthread_kill ();
13649 if ac_fn_c_try_link
"$LINENO"; then :
13650 ac_cv_lib_pthread_pthread_kill
=yes
13652 ac_cv_lib_pthread_pthread_kill
=no
13654 rm -f core conftest.err conftest.
$ac_objext \
13655 conftest
$ac_exeext conftest.
$ac_ext
13656 LIBS
=$ac_check_lib_save_LIBS
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
13659 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13660 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
13661 LIBPMULTITHREAD
=-lpthread
13662 # On Solaris and HP-UX, most pthread functions exist also in libc.
13663 # Therefore pthread_in_use() needs to actually try to create a
13664 # thread: pthread_create from libc will fail, whereas
13665 # pthread_create will actually create a thread.
13666 # On Solaris 10 or newer, this test is no longer needed, because
13667 # libc contains the fully functional pthread functions.
13669 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
13671 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
13677 elif test $gl_pthread_api != yes; then
13678 # Some library is needed. Try libpthread and libc_r.
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
13680 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13681 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
13682 $as_echo_n "(cached) " >&6
13684 ac_check_lib_save_LIBS
=$LIBS
13685 LIBS
="-lpthread $LIBS"
13686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13689 /* Override any GCC internal prototype to avoid an error.
13690 Use char because int might match the return type of a GCC
13691 builtin and then its argument prototype would still apply. */
13695 char pthread_kill ();
13699 return pthread_kill ();
13704 if ac_fn_c_try_link
"$LINENO"; then :
13705 ac_cv_lib_pthread_pthread_kill
=yes
13707 ac_cv_lib_pthread_pthread_kill
=no
13709 rm -f core conftest.err conftest.
$ac_objext \
13710 conftest
$ac_exeext conftest.
$ac_ext
13711 LIBS
=$ac_check_lib_save_LIBS
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
13714 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13715 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
13717 LIBPTHREAD
=-lpthread
13718 LIBPMULTITHREAD
=-lpthread
13721 if test $gl_pthread_api != yes; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
13724 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
13725 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
13726 $as_echo_n "(cached) " >&6
13728 ac_check_lib_save_LIBS
=$LIBS
13730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13733 /* Override any GCC internal prototype to avoid an error.
13734 Use char because int might match the return type of a GCC
13735 builtin and then its argument prototype would still apply. */
13739 char pthread_kill ();
13743 return pthread_kill ();
13748 if ac_fn_c_try_link
"$LINENO"; then :
13749 ac_cv_lib_c_r_pthread_kill
=yes
13751 ac_cv_lib_c_r_pthread_kill
=no
13753 rm -f core conftest.err conftest.
$ac_objext \
13754 conftest
$ac_exeext conftest.
$ac_ext
13755 LIBS
=$ac_check_lib_save_LIBS
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
13758 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
13759 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
13762 LIBPMULTITHREAD
=-lc_r
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
13769 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
13771 $as_echo "$gl_pthread_api" >&6; }
13774 if test $gl_pthread_api = yes; then
13776 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
13780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h. */
13791 if ac_fn_c_try_link
"$LINENO"; then :
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
13796 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
13797 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
13798 $as_echo_n "(cached) " >&6
13800 ac_check_lib_save_LIBS
=$LIBS
13802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13805 /* Override any GCC internal prototype to avoid an error.
13806 Use char because int might match the return type of a GCC
13807 builtin and then its argument prototype would still apply. */
13811 char sched_yield ();
13815 return sched_yield ();
13820 if ac_fn_c_try_link
"$LINENO"; then :
13821 ac_cv_lib_rt_sched_yield
=yes
13823 ac_cv_lib_rt_sched_yield
=no
13825 rm -f core conftest.err conftest.
$ac_objext \
13826 conftest
$ac_exeext conftest.
$ac_ext
13827 LIBS
=$ac_check_lib_save_LIBS
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
13830 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
13831 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
13832 LIB_SCHED_YIELD
=-lrt
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
13835 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
13836 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
13837 $as_echo_n "(cached) " >&6
13839 ac_check_lib_save_LIBS
=$LIBS
13840 LIBS
="-lposix4 $LIBS"
13841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13844 /* Override any GCC internal prototype to avoid an error.
13845 Use char because int might match the return type of a GCC
13846 builtin and then its argument prototype would still apply. */
13850 char sched_yield ();
13854 return sched_yield ();
13859 if ac_fn_c_try_link
"$LINENO"; then :
13860 ac_cv_lib_posix4_sched_yield
=yes
13862 ac_cv_lib_posix4_sched_yield
=no
13864 rm -f core conftest.err conftest.
$ac_objext \
13865 conftest
$ac_exeext conftest.
$ac_ext
13866 LIBS
=$ac_check_lib_save_LIBS
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
13869 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
13870 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
13871 LIB_SCHED_YIELD
=-lposix4
13878 rm -f core conftest.err conftest.
$ac_objext \
13879 conftest
$ac_exeext conftest.
$ac_ext
13882 gl_pthreadlib_body_done
=done
13885 LIBTHREAD
=$LIBPTHREAD LTLIBTHREAD
=$LIBPTHREAD
13886 LIBMULTITHREAD
=$LIBPMULTITHREAD LTLIBMULTITHREAD
=$LIBPMULTITHREAD
13887 if test $gl_pthread_api = yes; then
13888 if test "$gl_use_threads" = isoc
+posix
&& test "$gl_have_isoc_threads" = yes; then
13889 gl_threads_api
='isoc+posix'
13891 $as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
13893 LIBTHREAD
= LTLIBTHREAD
=
13895 gl_threads_api
=posix
13897 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
13899 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
13900 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13902 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
13904 LIBTHREAD
= LTLIBTHREAD
=
13910 if test $gl_threads_api = none
; then
13911 if test "$gl_use_threads" = isoc
&& test "$gl_have_isoc_threads" = yes; then
13915 if test -z "$gl_stdthreadlib_body_done"; then
13925 if test -z "$gl_pthreadlib_body_done"; then
13929 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
13930 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
13931 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13932 if test "x$ac_cv_header_pthread_h" = xyes
; then :
13933 gl_have_pthread_h
=yes
13935 gl_have_pthread_h
=no
13939 if test "$gl_have_pthread_h" = yes; then
13940 # Other possible tests:
13941 # -lpthreads (FSU threads, PCthreads)
13943 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
13944 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
13945 # the second one only in libpthread, and lock.c needs it.
13947 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
13948 # needs -pthread for some reason. See:
13949 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
13951 for gl_pthread
in '' '-pthread'; do
13952 LIBS
="$LIBS $gl_pthread"
13953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955 #include <pthread.h>
13957 pthread_mutexattr_t ma;
13962 pthread_mutex_lock (&m);
13963 pthread_mutexattr_init (&ma);
13968 if ac_fn_c_try_link
"$LINENO"; then :
13970 LIBPTHREAD
=$gl_pthread
13971 LIBPMULTITHREAD
=$gl_pthread
13973 rm -f core conftest.err conftest.
$ac_objext \
13974 conftest
$ac_exeext conftest.
$ac_ext
13976 test $gl_pthread_api = yes && break
13979 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
13980 # since it is defined as a macro on OSF/1.)
13981 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
13982 # The program links fine without libpthread. But it may actually
13983 # need to link with libpthread in order to create multiple threads.
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
13985 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13986 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
13987 $as_echo_n "(cached) " >&6
13989 ac_check_lib_save_LIBS
=$LIBS
13990 LIBS
="-lpthread $LIBS"
13991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13994 /* Override any GCC internal prototype to avoid an error.
13995 Use char because int might match the return type of a GCC
13996 builtin and then its argument prototype would still apply. */
14000 char pthread_kill ();
14004 return pthread_kill ();
14009 if ac_fn_c_try_link
"$LINENO"; then :
14010 ac_cv_lib_pthread_pthread_kill
=yes
14012 ac_cv_lib_pthread_pthread_kill
=no
14014 rm -f core conftest.err conftest.
$ac_objext \
14015 conftest
$ac_exeext conftest.
$ac_ext
14016 LIBS
=$ac_check_lib_save_LIBS
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14019 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14020 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14021 LIBPMULTITHREAD
=-lpthread
14022 # On Solaris and HP-UX, most pthread functions exist also in libc.
14023 # Therefore pthread_in_use() needs to actually try to create a
14024 # thread: pthread_create from libc will fail, whereas
14025 # pthread_create will actually create a thread.
14026 # On Solaris 10 or newer, this test is no longer needed, because
14027 # libc contains the fully functional pthread functions.
14029 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
14031 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
14037 elif test $gl_pthread_api != yes; then
14038 # Some library is needed. Try libpthread and libc_r.
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
14040 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
14041 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
14042 $as_echo_n "(cached) " >&6
14044 ac_check_lib_save_LIBS
=$LIBS
14045 LIBS
="-lpthread $LIBS"
14046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14049 /* Override any GCC internal prototype to avoid an error.
14050 Use char because int might match the return type of a GCC
14051 builtin and then its argument prototype would still apply. */
14055 char pthread_kill ();
14059 return pthread_kill ();
14064 if ac_fn_c_try_link
"$LINENO"; then :
14065 ac_cv_lib_pthread_pthread_kill
=yes
14067 ac_cv_lib_pthread_pthread_kill
=no
14069 rm -f core conftest.err conftest.
$ac_objext \
14070 conftest
$ac_exeext conftest.
$ac_ext
14071 LIBS
=$ac_check_lib_save_LIBS
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
14074 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14075 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
14077 LIBPTHREAD
=-lpthread
14078 LIBPMULTITHREAD
=-lpthread
14081 if test $gl_pthread_api != yes; then
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
14084 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14085 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
14086 $as_echo_n "(cached) " >&6
14088 ac_check_lib_save_LIBS
=$LIBS
14090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14093 /* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
14099 char pthread_kill ();
14103 return pthread_kill ();
14108 if ac_fn_c_try_link
"$LINENO"; then :
14109 ac_cv_lib_c_r_pthread_kill
=yes
14111 ac_cv_lib_c_r_pthread_kill
=no
14113 rm -f core conftest.err conftest.
$ac_objext \
14114 conftest
$ac_exeext conftest.
$ac_ext
14115 LIBS
=$ac_check_lib_save_LIBS
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
14118 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14119 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
14122 LIBPMULTITHREAD
=-lc_r
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
14129 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
14131 $as_echo "$gl_pthread_api" >&6; }
14134 if test $gl_pthread_api = yes; then
14136 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
14140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14151 if ac_fn_c_try_link
"$LINENO"; then :
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
14156 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
14157 if ${ac_cv_lib_rt_sched_yield+:} false
; then :
14158 $as_echo_n "(cached) " >&6
14160 ac_check_lib_save_LIBS
=$LIBS
14162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14165 /* Override any GCC internal prototype to avoid an error.
14166 Use char because int might match the return type of a GCC
14167 builtin and then its argument prototype would still apply. */
14171 char sched_yield ();
14175 return sched_yield ();
14180 if ac_fn_c_try_link
"$LINENO"; then :
14181 ac_cv_lib_rt_sched_yield
=yes
14183 ac_cv_lib_rt_sched_yield
=no
14185 rm -f core conftest.err conftest.
$ac_objext \
14186 conftest
$ac_exeext conftest.
$ac_ext
14187 LIBS
=$ac_check_lib_save_LIBS
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
14190 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
14191 if test "x$ac_cv_lib_rt_sched_yield" = xyes
; then :
14192 LIB_SCHED_YIELD
=-lrt
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
14195 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
14196 if ${ac_cv_lib_posix4_sched_yield+:} false
; then :
14197 $as_echo_n "(cached) " >&6
14199 ac_check_lib_save_LIBS
=$LIBS
14200 LIBS
="-lposix4 $LIBS"
14201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14204 /* Override any GCC internal prototype to avoid an error.
14205 Use char because int might match the return type of a GCC
14206 builtin and then its argument prototype would still apply. */
14210 char sched_yield ();
14214 return sched_yield ();
14219 if ac_fn_c_try_link
"$LINENO"; then :
14220 ac_cv_lib_posix4_sched_yield
=yes
14222 ac_cv_lib_posix4_sched_yield
=no
14224 rm -f core conftest.err conftest.
$ac_objext \
14225 conftest
$ac_exeext conftest.
$ac_ext
14226 LIBS
=$ac_check_lib_save_LIBS
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
14229 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
14230 if test "x$ac_cv_lib_posix4_sched_yield" = xyes
; then :
14231 LIB_SCHED_YIELD
=-lposix4
14238 rm -f core conftest.err conftest.
$ac_objext \
14239 conftest
$ac_exeext conftest.
$ac_ext
14242 gl_pthreadlib_body_done
=done
14245 if test $ac_cv_header_threads_h = yes; then
14246 for ac_func
in thrd_create
14248 ac_fn_c_check_func
"$LINENO" "thrd_create" "ac_cv_func_thrd_create"
14249 if test "x$ac_cv_func_thrd_create" = xyes
; then :
14250 cat >>confdefs.h
<<_ACEOF
14251 #define HAVE_THRD_CREATE 1
14257 if test $ac_cv_func_thrd_create = yes; then
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5
14261 $as_echo_n "checking for thrd_create in -lstdthreads... " >&6; }
14262 if ${ac_cv_lib_stdthreads_thrd_create+:} false
; then :
14263 $as_echo_n "(cached) " >&6
14265 ac_check_lib_save_LIBS
=$LIBS
14266 LIBS
="-lstdthreads $LIBS"
14267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14270 /* Override any GCC internal prototype to avoid an error.
14271 Use char because int might match the return type of a GCC
14272 builtin and then its argument prototype would still apply. */
14276 char thrd_create ();
14280 return thrd_create ();
14285 if ac_fn_c_try_link
"$LINENO"; then :
14286 ac_cv_lib_stdthreads_thrd_create
=yes
14288 ac_cv_lib_stdthreads_thrd_create
=no
14290 rm -f core conftest.err conftest.
$ac_objext \
14291 conftest
$ac_exeext conftest.
$ac_ext
14292 LIBS
=$ac_check_lib_save_LIBS
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5
14295 $as_echo "$ac_cv_lib_stdthreads_thrd_create" >&6; }
14296 if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes
; then :
14298 LIBSTDTHREAD
='-lstdthreads -lpthread'
14302 LIBSTDTHREAD
="$LIBPMULTITHREAD"
14308 LIBSTDTHREAD
="$LIBPMULTITHREAD $LIB_SCHED_YIELD"
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5
14315 $as_echo_n "checking whether ISO C threads API is available... " >&6; }
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5
14317 $as_echo "$ac_cv_header_threads_h" >&6; }
14318 gl_stdthreadlib_body_done
=done
14321 LIBTHREAD
=$LIBSTDTHREAD LTLIBTHREAD
=$LIBSTDTHREAD
14322 LIBMULTITHREAD
=$LIBSTDTHREAD LTLIBMULTITHREAD
=$LIBSTDTHREAD
14323 gl_threads_api
=isoc
14325 $as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
14329 if test $gl_threads_api = none
; then
14330 case "$gl_use_threads" in
14331 yes | windows | win32
) # The 'win32' is for backward compatibility.
14332 if { case "$host_os" in
14337 gl_threads_api
=windows
14339 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
14347 $as_echo_n "checking for multithread API to use... " >&6; }
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
14349 $as_echo "$gl_threads_api" >&6; }
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
14363 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
14364 if ${gl_cv_func_malloc_posix+:} false
; then :
14365 $as_echo_n "(cached) " >&6
14368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14374 #if defined _WIN32 && ! defined __CYGWIN__
14382 if ac_fn_c_try_compile
"$LINENO"; then :
14383 gl_cv_func_malloc_posix
=yes
14385 gl_cv_func_malloc_posix
=no
14387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
14391 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14395 for ac_header
in stdlib.h
14397 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14398 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
14399 cat >>confdefs.h
<<_ACEOF
14400 #define HAVE_STDLIB_H 1
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14408 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14409 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
14410 $as_echo_n "(cached) " >&6
14412 if test "$cross_compiling" = yes; then :
14414 # Guess yes on platforms where we know the result.
14415 *-gnu* | gnu
* |
*-musl* | freebsd
* | netbsd
* | openbsd
* \
14416 | hpux
* | solaris
* | cygwin
* | mingw
*)
14417 ac_cv_func_malloc_0_nonnull
="guessing yes" ;;
14418 # If we don't know, obey --enable-cross-guesses.
14419 *) ac_cv_func_malloc_0_nonnull
="$gl_cross_guess_normal" ;;
14423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14425 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14426 # include <stdlib.h>
14434 char *p = malloc (0);
14443 if ac_fn_c_try_run
"$LINENO"; then :
14444 ac_cv_func_malloc_0_nonnull
=yes
14446 ac_cv_func_malloc_0_nonnull
=no
14448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14455 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14456 case "$ac_cv_func_malloc_0_nonnull" in
14458 gl_cv_func_malloc_0_nonnull
=1
14461 gl_cv_func_malloc_0_nonnull
=0
14466 cat >>confdefs.h
<<_ACEOF
14467 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
14479 GNULIB_MBSRTOWCS
=0;
14480 GNULIB_MBSNRTOWCS
=0;
14482 GNULIB_WCSRTOMBS
=0;
14483 GNULIB_WCSNRTOMBS
=0;
14500 GNULIB_WCSCASECMP
=0;
14501 GNULIB_WCSNCASECMP
=0;
14539 HAVE_WCSNCASECMP
=1;
14553 HAVE_DECL_WCWIDTH
=1;
14554 REPLACE_MBSTATE_T
=0;
14560 REPLACE_MBSRTOWCS
=0;
14561 REPLACE_MBSNRTOWCS
=0;
14563 REPLACE_WCSRTOMBS
=0;
14564 REPLACE_WCSNRTOMBS
=0;
14566 REPLACE_WCSWIDTH
=0;
14567 REPLACE_WCSFTIME
=0;
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
14578 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14579 if ${gt_cv_locale_ja+:} false
; then :
14580 $as_echo_n "(cached) " >&6
14583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14586 #include <locale.h>
14588 #if HAVE_LANGINFO_CODESET
14589 # include <langinfo.h>
14591 #include <stdlib.h>
14592 #include <string.h>
14597 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14598 imitates locale dependent behaviour by looking at the environment
14599 variables, and all locales use the UTF-8 encoding. */
14600 #if defined __BEOS__ || defined __HAIKU__
14603 /* Check whether the given locale name is recognized by the system. */
14604 # if defined _WIN32 && !defined __CYGWIN__
14605 /* On native Windows, setlocale(category, "") looks at the system settings,
14606 not at the environment variables. Also, when an encoding suffix such
14607 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14608 category of the locale to "C". */
14609 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14610 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14613 if (setlocale (LC_ALL, "") == NULL) return 1;
14615 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14616 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14617 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14618 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14619 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14620 some unit tests fail.
14621 On MirBSD 10, when an unsupported locale is specified, setlocale()
14622 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14623 # if HAVE_LANGINFO_CODESET
14625 const char *cs = nl_langinfo (CODESET);
14626 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14627 || strcmp (cs, "UTF-8") == 0)
14632 /* On Cygwin, avoid locale names without encoding suffix, because the
14633 locale_charset() function relies on the encoding suffix. Note that
14634 LC_ALL is set on the command line. */
14635 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14637 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
14638 on Cygwin 1.5.x. */
14639 if (MB_CUR_MAX == 1)
14641 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14642 This excludes the UTF-8 encoding (except on MirBSD). */
14645 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14646 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14647 for (p = buf; *p != '\0'; p++)
14648 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14657 (eval $ac_link) 2>&5
14659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14660 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14662 # Handle native Windows specially, because there setlocale() interprets
14663 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14664 # "fr" or "fra" as "French" or "French_France.1252",
14665 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14666 # "ja" as "Japanese" or "Japanese_Japan.932",
14669 # Note that on native Windows, the Japanese locale is
14670 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
14671 # cannot use it here.
14672 gt_cv_locale_ja
=none
14675 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14676 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14677 # configure script would override the LC_ALL setting. Likewise for
14678 # LC_CTYPE, which is also set at the beginning of the configure script.
14679 # Test for the AIX locale name.
14680 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14681 gt_cv_locale_ja
=ja_JP
14683 # Test for the locale name with explicit encoding suffix.
14684 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14685 gt_cv_locale_ja
=ja_JP.EUC-JP
14687 # Test for the HP-UX, OSF/1, NetBSD locale name.
14688 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14689 gt_cv_locale_ja
=ja_JP.eucJP
14691 # Test for the IRIX, FreeBSD locale name.
14692 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14693 gt_cv_locale_ja
=ja_JP.EUC
14695 # Test for the Solaris 7 locale name.
14696 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14699 # Special test for NetBSD 1.6.
14700 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
14701 gt_cv_locale_ja
=ja_JP.eucJP
14704 gt_cv_locale_ja
=none
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14718 $as_echo "$gt_cv_locale_ja" >&6; }
14719 LOCALE_JA
=$gt_cv_locale_ja
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14725 $as_echo_n "checking for a french Unicode locale... " >&6; }
14726 if ${gt_cv_locale_fr_utf8+:} false
; then :
14727 $as_echo_n "(cached) " >&6
14730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14733 #include <locale.h>
14735 #if HAVE_LANGINFO_CODESET
14736 # include <langinfo.h>
14738 #include <stdlib.h>
14739 #include <string.h>
14743 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14744 imitates locale dependent behaviour by looking at the environment
14745 variables, and all locales use the UTF-8 encoding. */
14746 #if !(defined __BEOS__ || defined __HAIKU__)
14747 /* Check whether the given locale name is recognized by the system. */
14748 # if defined _WIN32 && !defined __CYGWIN__
14749 /* On native Windows, setlocale(category, "") looks at the system settings,
14750 not at the environment variables. Also, when an encoding suffix such
14751 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14752 category of the locale to "C". */
14753 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14754 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14757 if (setlocale (LC_ALL, "") == NULL) return 1;
14759 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14760 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14761 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14762 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14763 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14764 some unit tests fail. */
14765 # if HAVE_LANGINFO_CODESET
14767 const char *cs = nl_langinfo (CODESET);
14768 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14773 /* On Cygwin, avoid locale names without encoding suffix, because the
14774 locale_charset() function relies on the encoding suffix. Note that
14775 LC_ALL is set on the command line. */
14776 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14778 /* Check whether in the abbreviation of the second month, the second
14779 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14780 two bytes long, with UTF-8 encoding. */
14781 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14782 if (strftime (buf, sizeof (buf), "%b", &t) < 4
14783 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
14786 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14787 /* Check whether the decimal separator is a comma.
14788 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14789 are nl_langinfo(RADIXCHAR) are both ".". */
14790 if (localeconv () ->decimal_point[0] != ',') return 1;
14796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14797 (eval $ac_link) 2>&5
14799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14800 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14802 # Handle native Windows specially, because there setlocale() interprets
14803 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14804 # "fr" or "fra" as "French" or "French_France.1252",
14805 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14806 # "ja" as "Japanese" or "Japanese_Japan.932",
14809 # Test for the hypothetical native Windows locale name.
14810 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14811 gt_cv_locale_fr_utf8
=French_France
.65001
14814 gt_cv_locale_fr_utf8
=none
14818 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14819 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14820 # configure script would override the LC_ALL setting. Likewise for
14821 # LC_CTYPE, which is also set at the beginning of the configure script.
14822 # Test for the usual locale name.
14823 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14824 gt_cv_locale_fr_utf8
=fr_FR
14826 # Test for the locale name with explicit encoding suffix.
14827 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14828 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
14830 # Test for the Solaris 7 locale name.
14831 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14832 gt_cv_locale_fr_utf8
=fr.UTF-8
14835 gt_cv_locale_fr_utf8
=none
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
14846 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
14847 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
14854 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14855 if ${gt_cv_locale_zh_CN+:} false
; then :
14856 $as_echo_n "(cached) " >&6
14859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14862 #include <locale.h>
14863 #include <stdlib.h>
14865 #if HAVE_LANGINFO_CODESET
14866 # include <langinfo.h>
14868 #include <stdlib.h>
14869 #include <string.h>
14874 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14875 imitates locale dependent behaviour by looking at the environment
14876 variables, and all locales use the UTF-8 encoding. */
14877 #if defined __BEOS__ || defined __HAIKU__
14880 /* Check whether the given locale name is recognized by the system. */
14881 # if defined _WIN32 && !defined __CYGWIN__
14882 /* On native Windows, setlocale(category, "") looks at the system settings,
14883 not at the environment variables. Also, when an encoding suffix such
14884 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14885 category of the locale to "C". */
14886 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14887 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14890 if (setlocale (LC_ALL, "") == NULL) return 1;
14892 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14893 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14894 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14895 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14896 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14897 some unit tests fail.
14898 On MirBSD 10, when an unsupported locale is specified, setlocale()
14899 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14900 # if HAVE_LANGINFO_CODESET
14902 const char *cs = nl_langinfo (CODESET);
14903 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14904 || strcmp (cs, "UTF-8") == 0)
14909 /* On Cygwin, avoid locale names without encoding suffix, because the
14910 locale_charset() function relies on the encoding suffix. Note that
14911 LC_ALL is set on the command line. */
14912 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14914 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14915 This excludes the UTF-8 encoding (except on MirBSD). */
14918 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14919 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14920 for (p = buf; *p != '\0'; p++)
14921 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14924 /* Check whether a typical GB18030 multibyte sequence is recognized as a
14925 single wide character. This excludes the GB2312 and GBK encodings. */
14926 if (mblen ("\203\062\332\066", 5) != 4)
14933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14934 (eval $ac_link) 2>&5
14936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14937 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14939 # Handle native Windows specially, because there setlocale() interprets
14940 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14941 # "fr" or "fra" as "French" or "French_France.1252",
14942 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14943 # "ja" as "Japanese" or "Japanese_Japan.932",
14946 # Test for the hypothetical native Windows locale name.
14947 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14948 gt_cv_locale_zh_CN
=Chinese_China
.54936
14951 gt_cv_locale_zh_CN
=none
14955 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
14956 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
14957 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
14958 gt_cv_locale_zh_CN
=none
14961 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14962 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14963 # configure script would override the LC_ALL setting. Likewise for
14964 # LC_CTYPE, which is also set at the beginning of the configure script.
14965 # Test for the locale name without encoding suffix.
14966 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14967 gt_cv_locale_zh_CN
=zh_CN
14969 # Test for the locale name with explicit encoding suffix.
14970 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14971 gt_cv_locale_zh_CN
=zh_CN.GB18030
14974 gt_cv_locale_zh_CN
=none
14980 # If there was a link error, due to mblen(), the system is so old that
14981 # it certainly doesn't have a chinese locale.
14982 gt_cv_locale_zh_CN
=none
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
14988 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14989 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14993 $as_echo_n "checking for inline... " >&6; }
14994 if ${ac_cv_c_inline+:} false
; then :
14995 $as_echo_n "(cached) " >&6
14998 for ac_kw
in inline __inline__ __inline
; do
14999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15001 #ifndef __cplusplus
15003 static $ac_kw foo_t static_foo () {return 0; }
15004 $ac_kw foo_t foo () {return 0; }
15008 if ac_fn_c_try_compile
"$LINENO"; then :
15009 ac_cv_c_inline
=$ac_kw
15011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15012 test "$ac_cv_c_inline" != no
&& break
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15017 $as_echo "$ac_cv_c_inline" >&6; }
15019 case $ac_cv_c_inline in
15022 case $ac_cv_c_inline in
15024 *) ac_val
=$ac_cv_c_inline;;
15026 cat >>confdefs.h
<<_ACEOF
15027 #ifndef __cplusplus
15028 #define inline $ac_val
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
15038 $as_echo_n "checking for a traditional french locale... " >&6; }
15039 if ${gt_cv_locale_fr+:} false
; then :
15040 $as_echo_n "(cached) " >&6
15043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15046 #include <locale.h>
15048 #if HAVE_LANGINFO_CODESET
15049 # include <langinfo.h>
15051 #include <stdlib.h>
15052 #include <string.h>
15056 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15057 imitates locale dependent behaviour by looking at the environment
15058 variables, and all locales use the UTF-8 encoding. */
15059 #if defined __BEOS__ || defined __HAIKU__
15062 /* Check whether the given locale name is recognized by the system. */
15063 # if defined _WIN32 && !defined __CYGWIN__
15064 /* On native Windows, setlocale(category, "") looks at the system settings,
15065 not at the environment variables. Also, when an encoding suffix such
15066 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15067 category of the locale to "C". */
15068 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15069 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15072 if (setlocale (LC_ALL, "") == NULL) return 1;
15074 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
15075 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
15076 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
15077 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
15078 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
15079 some unit tests fail.
15080 On MirBSD 10, when an unsupported locale is specified, setlocale()
15081 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
15082 # if HAVE_LANGINFO_CODESET
15084 const char *cs = nl_langinfo (CODESET);
15085 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
15086 || strcmp (cs, "UTF-8") == 0)
15091 /* On Cygwin, avoid locale names without encoding suffix, because the
15092 locale_charset() function relies on the encoding suffix. Note that
15093 LC_ALL is set on the command line. */
15094 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15096 /* Check whether in the abbreviation of the second month, the second
15097 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
15098 one byte long. This excludes the UTF-8 encoding. */
15099 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15100 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
15101 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
15102 /* Check whether the decimal separator is a comma.
15103 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15104 are nl_langinfo(RADIXCHAR) are both ".". */
15105 if (localeconv () ->decimal_point[0] != ',') return 1;
15112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15113 (eval $ac_link) 2>&5
15115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15116 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
15118 # Handle native Windows specially, because there setlocale() interprets
15119 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
15120 # "fr" or "fra" as "French" or "French_France.1252",
15121 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15122 # "ja" as "Japanese" or "Japanese_Japan.932",
15125 # Test for the native Windows locale name.
15126 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15127 gt_cv_locale_fr
=French_France
.1252
15130 gt_cv_locale_fr
=none
15134 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15135 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15136 # configure script would override the LC_ALL setting. Likewise for
15137 # LC_CTYPE, which is also set at the beginning of the configure script.
15138 # Test for the usual locale name.
15139 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15140 gt_cv_locale_fr
=fr_FR
15142 # Test for the locale name with explicit encoding suffix.
15143 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15144 gt_cv_locale_fr
=fr_FR.ISO-8859-1
15146 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
15147 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15148 gt_cv_locale_fr
=fr_FR.ISO8859-1
15150 # Test for the HP-UX locale name.
15151 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15152 gt_cv_locale_fr
=fr_FR.iso88591
15154 # Test for the Solaris 7 locale name.
15155 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
15159 gt_cv_locale_fr
=none
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
15172 $as_echo "$gt_cv_locale_fr" >&6; }
15173 LOCALE_FR
=$gt_cv_locale_fr
15181 GNULIB_EXPLICIT_BZERO
=0;
15188 GNULIB_RAWMEMCHR
=0;
15191 GNULIB_STRCHRNUL
=0;
15199 GNULIB_STRCASESTR
=0;
15206 GNULIB_MBSCASECMP
=0;
15207 GNULIB_MBSNCASECMP
=0;
15208 GNULIB_MBSPCASECMP
=0;
15209 GNULIB_MBSCASESTR
=0;
15216 GNULIB_STRERROR_R
=0;
15217 GNULIB_STRSIGNAL
=0;
15218 GNULIB_STRVERSCMP
=0;
15220 HAVE_EXPLICIT_BZERO
=1;
15224 HAVE_DECL_MEMMEM
=1;
15226 HAVE_DECL_MEMRCHR
=1;
15231 HAVE_DECL_STRDUP
=1;
15232 HAVE_DECL_STRNDUP
=1;
15233 HAVE_DECL_STRNLEN
=1;
15237 HAVE_DECL_STRTOK_R
=1;
15238 HAVE_DECL_STRERROR_R
=1;
15239 HAVE_DECL_STRSIGNAL
=1;
15244 REPLACE_STRCHRNUL
=0;
15250 REPLACE_STRCASESTR
=0;
15251 REPLACE_STRTOK_R
=0;
15252 REPLACE_STRERROR
=0;
15253 REPLACE_STRERROR_R
=0;
15254 REPLACE_STRSIGNAL
=0;
15255 UNDEFINE_STRTOK_R
=0;
15262 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
15263 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
15264 # irrelevant for anonymous mappings.
15265 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
15266 if test "x$ac_cv_func_mmap" = xyes
; then :
15273 # Try to allow MAP_ANONYMOUS.
15274 gl_have_mmap_anonymous
=no
15275 if test $gl_have_mmap = yes; then
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
15277 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15281 #include <sys/mman.h>
15282 #ifdef MAP_ANONYMOUS
15283 I cannot identify this map
15287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15288 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15289 gl_have_mmap_anonymous
=yes
15293 if test $gl_have_mmap_anonymous != yes; then
15294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15297 #include <sys/mman.h>
15299 I cannot identify this map
15303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15304 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
15306 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
15308 gl_have_mmap_anonymous
=yes
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
15314 $as_echo "$gl_have_mmap_anonymous" >&6; }
15315 if test $gl_have_mmap_anonymous = yes; then
15317 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
15327 if test $HAVE_MEMCHR = 1; then
15328 # Detect platform-specific bugs in some versions of glibc:
15329 # memchr should not dereference anything with length 0
15330 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
15331 # memchr should not dereference overestimated length after a match
15332 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
15333 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
15334 # memchr should cast the second argument to 'unsigned char'.
15335 # This bug exists in Android 4.3.
15336 # Assume that memchr works on platforms that lack mprotect.
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
15338 $as_echo_n "checking whether memchr works... " >&6; }
15339 if ${gl_cv_func_memchr_works+:} false
; then :
15340 $as_echo_n "(cached) " >&6
15342 if test "$cross_compiling" = yes; then :
15344 # Guess no on Android.
15345 linux
*-android*) gl_cv_func_memchr_works
="guessing no" ;;
15346 # Guess yes on native Windows.
15347 mingw
*) gl_cv_func_memchr_works
="guessing yes" ;;
15348 # If we don't know, obey --enable-cross-guesses.
15349 *) gl_cv_func_memchr_works
="$gl_cross_guess_normal" ;;
15353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15356 #include <string.h>
15357 #if HAVE_SYS_MMAN_H
15358 # include <fcntl.h>
15359 # include <unistd.h>
15360 # include <sys/types.h>
15361 # include <sys/mman.h>
15363 # define MAP_FILE 0
15372 char *fence = NULL;
15373 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
15374 # if HAVE_MAP_ANONYMOUS
15375 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
15377 # else /* !HAVE_MAP_ANONYMOUS */
15378 const int flags = MAP_FILE | MAP_PRIVATE;
15379 int fd = open ("/dev/zero", O_RDONLY, 0666);
15383 int pagesize = getpagesize ();
15385 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
15387 if (two_pages != (char *)(-1)
15388 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
15389 fence = two_pages + pagesize;
15394 if (memchr (fence, 0, 0))
15396 strcpy (fence - 9, "12345678");
15397 if (memchr (fence - 9, 0, 79) != fence - 1)
15399 if (memchr (fence - 1, 0, 3) != fence - 1)
15402 /* Test against bug on Android 4.3. */
15408 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
15417 if ac_fn_c_try_run
"$LINENO"; then :
15418 gl_cv_func_memchr_works
=yes
15420 gl_cv_func_memchr_works
=no
15422 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15423 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
15429 $as_echo "$gl_cv_func_memchr_works" >&6; }
15430 case "$gl_cv_func_memchr_works" in
15432 *) REPLACE_MEMCHR
=1 ;;
15436 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
15437 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
15443 cat >>confdefs.h
<<_ACEOF
15444 #define HAVE_DECL_MEMMEM $ac_have_decl
15451 for ac_func
in memmem
15453 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
15454 if test "x$ac_cv_func_memmem" = xyes
; then :
15455 cat >>confdefs.h
<<_ACEOF
15456 #define HAVE_MEMMEM 1
15462 if test $ac_cv_func_memmem = yes; then
15468 if test $ac_cv_have_decl_memmem = no
; then
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15472 $as_echo_n "checking whether memmem works... " >&6; }
15473 if ${gl_cv_func_memmem_works_always+:} false
; then :
15474 $as_echo_n "(cached) " >&6
15476 if test "$cross_compiling" = yes; then :
15477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15478 /* end confdefs.h. */
15480 #ifdef __GNU_LIBRARY__
15481 #include <features.h>
15482 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15483 || __GLIBC_MINOR__ > 12)) \
15484 || (__GLIBC__ > 2)) \
15485 || defined __UCLIBC__
15488 #elif defined __CYGWIN__
15489 #include <cygwin/version.h>
15490 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15499 $EGREP "Lucky user" >/dev
/null
2>&1; then :
15500 gl_cv_func_memmem_works_always
="guessing yes"
15502 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
15508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15511 #include <string.h> /* for memmem */
15512 #define P "_EF_BF_BD"
15513 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15514 #define NEEDLE P P P P P
15521 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15523 /* Check for empty needle behavior. */
15525 const char *haystack = "AAA";
15526 if (memmem (haystack, 3, NULL, 0) != haystack)
15535 if ac_fn_c_try_run
"$LINENO"; then :
15536 gl_cv_func_memmem_works_always
=yes
15538 gl_cv_func_memmem_works_always
=no
15540 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15541 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15547 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15548 case "$gl_cv_func_memmem_works_always" in
15557 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
15558 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
15564 cat >>confdefs.h
<<_ACEOF
15565 #define HAVE_DECL_MEMRCHR $ac_have_decl
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
15575 $as_echo_n "checking for O_CLOEXEC... " >&6; }
15576 if ${gl_cv_macro_O_CLOEXEC+:} false
; then :
15577 $as_echo_n "(cached) " >&6
15579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h. */
15594 if ac_fn_c_try_compile
"$LINENO"; then :
15595 gl_cv_macro_O_CLOEXEC
=yes
15597 gl_cv_macro_O_CLOEXEC
=no
15599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
15602 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
15607 $as_echo_n "checking for promoted mode_t type... " >&6; }
15608 if ${gl_cv_promoted_mode_t+:} false
; then :
15609 $as_echo_n "(cached) " >&6
15612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15613 /* end confdefs.h. */
15614 #include <sys/types.h>
15618 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
15623 if ac_fn_c_try_compile
"$LINENO"; then :
15624 gl_cv_promoted_mode_t
='int'
15626 gl_cv_promoted_mode_t
='mode_t'
15628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
15632 $as_echo "$gl_cv_promoted_mode_t" >&6; }
15634 cat >>confdefs.h
<<_ACEOF
15635 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
15650 GNULIB_FPRINTF_POSIX
=0;
15666 GNULIB_OBSTACK_PRINTF
=0;
15667 GNULIB_OBSTACK_PRINTF_POSIX
=0;
15672 GNULIB_PRINTF_POSIX
=0;
15681 GNULIB_SPRINTF_POSIX
=0;
15682 GNULIB_STDIO_H_NONBLOCKING
=0;
15683 GNULIB_STDIO_H_SIGPIPE
=0;
15685 GNULIB_VASPRINTF
=0;
15690 GNULIB_VFPRINTF_POSIX
=0;
15692 GNULIB_VPRINTF_POSIX
=0;
15693 GNULIB_VSNPRINTF
=0;
15694 GNULIB_VSPRINTF_POSIX
=0;
15695 HAVE_DECL_FPURGE
=1;
15696 HAVE_DECL_FSEEKO
=1;
15697 HAVE_DECL_FTELLO
=1;
15698 HAVE_DECL_GETDELIM
=1;
15699 HAVE_DECL_GETLINE
=1;
15700 HAVE_DECL_OBSTACK_PRINTF
=1;
15701 HAVE_DECL_SNPRINTF
=1;
15702 HAVE_DECL_VSNPRINTF
=1;
15723 REPLACE_GETDELIM
=0;
15725 REPLACE_OBSTACK_PRINTF
=0;
15731 REPLACE_RENAMEAT
=0;
15732 REPLACE_SNPRINTF
=0;
15734 REPLACE_STDIO_READ_FUNCS
=0;
15735 REPLACE_STDIO_WRITE_FUNCS
=0;
15737 REPLACE_VASPRINTF
=0;
15738 REPLACE_VDPRINTF
=0;
15739 REPLACE_VFPRINTF
=0;
15741 REPLACE_VSNPRINTF
=0;
15742 REPLACE_VSPRINTF
=0;
15746 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
15747 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
15753 cat >>confdefs.h
<<_ACEOF
15754 #define HAVE_DECL_SETENV $ac_have_decl
15762 if test $ac_cv_have_decl_setenv = no
; then
15770 for ac_header
in search.h
15772 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
15773 if test "x$ac_cv_header_search_h" = xyes
; then :
15774 cat >>confdefs.h
<<_ACEOF
15775 #define HAVE_SEARCH_H 1
15782 for ac_func
in tsearch
15784 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
15785 if test "x$ac_cv_func_tsearch" = xyes
; then :
15786 cat >>confdefs.h
<<_ACEOF
15787 #define HAVE_TSEARCH 1
15796 GNULIB_PTHREAD_SIGMASK
=0;
15798 GNULIB_SIGNAL_H_SIGPIPE
=0;
15799 GNULIB_SIGPROCMASK
=0;
15800 GNULIB_SIGACTION
=0;
15801 HAVE_POSIX_SIGNALBLOCKING
=1;
15802 HAVE_PTHREAD_SIGMASK
=1;
15807 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
15809 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
15811 HAVE_SIGHANDLER_T
=1;
15812 REPLACE_PTHREAD_SIGMASK
=0;
15816 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
15817 #include <signal.h>
15818 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
15819 #include <sys/types.h>
15822 if test "x$ac_cv_type_sigset_t" = xyes
; then :
15824 cat >>confdefs.h
<<_ACEOF
15825 #define HAVE_SIGSET_T 1
15828 gl_cv_type_sigset_t
=yes
15830 gl_cv_type_sigset_t
=no
15833 if test $gl_cv_type_sigset_t != yes; then
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15838 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15839 if ${ac_cv_type_uid_t+:} false
; then :
15840 $as_echo_n "(cached) " >&6
15842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15844 #include <sys/types.h>
15847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15848 $EGREP "uid_t" >/dev
/null
2>&1; then :
15849 ac_cv_type_uid_t
=yes
15851 ac_cv_type_uid_t
=no
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15857 $as_echo "$ac_cv_type_uid_t" >&6; }
15858 if test $ac_cv_type_uid_t = no
; then
15860 $as_echo "#define uid_t int" >>confdefs.h
15863 $as_echo "#define gid_t int" >>confdefs.h
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15868 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15869 if ${ac_cv_header_stdbool_h+:} false
; then :
15870 $as_echo_n "(cached) " >&6
15872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h. */
15875 #include <stdbool.h>
15880 typedef _Bool Bool;
15882 "error: bool is not defined"
15885 "error: false is not defined"
15888 "error: false is not 0"
15891 "error: true is not defined"
15894 "error: true is not 1"
15898 #ifndef __bool_true_false_are_defined
15899 "error: __bool_true_false_are_defined is not defined"
15902 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
15904 char a[true == 1 ? 1 : -1];
15905 char b[false == 0 ? 1 : -1];
15906 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15907 char d[(bool) 0.5 == true ? 1 : -1];
15908 /* See body of main program for 'e'. */
15909 char f[(Bool) 0.0 == false ? 1 : -1];
15911 char h[sizeof (Bool)];
15912 char i[sizeof s.t];
15913 enum { j = false, k = true, l = false * true, m = true * 256 };
15914 /* The following fails for
15915 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15917 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15918 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15919 /* Catch a bug in an HP-UX C compiler. See
15920 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15921 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
15932 *pq |= q; *pq |= ! q;
15933 *qq |= q; *qq |= ! q;
15934 /* Refer to every declared value, to avoid compiler optimizations. */
15935 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15936 + !m + !n + !o + !p + !q + !pq + !qq);
15942 if ac_fn_c_try_compile
"$LINENO"; then :
15943 ac_cv_header_stdbool_h
=yes
15945 ac_cv_header_stdbool_h
=no
15947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15950 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15951 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15952 if test "x$ac_cv_type__Bool" = xyes
; then :
15954 cat >>confdefs.h
<<_ACEOF
15955 #define HAVE__BOOL 1
15964 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
15965 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
15971 cat >>confdefs.h
<<_ACEOF
15972 #define HAVE_DECL_STRDUP $ac_have_decl
15976 REPLACE_STRERROR_0
=0
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15978 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
15979 if ${gl_cv_func_strerror_0_works+:} false
; then :
15980 $as_echo_n "(cached) " >&6
15982 if test "$cross_compiling" = yes; then :
15984 # Guess yes on glibc systems.
15985 *-gnu* | gnu
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
15986 # Guess yes on musl systems.
15987 *-musl*) gl_cv_func_strerror_0_works
="guessing yes" ;;
15988 # Guess yes on native Windows.
15989 mingw
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
15990 # If we don't know, obey --enable-cross-guesses.
15991 *) gl_cv_func_strerror_0_works
="$gl_cross_guess_normal" ;;
15995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997 #include <string.h>
16006 str = strerror (0);
16007 if (!*str) result |= 1;
16008 if (errno) result |= 2;
16009 if (strstr (str, "nknown") || strstr (str, "ndefined"))
16016 if ac_fn_c_try_run
"$LINENO"; then :
16017 gl_cv_func_strerror_0_works
=yes
16019 gl_cv_func_strerror_0_works
=no
16021 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16022 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
16028 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
16029 case "$gl_cv_func_strerror_0_works" in
16032 REPLACE_STRERROR_0
=1
16034 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
16048 if test $ac_cv_func_strerror_r = yes; then
16049 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
16051 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
16052 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
16053 $as_echo_n "(cached) " >&6
16055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16057 #include <string.h>
16058 int strerror_r (int, char *, size_t);
16068 if ac_fn_c_try_compile
"$LINENO"; then :
16069 gl_cv_func_strerror_r_posix_signature
=yes
16071 gl_cv_func_strerror_r_posix_signature
=no
16073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
16077 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
16078 if test $gl_cv_func_strerror_r_posix_signature = yes; then
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
16080 $as_echo_n "checking whether strerror_r works... " >&6; }
16081 if ${gl_cv_func_strerror_r_works+:} false
; then :
16082 $as_echo_n "(cached) " >&6
16084 if test "$cross_compiling" = yes; then :
16088 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
16089 # Guess no on HP-UX.
16090 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
16091 # Guess no on BSD variants.
16092 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
16093 # Guess yes otherwise.
16094 *) gl_cv_func_strerror_r_works
="guessing yes";;
16098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16101 #include <string.h>
16108 if (strerror_r (EACCES, buf, 0) < 0)
16111 if (strerror_r (EACCES, buf, sizeof buf) != 0)
16113 strcpy (buf, "Unknown");
16114 if (strerror_r (0, buf, sizeof buf) != 0)
16118 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
16122 if (strerror_r (-3, buf, sizeof buf) < 0)
16134 if ac_fn_c_try_run
"$LINENO"; then :
16135 gl_cv_func_strerror_r_works
=yes
16137 gl_cv_func_strerror_r_works
=no
16139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16140 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16146 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16149 if test $ac_cv_func___xpg_strerror_r = yes; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
16151 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
16152 if ${gl_cv_func_strerror_r_works+:} false
; then :
16153 $as_echo_n "(cached) " >&6
16155 if test "$cross_compiling" = yes; then :
16156 gl_cv_func_strerror_r_works
="$gl_cross_guess_normal"
16159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16162 #include <string.h>
16167 int __xpg_strerror_r(int, char *, size_t);
16173 char buf[256] = "^";
16175 char *str = strerror (-1);
16176 strcpy (copy, str);
16177 if (__xpg_strerror_r (-2, buf, 1) == 0)
16181 __xpg_strerror_r (-2, buf, 256);
16182 if (strcmp (str, copy))
16190 if ac_fn_c_try_run
"$LINENO"; then :
16191 gl_cv_func_strerror_r_works
=yes
16193 gl_cv_func_strerror_r_works
=no
16195 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16196 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16202 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
16208 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16209 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
16215 cat >>confdefs.h
<<_ACEOF
16216 #define HAVE_DECL_STRERROR_R $ac_have_decl
16234 if test $gl_cv_have_include_next = yes; then
16235 gl_cv_next_string_h
='<'string.h
'>'
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
16238 $as_echo_n "checking absolute name of <string.h>... " >&6; }
16239 if ${gl_cv_next_string_h+:} false
; then :
16240 $as_echo_n "(cached) " >&6
16245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16247 #include <string.h>
16250 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16251 *) gl_absname_cpp
="$ac_cpp" ;;
16256 gl_dirsep_regex
='[/\\]'
16259 gl_dirsep_regex
='\/'
16262 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16263 gl_header_literal_regex
=`echo 'string.h' \
16264 | sed -e "$gl_make_literal_regex_sed"`
16265 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16266 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16272 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16273 sed -n "$gl_absolute_header_sed"`
16275 gl_header
=$gl_cv_absolute_string_h
16276 gl_cv_next_string_h
='"'$gl_header'"'
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
16281 $as_echo "$gl_cv_next_string_h" >&6; }
16283 NEXT_STRING_H
=$gl_cv_next_string_h
16285 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16287 gl_next_as_first_directive
='<'string.h
'>'
16289 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16290 gl_next_as_first_directive
=$gl_cv_next_string_h
16292 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
16305 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
16309 $as_echo_n "checking whether strstr works... " >&6; }
16310 if ${gl_cv_func_strstr_works_always+:} false
; then :
16311 $as_echo_n "(cached) " >&6
16313 if test "$cross_compiling" = yes; then :
16314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16317 #ifdef __GNU_LIBRARY__
16318 #include <features.h>
16319 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16320 || defined __UCLIBC__
16323 #elif defined __CYGWIN__
16324 #include <cygwin/version.h>
16325 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16334 $EGREP "Lucky user" >/dev
/null
2>&1; then :
16335 gl_cv_func_strstr_works_always
="guessing yes"
16337 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
16343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16346 #include <string.h> /* for strstr */
16347 #ifdef __GNU_LIBRARY__
16348 #include <features.h>
16349 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
16353 #define P "_EF_BF_BD"
16354 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16355 #define NEEDLE P P P P P
16360 return !!strstr (HAYSTACK, NEEDLE);
16366 if ac_fn_c_try_run
"$LINENO"; then :
16367 gl_cv_func_strstr_works_always
=yes
16369 gl_cv_func_strstr_works_always
=no
16371 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16372 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
16378 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
16379 case "$gl_cv_func_strstr_works_always" in
16387 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
16388 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
16394 cat >>confdefs.h
<<_ACEOF
16395 #define HAVE_DECL_STRTOK_R $ac_have_decl
16408 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
16420 if test $gl_cv_have_include_next = yes; then
16421 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16424 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16425 if ${gl_cv_next_sys_types_h+:} false
; then :
16426 $as_echo_n "(cached) " >&6
16431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16433 #include <sys/types.h>
16436 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16437 *) gl_absname_cpp
="$ac_cpp" ;;
16442 gl_dirsep_regex
='[/\\]'
16445 gl_dirsep_regex
='\/'
16448 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16449 gl_header_literal_regex
=`echo 'sys/types.h' \
16450 | sed -e "$gl_make_literal_regex_sed"`
16451 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16452 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16458 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16459 sed -n "$gl_absolute_header_sed"`
16461 gl_header
=$gl_cv_absolute_sys_types_h
16462 gl_cv_next_sys_types_h
='"'$gl_header'"'
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16467 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16469 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
16471 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16472 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16473 gl_next_as_first_directive
='<'sys
/types.h
'>'
16475 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16476 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
16478 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
16491 WINDOWS_STAT_INODES
=0
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16502 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16503 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
16504 $as_echo_n "(cached) " >&6
16506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16513 static struct timespec x; x.tv_sec = x.tv_nsec;
16518 if ac_fn_c_try_compile
"$LINENO"; then :
16519 gl_cv_sys_struct_timespec_in_time_h
=yes
16521 gl_cv_sys_struct_timespec_in_time_h
=no
16523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16526 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16528 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16529 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
16530 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
16531 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
16532 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16533 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16536 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16537 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
16538 $as_echo_n "(cached) " >&6
16540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542 #include <sys/time.h>
16547 static struct timespec x; x.tv_sec = x.tv_nsec;
16552 if ac_fn_c_try_compile
"$LINENO"; then :
16553 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
16555 gl_cv_sys_struct_timespec_in_sys_time_h
=no
16557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16560 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16561 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16562 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16565 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16566 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
16567 $as_echo_n "(cached) " >&6
16569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16571 #include <pthread.h>
16576 static struct timespec x; x.tv_sec = x.tv_nsec;
16581 if ac_fn_c_try_compile
"$LINENO"; then :
16582 gl_cv_sys_struct_timespec_in_pthread_h
=yes
16584 gl_cv_sys_struct_timespec_in_pthread_h
=no
16586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
16589 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
16590 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
16591 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
16594 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
16595 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
16596 $as_echo_n "(cached) " >&6
16598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 #include <unistd.h>
16605 static struct timespec x; x.tv_sec = x.tv_nsec;
16610 if ac_fn_c_try_compile
"$LINENO"; then :
16611 gl_cv_sys_struct_timespec_in_unistd_h
=yes
16613 gl_cv_sys_struct_timespec_in_unistd_h
=no
16615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
16618 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
16619 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
16620 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
16641 if test $gl_cv_have_include_next = yes; then
16642 gl_cv_next_time_h
='<'time.h
'>'
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16645 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16646 if ${gl_cv_next_time_h+:} false
; then :
16647 $as_echo_n "(cached) " >&6
16652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16657 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16658 *) gl_absname_cpp
="$ac_cpp" ;;
16663 gl_dirsep_regex
='[/\\]'
16666 gl_dirsep_regex
='\/'
16669 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16670 gl_header_literal_regex
=`echo 'time.h' \
16671 | sed -e "$gl_make_literal_regex_sed"`
16672 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16673 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16679 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16680 sed -n "$gl_absolute_header_sed"`
16682 gl_header
=$gl_cv_absolute_time_h
16683 gl_cv_next_time_h
='"'$gl_header'"'
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16688 $as_echo "$gl_cv_next_time_h" >&6; }
16690 NEXT_TIME_H
=$gl_cv_next_time_h
16692 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16693 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16694 gl_next_as_first_directive
='<'time.h
'>'
16696 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16697 gl_next_as_first_directive
=$gl_cv_next_time_h
16699 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
16710 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
16711 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
16717 cat >>confdefs.h
<<_ACEOF
16718 #define HAVE_DECL_UNSETENV $ac_have_decl
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
16723 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
16724 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
16725 $as_echo_n "(cached) " >&6
16727 gl_cv_header_wchar_h_correct_inline
=yes
16728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16731 #define wcstod renamed_wcstod
16732 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16734 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16735 included before <wchar.h>. */
16736 #include <stddef.h>
16740 extern int zero (void);
16741 int main () { return zero(); }
16744 save_ac_compile
="$ac_compile"
16745 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
16746 if echo '#include "conftest.c"' >conftest1.c
&&
16747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16748 (eval $ac_compile) 2>&5
16750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16751 test $ac_status = 0; }; then
16752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h. */
16755 #define wcstod renamed_wcstod
16756 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16758 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16759 included before <wchar.h>. */
16760 #include <stddef.h>
16764 int zero (void) { return 0; }
16767 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
16768 if echo '#include "conftest.c"' >conftest2.c
&&
16769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16770 (eval $ac_compile) 2>&5
16772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16773 test $ac_status = 0; }; then
16774 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
16777 gl_cv_header_wchar_h_correct_inline
=no
16781 ac_compile
="$save_ac_compile"
16782 rm -f conftest12.c conftest12.
$ac_objext conftest
$ac_exeext
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
16786 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
16787 if test $gl_cv_header_wchar_h_correct_inline = no
; then
16788 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
16789 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
16790 C99 mode. You have four options:
16791 - Add the flag -fgnu89-inline to CC and reconfigure, or
16792 - Fix your include files, using parts of
16793 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
16794 - Use a gcc version older than 4.3, or
16795 - Don't use the flags -std=c99 or -std=gnu99.
16796 Configuration aborted." "$LINENO" 5
16803 if test $ac_cv_header_crtdefs_h = yes; then
16813 GNULIB_ISWXDIGIT
=0;
16817 GNULIB_TOWCTRANS
=0;
16821 REPLACE_ISWBLANK
=0;
16822 REPLACE_ISWDIGIT
=0;
16823 REPLACE_ISWXDIGIT
=0;
16829 GL_COND_LIBTOOL_TRUE
=
16830 GL_COND_LIBTOOL_FALSE
='#'
16832 GL_COND_LIBTOOL_TRUE
='#'
16833 GL_COND_LIBTOOL_FALSE
=
16836 gl_cond_libtool
=false
16839 gl_m4_base
='import/m4'
16850 gl_source_base
='import'
16853 if test $ac_cv_func_alloca_works = no
; then
16857 # Define an additional variable used in the Makefile substitution.
16858 if test $ac_cv_working_alloca_h = yes; then
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16860 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16861 if ${gl_cv_rpl_alloca+:} false
; then :
16862 $as_echo_n "(cached) " >&6
16865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16868 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16874 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
16875 gl_cv_rpl_alloca
=yes
16877 gl_cv_rpl_alloca
=no
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16884 $as_echo "$gl_cv_rpl_alloca" >&6; }
16885 if test $gl_cv_rpl_alloca = yes; then
16887 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16897 if test -n "$ALLOCA_H"; then
16898 GL_GENERATE_ALLOCA_H_TRUE
=
16899 GL_GENERATE_ALLOCA_H_FALSE
='#'
16901 GL_GENERATE_ALLOCA_H_TRUE
='#'
16902 GL_GENERATE_ALLOCA_H_FALSE
=
16906 if test $ac_cv_working_alloca_h = yes; then
16917 if test $ac_cv_header_arpa_inet_h = yes; then
16932 if test $gl_cv_have_include_next = yes; then
16933 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
16936 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
16937 if ${gl_cv_next_arpa_inet_h+:} false
; then :
16938 $as_echo_n "(cached) " >&6
16941 if test $ac_cv_header_arpa_inet_h = yes; then
16946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16948 #include <arpa/inet.h>
16951 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16952 *) gl_absname_cpp
="$ac_cpp" ;;
16957 gl_dirsep_regex
='[/\\]'
16960 gl_dirsep_regex
='\/'
16963 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16964 gl_header_literal_regex
=`echo 'arpa/inet.h' \
16965 | sed -e "$gl_make_literal_regex_sed"`
16966 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16967 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16973 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16974 sed -n "$gl_absolute_header_sed"`
16976 gl_header
=$gl_cv_absolute_arpa_inet_h
16977 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
16979 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
16985 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
16987 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
16989 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16991 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
16993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16994 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
16996 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
17006 if test $ac_cv_header_sys_socket_h = yes; then
17009 if test $ac_cv_header_ws2tcpip_h = yes; then
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
17025 $as_echo_n "checking for __builtin_expect... " >&6; }
17026 if ${gl_cv___builtin_expect+:} false
; then :
17027 $as_echo_n "(cached) " >&6
17029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17033 main (int argc, char **argv)
17035 argc = __builtin_expect (argc, 100);
17036 return argv[argc != 100][0];
17039 if ac_fn_c_try_link
"$LINENO"; then :
17040 gl_cv___builtin_expect
=yes
17042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17045 #include <builtins.h>
17047 main (int argc, char **argv)
17049 argc = __builtin_expect (argc, 100);
17050 return argv[argc != 100][0];
17053 if ac_fn_c_try_link
"$LINENO"; then :
17054 gl_cv___builtin_expect
="in <builtins.h>"
17056 gl_cv___builtin_expect
=no
17058 rm -f core conftest.err conftest.
$ac_objext \
17059 conftest
$ac_exeext conftest.
$ac_ext
17061 rm -f core conftest.err conftest.
$ac_objext \
17062 conftest
$ac_exeext conftest.
$ac_ext
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
17065 $as_echo "$gl_cv___builtin_expect" >&6; }
17066 if test "$gl_cv___builtin_expect" = yes; then
17067 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
17069 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
17070 $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
17078 if test $ac_cv_func_canonicalize_file_name = no
; then
17079 HAVE_CANONICALIZE_FILE_NAME
=0
17080 if test $ac_cv_func_realpath = no
; then
17083 case "$gl_cv_func_realpath_works" in
17085 *) REPLACE_REALPATH
=1 ;;
17089 case "$gl_cv_func_realpath_works" in
17093 REPLACE_CANONICALIZE_FILE_NAME
=1
17099 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
17108 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
17113 cat >>confdefs.h
<<_ACEOF
17114 #define GNULIB_CANONICALIZE_LGPL 1
17123 GNULIB_CANONICALIZE_FILE_NAME
=1
17129 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
17144 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
17159 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
17166 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
17167 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
17168 $as_echo_n "(cached) " >&6
17170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17173 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17175 # include <unistd.h>
17177 #include <limits.h>
17178 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17179 # include <sys/param.h>
17181 #if !defined PATH_MAX && defined MAXPATHLEN
17182 # define PATH_MAX MAXPATHLEN
17186 # define PATH_MAX 1024
17188 #if defined _WIN32 && ! defined __CYGWIN__
17190 # define PATH_MAX 260
17194 have_arbitrary_file_name_length_limit
17197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17198 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
17199 gl_cv_have_arbitrary_file_name_length_limit
=yes
17201 gl_cv_have_arbitrary_file_name_length_limit
=no
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
17207 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
17209 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
17218 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
17224 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
17231 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17240 if test $ac_cv_header_sys_socket_h != yes; then
17241 for ac_header
in winsock2.h
17243 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17244 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
17245 cat >>confdefs.h
<<_ACEOF
17246 #define HAVE_WINSOCK2_H 1
17254 if test "$ac_cv_header_winsock2_h" = yes; then
17256 UNISTD_H_HAVE_WINSOCK2_H
=1
17257 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
17263 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
17268 if test $REPLACE_CLOSE = 0; then
17272 if test $ac_cv_func_fchdir = no
; then
17276 if test $HAVE_FCHDIR = 0; then
17282 if test $REPLACE_CLOSE = 1; then
17291 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
17305 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
17312 for ac_func
in closedir
17314 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
17315 if test "x$ac_cv_func_closedir" = xyes
; then :
17316 cat >>confdefs.h
<<_ACEOF
17317 #define HAVE_CLOSEDIR 1
17323 if test $ac_cv_func_closedir = no
; then
17330 if test $ac_cv_func_fchdir = no
; then
17334 if test $HAVE_FCHDIR = 0; then
17335 if test $HAVE_CLOSEDIR = 1; then
17340 case $host_os,$HAVE_CLOSEDIR in
17342 REPLACE_CLOSEDIR
=1;;
17345 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
17354 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
17368 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
17373 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
17374 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
17375 $as_echo_n "(cached) " >&6
17377 if test "$cross_compiling" = yes; then :
17379 # Guess yes on glibc systems with Linux kernel.
17380 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
17381 # Guess yes on musl systems with Linux kernel.
17382 linux
*-musl*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
17383 # Guess no on native Windows.
17384 mingw
*) gl_cv_struct_dirent_d_ino
="guessing no" ;;
17385 # If we don't know, obey --enable-cross-guesses.
17386 *) gl_cv_struct_dirent_d_ino
="$gl_cross_guess_normal" ;;
17390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17392 #include <sys/types.h>
17393 #include <sys/stat.h>
17394 #include <dirent.h>
17399 DIR *dp = opendir (".");
17406 { closedir (dp); return 2; }
17407 if (lstat (e->d_name, &st) != 0)
17408 { closedir (dp); return 3; }
17409 if (e->d_ino != st.st_ino)
17410 { closedir (dp); return 4; }
17418 if ac_fn_c_try_run
"$LINENO"; then :
17419 gl_cv_struct_dirent_d_ino
=yes
17421 gl_cv_struct_dirent_d_ino
=no
17423 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17424 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
17429 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
17430 case "$gl_cv_struct_dirent_d_ino" in
17433 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
17440 $as_echo_n "checking for d_type member in directory struct... " >&6; }
17441 if ${gl_cv_struct_dirent_d_type+:} false
; then :
17442 $as_echo_n "(cached) " >&6
17444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17447 #include <sys/types.h>
17448 #include <dirent.h>
17453 struct dirent dp; dp.d_type = 0;
17458 if ac_fn_c_try_link
"$LINENO"; then :
17459 gl_cv_struct_dirent_d_type
=yes
17461 gl_cv_struct_dirent_d_type
=no
17463 rm -f core conftest.err conftest.
$ac_objext \
17464 conftest
$ac_exeext conftest.
$ac_ext
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
17469 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
17470 if test $gl_cv_struct_dirent_d_type = yes; then
17472 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
17489 if test $gl_cv_have_include_next = yes; then
17490 gl_cv_next_dirent_h
='<'dirent.h
'>'
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
17493 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
17494 if ${gl_cv_next_dirent_h+:} false
; then :
17495 $as_echo_n "(cached) " >&6
17498 if test $ac_cv_header_dirent_h = yes; then
17503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17505 #include <dirent.h>
17508 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17509 *) gl_absname_cpp
="$ac_cpp" ;;
17514 gl_dirsep_regex
='[/\\]'
17517 gl_dirsep_regex
='\/'
17520 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17521 gl_header_literal_regex
=`echo 'dirent.h' \
17522 | sed -e "$gl_make_literal_regex_sed"`
17523 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17524 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17530 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17531 sed -n "$gl_absolute_header_sed"`
17533 gl_header
=$gl_cv_absolute_dirent_h
17534 gl_cv_next_dirent_h
='"'$gl_header'"'
17536 gl_cv_next_dirent_h
='<'dirent.h
'>'
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
17542 $as_echo "$gl_cv_next_dirent_h" >&6; }
17544 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
17546 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17547 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17548 gl_next_as_first_directive
='<'dirent.h
'>'
17550 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17551 gl_next_as_first_directive
=$gl_cv_next_dirent_h
17553 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
17558 if test $ac_cv_header_dirent_h = yes; then
17574 for ac_func
in dirfd
17576 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
17577 if test "x$ac_cv_func_dirfd" = xyes
; then :
17578 cat >>confdefs.h
<<_ACEOF
17579 #define HAVE_DIRFD 1
17585 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
17586 #include <dirent.h>
17588 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
17594 cat >>confdefs.h
<<_ACEOF
17595 #define HAVE_DECL_DIRFD $ac_have_decl
17598 if test $ac_cv_have_decl_dirfd = no
; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
17603 $as_echo_n "checking whether dirfd is a macro... " >&6; }
17604 if ${gl_cv_func_dirfd_macro+:} false
; then :
17605 $as_echo_n "(cached) " >&6
17607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h. */
17610 #include <sys/types.h>
17611 #include <dirent.h>
17613 dirent_header_defines_dirfd
17616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17617 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
17618 gl_cv_func_dirfd_macro
=yes
17620 gl_cv_func_dirfd_macro
=no
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
17626 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
17628 # Use the replacement if we have no function or macro with that name,
17629 # or if OS/2 kLIBC whose dirfd() does not work.
17630 # Replace only if the system declares dirfd already.
17631 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
17632 no
,no
,*,yes |
*,*,os2
*,yes)
17635 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
17639 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
17640 ||
test $REPLACE_DIRFD = 1; then
17649 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
17653 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
17654 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
17655 $as_echo_n "(cached) " >&6
17658 dirfd_save_CFLAGS
=$CFLAGS
17659 for ac_expr
in d_fd dd_fd
; do
17661 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
17662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17663 /* end confdefs.h. */
17665 #include <sys/types.h>
17666 #include <dirent.h>
17670 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
17675 if ac_fn_c_try_compile
"$LINENO"; then :
17679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17680 CFLAGS
=$dirfd_save_CFLAGS
17681 test "$dir_fd_found" = yes && break
17683 test "$dir_fd_found" = yes || ac_expr
=no_such_member
17685 gl_cv_sys_dir_fd_member_name
=$ac_expr
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
17690 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
17691 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
17693 cat >>confdefs.h
<<_ACEOF
17694 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
17712 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17723 $as_echo_n "checking whether // is distinct from /... " >&6; }
17724 if ${gl_cv_double_slash_root+:} false
; then :
17725 $as_echo_n "(cached) " >&6
17727 if test x
"$cross_compiling" = xyes
; then
17728 # When cross-compiling, there is no way to tell whether // is special
17729 # short of a list of hosts. However, the only known hosts to date
17730 # that have a distinct // are Apollo DomainOS (too old to port to),
17731 # Cygwin, and z/OS. If anyone knows of another system for which // has
17732 # special semantics and is distinct from /, please report it to
17733 # <bug-gnulib@gnu.org>.
17735 *-cygwin | i370-ibm-openedition
)
17736 gl_cv_double_slash_root
=yes ;;
17738 # Be optimistic and assume that / and // are the same when we
17740 gl_cv_double_slash_root
='unknown, assuming no' ;;
17743 set x
`ls -di / // 2>/dev/null`
17744 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
17745 gl_cv_double_slash_root
=no
17747 gl_cv_double_slash_root
=yes
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17752 $as_echo "$gl_cv_double_slash_root" >&6; }
17753 if test "$gl_cv_double_slash_root" = yes; then
17755 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17763 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17771 if test $ac_cv_func_fchdir = no
; then
17775 if test $HAVE_FCHDIR = 0; then
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
17780 $as_echo_n "checking whether dup works... " >&6; }
17781 if ${gl_cv_func_dup_works+:} false
; then :
17782 $as_echo_n "(cached) " >&6
17784 if test "$cross_compiling" = yes; then :
17786 # Guess no on native Windows.
17787 mingw
*) gl_cv_func_dup_works
="guessing no" ;;
17788 *) gl_cv_func_dup_works
="guessing yes" ;;
17792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h. */
17794 #include <unistd.h>
17800 /* On OS/2 kLIBC, dup does not work on a directory fd. */
17801 int fd = open (".", O_RDONLY);
17802 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
17809 if ac_fn_c_try_run
"$LINENO"; then :
17810 gl_cv_func_dup_works
=yes
17812 gl_cv_func_dup_works
=no
17814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17815 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
17821 $as_echo "$gl_cv_func_dup_works" >&6; }
17822 case "$gl_cv_func_dup_works" in
17829 if test $REPLACE_DUP = 1; then
17838 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
17853 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
17862 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
17865 if test $HAVE_DUP2 = 1; then
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
17867 $as_echo_n "checking whether dup2 works... " >&6; }
17868 if ${gl_cv_func_dup2_works+:} false
; then :
17869 $as_echo_n "(cached) " >&6
17871 if test "$cross_compiling" = yes; then :
17873 mingw
*) # on this platform, dup2 always returns 0 for success
17874 gl_cv_func_dup2_works
="guessing no" ;;
17875 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
17876 gl_cv_func_dup2_works
="guessing no" ;;
17878 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
17880 gl_cv_func_dup2_works
="guessing no" ;;
17881 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
17882 gl_cv_func_dup2_works
="guessing no" ;;
17883 *-android*) # implemented using dup3(), which fails if oldfd == newfd
17884 gl_cv_func_dup2_works
="guessing no" ;;
17885 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
17886 gl_cv_func_dup2_works
="guessing no" ;;
17887 *) gl_cv_func_dup2_works
="guessing yes" ;;
17890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17895 #include <limits.h>
17896 #include <sys/resource.h>
17897 #include <unistd.h>
17898 #ifndef RLIM_SAVED_CUR
17899 # define RLIM_SAVED_CUR RLIM_INFINITY
17901 #ifndef RLIM_SAVED_MAX
17902 # define RLIM_SAVED_MAX RLIM_INFINITY
17909 int bad_fd = INT_MAX;
17910 struct rlimit rlim;
17911 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
17912 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
17913 && rlim.rlim_cur != RLIM_INFINITY
17914 && rlim.rlim_cur != RLIM_SAVED_MAX
17915 && rlim.rlim_cur != RLIM_SAVED_CUR)
17916 bad_fd = rlim.rlim_cur;
17918 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
17921 if (dup2 (1, 1) != 1)
17924 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
17928 if (dup2 (0, 0) != -1)
17930 /* Many gnulib modules require POSIX conformance of EBADF. */
17931 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
17933 /* Flush out some cygwin core dumps. */
17934 if (dup2 (2, -1) != -1 || errno != EBADF)
17938 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
17940 int fd = open (".", O_RDONLY);
17943 else if (dup2 (fd, fd + 1) == -1)
17954 if ac_fn_c_try_run
"$LINENO"; then :
17955 gl_cv_func_dup2_works
=yes
17957 gl_cv_func_dup2_works
=no
17959 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17960 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
17966 $as_echo "$gl_cv_func_dup2_works" >&6; }
17967 case "$gl_cv_func_dup2_works" in
17971 for ac_func
in setdtablesize
17973 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
17974 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
17975 cat >>confdefs.h
<<_ACEOF
17976 #define HAVE_SETDTABLESIZE 1
17989 if test $ac_cv_func_fchdir = no
; then
17993 if test $HAVE_FCHDIR = 0; then
17994 if test $HAVE_DUP2 = 1; then
18000 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
18009 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
18024 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
18040 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18047 $as_echo_n "checking for error_at_line... " >&6; }
18048 if ${ac_cv_lib_error_at_line+:} false
; then :
18049 $as_echo_n "(cached) " >&6
18051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18052 /* end confdefs.h. */
18057 error_at_line (0, 0, "", 0, "an error occurred");
18062 if ac_fn_c_try_link
"$LINENO"; then :
18063 ac_cv_lib_error_at_line
=yes
18065 ac_cv_lib_error_at_line
=no
18067 rm -f core conftest.err conftest.
$ac_objext \
18068 conftest
$ac_exeext conftest.
$ac_ext
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18071 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18073 if test $ac_cv_lib_error_at_line = no
; then
18082 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
18096 if test $ac_cv_have_decl_fchdir = no
; then
18101 if test $HAVE_FCHDIR = 0; then
18110 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
18114 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
18117 $as_echo_n "checking whether open can visit directories... " >&6; }
18118 if ${gl_cv_func_open_directory_works+:} false
; then :
18119 $as_echo_n "(cached) " >&6
18121 if test "$cross_compiling" = yes; then :
18123 # Guess yes on Linux systems.
18124 linux-
* | linux
) gl_cv_func_open_directory_works
="guessing yes" ;;
18125 # Guess yes on glibc systems.
18126 *-gnu* | gnu
*) gl_cv_func_open_directory_works
="guessing yes" ;;
18127 # Guess no on native Windows.
18128 mingw
*) gl_cv_func_open_directory_works
="guessing no" ;;
18129 # If we don't know, obey --enable-cross-guesses.
18130 *) gl_cv_func_open_directory_works
="$gl_cross_guess_normal" ;;
18134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18141 return open(".", O_RDONLY) < 0;
18146 if ac_fn_c_try_run
"$LINENO"; then :
18147 gl_cv_func_open_directory_works
=yes
18149 gl_cv_func_open_directory_works
=no
18151 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18152 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
18157 $as_echo "$gl_cv_func_open_directory_works" >&6; }
18158 case "$gl_cv_func_open_directory_works" in
18162 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
18179 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
18188 if test $ac_cv_func_fcntl = no
; then
18192 if test $ac_cv_func_fcntl = no
; then
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
18200 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
18201 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
18202 $as_echo_n "(cached) " >&6
18204 if test "$cross_compiling" = yes; then :
18206 aix
* | cygwin
* | haiku
*)
18207 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
18208 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
18211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18215 #include <limits.h>
18216 #include <sys/resource.h>
18217 #include <unistd.h>
18218 #ifndef RLIM_SAVED_CUR
18219 # define RLIM_SAVED_CUR RLIM_INFINITY
18221 #ifndef RLIM_SAVED_MAX
18222 # define RLIM_SAVED_MAX RLIM_INFINITY
18229 int bad_fd = INT_MAX;
18230 struct rlimit rlim;
18231 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18232 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18233 && rlim.rlim_cur != RLIM_INFINITY
18234 && rlim.rlim_cur != RLIM_SAVED_MAX
18235 && rlim.rlim_cur != RLIM_SAVED_CUR)
18236 bad_fd = rlim.rlim_cur;
18237 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
18238 if (errno != EINVAL) result |= 2;
18239 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
18240 if (errno != EINVAL) result |= 8;
18241 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
18244 fd = open (".", O_RDONLY);
18247 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
18257 if ac_fn_c_try_run
"$LINENO"; then :
18258 gl_cv_func_fcntl_f_dupfd_works
=yes
18260 gl_cv_func_fcntl_f_dupfd_works
=no
18262 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18263 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
18268 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
18269 case $gl_cv_func_fcntl_f_dupfd_works in
18274 if test $ac_cv_func_fcntl = no
; then
18281 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
18286 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
18287 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
18288 $as_echo_n "(cached) " >&6
18290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h. */
18294 #ifndef F_DUPFD_CLOEXEC
18306 if ac_fn_c_try_compile
"$LINENO"; then :
18307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18311 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
18312 it to support the semantics on older kernels that failed with EINVAL. */
18324 if ac_fn_c_try_compile
"$LINENO"; then :
18325 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
18327 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
18329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18331 gl_cv_func_fcntl_f_dupfd_cloexec
=no
18333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
18336 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
18337 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
18341 if test $ac_cv_func_fcntl = no
; then
18353 if test $ac_cv_func_fchdir = no
; then
18357 if test $HAVE_FCHDIR = 0; then
18361 if test $ac_cv_func_fcntl = no
; then
18370 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
18379 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
18393 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
18408 if test $gl_cv_have_include_next = yes; then
18409 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
18412 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
18413 if ${gl_cv_next_fcntl_h+:} false
; then :
18414 $as_echo_n "(cached) " >&6
18419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18420 /* end confdefs.h. */
18424 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18425 *) gl_absname_cpp
="$ac_cpp" ;;
18430 gl_dirsep_regex
='[/\\]'
18433 gl_dirsep_regex
='\/'
18436 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18437 gl_header_literal_regex
=`echo 'fcntl.h' \
18438 | sed -e "$gl_make_literal_regex_sed"`
18439 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18440 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18446 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18447 sed -n "$gl_absolute_header_sed"`
18449 gl_header
=$gl_cv_absolute_fcntl_h
18450 gl_cv_next_fcntl_h
='"'$gl_header'"'
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
18455 $as_echo "$gl_cv_next_fcntl_h" >&6; }
18457 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
18459 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18461 gl_next_as_first_directive
='<'fcntl.h
'>'
18463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18464 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
18466 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
18482 cat >>confdefs.h
<<_ACEOF
18483 #define GNULIB_FD_SAFER_FLAG 1
18492 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
18493 #include <dirent.h>
18496 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
18502 cat >>confdefs.h
<<_ACEOF
18503 #define HAVE_DECL_FDOPENDIR $ac_have_decl
18505 if test $ac_have_decl = 1; then :
18508 HAVE_DECL_FDOPENDIR
=0
18512 if test $ac_cv_func_fdopendir = no
; then
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
18516 $as_echo_n "checking whether fdopendir works... " >&6; }
18517 if ${gl_cv_func_fdopendir_works+:} false
; then :
18518 $as_echo_n "(cached) " >&6
18520 if test "$cross_compiling" = yes; then :
18522 # Guess yes on glibc systems.
18523 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
18524 # Guess yes on musl systems.
18525 *-musl*) gl_cv_func_fdopendir_works
="guessing yes" ;;
18526 # If we don't know, obey --enable-cross-guesses.
18527 *) gl_cv_func_fdopendir_works
="$gl_cross_guess_normal" ;;
18531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18534 #include <dirent.h>
18536 #include <unistd.h>
18537 #if !HAVE_DECL_FDOPENDIR
18539 # ifdef __cplusplus
18542 DIR *fdopendir (int);
18549 int fd = open ("conftest.c", O_RDONLY);
18550 if (fd < 0) result |= 1;
18551 if (fdopendir (fd)) result |= 2;
18552 if (close (fd)) result |= 4;
18558 if ac_fn_c_try_run
"$LINENO"; then :
18559 gl_cv_func_fdopendir_works
=yes
18561 gl_cv_func_fdopendir_works
=no
18563 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18564 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
18569 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
18570 case "$gl_cv_func_fdopendir_works" in
18573 REPLACE_FDOPENDIR
=1
18578 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
18587 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
18601 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
18607 cat >>confdefs.h
<<_ACEOF
18608 #define GNULIB_FDOPENDIR 1
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
18617 $as_echo_n "checking for flexible array member... " >&6; }
18618 if ${ac_cv_c_flexmember+:} false
; then :
18619 $as_echo_n "(cached) " >&6
18621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18622 /* end confdefs.h. */
18623 #include <stdlib.h>
18625 #include <stddef.h>
18626 struct m { struct m *next, **list; char name[]; };
18627 struct s { struct s *p; struct m *m; int n; double d[]; };
18631 int m = getchar ();
18632 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
18633 nbytes += sizeof (struct s) - 1;
18634 nbytes -= nbytes % sizeof (struct s);
18635 struct s *p = malloc (nbytes);
18639 return p->d != (double *) NULL;
18644 if ac_fn_c_try_compile
"$LINENO"; then :
18645 ac_cv_c_flexmember
=yes
18647 ac_cv_c_flexmember
=no
18649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
18652 $as_echo "$ac_cv_c_flexmember" >&6; }
18653 if test $ac_cv_c_flexmember = yes; then
18655 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
18658 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
18666 REPLACE_FLOAT_LDBL
=0
18668 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
18671 freebsd
* | dragonfly
*)
18672 case "$host_cpu" in
18677 # On x86_64 systems, the C compiler may still be generating
18679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18681 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
18688 if ac_fn_c_try_compile
"$LINENO"; then :
18693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18698 case "$host_cpu" in
18706 aix
* | freebsd
* | dragonfly
* | linux
*)
18707 if test -n "$FLOAT_H"; then
18708 REPLACE_FLOAT_LDBL
=1
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
18715 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
18716 if ${gl_cv_func_itold_works+:} false
; then :
18717 $as_echo_n "(cached) " >&6
18720 if test "$cross_compiling" = yes; then :
18723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18724 /* end confdefs.h. */
18725 #if defined __LP64__ || defined __arch64__
18732 if ac_fn_c_try_compile
"$LINENO"; then :
18733 gl_cv_func_itold_works
="guessing no"
18735 gl_cv_func_itold_works
="guessing yes"
18737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18739 # Guess yes on native Windows.
18740 mingw
*) gl_cv_func_itold_works
="guessing yes" ;;
18741 *) gl_cv_func_itold_works
="guessing yes" ;;
18745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h. */
18749 volatile long double ld;
18758 if ac_fn_c_try_run
"$LINENO"; then :
18759 gl_cv_func_itold_works
=yes
18761 gl_cv_func_itold_works
=no
18763 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18764 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
18770 $as_echo "$gl_cv_func_itold_works" >&6; }
18771 case "$gl_cv_func_itold_works" in
18778 if test -n "$FLOAT_H"; then
18787 if test $gl_cv_have_include_next = yes; then
18788 gl_cv_next_float_h
='<'float.h
'>'
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
18791 $as_echo_n "checking absolute name of <float.h>... " >&6; }
18792 if ${gl_cv_next_float_h+:} false
; then :
18793 $as_echo_n "(cached) " >&6
18798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18799 /* end confdefs.h. */
18803 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18804 *) gl_absname_cpp
="$ac_cpp" ;;
18809 gl_dirsep_regex
='[/\\]'
18812 gl_dirsep_regex
='\/'
18815 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18816 gl_header_literal_regex
=`echo 'float.h' \
18817 | sed -e "$gl_make_literal_regex_sed"`
18818 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18819 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18825 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18826 sed -n "$gl_absolute_header_sed"`
18828 gl_header
=$gl_cv_absolute_float_h
18829 gl_cv_next_float_h
='"'$gl_header'"'
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
18834 $as_echo "$gl_cv_next_float_h" >&6; }
18836 NEXT_FLOAT_H
=$gl_cv_next_float_h
18838 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18839 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18840 gl_next_as_first_directive
='<'float.h
'>'
18842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18843 gl_next_as_first_directive
=$gl_cv_next_float_h
18845 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
18852 if test -n "$FLOAT_H"; then
18853 GL_GENERATE_FLOAT_H_TRUE
=
18854 GL_GENERATE_FLOAT_H_FALSE
='#'
18856 GL_GENERATE_FLOAT_H_TRUE
='#'
18857 GL_GENERATE_FLOAT_H_FALSE
=
18862 if test $REPLACE_FLOAT_LDBL = 1; then
18871 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
18874 if test $REPLACE_ITOLD = 1; then
18883 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
18890 gl_fnmatch_required_lowercase
=`
18891 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
18894 if test $ac_cv_func_fnmatch = no
; then
18897 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
18899 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
18900 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
18901 $as_echo_n "(cached) " >&6
18903 if test $gl_fnmatch_required = GNU
; then
18904 gl_fnmatch_gnu_start
=
18905 gl_fnmatch_gnu_end
=
18907 gl_fnmatch_gnu_start
='#if 0'
18908 gl_fnmatch_gnu_end
='#endif'
18910 if test "$cross_compiling" = yes; then :
18912 # Guess yes on musl systems.
18913 *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
18914 # Guess no otherwise, even on glibc systems.
18915 *) eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
18919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18920 /* end confdefs.h. */
18921 #include <fnmatch.h>
18923 y (char const *pattern, char const *string, int flags)
18925 return fnmatch (pattern, string, flags) == 0;
18928 n (char const *pattern, char const *string, int flags)
18930 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
18936 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
18937 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
18938 static char const A_1[] = { 'A' - 1, 0 };
18939 static char const A01[] = { 'A' + 1, 0 };
18940 static char const a_1[] = { 'a' - 1, 0 };
18941 static char const a01[] = { 'a' + 1, 0 };
18942 static char const bs_1[] = { '\\\\' - 1, 0 };
18943 static char const bs01[] = { '\\\\' + 1, 0 };
18945 if (!n ("a*", "", 0))
18947 if (!y ("a*", "abc", 0))
18949 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
18951 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
18953 if (!y ("a\\\\bc", "abc", 0))
18955 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
18957 if (!y ("*x", ".x", 0))
18959 if (!n ("*x", ".x", FNM_PERIOD))
18961 if (!y (Apat, "\\\\", 0))
18963 if (!y (Apat, "A", 0))
18965 if (!y (apat, "\\\\", 0))
18967 if (!y (apat, "a", 0))
18969 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
18971 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
18973 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
18975 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
18977 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
18979 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
18981 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
18983 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
18985 $gl_fnmatch_gnu_start
18986 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
18988 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
18990 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
18992 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
18994 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
18996 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
18998 $gl_fnmatch_gnu_end
19005 if ac_fn_c_try_run
"$LINENO"; then :
19006 eval "$gl_fnmatch_cache_var=yes"
19008 eval "$gl_fnmatch_cache_var=no"
19010 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19011 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19016 eval ac_res
=\$
$gl_fnmatch_cache_var
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19018 $as_echo "$ac_res" >&6; }
19019 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
19020 case "$gl_fnmatch_result" in
19022 *) REPLACE_FNMATCH
=1 ;;
19025 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19028 FNMATCH_H
='fnmatch.h'
19029 if test -n "$FNMATCH_H"; then
19030 GL_GENERATE_FNMATCH_H_TRUE
=
19031 GL_GENERATE_FNMATCH_H_FALSE
='#'
19033 GL_GENERATE_FNMATCH_H_TRUE
='#'
19034 GL_GENERATE_FNMATCH_H_FALSE
=
19040 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19049 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19053 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
19055 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
19061 cat >>confdefs.h
<<_ACEOF
19062 #define HAVE_DECL_ISBLANK $ac_have_decl
19080 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
19089 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
19098 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
19102 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
19104 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
19110 cat >>confdefs.h
<<_ACEOF
19111 #define HAVE_DECL_ISBLANK $ac_have_decl
19120 cat >>confdefs.h
<<_ACEOF
19121 #define GNULIB_FNMATCH_GNU 1
19127 if test $gl_func_frexp != yes; then
19136 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
19150 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
19155 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19164 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
19178 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
19196 if test $ac_cv_func_fchdir = no
; then
19200 if test $HAVE_FCHDIR = 0; then
19201 case "$gl_cv_func_open_directory_works" in
19210 if test $REPLACE_FSTAT = 1; then
19219 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
19231 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
19251 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
19262 if test $ac_cv_func_fstatat = no
; then
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
19266 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
19267 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
19268 $as_echo_n "(cached) " >&6
19270 if test "$cross_compiling" = yes; then :
19272 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
19273 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
19277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19281 #include <sys/stat.h>
19286 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
19290 if ac_fn_c_try_run
"$LINENO"; then :
19291 gl_cv_func_fstatat_zero_flag
=yes
19293 gl_cv_func_fstatat_zero_flag
=no
19295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19296 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
19302 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
19304 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
19306 *) REPLACE_FSTATAT
=1 ;;
19311 REPLACE_FSTATAT
=1 ;;
19314 case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
19317 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
19323 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
19332 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
19346 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
19358 gl_cv_func_getcwd_path_max
=yes
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
19367 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
19368 if ${gl_cv_func_getcwd_path_max+:} false
; then :
19369 $as_echo_n "(cached) " >&6
19371 # Arrange for deletion of the temporary directory this test creates.
19372 ac_clean_files
="$ac_clean_files confdir3"
19373 if test "$cross_compiling" = yes; then :
19374 # Cross-compilation guesses:
19376 aix
*) # On AIX, it has the AIX bug.
19377 gl_cv_func_getcwd_path_max
='guessing no, it has the AIX bug' ;;
19378 gnu
*) # On Hurd, it is 'yes'.
19379 gl_cv_func_getcwd_path_max
='guessing yes' ;;
19380 linux
* | kfreebsd
*)
19381 # On older Linux+glibc it's 'no, but it is partly working',
19382 # on newer Linux+glibc it's 'yes'.
19383 # On Linux+musl libc, it's 'no, but it is partly working'.
19384 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
19385 gl_cv_func_getcwd_path_max
='guessing no, but it is partly working' ;;
19386 *) # If we don't know, obey --enable-cross-guesses.
19387 gl_cv_func_getcwd_path_max
="$gl_cross_guess_normal" ;;
19391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19392 /* end confdefs.h. */
19395 #include <stdlib.h>
19397 # include <unistd.h>
19399 # include <direct.h>
19401 #include <string.h>
19402 #include <limits.h>
19403 #include <sys/stat.h>
19404 #include <sys/types.h>
19408 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19410 # include <unistd.h>
19412 #include <limits.h>
19413 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19414 # include <sys/param.h>
19416 #if !defined PATH_MAX && defined MAXPATHLEN
19417 # define PATH_MAX MAXPATHLEN
19421 # define PATH_MAX 1024
19423 #if defined _WIN32 && ! defined __CYGWIN__
19425 # define PATH_MAX 260
19430 # define AT_FDCWD 0
19432 #ifdef ENAMETOOLONG
19433 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
19435 # define is_ENAMETOOLONG(x) 0
19438 /* Use the getcwd function, not any macro. */
19441 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19445 # define S_IRWXU 0700
19448 /* The length of this name must be 8. */
19449 #define DIR_NAME "confdir3"
19450 #define DIR_NAME_LEN 8
19451 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
19453 /* The length of "../". */
19454 #define DOTDOTSLASH_LEN 3
19456 /* Leftover bytes in the buffer, to work around library or OS bugs. */
19457 #define BUF_SLOP 20
19463 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
19464 at least not on a local file system. And if we were to start worrying
19465 about remote file systems, we'd have to enable the wrapper function
19466 all of the time, just to be safe. That's not worth the cost. */
19468 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
19469 - DIR_NAME_SIZE - BUF_SLOP) \
19471 /* FIXME: Assuming there's a system for which this is true,
19472 this should be done in a compile test. */
19475 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
19476 + DIR_NAME_SIZE + BUF_SLOP];
19477 char *cwd = getcwd (buf, PATH_MAX);
19478 size_t initial_cwd_len;
19481 size_t n_chdirs = 0;
19486 cwd_len = initial_cwd_len = strlen (cwd);
19490 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
19493 cwd_len += DIR_NAME_SIZE;
19494 /* If mkdir or chdir fails, it could be that this system cannot create
19495 any file with an absolute name longer than PATH_MAX, such as cygwin.
19496 If so, leave fail as 0, because the current working directory can't
19497 be too long for getcwd if it can't even be created. On Linux with
19498 the 9p file system, mkdir fails with error EINVAL when cwd_len gets
19499 too long; ignore this failure because the getcwd() system call
19500 produces good results whereas the gnulib substitute calls getdents64
19501 which fails with error EPROTO.
19502 For other errors, be pessimistic and consider that as a failure,
19504 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
19506 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19508 if (! (errno == EINVAL))
19514 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
19518 c = getcwd (buf, PATH_MAX);
19519 if (!c && errno == ENOENT)
19529 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19535 /* Our replacement needs to be able to stat() long ../../paths,
19536 so generate a path larger than PATH_MAX to check,
19537 avoiding the replacement if we can't stat(). */
19538 c = getcwd (buf, cwd_len + 1);
19539 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
19546 if (dotdot_max <= cwd_len - initial_cwd_len)
19548 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
19550 c = getcwd (buf, cwd_len + 1);
19553 if (! (errno == ERANGE || errno == ENOENT
19554 || is_ENAMETOOLONG (errno)))
19559 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
19567 if (c && strlen (c) != cwd_len)
19575 /* Leaving behind such a deep directory is not polite.
19576 So clean up here, right away, even though the driving
19577 shell script would also clean up. */
19581 /* Try rmdir first, in case the chdir failed. */
19583 for (i = 0; i <= n_chdirs; i++)
19585 if (chdir ("..") < 0)
19587 if (rmdir (DIR_NAME) != 0)
19597 if ac_fn_c_try_run
"$LINENO"; then :
19598 gl_cv_func_getcwd_path_max
=yes
19601 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
19602 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
19603 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
19604 *) gl_cv_func_getcwd_path_max
=no
;;
19607 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19608 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
19614 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
19616 case "$gl_cv_func_getcwd_null" in
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
19625 $as_echo_n "checking for getpagesize... " >&6; }
19626 if ${gl_cv_func_getpagesize+:} false
; then :
19627 $as_echo_n "(cached) " >&6
19629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h. */
19631 #include <unistd.h>
19635 return getpagesize();
19641 if ac_fn_c_try_link
"$LINENO"; then :
19642 gl_cv_func_getpagesize
=yes
19644 gl_cv_func_getpagesize
=no
19646 rm -f core conftest.err conftest.
$ac_objext \
19647 conftest
$ac_exeext conftest.
$ac_ext
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
19651 $as_echo "$gl_cv_func_getpagesize" >&6; }
19653 if test $gl_cv_func_getpagesize = yes; then
19655 cat >>confdefs.h
<<_ACEOF
19656 #define HAVE_GETPAGESIZE 1
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
19662 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
19663 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
19664 $as_echo_n "(cached) " >&6
19666 # Remove any remnants of a previous test.
19667 rm -rf confdir-14B---
19668 # Arrange for deletion of the temporary directory this test creates.
19669 ac_clean_files
="$ac_clean_files confdir-14B---"
19670 if test "$cross_compiling" = yes; then :
19672 # Guess no on musl systems.
19673 *-musl*) gl_cv_func_getcwd_abort_bug
="guessing no" ;;
19674 # Guess yes otherwise, even on glibc systems.
19675 *) gl_cv_func_getcwd_abort_bug
="guessing yes"
19679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h. */
19683 #include <stdlib.h>
19685 # include <unistd.h>
19686 #else /* on Windows with MSVC */
19687 # include <direct.h>
19689 #include <string.h>
19690 #include <sys/stat.h>
19693 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19695 # include <unistd.h>
19697 #include <limits.h>
19698 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19699 # include <sys/param.h>
19701 #if !defined PATH_MAX && defined MAXPATHLEN
19702 # define PATH_MAX MAXPATHLEN
19706 # define PATH_MAX 1024
19708 #if defined _WIN32 && ! defined __CYGWIN__
19710 # define PATH_MAX 260
19714 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19718 # define S_IRWXU 0700
19721 /* FIXME: skip the run-test altogether on systems without getpagesize. */
19722 #if ! HAVE_GETPAGESIZE
19723 # define getpagesize() 0
19726 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
19727 the 16kB pagesize on ia64 linux. Those conditions make the code below
19728 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
19729 #define TARGET_LEN (5 * 1024)
19735 size_t initial_cwd_len;
19738 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
19739 this relatively expensive and invasive test if that's not true. */
19741 int bug_possible = PATH_MAX < getpagesize ();
19743 int bug_possible = 0;
19745 if (! bug_possible)
19748 cwd = getcwd (NULL, 0);
19752 initial_cwd_len = strlen (cwd);
19757 static char const dir_name[] = "confdir-14B---";
19758 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
19759 / sizeof dir_name);
19761 for (d = 0; d < desired_depth; d++)
19763 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
19765 if (! (errno == ERANGE || errno == ENAMETOOLONG
19766 || errno == ENOENT))
19767 fail = 3; /* Unable to construct deep hierarchy. */
19772 /* If libc has the bug in question, this invocation of getcwd
19773 results in a failed assertion. */
19774 cwd = getcwd (NULL, 0);
19776 fail = 4; /* getcwd didn't assert, but it failed for a long name
19777 where the answer could have been learned. */
19780 /* Call rmdir first, in case the above chdir failed. */
19784 if (chdir ("..") < 0)
19797 if ac_fn_c_try_run
"$LINENO"; then :
19798 gl_cv_func_getcwd_abort_bug
=no
19801 if test $ret -ge 128 ||
test $ret = 4; then
19802 gl_cv_func_getcwd_abort_bug
=yes
19804 gl_cv_func_getcwd_abort_bug
=no
19808 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19809 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
19815 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
19816 case "$gl_cv_func_getcwd_abort_bug" in
19829 case "$gl_cv_func_getcwd_path_max" in
19830 *"no" |
*"no, it has the AIX bug") ;;
19833 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
19837 case "$gl_cv_func_getcwd_path_max" in
19838 *"no, but it is partly working")
19840 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
19843 *"yes, but with shorter paths")
19845 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
19850 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
19851 ||
test $gl_cv_func_getcwd_posix_signature != yes \
19852 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
19853 ||
test $gl_abort_bug = yes; then
19857 if test $REPLACE_GETCWD = 1; then
19866 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
19876 cat >>confdefs.h
<<_ACEOF
19877 #define GNULIB_GETCWD 1
19892 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
19901 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
19908 if test $REPLACE_GETCWD = 1; then
19917 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
19931 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
19940 if test $ac_cv_func_getdtablesize = yes &&
19941 test $ac_cv_have_decl_getdtablesize = yes; then
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
19943 $as_echo_n "checking whether getdtablesize works... " >&6; }
19944 if ${gl_cv_func_getdtablesize_works+:} false
; then :
19945 $as_echo_n "(cached) " >&6
19948 vms
*) gl_cv_func_getdtablesize_works
="no (limitation)" ;;
19950 if test "$cross_compiling" = yes; then :
19952 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
19953 gl_cv_func_getdtablesize_works
="guessing no" ;;
19954 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
19958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19959 /* end confdefs.h. */
19961 #include <unistd.h>
19965 int size = getdtablesize();
19966 if (dup2 (0, getdtablesize()) != -1)
19968 if (size != getdtablesize())
19975 if ac_fn_c_try_run
"$LINENO"; then :
19976 gl_cv_func_getdtablesize_works
=yes
19978 gl_cv_func_getdtablesize_works
=no
19980 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19981 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
19989 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
19990 case "$gl_cv_func_getdtablesize_works" in
19991 *yes |
"no (limitation)") ;;
19992 *) REPLACE_GETDTABLESIZE
=1 ;;
19995 HAVE_GETDTABLESIZE
=0
19998 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
20007 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
20016 GNULIB_GETDTABLESIZE
=1
20022 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
20032 if test $ac_cv_have_decl_getlogin_r = no
; then
20033 HAVE_DECL_GETLOGIN_R
=0
20037 if test $ac_cv_func_getlogin_r = no
; then
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
20043 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
20044 if ${gl_cv_func_getlogin_r_works+:} false
; then :
20045 $as_echo_n "(cached) " >&6
20049 # Guess no on Mac OS X, OSF/1.
20050 darwin
* | osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
20051 # Guess yes otherwise.
20052 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
20054 if test "$cross_compiling" = yes; then :
20057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20058 /* end confdefs.h. */
20060 #include <stddef.h>
20061 #include <string.h>
20062 #include <unistd.h>
20063 #if !HAVE_DECL_GETLOGIN_R
20065 # ifdef __cplusplus
20068 int getlogin_r (char *, size_t);
20076 if (getlogin_r (buf, 0) == 0)
20078 if (getlogin_r (buf, 1) == 0)
20080 if (getlogin_r (buf, 100) == 0)
20082 size_t n = strlen (buf);
20083 if (getlogin_r (buf, n) == 0)
20089 if ac_fn_c_try_run
"$LINENO"; then :
20090 gl_cv_func_getlogin_r_works
=yes
20092 gl_cv_func_getlogin_r_works
=no
20094 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20095 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
20101 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
20102 case "$gl_cv_func_getlogin_r_works" in
20104 *) REPLACE_GETLOGIN_R
=1 ;;
20108 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
20117 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
20128 GNULIB_GETLOGIN_R
=1
20134 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
20143 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20145 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
20151 cat >>confdefs.h
<<_ACEOF
20152 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20154 if test $ac_have_decl = 1; then :
20158 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20160 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
20166 cat >>confdefs.h
<<_ACEOF
20167 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20169 if test $ac_have_decl = 1; then :
20173 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
20175 if test "x$ac_cv_have_decl___argv" = xyes
; then :
20181 cat >>confdefs.h
<<_ACEOF
20182 #define HAVE_DECL___ARGV $ac_have_decl
20184 if test $ac_have_decl = 1; then :
20189 # Incur the cost of this test only if none of the above worked.
20190 if test $ac_found = 0; then
20191 # On OpenBSD 5.1, using the global __progname variable appears to be
20192 # the only way to implement getprogname.
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
20194 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
20195 if ${gl_cv_var___progname+:} false
; then :
20196 $as_echo_n "(cached) " >&6
20199 gl_cv_var___progname
=
20200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h. */
20202 extern char *__progname;
20206 return *__progname;
20212 if ac_fn_c_try_link
"$LINENO"; then :
20213 gl_cv_var___progname
=yes
20216 rm -f core conftest.err conftest.
$ac_objext \
20217 conftest
$ac_exeext conftest.
$ac_ext
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
20222 $as_echo "$gl_cv_var___progname" >&6; }
20223 if test "$gl_cv_var___progname" = yes; then
20225 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
20239 gl_gettimeofday_timezone
=void
20240 if test $ac_cv_func_gettimeofday != yes; then
20241 HAVE_GETTIMEOFDAY
=0
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20248 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20249 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
20250 $as_echo_n "(cached) " >&6
20252 if test "$cross_compiling" = yes; then :
20253 # When cross-compiling:
20255 # Guess all is fine on glibc systems.
20256 *-gnu* | gnu
*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20257 # Guess all is fine on musl systems.
20258 *-musl*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20259 # Guess no on native Windows.
20260 mingw
*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20261 # If we don't know, obey --enable-cross-guesses.
20262 *) gl_cv_func_gettimeofday_clobber
="$gl_cross_guess_inverted" ;;
20266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20267 /* end confdefs.h. */
20268 #include <string.h>
20269 #include <sys/time.h>
20271 #include <stdlib.h>
20279 struct tm saved_lt;
20281 lt = localtime (&t);
20283 gettimeofday (&tv, NULL);
20284 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
20290 if ac_fn_c_try_run
"$LINENO"; then :
20291 gl_cv_func_gettimeofday_clobber
=no
20293 gl_cv_func_gettimeofday_clobber
=yes
20295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20296 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
20301 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
20303 case "$gl_cv_func_gettimeofday_clobber" in
20305 REPLACE_GETTIMEOFDAY
=1
20307 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
20312 NEED_LOCALTIME_BUFFER
=1
20314 REPLACE_LOCALTIME
=1
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
20320 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
20321 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
20322 $as_echo_n "(cached) " >&6
20324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20325 /* end confdefs.h. */
20326 #include <sys/time.h>
20328 int gettimeofday (struct timeval *restrict, void *restrict);
20333 /* glibc uses struct timezone * rather than the POSIX void *
20334 if _GNU_SOURCE is defined. However, since the only portable
20335 use of gettimeofday uses NULL as the second parameter, and
20336 since the glibc definition is actually more typesafe, it is
20337 not worth wrapping this to get a compliant signature. */
20338 int (*f) (struct timeval *restrict, void *restrict)
20341 return !(x | c.tv_sec | c.tv_usec);
20347 if ac_fn_c_try_compile
"$LINENO"; then :
20348 gl_cv_func_gettimeofday_posix_signature
=yes
20350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h. */
20352 #include <sys/time.h>
20353 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
20363 if ac_fn_c_try_compile
"$LINENO"; then :
20364 gl_cv_func_gettimeofday_posix_signature
=almost
20366 gl_cv_func_gettimeofday_posix_signature
=no
20368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
20373 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
20374 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
20375 gl_gettimeofday_timezone
='struct timezone'
20376 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
20377 REPLACE_GETTIMEOFDAY
=1
20379 if test $REPLACE_STRUCT_TIMEVAL = 1; then
20380 REPLACE_GETTIMEOFDAY
=1
20383 mingw
*) REPLACE_GETTIMEOFDAY
=1 ;;
20387 cat >>confdefs.h
<<_ACEOF
20388 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
20392 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
20401 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
20410 GNULIB_GETTIMEOFDAY
=1
20416 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
20424 if test $ac_cv_func_glob = no
; then
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1 or 2" >&5
20429 $as_echo_n "checking for GNU glob interface version 1 or 2... " >&6; }
20430 if ${gl_cv_gnu_glob_interface_version_1_2+:} false
; then :
20431 $as_echo_n "(cached) " >&6
20433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20434 /* end confdefs.h. */
20435 #include <gnu-versions.h>
20436 char a[_GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2 ? 1 : -1];
20438 if ac_fn_c_try_compile
"$LINENO"; then :
20439 gl_cv_gnu_glob_interface_version_1_2
=yes
20441 gl_cv_gnu_glob_interface_version_1_2
=no
20443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1_2" >&5
20446 $as_echo "$gl_cv_gnu_glob_interface_version_1_2" >&6; }
20447 if test "$gl_cv_gnu_glob_interface_version_1_2" = "no"; then
20451 if test $REPLACE_GLOB = 0; then
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
20453 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
20454 if ${gl_cv_glob_lists_symlinks+:} false
; then :
20455 $as_echo_n "(cached) " >&6
20457 if test $cross_compiling != yes; then
20458 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
20459 gl_cv_glob_lists_symlinks
=maybe
20461 # If we can't make a symlink, then we cannot test this issue. Be
20462 # pessimistic about this.
20463 gl_cv_glob_lists_symlinks
=no
20465 if test $gl_cv_glob_lists_symlinks = maybe
; then
20466 if test "$cross_compiling" = yes; then :
20470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20471 /* end confdefs.h. */
20472 #include <stddef.h>
20478 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
20485 if ac_fn_c_try_run
"$LINENO"; then :
20486 gl_cv_glob_lists_symlinks
=yes
20488 gl_cv_glob_lists_symlinks
=no
20490 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20491 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20495 rm -f conf$$
-globtest
20497 gl_cv_glob_lists_symlinks
="$gl_cross_guess_normal"
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
20502 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
20503 case "$gl_cv_glob_lists_symlinks" in
20505 *) REPLACE_GLOB
=1 ;;
20511 if test $ac_cv_func_glob_pattern_p = no
; then
20512 HAVE_GLOB_PATTERN_P
=0
20514 if test $REPLACE_GLOB = 1; then
20515 REPLACE_GLOB_PATTERN_P
=1
20519 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
20523 if test -n "$GLOB_H"; then
20524 GL_GENERATE_GLOB_H_TRUE
=
20525 GL_GENERATE_GLOB_H_FALSE
='#'
20527 GL_GENERATE_GLOB_H_TRUE
='#'
20528 GL_GENERATE_GLOB_H_FALSE
=
20534 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
20543 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
20553 gl_LIBOBJS
="$gl_LIBOBJS globfree.$ac_objext"
20561 if test $HAVE_GLOB_PATTERN_P = 0 ||
test $REPLACE_GLOB_PATTERN_P = 1; then
20570 gl_LIBOBJS
="$gl_LIBOBJS glob_pattern_p.$ac_objext"
20584 $as_echo "#define GNULIB_TEST_GLOB 1" >>confdefs.h
20590 LIB_HARD_LOCALE
="$LIB_SETLOCALE_NULL"
20605 if test $ac_cv_header_sys_socket_h != yes; then
20606 for ac_header
in winsock2.h
20608 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20609 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
20610 cat >>confdefs.h
<<_ACEOF
20611 #define HAVE_WINSOCK2_H 1
20619 if test "$ac_cv_header_winsock2_h" = yes; then
20621 UNISTD_H_HAVE_WINSOCK2_H
=1
20622 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
20628 if test $HAVE_WINSOCK2_H = 1; then
20629 REPLACE_INET_NTOP
=1
20630 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
20632 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
20638 cat >>confdefs.h
<<_ACEOF
20639 #define HAVE_DECL_INET_NTOP $ac_have_decl
20642 if test $ac_cv_have_decl_inet_ntop = yes; then
20643 INET_NTOP_LIB
="-lws2_32"
20645 HAVE_DECL_INET_NTOP
=0
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
20650 $as_echo_n "checking for library containing inet_ntop... " >&6; }
20651 if ${ac_cv_search_inet_ntop+:} false
; then :
20652 $as_echo_n "(cached) " >&6
20654 ac_func_search_save_LIBS
=$LIBS
20655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20656 /* end confdefs.h. */
20658 /* Override any GCC internal prototype to avoid an error.
20659 Use char because int might match the return type of a GCC
20660 builtin and then its argument prototype would still apply. */
20668 return inet_ntop ();
20673 for ac_lib
in '' nsl resolv network
; do
20674 if test -z "$ac_lib"; then
20675 ac_res
="none required"
20678 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20680 if ac_fn_c_try_link
"$LINENO"; then :
20681 ac_cv_search_inet_ntop
=$ac_res
20683 rm -f core conftest.err conftest.
$ac_objext \
20685 if ${ac_cv_search_inet_ntop+:} false
; then :
20689 if ${ac_cv_search_inet_ntop+:} false
; then :
20692 ac_cv_search_inet_ntop
=no
20694 rm conftest.
$ac_ext
20695 LIBS
=$ac_func_search_save_LIBS
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
20698 $as_echo "$ac_cv_search_inet_ntop" >&6; }
20699 ac_res
=$ac_cv_search_inet_ntop
20700 if test "$ac_res" != no
; then :
20701 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20704 for ac_func
in inet_ntop
20706 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20707 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
20708 cat >>confdefs.h
<<_ACEOF
20709 #define HAVE_INET_NTOP 1
20715 if test $ac_cv_func_inet_ntop = no
; then
20723 if test "$ac_cv_search_inet_ntop" != "no" \
20724 && test "$ac_cv_search_inet_ntop" != "none required"; then
20725 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
20729 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
20731 # include <netdb.h>
20735 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
20741 cat >>confdefs.h
<<_ACEOF
20742 #define HAVE_DECL_INET_NTOP $ac_have_decl
20745 if test $ac_cv_have_decl_inet_ntop = no
; then
20746 HAVE_DECL_INET_NTOP
=0
20751 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
20760 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
20782 if test -n "$STDINT_H"; then
20783 PRIPTR_PREFIX
='"l"'
20785 for glpfx
in '' l ll I64
; do
20787 '') gltype1
='int';;
20788 l
) gltype1
='long int';;
20789 ll
) gltype1
='long long int';;
20790 I64
) gltype1
='__int64';;
20792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20793 /* end confdefs.h. */
20794 #include <stdint.h>
20795 extern intptr_t foo;
20796 extern $gltype1 foo;
20805 if ac_fn_c_try_compile
"$LINENO"; then :
20806 PRIPTR_PREFIX
='"'$glpfx'"'
20808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20809 test -n "$PRIPTR_PREFIX" && break
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
20816 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
20817 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
20818 $as_echo_n "(cached) " >&6
20820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h. */
20822 /* Work also in C++ mode. */
20823 #define __STDC_LIMIT_MACROS 1
20825 /* Work if build is not clean. */
20826 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20828 #include <limits.h>
20830 #include <stdint.h>
20833 #if defined INT32_MAX && defined INTMAX_MAX
20834 #define CONDITION (INT32_MAX < INTMAX_MAX)
20836 #define CONDITION (sizeof (int) < sizeof (long long int))
20838 int test[CONDITION ? 1 : -1];
20847 if ac_fn_c_try_compile
"$LINENO"; then :
20848 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
20850 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
20852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
20855 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
20856 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
20857 INT32_MAX_LT_INTMAX_MAX
=1;
20859 INT32_MAX_LT_INTMAX_MAX
=0;
20863 if test $APPLE_UNIVERSAL_BUILD = 0; then
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
20866 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
20867 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
20868 $as_echo_n "(cached) " >&6
20870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20872 /* Work also in C++ mode. */
20873 #define __STDC_LIMIT_MACROS 1
20875 /* Work if build is not clean. */
20876 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20878 #include <limits.h>
20880 #include <stdint.h>
20883 #if defined INT64_MAX
20884 #define CONDITION (INT64_MAX == LONG_MAX)
20886 #define CONDITION (sizeof (long long int) == sizeof (long int))
20888 int test[CONDITION ? 1 : -1];
20897 if ac_fn_c_try_compile
"$LINENO"; then :
20898 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
20900 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
20902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
20905 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
20906 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
20907 INT64_MAX_EQ_LONG_MAX
=1;
20909 INT64_MAX_EQ_LONG_MAX
=0;
20914 INT64_MAX_EQ_LONG_MAX
=-1
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
20918 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
20919 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
20920 $as_echo_n "(cached) " >&6
20922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20923 /* end confdefs.h. */
20924 /* Work also in C++ mode. */
20925 #define __STDC_LIMIT_MACROS 1
20927 /* Work if build is not clean. */
20928 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20930 #include <limits.h>
20932 #include <stdint.h>
20935 #if defined UINT32_MAX && defined UINTMAX_MAX
20936 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
20938 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
20940 int test[CONDITION ? 1 : -1];
20949 if ac_fn_c_try_compile
"$LINENO"; then :
20950 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
20952 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
20954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
20957 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
20958 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
20959 UINT32_MAX_LT_UINTMAX_MAX
=1;
20961 UINT32_MAX_LT_UINTMAX_MAX
=0;
20965 if test $APPLE_UNIVERSAL_BUILD = 0; then
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
20968 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
20969 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
20970 $as_echo_n "(cached) " >&6
20972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20973 /* end confdefs.h. */
20974 /* Work also in C++ mode. */
20975 #define __STDC_LIMIT_MACROS 1
20977 /* Work if build is not clean. */
20978 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20980 #include <limits.h>
20982 #include <stdint.h>
20985 #if defined UINT64_MAX
20986 #define CONDITION (UINT64_MAX == ULONG_MAX)
20988 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
20990 int test[CONDITION ? 1 : -1];
20999 if ac_fn_c_try_compile
"$LINENO"; then :
21000 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
21002 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
21004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
21007 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
21008 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
21009 UINT64_MAX_EQ_ULONG_MAX
=1;
21011 UINT64_MAX_EQ_ULONG_MAX
=0;
21016 UINT64_MAX_EQ_ULONG_MAX
=-1
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
21024 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
21025 if ${gl_cv_func_isnand_no_libm+:} false
; then :
21026 $as_echo_n "(cached) " >&6
21029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21030 /* end confdefs.h. */
21034 # define isnand(x) __builtin_isnan ((double)(x))
21037 # define isnand(x) isnan ((double)(x))
21048 if ac_fn_c_try_link
"$LINENO"; then :
21049 gl_cv_func_isnand_no_libm
=yes
21051 gl_cv_func_isnand_no_libm
=no
21053 rm -f core conftest.err conftest.
$ac_objext \
21054 conftest
$ac_exeext conftest.
$ac_ext
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
21058 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
21060 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
21061 if test $gl_cv_func_isnand_no_libm = yes; then
21063 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
21067 if test $gl_func_isnand_no_libm != yes; then
21076 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
21085 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
21086 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
21087 $as_echo_n "(cached) " >&6
21090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h. */
21095 # define isnanl(x) __builtin_isnanl ((long double)(x))
21096 #elif defined isnan
21098 # define isnanl(x) isnan ((long double)(x))
21109 if ac_fn_c_try_link
"$LINENO"; then :
21110 gl_cv_func_isnanl_no_libm
=yes
21112 gl_cv_func_isnanl_no_libm
=no
21114 rm -f core conftest.err conftest.
$ac_objext \
21115 conftest
$ac_exeext conftest.
$ac_ext
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
21119 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
21121 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
21122 if test $gl_func_isnanl_no_libm = yes; then
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
21128 $as_echo_n "checking whether isnanl works... " >&6; }
21129 if ${gl_cv_func_isnanl_works+:} false
; then :
21130 $as_echo_n "(cached) " >&6
21133 if test "$cross_compiling" = yes; then :
21135 mingw
*) # Guess yes on mingw, no on MSVC.
21136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21137 /* end confdefs.h. */
21144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21145 $EGREP "Known" >/dev
/null
2>&1; then :
21146 gl_cv_func_isnanl_works
="guessing yes"
21148 gl_cv_func_isnanl_works
="guessing no"
21153 *) gl_cv_func_isnanl_works
="guessing yes" ;;
21157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21158 /* end confdefs.h. */
21161 #include <limits.h>
21165 # define isnanl(x) __builtin_isnanl ((long double)(x))
21166 #elif defined isnan
21168 # define isnanl(x) isnan ((long double)(x))
21171 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21172 typedef union { unsigned int word[NWORDS]; long double value; }
21173 memory_long_double;
21174 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
21175 runtime type conversion. */
21177 static long double NaNl ()
21180 return zero / zero;
21183 # define NaNl() (0.0L / 0.0L)
21189 if (!isnanl (NaNl ()))
21193 memory_long_double m;
21196 /* The isnanl function should be immune against changes in the sign bit and
21197 in the mantissa bits. The xor operation twiddles a bit that can only be
21198 a sign bit or a mantissa bit (since the exponent never extends to
21201 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
21202 for (i = 0; i < NWORDS; i++)
21204 if (!isnanl (m.value))
21208 #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
21209 /* Representation of an 80-bit 'long double' as an initializer for a sequence
21210 of 'unsigned int' words. */
21211 # ifdef WORDS_BIGENDIAN
21212 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21213 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
21214 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
21215 (unsigned int) (mantlo) << 16 \
21218 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21219 { mantlo, manthi, exponent }
21222 static memory_long_double x =
21223 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
21224 if (!isnanl (x.value))
21228 /* Signalling NaN. */
21229 static memory_long_double x =
21230 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
21231 if (!isnanl (x.value))
21234 /* isnanl should return something even for noncanonical values. */
21235 { /* Pseudo-NaN. */
21236 static memory_long_double x =
21237 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
21238 if (isnanl (x.value) && !isnanl (x.value))
21241 { /* Pseudo-Infinity. */
21242 static memory_long_double x =
21243 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
21244 if (isnanl (x.value) && !isnanl (x.value))
21247 { /* Pseudo-Zero. */
21248 static memory_long_double x =
21249 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
21250 if (isnanl (x.value) && !isnanl (x.value))
21253 { /* Unnormalized number. */
21254 static memory_long_double x =
21255 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
21256 if (isnanl (x.value) && !isnanl (x.value))
21259 { /* Pseudo-Denormal. */
21260 static memory_long_double x =
21261 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
21262 if (isnanl (x.value) && !isnanl (x.value))
21270 if ac_fn_c_try_run
"$LINENO"; then :
21271 gl_cv_func_isnanl_works
=yes
21273 gl_cv_func_isnanl_works
=no
21275 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21276 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
21282 $as_echo "$gl_cv_func_isnanl_works" >&6; }
21284 case "$gl_cv_func_isnanl_works" in
21286 *) gl_func_isnanl_no_libm
=no
;;
21289 if test $gl_func_isnanl_no_libm = yes; then
21291 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
21295 if test $gl_func_isnanl_no_libm != yes; then
21304 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
21310 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
21311 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
21312 $as_echo_n "(cached) " >&6
21315 if test "$cross_compiling" = yes; then :
21317 gl_cv_cc_long_double_expbit0
="unknown"
21319 mingw
*) # On native Windows (little-endian), we know the result
21320 # in two cases: mingw, MSVC.
21321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21322 /* end confdefs.h. */
21329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21330 $EGREP "Known" >/dev
/null
2>&1; then :
21331 gl_cv_cc_long_double_expbit0
="word 2 bit 0"
21335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21336 /* end confdefs.h. */
21343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21344 $EGREP "Known" >/dev
/null
2>&1; then :
21345 gl_cv_cc_long_double_expbit0
="word 1 bit 20"
21353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21354 /* end confdefs.h. */
21357 #include <stddef.h>
21359 #include <string.h>
21361 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21362 typedef union { long double value; unsigned int word[NWORDS]; }
21363 memory_long_double;
21364 static unsigned int ored_words[NWORDS];
21365 static unsigned int anded_words[NWORDS];
21366 static void add_to_ored_words (long double x)
21368 memory_long_double m;
21370 /* Clear it first, in case
21371 sizeof (long double) < sizeof (memory_long_double). */
21372 memset (&m, 0, sizeof (memory_long_double));
21374 for (i = 0; i < NWORDS; i++)
21376 ored_words[i] |= m.word[i];
21377 anded_words[i] &= m.word[i];
21383 FILE *fp = fopen ("conftest.out", "w");
21386 for (j = 0; j < NWORDS; j++)
21387 anded_words[j] = ~ (unsigned int) 0;
21388 add_to_ored_words (0.25L);
21389 add_to_ored_words (0.5L);
21390 add_to_ored_words (1.0L);
21391 add_to_ored_words (2.0L);
21392 add_to_ored_words (4.0L);
21393 /* Remove bits that are common (e.g. if representation of the first mantissa
21394 bit is explicit). */
21395 for (j = 0; j < NWORDS; j++)
21396 ored_words[j] &= ~anded_words[j];
21397 /* Now find the nonzero word. */
21398 for (j = 0; j < NWORDS; j++)
21399 if (ored_words[j] != 0)
21404 for (i = j + 1; i < NWORDS; i++)
21405 if (ored_words[i] != 0)
21407 fprintf (fp, "unknown");
21408 return (fclose (fp) != 0);
21411 if ((ored_words[j] >> i) & 1)
21413 fprintf (fp, "word %d bit %d", (int) j, (int) i);
21414 return (fclose (fp) != 0);
21417 fprintf (fp, "unknown");
21418 return (fclose (fp) != 0);
21422 if ac_fn_c_try_run
"$LINENO"; then :
21423 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
21425 gl_cv_cc_long_double_expbit0
="unknown"
21427 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21428 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
21435 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
21436 case "$gl_cv_cc_long_double_expbit0" in
21438 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21439 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
21441 cat >>confdefs.h
<<_ACEOF
21442 #define LDBL_EXPBIT0_WORD $word
21446 cat >>confdefs.h
<<_ACEOF
21447 #define LDBL_EXPBIT0_BIT $bit
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
21459 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
21460 if ${gl_cv_c___inline+:} false
; then :
21461 $as_echo_n "(cached) " >&6
21463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21464 /* end confdefs.h. */
21466 static __inline foo_t foo (void) { return 0; }
21475 if ac_fn_c_try_compile
"$LINENO"; then :
21476 gl_cv_c___inline
=yes
21478 gl_cv_c___inline
=no
21480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
21483 $as_echo "$gl_cv_c___inline" >&6; }
21484 if test $gl_cv_c___inline = yes; then
21486 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
21494 LOCALCHARSET_TESTS_ENVIRONMENT
=
21509 $as_echo "#define _LCONV_C99 1" >>confdefs.h
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
21515 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
21516 if ${gl_cv_header_locale_h_posix2001+:} false
; then :
21517 $as_echo_n "(cached) " >&6
21519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21520 /* end confdefs.h. */
21521 #include <locale.h>
21522 int x = LC_MESSAGES;
21523 int y = sizeof (((struct lconv *) 0)->decimal_point);
21532 if ac_fn_c_try_compile
"$LINENO"; then :
21533 gl_cv_header_locale_h_posix2001
=yes
21535 gl_cv_header_locale_h_posix2001
=no
21537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
21540 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
21543 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
21544 if ${gl_cv_sys_struct_lconv_ok+:} false
; then :
21545 $as_echo_n "(cached) " >&6
21547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21548 /* end confdefs.h. */
21549 #include <locale.h>
21551 int x = sizeof (l.decimal_point);
21552 int y = sizeof (l.int_p_cs_precedes);
21561 if ac_fn_c_try_compile
"$LINENO"; then :
21562 gl_cv_sys_struct_lconv_ok
=yes
21564 gl_cv_sys_struct_lconv_ok
=no
21566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
21570 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
21571 if test $gl_cv_sys_struct_lconv_ok = no
; then
21574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21575 /* end confdefs.h. */
21582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21583 $EGREP "Special" >/dev
/null
2>&1; then :
21586 REPLACE_STRUCT_LCONV
=1
21591 *) REPLACE_STRUCT_LCONV
=1 ;;
21603 if test $gl_cv_have_include_next = yes; then
21604 gl_cv_next_locale_h
='<'locale.h
'>'
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
21607 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
21608 if ${gl_cv_next_locale_h+:} false
; then :
21609 $as_echo_n "(cached) " >&6
21614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21615 /* end confdefs.h. */
21616 #include <locale.h>
21619 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21620 *) gl_absname_cpp
="$ac_cpp" ;;
21625 gl_dirsep_regex
='[/\\]'
21628 gl_dirsep_regex
='\/'
21631 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21632 gl_header_literal_regex
=`echo 'locale.h' \
21633 | sed -e "$gl_make_literal_regex_sed"`
21634 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21635 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21641 gl_cv_absolute_locale_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21642 sed -n "$gl_absolute_header_sed"`
21644 gl_header
=$gl_cv_absolute_locale_h
21645 gl_cv_next_locale_h
='"'$gl_header'"'
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
21650 $as_echo "$gl_cv_next_locale_h" >&6; }
21652 NEXT_LOCALE_H
=$gl_cv_next_locale_h
21654 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21655 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21656 gl_next_as_first_directive
='<'locale.h
'>'
21658 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21659 gl_next_as_first_directive
=$gl_cv_next_locale_h
21661 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
=$gl_next_as_first_directive
21680 gl_LIBOBJS
="$gl_LIBOBJS localtime-buffer.$ac_objext"
21684 if test "$gl_threads_api" = posix
; then
21685 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
21686 # pthread_rwlock_* functions.
21688 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21690 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
21693 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21697 if $has_rwlock; then
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
21701 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
21702 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false
; then :
21703 $as_echo_n "(cached) " >&6
21706 LIBS
="$LIBS $LIBMULTITHREAD"
21707 if test "$cross_compiling" = yes; then :
21709 # Guess no on glibc systems.
21710 *-gnu* | gnu
*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
21711 # Guess no on musl systems.
21712 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
21713 # Guess no on bionic systems.
21714 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
21715 # Guess yes on native Windows with the mingw-w64 winpthreads library.
21716 # Guess no on native Windows with the gnulib windows-rwlock module.
21717 mingw
*) if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
21718 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing yes"
21720 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no"
21723 # If we don't know, obey --enable-cross-guesses.
21724 *) gl_cv_pthread_rwlock_rdlock_prefer_writer
="$gl_cross_guess_normal" ;;
21728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21729 /* end confdefs.h. */
21732 #include <pthread.h>
21733 #include <stdlib.h>
21734 #include <unistd.h>
21736 #define SUCCEED() exit (0)
21737 #define FAILURE() exit (1)
21738 #define UNEXPECTED(n) (exit (10 + (n)))
21740 /* The main thread creates the waiting writer and the requesting reader threads
21741 in the default way; this guarantees that they have the same priority.
21742 We can reuse the main thread as first reader thread. */
21744 static pthread_rwlock_t lock;
21745 static pthread_t reader1;
21746 static pthread_t writer;
21747 static pthread_t reader2;
21748 static pthread_t timer;
21749 /* Used to pass control from writer to reader2 and from reader2 to timer,
21750 as in a relay race.
21751 Passing control from one running thread to another running thread
21752 is most likely faster than to create the second thread. */
21753 static pthread_mutex_t baton;
21756 timer_func (void *ignored)
21758 /* Step 13 (can be before or after step 12):
21759 The timer thread takes the baton, then waits a moment to make sure
21760 it can tell whether the second reader thread is blocked at step 12. */
21761 if (pthread_mutex_lock (&baton))
21764 /* By the time we get here, it's clear that the second reader thread is
21765 blocked at step 12. This is the desired behaviour. */
21770 reader2_func (void *ignored)
21774 /* Step 8 (can be before or after step 7):
21775 The second reader thread takes the baton, then waits a moment to make sure
21776 the writer thread has reached step 7. */
21777 if (pthread_mutex_lock (&baton))
21780 /* Step 9: The second reader thread requests the lock. */
21781 err = pthread_rwlock_tryrdlock (&lock);
21784 else if (err != EBUSY)
21786 /* Step 10: Launch a timer, to test whether the next call blocks. */
21787 if (pthread_create (&timer, NULL, timer_func, NULL))
21789 /* Step 11: Release the baton. */
21790 if (pthread_mutex_unlock (&baton))
21792 /* Step 12: The second reader thread requests the lock. */
21793 err = pthread_rwlock_rdlock (&lock);
21801 writer_func (void *ignored)
21803 /* Step 4: Take the baton, so that the second reader thread does not go ahead
21805 if (pthread_mutex_lock (&baton))
21807 /* Step 5: Create the second reader thread. */
21808 if (pthread_create (&reader2, NULL, reader2_func, NULL))
21810 /* Step 6: Release the baton. */
21811 if (pthread_mutex_unlock (&baton))
21813 /* Step 7: The writer thread requests the lock. */
21814 if (pthread_rwlock_wrlock (&lock))
21822 reader1 = pthread_self ();
21824 /* Step 1: The main thread initializes the lock and the baton. */
21825 if (pthread_rwlock_init (&lock, NULL))
21827 if (pthread_mutex_init (&baton, NULL))
21829 /* Step 2: The main thread acquires the lock as a reader. */
21830 if (pthread_rwlock_rdlock (&lock))
21832 /* Step 3: Create the writer thread. */
21833 if (pthread_create (&writer, NULL, writer_func, NULL))
21835 /* Job done. Go to sleep. */
21843 if ac_fn_c_try_run
"$LINENO"; then :
21844 gl_cv_pthread_rwlock_rdlock_prefer_writer
=yes
21846 gl_cv_pthread_rwlock_rdlock_prefer_writer
=no
21848 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21849 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
21856 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
21857 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
21860 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
21866 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21868 /* end confdefs.h. */
21870 #include <pthread.h>
21875 #if __FreeBSD__ == 4
21876 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21877 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
21878 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
21879 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
21881 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21889 if ac_fn_c_try_compile
"$LINENO"; then :
21891 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21900 cat >>confdefs.h
<<_ACEOF
21901 #define GNULIB_LOCK 1
21909 if test $ac_cv_func_lstat = yes; then
21911 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
21920 if test $REPLACE_LSTAT = 1; then
21929 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21944 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
21951 if test $gl_cv_func_malloc_posix = yes; then
21953 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21959 if test $REPLACE_MALLOC = 1; then
21968 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
21976 GNULIB_MALLOC_POSIX
=1
21982 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22000 if test $gl_cv_have_include_next = yes; then
22001 gl_cv_next_math_h
='<'math.h
'>'
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
22004 $as_echo_n "checking absolute name of <math.h>... " >&6; }
22005 if ${gl_cv_next_math_h+:} false
; then :
22006 $as_echo_n "(cached) " >&6
22009 if test $ac_cv_header_math_h = yes; then
22014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h. */
22019 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22020 *) gl_absname_cpp
="$ac_cpp" ;;
22025 gl_dirsep_regex
='[/\\]'
22028 gl_dirsep_regex
='\/'
22031 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22032 gl_header_literal_regex
=`echo 'math.h' \
22033 | sed -e "$gl_make_literal_regex_sed"`
22034 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22035 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22041 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22042 sed -n "$gl_absolute_header_sed"`
22044 gl_header
=$gl_cv_absolute_math_h
22045 gl_cv_next_math_h
='"'$gl_header'"'
22047 gl_cv_next_math_h
='<'math.h
'>'
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
22053 $as_echo "$gl_cv_next_math_h" >&6; }
22055 NEXT_MATH_H
=$gl_cv_next_math_h
22057 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22058 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22059 gl_next_as_first_directive
='<'math.h
'>'
22061 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22062 gl_next_as_first_directive
=$gl_cv_next_math_h
22064 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
22071 $as_echo_n "checking whether NAN macro works... " >&6; }
22072 if ${gl_cv_header_math_nan_works+:} false
; then :
22073 $as_echo_n "(cached) " >&6
22075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22076 /* end confdefs.h. */
22081 /* Solaris 10 has a broken definition of NAN. Other platforms
22082 fail to provide NAN, or provide it only in C99 mode; this
22083 test only needs to fail when NAN is provided but wrong. */
22093 if ac_fn_c_try_compile
"$LINENO"; then :
22094 gl_cv_header_math_nan_works
=yes
22096 gl_cv_header_math_nan_works
=no
22098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
22101 $as_echo "$gl_cv_header_math_nan_works" >&6; }
22102 if test $gl_cv_header_math_nan_works = no
; then
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
22106 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
22107 if ${gl_cv_header_math_huge_val_works+:} false
; then :
22108 $as_echo_n "(cached) " >&6
22110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22116 /* Solaris 10 has a broken definition of HUGE_VAL. */
22117 double d = HUGE_VAL;
22123 if ac_fn_c_try_compile
"$LINENO"; then :
22124 gl_cv_header_math_huge_val_works
=yes
22126 gl_cv_header_math_huge_val_works
=no
22128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
22131 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
22132 if test $gl_cv_header_math_huge_val_works = no
; then
22153 if case "$host_os" in
22155 *) test $ac_cv_func_mbsinit = yes ;;
22157 && test $ac_cv_func_mbrtowc = yes; then
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22163 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22164 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
22165 $as_echo_n "(cached) " >&6
22169 # Guess no on AIX and OSF/1.
22170 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
22171 # Guess yes otherwise.
22172 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
22174 if test $LOCALE_JA != none
; then
22175 if test "$cross_compiling" = yes; then :
22178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22179 /* end confdefs.h. */
22181 #include <locale.h>
22182 #include <string.h>
22183 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22185 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22186 included before <wchar.h>. */
22187 #include <stddef.h>
22193 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22195 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22199 memset (&state, '\0', sizeof (mbstate_t));
22200 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22201 if (mbsinit (&state))
22207 if ac_fn_c_try_run
"$LINENO"; then :
22208 gl_cv_func_mbrtowc_incomplete_state
=yes
22210 gl_cv_func_mbrtowc_incomplete_state
=no
22212 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22213 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22217 if test $LOCALE_FR_UTF8 != none
; then
22218 if test "$cross_compiling" = yes; then :
22221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22222 /* end confdefs.h. */
22224 #include <locale.h>
22225 #include <string.h>
22226 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22228 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22229 included before <wchar.h>. */
22230 #include <stddef.h>
22236 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22238 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
22242 memset (&state, '\0', sizeof (mbstate_t));
22243 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22244 if (mbsinit (&state))
22250 if ac_fn_c_try_run
"$LINENO"; then :
22251 gl_cv_func_mbrtowc_incomplete_state
=yes
22253 gl_cv_func_mbrtowc_incomplete_state
=no
22255 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22256 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22264 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22270 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22271 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22272 $as_echo_n "(cached) " >&6
22276 # Guess no on Solaris 8.
22277 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22278 # Guess yes otherwise.
22279 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22281 if test $LOCALE_ZH_CN != none
; then
22282 if test "$cross_compiling" = yes; then :
22285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22286 /* end confdefs.h. */
22288 #include <locale.h>
22289 #include <stdlib.h>
22290 #include <string.h>
22291 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22293 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22294 included before <wchar.h>. */
22295 #include <stddef.h>
22301 /* This fails on Solaris 8:
22302 mbrtowc returns 2, and sets wc to 0x00F0.
22303 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22304 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22306 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22310 memset (&state, '\0', sizeof (mbstate_t));
22311 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22312 && mbtowc (&wc, input + 3, 6) == 4)
22318 if ac_fn_c_try_run
"$LINENO"; then :
22319 gl_cv_func_mbrtowc_sanitycheck
=yes
22321 gl_cv_func_mbrtowc_sanitycheck
=no
22323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22331 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22333 REPLACE_MBSTATE_T
=0
22334 case "$gl_cv_func_mbrtowc_incomplete_state" in
22336 *) REPLACE_MBSTATE_T
=1 ;;
22338 case "$gl_cv_func_mbrtowc_sanitycheck" in
22340 *) REPLACE_MBSTATE_T
=1 ;;
22343 REPLACE_MBSTATE_T
=1
22348 if test $ac_cv_func_mbrtowc = no
; then
22350 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
22351 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22353 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22354 included before <wchar.h>. */
22355 #include <stddef.h>
22361 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
22367 cat >>confdefs.h
<<_ACEOF
22368 #define HAVE_DECL_MBRTOWC $ac_have_decl
22371 if test $ac_cv_have_decl_mbrtowc = yes; then
22375 if test $REPLACE_MBSTATE_T = 1; then
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
22382 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
22383 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
22384 $as_echo_n "(cached) " >&6
22388 # Guess no on Solaris.
22389 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
22390 # Guess yes otherwise.
22391 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
22393 if test $LOCALE_FR_UTF8 != none
; then
22394 if test "$cross_compiling" = yes; then :
22397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22398 /* end confdefs.h. */
22400 #include <locale.h>
22401 #include <stdlib.h>
22402 #include <string.h>
22403 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22405 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22406 included before <wchar.h>. */
22407 #include <stddef.h>
22415 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22417 char input[] = "\303\237er";
22422 memset (&state, '\0', sizeof (mbstate_t));
22423 wc = (wchar_t) 0xBADFACE;
22424 ret = mbrtowc (&wc, input, 5, &state);
22427 if (!mbsinit (&state))
22430 memset (&state, '\0', sizeof (mbstate_t));
22431 ret = mbrtowc (NULL, input, 5, &state);
22432 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
22434 if (!mbsinit (&state))
22440 if ac_fn_c_try_run
"$LINENO"; then :
22441 gl_cv_func_mbrtowc_null_arg1
=yes
22443 gl_cv_func_mbrtowc_null_arg1
=no
22445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
22453 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
22459 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
22460 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
22461 $as_echo_n "(cached) " >&6
22465 # Guess no on OSF/1.
22466 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
22467 # Guess yes otherwise.
22468 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
22470 if test $LOCALE_FR_UTF8 != none
; then
22471 if test "$cross_compiling" = yes; then :
22474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22475 /* end confdefs.h. */
22477 #include <locale.h>
22478 #include <string.h>
22479 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22481 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22482 included before <wchar.h>. */
22483 #include <stddef.h>
22489 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22495 memset (&state, '\0', sizeof (mbstate_t));
22496 wc = (wchar_t) 0xBADFACE;
22497 mbrtowc (&wc, NULL, 5, &state);
22498 /* Check that wc was not modified. */
22499 if (wc != (wchar_t) 0xBADFACE)
22505 if ac_fn_c_try_run
"$LINENO"; then :
22506 gl_cv_func_mbrtowc_null_arg2
=yes
22508 gl_cv_func_mbrtowc_null_arg2
=no
22510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
22518 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
22526 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
22527 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
22528 $as_echo_n "(cached) " >&6
22532 # Guess no on HP-UX, Solaris, native Windows.
22533 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
22534 # Guess yes otherwise.
22535 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
22537 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
22538 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
22539 if test "$cross_compiling" = yes; then :
22542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22543 /* end confdefs.h. */
22545 #include <locale.h>
22546 #include <string.h>
22547 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22549 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22550 included before <wchar.h>. */
22551 #include <stddef.h>
22558 int found_some_locale = 0;
22559 /* This fails on Solaris. */
22560 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22562 char input[] = "B\303\274\303\237er"; /* "Büßer" */
22566 memset (&state, '\0', sizeof (mbstate_t));
22567 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22570 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
22573 found_some_locale = 1;
22575 /* This fails on HP-UX 11.11. */
22576 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22578 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22582 memset (&state, '\0', sizeof (mbstate_t));
22583 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22586 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
22589 found_some_locale = 1;
22591 /* This fails on native Windows. */
22592 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
22594 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
22598 memset (&state, '\0', sizeof (mbstate_t));
22599 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22602 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22605 found_some_locale = 1;
22607 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
22609 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
22613 memset (&state, '\0', sizeof (mbstate_t));
22614 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22617 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22620 found_some_locale = 1;
22622 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
22624 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
22628 memset (&state, '\0', sizeof (mbstate_t));
22629 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22632 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22635 found_some_locale = 1;
22637 return (found_some_locale ? result : 77);
22640 if ac_fn_c_try_run
"$LINENO"; then :
22641 gl_cv_func_mbrtowc_retval
=yes
22643 if test $?
!= 77; then
22644 gl_cv_func_mbrtowc_retval
=no
22648 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22649 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
22656 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
22662 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
22663 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
22664 $as_echo_n "(cached) " >&6
22668 # Guess no on Solaris 8 and 9.
22669 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
22670 # Guess yes otherwise.
22671 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
22673 if test $LOCALE_ZH_CN != none
; then
22674 if test "$cross_compiling" = yes; then :
22677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22678 /* end confdefs.h. */
22680 #include <locale.h>
22681 #include <string.h>
22682 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22684 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22685 included before <wchar.h>. */
22686 #include <stddef.h>
22692 /* This fails on Solaris 8 and 9. */
22693 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22698 memset (&state, '\0', sizeof (mbstate_t));
22699 if (mbrtowc (&wc, "", 1, &state) != 0)
22705 if ac_fn_c_try_run
"$LINENO"; then :
22706 gl_cv_func_mbrtowc_nul_retval
=yes
22708 gl_cv_func_mbrtowc_nul_retval
=no
22710 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22711 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
22718 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5
22723 $as_echo_n "checking whether mbrtowc stores incomplete characters... " >&6; }
22724 if ${gl_cv_func_mbrtowc_stores_incomplete+:} false
; then :
22725 $as_echo_n "(cached) " >&6
22729 # Guess yes on native Windows.
22730 mingw
*) gl_cv_func_mbrtowc_stores_incomplete
="guessing yes" ;;
22731 *) gl_cv_func_mbrtowc_stores_incomplete
="guessing no" ;;
22735 if test "$cross_compiling" = yes; then :
22738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22739 /* end confdefs.h. */
22741 #include <locale.h>
22742 #include <string.h>
22743 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22745 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22746 included before <wchar.h>. */
22747 #include <stddef.h>
22754 if (setlocale (LC_ALL, "French_France.65001") != NULL)
22756 wchar_t wc = (wchar_t) 0xBADFACE;
22759 memset (&state, '\0', sizeof (mbstate_t));
22760 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
22761 && wc != (wchar_t) 0xBADFACE)
22764 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
22766 wchar_t wc = (wchar_t) 0xBADFACE;
22769 memset (&state, '\0', sizeof (mbstate_t));
22770 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2)
22771 && wc != (wchar_t) 0xBADFACE)
22774 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
22776 wchar_t wc = (wchar_t) 0xBADFACE;
22779 memset (&state, '\0', sizeof (mbstate_t));
22780 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2)
22781 && wc != (wchar_t) 0xBADFACE)
22784 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
22786 wchar_t wc = (wchar_t) 0xBADFACE;
22789 memset (&state, '\0', sizeof (mbstate_t));
22790 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2)
22791 && wc != (wchar_t) 0xBADFACE)
22797 if ac_fn_c_try_run
"$LINENO"; then :
22798 gl_cv_func_mbrtowc_stores_incomplete
=no
22800 gl_cv_func_mbrtowc_stores_incomplete
=yes
22802 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22803 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22809 if test $LOCALE_FR_UTF8 != none
; then
22810 if test "$cross_compiling" = yes; then :
22813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22814 /* end confdefs.h. */
22816 #include <locale.h>
22817 #include <string.h>
22818 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22820 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22821 included before <wchar.h>. */
22822 #include <stddef.h>
22828 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22830 wchar_t wc = (wchar_t) 0xBADFACE;
22833 memset (&state, '\0', sizeof (mbstate_t));
22834 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2)
22835 && wc != (wchar_t) 0xBADFACE)
22841 if ac_fn_c_try_run
"$LINENO"; then :
22842 gl_cv_func_mbrtowc_stores_incomplete
=no
22844 gl_cv_func_mbrtowc_stores_incomplete
=yes
22846 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22847 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5
22856 $as_echo "$gl_cv_func_mbrtowc_stores_incomplete" >&6; }
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
22861 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
22862 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
22863 $as_echo_n "(cached) " >&6
22867 # Guess no on AIX and glibc systems.
22868 aix
* |
*-gnu* | gnu
*) gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
22869 # Guess yes on native Windows.
22870 mingw
*) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
22871 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
22873 if test "$cross_compiling" = yes; then :
22876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22877 /* end confdefs.h. */
22881 static mbstate_t mbs;
22885 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
22888 if ac_fn_c_try_run
"$LINENO"; then :
22889 gl_cv_func_mbrtowc_empty_input
=yes
22891 gl_cv_func_mbrtowc_empty_input
=no
22893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
22900 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
22904 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
22905 if ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+:} false
; then :
22906 $as_echo_n "(cached) " >&6
22909 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="$gl_cross_guess_normal"
22911 if test "$cross_compiling" = yes; then :
22913 # Guess yes on native Windows.
22914 mingw
*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
="guessing yes" ;;
22918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22919 /* end confdefs.h. */
22920 #include <limits.h>
22921 #include <locale.h>
22929 char *locale = setlocale (LC_ALL, "C");
22932 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
22936 mbstate_t mbs = { 0, };
22937 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
22947 if ac_fn_c_try_run
"$LINENO"; then :
22948 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=yes
22950 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ
=no
22952 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22953 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5
22959 $as_echo "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; }
22961 case "$gl_cv_func_mbrtowc_null_arg1" in
22964 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
22969 case "$gl_cv_func_mbrtowc_null_arg2" in
22972 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
22977 case "$gl_cv_func_mbrtowc_retval" in
22980 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
22985 case "$gl_cv_func_mbrtowc_nul_retval" in
22988 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
22993 case "$gl_cv_func_mbrtowc_stores_incomplete" in
22996 $as_echo "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h
23001 case "$gl_cv_func_mbrtowc_empty_input" in
23004 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
23009 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in
23012 $as_echo "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
23019 if test $REPLACE_MBSTATE_T = 1; then
23021 mingw
*) LIB_MBRTOWC
= ;;
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
23026 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
23027 if ${gl_cv_have_weak+:} false
; then :
23028 $as_echo_n "(cached) " >&6
23031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23032 /* end confdefs.h. */
23033 extern void xyzzy ();
23043 if ac_fn_c_try_link
"$LINENO"; then :
23044 gl_cv_have_weak
=maybe
23046 rm -f core conftest.err conftest.
$ac_objext \
23047 conftest
$ac_exeext conftest.
$ac_ext
23048 if test $gl_cv_have_weak = maybe
; then
23049 if test "$cross_compiling" = yes; then :
23050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23051 /* end confdefs.h. */
23053 Extensible Linking Format
23057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23058 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
23059 gl_cv_have_weak
="guessing yes"
23061 gl_cv_have_weak
="guessing no"
23067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23068 /* end confdefs.h. */
23074 return (fputs == NULL);
23077 if ac_fn_c_try_run
"$LINENO"; then :
23078 gl_cv_have_weak
=yes
23082 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23083 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23087 case " $LDFLAGS " in
23088 *" -static "*) gl_cv_have_weak
=no
;;
23090 case "$gl_cv_have_weak" in
23093 freebsd
* | dragonfly
*)
23095 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
23096 cat <<EOF > conftest2.c
23097 #include <pthread.h>
23098 #pragma weak pthread_mutexattr_gettype
23101 return (pthread_mutexattr_gettype != NULL);
23104 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
23105 || gl_cv_have_weak
=no
23106 rm -f conftest1.c libempty.so conftest2.c conftest
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
23114 $as_echo "$gl_cv_have_weak" >&6; }
23115 case "$gl_cv_have_weak" in
23118 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
23123 case "$gl_cv_have_weak" in
23124 *yes) LIB_MBRTOWC
= ;;
23125 *) LIB_MBRTOWC
="$LIBPTHREAD" ;;
23134 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
23143 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
23145 if test $REPLACE_MBSTATE_T = 1; then
23154 gl_LIBOBJS
="$gl_LIBOBJS lc-charset-dispatch.$ac_objext"
23164 gl_LIBOBJS
="$gl_LIBOBJS mbtowc-lock.$ac_objext"
23171 if test -n "$GCC"; then
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
23173 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
23174 if ${gl_cv_cc_vis_werror+:} false
; then :
23175 $as_echo_n "(cached) " >&6
23177 gl_save_CFLAGS
="$CFLAGS"
23178 CFLAGS
="$CFLAGS -Werror"
23179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23180 /* end confdefs.h. */
23190 if ac_fn_c_try_compile
"$LINENO"; then :
23191 gl_cv_cc_vis_werror
=yes
23193 gl_cv_cc_vis_werror
=no
23195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23196 CFLAGS
="$gl_save_CFLAGS"
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
23200 $as_echo "$gl_cv_cc_vis_werror" >&6; }
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
23202 $as_echo_n "checking for simple visibility declarations... " >&6; }
23203 if ${gl_cv_cc_visibility+:} false
; then :
23204 $as_echo_n "(cached) " >&6
23206 gl_save_CFLAGS
="$CFLAGS"
23207 CFLAGS
="$CFLAGS -fvisibility=hidden"
23208 if test $gl_cv_cc_vis_werror = yes; then
23209 CFLAGS
="$CFLAGS -Werror"
23211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23212 /* end confdefs.h. */
23213 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
23214 extern __attribute__((__visibility__("default"))) int exportedvar;
23215 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
23216 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
23217 void dummyfunc (void) {}
23227 if ac_fn_c_try_compile
"$LINENO"; then :
23228 gl_cv_cc_visibility
=yes
23230 gl_cv_cc_visibility
=no
23232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23233 CFLAGS
="$gl_save_CFLAGS"
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
23237 $as_echo "$gl_cv_cc_visibility" >&6; }
23238 if test $gl_cv_cc_visibility = yes; then
23239 CFLAG_VISIBILITY
="-fvisibility=hidden"
23246 cat >>confdefs.h
<<_ACEOF
23247 #define HAVE_VISIBILITY $HAVE_VISIBILITY
23269 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
23285 if case "$host_os" in
23287 *) test $ac_cv_func_mbsinit = yes ;;
23289 && test $ac_cv_func_mbrtowc = yes; then
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
23295 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
23296 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
23297 $as_echo_n "(cached) " >&6
23301 # Guess no on AIX and OSF/1.
23302 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
23303 # Guess yes otherwise.
23304 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
23306 if test $LOCALE_JA != none
; then
23307 if test "$cross_compiling" = yes; then :
23310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23311 /* end confdefs.h. */
23313 #include <locale.h>
23314 #include <string.h>
23315 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23317 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23318 included before <wchar.h>. */
23319 #include <stddef.h>
23325 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23327 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23331 memset (&state, '\0', sizeof (mbstate_t));
23332 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23333 if (mbsinit (&state))
23339 if ac_fn_c_try_run
"$LINENO"; then :
23340 gl_cv_func_mbrtowc_incomplete_state
=yes
23342 gl_cv_func_mbrtowc_incomplete_state
=no
23344 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23345 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23349 if test $LOCALE_FR_UTF8 != none
; then
23350 if test "$cross_compiling" = yes; then :
23353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23354 /* end confdefs.h. */
23356 #include <locale.h>
23357 #include <string.h>
23358 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23360 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23361 included before <wchar.h>. */
23362 #include <stddef.h>
23368 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23370 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
23374 memset (&state, '\0', sizeof (mbstate_t));
23375 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23376 if (mbsinit (&state))
23382 if ac_fn_c_try_run
"$LINENO"; then :
23383 gl_cv_func_mbrtowc_incomplete_state
=yes
23385 gl_cv_func_mbrtowc_incomplete_state
=no
23387 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23388 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
23396 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
23402 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
23403 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
23404 $as_echo_n "(cached) " >&6
23408 # Guess no on Solaris 8.
23409 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
23410 # Guess yes otherwise.
23411 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
23413 if test $LOCALE_ZH_CN != none
; then
23414 if test "$cross_compiling" = yes; then :
23417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23418 /* end confdefs.h. */
23420 #include <locale.h>
23421 #include <stdlib.h>
23422 #include <string.h>
23423 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23425 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23426 included before <wchar.h>. */
23427 #include <stddef.h>
23433 /* This fails on Solaris 8:
23434 mbrtowc returns 2, and sets wc to 0x00F0.
23435 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
23436 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23438 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
23442 memset (&state, '\0', sizeof (mbstate_t));
23443 if (mbrtowc (&wc, input + 3, 6, &state) != 4
23444 && mbtowc (&wc, input + 3, 6) == 4)
23450 if ac_fn_c_try_run
"$LINENO"; then :
23451 gl_cv_func_mbrtowc_sanitycheck
=yes
23453 gl_cv_func_mbrtowc_sanitycheck
=no
23455 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23456 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
23463 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
23465 REPLACE_MBSTATE_T
=0
23466 case "$gl_cv_func_mbrtowc_incomplete_state" in
23468 *) REPLACE_MBSTATE_T
=1 ;;
23470 case "$gl_cv_func_mbrtowc_sanitycheck" in
23472 *) REPLACE_MBSTATE_T
=1 ;;
23475 REPLACE_MBSTATE_T
=1
23480 if test $ac_cv_func_mbsinit = no
; then
23482 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
23483 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23485 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23486 included before <wchar.h>. */
23487 #include <stddef.h>
23493 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
23499 cat >>confdefs.h
<<_ACEOF
23500 #define HAVE_DECL_MBSINIT $ac_have_decl
23503 if test $ac_cv_have_decl_mbsinit = yes; then
23507 if test $REPLACE_MBSTATE_T = 1; then
23511 mingw
*) REPLACE_MBSINIT
=1 ;;
23516 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
23525 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
23542 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
23557 if case "$host_os" in
23559 *) test $ac_cv_func_mbsinit = yes ;;
23561 && test $ac_cv_func_mbrtowc = yes; then
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
23567 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
23568 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
23569 $as_echo_n "(cached) " >&6
23573 # Guess no on AIX and OSF/1.
23574 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
23575 # Guess yes otherwise.
23576 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
23578 if test $LOCALE_JA != none
; then
23579 if test "$cross_compiling" = yes; then :
23582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23583 /* end confdefs.h. */
23585 #include <locale.h>
23586 #include <string.h>
23587 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23589 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23590 included before <wchar.h>. */
23591 #include <stddef.h>
23597 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23599 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
23603 memset (&state, '\0', sizeof (mbstate_t));
23604 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23605 if (mbsinit (&state))
23611 if ac_fn_c_try_run
"$LINENO"; then :
23612 gl_cv_func_mbrtowc_incomplete_state
=yes
23614 gl_cv_func_mbrtowc_incomplete_state
=no
23616 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23617 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23621 if test $LOCALE_FR_UTF8 != none
; then
23622 if test "$cross_compiling" = yes; then :
23625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23626 /* end confdefs.h. */
23628 #include <locale.h>
23629 #include <string.h>
23630 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23632 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23633 included before <wchar.h>. */
23634 #include <stddef.h>
23640 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23642 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
23646 memset (&state, '\0', sizeof (mbstate_t));
23647 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
23648 if (mbsinit (&state))
23654 if ac_fn_c_try_run
"$LINENO"; then :
23655 gl_cv_func_mbrtowc_incomplete_state
=yes
23657 gl_cv_func_mbrtowc_incomplete_state
=no
23659 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23660 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
23668 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
23674 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
23675 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
23676 $as_echo_n "(cached) " >&6
23680 # Guess no on Solaris 8.
23681 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
23682 # Guess yes otherwise.
23683 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
23685 if test $LOCALE_ZH_CN != none
; then
23686 if test "$cross_compiling" = yes; then :
23689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23690 /* end confdefs.h. */
23692 #include <locale.h>
23693 #include <stdlib.h>
23694 #include <string.h>
23695 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23697 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23698 included before <wchar.h>. */
23699 #include <stddef.h>
23705 /* This fails on Solaris 8:
23706 mbrtowc returns 2, and sets wc to 0x00F0.
23707 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
23708 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23710 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
23714 memset (&state, '\0', sizeof (mbstate_t));
23715 if (mbrtowc (&wc, input + 3, 6, &state) != 4
23716 && mbtowc (&wc, input + 3, 6) == 4)
23722 if ac_fn_c_try_run
"$LINENO"; then :
23723 gl_cv_func_mbrtowc_sanitycheck
=yes
23725 gl_cv_func_mbrtowc_sanitycheck
=no
23727 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23728 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
23735 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
23737 REPLACE_MBSTATE_T
=0
23738 case "$gl_cv_func_mbrtowc_incomplete_state" in
23740 *) REPLACE_MBSTATE_T
=1 ;;
23742 case "$gl_cv_func_mbrtowc_sanitycheck" in
23744 *) REPLACE_MBSTATE_T
=1 ;;
23747 REPLACE_MBSTATE_T
=1
23752 if test $ac_cv_func_mbsrtowcs = no
; then
23754 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
23755 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23757 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23758 included before <wchar.h>. */
23759 #include <stddef.h>
23765 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
23771 cat >>confdefs.h
<<_ACEOF
23772 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
23775 if test $ac_cv_have_decl_mbsrtowcs = yes; then
23776 REPLACE_MBSRTOWCS
=1
23779 if test $REPLACE_MBSTATE_T = 1; then
23780 REPLACE_MBSRTOWCS
=1
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
23789 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
23790 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
23791 $as_echo_n "(cached) " >&6
23795 # Guess no on HP-UX, Solaris, mingw.
23796 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
23797 # Guess yes otherwise.
23798 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
23800 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
23801 if test "$cross_compiling" = yes; then :
23804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23805 /* end confdefs.h. */
23807 #include <locale.h>
23808 #include <string.h>
23809 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23811 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23812 included before <wchar.h>. */
23813 #include <stddef.h>
23820 /* Test whether the function supports a NULL destination argument.
23821 This fails on native Windows. */
23822 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
23824 const char input[] = "\337er";
23825 const char *src = input;
23828 memset (&state, '\0', sizeof (mbstate_t));
23829 if (mbsrtowcs (NULL, &src, 1, &state) != 3
23833 /* Test whether the function works when started with a conversion state
23834 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
23835 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23837 const char input[] = "B\303\274\303\237er";
23840 memset (&state, '\0', sizeof (mbstate_t));
23841 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
23842 if (!mbsinit (&state))
23844 const char *src = input + 2;
23845 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
23849 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23851 const char input[] = "<\306\374\313\334\270\354>";
23854 memset (&state, '\0', sizeof (mbstate_t));
23855 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
23856 if (!mbsinit (&state))
23858 const char *src = input + 4;
23859 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
23863 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23865 const char input[] = "B\250\271\201\060\211\070er";
23868 memset (&state, '\0', sizeof (mbstate_t));
23869 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
23870 if (!mbsinit (&state))
23872 const char *src = input + 2;
23873 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
23880 if ac_fn_c_try_run
"$LINENO"; then :
23881 gl_cv_func_mbsrtowcs_works
=yes
23883 gl_cv_func_mbsrtowcs_works
=no
23885 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23886 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
23893 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
23895 case "$gl_cv_func_mbsrtowcs_works" in
23897 *) REPLACE_MBSRTOWCS
=1 ;;
23902 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
23911 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
23921 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
23938 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
23943 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
23952 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
23955 for ac_header
in bp-sym.h
23957 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
23958 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
23959 cat >>confdefs.h
<<_ACEOF
23960 #define HAVE_BP_SYM_H 1
23980 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
23986 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
23988 $as_echo_n "checking whether memmem works in linear time... " >&6; }
23989 if ${gl_cv_func_memmem_works_fast+:} false
; then :
23990 $as_echo_n "(cached) " >&6
23992 if test "$cross_compiling" = yes; then :
23993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23994 /* end confdefs.h. */
23996 #include <features.h>
23997 #ifdef __GNU_LIBRARY__
23998 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
23999 && !defined __UCLIBC__
24004 #include <cygwin/version.h>
24005 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
24011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24012 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24013 gl_cv_func_memmem_works_fast
="guessing yes"
24015 gl_cv_func_memmem_works_fast
="$gl_cross_guess_normal"
24021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24022 /* end confdefs.h. */
24024 #include <signal.h> /* for signal */
24025 #include <string.h> /* for memmem */
24026 #include <stdlib.h> /* for malloc */
24027 #include <unistd.h> /* for alarm */
24028 static void quit (int sig) { _exit (sig + 128); }
24035 size_t m = 1000000;
24036 char *haystack = (char *) malloc (2 * m + 1);
24037 char *needle = (char *) malloc (m + 1);
24038 /* Failure to compile this test due to missing alarm is okay,
24039 since all such platforms (mingw) also lack memmem. */
24040 signal (SIGALRM, quit);
24042 /* Check for quadratic performance. */
24043 if (haystack && needle)
24045 memset (haystack, 'A', 2 * m);
24046 haystack[2 * m] = 'B';
24047 memset (needle, 'A', m);
24049 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
24052 /* Free allocated memory, in case some sanitizer is watching. */
24061 if ac_fn_c_try_run
"$LINENO"; then :
24062 gl_cv_func_memmem_works_fast
=yes
24064 gl_cv_func_memmem_works_fast
=no
24066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24067 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
24073 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
24074 case "$gl_cv_func_memmem_works_fast" in
24082 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
24091 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
24098 for ac_func
in memmem
24100 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
24101 if test "x$ac_cv_func_memmem" = xyes
; then :
24102 cat >>confdefs.h
<<_ACEOF
24103 #define HAVE_MEMMEM 1
24109 if test $ac_cv_func_memmem = yes; then
24115 if test $ac_cv_have_decl_memmem = no
; then
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
24119 $as_echo_n "checking whether memmem works... " >&6; }
24120 if ${gl_cv_func_memmem_works_always+:} false
; then :
24121 $as_echo_n "(cached) " >&6
24123 if test "$cross_compiling" = yes; then :
24124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24125 /* end confdefs.h. */
24127 #ifdef __GNU_LIBRARY__
24128 #include <features.h>
24129 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
24130 || __GLIBC_MINOR__ > 12)) \
24131 || (__GLIBC__ > 2)) \
24132 || defined __UCLIBC__
24135 #elif defined __CYGWIN__
24136 #include <cygwin/version.h>
24137 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
24145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24146 $EGREP "Lucky user" >/dev
/null
2>&1; then :
24147 gl_cv_func_memmem_works_always
="guessing yes"
24149 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
24155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24156 /* end confdefs.h. */
24158 #include <string.h> /* for memmem */
24159 #define P "_EF_BF_BD"
24160 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
24161 #define NEEDLE P P P P P
24168 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
24170 /* Check for empty needle behavior. */
24172 const char *haystack = "AAA";
24173 if (memmem (haystack, 3, NULL, 0) != haystack)
24182 if ac_fn_c_try_run
"$LINENO"; then :
24183 gl_cv_func_memmem_works_always
=yes
24185 gl_cv_func_memmem_works_always
=no
24187 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24188 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
24194 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
24195 case "$gl_cv_func_memmem_works_always" in
24204 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
24213 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
24227 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
24237 for ac_func
in mempcpy
24239 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
24240 if test "x$ac_cv_func_mempcpy" = xyes
; then :
24241 cat >>confdefs.h
<<_ACEOF
24242 #define HAVE_MEMPCPY 1
24248 if test $ac_cv_func_mempcpy = no
; then
24252 if test $HAVE_MEMPCPY = 0; then
24261 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
24278 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
24287 if test $ac_cv_have_decl_memrchr = no
; then
24288 HAVE_DECL_MEMRCHR
=0
24291 for ac_func
in memrchr
24293 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
24294 if test "x$ac_cv_func_memrchr" = xyes
; then :
24295 cat >>confdefs.h
<<_ACEOF
24296 #define HAVE_MEMRCHR 1
24303 if test $ac_cv_func_memrchr = no
; then
24312 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
24327 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
24334 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
24335 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
24336 $as_echo_n "(cached) " >&6
24338 rm -rf conftest.dir
24339 if test "$cross_compiling" = yes; then :
24341 # Guess yes on Linux systems.
24342 linux-
* | linux
) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
24343 # Guess yes on glibc systems.
24344 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
24345 # Guess yes on MSVC, no on mingw.
24346 mingw
*) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24347 /* end confdefs.h. */
24354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24355 $EGREP "Known" >/dev
/null
2>&1; then :
24356 gl_cv_func_mkdir_trailing_slash_works
="guessing yes"
24358 gl_cv_func_mkdir_trailing_slash_works
="guessing no"
24363 # If we don't know, obey --enable-cross-guesses.
24364 *) gl_cv_func_mkdir_trailing_slash_works
="$gl_cross_guess_normal" ;;
24368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24369 /* end confdefs.h. */
24371 # include <sys/types.h>
24372 # include <sys/stat.h>
24377 return mkdir ("conftest.dir/", 0700);
24382 if ac_fn_c_try_run
"$LINENO"; then :
24383 gl_cv_func_mkdir_trailing_slash_works
=yes
24385 gl_cv_func_mkdir_trailing_slash_works
=no
24387 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24388 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24391 rm -rf conftest.dir
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
24396 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
24397 case "$gl_cv_func_mkdir_trailing_slash_works" in
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
24405 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
24406 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
24407 $as_echo_n "(cached) " >&6
24409 rm -rf conftest.dir
24410 if test "$cross_compiling" = yes; then :
24412 # Guess yes on glibc systems.
24413 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
24414 # Guess yes on musl systems.
24415 *-musl*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
24416 # Guess no on native Windows.
24417 mingw
*) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
24418 # If we don't know, obey --enable-cross-guesses.
24419 *) gl_cv_func_mkdir_trailing_dot_works
="$gl_cross_guess_normal" ;;
24423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24424 /* end confdefs.h. */
24426 # include <sys/types.h>
24427 # include <sys/stat.h>
24432 return !mkdir ("conftest.dir/./", 0700);
24437 if ac_fn_c_try_run
"$LINENO"; then :
24438 gl_cv_func_mkdir_trailing_dot_works
=yes
24440 gl_cv_func_mkdir_trailing_dot_works
=no
24442 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24443 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24446 rm -rf conftest.dir
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
24451 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
24452 case "$gl_cv_func_mkdir_trailing_dot_works" in
24457 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
24462 if test $REPLACE_MKDIR = 1; then
24471 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
24476 for ac_func
in mkdtemp
24478 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
24479 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
24480 cat >>confdefs.h
<<_ACEOF
24481 #define HAVE_MKDTEMP 1
24487 if test $ac_cv_func_mkdtemp = no
; then
24491 if test $HAVE_MKDTEMP = 0; then
24500 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
24516 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
24526 if test $ac_cv_func_mkostemp != yes; then
24530 if test $HAVE_MKOSTEMP = 0; then
24539 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
24546 cat >>confdefs.h
<<_ACEOF
24547 #define GNULIB_MKOSTEMP 1
24562 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
24567 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24576 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
24580 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24589 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
24594 cat >>confdefs.h
<<_ACEOF
24595 #define GNULIB_MSVC_NOTHROW 1
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
24602 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
24603 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
24604 $as_echo_n "(cached) " >&6
24607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24608 /* end confdefs.h. */
24609 #include <netinet/in.h>
24618 if ac_fn_c_try_compile
"$LINENO"; then :
24619 gl_cv_header_netinet_in_h_selfcontained
=yes
24621 gl_cv_header_netinet_in_h_selfcontained
=no
24623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
24627 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
24628 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
24631 NETINET_IN_H
='netinet/in.h'
24632 for ac_header
in netinet
/in.h
24634 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
24635 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
24636 cat >>confdefs.h
<<_ACEOF
24637 #define HAVE_NETINET_IN_H 1
24653 if test $gl_cv_have_include_next = yes; then
24654 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
24657 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
24658 if ${gl_cv_next_netinet_in_h+:} false
; then :
24659 $as_echo_n "(cached) " >&6
24662 if test $ac_cv_header_netinet_in_h = yes; then
24667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24668 /* end confdefs.h. */
24669 #include <netinet/in.h>
24672 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24673 *) gl_absname_cpp
="$ac_cpp" ;;
24678 gl_dirsep_regex
='[/\\]'
24681 gl_dirsep_regex
='\/'
24684 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24685 gl_header_literal_regex
=`echo 'netinet/in.h' \
24686 | sed -e "$gl_make_literal_regex_sed"`
24687 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24688 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24694 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24695 sed -n "$gl_absolute_header_sed"`
24697 gl_header
=$gl_cv_absolute_netinet_in_h
24698 gl_cv_next_netinet_in_h
='"'$gl_header'"'
24700 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
24705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
24706 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
24708 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
24710 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24712 gl_next_as_first_directive
='<'netinet
/in.h
'>'
24714 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24715 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
24717 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
24722 if test $ac_cv_header_netinet_in_h = yes; then
24723 HAVE_NETINET_IN_H
=1
24725 HAVE_NETINET_IN_H
=0
24730 if test -n "$NETINET_IN_H"; then
24731 GL_GENERATE_NETINET_IN_H_TRUE
=
24732 GL_GENERATE_NETINET_IN_H_FALSE
='#'
24734 GL_GENERATE_NETINET_IN_H_TRUE
='#'
24735 GL_GENERATE_NETINET_IN_H_FALSE
=
24749 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
24755 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
24756 if ${gl_cv_func_open_slash+:} false
; then :
24757 $as_echo_n "(cached) " >&6
24759 # Assume that if we have lstat, we can also check symlinks.
24760 if test $ac_cv_func_lstat = yes; then
24762 ln -s conftest.tmp conftest.lnk
24764 if test "$cross_compiling" = yes; then :
24767 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
24768 gl_cv_func_open_slash
="guessing no" ;;
24770 gl_cv_func_open_slash
="guessing yes" ;;
24774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24775 /* end confdefs.h. */
24779 # include <unistd.h>
24785 if (open ("conftest.lnk/", O_RDONLY) != -1)
24788 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
24793 if ac_fn_c_try_run
"$LINENO"; then :
24794 gl_cv_func_open_slash
=yes
24796 gl_cv_func_open_slash
=no
24798 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24799 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24802 rm -f conftest.sl conftest.tmp conftest.lnk
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
24806 $as_echo "$gl_cv_func_open_slash" >&6; }
24807 case "$gl_cv_func_open_slash" in
24810 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
24815 case "$gl_cv_func_open_slash" in
24823 if test $REPLACE_OPEN = 0; then
24827 if test $ac_cv_func_fchdir = no
; then
24831 if test $HAVE_FCHDIR = 0; then
24838 if test $REPLACE_OPEN = 1; then
24847 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
24865 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
24875 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
24879 # Solaris 10 lacks O_CLOEXEC.
24880 # Solaris 9 has *at functions, but uniformly mishandles trailing
24881 # slash in all of them.
24889 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
24898 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
24907 cat >>confdefs.h
<<_ACEOF
24908 #define GNULIB_OPENAT 1
24922 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
24929 for ac_func
in opendir
24931 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
24932 if test "x$ac_cv_func_opendir" = xyes
; then :
24933 cat >>confdefs.h
<<_ACEOF
24934 #define HAVE_OPENDIR 1
24940 if test $ac_cv_func_opendir = no
; then
24947 if test $ac_cv_func_fchdir = no
; then
24951 if test $HAVE_FCHDIR = 0; then
24952 if test $HAVE_OPENDIR = 1; then
24957 case $host_os,$HAVE_OPENDIR in
24959 REPLACE_OPENDIR
=1;;
24962 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
24971 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
24985 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
24996 for ac_func
in rawmemchr
24998 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
24999 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
25000 cat >>confdefs.h
<<_ACEOF
25001 #define HAVE_RAWMEMCHR 1
25007 if test $ac_cv_func_rawmemchr = no
; then
25011 if test $HAVE_RAWMEMCHR = 0; then
25020 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
25035 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
25042 for ac_func
in readdir
25044 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
25045 if test "x$ac_cv_func_readdir" = xyes
; then :
25046 cat >>confdefs.h
<<_ACEOF
25047 #define HAVE_READDIR 1
25053 if test $ac_cv_func_readdir = no
; then
25057 if test $HAVE_READDIR = 0; then
25066 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
25080 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
25087 if test $ac_cv_func_readlink = no
; then
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25091 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25092 if ${gl_cv_decl_readlink_works+:} false
; then :
25093 $as_echo_n "(cached) " >&6
25095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25096 /* end confdefs.h. */
25097 #include <unistd.h>
25098 /* Cause compilation failure if original declaration has wrong type. */
25099 ssize_t readlink (const char *, char *, size_t);
25108 if ac_fn_c_try_compile
"$LINENO"; then :
25109 gl_cv_decl_readlink_works
=yes
25111 gl_cv_decl_readlink_works
=no
25113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25116 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25118 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25119 if ${gl_cv_func_readlink_works+:} false
; then :
25120 $as_echo_n "(cached) " >&6
25122 # We have readlink, so assume ln -s works.
25123 ln -s conftest.no-such conftest.link
25124 ln -s conftest.link conftest.lnk2
25125 if test "$cross_compiling" = yes; then :
25127 # Guess yes on Linux systems.
25128 linux-
* | linux
) gl_cv_func_readlink_works
="guessing yes" ;;
25129 # Guess yes on glibc systems.
25130 *-gnu* | gnu
*) gl_cv_func_readlink_works
="guessing yes" ;;
25131 # If we don't know, obey --enable-cross-guesses.
25132 *) gl_cv_func_readlink_works
="$gl_cross_guess_normal" ;;
25136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25137 /* end confdefs.h. */
25138 #include <unistd.h>
25144 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25149 if ac_fn_c_try_run
"$LINENO"; then :
25150 gl_cv_func_readlink_works
=yes
25152 gl_cv_func_readlink_works
=no
25154 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25155 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25158 rm -f conftest.link conftest.lnk2
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25161 $as_echo "$gl_cv_func_readlink_works" >&6; }
25162 case "$gl_cv_func_readlink_works" in
25164 if test "$gl_cv_decl_readlink_works" != yes; then
25170 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25177 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
25186 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
25203 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
25210 if test $gl_cv_func_malloc_posix = yes; then
25212 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
25218 if test $REPLACE_REALLOC = 1; then
25227 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
25235 GNULIB_REALLOC_POSIX
=1
25241 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
25251 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
25252 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
25253 $as_echo_n "(cached) " >&6
25255 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
25256 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
25257 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
25258 # Assume that if we have lstat, we can also check symlinks.
25259 if test $ac_cv_func_lstat = yes; then
25260 ln -s conftest.f conftest.lnk
25262 if test "$cross_compiling" = yes; then :
25264 # Guess yes on Linux systems.
25265 linux-
* | linux
) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
25266 # Guess yes on glibc systems.
25267 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
25268 # Guess no on native Windows.
25269 mingw
*) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
25270 # If we don't know, obey --enable-cross-guesses.
25271 *) gl_cv_func_rename_slash_dst_works
="$gl_cross_guess_normal" ;;
25275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25276 /* end confdefs.h. */
25278 # include <stdio.h>
25279 # include <stdlib.h>
25285 if (rename ("conftest.f1", "conftest.f2/") == 0)
25287 if (rename ("conftest.d1", "conftest.d2/") != 0)
25290 if (rename ("conftest.f", "conftest.lnk/") == 0)
25299 if ac_fn_c_try_run
"$LINENO"; then :
25300 gl_cv_func_rename_slash_dst_works
=yes
25302 gl_cv_func_rename_slash_dst_works
=no
25304 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25305 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25308 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
25312 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
25313 case "$gl_cv_func_rename_slash_dst_works" in
25318 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
25324 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
25325 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
25326 $as_echo_n "(cached) " >&6
25328 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
25329 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
25330 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
25331 # Assume that if we have lstat, we can also check symlinks.
25332 if test $ac_cv_func_lstat = yes; then
25333 ln -s conftest.f conftest.lnk
25335 if test "$cross_compiling" = yes; then :
25337 # Guess yes on Linux systems.
25338 linux-
* | linux
) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
25339 # Guess yes on glibc systems.
25340 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
25341 # Guess yes on native Windows.
25342 mingw
*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
25343 # If we don't know, obey --enable-cross-guesses.
25344 *) gl_cv_func_rename_slash_src_works
="$gl_cross_guess_normal" ;;
25348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25349 /* end confdefs.h. */
25351 # include <stdio.h>
25352 # include <stdlib.h>
25358 if (rename ("conftest.f1/", "conftest.d3") == 0)
25360 if (rename ("conftest.d1/", "conftest.d2") != 0)
25363 if (rename ("conftest.lnk/", "conftest.f") == 0)
25372 if ac_fn_c_try_run
"$LINENO"; then :
25373 gl_cv_func_rename_slash_src_works
=yes
25375 gl_cv_func_rename_slash_src_works
=no
25377 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25378 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25381 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
25385 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
25386 case "$gl_cv_func_rename_slash_src_works" in
25391 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
25398 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
25399 if ${gl_cv_func_rename_link_works+:} false
; then :
25400 $as_echo_n "(cached) " >&6
25402 if test $ac_cv_func_link = yes; then
25403 if test $cross_compiling != yes; then
25404 rm -rf conftest.f conftest.f1 conftest.f2
25405 if touch conftest.f conftest.f2
&& ln conftest.f conftest.f1
&&
25406 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
25407 if test "$cross_compiling" = yes; then :
25411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25412 /* end confdefs.h. */
25414 # include <errno.h>
25415 # include <stdio.h>
25416 # include <stdlib.h>
25417 # include <unistd.h>
25423 if (rename ("conftest.f", "conftest.f1"))
25425 if (unlink ("conftest.f1"))
25428 /* Allow either the POSIX-required behavior, where the
25429 previous rename kept conftest.f, or the (better) NetBSD
25430 behavior, where it removed conftest.f. */
25431 if (rename ("conftest.f", "conftest.f") != 0
25432 && errno != ENOENT)
25435 if (rename ("conftest.f1", "conftest.f1") == 0)
25437 if (rename ("conftest.f2", "conftest.f2") != 0)
25445 if ac_fn_c_try_run
"$LINENO"; then :
25446 gl_cv_func_rename_link_works
=yes
25448 gl_cv_func_rename_link_works
=no
25450 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25451 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25455 gl_cv_func_rename_link_works
="guessing no"
25457 rm -rf conftest.f conftest.f1 conftest.f2
25460 # Guess yes on Linux systems.
25461 linux-
* | linux
) gl_cv_func_rename_link_works
="guessing yes" ;;
25462 # Guess yes on glibc systems.
25463 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
25464 # Guess yes on native Windows.
25465 mingw
*) gl_cv_func_rename_link_works
="guessing yes" ;;
25466 # If we don't know, obey --enable-cross-guesses.
25467 *) gl_cv_func_rename_link_works
="$gl_cross_guess_normal" ;;
25471 gl_cv_func_rename_link_works
=yes
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
25476 $as_echo "$gl_cv_func_rename_link_works" >&6; }
25477 case "$gl_cv_func_rename_link_works" in
25482 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
25488 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
25489 if ${gl_cv_func_rename_dest_works+:} false
; then :
25490 $as_echo_n "(cached) " >&6
25492 rm -rf conftest.f conftest.d1 conftest.d2
25493 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
25494 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
25495 if test "$cross_compiling" = yes; then :
25497 # Guess yes on Linux systems.
25498 linux-
* | linux
) gl_cv_func_rename_dest_works
="guessing yes" ;;
25499 # Guess yes on glibc systems.
25500 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
25501 # Guess no on native Windows.
25502 mingw
*) gl_cv_func_rename_dest_works
="guessing no" ;;
25503 # If we don't know, obey --enable-cross-guesses.
25504 *) gl_cv_func_rename_dest_works
="$gl_cross_guess_normal" ;;
25508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25509 /* end confdefs.h. */
25511 # include <stdio.h>
25512 # include <stdlib.h>
25518 if (rename ("conftest.d1", "conftest.d2") != 0)
25520 if (rename ("conftest.d2", "conftest.f") == 0)
25528 if ac_fn_c_try_run
"$LINENO"; then :
25529 gl_cv_func_rename_dest_works
=yes
25531 gl_cv_func_rename_dest_works
=no
25533 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25534 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25537 rm -rf conftest.f conftest.d1 conftest.d2
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
25541 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
25542 case "$gl_cv_func_rename_dest_works" in
25547 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
25552 if test $REPLACE_RENAME = 1; then
25561 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
25575 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
25582 for ac_func
in rewinddir
25584 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
25585 if test "x$ac_cv_func_rewinddir" = xyes
; then :
25586 cat >>confdefs.h
<<_ACEOF
25587 #define HAVE_REWINDDIR 1
25593 if test $ac_cv_func_rewinddir = no
; then
25597 if test $HAVE_REWINDDIR = 0; then
25606 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
25620 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
25628 $as_echo_n "checking whether rmdir works... " >&6; }
25629 if ${gl_cv_func_rmdir_works+:} false
; then :
25630 $as_echo_n "(cached) " >&6
25633 touch conftest.
file
25634 if test "$cross_compiling" = yes; then :
25636 # Guess yes on Linux systems.
25637 linux-
* | linux
) gl_cv_func_rmdir_works
="guessing yes" ;;
25638 # Guess yes on glibc systems.
25639 *-gnu* | gnu
*) gl_cv_func_rmdir_works
="guessing yes" ;;
25640 # Guess no on native Windows.
25641 mingw
*) gl_cv_func_rmdir_works
="guessing no" ;;
25642 # If we don't know, obey --enable-cross-guesses.
25643 *) gl_cv_func_rmdir_works
="$gl_cross_guess_normal" ;;
25647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25648 /* end confdefs.h. */
25652 # include <unistd.h>
25653 #else /* on Windows with MSVC */
25654 # include <direct.h>
25661 if (!rmdir ("conftest.file/"))
25663 else if (errno != ENOTDIR)
25665 if (!rmdir ("conftest.dir/./"))
25673 if ac_fn_c_try_run
"$LINENO"; then :
25674 gl_cv_func_rmdir_works
=yes
25676 gl_cv_func_rmdir_works
=no
25678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25679 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25682 rm -rf conftest.dir conftest.
file
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
25685 $as_echo "$gl_cv_func_rmdir_works" >&6; }
25686 case "$gl_cv_func_rmdir_works" in
25693 if test $REPLACE_RMDIR = 1; then
25702 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
25716 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
25725 if test $ac_cv_func_setenv = no
; then
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
25729 $as_echo_n "checking whether setenv validates arguments... " >&6; }
25730 if ${gl_cv_func_setenv_works+:} false
; then :
25731 $as_echo_n "(cached) " >&6
25733 if test "$cross_compiling" = yes; then :
25735 # Guess yes on glibc systems.
25736 *-gnu* | gnu
*) gl_cv_func_setenv_works
="guessing yes" ;;
25737 # Guess yes on musl systems.
25738 *-musl*) gl_cv_func_setenv_works
="guessing yes" ;;
25739 # If we don't know, obey --enable-cross-guesses.
25740 *) gl_cv_func_setenv_works
="$gl_cross_guess_normal" ;;
25744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25745 /* end confdefs.h. */
25747 #include <stdlib.h>
25749 #include <string.h>
25757 if (setenv ("", "", 0) != -1)
25759 else if (errno != EINVAL)
25763 if (setenv ("a", "=", 1) != 0)
25765 else if (strcmp (getenv ("a"), "=") != 0)
25774 if ac_fn_c_try_run
"$LINENO"; then :
25775 gl_cv_func_setenv_works
=yes
25777 gl_cv_func_setenv_works
=no
25779 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25780 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
25785 $as_echo "$gl_cv_func_setenv_works" >&6; }
25786 case "$gl_cv_func_setenv_works" in
25794 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
25803 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
25817 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5
25827 $as_echo_n "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; }
25828 if ${gl_cv_func_setlocale_null_all_mtsafe+:} false
; then :
25829 $as_echo_n "(cached) " >&6
25832 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin.
25833 *-musl* | darwin
* | freebsd
* | netbsd
* | openbsd
* | aix
* | haiku
* | cygwin
*)
25834 gl_cv_func_setlocale_null_all_mtsafe
=no
;;
25835 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows.
25836 *-gnu* | gnu
* | hpux
* | irix
* | solaris
* | mingw
*)
25837 gl_cv_func_setlocale_null_all_mtsafe
=yes ;;
25838 # If we don't know, obey --enable-cross-guesses.
25840 gl_cv_func_setlocale_null_all_mtsafe
="$gl_cross_guess_normal" ;;
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5
25845 $as_echo "$gl_cv_func_setlocale_null_all_mtsafe" >&6; }
25849 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
25850 gl_cv_func_setlocale_null_all_mtsafe
="trivially yes"
25854 case "$gl_cv_func_setlocale_null_all_mtsafe" in
25855 *yes) SETLOCALE_NULL_ALL_MTSAFE
=1 ;;
25856 *) SETLOCALE_NULL_ALL_MTSAFE
=0 ;;
25859 cat >>confdefs.h
<<_ACEOF
25860 #define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5
25865 $as_echo_n "checking whether setlocale (category, NULL) is multithread-safe... " >&6; }
25866 if ${gl_cv_func_setlocale_null_one_mtsafe+:} false
; then :
25867 $as_echo_n "(cached) " >&6
25870 # Guess no on OpenBSD, AIX.
25872 gl_cv_func_setlocale_null_one_mtsafe
=no
;;
25873 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows.
25874 *-gnu* | gnu
* |
*-musl* | darwin
* | freebsd
* | netbsd
* | hpux
* | irix
* | solaris
* | haiku
* | cygwin
* | mingw
*)
25875 gl_cv_func_setlocale_null_one_mtsafe
=yes ;;
25876 # If we don't know, obey --enable-cross-guesses.
25878 gl_cv_func_setlocale_null_one_mtsafe
="$gl_cross_guess_normal" ;;
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5
25883 $as_echo "$gl_cv_func_setlocale_null_one_mtsafe" >&6; }
25887 if test $gl_pthread_api = no
&& test $ac_cv_header_threads_h = no
; then
25888 gl_cv_func_setlocale_null_one_mtsafe
="trivially yes"
25892 case "$gl_cv_func_setlocale_null_one_mtsafe" in
25893 *yes) SETLOCALE_NULL_ONE_MTSAFE
=1 ;;
25894 *) SETLOCALE_NULL_ONE_MTSAFE
=0 ;;
25897 cat >>confdefs.h
<<_ACEOF
25898 #define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE
25902 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
25904 mingw
*) LIB_SETLOCALE_NULL
= ;;
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
25909 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
25910 if ${gl_cv_have_weak+:} false
; then :
25911 $as_echo_n "(cached) " >&6
25914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25915 /* end confdefs.h. */
25916 extern void xyzzy ();
25926 if ac_fn_c_try_link
"$LINENO"; then :
25927 gl_cv_have_weak
=maybe
25929 rm -f core conftest.err conftest.
$ac_objext \
25930 conftest
$ac_exeext conftest.
$ac_ext
25931 if test $gl_cv_have_weak = maybe
; then
25932 if test "$cross_compiling" = yes; then :
25933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25934 /* end confdefs.h. */
25936 Extensible Linking Format
25940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25941 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
25942 gl_cv_have_weak
="guessing yes"
25944 gl_cv_have_weak
="guessing no"
25950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25951 /* end confdefs.h. */
25957 return (fputs == NULL);
25960 if ac_fn_c_try_run
"$LINENO"; then :
25961 gl_cv_have_weak
=yes
25965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25966 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25970 case " $LDFLAGS " in
25971 *" -static "*) gl_cv_have_weak
=no
;;
25973 case "$gl_cv_have_weak" in
25976 freebsd
* | dragonfly
*)
25978 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c
-lpthread >&5 2>&1
25979 cat <<EOF > conftest2.c
25980 #include <pthread.h>
25981 #pragma weak pthread_mutexattr_gettype
25984 return (pthread_mutexattr_gettype != NULL);
25987 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so
>&5 2>&1 \
25988 || gl_cv_have_weak
=no
25989 rm -f conftest1.c libempty.so conftest2.c conftest
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
25997 $as_echo "$gl_cv_have_weak" >&6; }
25998 case "$gl_cv_have_weak" in
26001 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
26006 case "$gl_cv_have_weak" in
26007 *yes) LIB_SETLOCALE_NULL
= ;;
26008 *) LIB_SETLOCALE_NULL
="$LIBPTHREAD" ;;
26013 LIB_SETLOCALE_NULL
=
26017 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 ||
test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
26026 gl_LIBOBJS
="$gl_LIBOBJS setlocale-lock.$ac_objext"
26033 if test -n "$GCC"; then
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
26035 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
26036 if ${gl_cv_cc_vis_werror+:} false
; then :
26037 $as_echo_n "(cached) " >&6
26039 gl_save_CFLAGS
="$CFLAGS"
26040 CFLAGS
="$CFLAGS -Werror"
26041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26042 /* end confdefs.h. */
26052 if ac_fn_c_try_compile
"$LINENO"; then :
26053 gl_cv_cc_vis_werror
=yes
26055 gl_cv_cc_vis_werror
=no
26057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26058 CFLAGS
="$gl_save_CFLAGS"
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
26062 $as_echo "$gl_cv_cc_vis_werror" >&6; }
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
26064 $as_echo_n "checking for simple visibility declarations... " >&6; }
26065 if ${gl_cv_cc_visibility+:} false
; then :
26066 $as_echo_n "(cached) " >&6
26068 gl_save_CFLAGS
="$CFLAGS"
26069 CFLAGS
="$CFLAGS -fvisibility=hidden"
26070 if test $gl_cv_cc_vis_werror = yes; then
26071 CFLAGS
="$CFLAGS -Werror"
26073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26074 /* end confdefs.h. */
26075 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
26076 extern __attribute__((__visibility__("default"))) int exportedvar;
26077 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
26078 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
26079 void dummyfunc (void) {}
26089 if ac_fn_c_try_compile
"$LINENO"; then :
26090 gl_cv_cc_visibility
=yes
26092 gl_cv_cc_visibility
=no
26094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26095 CFLAGS
="$gl_save_CFLAGS"
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
26099 $as_echo "$gl_cv_cc_visibility" >&6; }
26100 if test $gl_cv_cc_visibility = yes; then
26101 CFLAG_VISIBILITY
="-fvisibility=hidden"
26108 cat >>confdefs.h
<<_ACEOF
26109 #define HAVE_VISIBILITY $HAVE_VISIBILITY
26120 GNULIB_SETLOCALE_NULL
=1
26126 $as_echo "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h
26141 if test $gl_cv_have_include_next = yes; then
26142 gl_cv_next_signal_h
='<'signal.h
'>'
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
26145 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
26146 if ${gl_cv_next_signal_h+:} false
; then :
26147 $as_echo_n "(cached) " >&6
26152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26153 /* end confdefs.h. */
26154 #include <signal.h>
26157 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26158 *) gl_absname_cpp
="$ac_cpp" ;;
26163 gl_dirsep_regex
='[/\\]'
26166 gl_dirsep_regex
='\/'
26169 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26170 gl_header_literal_regex
=`echo 'signal.h' \
26171 | sed -e "$gl_make_literal_regex_sed"`
26172 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26173 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26179 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26180 sed -n "$gl_absolute_header_sed"`
26182 gl_header
=$gl_cv_absolute_signal_h
26183 gl_cv_next_signal_h
='"'$gl_header'"'
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
26188 $as_echo "$gl_cv_next_signal_h" >&6; }
26190 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
26192 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26193 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26194 gl_next_as_first_directive
='<'signal.h
'>'
26196 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26197 gl_next_as_first_directive
=$gl_cv_next_signal_h
26199 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
26205 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
26206 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
26207 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
26208 #include <signal.h>
26211 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
26214 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
26223 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
26224 #include <signal.h>
26227 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
26230 HAVE_SIGHANDLER_T
=0
26238 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
26239 /* <sys/types.h> is not needed according to POSIX, but the
26240 <sys/socket.h> in i386-unknown-freebsd4.10 and
26241 powerpc-apple-darwin5.5 required it. */
26242 #include <sys/types.h>
26243 #if HAVE_SYS_SOCKET_H
26244 # include <sys/socket.h>
26245 #elif HAVE_WS2TCPIP_H
26246 # include <ws2tcpip.h>
26250 if test "x$ac_cv_type_socklen_t" = xyes
; then :
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
26254 $as_echo_n "checking for socklen_t equivalent... " >&6; }
26255 if ${gl_cv_socklen_t_equiv+:} false
; then :
26256 $as_echo_n "(cached) " >&6
26258 # Systems have either "struct sockaddr *" or
26259 # "void *" as the second argument to getpeername
26260 gl_cv_socklen_t_equiv
=
26261 for arg2
in "struct sockaddr" void
; do
26262 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
26263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26264 /* end confdefs.h. */
26265 #include <sys/types.h>
26266 #include <sys/socket.h>
26268 int getpeername (int, $arg2 *, $t *);
26273 getpeername (0, 0, &len);
26278 if ac_fn_c_try_compile
"$LINENO"; then :
26279 gl_cv_socklen_t_equiv
="$t"
26281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26282 test "$gl_cv_socklen_t_equiv" != "" && break
26284 test "$gl_cv_socklen_t_equiv" != "" && break
26286 if test "$gl_cv_socklen_t_equiv" = ""; then
26287 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
26292 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
26294 cat >>confdefs.h
<<_ACEOF
26295 #define socklen_t $gl_cv_socklen_t_equiv
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26302 $as_echo_n "checking for ssize_t... " >&6; }
26303 if ${gt_cv_ssize_t+:} false
; then :
26304 $as_echo_n "(cached) " >&6
26306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h. */
26308 #include <sys/types.h>
26312 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26318 if ac_fn_c_try_compile
"$LINENO"; then :
26323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26326 $as_echo "$gt_cv_ssize_t" >&6; }
26327 if test $gt_cv_ssize_t = no
; then
26329 $as_echo "#define ssize_t int" >>confdefs.h
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
26343 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
26344 if ${gl_cv_func_stat_file_slash+:} false
; then :
26345 $as_echo_n "(cached) " >&6
26348 # Assume that if we have lstat, we can also check symlinks.
26349 if test $ac_cv_func_lstat = yes; then
26350 ln -s conftest.tmp conftest.lnk
26352 if test "$cross_compiling" = yes; then :
26354 # Guess yes on Linux systems.
26355 linux-
* | linux
) gl_cv_func_stat_file_slash
="guessing yes" ;;
26356 # Guess yes on glibc systems.
26357 *-gnu* | gnu
*) gl_cv_func_stat_file_slash
="guessing yes" ;;
26358 # If we don't know, obey --enable-cross-guesses.
26359 *) gl_cv_func_stat_file_slash
="$gl_cross_guess_normal" ;;
26363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26364 /* end confdefs.h. */
26365 #include <sys/stat.h>
26372 if (!stat ("conftest.tmp/", &st))
26375 if (!stat ("conftest.lnk/", &st))
26384 if ac_fn_c_try_run
"$LINENO"; then :
26385 gl_cv_func_stat_file_slash
=yes
26387 gl_cv_func_stat_file_slash
=no
26389 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26390 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26393 rm -f conftest.tmp conftest.lnk
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
26396 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
26397 case $gl_cv_func_stat_file_slash in
26401 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
26411 if test $REPLACE_STAT = 1; then
26420 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
26432 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
26452 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
26460 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>
26461 #include <sys/stat.h>
26463 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
26465 cat >>confdefs.h
<<_ACEOF
26466 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
26470 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
26471 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
26472 $as_echo_n "(cached) " >&6
26474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26475 /* end confdefs.h. */
26477 #include <sys/types.h>
26478 #include <sys/stat.h>
26479 #if HAVE_SYS_TIME_H
26480 # include <sys/time.h>
26483 struct timespec ts;
26496 if ac_fn_c_try_compile
"$LINENO"; then :
26497 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
26499 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
26501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26504 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26505 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26507 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
26511 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>
26512 #include <sys/stat.h>
26514 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
26516 cat >>confdefs.h
<<_ACEOF
26517 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
26522 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
26523 #include <sys/stat.h>
26525 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
26527 cat >>confdefs.h
<<_ACEOF
26528 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26533 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>
26534 #include <sys/stat.h>
26536 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
26538 cat >>confdefs.h
<<_ACEOF
26539 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
26555 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>
26556 #include <sys/stat.h>
26558 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
; then :
26560 cat >>confdefs.h
<<_ACEOF
26561 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26566 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26567 #include <sys/stat.h>
26569 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
; then :
26571 cat >>confdefs.h
<<_ACEOF
26572 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26577 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>
26578 #include <sys/stat.h>
26580 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
; then :
26582 cat >>confdefs.h
<<_ACEOF
26583 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26596 $as_echo_n "checking for working stdalign.h... " >&6; }
26597 if ${gl_cv_header_working_stdalign_h+:} false
; then :
26598 $as_echo_n "(cached) " >&6
26600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26601 /* end confdefs.h. */
26602 #include <stdalign.h>
26603 #include <stddef.h>
26605 /* Test that alignof yields a result consistent with offsetof.
26606 This catches GCC bug 52023
26607 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26609 template <class t> struct alignof_helper { char a; t b; };
26610 # define ao(type) offsetof (alignof_helper<type>, b)
26612 # define ao(type) offsetof (struct { char a; type b; }, b)
26614 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26615 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26616 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26618 /* Test _Alignas only on platforms where gnulib can help. */
26620 ((defined __cplusplus && 201103 <= __cplusplus) \
26621 || (defined __APPLE__ && defined __MACH__ \
26622 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
26624 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
26625 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
26626 || 1300 <= _MSC_VER)
26627 struct alignas_test { char c; char alignas (8) alignas_8; };
26628 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26640 if ac_fn_c_try_compile
"$LINENO"; then :
26641 gl_cv_header_working_stdalign_h
=yes
26643 gl_cv_header_working_stdalign_h
=no
26645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26648 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26650 if test $gl_cv_header_working_stdalign_h = yes; then
26653 STDALIGN_H
='stdalign.h'
26657 if test -n "$STDALIGN_H"; then
26658 GL_GENERATE_STDALIGN_H_TRUE
=
26659 GL_GENERATE_STDALIGN_H_FALSE
='#'
26661 GL_GENERATE_STDALIGN_H_TRUE
='#'
26662 GL_GENERATE_STDALIGN_H_FALSE
=
26670 if test "$ac_cv_header_stdbool_h" = yes; then
26673 if test -z "$GCC"; then
26674 STDBOOL_H
='stdbool.h'
26684 STDBOOL_H
='stdbool.h'
26687 if test -n "$STDBOOL_H"; then
26688 GL_GENERATE_STDBOOL_H_TRUE
=
26689 GL_GENERATE_STDBOOL_H_FALSE
='#'
26691 GL_GENERATE_STDBOOL_H_TRUE
='#'
26692 GL_GENERATE_STDBOOL_H_FALSE
=
26696 if test "$ac_cv_type__Bool" = yes; then
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
26709 $as_echo_n "checking for good max_align_t... " >&6; }
26710 if ${gl_cv_type_max_align_t+:} false
; then :
26711 $as_echo_n "(cached) " >&6
26713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26714 /* end confdefs.h. */
26715 #include <stddef.h>
26716 unsigned int s = sizeof (max_align_t);
26717 #if defined __GNUC__ || defined __IBM__ALIGNOF__
26718 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
26719 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
26730 if ac_fn_c_try_compile
"$LINENO"; then :
26731 gl_cv_type_max_align_t
=yes
26733 gl_cv_type_max_align_t
=no
26735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
26739 $as_echo "$gl_cv_type_max_align_t" >&6; }
26740 if test $gl_cv_type_max_align_t = no
; then
26745 if test $gt_cv_c_wchar_t = no
; then
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26751 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26752 if ${gl_cv_decl_null_works+:} false
; then :
26753 $as_echo_n "(cached) " >&6
26755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26756 /* end confdefs.h. */
26757 #include <stddef.h>
26758 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26768 if ac_fn_c_try_compile
"$LINENO"; then :
26769 gl_cv_decl_null_works
=yes
26771 gl_cv_decl_null_works
=no
26773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26776 $as_echo "$gl_cv_decl_null_works" >&6; }
26777 if test $gl_cv_decl_null_works = no
; then
26783 if test -n "$STDDEF_H"; then
26784 GL_GENERATE_STDDEF_H_TRUE
=
26785 GL_GENERATE_STDDEF_H_FALSE
='#'
26787 GL_GENERATE_STDDEF_H_TRUE
='#'
26788 GL_GENERATE_STDDEF_H_FALSE
=
26791 if test -n "$STDDEF_H"; then
26800 if test $gl_cv_have_include_next = yes; then
26801 gl_cv_next_stddef_h
='<'stddef.h
'>'
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26804 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26805 if ${gl_cv_next_stddef_h+:} false
; then :
26806 $as_echo_n "(cached) " >&6
26811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26812 /* end confdefs.h. */
26813 #include <stddef.h>
26816 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26817 *) gl_absname_cpp
="$ac_cpp" ;;
26822 gl_dirsep_regex
='[/\\]'
26825 gl_dirsep_regex
='\/'
26828 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26829 gl_header_literal_regex
=`echo 'stddef.h' \
26830 | sed -e "$gl_make_literal_regex_sed"`
26831 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26832 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26838 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26839 sed -n "$gl_absolute_header_sed"`
26841 gl_header
=$gl_cv_absolute_stddef_h
26842 gl_cv_next_stddef_h
='"'$gl_header'"'
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26847 $as_echo "$gl_cv_next_stddef_h" >&6; }
26849 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
26851 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26852 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26853 gl_next_as_first_directive
='<'stddef.h
'>'
26855 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26856 gl_next_as_first_directive
=$gl_cv_next_stddef_h
26858 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
26868 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
26879 if test $gl_cv_have_include_next = yes; then
26880 gl_cv_next_stdio_h
='<'stdio.h
'>'
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26883 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26884 if ${gl_cv_next_stdio_h+:} false
; then :
26885 $as_echo_n "(cached) " >&6
26890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26891 /* end confdefs.h. */
26895 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26896 *) gl_absname_cpp
="$ac_cpp" ;;
26901 gl_dirsep_regex
='[/\\]'
26904 gl_dirsep_regex
='\/'
26907 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26908 gl_header_literal_regex
=`echo 'stdio.h' \
26909 | sed -e "$gl_make_literal_regex_sed"`
26910 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26911 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26917 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26918 sed -n "$gl_absolute_header_sed"`
26920 gl_header
=$gl_cv_absolute_stdio_h
26921 gl_cv_next_stdio_h
='"'$gl_header'"'
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26926 $as_echo "$gl_cv_next_stdio_h" >&6; }
26928 NEXT_STDIO_H
=$gl_cv_next_stdio_h
26930 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26932 gl_next_as_first_directive
='<'stdio.h
'>'
26934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26935 gl_next_as_first_directive
=$gl_cv_next_stdio_h
26937 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
26944 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
26945 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
26946 $as_echo_n "(cached) " >&6
26948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26949 /* end confdefs.h. */
26951 #define __STDC_FORMAT_MACROS 1
26953 #include <inttypes.h>
26954 /* For non-mingw systems, compilation will trivially succeed.
26955 For mingw, compilation will succeed for older mingw (system
26956 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
26957 #if (defined _WIN32 && ! defined __CYGWIN__) && \
26958 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
26959 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
26970 if ac_fn_c_try_compile
"$LINENO"; then :
26971 gl_cv_func_printf_attribute_flavor
=system
26973 gl_cv_func_printf_attribute_flavor
=gnu
26975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
26978 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
26979 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
26981 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
26988 cat >>confdefs.h
<<_ACEOF
26989 #define GNULIB_FSCANF 1
26996 cat >>confdefs.h
<<_ACEOF
26997 #define GNULIB_SCANF 1
27035 if test $gl_cv_have_include_next = yes; then
27036 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
27039 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
27040 if ${gl_cv_next_stdlib_h+:} false
; then :
27041 $as_echo_n "(cached) " >&6
27046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27047 /* end confdefs.h. */
27048 #include <stdlib.h>
27051 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27052 *) gl_absname_cpp
="$ac_cpp" ;;
27057 gl_dirsep_regex
='[/\\]'
27060 gl_dirsep_regex
='\/'
27063 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27064 gl_header_literal_regex
=`echo 'stdlib.h' \
27065 | sed -e "$gl_make_literal_regex_sed"`
27066 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27067 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27073 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27074 sed -n "$gl_absolute_header_sed"`
27076 gl_header
=$gl_cv_absolute_stdlib_h
27077 gl_cv_next_stdlib_h
='"'$gl_header'"'
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
27082 $as_echo "$gl_cv_next_stdlib_h" >&6; }
27084 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
27086 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27087 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27088 gl_next_as_first_directive
='<'stdlib.h
'>'
27090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27091 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
27093 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
27107 for ac_func
in strchrnul
27109 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
27110 if test "x$ac_cv_func_strchrnul" = xyes
; then :
27111 cat >>confdefs.h
<<_ACEOF
27112 #define HAVE_STRCHRNUL 1
27118 if test $ac_cv_func_strchrnul = no
; then
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
27122 $as_echo_n "checking whether strchrnul works... " >&6; }
27123 if ${gl_cv_func_strchrnul_works+:} false
; then :
27124 $as_echo_n "(cached) " >&6
27126 if test "$cross_compiling" = yes; then :
27127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27128 /* end confdefs.h. */
27130 #if defined __CYGWIN__
27131 #include <cygwin/version.h>
27132 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
27140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27141 $EGREP "Lucky user" >/dev
/null
2>&1; then :
27142 gl_cv_func_strchrnul_works
="guessing yes"
27144 gl_cv_func_strchrnul_works
="guessing no"
27150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27151 /* end confdefs.h. */
27153 #include <string.h> /* for strchrnul */
27158 const char *buf = "a";
27159 return strchrnul (buf, 'b') != buf + 1;
27165 if ac_fn_c_try_run
"$LINENO"; then :
27166 gl_cv_func_strchrnul_works
=yes
27168 gl_cv_func_strchrnul_works
=no
27170 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27171 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
27177 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
27178 case "$gl_cv_func_strchrnul_works" in
27180 *) REPLACE_STRCHRNUL
=1 ;;
27184 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
27193 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
27208 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
27216 if test $ac_cv_func_strdup = yes; then
27217 if test $gl_cv_func_malloc_posix != yes; then
27222 if test $ac_cv_have_decl_strdup = no
; then
27226 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
27235 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
27250 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
27261 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
27263 $as_echo_n "checking for working strerror function... " >&6; }
27264 if ${gl_cv_func_working_strerror+:} false
; then :
27265 $as_echo_n "(cached) " >&6
27267 if test "$cross_compiling" = yes; then :
27269 # Guess yes on glibc systems.
27270 *-gnu* | gnu
*) gl_cv_func_working_strerror
="guessing yes" ;;
27271 # Guess yes on musl systems.
27272 *-musl*) gl_cv_func_working_strerror
="guessing yes" ;;
27273 # If we don't know, obey --enable-cross-guesses.
27274 *) gl_cv_func_working_strerror
="$gl_cross_guess_normal" ;;
27278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27279 /* end confdefs.h. */
27280 #include <string.h>
27285 if (!*strerror (-2)) return 1;
27290 if ac_fn_c_try_run
"$LINENO"; then :
27291 gl_cv_func_working_strerror
=yes
27293 gl_cv_func_working_strerror
=no
27295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27296 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
27302 $as_echo "$gl_cv_func_working_strerror" >&6; }
27303 case "$gl_cv_func_working_strerror" in
27310 case "$gl_cv_func_strerror_r_works" in
27311 *no
) REPLACE_STRERROR
=1 ;;
27318 if test $REPLACE_STRERROR = 1; then
27327 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
27332 cat >>confdefs.h
<<_ACEOF
27333 #define GNULIB_STRERROR 1
27348 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
27354 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
27363 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
27369 if test $ac_cv_header_sys_socket_h != yes; then
27370 for ac_header
in winsock2.h
27372 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27373 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
27374 cat >>confdefs.h
<<_ACEOF
27375 #define HAVE_WINSOCK2_H 1
27383 if test "$ac_cv_header_winsock2_h" = yes; then
27385 UNISTD_H_HAVE_WINSOCK2_H
=1
27386 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
27400 if test $ac_cv_have_decl_strerror_r = no
; then
27401 HAVE_DECL_STRERROR_R
=0
27404 if test $ac_cv_func_strerror_r = yes; then
27405 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
27406 if test $gl_cv_func_strerror_r_posix_signature = yes; then
27407 case "$gl_cv_func_strerror_r_works" in
27408 *no
) REPLACE_STRERROR_R
=1 ;;
27411 REPLACE_STRERROR_R
=1
27414 REPLACE_STRERROR_R
=1
27418 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
27427 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
27440 GNULIB_STRERROR_R
=1
27446 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
27452 cat >>confdefs.h
<<_ACEOF
27453 #define GNULIB_STRERROR_R_POSIX 1
27462 if test $REPLACE_STRSTR = 0; then
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
27464 $as_echo_n "checking whether strstr works in linear time... " >&6; }
27465 if ${gl_cv_func_strstr_linear+:} false
; then :
27466 $as_echo_n "(cached) " >&6
27468 if test "$cross_compiling" = yes; then :
27469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27470 /* end confdefs.h. */
27472 #include <features.h>
27473 #ifdef __GNU_LIBRARY__
27474 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
27475 && !(defined __i386__ || defined __x86_64__) \
27476 && !defined __UCLIBC__
27481 #include <cygwin/version.h>
27482 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
27488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27489 $EGREP "Lucky user" >/dev
/null
2>&1; then :
27490 gl_cv_func_strstr_linear
="guessing yes"
27492 gl_cv_func_strstr_linear
="$gl_cross_guess_normal"
27498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27499 /* end confdefs.h. */
27502 /* z/OS does not deliver signals while strstr() is running (thanks to
27503 restrictions on its LE runtime), which prevents us from limiting the
27504 running time of this test. */
27505 # error "This test does not work properly on z/OS"
27507 #include <signal.h> /* for signal */
27508 #include <string.h> /* for strstr */
27509 #include <stdlib.h> /* for malloc */
27510 #include <unistd.h> /* for alarm */
27511 static void quit (int sig) { _exit (sig + 128); }
27518 size_t m = 1000000;
27519 char *haystack = (char *) malloc (2 * m + 2);
27520 char *needle = (char *) malloc (m + 2);
27521 /* Failure to compile this test due to missing alarm is okay,
27522 since all such platforms (mingw) also have quadratic strstr. */
27523 signal (SIGALRM, quit);
27525 /* Check for quadratic performance. */
27526 if (haystack && needle)
27528 memset (haystack, 'A', 2 * m);
27529 haystack[2 * m] = 'B';
27530 haystack[2 * m + 1] = 0;
27531 memset (needle, 'A', m);
27534 if (!strstr (haystack, needle))
27537 /* Free allocated memory, in case some sanitizer is watching. */
27546 if ac_fn_c_try_run
"$LINENO"; then :
27547 gl_cv_func_strstr_linear
=yes
27549 gl_cv_func_strstr_linear
=no
27551 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27552 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
27558 $as_echo "$gl_cv_func_strstr_linear" >&6; }
27559 case "$gl_cv_func_strstr_linear" in
27567 if test $REPLACE_STRSTR = 1; then
27576 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
27582 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
27586 $as_echo_n "checking whether strstr works... " >&6; }
27587 if ${gl_cv_func_strstr_works_always+:} false
; then :
27588 $as_echo_n "(cached) " >&6
27590 if test "$cross_compiling" = yes; then :
27591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27592 /* end confdefs.h. */
27594 #ifdef __GNU_LIBRARY__
27595 #include <features.h>
27596 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
27597 || defined __UCLIBC__
27600 #elif defined __CYGWIN__
27601 #include <cygwin/version.h>
27602 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
27610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27611 $EGREP "Lucky user" >/dev
/null
2>&1; then :
27612 gl_cv_func_strstr_works_always
="guessing yes"
27614 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
27620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27621 /* end confdefs.h. */
27623 #include <string.h> /* for strstr */
27624 #ifdef __GNU_LIBRARY__
27625 #include <features.h>
27626 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
27630 #define P "_EF_BF_BD"
27631 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
27632 #define NEEDLE P P P P P
27637 return !!strstr (HAYSTACK, NEEDLE);
27643 if ac_fn_c_try_run
"$LINENO"; then :
27644 gl_cv_func_strstr_works_always
=yes
27646 gl_cv_func_strstr_works_always
=no
27648 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27649 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
27655 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
27656 case "$gl_cv_func_strstr_works_always" in
27664 if test $REPLACE_STRSTR = 1; then
27673 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
27687 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
27695 for ac_func
in strtok_r
27697 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
27698 if test "x$ac_cv_func_strtok_r" = xyes
; then :
27699 cat >>confdefs.h
<<_ACEOF
27700 #define HAVE_STRTOK_R 1
27706 if test $ac_cv_func_strtok_r = yes; then
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
27709 $as_echo_n "checking whether strtok_r works... " >&6; }
27710 if ${gl_cv_func_strtok_r_works+:} false
; then :
27711 $as_echo_n "(cached) " >&6
27713 if test "$cross_compiling" = yes; then :
27715 # Guess no on glibc systems.
27716 *-gnu* | gnu
*) gl_cv_func_strtok_r_works
="guessing no" ;;
27717 # Guess yes on native Windows.
27718 mingw
*) gl_cv_func_strtok_r_works
="guessing yes" ;;
27719 *) gl_cv_func_strtok_r_works
="guessing yes" ;;
27723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27724 /* end confdefs.h. */
27726 #ifndef __OPTIMIZE__
27727 # define __OPTIMIZE__ 1
27729 #undef __OPTIMIZE_SIZE__
27730 #undef __NO_INLINE__
27731 #include <stdlib.h>
27732 #include <string.h>
27737 static const char dummy[] = "\177\01a";
27738 char delimiters[] = "xxxxxxxx";
27739 char *save_ptr = (char *) dummy;
27740 strtok_r (delimiters, "x", &save_ptr);
27741 strtok_r (NULL, "x", &save_ptr);
27749 if ac_fn_c_try_run
"$LINENO"; then :
27750 gl_cv_func_strtok_r_works
=yes
27752 gl_cv_func_strtok_r_works
=no
27754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27755 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
27761 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
27762 case "$gl_cv_func_strtok_r_works" in
27764 UNDEFINE_STRTOK_R
=1
27771 if test $ac_cv_have_decl_strtok_r = no
; then
27772 HAVE_DECL_STRTOK_R
=0
27775 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
27784 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
27801 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
27821 if test $gl_cv_have_include_next = yes; then
27822 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27825 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27826 if ${gl_cv_next_sys_stat_h+:} false
; then :
27827 $as_echo_n "(cached) " >&6
27830 if test $ac_cv_header_sys_stat_h = yes; then
27835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27836 /* end confdefs.h. */
27837 #include <sys/stat.h>
27840 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27841 *) gl_absname_cpp
="$ac_cpp" ;;
27846 gl_dirsep_regex
='[/\\]'
27849 gl_dirsep_regex
='\/'
27852 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27853 gl_header_literal_regex
=`echo 'sys/stat.h' \
27854 | sed -e "$gl_make_literal_regex_sed"`
27855 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27856 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27862 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27863 sed -n "$gl_absolute_header_sed"`
27865 gl_header
=$gl_cv_absolute_sys_stat_h
27866 gl_cv_next_sys_stat_h
='"'$gl_header'"'
27868 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
27873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27874 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27876 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
27878 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27879 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27880 gl_next_as_first_directive
='<'sys
/stat.h
'>'
27882 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27883 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
27885 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
27894 WINDOWS_STAT_TIMESPEC
=0
27903 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27904 #include <sys/stat.h>
27906 if test "x$ac_cv_type_nlink_t" = xyes
; then :
27910 $as_echo "#define nlink_t int" >>confdefs.h
27937 if test $gl_cv_have_include_next = yes; then
27938 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
27940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
27941 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
27942 if ${gl_cv_next_sys_uio_h+:} false
; then :
27943 $as_echo_n "(cached) " >&6
27946 if test $ac_cv_header_sys_uio_h = yes; then
27951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27952 /* end confdefs.h. */
27953 #include <sys/uio.h>
27956 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27957 *) gl_absname_cpp
="$ac_cpp" ;;
27962 gl_dirsep_regex
='[/\\]'
27965 gl_dirsep_regex
='\/'
27968 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27969 gl_header_literal_regex
=`echo 'sys/uio.h' \
27970 | sed -e "$gl_make_literal_regex_sed"`
27971 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27972 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27978 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27979 sed -n "$gl_absolute_header_sed"`
27981 gl_header
=$gl_cv_absolute_sys_uio_h
27982 gl_cv_next_sys_uio_h
='"'$gl_header'"'
27984 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
27990 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
27992 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
27994 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27995 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27996 gl_next_as_first_directive
='<'sys
/uio.h
'>'
27998 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27999 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
28001 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
28006 if test $ac_cv_header_sys_uio_h = yes; then
28029 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,
28030 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
28031 been included before. */
28032 #if defined __MINGW32__
28033 # include <unistd.h>
28038 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
28044 cat >>confdefs.h
<<_ACEOF
28045 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
28048 if test $ac_cv_have_decl_localtime_r = no
; then
28049 HAVE_DECL_LOCALTIME_R
=0
28053 if test $ac_cv_func_localtime_r = yes; then
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
28056 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
28057 if ${gl_cv_time_r_posix+:} false
; then :
28058 $as_echo_n "(cached) " >&6
28060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28061 /* end confdefs.h. */
28062 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
28063 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
28064 been included before. */
28065 #if defined __MINGW32__
28066 # include <unistd.h>
28073 /* We don't need to append 'restrict's to the argument types,
28074 even though the POSIX signature has the 'restrict's,
28075 since C99 says they can't affect type compatibility. */
28076 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
28078 /* Check the return type is a pointer.
28079 On HP-UX 10 it is 'int'. */
28080 *localtime_r (0, 0);
28086 if ac_fn_c_try_compile
"$LINENO"; then :
28087 gl_cv_time_r_posix
=yes
28089 gl_cv_time_r_posix
=no
28091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
28095 $as_echo "$gl_cv_time_r_posix" >&6; }
28096 if test $gl_cv_time_r_posix = yes; then
28097 REPLACE_LOCALTIME_R
=0
28099 REPLACE_LOCALTIME_R
=1
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
28104 $as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
28105 if ${gl_cv_func_localtime_r_inline+:} false
; then :
28106 $as_echo_n "(cached) " >&6
28108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28109 /* end confdefs.h. */
28110 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
28111 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
28112 been included before. */
28113 #if defined __MINGW32__
28114 # include <unistd.h>
28123 localtime_r (&a, &r);
28130 if ac_fn_c_try_link
"$LINENO"; then :
28131 gl_cv_func_localtime_r_inline
=yes
28133 gl_cv_func_localtime_r_inline
=no
28135 rm -f core conftest.err conftest.
$ac_objext \
28136 conftest
$ac_exeext conftest.
$ac_ext
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
28140 $as_echo "$gl_cv_func_localtime_r_inline" >&6; }
28141 if test $gl_cv_func_localtime_r_inline = yes; then
28142 REPLACE_LOCALTIME_R
=1
28146 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
28155 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
28172 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
28188 if test $gl_cv_have_include_next = yes; then
28189 gl_cv_next_unistd_h
='<'unistd.h
'>'
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
28192 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
28193 if ${gl_cv_next_unistd_h+:} false
; then :
28194 $as_echo_n "(cached) " >&6
28197 if test $ac_cv_header_unistd_h = yes; then
28202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28203 /* end confdefs.h. */
28204 #include <unistd.h>
28207 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28208 *) gl_absname_cpp
="$ac_cpp" ;;
28213 gl_dirsep_regex
='[/\\]'
28216 gl_dirsep_regex
='\/'
28219 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28220 gl_header_literal_regex
=`echo 'unistd.h' \
28221 | sed -e "$gl_make_literal_regex_sed"`
28222 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28223 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28229 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28230 sed -n "$gl_absolute_header_sed"`
28232 gl_header
=$gl_cv_absolute_unistd_h
28233 gl_cv_next_unistd_h
='"'$gl_header'"'
28235 gl_cv_next_unistd_h
='<'unistd.h
'>'
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
28241 $as_echo "$gl_cv_next_unistd_h" >&6; }
28243 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
28245 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28247 gl_next_as_first_directive
='<'unistd.h
'>'
28249 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28250 gl_next_as_first_directive
=$gl_cv_next_unistd_h
28252 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
28257 if test $ac_cv_header_unistd_h = yes; then
28278 if test $ac_cv_have_decl_unsetenv = no
; then
28279 HAVE_DECL_UNSETENV
=0
28281 for ac_func
in unsetenv
28283 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
28284 if test "x$ac_cv_func_unsetenv" = xyes
; then :
28285 cat >>confdefs.h
<<_ACEOF
28286 #define HAVE_UNSETENV 1
28292 if test $ac_cv_func_unsetenv = no
; then
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
28297 $as_echo_n "checking for unsetenv() return type... " >&6; }
28298 if ${gt_cv_func_unsetenv_ret+:} false
; then :
28299 $as_echo_n "(cached) " >&6
28301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28302 /* end confdefs.h. */
28305 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
28306 #include <stdlib.h>
28311 int unsetenv (const char *name);
28321 if ac_fn_c_try_compile
"$LINENO"; then :
28322 gt_cv_func_unsetenv_ret
='int'
28324 gt_cv_func_unsetenv_ret
='void'
28326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
28329 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
28330 if test $gt_cv_func_unsetenv_ret = 'void'; then
28332 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
28338 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
28339 if ${gl_cv_func_unsetenv_works+:} false
; then :
28340 $as_echo_n "(cached) " >&6
28342 if test "$cross_compiling" = yes; then :
28344 # Guess yes on glibc systems.
28345 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
28346 # If we don't know, obey --enable-cross-guesses.
28347 *) gl_cv_func_unsetenv_works
="$gl_cross_guess_normal" ;;
28351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28352 /* end confdefs.h. */
28354 #include <stdlib.h>
28356 extern char **environ;
28362 char entry1[] = "a=1";
28363 char entry2[] = "b=2";
28364 char *env[] = { entry1, entry2, NULL };
28365 if (putenv ((char *) "a=1")) return 1;
28366 if (putenv (entry2)) return 2;
28369 if (getenv ("a")) return 3;
28370 if (!unsetenv ("") || errno != EINVAL) return 4;
28373 if (!getenv ("a")) return 5;
28376 if (getenv ("a")) return 6;
28382 if ac_fn_c_try_run
"$LINENO"; then :
28383 gl_cv_func_unsetenv_works
=yes
28385 gl_cv_func_unsetenv_works
=no
28387 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28388 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
28393 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
28394 case "$gl_cv_func_unsetenv_works" in
28402 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
28411 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
28429 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
28445 if test $gl_cv_have_include_next = yes; then
28446 gl_cv_next_wchar_h
='<'wchar.h
'>'
28448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
28449 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
28450 if ${gl_cv_next_wchar_h+:} false
; then :
28451 $as_echo_n "(cached) " >&6
28454 if test $ac_cv_header_wchar_h = yes; then
28459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28460 /* end confdefs.h. */
28464 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28465 *) gl_absname_cpp
="$ac_cpp" ;;
28470 gl_dirsep_regex
='[/\\]'
28473 gl_dirsep_regex
='\/'
28476 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28477 gl_header_literal_regex
=`echo 'wchar.h' \
28478 | sed -e "$gl_make_literal_regex_sed"`
28479 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28480 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28486 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28487 sed -n "$gl_absolute_header_sed"`
28489 gl_header
=$gl_cv_absolute_wchar_h
28490 gl_cv_next_wchar_h
='"'$gl_header'"'
28492 gl_cv_next_wchar_h
='<'wchar.h
'>'
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
28498 $as_echo "$gl_cv_next_wchar_h" >&6; }
28500 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
28502 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28503 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28504 gl_next_as_first_directive
='<'wchar.h
'>'
28506 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28507 gl_next_as_first_directive
=$gl_cv_next_wchar_h
28509 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
28514 if test $ac_cv_header_wchar_h = yes; then
28524 if test $gt_cv_c_wint_t = yes; then
28542 if test $ac_cv_func_iswcntrl = yes; then
28550 if test $gt_cv_c_wint_t = yes; then
28568 if test $gl_cv_have_include_next = yes; then
28569 gl_cv_next_wctype_h
='<'wctype.h
'>'
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
28572 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
28573 if ${gl_cv_next_wctype_h+:} false
; then :
28574 $as_echo_n "(cached) " >&6
28577 if test $ac_cv_header_wctype_h = yes; then
28582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28583 /* end confdefs.h. */
28584 #include <wctype.h>
28587 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
28588 *) gl_absname_cpp
="$ac_cpp" ;;
28593 gl_dirsep_regex
='[/\\]'
28596 gl_dirsep_regex
='\/'
28599 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
28600 gl_header_literal_regex
=`echo 'wctype.h' \
28601 | sed -e "$gl_make_literal_regex_sed"`
28602 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28603 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28609 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28610 sed -n "$gl_absolute_header_sed"`
28612 gl_header
=$gl_cv_absolute_wctype_h
28613 gl_cv_next_wctype_h
='"'$gl_header'"'
28615 gl_cv_next_wctype_h
='<'wctype.h
'>'
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
28621 $as_echo "$gl_cv_next_wctype_h" >&6; }
28623 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
28625 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
28626 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28627 gl_next_as_first_directive
='<'wctype.h
'>'
28629 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28630 gl_next_as_first_directive
=$gl_cv_next_wctype_h
28632 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
28637 if test $ac_cv_header_wctype_h = yes; then
28638 if test $ac_cv_func_iswcntrl = yes; then
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
28640 $as_echo_n "checking whether iswcntrl works... " >&6; }
28641 if ${gl_cv_func_iswcntrl_works+:} false
; then :
28642 $as_echo_n "(cached) " >&6
28645 if test "$cross_compiling" = yes; then :
28646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28647 /* end confdefs.h. */
28648 #include <stdlib.h>
28649 #if __GNU_LIBRARY__ == 1
28650 Linux libc5 i18n is broken.
28660 if ac_fn_c_try_compile
"$LINENO"; then :
28661 gl_cv_func_iswcntrl_works
="guessing yes"
28663 gl_cv_func_iswcntrl_works
="guessing no"
28665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28669 /* end confdefs.h. */
28671 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
28672 included before <wchar.h>.
28673 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
28674 must be included before <wchar.h>. */
28675 #include <stddef.h>
28679 #include <wctype.h>
28680 int main () { return iswprint ('x') == 0; }
28683 if ac_fn_c_try_run
"$LINENO"; then :
28684 gl_cv_func_iswcntrl_works
=yes
28686 gl_cv_func_iswcntrl_works
=no
28688 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28689 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
28695 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
28703 if test $GNULIB_OVERRIDES_WINT_T = 1; then
28706 case "$gl_cv_func_iswcntrl_works" in
28707 *yes) REPLACE_ISWCNTRL
=0 ;;
28708 *) REPLACE_ISWCNTRL
=1 ;;
28713 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
28717 if test $REPLACE_ISWCNTRL = 1; then
28720 for ac_func
in towlower
28722 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
28723 if test "x$ac_cv_func_towlower" = xyes
; then :
28724 cat >>confdefs.h
<<_ACEOF
28725 #define HAVE_TOWLOWER 1
28731 if test $ac_cv_func_towlower = yes; then
28734 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
28735 included before <wchar.h>.
28736 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
28737 must be included before <wchar.h>. */
28738 #include <stddef.h>
28743 # include <wctype.h>
28747 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
28753 cat >>confdefs.h
<<_ACEOF
28754 #define HAVE_DECL_TOWLOWER $ac_have_decl
28757 if test $ac_cv_have_decl_towlower = yes; then
28766 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
28771 $as_echo_n "checking for wctype_t... " >&6; }
28772 if ${gl_cv_type_wctype_t+:} false
; then :
28773 $as_echo_n "(cached) " >&6
28775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28776 /* end confdefs.h. */
28777 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
28778 included before <wchar.h>.
28779 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
28780 must be included before <wchar.h>. */
28781 #include <stddef.h>
28786 # include <wctype.h>
28798 if ac_fn_c_try_compile
"$LINENO"; then :
28799 gl_cv_type_wctype_t
=yes
28801 gl_cv_type_wctype_t
=no
28803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
28807 $as_echo "$gl_cv_type_wctype_t" >&6; }
28808 if test $gl_cv_type_wctype_t = no
; then
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
28813 $as_echo_n "checking for wctrans_t... " >&6; }
28814 if ${gl_cv_type_wctrans_t+:} false
; then :
28815 $as_echo_n "(cached) " >&6
28817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28818 /* end confdefs.h. */
28819 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
28820 included before <wchar.h>.
28821 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
28822 must be included before <wchar.h>. */
28823 #include <stddef.h>
28827 #include <wctype.h>
28838 if ac_fn_c_try_compile
"$LINENO"; then :
28839 gl_cv_type_wctrans_t
=yes
28841 gl_cv_type_wctrans_t
=no
28843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
28847 $as_echo "$gl_cv_type_wctrans_t" >&6; }
28848 if test $gl_cv_type_wctrans_t = no
; then
28867 gl_LIBOBJS
="$gl_LIBOBJS windows-mutex.$ac_objext"
28882 gl_LIBOBJS
="$gl_LIBOBJS windows-once.$ac_objext"
28897 gl_LIBOBJS
="$gl_LIBOBJS windows-recmutex.$ac_objext"
28912 gl_LIBOBJS
="$gl_LIBOBJS windows-rwlock.$ac_objext"
28916 # End of code from modules
28938 gl_source_base
='tests'
28939 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
28941 gl_module_indicator_condition
=$gltests_WITNESS
28951 LIBGNU_LIBDEPS
="$gl_libdeps"
28953 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
28957 am__api_version
='1.15'
28959 # Find a good install program. We prefer a C program (faster),
28960 # so one script is as good as another. But avoid the broken or
28961 # incompatible versions:
28962 # SysV /etc/install, /usr/sbin/install
28963 # SunOS /usr/etc/install
28964 # IRIX /sbin/install
28966 # AmigaOS /C/install, which installs bootblocks on floppy discs
28967 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
28968 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
28969 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
28970 # OS/2's system install, which has a completely different semantic
28971 # ./install, which can be erroneously created by make from ./install.sh.
28972 # Reject install programs that cannot install multiple files.
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
28974 $as_echo_n "checking for a BSD-compatible install... " >&6; }
28975 if test -z "$INSTALL"; then
28976 if ${ac_cv_path_install+:} false
; then :
28977 $as_echo_n "(cached) " >&6
28979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28980 for as_dir
in $PATH
28983 test -z "$as_dir" && as_dir
=.
28984 # Account for people who put trailing slashes in PATH elements.
28985 case $as_dir/ in #((
28986 .
/ | .
// |
/[cC
]/* | \
28987 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
28988 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
28991 # OSF1 and SCO ODT 3.0 have their own names for install.
28992 # Don't use installbsd from OSF since it installs stuff as root
28994 for ac_prog
in ginstall scoinst
install; do
28995 for ac_exec_ext
in '' $ac_executable_extensions; do
28996 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
28997 if test $ac_prog = install &&
28998 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
28999 # AIX install. It has an incompatible calling convention.
29001 elif test $ac_prog = install &&
29002 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
29003 # program-specific install script used by HP pwplus--don't use.
29006 rm -rf conftest.one conftest.two conftest.dir
29007 echo one
> conftest.one
29008 echo two
> conftest.two
29010 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
29011 test -s conftest.one
&& test -s conftest.two
&&
29012 test -s conftest.dir
/conftest.one
&&
29013 test -s conftest.dir
/conftest.two
29015 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
29028 rm -rf conftest.one conftest.two conftest.dir
29031 if test "${ac_cv_path_install+set}" = set; then
29032 INSTALL
=$ac_cv_path_install
29034 # As a last resort, use the slow shell script. Don't cache a
29035 # value for INSTALL within a source directory, because that will
29036 # break other packages using the cache if that directory is
29037 # removed, or if the value is a relative name.
29038 INSTALL
=$ac_install_sh
29041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
29042 $as_echo "$INSTALL" >&6; }
29044 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
29045 # It thinks the first close brace ends the variable substitution.
29046 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
29048 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
29050 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
29053 $as_echo_n "checking whether build environment is sane... " >&6; }
29054 # Reject unsafe characters in $srcdir or the absolute working directory
29055 # name. Accept space and tab only in the latter.
29059 *[\\\"\
#\$\&\'\`$am_lf]*)
29060 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
29063 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
29064 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
29067 # Do 'set' in a subshell so we don't clobber the current shell's
29068 # arguments. Must try -L first in case configure is actually a
29069 # symlink; some systems play weird games with the mod time of symlinks
29070 # (eg FreeBSD returns the mod time of the symlink's containing
29074 for am_try
in 1 2; do
29075 echo "timestamp, slept: $am_has_slept" > conftest.
file
29076 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
29077 if test "$*" = "X"; then
29079 set X
`ls -t "$srcdir/configure" conftest.file`
29081 if test "$*" != "X $srcdir/configure conftest.file" \
29082 && test "$*" != "X conftest.file $srcdir/configure"; then
29084 # If neither matched, then we have a broken ls. This can happen
29085 # if, for instance, CONFIG_SHELL is bash and it inherits a
29086 # broken ls alias from the environment. This has actually
29087 # happened. Such a system could not be considered "sane".
29088 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
29089 alias in your environment" "$LINENO" 5
29091 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
29098 test "$2" = conftest.
file
29104 as_fn_error $?
"newly created file is older than distributed files!
29105 Check your system clock" "$LINENO" 5
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29108 $as_echo "yes" >&6; }
29109 # If we didn't sleep, we still need to ensure time stamps of config.status and
29110 # generated files are strictly newer.
29112 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
29117 rm -f conftest.
file
29119 test "$program_prefix" != NONE
&&
29120 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
29121 # Use a double $ so make ignores it.
29122 test "$program_suffix" != NONE
&&
29123 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
29124 # Double any \ or $.
29125 # By default was `s,x,x', remove it if useless.
29126 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
29127 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
29129 # Expand $ac_aux_dir to an absolute path.
29130 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
29132 if test x
"${MISSING+set}" != xset
; then
29133 case $am_aux_dir in
29135 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
29137 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
29140 # Use eval to expand $SHELL
29141 if eval "$MISSING --is-lightweight"; then
29142 am_missing_run
="$MISSING "
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
29146 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
29149 if test x
"${install_sh+set}" != xset
; then
29150 case $am_aux_dir in
29152 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
29154 install_sh
="\${SHELL} $am_aux_dir/install-sh"
29158 # Installed binaries are usually stripped using 'strip' when the user
29159 # run "make install-strip". However 'strip' might not be the right
29160 # tool to use in cross-compilation environments, therefore Automake
29161 # will honor the 'STRIP' environment variable to overrule this program.
29162 if test "$cross_compiling" != no
; then
29163 if test -n "$ac_tool_prefix"; then
29164 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
29165 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29167 $as_echo_n "checking for $ac_word... " >&6; }
29168 if ${ac_cv_prog_STRIP+:} false
; then :
29169 $as_echo_n "(cached) " >&6
29171 if test -n "$STRIP"; then
29172 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
29174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29175 for as_dir
in $PATH
29178 test -z "$as_dir" && as_dir
=.
29179 for ac_exec_ext
in '' $ac_executable_extensions; do
29180 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
29181 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
29182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29191 STRIP
=$ac_cv_prog_STRIP
29192 if test -n "$STRIP"; then
29193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
29194 $as_echo "$STRIP" >&6; }
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29197 $as_echo "no" >&6; }
29202 if test -z "$ac_cv_prog_STRIP"; then
29204 # Extract the first word of "strip", so it can be a program name with args.
29205 set dummy strip
; ac_word
=$2
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29207 $as_echo_n "checking for $ac_word... " >&6; }
29208 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
29209 $as_echo_n "(cached) " >&6
29211 if test -n "$ac_ct_STRIP"; then
29212 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
29214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29215 for as_dir
in $PATH
29218 test -z "$as_dir" && as_dir
=.
29219 for ac_exec_ext
in '' $ac_executable_extensions; do
29220 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
29221 ac_cv_prog_ac_ct_STRIP
="strip"
29222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29231 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
29232 if test -n "$ac_ct_STRIP"; then
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
29234 $as_echo "$ac_ct_STRIP" >&6; }
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29237 $as_echo "no" >&6; }
29240 if test "x$ac_ct_STRIP" = x
; then
29243 case $cross_compiling:$ac_tool_warned in
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29247 ac_tool_warned
=yes ;;
29252 STRIP
="$ac_cv_prog_STRIP"
29256 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
29258 for ac_prog
in gawk mawk nawk
awk
29260 # Extract the first word of "$ac_prog", so it can be a program name with args.
29261 set dummy
$ac_prog; ac_word
=$2
29262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29263 $as_echo_n "checking for $ac_word... " >&6; }
29264 if ${ac_cv_prog_AWK+:} false
; then :
29265 $as_echo_n "(cached) " >&6
29267 if test -n "$AWK"; then
29268 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
29270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
29271 for as_dir
in $PATH
29274 test -z "$as_dir" && as_dir
=.
29275 for ac_exec_ext
in '' $ac_executable_extensions; do
29276 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
29277 ac_cv_prog_AWK
="$ac_prog"
29278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29287 AWK
=$ac_cv_prog_AWK
29288 if test -n "$AWK"; then
29289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
29290 $as_echo "$AWK" >&6; }
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29293 $as_echo "no" >&6; }
29297 test -n "$AWK" && break
29300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
29301 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
29303 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
29304 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
29305 $as_echo_n "(cached) " >&6
29307 cat >conftest.
make <<\_ACEOF
29310 @
echo '@@@%%%=$(MAKE)=@@@%%%'
29312 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29313 case `${MAKE-make} -f conftest.make 2>/dev/null` in
29314 *@@@
%%%=?
*=@@@
%%%*)
29315 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
29317 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
29319 rm -f conftest.
make
29321 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29323 $as_echo "yes" >&6; }
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29327 $as_echo "no" >&6; }
29328 SET_MAKE
="MAKE=${MAKE-make}"
29331 rm -rf .tst
2>/dev
/null
29332 mkdir .tst
2>/dev
/null
29333 if test -d .tst
; then
29338 rmdir .tst
2>/dev
/null
29340 DEPDIR
="${am__leading_dot}deps"
29342 ac_config_commands
="$ac_config_commands depfiles"
29345 am_make
=${MAKE-make}
29346 cat > confinc
<< 'END'
29348 @
echo this is the am__doit target
29351 # If we don't find an include directive, just comment out the code.
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
29353 $as_echo_n "checking for style of include used by $am_make... " >&6; }
29357 # First try GNU make style include.
29358 echo "include confinc" > confmf
29359 # Ignore all kinds of additional output from 'make'.
29360 case `$am_make -s -f confmf 2> /dev/null` in #(
29361 *the\ am__doit\ target
*)
29362 am__include
=include
29367 # Now try BSD make style include.
29368 if test "$am__include" = "#"; then
29369 echo '.include "confinc"' > confmf
29370 case `$am_make -s -f confmf 2> /dev/null` in #(
29371 *the\ am__doit\ target
*)
29372 am__include
=.include
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
29381 $as_echo "$_am_result" >&6; }
29382 rm -f confinc confmf
29384 # Check whether --enable-dependency-tracking was given.
29385 if test "${enable_dependency_tracking+set}" = set; then :
29386 enableval
=$enable_dependency_tracking;
29389 if test "x$enable_dependency_tracking" != xno
; then
29390 am_depcomp
="$ac_aux_dir/depcomp"
29394 if test "x$enable_dependency_tracking" != xno; then
29403 # Check whether --enable-silent-rules was given.
29404 if test "${enable_silent_rules+set}" = set; then :
29405 enableval
=$enable_silent_rules;
29408 case $enable_silent_rules in # (((
29409 yes) AM_DEFAULT_VERBOSITY
=0;;
29410 no
) AM_DEFAULT_VERBOSITY
=1;;
29411 *) AM_DEFAULT_VERBOSITY
=1;;
29413 am_make
=${MAKE-make}
29414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
29415 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
29416 if ${am_cv_make_support_nested_variables+:} false
; then :
29417 $as_echo_n "(cached) " >&6
29419 if $as_echo 'TRUE=$(BAR$(V))
29425 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
29426 am_cv_make_support_nested_variables
=yes
29428 am_cv_make_support_nested_variables
=no
29431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
29432 $as_echo "$am_cv_make_support_nested_variables" >&6; }
29433 if test $am_cv_make_support_nested_variables = yes; then
29435 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
29437 AM_V
=$AM_DEFAULT_VERBOSITY
29438 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
29442 if test "`cd $srcdir && pwd`" != "`pwd`"; then
29443 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
29444 # is not polluted with repeated "-I."
29445 am__isrc
=' -I$(srcdir)'
29446 # test to see if srcdir already configured
29447 if test -f $srcdir/config.status
; then
29448 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
29452 # test whether we have cygpath
29453 if test -z "$CYGPATH_W"; then
29454 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
29455 CYGPATH_W
='cygpath -w'
29462 # Define the identity of the package.
29464 VERSION
='UNUSED-VERSION'
29467 # Some tools Automake needs.
29469 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
29472 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
29475 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
29478 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
29481 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
29483 # For better backward compatibility. To be removed once Automake 1.9.x
29484 # dies out for good. For more background, see:
29485 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
29486 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
29487 mkdir_p
='$(MKDIR_P)'
29489 # We need awk for the "check" target (and possibly the TAP driver). The
29490 # system "awk" is bad on some platforms.
29491 # Always define AMTAR for backward compatibility. Yes, it's still used
29492 # in the wild :-( We should find a proper way to deprecate it ...
29493 AMTAR
='$${TAR-tar}'
29496 # We'll loop over all known methods to create a tar archive until one works.
29497 _am_tools
='gnutar pax cpio none'
29499 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
29505 depcc
="$CC" am_compiler_list
=
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
29508 $as_echo_n "checking dependency style of $depcc... " >&6; }
29509 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
29510 $as_echo_n "(cached) " >&6
29512 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
29513 # We make a subdir and do the tests there. Otherwise we can end up
29514 # making bogus files that we don't know about and never remove. For
29515 # instance it was reported that on HP-UX the gcc test will end up
29516 # making a dummy file named 'D' -- because '-MD' means "put the output
29518 rm -rf conftest.dir
29520 # Copy depcomp to subdir because otherwise we won't find it if we're
29521 # using a relative directory.
29522 cp "$am_depcomp" conftest.dir
29524 # We will build objects and dependencies in a subdirectory because
29525 # it helps to detect inapplicable dependency modes. For instance
29526 # both Tru64's cc and ICC support -MD to output dependencies as a
29527 # side effect of compilation, but ICC will put the dependencies in
29528 # the current directory while Tru64 will put them in the object
29532 am_cv_CC_dependencies_compiler_type
=none
29533 if test "$am_compiler_list" = ""; then
29534 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
29536 am__universal
=false
29537 case " $depcc " in #(
29538 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
29541 for depmode
in $am_compiler_list; do
29542 # Setup a source with many dependencies, because some compilers
29543 # like to wrap large dependency lists on column 80 (with \), and
29544 # we should not choose a depcomp mode which is confused by this.
29546 # We need to recreate these files for each test, as the compiler may
29547 # overwrite some of them when testing with obscure command lines.
29548 # This happens at least with the AIX C compiler.
29550 for i
in 1 2 3 4 5 6; do
29551 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
29552 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
29553 # Solaris 10 /bin/sh.
29554 echo '/* dummy */' > sub
/conftst
$i.h
29556 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
29558 # We check with '-c' and '-o' for the sake of the "dashmstdout"
29559 # mode. It turns out that the SunPro C++ compiler does not properly
29560 # handle '-M -o', and we need to detect this. Also, some Intel
29561 # versions had trouble with output in subdirs.
29562 am__obj
=sub
/conftest.
${OBJEXT-o}
29563 am__minus_obj
="-o $am__obj"
29566 # This depmode causes a compiler race in universal mode.
29567 test "$am__universal" = false ||
continue
29570 # After this tag, mechanisms are not by side-effect, so they'll
29571 # only be used when explicitly requested.
29572 if test "x$enable_dependency_tracking" = xyes
; then
29578 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
29579 # This compiler won't grok '-c -o', but also, the minuso test has
29580 # not run yet. These depmodes are late enough in the game, and
29581 # so weak that their functioning should not be impacted.
29582 am__obj
=conftest.
${OBJEXT-o}
29587 if depmode
=$depmode \
29588 source=sub
/conftest.c object
=$am__obj \
29589 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
29590 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
29591 >/dev
/null
2>conftest.err
&&
29592 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
29593 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
29594 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
29595 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
29596 # icc doesn't choke on unknown options, it will just issue warnings
29597 # or remarks (even with -Werror). So we grep stderr for any message
29598 # that says an option was ignored or not supported.
29599 # When given -MP, icc 7.0 and 7.1 complain thusly:
29600 # icc: Command line warning: ignoring option '-M'; no argument required
29601 # The diagnosis changed in icc 8.0:
29602 # icc: Command line remark: option '-MP' not supported
29603 if (grep 'ignoring option' conftest.err ||
29604 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
29605 am_cv_CC_dependencies_compiler_type
=$depmode
29612 rm -rf conftest.dir
29614 am_cv_CC_dependencies_compiler_type
=none
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
29619 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
29620 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
29623 test "x$enable_dependency_tracking" != xno \
29624 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
29625 am__fastdepCC_TRUE
=
29626 am__fastdepCC_FALSE
='#'
29628 am__fastdepCC_TRUE
='#'
29629 am__fastdepCC_FALSE
=
29634 # POSIX will say in a future version that running "rm -f" with no argument
29635 # is OK; and we want to be able to make that assumption in our Makefile
29636 # recipes. So use an aggressive probe to check that the usage we want is
29637 # actually supported "in the wild" to an acceptable degree.
29638 # See automake bug#10828.
29639 # To make any issue more visible, cause the running configure to be aborted
29640 # by default if the 'rm' program in use doesn't match our expectations; the
29641 # user can still override this though.
29642 if rm -f && rm -fr && rm -rf; then : OK
; else
29646 Your 'rm' program seems unable to run without file operands specified
29647 on the command line, even when the '-f' option is present. This is contrary
29648 to the behaviour of most rm programs out there, and not conforming with
29649 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
29651 Please tell bug-automake@gnu.org about your system, including the value
29652 of your $PATH and any error possibly output before this message. This
29653 can help us improve future automake versions.
29656 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
29657 echo 'Configuration will proceed anyway, since you have set the' >&2
29658 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
29662 Aborting the configuration process, to ensure you take notice of the issue.
29664 You can download and install GNU coreutils to get an 'rm' implementation
29665 that behaves properly: <http://www.gnu.org/software/coreutils/>.
29667 If you want to complete the configuration process using your problematic
29668 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
29669 to "yes", and re-run configure.
29672 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
29677 # Check whether --enable-silent-rules was given.
29678 if test "${enable_silent_rules+set}" = set; then :
29679 enableval
=$enable_silent_rules;
29682 case $enable_silent_rules in # (((
29683 yes) AM_DEFAULT_VERBOSITY
=0;;
29684 no
) AM_DEFAULT_VERBOSITY
=1;;
29685 *) AM_DEFAULT_VERBOSITY
=0;;
29687 am_make
=${MAKE-make}
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
29689 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
29690 if ${am_cv_make_support_nested_variables+:} false
; then :
29691 $as_echo_n "(cached) " >&6
29693 if $as_echo 'TRUE=$(BAR$(V))
29699 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
29700 am_cv_make_support_nested_variables
=yes
29702 am_cv_make_support_nested_variables
=no
29705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
29706 $as_echo "$am_cv_make_support_nested_variables" >&6; }
29707 if test $am_cv_make_support_nested_variables = yes; then
29709 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
29711 AM_V
=$AM_DEFAULT_VERBOSITY
29712 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
29717 # --------------------- #
29718 # Checks for programs. #
29719 # --------------------- #
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
29723 $as_echo_n "checking whether ln -s works... " >&6; }
29725 if test "$LN_S" = "ln -s"; then
29726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29727 $as_echo "yes" >&6; }
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
29730 $as_echo "no, using $LN_S" >&6; }
29733 if test -n "$ac_tool_prefix"; then
29734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
29735 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29737 $as_echo_n "checking for $ac_word... " >&6; }
29738 if ${ac_cv_prog_RANLIB+:} false; then :
29739 $as_echo_n "(cached) " >&6
29741 if test -n "$RANLIB"; then
29742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
29744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29745 for as_dir in $PATH
29748 test -z "$as_dir" && as_dir=.
29749 for ac_exec_ext in '' $ac_executable_extensions; do
29750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29751 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
29752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29761 RANLIB=$ac_cv_prog_RANLIB
29762 if test -n "$RANLIB"; then
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
29764 $as_echo "$RANLIB" >&6; }
29766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29767 $as_echo "no" >&6; }
29772 if test -z "$ac_cv_prog_RANLIB"; then
29773 ac_ct_RANLIB=$RANLIB
29774 # Extract the first word of "ranlib", so it can be a program name with args.
29775 set dummy ranlib; ac_word=$2
29776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29777 $as_echo_n "checking for $ac_word... " >&6; }
29778 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
29779 $as_echo_n "(cached) " >&6
29781 if test -n "$ac_ct_RANLIB"; then
29782 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
29784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29785 for as_dir in $PATH
29788 test -z "$as_dir" && as_dir=.
29789 for ac_exec_ext in '' $ac_executable_extensions; do
29790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29791 ac_cv_prog_ac_ct_RANLIB="ranlib"
29792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29801 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
29802 if test -n "$ac_ct_RANLIB"; then
29803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
29804 $as_echo "$ac_ct_RANLIB" >&6; }
29806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29807 $as_echo "no" >&6; }
29810 if test "x$ac_ct_RANLIB" = x; then
29813 case $cross_compiling:$ac_tool_warned in
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29817 ac_tool_warned=yes ;;
29819 RANLIB=$ac_ct_RANLIB
29822 RANLIB="$ac_cv_prog_RANLIB"
29826 if test -n "$ac_tool_prefix"; then
29827 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
29828 set dummy ${ac_tool_prefix}ar; ac_word=$2
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29830 $as_echo_n "checking for $ac_word... " >&6; }
29831 if ${ac_cv_prog_AR+:} false; then :
29832 $as_echo_n "(cached) " >&6
29834 if test -n "$AR"; then
29835 ac_cv_prog_AR="$AR" # Let the user override the test.
29837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29838 for as_dir in $PATH
29841 test -z "$as_dir" && as_dir=.
29842 for ac_exec_ext in '' $ac_executable_extensions; do
29843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29844 ac_cv_prog_AR="${ac_tool_prefix}ar"
29845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29855 if test -n "$AR"; then
29856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
29857 $as_echo "$AR" >&6; }
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29860 $as_echo "no" >&6; }
29865 if test -z "$ac_cv_prog_AR"; then
29867 # Extract the first word of "ar", so it can be a program name with args.
29868 set dummy ar; ac_word=$2
29869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29870 $as_echo_n "checking for $ac_word... " >&6; }
29871 if ${ac_cv_prog_ac_ct_AR+:} false; then :
29872 $as_echo_n "(cached) " >&6
29874 if test -n "$ac_ct_AR"; then
29875 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
29877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29878 for as_dir in $PATH
29881 test -z "$as_dir" && as_dir=.
29882 for ac_exec_ext in '' $ac_executable_extensions; do
29883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29884 ac_cv_prog_ac_ct_AR="ar"
29885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29894 ac_ct_AR=$ac_cv_prog_ac_ct_AR
29895 if test -n "$ac_ct_AR"; then
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
29897 $as_echo "$ac_ct_AR" >&6; }
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29900 $as_echo "no" >&6; }
29903 if test "x$ac_ct_AR" = x; then
29906 case $cross_compiling:$ac_tool_warned in
29908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29910 ac_tool_warned=yes ;;
29915 AR="$ac_cv_prog_AR"
29919 # ---------------------- #
29920 # Checks for libraries. #
29921 # ---------------------- #
29923 ac_config_files="$ac_config_files Makefile import/Makefile"
29925 ac_config_commands="$ac_config_commands default"
29927 cat >confcache <<\_ACEOF
29928 # This file is a shell script that caches the results of configure
29929 # tests run on this system so they can be shared between configure
29930 # scripts and configure runs, see configure's option
--config-cache.
29931 # It is not useful on other systems. If it contains results you don't
29932 # want to keep, you may remove or edit it.
29934 # config.status only pays attention to the cache file if you give it
29935 # the --recheck option to rerun configure.
29937 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29938 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29939 # following values.
29943 # The following way of writing the cache mishandles newlines in values,
29944 # but we know of no workaround that is simple, portable, and efficient.
29945 # So, we kill variables containing newlines.
29946 # Ultrix sh set writes to stderr and can't be redirected directly,
29947 # and sets the high bit in the cache file unless we assign to the vars.
29949 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29950 eval ac_val
=\$
$ac_var
29954 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29955 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29958 _ | IFS | as_nl
) ;; #(
29959 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29960 *) { eval $ac_var=; unset $ac_var;} ;;
29966 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29967 *${as_nl}ac_space
=\
*)
29968 # `set' does not quote correctly, so add quotes: double-quote
29969 # substitution turns \\\\ into \\, and sed turns \\ into \.
29972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29975 # `set' quotes correctly as required by POSIX, so do not add quotes.
29976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29985 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29987 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29989 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29990 if test -w "$cache_file"; then
29991 if test "x$cache_file" != "x/dev/null"; then
29992 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29993 $as_echo "$as_me: updating cache $cache_file" >&6;}
29994 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
29995 cat confcache
>"$cache_file"
29997 case $cache_file in #(
29999 mv -f confcache
"$cache_file"$$
&&
30000 mv -f "$cache_file"$$
"$cache_file" ;; #(
30002 mv -f confcache
"$cache_file" ;;
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30008 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30013 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30014 # Let make expand exec_prefix.
30015 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30017 DEFS
=-DHAVE_CONFIG_H
30021 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30022 # 1. Remove the extension, and $U if already installed.
30023 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30024 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30025 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30026 # will be set to the directory where LIBOBJS objects are built.
30027 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30028 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30030 LIBOBJS
=$ac_libobjs
30032 LTLIBOBJS
=$ac_ltlibobjs
30035 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30036 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
30037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30039 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
30040 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
30041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30043 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
30044 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
30045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30047 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
30048 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
30049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30051 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
30052 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
30053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30055 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
30056 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
30057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30059 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
30060 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
30061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30063 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
30064 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
30065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30067 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
30068 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
30069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30071 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
30072 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
30073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30075 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
30076 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
30077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30079 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
30080 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
30081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30085 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
30086 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
30087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30089 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
30090 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
30091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30093 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
30094 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
30095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30097 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
30098 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
30099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30101 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
30102 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
30103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30108 if test -n "$gl_LIBOBJS"; then
30109 # Remove the extension.
30110 sed_drop_objext
='s/\.o$//;s/\.obj$//'
30111 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30112 gl_libobjs
="$gl_libobjs $i.$ac_objext"
30113 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
30116 gl_LIBOBJS
=$gl_libobjs
30118 gl_LTLIBOBJS
=$gl_ltlibobjs
30124 if test -n "$gltests_LIBOBJS"; then
30125 # Remove the extension.
30126 sed_drop_objext
='s/\.o$//;s/\.obj$//'
30127 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30128 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
30129 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
30132 gltests_LIBOBJS
=$gltests_libobjs
30134 gltests_LTLIBOBJS
=$gltests_ltlibobjs
30137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30138 $as_echo_n "checking that generated files are newer than configure... " >&6; }
30139 if test -n "$am_sleep_pid"; then
30140 # Hide warnings about reused PIDs.
30141 wait $am_sleep_pid 2>/dev
/null
30143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
30144 $as_echo "done" >&6; }
30145 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30146 as_fn_error $?
"conditional \"AMDEP\" was never defined.
30147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30149 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30150 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
30151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30153 if test -n "$EXEEXT"; then
30155 am__EXEEXT_FALSE
='#'
30157 am__EXEEXT_TRUE
='#'
30162 : "${CONFIG_STATUS=./config.status}"
30164 ac_clean_files_save
=$ac_clean_files
30165 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30167 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30169 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30171 # Generated by $as_me.
30172 # Run this file to recreate the current configuration.
30173 # Compiler output produced by configure, useful for debugging
30174 # configure, is in config.log if it exists.
30177 ac_cs_recheck=false
30180 SHELL=\${CONFIG_SHELL-$SHELL}
30183 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30184 ## -------------------- ##
30185 ## M4sh Initialization. ##
30186 ## -------------------- ##
30188 # Be more Bourne compatible
30189 DUALCASE
=1; export DUALCASE
# for MKS sh
30190 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30193 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30194 # is contrary to our usage. Disable this feature.
30195 alias -g '${1+"$@"}'='"$@"'
30196 setopt NO_GLOB_SUBST
30198 case `(set -o) 2>/dev/null` in #(
30210 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30211 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30212 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30213 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30214 # Prefer a ksh shell builtin over an external printf program on Solaris,
30215 # but without wasting forks for bash or zsh.
30216 if test -z "$BASH_VERSION$ZSH_VERSION" \
30217 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30218 as_echo='print
-r --'
30219 as_echo_n='print
-rn --'
30220 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30221 as_echo='printf %s
\n'
30222 as_echo_n='printf %s
'
30224 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30225 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30226 as_echo_n='/usr
/ucb
/echo -n'
30228 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30229 as_echo_n_body='eval
30233 expr "X$arg" : "X\\(.*\\)$as_nl";
30234 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30236 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30238 export as_echo_n_body
30239 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30241 export as_echo_body
30242 as_echo='sh
-c $as_echo_body as_echo
'
30245 # The user is always right.
30246 if test "${PATH_SEPARATOR+set}" != set; then
30248 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30249 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30256 # We need space, tab and new line, in precisely that order. Quoting is
30257 # there to prevent editors from complaining about space-tab.
30258 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30259 # splitting by setting IFS to empty value.)
30262 # Find who we are. Look in the path if we contain no directory separator.
30265 *[\\/]* ) as_myself=$0 ;;
30266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30267 for as_dir in $PATH
30270 test -z "$as_dir" && as_dir=.
30271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30277 # We did not find ourselves, most probably we were run as `sh COMMAND'
30278 # in which case we are not to be found in the path.
30279 if test "x$as_myself" = x
; then
30282 if test ! -f "$as_myself"; then
30283 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30287 # Unset variables that we do not need and which cause bugs (e.g. in
30288 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30289 # suppresses any "Segmentation fault" message there. '((' could
30290 # trigger a bug in pdksh 5.2.14.
30291 for as_var
in BASH_ENV ENV MAIL MAILPATH
30292 do eval test x\
${$as_var+set} = xset \
30293 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30306 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30309 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30310 # ----------------------------------------
30311 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30312 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30313 # script with STATUS, using 1 if that was 0.
30316 as_status
=$1; test $as_status -eq 0 && as_status
=1
30318 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30319 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30321 $as_echo "$as_me: error: $2" >&2
30322 as_fn_exit
$as_status
30326 # as_fn_set_status STATUS
30327 # -----------------------
30328 # Set $? to STATUS, without forking.
30329 as_fn_set_status
()
30332 } # as_fn_set_status
30334 # as_fn_exit STATUS
30335 # -----------------
30336 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30340 as_fn_set_status
$1
30346 # Portably unset VAR.
30349 { eval $1=; unset $1;}
30351 as_unset
=as_fn_unset
30352 # as_fn_append VAR VALUE
30353 # ----------------------
30354 # Append the text in VALUE to the end of the definition contained in VAR. Take
30355 # advantage of any shell optimizations that allow amortized linear growth over
30356 # repeated appends, instead of the typical quadratic growth present in naive
30358 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30359 eval 'as_fn_append ()
30370 # as_fn_arith ARG...
30371 # ------------------
30372 # Perform arithmetic evaluation on the ARGs, and store the result in the
30373 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30374 # must be portable across $(()) and expr.
30375 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30376 eval 'as_fn_arith ()
30383 as_val
=`expr "$@" || test $? -eq 1`
30388 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30389 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30395 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30396 as_basename
=basename
30401 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30407 as_me
=`$as_basename -- "$0" ||
30408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30409 X"$0" : 'X\(//\)$' \| \
30410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30412 sed '/^.*\/\([^/][^/]*\)\/*$/{
30426 # Avoid depending upon Character Ranges.
30427 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30428 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30429 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30430 as_cr_digits
='0123456789'
30431 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30433 ECHO_C
= ECHO_N
= ECHO_T
=
30434 case `echo -n x` in #(((((
30436 case `echo 'xy\c'` in
30437 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30439 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30446 rm -f conf$$ conf$$.exe conf$$.
file
30447 if test -d conf$$.dir
; then
30448 rm -f conf$$.dir
/conf$$.
file
30451 mkdir conf$$.dir
2>/dev
/null
30453 if (echo >conf$$.
file) 2>/dev
/null
; then
30454 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30456 # ... but there are two gotchas:
30457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30459 # In both cases, we have to default to `cp -pR'.
30460 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30462 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30470 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30471 rmdir conf$$.dir
2>/dev
/null
30476 # Create "$as_dir" as a directory, including parents if necessary.
30481 -*) as_dir
=.
/$as_dir;;
30483 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30487 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30488 *) as_qdir
=$as_dir;;
30490 as_dirs
="'$as_qdir' $as_dirs"
30491 as_dir
=`$as_dirname -- "$as_dir" ||
30492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30493 X"$as_dir" : 'X\(//\)[^/]' \| \
30494 X"$as_dir" : 'X\(//\)$' \| \
30495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30496 $as_echo X"$as_dir" |
30497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30501 /^X\(\/\/\)[^/].*/{
30514 test -d "$as_dir" && break
30516 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30517 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
30521 if mkdir
-p .
2>/dev
/null
; then
30522 as_mkdir_p
='mkdir -p "$as_dir"'
30524 test -d .
/-p && rmdir .
/-p
30529 # as_fn_executable_p FILE
30530 # -----------------------
30531 # Test if FILE is an executable regular file.
30532 as_fn_executable_p
()
30534 test -f "$1" && test -x "$1"
30535 } # as_fn_executable_p
30536 as_test_x
='test -x'
30537 as_executable_p
=as_fn_executable_p
30539 # Sed expression to map a string onto a valid CPP name.
30540 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30542 # Sed expression to map a string onto a valid variable name.
30543 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30547 ## ----------------------------------- ##
30548 ## Main body of $CONFIG_STATUS script. ##
30549 ## ----------------------------------- ##
30551 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30554 # Save the log message, to keep $0 and so on meaningful, and to
30555 # report actual input values of CONFIG_FILES etc. instead of their
30556 # values after options handling.
30558 This file was extended by libgnu $as_me UNUSED-VERSION, which was
30559 generated by GNU Autoconf 2.69. Invocation command line was
30561 CONFIG_FILES = $CONFIG_FILES
30562 CONFIG_HEADERS = $CONFIG_HEADERS
30563 CONFIG_LINKS = $CONFIG_LINKS
30564 CONFIG_COMMANDS = $CONFIG_COMMANDS
30567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30572 case $ac_config_files in *"
30573 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30576 case $ac_config_headers in *"
30577 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30582 # Files that config.status was made for.
30583 config_files="$ac_config_files"
30584 config_headers="$ac_config_headers"
30585 config_commands="$ac_config_commands"
30589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30591 \`$as_me' instantiates files and other configuration actions
30592 from templates according to the current configuration. Unless the files
30593 and actions are specified as TAGs, all are instantiated by default.
30595 Usage: $0 [OPTION]... [TAG]...
30597 -h, --help print this help, then exit
30598 -V, --version print version number and configuration settings, then exit
30599 --config print configuration, then exit
30600 -q, --quiet, --silent
30601 do not print progress messages
30602 -d, --debug don't remove temporary files
30603 --recheck update $as_me by reconfiguring in the same conditions
30604 --file=FILE[:TEMPLATE]
30605 instantiate the configuration file FILE
30606 --header=FILE[:TEMPLATE]
30607 instantiate the configuration header FILE
30609 Configuration files:
30612 Configuration headers:
30615 Configuration commands:
30618 Report bugs to the package provider."
30621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30622 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30624 libgnu config.status UNUSED-VERSION
30625 configured by $0, generated by GNU Autoconf 2.69,
30626 with options \\"\$ac_cs_config\\"
30628 Copyright (C) 2012 Free Software Foundation, Inc.
30629 This config.status script is free software; the Free Software Foundation
30630 gives unlimited permission to copy, distribute and modify it."
30637 test -n "\$AWK" || AWK=awk
30640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30641 # The default lists apply if the user does not specify any file.
30647 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30648 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30652 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30664 # Handling of the options.
30665 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30667 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30668 $as_echo "$ac_cs_version"; exit ;;
30669 --config |
--confi |
--conf |
--con |
--co |
--c )
30670 $as_echo "$ac_cs_config"; exit ;;
30671 --debug |
--debu |
--deb |
--de |
--d |
-d )
30673 --file |
--fil |
--fi |
--f )
30676 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30677 '') as_fn_error $?
"missing file argument" ;;
30679 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30680 ac_need_defaults
=false
;;
30681 --header |
--heade |
--head |
--hea )
30684 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30686 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30687 ac_need_defaults
=false
;;
30689 # Conflict between --help and --header
30690 as_fn_error $?
"ambiguous option: \`$1'
30691 Try \`$0 --help' for more information.";;
30692 --help |
--hel |
-h )
30693 $as_echo "$ac_cs_usage"; exit ;;
30694 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30695 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30698 # This is an error.
30699 -*) as_fn_error $?
"unrecognized option: \`$1'
30700 Try \`$0 --help' for more information." ;;
30702 *) as_fn_append ac_config_targets
" $1"
30703 ac_need_defaults
=false
;;
30709 ac_configure_extra_args
=
30711 if $ac_cs_silent; then
30713 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30718 if \$ac_cs_recheck; then
30719 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30721 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30722 CONFIG_SHELL='$SHELL'
30723 export CONFIG_SHELL
30728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30733 ## Running $as_me. ##
30739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30743 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30749 # Handling of arguments.
30750 for ac_config_target
in $ac_config_targets
30752 case $ac_config_target in
30753 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
30754 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
30755 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
30756 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
30757 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30759 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30764 # If the user did not use the arguments to specify the items to instantiate,
30765 # then the envvar interface is used. Set only those that are not.
30766 # We use the long form for the default assignment because of an extremely
30767 # bizarre bug on SunOS 4.1.3.
30768 if $ac_need_defaults; then
30769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30771 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30774 # Have a temporary directory for convenience. Make it in the build tree
30775 # simply because there is no reason against having it here, and in addition,
30776 # creating and moving files from /tmp can sometimes cause problems.
30777 # Hook for its removal unless debugging.
30778 # Note that there is a small window in which the directory will not be cleaned:
30779 # after its creation but before its name has been assigned to `$tmp'.
30783 trap 'exit_status=$?
30784 : "${ac_tmp:=$tmp}"
30785 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30787 trap 'as_fn_exit 1' 1 2 13 15
30789 # Create a (secure) tmp directory for tmp files.
30792 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30796 tmp
=.
/conf$$
-$RANDOM
30797 (umask 077 && mkdir
"$tmp")
30798 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
30801 # Set up the scripts for CONFIG_FILES section.
30802 # No need to generate them if there are no CONFIG_FILES.
30803 # This happens for instance with `./config.status config.h'.
30804 if test -n "$CONFIG_FILES"; then
30807 ac_cr
=`echo X | tr X '\015'`
30808 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30809 # But we know of no other shell where ac_cr would be empty at this
30810 # point, so we can use a bashism as a fallback.
30811 if test "x$ac_cr" = x
; then
30812 eval ac_cr
=\$
\'\\r
\'
30814 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30815 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30818 ac_cs_awk_cr
=$ac_cr
30821 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30826 echo "cat >conf$$subs.awk <<_ACEOF" &&
30827 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30829 } >conf$$subs.sh ||
30830 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
30831 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30833 for ac_last_try in false false false false false :; do
30834 . ./conf$$subs.sh ||
30835 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
30837 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30838 if test $ac_delim_n = $ac_delim_num; then
30840 elif $ac_last_try; then
30841 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
30843 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30846 rm -f conf$$subs.sh
30848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30849 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
30853 s/^/S["/; s
/!.
*/"]=/
30863 s/\(.\{148\}\)..*/\1/
30865 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30870 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30877 s/\(.\{148\}\)..*/\1/
30879 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30883 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30888 ' <conf$$subs.awk | sed '
30893 ' >>$CONFIG_STATUS || ac_write_fail=1
30894 rm -f conf$$subs.awk
30895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30897 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
30898 for (key in S) S_is_set[key] = 1
30904 nfields = split(line, field, "@
")
30906 len = length(field[1])
30907 for (i = 2; i < nfields; i++) {
30909 keylen = length(key)
30910 if (S_is_set[key]) {
30912 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30913 len += length(value) + length(field[++i])
30924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30925 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30926 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30929 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
30930 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
30933 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30934 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
30935 # trailing colons and then remove the whole line if VPATH becomes empty
30936 # (actually we leave an empty line to preserve line numbers).
30937 if test "x
$srcdir" = x.; then
30938 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30957 fi # test -n "$CONFIG_FILES"
30959 # Set up the scripts for CONFIG_HEADERS section.
30960 # No need to generate them if there are no CONFIG_HEADERS.
30961 # This happens for instance with `./config.status Makefile'.
30962 if test -n "$CONFIG_HEADERS"; then
30963 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
30967 # Transform confdefs.h into an awk script `defines.awk', embedded as
30968 # here-document in config.status, that substitutes the proper values into
30969 # config.h.in to produce config.h.
30971 # Create a delimiter string that does not exist in confdefs.h, to ease
30972 # handling of long lines.
30974 for ac_last_try in false false :; do
30975 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
30976 if test -z "$ac_tt"; then
30978 elif $ac_last_try; then
30979 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
30981 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30985 # For the awk script, D is an array of macro values keyed by name,
30986 # likewise P contains macro parameters if any. Preserve backslash
30987 # newline sequences.
30989 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30991 s/.\{148\}/&'"$ac_delim"'/g
30994 s/^[ ]*#[ ]*define[ ][ ]*/ /
31001 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31003 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31008 D["\
1"]=" \
3\\\\\\n
"\\/p
31010 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31015 s/.\{148\}/&'"$ac_delim"'/g
31020 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31023 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31025 ' <confdefs.h | sed '
31026 s/'"$ac_delim"'/"\\\
31027 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31030 for (key in D) D_is_set[key] = 1
31033 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31035 split(line, arg, " ")
31036 if (arg[1] == "#") {
31040 defundef
= substr
(arg
[1], 2)
31043 split(mac1
, mac2
, "(") #)
31045 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31046 if (D_is_set
[macro
]) {
31047 # Preserve the white space surrounding the "#".
31048 print prefix
"define", macro P
[macro
] D
[macro
]
31051 # Replace #undef with comments. This is necessary, for example,
31052 # in the case of _POSIX_SOURCE, which is predefined and required
31053 # on some systems where configure will not decide to define it.
31054 if (defundef
== "undef") {
31055 print
"/*", prefix defundef
, macro
, "*/"
31063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31064 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31065 fi # test -n "$CONFIG_HEADERS"
31068 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
31073 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31075 case $ac_mode$ac_tag in
31077 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31078 :[FH
]-) ac_tag
=-:-;;
31079 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31096 -) ac_f
="$ac_tmp/stdin";;
31097 *) # Look for the file first in the build tree, then in the source tree
31098 # (if the path is not absolute). The absolute path cannot be DOS-style,
31099 # because $ac_f cannot contain `:'.
31103 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31105 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31107 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31108 as_fn_append ac_file_inputs
" '$ac_f'"
31111 # Let's still pretend it is `configure' which instantiates (i.e., don't
31112 # use $as_me), people would be surprised to read:
31113 # /* config.h. Generated by config.status. */
31114 configure_input
='Generated from '`
31115 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31117 if test x
"$ac_file" != x-
; then
31118 configure_input
="$ac_file. $configure_input"
31119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31120 $as_echo "$as_me: creating $ac_file" >&6;}
31122 # Neutralize special characters interpreted by sed in replacement strings.
31123 case $configure_input in #(
31124 *\
&* |
*\|
* |
*\\* )
31125 ac_sed_conf_input
=`$as_echo "$configure_input" |
31126 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31127 *) ac_sed_conf_input
=$configure_input;;
31131 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
31132 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
31137 ac_dir
=`$as_dirname -- "$ac_file" ||
31138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31139 X"$ac_file" : 'X\(//\)[^/]' \| \
31140 X"$ac_file" : 'X\(//\)$' \| \
31141 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31142 $as_echo X"$ac_file" |
31143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31147 /^X\(\/\/\)[^/].*/{
31160 as_dir
="$ac_dir"; as_fn_mkdir_p
31164 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31166 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31167 # A ".." for each directory in $ac_dir_suffix.
31168 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31169 case $ac_top_builddir_sub in
31170 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31171 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31174 ac_abs_top_builddir
=$ac_pwd
31175 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31176 # for backward compatibility:
31177 ac_top_builddir
=$ac_top_build_prefix
31180 .
) # We are building in place.
31182 ac_top_srcdir
=$ac_top_builddir_sub
31183 ac_abs_top_srcdir
=$ac_pwd ;;
31184 [\\/]* | ?
:[\\/]* ) # Absolute name.
31185 ac_srcdir
=$srcdir$ac_dir_suffix;
31186 ac_top_srcdir
=$srcdir
31187 ac_abs_top_srcdir
=$srcdir ;;
31188 *) # Relative name.
31189 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31190 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31191 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31193 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31203 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
31204 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
31206 ac_MKDIR_P
=$MKDIR_P
31208 [\\/$
]* | ?
:[\\/]* ) ;;
31209 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
31213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31214 # If the template does not know about datarootdir, expand it.
31215 # FIXME: This hack should be removed a few years after 2.60.
31216 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31227 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31228 *datarootdir
*) ac_datarootdir_seen
=yes;;
31229 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31231 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31234 ac_datarootdir_hack='
31235 s&@datadir@&$datadir&g
31236 s&@docdir@&$docdir&g
31237 s&@infodir@&$infodir&g
31238 s&@localedir@&$localedir&g
31239 s&@mandir@&$mandir&g
31240 s&\\\${datarootdir}&$datarootdir&g' ;;
31244 # Neutralize VPATH when `$srcdir' = `.'.
31245 # Shell code in configure.ac might set extrasub.
31246 # FIXME: do we really want to maintain this feature?
31247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31248 ac_sed_extra="$ac_vpsub
31251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31253 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31254 s|@configure_input@|
$ac_sed_conf_input|
;t t
31255 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31256 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31257 s
&@srcdir@
&$ac_srcdir&;t t
31258 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31259 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31260 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31261 s
&@builddir@
&$ac_builddir&;t t
31262 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31263 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31264 s
&@INSTALL@
&$ac_INSTALL&;t t
31265 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
31266 $ac_datarootdir_hack
31268 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
31269 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
31271 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31272 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
31273 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31274 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31276 which seems to be undefined. Please make sure it is defined" >&5
31277 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31278 which seems to be undefined. Please make sure it is defined" >&2;}
31280 rm -f "$ac_tmp/stdin"
31282 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31283 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31291 if test x"$ac_file" != x-; then
31293 $as_echo "/* $configure_input */" \
31294 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31295 } >"$ac_tmp/config.h" \
31296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31297 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31298 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31299 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31302 mv "$ac_tmp/config.h" "$ac_file" \
31303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31306 $as_echo "/* $configure_input */" \
31307 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31308 || as_fn_error $? "could not create -" "$LINENO" 5
31310 # Compute "$ac_file"'s index
in $config_headers.
31313 for _am_header
in $config_headers :; do
31314 case $_am_header in
31315 $_am_arg |
$_am_arg:* )
31318 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
31321 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
31322 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31323 X"$_am_arg" : 'X\(//\)[^/]' \| \
31324 X"$_am_arg" : 'X\(//\)$' \| \
31325 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
31326 $as_echo X"$_am_arg" |
31327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31331 /^X\(\/\/\)[^/].*/{
31343 s/.*/./; q'`/stamp-h
$_am_stamp_count
31346 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31347 $as_echo "$as_me: executing $ac_file commands" >&6;}
31352 case $ac_file$ac_mode in
31353 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
31354 # Older Autoconf quotes --file arguments for eval, but not when files
31355 # are listed without --file. Let's play safe and only enable the eval
31356 # if we detect the quoting.
31357 case $CONFIG_FILES in
31358 *\'*) eval set x
"$CONFIG_FILES" ;;
31359 *) set x
$CONFIG_FILES ;;
31364 # Strip MF so we end up with the name of the file.
31365 mf
=`echo "$mf" | sed -e 's/:.*$//'`
31366 # Check whether this is an Automake generated Makefile or not.
31367 # We used to match only the files named 'Makefile.in', but
31368 # some people rename them; so instead we look at the file content.
31369 # Grep'ing the first line is not enough: some people post-process
31370 # each Makefile.in and add a new line on top of each file to say so.
31371 # Grep'ing the whole file is not good either: AIX grep has a line
31372 # limit of 2048, but all sed's we know have understand at least 4000.
31373 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
31374 dirpart
=`$as_dirname -- "$mf" ||
31375 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31376 X"$mf" : 'X\(//\)[^/]' \| \
31377 X"$mf" : 'X\(//\)$' \| \
31378 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
31380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31384 /^X\(\/\/\)[^/].*/{
31400 # Extract the definition of DEPDIR, am__include, and am__quote
31401 # from the Makefile without running 'make'.
31402 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
31403 test -z "$DEPDIR" && continue
31404 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
31405 test -z "$am__include" && continue
31406 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
31407 # Find all dependency output files, they are included files with
31408 # $(DEPDIR) in their names. We invoke sed twice because it is the
31409 # simplest approach to changing $(DEPDIR) to its actual value in the
31411 for file in `sed -n "
31412 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31413 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
31414 # Make sure the directory exists.
31415 test -f "$dirpart/$file" && continue
31416 fdir
=`$as_dirname -- "$file" ||
31417 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31418 X"$file" : 'X\(//\)[^/]' \| \
31419 X"$file" : 'X\(//\)$' \| \
31420 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31421 $as_echo X"$file" |
31422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31426 /^X\(\/\/\)[^/].*/{
31439 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
31440 # echo "creating $dirpart/$file"
31441 echo '# dummy' > "$dirpart/$file"
31447 case x
$CONFIG_HEADERS in
31448 xconfig.h
:config.
in)
31459 ac_clean_files
=$ac_clean_files_save
31461 test $ac_write_fail = 0 ||
31462 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
31465 # configure is writing to config.log, and then calls config.status.
31466 # config.status does its own redirection, appending to config.log.
31467 # Unfortunately, on DOS this fails, as config.log is still kept open
31468 # by configure, so config.status won't be able to write to it; its
31469 # output is simply discarded. So we exec the FD to /dev/null,
31470 # effectively closing config.log, so it can be properly (re)opened and
31471 # appended to by config.status. When coming back to configure, we
31472 # need to make the FD available again.
31473 if test "$no_create" != yes; then
31475 ac_config_status_args
=
31476 test "$silent" = yes &&
31477 ac_config_status_args
="$ac_config_status_args --quiet"
31479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31482 # would make configure fail if this is the last instruction.
31483 $ac_cs_success || as_fn_exit
1
31485 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31487 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}