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
692 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
695 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
697 UNISTD_H_DEFINES_STRUCT_TIMESPEC
698 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
699 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
700 TIME_H_DEFINES_STRUCT_TIMESPEC
701 NEXT_AS_FIRST_DIRECTIVE_TIME_H
704 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
708 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
710 NEXT_AS_FIRST_DIRECTIVE_STRING_H
712 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
714 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
716 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
718 GL_GENERATE_STDDEF_H_FALSE
719 GL_GENERATE_STDDEF_H_TRUE
725 GL_GENERATE_STDBOOL_H_FALSE
726 GL_GENERATE_STDBOOL_H_TRUE
728 GL_GENERATE_STDALIGN_H_FALSE
729 GL_GENERATE_STDALIGN_H_TRUE
731 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
734 REPLACE_PTHREAD_SIGMASK
736 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
737 HAVE_STRUCT_SIGACTION_SA_SIGACTION
743 HAVE_POSIX_SIGNALBLOCKING
746 GNULIB_SIGNAL_H_SIGPIPE
748 GNULIB_PTHREAD_SIGMASK
756 REPLACE_STDIO_WRITE_FUNCS
757 REPLACE_STDIO_READ_FUNCS
766 REPLACE_OBSTACK_PRINTF
791 HAVE_DECL_OBSTACK_PRINTF
797 GNULIB_VSPRINTF_POSIX
801 GNULIB_VFPRINTF_POSIX
808 GNULIB_STDIO_H_SIGPIPE
809 GNULIB_STDIO_H_NONBLOCKING
824 GNULIB_OBSTACK_PRINTF_POSIX
825 GNULIB_OBSTACK_PRINTF
850 GL_GENERATE_NETINET_IN_H_FALSE
851 GL_GENERATE_NETINET_IN_H_TRUE
854 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
930 GNULIB_EXPLICIT_BZERO
1030 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1038 LOCALCHARSET_TESTS_ENVIRONMENT
1039 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1041 UINT64_MAX_EQ_ULONG_MAX
1042 UINT32_MAX_LT_UINTMAX_MAX
1045 INT64_MAX_EQ_LONG_MAX
1046 INT32_MAX_LT_INTMAX_MAX
1058 GL_GENERATE_STDINT_H_FALSE
1059 GL_GENERATE_STDINT_H_TRUE
1071 HAVE_SIGNED_SIG_ATOMIC_T
1074 BITSIZEOF_SIG_ATOMIC_T
1077 APPLE_UNIVERSAL_BUILD
1079 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1084 HAVE_UNSIGNED_LONG_LONG_INT
1086 GNULIB_OVERRIDES_WINT_T
1087 GL_GENERATE_LIMITS_H_FALSE
1088 GL_GENERATE_LIMITS_H_TRUE
1090 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1093 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1097 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1098 HAVE_STRUCT_SOCKADDR_STORAGE
1115 GL_GENERATE_GLOB_H_FALSE
1116 GL_GENERATE_GLOB_H_TRUE
1119 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
1121 REPLACE_GLOB_PATTERN_P
1140 HAVE_DECL_LOCALTIME_R
1151 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1153 REPLACE_STRUCT_TIMEVAL
1154 REPLACE_GETTIMEOFDAY
1162 WINDOWS_64_BIT_ST_SIZE
1163 WINDOWS_STAT_TIMESPEC
1164 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1186 GNULIB_OVERRIDES_STRUCT_STAT
1201 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1212 REPLACE_SIGNBIT_USING_GCC
1292 HAVE_DECL_REMAINDERL
1473 GL_GENERATE_FNMATCH_H_FALSE
1474 GL_GENERATE_FNMATCH_H_TRUE
1477 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
1483 GL_GENERATE_FLOAT_H_FALSE
1484 GL_GENERATE_FLOAT_H_TRUE
1486 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1488 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1507 GL_GENERATE_ERRNO_H_FALSE
1508 GL_GENERATE_ERRNO_H_TRUE
1510 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1513 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1537 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1538 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1539 UNISTD_H_HAVE_WINSOCK2_H
1564 REPLACE_GETDTABLESIZE
1565 REPLACE_GETDOMAINNAME
1579 HAVE_DECL_SETHOSTNAME
1580 HAVE_DECL_GETUSERSHELL
1581 HAVE_DECL_GETPAGESIZE
1582 HAVE_DECL_GETLOGIN_R
1584 HAVE_DECL_GETDOMAINNAME
1619 HAVE_COPY_FILE_RANGE
1625 GNULIB_UNISTD_H_SIGPIPE
1626 GNULIB_UNISTD_H_NONBLOCKING
1654 GNULIB_GETDTABLESIZE
1655 GNULIB_GETDOMAINNAME
1668 GNULIB_COPY_FILE_RANGE
1691 REPLACE_CANONICALIZE_FILE_NAME
1696 HAVE_STRUCT_RANDOM_DATA
1726 HAVE_DECL_GETLOADAVG
1727 HAVE_CANONICALIZE_FILE_NAME
1739 GNULIB_SECURE_GETENV
1742 GNULIB_REALLOC_POSIX
1761 GNULIB_CANONICALIZE_FILE_NAME
1768 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1771 PRAGMA_SYSTEM_HEADER
1772 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1782 GL_GENERATE_ALLOCA_H_FALSE
1783 GL_GENERATE_ALLOCA_H_TRUE
1786 GL_COND_LIBTOOL_FALSE
1787 GL_COND_LIBTOOL_TRUE
1814 MAINTAINER_MODE_FALSE
1815 MAINTAINER_MODE_TRUE
1843 program_transform_name
1856 enable_option_checking
1857 enable_maintainer_mode
1861 enable_cross_guesses
1862 enable_dependency_tracking
1865 ac_precious_vars
='build_alias
1876 # Initialize some variables set by options.
1878 ac_init_version
=false
1879 ac_unrecognized_opts
=
1880 ac_unrecognized_sep
=
1881 # The variables have the same names as the options, with
1882 # dashes changed to underlines.
1883 cache_file
=/dev
/null
1890 program_transform_name
=s
,x
,x
,
1898 # Installation directory options.
1899 # These are left unexpanded so users can "make install exec_prefix=/foo"
1900 # and all the variables that are supposed to be based on exec_prefix
1901 # by default will actually change.
1902 # Use braces instead of parens because sh, perl, etc. also accept them.
1903 # (The list follows the same order as the GNU Coding Standards.)
1904 bindir
='${exec_prefix}/bin'
1905 sbindir
='${exec_prefix}/sbin'
1906 libexecdir
='${exec_prefix}/libexec'
1907 datarootdir
='${prefix}/share'
1908 datadir
='${datarootdir}'
1909 sysconfdir
='${prefix}/etc'
1910 sharedstatedir
='${prefix}/com'
1911 localstatedir
='${prefix}/var'
1912 includedir
='${prefix}/include'
1913 oldincludedir
='/usr/include'
1914 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1915 infodir
='${datarootdir}/info'
1920 libdir
='${exec_prefix}/lib'
1921 localedir
='${datarootdir}/locale'
1922 mandir
='${datarootdir}/man'
1928 # If the previous option needs an argument, assign it.
1929 if test -n "$ac_prev"; then
1930 eval $ac_prev=\
$ac_option
1936 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1941 # Accept the important Cygnus configure options, so we can diagnose typos.
1943 case $ac_dashdash$ac_option in
1947 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1949 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1950 bindir
=$ac_optarg ;;
1952 -build |
--build |
--buil |
--bui |
--bu)
1953 ac_prev
=build_alias
;;
1954 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1955 build_alias
=$ac_optarg ;;
1957 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1958 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1959 ac_prev
=cache_file
;;
1960 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1961 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1962 cache_file
=$ac_optarg ;;
1964 --config-cache |
-C)
1965 cache_file
=config.cache
;;
1967 -datadir |
--datadir |
--datadi |
--datad)
1969 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1970 datadir
=$ac_optarg ;;
1972 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1973 |
--dataroo |
--dataro |
--datar)
1974 ac_prev
=datarootdir
;;
1975 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1976 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1977 datarootdir
=$ac_optarg ;;
1979 -disable-* |
--disable-*)
1980 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1981 # Reject names that are not valid shell variable names.
1982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1983 as_fn_error $?
"invalid feature name: $ac_useropt"
1984 ac_useropt_orig
=$ac_useropt
1985 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1986 case $ac_user_opts in
1988 "enable_
$ac_useropt"
1990 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1991 ac_unrecognized_sep
=', ';;
1993 eval enable_
$ac_useropt=no
;;
1995 -docdir |
--docdir |
--docdi |
--doc |
--do)
1997 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1998 docdir
=$ac_optarg ;;
2000 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
2002 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
2003 dvidir
=$ac_optarg ;;
2005 -enable-* |
--enable-*)
2006 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2007 # Reject names that are not valid shell variable names.
2008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2009 as_fn_error $?
"invalid feature name: $ac_useropt"
2010 ac_useropt_orig
=$ac_useropt
2011 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2012 case $ac_user_opts in
2014 "enable_
$ac_useropt"
2016 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2017 ac_unrecognized_sep
=', ';;
2019 eval enable_
$ac_useropt=\
$ac_optarg ;;
2021 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
2022 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
2023 |
--exec |
--exe |
--ex)
2024 ac_prev
=exec_prefix
;;
2025 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
2026 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
2027 |
--exec=* |
--exe=* |
--ex=*)
2028 exec_prefix
=$ac_optarg ;;
2030 -gas |
--gas |
--ga |
--g)
2031 # Obsolete; use --with-gas.
2034 -help |
--help |
--hel |
--he |
-h)
2035 ac_init_help
=long
;;
2036 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
2037 ac_init_help
=recursive
;;
2038 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
2039 ac_init_help
=short
;;
2041 -host |
--host |
--hos |
--ho)
2042 ac_prev
=host_alias
;;
2043 -host=* |
--host=* |
--hos=* |
--ho=*)
2044 host_alias
=$ac_optarg ;;
2046 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
2048 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
2050 htmldir
=$ac_optarg ;;
2052 -includedir |
--includedir |
--includedi |
--included |
--include \
2053 |
--includ |
--inclu |
--incl |
--inc)
2054 ac_prev
=includedir
;;
2055 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
2056 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
2057 includedir
=$ac_optarg ;;
2059 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
2061 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
2062 infodir
=$ac_optarg ;;
2064 -libdir |
--libdir |
--libdi |
--libd)
2066 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
2067 libdir
=$ac_optarg ;;
2069 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
2070 |
--libexe |
--libex |
--libe)
2071 ac_prev
=libexecdir
;;
2072 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
2073 |
--libexe=* |
--libex=* |
--libe=*)
2074 libexecdir
=$ac_optarg ;;
2076 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2077 ac_prev
=localedir
;;
2078 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2079 localedir
=$ac_optarg ;;
2081 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2082 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2083 ac_prev
=localstatedir
;;
2084 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2085 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2086 localstatedir
=$ac_optarg ;;
2088 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2090 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2091 mandir
=$ac_optarg ;;
2093 -nfp |
--nfp |
--nf)
2094 # Obsolete; use --without-fp.
2097 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2098 |
--no-cr |
--no-c |
-n)
2101 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2102 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2105 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2106 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2107 |
--oldin |
--oldi |
--old |
--ol |
--o)
2108 ac_prev
=oldincludedir
;;
2109 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2110 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2111 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2112 oldincludedir
=$ac_optarg ;;
2114 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2116 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2117 prefix
=$ac_optarg ;;
2119 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2120 |
--program-pre |
--program-pr |
--program-p)
2121 ac_prev
=program_prefix
;;
2122 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2123 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2124 program_prefix
=$ac_optarg ;;
2126 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2127 |
--program-suf |
--program-su |
--program-s)
2128 ac_prev
=program_suffix
;;
2129 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2130 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2131 program_suffix
=$ac_optarg ;;
2133 -program-transform-name |
--program-transform-name \
2134 |
--program-transform-nam |
--program-transform-na \
2135 |
--program-transform-n |
--program-transform- \
2136 |
--program-transform |
--program-transfor \
2137 |
--program-transfo |
--program-transf \
2138 |
--program-trans |
--program-tran \
2139 |
--progr-tra |
--program-tr |
--program-t)
2140 ac_prev
=program_transform_name
;;
2141 -program-transform-name=* |
--program-transform-name=* \
2142 |
--program-transform-nam=* |
--program-transform-na=* \
2143 |
--program-transform-n=* |
--program-transform-=* \
2144 |
--program-transform=* |
--program-transfor=* \
2145 |
--program-transfo=* |
--program-transf=* \
2146 |
--program-trans=* |
--program-tran=* \
2147 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2148 program_transform_name
=$ac_optarg ;;
2150 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2152 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2153 pdfdir
=$ac_optarg ;;
2155 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2157 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2160 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2161 |
-silent |
--silent |
--silen |
--sile |
--sil)
2164 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2166 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2168 sbindir
=$ac_optarg ;;
2170 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2171 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2172 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2174 ac_prev
=sharedstatedir
;;
2175 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2176 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2177 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2179 sharedstatedir
=$ac_optarg ;;
2181 -site |
--site |
--sit)
2183 -site=* |
--site=* |
--sit=*)
2186 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2188 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2189 srcdir
=$ac_optarg ;;
2191 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2192 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2193 ac_prev
=sysconfdir
;;
2194 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2195 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2196 sysconfdir
=$ac_optarg ;;
2198 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2199 ac_prev
=target_alias
;;
2200 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2201 target_alias
=$ac_optarg ;;
2203 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2206 -version |
--version |
--versio |
--versi |
--vers |
-V)
2207 ac_init_version
=: ;;
2210 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2211 # Reject names that are not valid shell variable names.
2212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2213 as_fn_error $?
"invalid package name: $ac_useropt"
2214 ac_useropt_orig
=$ac_useropt
2215 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2216 case $ac_user_opts in
2220 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2221 ac_unrecognized_sep
=', ';;
2223 eval with_
$ac_useropt=\
$ac_optarg ;;
2225 -without-* |
--without-*)
2226 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2227 # Reject names that are not valid shell variable names.
2228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2229 as_fn_error $?
"invalid package name: $ac_useropt"
2230 ac_useropt_orig
=$ac_useropt
2231 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2232 case $ac_user_opts in
2236 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2237 ac_unrecognized_sep
=', ';;
2239 eval with_
$ac_useropt=no
;;
2242 # Obsolete; use --with-x.
2245 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2246 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2247 ac_prev
=x_includes
;;
2248 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2249 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2250 x_includes
=$ac_optarg ;;
2252 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2253 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2254 ac_prev
=x_libraries
;;
2255 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2256 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2257 x_libraries
=$ac_optarg ;;
2259 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2260 Try \`$0 --help' for more information"
2264 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2265 # Reject names that are not valid shell variable names.
2266 case $ac_envvar in #(
2267 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2268 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2270 eval $ac_envvar=\
$ac_optarg
2271 export $ac_envvar ;;
2274 # FIXME: should be removed in autoconf 3.0.
2275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2284 if test -n "$ac_prev"; then
2285 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2286 as_fn_error $?
"missing argument to $ac_option"
2289 if test -n "$ac_unrecognized_opts"; then
2290 case $enable_option_checking in
2292 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2297 # Check all directory arguments for consistency.
2298 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2299 datadir sysconfdir sharedstatedir localstatedir includedir \
2300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2301 libdir localedir mandir
2303 eval ac_val
=\$
$ac_var
2304 # Remove trailing slashes.
2307 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2308 eval $ac_var=\
$ac_val;;
2310 # Be sure to have absolute directory names.
2312 [\\/$
]* | ?
:[\\/]* ) continue;;
2313 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2315 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2318 # There might be people who depend on the old broken behavior: `$host'
2319 # used to hold the argument of --host etc.
2320 # FIXME: To remove some day.
2323 target
=$target_alias
2325 # FIXME: To remove some day.
2326 if test "x$host_alias" != x
; then
2327 if test "x$build_alias" = x
; then
2328 cross_compiling
=maybe
2329 elif test "x$build_alias" != "x$host_alias"; then
2335 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2337 test "$silent" = yes && exec 6>/dev
/null
2340 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2341 ac_ls_di
=`ls -di .` &&
2342 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2343 as_fn_error $?
"working directory cannot be determined"
2344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2345 as_fn_error $?
"pwd does not report name of working directory"
2348 # Find the source files, if location was not specified.
2349 if test -z "$srcdir"; then
2350 ac_srcdir_defaulted
=yes
2351 # Try the directory containing this script, then the parent directory.
2352 ac_confdir
=`$as_dirname -- "$as_myself" ||
2353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2354 X"$as_myself" : 'X\(//\)[^/]' \| \
2355 X"$as_myself" : 'X\(//\)$' \| \
2356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2357 $as_echo X"$as_myself" |
2358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2376 if test ! -r "$srcdir/$ac_unique_file"; then
2380 ac_srcdir_defaulted
=no
2382 if test ! -r "$srcdir/$ac_unique_file"; then
2383 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2384 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2386 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2390 # When building in place, set srcdir=.
2391 if test "$ac_abs_confdir" = "$ac_pwd"; then
2394 # Remove unnecessary trailing slashes from srcdir.
2395 # Double slashes in file names in object file debugging info
2396 # mess up M-x gdb in Emacs.
2398 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2400 for ac_var
in $ac_precious_vars; do
2401 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2402 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2403 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2404 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2408 # Report the --help message.
2410 if test "$ac_init_help" = "long"; then
2411 # Omit some internal or obsolete options to make the list less imposing.
2412 # This message is too long to be a string in the A/UX 3.1 sh.
2414 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2416 Usage: $0 [OPTION]... [VAR=VALUE]...
2418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2419 VAR=VALUE. See below for descriptions of some of the useful variables.
2421 Defaults for the options are specified in brackets.
2424 -h, --help display this help and exit
2425 --help=short display options specific to this package
2426 --help=recursive display the short help of all the included packages
2427 -V, --version display version information and exit
2428 -q, --quiet, --silent do not print \`checking ...' messages
2429 --cache-file=FILE cache test results in FILE [disabled]
2430 -C, --config-cache alias for \`--cache-file=config.cache'
2431 -n, --no-create do not create output files
2432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2434 Installation directories:
2435 --prefix=PREFIX install architecture-independent files in PREFIX
2436 [$ac_default_prefix]
2437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2440 By default, \`make install' will install all the files in
2441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2443 for instance \`--prefix=\$HOME'.
2445 For better control, use the options below.
2447 Fine tuning of the installation directories:
2448 --bindir=DIR user executables [EPREFIX/bin]
2449 --sbindir=DIR system admin executables [EPREFIX/sbin]
2450 --libexecdir=DIR program executables [EPREFIX/libexec]
2451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2454 --libdir=DIR object code libraries [EPREFIX/lib]
2455 --includedir=DIR C header files [PREFIX/include]
2456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2459 --infodir=DIR info documentation [DATAROOTDIR/info]
2460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2461 --mandir=DIR man documentation [DATAROOTDIR/man]
2462 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2463 --htmldir=DIR html documentation [DOCDIR]
2464 --dvidir=DIR dvi documentation [DOCDIR]
2465 --pdfdir=DIR pdf documentation [DOCDIR]
2466 --psdir=DIR ps documentation [DOCDIR]
2472 --program-prefix=PREFIX prepend PREFIX to installed program names
2473 --program-suffix=SUFFIX append SUFFIX to installed program names
2474 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2477 --build=BUILD configure
for building on BUILD
[guessed
]
2478 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2479 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2483 if test -n "$ac_init_help"; then
2484 case $ac_init_help in
2485 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2490 --disable-option-checking ignore unrecognized
--enable/--with options
2491 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2492 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2493 --enable-maintainer-mode
2494 enable make rules and dependencies not useful
(and
2495 sometimes confusing
) to the casual installer
2496 --disable-largefile omit support
for large files
2497 --enable-threads={isoc|posix|isoc
+posix|windows
}
2498 specify multithreading API
2499 --disable-threads build without multithread safety
2500 --enable-plugins Enable support
for plugins
2501 --enable-cross-guesses={conservative|risky
}
2502 specify policy
for cross-compilation guesses
2503 --enable-dependency-tracking
2504 do not reject slow dependency extractors
2505 --disable-dependency-tracking
2506 speeds up one-time build
2507 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2508 --disable-silent-rules verbose build output
(undo
: "make V=0")
2510 Some influential environment variables
:
2511 CC C compiler
command
2512 CFLAGS C compiler flags
2513 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2514 nonstandard directory
<lib dir
>
2515 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2516 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2517 you have headers
in a nonstandard directory
<include dir
>
2520 Use these variables to override the choices made by
`configure' or to help
2521 it to find libraries and programs with nonstandard names/locations.
2523 Report bugs to the package provider.
2528 if test "$ac_init_help" = "recursive"; then
2529 # If there are subdirs, report their specific --help.
2530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2531 test -d "$ac_dir" ||
2532 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2539 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2540 # A ".." for each directory in $ac_dir_suffix.
2541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2542 case $ac_top_builddir_sub in
2543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2547 ac_abs_top_builddir=$ac_pwd
2548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2549 # for backward compatibility:
2550 ac_top_builddir=$ac_top_build_prefix
2553 .) # We are building in place.
2555 ac_top_srcdir=$ac_top_builddir_sub
2556 ac_abs_top_srcdir=$ac_pwd ;;
2557 [\\/]* | ?:[\\/]* ) # Absolute name.
2558 ac_srcdir=$srcdir$ac_dir_suffix;
2559 ac_top_srcdir=$srcdir
2560 ac_abs_top_srcdir=$srcdir ;;
2562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2563 ac_top_srcdir=$ac_top_build_prefix$srcdir
2564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2568 cd "$ac_dir" || { ac_status=$?; continue; }
2569 # Check for guested configure.
2570 if test -f "$ac_srcdir/configure.gnu"; then
2572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2573 elif test -f "$ac_srcdir/configure"; then
2575 $SHELL "$ac_srcdir/configure" --help=recursive
2577 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2579 cd "$ac_pwd" || { ac_status=$?; break; }
2583 test -n "$ac_init_help" && exit $ac_status
2584 if $ac_init_version; then
2586 libgnu configure UNUSED-VERSION
2587 generated by GNU Autoconf 2.69
2589 Copyright (C) 2012 Free Software Foundation, Inc.
2590 This configure script is free software; the Free Software Foundation
2591 gives unlimited permission to copy, distribute and modify it.
2596 ## ------------------------ ##
2597 ## Autoconf initialization. ##
2598 ## ------------------------ ##
2600 # ac_fn_c_try_compile LINENO
2601 # --------------------------
2602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2603 ac_fn_c_try_compile ()
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 rm -f conftest.$ac_objext
2607 if { { ac_try="$ac_compile"
2609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2610 *) ac_try_echo
=$ac_try;;
2612 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2613 $as_echo "$ac_try_echo"; } >&5
2614 (eval "$ac_compile") 2>conftest.err
2616 if test -s conftest.err
; then
2617 grep -v '^ *+' conftest.err
>conftest.er1
2618 cat conftest.er1
>&5
2619 mv -f conftest.er1 conftest.err
2621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2622 test $ac_status = 0; } && {
2623 test -z "$ac_c_werror_flag" ||
2624 test ! -s conftest.err
2625 } && test -s conftest.
$ac_objext; then :
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.
$ac_ext >&5
2633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2634 as_fn_set_status
$ac_retval
2636 } # ac_fn_c_try_compile
2638 # ac_fn_c_try_cpp LINENO
2639 # ----------------------
2640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2643 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2644 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2650 $as_echo "$ac_try_echo"; } >&5
2651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2653 if test -s conftest.err; then
2654 grep -v '^ *+' conftest.err >conftest.er1
2655 cat conftest.er1 >&5
2656 mv -f conftest.er1 conftest.err
2658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2659 test $ac_status = 0; } > conftest.i && {
2660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2661 test ! -s conftest.err
2665 $as_echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671 as_fn_set_status $ac_retval
2675 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2676 # -------------------------------------------------------
2677 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2678 # the include files in INCLUDES and setting the cache variable VAR
2680 ac_fn_c_check_header_mongrel ()
2682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2683 if eval \${$3+:} false; then :
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2685 $as_echo_n "checking for $2... " >&6; }
2686 if eval \${$3+:} false; then :
2687 $as_echo_n "(cached) " >&6
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2693 # Is the header compilable?
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2695 $as_echo_n "checking $2 usability... " >&6; }
2696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2697 /* end confdefs.h. */
2701 if ac_fn_c_try_compile "$LINENO"; then :
2702 ac_header_compiler=yes
2704 ac_header_compiler=no
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2708 $as_echo "$ac_header_compiler" >&6; }
2710 # Is the header present?
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2712 $as_echo_n "checking $2 presence... " >&6; }
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2717 if ac_fn_c_try_cpp "$LINENO"; then :
2718 ac_header_preproc=yes
2720 ac_header_preproc=no
2722 rm -f conftest.err conftest.i conftest.$ac_ext
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2724 $as_echo "$ac_header_preproc" >&6; }
2726 # So? What about this header?
2727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2730 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2736 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2738 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2740 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2742 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2748 $as_echo_n "checking for $2... " >&6; }
2749 if eval \${$3+:} false; then :
2750 $as_echo_n "(cached) " >&6
2752 eval "$3=\$ac_header_compiler"
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756 $as_echo "$ac_res" >&6; }
2758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760 } # ac_fn_c_check_header_mongrel
2762 # ac_fn_c_try_run LINENO
2763 # ----------------------
2764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2765 # that executables *can* be run.
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 if { { ac_try="$ac_link"
2771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2772 *) ac_try_echo
=$ac_try;;
2774 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775 $as_echo "$ac_try_echo"; } >&5
2776 (eval "$ac_link") 2>&5
2778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2780 { { case "(($ac_try" in
2781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2785 $as_echo "$ac_try_echo"; } >&5
2786 (eval "$ac_try") 2>&5
2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789 test $ac_status = 0; }; }; then :
2792 $as_echo "$as_me: program exited with status $ac_status" >&5
2793 $as_echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2796 ac_retval=$ac_status
2798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2800 as_fn_set_status $ac_retval
2804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2805 # -------------------------------------------------------
2806 # Tests whether HEADER exists and can be compiled using the include files in
2807 # INCLUDES, setting the cache variable VAR accordingly.
2808 ac_fn_c_check_header_compile ()
2810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2812 $as_echo_n "checking for $2... " >&6; }
2813 if eval \${$3+:} false; then :
2814 $as_echo_n "(cached) " >&6
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2821 if ac_fn_c_try_compile "$LINENO"; then :
2826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2830 $as_echo "$ac_res" >&6; }
2831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2833 } # ac_fn_c_check_header_compile
2835 # ac_fn_c_try_link LINENO
2836 # -----------------------
2837 # Try to link conftest.$ac_ext, and return whether this succeeded.
2840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2841 rm -f conftest.$ac_objext conftest$ac_exeext
2842 if { { ac_try="$ac_link"
2844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2845 *) ac_try_echo
=$ac_try;;
2847 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2848 $as_echo "$ac_try_echo"; } >&5
2849 (eval "$ac_link") 2>conftest.err
2851 if test -s conftest.err
; then
2852 grep -v '^ *+' conftest.err
>conftest.er1
2853 cat conftest.er1
>&5
2854 mv -f conftest.er1 conftest.err
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; } && {
2858 test -z "$ac_c_werror_flag" ||
2859 test ! -s conftest.err
2860 } && test -s conftest
$ac_exeext && {
2861 test "$cross_compiling" = yes ||
2862 test -x conftest
$ac_exeext
2866 $as_echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.
$ac_ext >&5
2871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2873 # interfere with the next link command; also delete a directory that is
2874 # left behind by Apple's compiler. We do this before executing the actions.
2875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2877 as_fn_set_status
$ac_retval
2879 } # ac_fn_c_try_link
2881 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2882 # -------------------------------------------
2883 # Tests whether TYPE exists after having included INCLUDES, setting cache
2884 # variable VAR accordingly.
2885 ac_fn_c_check_type
()
2887 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2889 $as_echo_n "checking for $2... " >&6; }
2890 if eval \
${$3+:} false
; then :
2891 $as_echo_n "(cached) " >&6
2894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2906 if ac_fn_c_try_compile
"$LINENO"; then :
2907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2908 /* end confdefs.h. */
2919 if ac_fn_c_try_compile
"$LINENO"; then :
2924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2930 $as_echo "$ac_res" >&6; }
2931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2933 } # ac_fn_c_check_type
2935 # ac_fn_c_check_func LINENO FUNC VAR
2936 # ----------------------------------
2937 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2938 ac_fn_c_check_func
()
2940 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2942 $as_echo_n "checking for $2... " >&6; }
2943 if eval \
${$3+:} false
; then :
2944 $as_echo_n "(cached) " >&6
2946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2947 /* end confdefs.h. */
2948 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2950 #define $2 innocuous_$2
2952 /* System header to define __stub macros and hopefully few prototypes,
2953 which can conflict with char $2 (); below.
2954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2955 <limits.h> exists even on freestanding compilers. */
2958 # include <limits.h>
2960 # include <assert.h>
2965 /* Override any GCC internal prototype to avoid an error.
2966 Use char because int might match the return type of a GCC
2967 builtin and then its argument prototype would still apply. */
2972 /* The GNU C library defines this for functions which it implements
2973 to always fail with ENOSYS. Some functions are actually named
2974 something starting with __ and the normal name is an alias. */
2975 #if defined __stub_$2 || defined __stub___$2
2987 if ac_fn_c_try_link
"$LINENO"; then :
2992 rm -f core conftest.err conftest.
$ac_objext \
2993 conftest
$ac_exeext conftest.
$ac_ext
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2997 $as_echo "$ac_res" >&6; }
2998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3000 } # ac_fn_c_check_func
3002 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3003 # ---------------------------------------------
3004 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3006 ac_fn_c_check_decl
()
3008 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3009 as_decl_name
=`echo $2|sed 's/ *(.*//'`
3010 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3012 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3013 if eval \
${$3+:} false
; then :
3014 $as_echo_n "(cached) " >&6
3016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3022 #ifndef $as_decl_name
3024 (void) $as_decl_use;
3026 (void) $as_decl_name;
3034 if ac_fn_c_try_compile
"$LINENO"; then :
3039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3043 $as_echo "$ac_res" >&6; }
3044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3046 } # ac_fn_c_check_decl
3048 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3049 # --------------------------------------------
3050 # Tries to find the compile-time value of EXPR in a program that includes
3051 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3053 ac_fn_c_compute_int
()
3055 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3056 if test "$cross_compiling" = yes; then
3057 # Depending upon the size, compute the lo and hi bounds.
3058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3064 static int test_array [1 - 2 * !(($2) >= 0)];
3066 return test_array [0];
3072 if ac_fn_c_try_compile
"$LINENO"; then :
3075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h. */
3081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3083 return test_array [0];
3089 if ac_fn_c_try_compile
"$LINENO"; then :
3090 ac_hi
=$ac_mid; break
3092 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3093 if test $ac_lo -le $ac_mid; then
3097 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h. */
3108 static int test_array [1 - 2 * !(($2) < 0)];
3110 return test_array [0];
3116 if ac_fn_c_try_compile
"$LINENO"; then :
3119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3125 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3127 return test_array [0];
3133 if ac_fn_c_try_compile
"$LINENO"; then :
3134 ac_lo
=$ac_mid; break
3136 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3137 if test $ac_mid -le $ac_hi; then
3141 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3151 # Binary search between lo and hi bounds.
3152 while test "x$ac_lo" != "x$ac_hi"; do
3153 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
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 :
3171 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3176 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3183 static long int longval () { return $2; }
3184 static unsigned long int ulongval () { return $2; }
3191 FILE *f = fopen ("conftest.val", "w");
3196 long int i = longval ();
3199 fprintf (f, "%ld", i);
3203 unsigned long int i = ulongval ();
3206 fprintf (f, "%lu", i);
3208 /* Do not output a trailing newline, as this causes \r\n confusion
3209 on some platforms. */
3210 return ferror (f) || fclose (f) != 0;
3216 if ac_fn_c_try_run
"$LINENO"; then :
3217 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3221 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3222 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3227 as_fn_set_status
$ac_retval
3229 } # ac_fn_c_compute_int
3231 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3232 # ----------------------------------------------------
3233 # Tries to find if the field MEMBER exists in type AGGR, after including
3234 # INCLUDES, setting cache variable VAR accordingly.
3235 ac_fn_c_check_member
()
3237 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3239 $as_echo_n "checking for $2.$3... " >&6; }
3240 if eval \
${$4+:} false
; then :
3241 $as_echo_n "(cached) " >&6
3243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h. */
3256 if ac_fn_c_try_compile
"$LINENO"; then :
3259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3266 if (sizeof ac_aggr.$3)
3272 if ac_fn_c_try_compile
"$LINENO"; then :
3277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3283 $as_echo "$ac_res" >&6; }
3284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3286 } # ac_fn_c_check_member
3287 cat >config.log
<<_ACEOF
3288 This file contains any messages produced by compilers while
3289 running configure, to aid debugging if configure makes a mistake.
3291 It was created by libgnu $as_me UNUSED-VERSION, which was
3292 generated by GNU Autoconf 2.69. Invocation command line was
3304 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3305 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3306 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3307 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3308 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3310 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3311 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3313 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3314 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3315 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3316 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3317 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3318 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3319 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir
=.
3328 $as_echo "PATH: $as_dir"
3344 # Keep a trace of the command line.
3345 # Strip out --no-create and --no-recursion so they do not pile up.
3346 # Strip out --silent because we don't want to record it for future runs.
3347 # Also quote any args containing shell meta-characters.
3348 # Make two passes to allow for proper duplicate-argument suppression.
3352 ac_must_keep_next
=false
3358 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3359 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3360 |
-silent |
--silent |
--silen |
--sile |
--sil)
3363 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3366 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3368 as_fn_append ac_configure_args1
" '$ac_arg'"
3369 if test $ac_must_keep_next = true
; then
3370 ac_must_keep_next
=false
# Got value, back to normal.
3373 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3374 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3375 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3376 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3377 case "$ac_configure_args0 " in
3378 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3381 -* ) ac_must_keep_next
=true
;;
3384 as_fn_append ac_configure_args
" '$ac_arg'"
3389 { ac_configure_args0
=; unset ac_configure_args0
;}
3390 { ac_configure_args1
=; unset ac_configure_args1
;}
3392 # When interrupted or exit'd, cleanup temporary files, and complete
3393 # config.log. We remove comments because anyway the quotes in there
3394 # would cause problems or look ugly.
3395 # WARNING: Use '\'' to represent an apostrophe within the trap.
3396 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3397 trap 'exit_status=$?
3398 # Save into config.log some information that might help in debugging.
3402 $as_echo "## ---------------- ##
3403 ## Cache variables. ##
3404 ## ---------------- ##"
3406 # The following way of writing the cache mishandles newlines in values,
3408 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3409 eval ac_val=\$$ac_var
3413 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3414 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3417 _ | IFS | as_nl) ;; #(
3418 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3419 *) { eval $ac_var=; unset $ac_var;} ;;
3424 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3425 *${as_nl}ac_space=\ *)
3427 "s/'\''/'\''\\\\'\'''\''/g;
3428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3431 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3438 $as_echo "## ----------------- ##
3439 ## Output variables. ##
3440 ## ----------------- ##"
3442 for ac_var in $ac_subst_vars
3444 eval ac_val=\$$ac_var
3446 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3448 $as_echo "$ac_var='\''$ac_val'\''"
3452 if test -n "$ac_subst_files"; then
3453 $as_echo "## ------------------- ##
3454 ## File substitutions. ##
3455 ## ------------------- ##"
3457 for ac_var
in $ac_subst_files
3459 eval ac_val
=\$
$ac_var
3461 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3463 $as_echo "$ac_var='\''$ac_val'\''"
3468 if test -s confdefs.h; then
3469 $as_echo "## ----------- ##
3476 test "$ac_signal" != 0 &&
3477 $as_echo "$as_me: caught signal $ac_signal"
3478 $as_echo "$as_me: exit $exit_status"
3480 rm -f core *.core core.conftest.* &&
3481 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3484 for ac_signal
in 1 2 13 15; do
3485 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3490 rm -f -r conftest
* confdefs.h
3492 $as_echo "/* confdefs.h */" > confdefs.h
3494 # Predefined preprocessor variables.
3496 cat >>confdefs.h
<<_ACEOF
3497 #define PACKAGE_NAME "$PACKAGE_NAME"
3500 cat >>confdefs.h
<<_ACEOF
3501 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3504 cat >>confdefs.h
<<_ACEOF
3505 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3508 cat >>confdefs.h
<<_ACEOF
3509 #define PACKAGE_STRING "$PACKAGE_STRING"
3512 cat >>confdefs.h
<<_ACEOF
3513 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3516 cat >>confdefs.h
<<_ACEOF
3517 #define PACKAGE_URL "$PACKAGE_URL"
3521 # Let the site file select an alternate cache file if it wants to.
3522 # Prefer an explicitly selected file to automatically selected ones.
3525 if test -n "$CONFIG_SITE"; then
3526 # We do not want a PATH search for config.site.
3527 case $CONFIG_SITE in #((
3528 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3529 */*) ac_site_file1
=$CONFIG_SITE;;
3530 *) ac_site_file1
=.
/$CONFIG_SITE;;
3532 elif test "x$prefix" != xNONE
; then
3533 ac_site_file1
=$prefix/share
/config.site
3534 ac_site_file2
=$prefix/etc
/config.site
3536 ac_site_file1
=$ac_default_prefix/share
/config.site
3537 ac_site_file2
=$ac_default_prefix/etc
/config.site
3539 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3541 test "x$ac_site_file" = xNONE
&& continue
3542 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3544 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3545 sed 's/^/| /' "$ac_site_file" >&5
3547 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 as_fn_error $?
"failed to load site script $ac_site_file
3550 See \`config.log' for more details" "$LINENO" 5; }
3554 if test -r "$cache_file"; then
3555 # Some versions of bash will fail to source /dev/null (special files
3556 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3557 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3559 $as_echo "$as_me: loading cache $cache_file" >&6;}
3561 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3562 *) .
"./$cache_file";;
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3567 $as_echo "$as_me: creating cache $cache_file" >&6;}
3571 as_fn_append ac_header_list
" arpa/inet.h"
3572 as_fn_append ac_header_list
" features.h"
3573 as_fn_append ac_header_list
" sys/socket.h"
3574 as_fn_append ac_func_list
" canonicalize_file_name"
3575 as_fn_append ac_func_list
" getcwd"
3576 as_fn_append ac_func_list
" readlink"
3577 as_fn_append ac_func_list
" realpath"
3578 as_fn_append ac_header_list
" sys/param.h"
3579 as_fn_append ac_header_list
" unistd.h"
3580 as_fn_append ac_func_list
" _set_invalid_parameter_handler"
3581 as_fn_append ac_func_list
" fchdir"
3582 as_fn_append ac_header_list
" dirent.h"
3583 as_fn_append ac_func_list
" fcntl"
3584 as_fn_append ac_func_list
" symlink"
3585 as_fn_append ac_func_list
" fdopendir"
3586 as_fn_append ac_func_list
" mempcpy"
3587 as_fn_append ac_header_list
" fnmatch.h"
3588 as_fn_append ac_func_list
" fnmatch"
3589 as_fn_append ac_func_list
" btowc"
3590 as_fn_append ac_func_list
" isblank"
3591 as_fn_append ac_func_list
" iswctype"
3592 as_fn_append ac_func_list
" mbsrtowcs"
3593 as_fn_append ac_func_list
" wmemchr"
3594 as_fn_append ac_func_list
" wmemcpy"
3595 as_fn_append ac_func_list
" wmempcpy"
3596 as_fn_append ac_header_list
" wctype.h"
3597 gl_fnmatch_required
=GNU
3598 as_fn_append ac_header_list
" sys/stat.h"
3599 as_fn_append ac_func_list
" fstatat"
3600 as_fn_append ac_func_list
" getdtablesize"
3601 as_fn_append ac_func_list
" getlogin_r"
3602 as_fn_append ac_func_list
" getprogname"
3603 as_fn_append ac_func_list
" getexecname"
3604 as_fn_append ac_header_list
" sys/time.h"
3605 as_fn_append ac_func_list
" gettimeofday"
3606 as_fn_append ac_header_list
" glob.h"
3607 as_fn_append ac_func_list
" glob"
3608 as_fn_append ac_func_list
" glob_pattern_p"
3609 as_fn_append ac_func_list
" getpwnam_r"
3610 as_fn_append ac_header_list
" netdb.h"
3611 as_fn_append ac_header_list
" netinet/in.h"
3612 as_fn_append ac_header_list
" limits.h"
3613 as_fn_append ac_header_list
" wchar.h"
3614 as_fn_append ac_header_list
" stdint.h"
3615 as_fn_append ac_header_list
" inttypes.h"
3616 as_fn_append ac_header_list
" threads.h"
3617 as_fn_append ac_func_list
" lstat"
3618 as_fn_append ac_header_list
" math.h"
3619 as_fn_append ac_func_list
" mbsinit"
3620 as_fn_append ac_func_list
" mbrtowc"
3621 as_fn_append ac_header_list
" sys/mman.h"
3622 as_fn_append ac_func_list
" mprotect"
3623 as_fn_append ac_func_list
" mkostemp"
3624 as_fn_append ac_func_list
" openat"
3625 as_fn_append ac_func_list
" link"
3626 as_fn_append ac_func_list
" setenv"
3627 as_fn_append ac_func_list
" strdup"
3628 as_fn_append ac_func_list
" strerror_r"
3629 as_fn_append ac_func_list
" __xpg_strerror_r"
3630 as_fn_append ac_func_list
" catgets"
3631 as_fn_append ac_func_list
" snprintf"
3632 as_fn_append ac_header_list
" sys/uio.h"
3633 as_fn_append ac_func_list
" localtime_r"
3634 as_fn_append ac_func_list
" pipe"
3635 as_fn_append ac_header_list
" crtdefs.h"
3636 as_fn_append ac_func_list
" iswcntrl"
3637 # Check that the precious variables saved in the cache have kept the same
3639 ac_cache_corrupted
=false
3640 for ac_var
in $ac_precious_vars; do
3641 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3642 eval ac_new_set
=\
$ac_env_${ac_var}_set
3643 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3644 eval ac_new_val
=\
$ac_env_${ac_var}_value
3645 case $ac_old_set,$ac_new_set in
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3648 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3649 ac_cache_corrupted
=: ;;
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3652 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3653 ac_cache_corrupted
=: ;;
3656 if test "x$ac_old_val" != "x$ac_new_val"; then
3657 # differences in whitespace do not lead to failure.
3658 ac_old_val_w
=`echo x $ac_old_val`
3659 ac_new_val_w
=`echo x $ac_new_val`
3660 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3662 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3663 ac_cache_corrupted
=:
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3666 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3667 eval $ac_var=\
$ac_old_val
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3670 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3672 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3675 # Pass precious variables to config.status.
3676 if test "$ac_new_set" = set; then
3678 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3679 *) ac_arg
=$ac_var=$ac_new_val ;;
3681 case " $ac_configure_args " in
3682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3683 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3687 if $ac_cache_corrupted; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3691 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3692 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3694 ## -------------------- ##
3695 ## Main body of script. ##
3696 ## -------------------- ##
3699 ac_cpp
='$CPP $CPPFLAGS'
3700 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3709 ac_config_headers
="$ac_config_headers config.h:config.in"
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3715 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3716 # Check whether --enable-maintainer-mode was given.
3717 if test "${enable_maintainer_mode+set}" = set; then :
3718 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3720 USE_MAINTAINER_MODE
=no
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3724 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3725 if test $USE_MAINTAINER_MODE = yes; then
3726 MAINTAINER_MODE_TRUE
=
3727 MAINTAINER_MODE_FALSE
='#'
3729 MAINTAINER_MODE_TRUE
='#'
3730 MAINTAINER_MODE_FALSE
=
3733 MAINT
=$MAINTAINER_MODE_TRUE
3738 ac_cpp
='$CPP $CPPFLAGS'
3739 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3742 if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3744 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_CC+:} false
; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC
="$CC" # Let the user override the test.
3753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir
=.
3758 for ac_exec_ext
in '' $ac_executable_extensions; do
3759 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3781 if test -z "$ac_cv_prog_CC"; then
3783 # Extract the first word of "gcc", so it can be a program name with args.
3784 set dummy gcc
; ac_word
=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir
=.
3798 for ac_exec_ext
in '' $ac_executable_extensions; do
3799 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_ac_ct_CC
="gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3819 if test "x$ac_ct_CC" = x
; then
3822 case $cross_compiling:$ac_tool_warned in
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned
=yes ;;
3834 if test -z "$CC"; then
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if ${ac_cv_prog_CC+:} false
; then :
3841 $as_echo_n "(cached) " >&6
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC
="$CC" # Let the user override the test.
3846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir
=.
3851 for ac_exec_ext
in '' $ac_executable_extensions; do
3852 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 if test -n "$CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3875 if test -z "$CC"; then
3876 # Extract the first word of "cc", so it can be a program name with args.
3877 set dummy cc
; ac_word
=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if ${ac_cv_prog_CC+:} false
; then :
3881 $as_echo_n "(cached) " >&6
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC
="$CC" # Let the user override the test.
3887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3891 test -z "$as_dir" && as_dir
=.
3892 for ac_exec_ext
in '' $ac_executable_extensions; do
3893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895 ac_prog_rejected
=yes
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 if test $ac_prog_rejected = yes; then
3907 # We found a bogon in the path, so make sure we never use it.
3908 set dummy
$ac_cv_prog_CC
3910 if test $# != 0; then
3911 # We chose a different compiler from the bogus one.
3912 # However, it has the same basename, so the bogon will be chosen
3913 # first if we set CC to just the basename; use the full file name.
3915 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3921 if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3931 if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog
in cl.exe
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_CC+:} false
; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC
="$CC" # Let the user override the test.
3945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir
=.
3950 for ac_exec_ext
in '' $ac_executable_extensions; do
3951 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3972 test -n "$CC" && break
3975 if test -z "$CC"; then
3977 for ac_prog
in cl.exe
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy
$ac_prog; ac_word
=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3984 $as_echo_n "(cached) " >&6
3986 if test -n "$ac_ct_CC"; then
3987 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir
=.
3994 for ac_exec_ext
in '' $ac_executable_extensions; do
3995 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_ac_ct_CC
="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4007 if test -n "$ac_ct_CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009 $as_echo "$ac_ct_CC" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 test -n "$ac_ct_CC" && break
4019 if test "x$ac_ct_CC" = x
; then
4022 case $cross_compiling:$ac_tool_warned in
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned
=yes ;;
4033 if test -z "$CC"; then
4034 if test -n "$ac_tool_prefix"; then
4035 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4036 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if ${ac_cv_prog_CC+:} false
; then :
4040 $as_echo_n "(cached) " >&6
4042 if test -n "$CC"; then
4043 ac_cv_prog_CC
="$CC" # Let the user override the test.
4045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4049 test -z "$as_dir" && as_dir
=.
4050 for ac_exec_ext
in '' $ac_executable_extensions; do
4051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4052 ac_cv_prog_CC
="${ac_tool_prefix}clang"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 if test -n "$CC"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065 $as_echo "$CC" >&6; }
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4073 if test -z "$ac_cv_prog_CC"; then
4075 # Extract the first word of "clang", so it can be a program name with args.
4076 set dummy clang
; ac_word
=$2
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078 $as_echo_n "checking for $ac_word... " >&6; }
4079 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4080 $as_echo_n "(cached) " >&6
4082 if test -n "$ac_ct_CC"; then
4083 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4089 test -z "$as_dir" && as_dir
=.
4090 for ac_exec_ext
in '' $ac_executable_extensions; do
4091 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_ac_ct_CC
="clang"
4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4103 if test -n "$ac_ct_CC"; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4105 $as_echo "$ac_ct_CC" >&6; }
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 $as_echo "no" >&6; }
4111 if test "x$ac_ct_CC" = x
; then
4114 case $cross_compiling:$ac_tool_warned in
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4118 ac_tool_warned
=yes ;;
4129 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4131 as_fn_error $?
"no acceptable C compiler found in \$PATH
4132 See \`config.log' for more details" "$LINENO" 5; }
4134 # Provide some information about the compiler.
4135 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4138 for ac_option
in --version -v -V -qversion -version; do
4139 { { ac_try
="$ac_compiler $ac_option >&5"
4141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4145 $as_echo "$ac_try_echo"; } >&5
4146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4148 if test -s conftest.err; then
4150 ... rest of stderr output deleted ...
4151 10q' conftest.err >conftest.er1
4152 cat conftest.er1 >&5
4154 rm -f conftest.er1 conftest.err
4155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4156 test $ac_status = 0; }
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4170 ac_clean_files_save=$ac_clean_files
4171 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4172 # Try to create an executable without -o first, disregard a.out.
4173 # It will help us diagnose broken compilers, and finding out an intuition
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4176 $as_echo_n "checking whether the C compiler works... " >&6; }
4177 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4179 # The possible output files:
4180 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4183 for ac_file in $ac_files
4186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4187 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4192 if { { ac_try="$ac_link_default"
4194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4195 *) ac_try_echo
=$ac_try;;
4197 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4198 $as_echo "$ac_try_echo"; } >&5
4199 (eval "$ac_link_default") 2>&5
4201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4202 test $ac_status = 0; }; then :
4203 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4204 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4205 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4206 # so that the user can short-circuit this test for compilers unknown to
4208 for ac_file
in $ac_files ''
4210 test -f "$ac_file" ||
continue
4212 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4215 # We found the default executable, but exeext='' is most
4219 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4221 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4223 # We set ac_cv_exeext here because the later test for it is not
4224 # safe: cross compilers may not add the suffix if given an `-o'
4225 # argument, so we may need to know it at that point already.
4226 # Even if this section looks crufty: it has the advantage of
4233 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4238 if test -z "$ac_file"; then :
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4241 $as_echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.
$ac_ext >&5
4244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4246 as_fn_error
77 "C compiler cannot create executables
4247 See \`config.log' for more details" "$LINENO" 5; }
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4250 $as_echo "yes" >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4253 $as_echo_n "checking for C compiler default output file name... " >&6; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4255 $as_echo "$ac_file" >&6; }
4256 ac_exeext
=$ac_cv_exeext
4258 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4259 ac_clean_files
=$ac_clean_files_save
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4261 $as_echo_n "checking for suffix of executables... " >&6; }
4262 if { { ac_try
="$ac_link"
4264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4268 $as_echo "$ac_try_echo"; } >&5
4269 (eval "$ac_link") 2>&5
4271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4272 test $ac_status = 0; }; then :
4273 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4274 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4275 # work properly (i.e., refer to `conftest.exe'), while it won't with
4277 for ac_file
in conftest.exe conftest conftest.
*; do
4278 test -f "$ac_file" ||
continue
4280 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4281 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4289 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4290 See \`config.log' for more details" "$LINENO" 5; }
4292 rm -f conftest conftest
$ac_cv_exeext
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4294 $as_echo "$ac_cv_exeext" >&6; }
4296 rm -f conftest.
$ac_ext
4297 EXEEXT
=$ac_cv_exeext
4299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4305 FILE *f = fopen ("conftest.out", "w");
4306 return ferror (f) || fclose (f) != 0;
4312 ac_clean_files
="$ac_clean_files conftest.out"
4313 # Check that the compiler produces executables we can run. If not, either
4314 # the compiler is broken, or we cross compile.
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4316 $as_echo_n "checking whether we are cross compiling... " >&6; }
4317 if test "$cross_compiling" != yes; then
4318 { { ac_try
="$ac_link"
4320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_link") 2>&5
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }
4329 if { ac_try='./conftest$ac_cv_exeext'
4330 { { case "(($ac_try" in
4331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4332 *) ac_try_echo
=$ac_try;;
4334 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; }; }; then
4342 if test "$cross_compiling" = maybe
; then
4345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error $?
"cannot run C compiled programs.
4348 If you meant to cross compile, use \`--host'.
4349 See \`config.log' for more details" "$LINENO" 5; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4354 $as_echo "$cross_compiling" >&6; }
4356 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4357 ac_clean_files
=$ac_clean_files_save
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4359 $as_echo_n "checking for suffix of object files... " >&6; }
4360 if ${ac_cv_objext+:} false
; then :
4361 $as_echo_n "(cached) " >&6
4363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 rm -f conftest.o conftest.obj
4375 if { { ac_try
="$ac_compile"
4377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4381 $as_echo "$ac_try_echo"; } >&5
4382 (eval "$ac_compile") 2>&5
4384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4385 test $ac_status = 0; }; then :
4386 for ac_file in conftest.o conftest.obj conftest.*; do
4387 test -f "$ac_file" || continue;
4389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4390 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4395 $as_echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4400 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4401 See \
`config.log' for more details" "$LINENO" 5; }
4403 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4406 $as_echo "$ac_cv_objext" >&6; }
4407 OBJEXT=$ac_cv_objext
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4410 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4411 if ${ac_cv_c_compiler_gnu+:} false; then :
4412 $as_echo_n "(cached) " >&6
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4428 if ac_fn_c_try_compile "$LINENO"; then :
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4438 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4439 if test $ac_compiler_gnu = yes; then
4444 ac_test_CFLAGS=${CFLAGS+set}
4445 ac_save_CFLAGS=$CFLAGS
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4447 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4448 if ${ac_cv_prog_cc_g+:} false; then :
4449 $as_echo_n "(cached) " >&6
4451 ac_save_c_werror_flag=$ac_c_werror_flag
4452 ac_c_werror_flag=yes
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4466 if ac_fn_c_try_compile "$LINENO"; then :
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4481 if ac_fn_c_try_compile "$LINENO"; then :
4484 ac_c_werror_flag=$ac_save_c_werror_flag
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4497 if ac_fn_c_try_compile "$LINENO"; then :
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 ac_c_werror_flag=$ac_save_c_werror_flag
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4508 $as_echo "$ac_cv_prog_cc_g" >&6; }
4509 if test "$ac_test_CFLAGS" = set; then
4510 CFLAGS=$ac_save_CFLAGS
4511 elif test $ac_cv_prog_cc_g = yes; then
4512 if test "$GCC" = yes; then
4518 if test "$GCC" = yes; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4525 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
4526 if ${ac_cv_prog_cc_c11+:} false; then :
4527 $as_echo_n "(cached) " >&6
4529 ac_cv_prog_cc_c11=no
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4534 #include <stdbool.h>
4540 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4541 #define debug(...) fprintf (stderr, __VA_ARGS__)
4542 #define showlist(...) puts (#__VA_ARGS__)
4543 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4545 test_varargs_macros (void)
4550 debug ("X = %d\n", x);
4551 showlist (The first, second, and third items.);
4552 report (x>y, "x is %d but y is %d", x, y);
4555 // Check long long types.
4556 #define BIG64 18446744073709551615ull
4557 #define BIG32 4294967295ul
4558 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4560 your preprocessor is broken;
4564 your preprocessor is broken;
4566 static long long int bignum = -9223372036854775807LL;
4567 static unsigned long long int ubignum = BIG64;
4569 struct incomplete_array
4577 const wchar_t *name;
4581 typedef const char *ccp;
4584 test_restrict (ccp restrict text)
4586 // See if C++-style comments work.
4587 // Iterate through items via the restricted pointer.
4588 // Also check for declarations in for loops.
4589 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4594 // Check varargs and va_copy.
4596 test_varargs (const char *format, ...)
4599 va_start (args, format);
4601 va_copy (args_copy, args);
4603 const char *str = "";
4612 str = va_arg (args_copy, const char *);
4615 number = va_arg (args_copy, int);
4618 fnumber = va_arg (args_copy, double);
4627 return *str && number && fnumber;
4630 char _Alignas (double) aligned_as_double;
4631 char _Alignas (0) no_special_alignment;
4632 extern char aligned_as_int;
4633 char _Alignas (0) _Alignas (int) aligned_as_int;
4638 int_alignment = _Alignof (int),
4639 int_array_alignment = _Alignof (int[100]),
4640 char_alignment = _Alignof (char)
4642 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4645 int _Noreturn does_not_return (void) { for (;;) continue; }
4647 // Check _Static_assert.
4648 struct test_static_assert
4651 _Static_assert (sizeof (int) <= sizeof (long int),
4652 "_Static_assert does not work in struct");
4656 // Check UTF-8 literals.
4657 #define u8 syntax error!
4658 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4660 // Check duplicate typedefs.
4661 typedef long *long_ptr;
4662 typedef long int *long_ptr;
4663 typedef long_ptr long_ptr;
4665 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4669 struct { int i; int j; };
4670 struct { int k; long int l; } w;
4680 _Bool success = false;
4683 if (test_restrict ("String literal") == 0)
4685 char *restrict newvar = "Another string";
4688 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4689 test_varargs_macros ();
4691 // Check flexible array members.
4692 struct incomplete_array *ia =
4693 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4695 for (int i = 0; i < ia->datasize; ++i)
4696 ia->data[i] = i * 1.234;
4698 // Check named initializers.
4699 struct named_init ni = {
4701 .name = L"Test wide string",
4702 .average = 543.34343,
4707 int dynamic_array[ni.number];
4708 dynamic_array[ni.number - 1] = 543;
4710 // work around unused variable warnings
4711 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4712 || dynamic_array[ni.number - 1] != 543);
4716 _Static_assert ((offsetof (struct anonymous, i)
4717 == offsetof (struct anonymous, w.k)),
4718 "Anonymous union alignment botch");
4724 for ac_arg in '' -std=gnu11
4726 CC="$ac_save_CC $ac_arg"
4727 if ac_fn_c_try_compile "$LINENO"; then :
4728 ac_cv_prog_cc_c11=$ac_arg
4730 rm -f core conftest.err conftest.$ac_objext
4731 test "x$ac_cv_prog_cc_c11" != "xno" && break
4733 rm -f conftest.$ac_ext
4738 ac_prog_cc_stdc_options=
4739 case "x$ac_cv_prog_cc_c11" in
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4742 $as_echo "none needed" >&6; } ;;
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4745 $as_echo "unsupported" >&6; } ;;
4747 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4748 CC=$CC$ac_prog_cc_stdc_options
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4750 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
4752 if test "x$ac_cv_prog_cc_c11" != xno; then :
4754 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4757 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
4758 if ${ac_cv_prog_cc_c99+:} false; then :
4759 $as_echo_n "(cached) " >&6
4761 ac_cv_prog_cc_c99=no
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4766 #include <stdbool.h>
4772 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4773 #define debug(...) fprintf (stderr, __VA_ARGS__)
4774 #define showlist(...) puts (#__VA_ARGS__)
4775 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4777 test_varargs_macros (void)
4782 debug ("X = %d\n", x);
4783 showlist (The first, second, and third items.);
4784 report (x>y, "x is %d but y is %d", x, y);
4787 // Check long long types.
4788 #define BIG64 18446744073709551615ull
4789 #define BIG32 4294967295ul
4790 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4792 your preprocessor is broken;
4796 your preprocessor is broken;
4798 static long long int bignum = -9223372036854775807LL;
4799 static unsigned long long int ubignum = BIG64;
4801 struct incomplete_array
4809 const wchar_t *name;
4813 typedef const char *ccp;
4816 test_restrict (ccp restrict text)
4818 // See if C++-style comments work.
4819 // Iterate through items via the restricted pointer.
4820 // Also check for declarations in for loops.
4821 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4826 // Check varargs and va_copy.
4828 test_varargs (const char *format, ...)
4831 va_start (args, format);
4833 va_copy (args_copy, args);
4835 const char *str = "";
4844 str = va_arg (args_copy, const char *);
4847 number = va_arg (args_copy, int);
4850 fnumber = va_arg (args_copy, double);
4859 return *str && number && fnumber;
4866 _Bool success = false;
4869 if (test_restrict ("String literal") == 0)
4871 char *restrict newvar = "Another string";
4874 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4875 test_varargs_macros ();
4877 // Check flexible array members.
4878 struct incomplete_array *ia =
4879 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4881 for (int i = 0; i < ia->datasize; ++i)
4882 ia->data[i] = i * 1.234;
4884 // Check named initializers.
4885 struct named_init ni = {
4887 .name = L"Test wide string",
4888 .average = 543.34343,
4893 int dynamic_array[ni.number];
4894 dynamic_array[ni.number - 1] = 543;
4896 // work around unused variable warnings
4897 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4898 || dynamic_array[ni.number - 1] != 543);
4904 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
4906 CC="$ac_save_CC $ac_arg"
4907 if ac_fn_c_try_compile "$LINENO"; then :
4908 ac_cv_prog_cc_c99=$ac_arg
4910 rm -f core conftest.err conftest.$ac_objext
4911 test "x$ac_cv_prog_cc_c99" != "xno" && break
4913 rm -f conftest.$ac_ext
4918 ac_prog_cc_stdc_options=
4919 case "x$ac_cv_prog_cc_c99" in
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4922 $as_echo "none needed" >&6; } ;;
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4925 $as_echo "unsupported" >&6; } ;;
4927 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
4928 CC=$CC$ac_prog_cc_stdc_options
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4930 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4932 if test "x$ac_cv_prog_cc_c99" != xno; then :
4934 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4937 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
4938 if ${ac_cv_prog_cc_c89+:} false; then :
4939 $as_echo_n "(cached) " >&6
4941 ac_cv_prog_cc_c89=no
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4948 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4949 struct buf { int x; };
4950 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4951 static char *e (p, i)
4957 static char *f (char * (*g) (char **, int), char **p, ...)
4962 s = g (p, va_arg (v,int));
4967 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4968 function prototypes and stuff, but not '\xHH' hex character constants.
4969 These don't provoke an error unfortunately, instead are silently treated
4970 as 'x'. The following induces an error, until -std is added to get
4971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4972 array size at least. It's necessary to write '\x00'==0 to get something
4973 that's true only with -std. */
4974 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4976 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4977 inside strings and character constants. */
4979 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4981 int test (int i, double x);
4982 struct s1 {int (*f) (int a);};
4983 struct s2 {int (*f) (double a);};
4984 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4990 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4995 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4996 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4998 CC="$ac_save_CC $ac_arg"
4999 if ac_fn_c_try_compile "$LINENO"; then :
5000 ac_cv_prog_cc_c89=$ac_arg
5002 rm -f core conftest.err conftest.$ac_objext
5003 test "x$ac_cv_prog_cc_c89" != "xno" && break
5005 rm -f conftest.$ac_ext
5010 ac_prog_cc_stdc_options=
5011 case "x$ac_cv_prog_cc_c89" in
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5014 $as_echo "none needed" >&6; } ;;
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5017 $as_echo "unsupported" >&6; } ;;
5019 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5020 CC=$CC$ac_prog_cc_stdc_options
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5022 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5024 if test "x$ac_cv_prog_cc_c89" != xno; then :
5026 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5029 ac_cv_prog_cc_stdc=no
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044 ac_cpp='$CPP $CPPFLAGS'
5045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5049 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5050 # On Suns, sometimes $CPP names a directory.
5051 if test -n "$CPP" && test -d "$CPP"; then
5054 if test -z "$CPP"; then
5055 if ${ac_cv_prog_CPP+:} false; then :
5056 $as_echo_n "(cached) " >&6
5058 # Double quotes because CPP needs to be expanded
5059 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5062 for ac_c_preproc_warn_flag in '' yes
5064 # Use a header file that comes with gcc, so configuring glibc
5065 # with a fresh cross-compiler works.
5066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5067 # <limits.h> exists even on freestanding compilers.
5068 # On the NeXT, cc -E runs the code through the compiler's parser,
5069 # not just through cpp. "Syntax error" is here to catch this case.
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5073 # include <limits.h>
5075 # include <assert.h>
5079 if ac_fn_c_try_cpp "$LINENO"; then :
5082 # Broken: fails on valid input.
5085 rm -f conftest.err conftest.i conftest.$ac_ext
5087 # OK, works on sane cases. Now check whether nonexistent headers
5088 # can be detected and how.
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5091 #include <ac_nonexistent.h>
5093 if ac_fn_c_try_cpp "$LINENO"; then :
5094 # Broken: success on invalid input.
5097 # Passes both tests.
5101 rm -f conftest.err conftest.i conftest.$ac_ext
5104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5105 rm -f conftest.i conftest.err conftest.
$ac_ext
5106 if $ac_preproc_ok; then :
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5119 $as_echo "$CPP" >&6; }
5121 for ac_c_preproc_warn_flag
in '' yes
5123 # Use a header file that comes with gcc, so configuring glibc
5124 # with a fresh cross-compiler works.
5125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5126 # <limits.h> exists even on freestanding compilers.
5127 # On the NeXT, cc -E runs the code through the compiler's parser,
5128 # not just through cpp. "Syntax error" is here to catch this case.
5129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5132 # include <limits.h>
5134 # include <assert.h>
5138 if ac_fn_c_try_cpp
"$LINENO"; then :
5141 # Broken: fails on valid input.
5144 rm -f conftest.err conftest.i conftest.
$ac_ext
5146 # OK, works on sane cases. Now check whether nonexistent headers
5147 # can be detected and how.
5148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150 #include <ac_nonexistent.h>
5152 if ac_fn_c_try_cpp
"$LINENO"; then :
5153 # Broken: success on invalid input.
5156 # Passes both tests.
5160 rm -f conftest.err conftest.i conftest.
$ac_ext
5163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5164 rm -f conftest.i conftest.err conftest.
$ac_ext
5165 if $ac_preproc_ok; then :
5168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5170 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5171 See \`config.log' for more details" "$LINENO" 5; }
5175 ac_cpp
='$CPP $CPPFLAGS'
5176 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5177 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5178 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5182 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5183 if ${ac_cv_path_GREP+:} false
; then :
5184 $as_echo_n "(cached) " >&6
5186 if test -z "$GREP"; then
5187 ac_path_GREP_found
=false
5188 # Loop through the user's path and test for each of PROGNAME-LIST
5189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5190 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5193 test -z "$as_dir" && as_dir
=.
5194 for ac_prog
in grep ggrep
; do
5195 for ac_exec_ext
in '' $ac_executable_extensions; do
5196 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5197 as_fn_executable_p
"$ac_path_GREP" ||
continue
5198 # Check for GNU ac_path_GREP and select it if it is found.
5199 # Check for GNU $ac_path_GREP
5200 case `"$ac_path_GREP" --version 2>&1` in
5202 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5205 $as_echo_n 0123456789 >"conftest.in"
5208 cat "conftest.in" "conftest.in" >"conftest.tmp"
5209 mv "conftest.tmp" "conftest.in"
5210 cp "conftest.in" "conftest.nl"
5211 $as_echo 'GREP' >> "conftest.nl"
5212 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5213 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5214 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5215 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5216 # Best one so far, save it but keep looking for a better one
5217 ac_cv_path_GREP
="$ac_path_GREP"
5218 ac_path_GREP_max
=$ac_count
5220 # 10*(2^10) chars as input seems more than enough
5221 test $ac_count -gt 10 && break
5223 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5226 $ac_path_GREP_found && break 3
5231 if test -z "$ac_cv_path_GREP"; then
5232 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5235 ac_cv_path_GREP
=$GREP
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5240 $as_echo "$ac_cv_path_GREP" >&6; }
5241 GREP
="$ac_cv_path_GREP"
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5245 $as_echo_n "checking for egrep... " >&6; }
5246 if ${ac_cv_path_EGREP+:} false
; then :
5247 $as_echo_n "(cached) " >&6
5249 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5250 then ac_cv_path_EGREP
="$GREP -E"
5252 if test -z "$EGREP"; then
5253 ac_path_EGREP_found
=false
5254 # Loop through the user's path and test for each of PROGNAME-LIST
5255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5259 test -z "$as_dir" && as_dir
=.
5260 for ac_prog
in egrep; do
5261 for ac_exec_ext
in '' $ac_executable_extensions; do
5262 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5263 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5264 # Check for GNU ac_path_EGREP and select it if it is found.
5265 # Check for GNU $ac_path_EGREP
5266 case `"$ac_path_EGREP" --version 2>&1` in
5268 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5271 $as_echo_n 0123456789 >"conftest.in"
5274 cat "conftest.in" "conftest.in" >"conftest.tmp"
5275 mv "conftest.tmp" "conftest.in"
5276 cp "conftest.in" "conftest.nl"
5277 $as_echo 'EGREP' >> "conftest.nl"
5278 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5279 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5280 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5281 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5282 # Best one so far, save it but keep looking for a better one
5283 ac_cv_path_EGREP
="$ac_path_EGREP"
5284 ac_path_EGREP_max
=$ac_count
5286 # 10*(2^10) chars as input seems more than enough
5287 test $ac_count -gt 10 && break
5289 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5292 $ac_path_EGREP_found && break 3
5297 if test -z "$ac_cv_path_EGREP"; then
5298 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5301 ac_cv_path_EGREP
=$EGREP
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5307 $as_echo "$ac_cv_path_EGREP" >&6; }
5308 EGREP
="$ac_cv_path_EGREP"
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5312 $as_echo_n "checking for ANSI C header files... " >&6; }
5313 if ${ac_cv_header_stdc+:} false
; then :
5314 $as_echo_n "(cached) " >&6
5316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5331 if ac_fn_c_try_compile
"$LINENO"; then :
5332 ac_cv_header_stdc
=yes
5334 ac_cv_header_stdc
=no
5336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5338 if test $ac_cv_header_stdc = yes; then
5339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5346 $EGREP "memchr" >/dev
/null
2>&1; then :
5349 ac_cv_header_stdc
=no
5355 if test $ac_cv_header_stdc = yes; then
5356 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 $EGREP "free" >/dev
/null
2>&1; then :
5366 ac_cv_header_stdc
=no
5372 if test $ac_cv_header_stdc = yes; then
5373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5374 if test "$cross_compiling" = yes; then :
5377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5381 #if ((' ' & 0x0FF) == 0x020)
5382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5385 # define ISLOWER(c) \
5386 (('a' <= (c) && (c) <= 'i') \
5387 || ('j' <= (c) && (c) <= 'r') \
5388 || ('s' <= (c) && (c) <= 'z'))
5389 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5392 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5397 for (i = 0; i < 256; i++)
5398 if (XOR (islower (i), ISLOWER (i))
5399 || toupper (i) != TOUPPER (i))
5404 if ac_fn_c_try_run
"$LINENO"; then :
5407 ac_cv_header_stdc
=no
5409 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5410 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5416 $as_echo "$ac_cv_header_stdc" >&6; }
5417 if test $ac_cv_header_stdc = yes; then
5419 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5423 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5424 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5425 inttypes.h stdint.h unistd.h
5427 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5428 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5430 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5431 cat >>confdefs.h
<<_ACEOF
5432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5441 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5442 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5449 if test "$MINIX" = yes; then
5451 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5454 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5457 $as_echo "#define _MINIX 1" >>confdefs.h
5460 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5466 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5467 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5468 $as_echo_n "(cached) " >&6
5470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5473 # define __EXTENSIONS__ 1
5474 $ac_includes_default
5483 if ac_fn_c_try_compile
"$LINENO"; then :
5484 ac_cv_safe_to_define___extensions__
=yes
5486 ac_cv_safe_to_define___extensions__
=no
5488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5491 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5492 test $ac_cv_safe_to_define___extensions__ = yes &&
5493 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5495 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5497 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5499 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5501 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5503 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5505 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5507 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5509 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5511 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5513 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5515 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5517 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5519 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5521 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5524 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5525 if ${ac_cv_should_define__xopen_source+:} false
; then :
5526 $as_echo_n "(cached) " >&6
5528 ac_cv_should_define__xopen_source
=no
5529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5542 if ac_fn_c_try_compile
"$LINENO"; then :
5545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5548 #define _XOPEN_SOURCE 500
5559 if ac_fn_c_try_compile
"$LINENO"; then :
5560 ac_cv_should_define__xopen_source
=yes
5562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5567 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5568 test $ac_cv_should_define__xopen_source = yes &&
5569 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5571 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5584 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5585 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
5586 $as_echo_n "(cached) " >&6
5589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5598 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
5599 gl_cv_c_amsterdam_compiler
=yes
5601 gl_cv_c_amsterdam_compiler
=no
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5608 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5610 if test $gl_cv_c_amsterdam_compiler = yes; then
5611 if test -z "$AR"; then
5614 if test -z "$ARFLAGS"; then
5621 if test -n "$ac_tool_prefix"; then
5622 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5623 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_AR+:} false
; then :
5627 $as_echo_n "(cached) " >&6
5629 if test -n "$AR"; then
5630 ac_cv_prog_AR
="$AR" # Let the user override the test.
5632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5636 test -z "$as_dir" && as_dir
=.
5637 for ac_exec_ext
in '' $ac_executable_extensions; do
5638 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 if test -n "$AR"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5652 $as_echo "$AR" >&6; }
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5660 if test -z "$ac_cv_prog_AR"; then
5662 # Extract the first word of "ar", so it can be a program name with args.
5663 set dummy
ar; ac_word
=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5667 $as_echo_n "(cached) " >&6
5669 if test -n "$ac_ct_AR"; then
5670 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir
=.
5677 for ac_exec_ext
in '' $ac_executable_extensions; do
5678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ac_ct_AR
="ar"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5690 if test -n "$ac_ct_AR"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5692 $as_echo "$ac_ct_AR" >&6; }
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5698 if test "x$ac_ct_AR" = x
; then
5701 case $cross_compiling:$ac_tool_warned in
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned
=yes ;;
5713 if test -z "$ARFLAGS"; then
5719 if test -z "$RANLIB"; then
5720 if test $gl_cv_c_amsterdam_compiler = yes; then
5723 if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5725 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_RANLIB+:} false
; then :
5729 $as_echo_n "(cached) " >&6
5731 if test -n "$RANLIB"; then
5732 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5738 test -z "$as_dir" && as_dir
=.
5739 for ac_exec_ext
in '' $ac_executable_extensions; do
5740 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 RANLIB
=$ac_cv_prog_RANLIB
5752 if test -n "$RANLIB"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5754 $as_echo "$RANLIB" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5762 if test -z "$ac_cv_prog_RANLIB"; then
5763 ac_ct_RANLIB
=$RANLIB
5764 # Extract the first word of "ranlib", so it can be a program name with args.
5765 set dummy ranlib
; ac_word
=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5769 $as_echo_n "(cached) " >&6
5771 if test -n "$ac_ct_RANLIB"; then
5772 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5778 test -z "$as_dir" && as_dir
=.
5779 for ac_exec_ext
in '' $ac_executable_extensions; do
5780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5792 if test -n "$ac_ct_RANLIB"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5794 $as_echo "$ac_ct_RANLIB" >&6; }
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5800 if test "x$ac_ct_RANLIB" = x
; then
5803 case $cross_compiling:$ac_tool_warned in
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807 ac_tool_warned
=yes ;;
5809 RANLIB
=$ac_ct_RANLIB
5812 RANLIB
="$ac_cv_prog_RANLIB"
5821 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5822 if test -f "$ac_dir/install-sh"; then
5824 ac_install_sh
="$ac_aux_dir/install-sh -c"
5826 elif test -f "$ac_dir/install.sh"; then
5828 ac_install_sh
="$ac_aux_dir/install.sh -c"
5830 elif test -f "$ac_dir/shtool"; then
5832 ac_install_sh
="$ac_aux_dir/shtool install -c"
5836 if test -z "$ac_aux_dir"; then
5837 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5840 # These three variables are undocumented and unsupported,
5841 # and are intended to be withdrawn in a future Autoconf release.
5842 # They can cause serious problems if a builder's source tree is in a directory
5843 # whose full name contains unusual characters.
5844 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5845 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5846 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5849 # Make sure we can run config.sub.
5850 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5851 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5854 $as_echo_n "checking build system type... " >&6; }
5855 if ${ac_cv_build+:} false
; then :
5856 $as_echo_n "(cached) " >&6
5858 ac_build_alias
=$build_alias
5859 test "x$ac_build_alias" = x
&&
5860 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5861 test "x$ac_build_alias" = x
&&
5862 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5863 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5864 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5868 $as_echo "$ac_cv_build" >&6; }
5869 case $ac_cv_build in
5871 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5874 ac_save_IFS
=$IFS; IFS
='-'
5880 # Remember, the first character of IFS is used to create $*,
5881 # except with old shells:
5884 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5888 $as_echo_n "checking host system type... " >&6; }
5889 if ${ac_cv_host+:} false
; then :
5890 $as_echo_n "(cached) " >&6
5892 if test "x$host_alias" = x
; then
5893 ac_cv_host
=$ac_cv_build
5895 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5896 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5901 $as_echo "$ac_cv_host" >&6; }
5904 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5907 ac_save_IFS
=$IFS; IFS
='-'
5913 # Remember, the first character of IFS is used to create $*,
5914 # except with old shells:
5917 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5923 # IEEE behaviour is the default on all CPUs except Alpha and SH
5924 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5925 # and the GCC 4.1.2 manual).
5928 # On Alpha systems, a compiler option provides the behaviour.
5929 # See the ieee(3) manual page, also available at
5930 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
5931 if test -n "$GCC"; then
5932 # GCC has the option -mieee.
5933 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5934 CPPFLAGS
="$CPPFLAGS -mieee"
5936 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5937 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5938 CPPFLAGS
="$CPPFLAGS -ieee"
5942 if test -n "$GCC"; then
5943 # GCC has the option -mieee.
5944 CPPFLAGS
="$CPPFLAGS -mieee"
5949 # Check whether --enable-largefile was given.
5950 if test "${enable_largefile+set}" = set; then :
5951 enableval
=$enable_largefile;
5954 if test "$enable_largefile" != no
; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5957 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5958 if ${ac_cv_sys_largefile_CC+:} false
; then :
5959 $as_echo_n "(cached) " >&6
5961 ac_cv_sys_largefile_CC
=no
5962 if test "$GCC" != yes; then
5965 # IRIX 6.2 and later do not support large files by default,
5966 # so use the C compiler's -n32 option if that helps.
5967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 #include <sys/types.h>
5970 /* Check that off_t can represent 2**63 - 1 correctly.
5971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5972 since some C++ compilers masquerading as C compilers
5973 incorrectly reject 9223372036854775807. */
5974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5976 && LARGE_OFF_T % 2147483647 == 1)
5986 if ac_fn_c_try_compile
"$LINENO"; then :
5989 rm -f core conftest.err conftest.
$ac_objext
5991 if ac_fn_c_try_compile
"$LINENO"; then :
5992 ac_cv_sys_largefile_CC
=' -n32'; break
5994 rm -f core conftest.err conftest.
$ac_objext
5998 rm -f conftest.
$ac_ext
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6002 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6003 if test "$ac_cv_sys_largefile_CC" != no
; then
6004 CC
=$CC$ac_cv_sys_largefile_CC
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6008 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6009 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6010 $as_echo_n "(cached) " >&6
6013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 #include <sys/types.h>
6016 /* Check that off_t can represent 2**63 - 1 correctly.
6017 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6018 since some C++ compilers masquerading as C compilers
6019 incorrectly reject 9223372036854775807. */
6020 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6021 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6022 && LARGE_OFF_T % 2147483647 == 1)
6032 if ac_fn_c_try_compile
"$LINENO"; then :
6033 ac_cv_sys_file_offset_bits
=no
; break
6035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #define _FILE_OFFSET_BITS 64
6039 #include <sys/types.h>
6040 /* Check that off_t can represent 2**63 - 1 correctly.
6041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6042 since some C++ compilers masquerading as C compilers
6043 incorrectly reject 9223372036854775807. */
6044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6046 && LARGE_OFF_T % 2147483647 == 1)
6056 if ac_fn_c_try_compile
"$LINENO"; then :
6057 ac_cv_sys_file_offset_bits
=64; break
6059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6060 ac_cv_sys_file_offset_bits
=unknown
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6065 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6066 case $ac_cv_sys_file_offset_bits in #(
6069 cat >>confdefs.h
<<_ACEOF
6070 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6075 if test $ac_cv_sys_file_offset_bits = unknown
; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6077 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6078 if ${ac_cv_sys_large_files+:} false
; then :
6079 $as_echo_n "(cached) " >&6
6082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 #include <sys/types.h>
6085 /* Check that off_t can represent 2**63 - 1 correctly.
6086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6087 since some C++ compilers masquerading as C compilers
6088 incorrectly reject 9223372036854775807. */
6089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6091 && LARGE_OFF_T % 2147483647 == 1)
6101 if ac_fn_c_try_compile
"$LINENO"; then :
6102 ac_cv_sys_large_files
=no
; break
6104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107 #define _LARGE_FILES 1
6108 #include <sys/types.h>
6109 /* Check that off_t can represent 2**63 - 1 correctly.
6110 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6111 since some C++ compilers masquerading as C compilers
6112 incorrectly reject 9223372036854775807. */
6113 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6114 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6115 && LARGE_OFF_T % 2147483647 == 1)
6125 if ac_fn_c_try_compile
"$LINENO"; then :
6126 ac_cv_sys_large_files
=1; break
6128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6129 ac_cv_sys_large_files
=unknown
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6134 $as_echo "$ac_cv_sys_large_files" >&6; }
6135 case $ac_cv_sys_large_files in #(
6138 cat >>confdefs.h
<<_ACEOF
6139 #define _LARGE_FILES $ac_cv_sys_large_files
6147 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6157 # Check whether --enable-threads was given.
6158 if test "${enable_threads+set}" = set; then :
6159 enableval
=$enable_threads; gl_use_threads
=$enableval
6161 if test -n "$gl_use_threads_default"; then
6162 gl_use_threads
="$gl_use_threads_default"
6165 osf
*) gl_use_threads
=no
;;
6168 1.
[0-5].
*) gl_use_threads
=no
;;
6169 *) gl_use_threads
=yes ;;
6173 case "$gl_use_winpthreads_default" in
6174 yes) gl_use_threads
=posix
;;
6175 no
) gl_use_threads
=windows
;;
6176 *) gl_use_threads
=yes ;;
6179 *) gl_use_threads
=yes ;;
6185 if test "$gl_use_threads" = yes \
6186 ||
test "$gl_use_threads" = isoc \
6187 ||
test "$gl_use_threads" = posix \
6188 ||
test "$gl_use_threads" = isoc
+posix
; then
6189 # For using <threads.h> or <pthread.h>:
6192 if test -z "$gl_anythreadlib_early_done"; then
6195 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6196 # groks <pthread.h>. cc also understands the flag -pthread, but
6197 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6198 # 2. putting a flag into CPPFLAGS that has an effect on the linker
6199 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6200 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6201 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
6204 # Some systems optimize for single-threaded programs by default, and
6205 # need special flags to disable these optimizations. For example, the
6206 # definition of 'errno' in <errno.h>.
6208 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
6209 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
6211 gl_anythreadlib_early_done
=done
6218 # Pre-early section.
6223 # Code from module absolute-header:
6224 # Code from module alloca:
6225 # Code from module alloca-opt:
6226 # Code from module arpa_inet:
6227 # Code from module assure:
6228 # Code from module at-internal:
6229 # Code from module builtin-expect:
6230 # Code from module c99:
6231 # Code from module canonicalize-lgpl:
6232 # Code from module chdir:
6233 # Code from module chdir-long:
6234 # Code from module cloexec:
6235 # Code from module close:
6236 # Code from module closedir:
6237 # Code from module count-one-bits:
6238 # Code from module d-ino:
6239 # Code from module d-type:
6240 # Code from module dirent:
6241 # Code from module dirfd:
6242 # Code from module dirname-lgpl:
6243 # Code from module dosname:
6244 # Code from module double-slash-root:
6245 # Code from module dup:
6246 # Code from module dup2:
6247 # Code from module environ:
6248 # Code from module errno:
6249 # Code from module error:
6250 # Code from module exitfail:
6251 # Code from module extensions:
6252 # Code from module extern-inline:
6253 # Code from module fchdir:
6254 # Code from module fcntl:
6255 # Code from module fcntl-h:
6256 # Code from module fd-hook:
6257 # Code from module fd-safer-flag:
6258 # Code from module fdopendir:
6259 # Code from module filename:
6260 # Code from module filenamecat-lgpl:
6261 # Code from module flexmember:
6262 # Code from module float:
6263 # Code from module fnmatch:
6264 # Code from module fnmatch-gnu:
6265 # Code from module fnmatch-h:
6266 # Code from module fpieee:
6268 # Code from module fpucw:
6269 # Code from module frexp:
6270 # Code from module frexpl:
6271 # Code from module fstat:
6272 # Code from module fstatat:
6273 # Code from module getcwd:
6274 # Code from module getcwd-lgpl:
6275 # Code from module getdtablesize:
6276 # Code from module getlogin_r:
6277 # Code from module getprogname:
6278 # Code from module gettext-h:
6279 # Code from module gettimeofday:
6280 # Code from module glob:
6281 # Code from module glob-h:
6282 # Code from module hard-locale:
6283 # Code from module havelib:
6284 # Code from module include_next:
6285 # Code from module inet_ntop:
6286 # Code from module intprops:
6287 # Code from module inttypes:
6288 # Code from module inttypes-incomplete:
6289 # Code from module isnand-nolibm:
6290 # Code from module isnanl-nolibm:
6291 # Code from module largefile:
6293 # Code from module libc-config:
6294 # Code from module limits-h:
6295 # Code from module localcharset:
6296 # Code from module localtime-buffer:
6297 # Code from module lock:
6298 # Code from module lstat:
6299 # Code from module malloc-posix:
6300 # Code from module malloca:
6301 # Code from module math:
6302 # Code from module mbrtowc:
6303 # Code from module mbsinit:
6304 # Code from module mbsrtowcs:
6305 # Code from module memchr:
6306 # Code from module memmem:
6307 # Code from module memmem-simple:
6308 # Code from module mempcpy:
6309 # Code from module memrchr:
6310 # Code from module mkdir:
6311 # Code from module mkdtemp:
6312 # Code from module mkostemp:
6313 # Code from module msvc-inval:
6314 # Code from module msvc-nothrow:
6315 # Code from module multiarch:
6316 # Code from module netinet_in:
6317 # Code from module nocrash:
6318 # Code from module open:
6319 # Code from module openat:
6320 # Code from module openat-die:
6321 # Code from module openat-h:
6322 # Code from module opendir:
6323 # Code from module pathmax:
6324 # Code from module rawmemchr:
6325 # Code from module readdir:
6326 # Code from module readlink:
6327 # Code from module realloc-posix:
6328 # Code from module rename:
6329 # Code from module rewinddir:
6330 # Code from module rmdir:
6331 # Code from module same-inode:
6332 # Code from module save-cwd:
6333 # Code from module scratch_buffer:
6334 # Code from module setenv:
6335 # Code from module signal-h:
6336 # Code from module snippet/_Noreturn:
6337 # Code from module snippet/arg-nonnull:
6338 # Code from module snippet/c++defs:
6339 # Code from module snippet/warn-on-use:
6340 # Code from module socklen:
6341 # Code from module ssize_t:
6342 # Code from module stat:
6343 # Code from module stat-time:
6344 # Code from module std-gnu11:
6345 # Code from module stdalign:
6346 # Code from module stdbool:
6347 # Code from module stddef:
6348 # Code from module stdint:
6349 # Code from module stdio:
6350 # Code from module stdlib:
6351 # Code from module strchrnul:
6352 # Code from module strdup-posix:
6353 # Code from module streq:
6354 # Code from module strerror:
6355 # Code from module strerror-override:
6356 # Code from module strerror_r-posix:
6357 # Code from module string:
6358 # Code from module strnlen1:
6359 # Code from module strstr:
6360 # Code from module strstr-simple:
6361 # Code from module strtok_r:
6362 # Code from module sys_socket:
6363 # Code from module sys_stat:
6364 # Code from module sys_time:
6365 # Code from module sys_types:
6366 # Code from module sys_uio:
6367 # Code from module tempname:
6368 # Code from module threadlib:
6372 # Code from module time:
6373 # Code from module time_r:
6374 # Code from module unistd:
6375 # Code from module unistd-safer:
6376 # Code from module unsetenv:
6377 # Code from module update-copyright:
6378 # Code from module verify:
6379 # Code from module wchar:
6380 # Code from module wctype-h:
6381 # Code from module windows-mutex:
6382 # Code from module windows-once:
6383 # Code from module windows-recmutex:
6384 # Code from module windows-rwlock:
6385 # Code from module xalloc-oversized:
6388 am_cv_prog_cc_stdc
=$ac_cv_prog_cc_stdc
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6392 $as_echo_n "checking target system type... " >&6; }
6393 if ${ac_cv_target+:} false
; then :
6394 $as_echo_n "(cached) " >&6
6396 if test "x$target_alias" = x
; then
6397 ac_cv_target
=$ac_cv_host
6399 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6400 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6405 $as_echo "$ac_cv_target" >&6; }
6406 case $ac_cv_target in
6408 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
6410 target
=$ac_cv_target
6411 ac_save_IFS
=$IFS; IFS
='-'
6417 # Remember, the first character of IFS is used to create $*,
6418 # except with old shells:
6421 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
6424 # The aliases save the names the user supplied, while $host etc.
6425 # will get canonicalized.
6426 test -n "$target_alias" &&
6427 test "$program_prefix$program_suffix$program_transform_name" = \
6429 program_prefix
=${target_alias}-
6431 # The tests for host and target for $enable_largefile require
6436 # As the $enable_largefile decision depends on --enable-plugins we must set it
6437 # even in directories otherwise not depending on the $plugins option.
6441 for ac_header
in dlfcn.h
6443 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6445 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
6446 cat >>confdefs.h
<<_ACEOF
6447 #define HAVE_DLFCN_H 1
6454 for ac_header
in windows.h
6456 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6458 if test "x$ac_cv_header_windows_h" = xyes
; then :
6459 cat >>confdefs.h
<<_ACEOF
6460 #define HAVE_WINDOWS_H 1
6468 # Check whether --enable-plugins was given.
6469 if test "${enable_plugins+set}" = set; then :
6470 enableval
=$enable_plugins; case "${enableval}" in
6473 if test "$maybe_plugins" != "yes" ; then
6474 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6478 plugins
=$maybe_plugins
6482 if test "$plugins" = "yes"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6484 $as_echo_n "checking for library containing dlsym... " >&6; }
6485 if ${ac_cv_search_dlsym+:} false
; then :
6486 $as_echo_n "(cached) " >&6
6488 ac_func_search_save_LIBS
=$LIBS
6489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6492 /* Override any GCC internal prototype to avoid an error.
6493 Use char because int might match the return type of a GCC
6494 builtin and then its argument prototype would still apply. */
6507 for ac_lib
in '' dl
; do
6508 if test -z "$ac_lib"; then
6509 ac_res
="none required"
6512 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6514 if ac_fn_c_try_link
"$LINENO"; then :
6515 ac_cv_search_dlsym
=$ac_res
6517 rm -f core conftest.err conftest.
$ac_objext \
6519 if ${ac_cv_search_dlsym+:} false
; then :
6523 if ${ac_cv_search_dlsym+:} false
; then :
6526 ac_cv_search_dlsym
=no
6529 LIBS
=$ac_func_search_save_LIBS
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6532 $as_echo "$ac_cv_search_dlsym" >&6; }
6533 ac_res
=$ac_cv_search_dlsym
6534 if test "$ac_res" != no
; then :
6535 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6543 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
6544 # On native 32bit sparc and ia32 solaris, large-file and procfs support
6545 # are mutually exclusive; and without procfs support, the bfd/ elf module
6546 # cannot provide certain routines such as elfcore_write_prpsinfo
6547 # or elfcore_write_prstatus. So unless the user explicitly requested
6548 # large-file support through the --enable-largefile switch, disable
6549 # large-file support in favor of procfs support.
6550 test "${target}" = "${host}" -a "x$plugins" = xno \
6551 && : ${enable_largefile="no"}
6555 # Check whether --enable-largefile was given.
6556 if test "${enable_largefile+set}" = set; then :
6557 enableval
=$enable_largefile;
6560 if test "$enable_largefile" != no
; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6563 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6564 if ${ac_cv_sys_largefile_CC+:} false
; then :
6565 $as_echo_n "(cached) " >&6
6567 ac_cv_sys_largefile_CC
=no
6568 if test "$GCC" != yes; then
6571 # IRIX 6.2 and later do not support large files by default,
6572 # so use the C compiler's -n32 option if that helps.
6573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <sys/types.h>
6576 /* Check that off_t can represent 2**63 - 1 correctly.
6577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6578 since some C++ compilers masquerading as C compilers
6579 incorrectly reject 9223372036854775807. */
6580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6582 && LARGE_OFF_T % 2147483647 == 1)
6592 if ac_fn_c_try_compile
"$LINENO"; then :
6595 rm -f core conftest.err conftest.
$ac_objext
6597 if ac_fn_c_try_compile
"$LINENO"; then :
6598 ac_cv_sys_largefile_CC
=' -n32'; break
6600 rm -f core conftest.err conftest.
$ac_objext
6604 rm -f conftest.
$ac_ext
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6608 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6609 if test "$ac_cv_sys_largefile_CC" != no
; then
6610 CC
=$CC$ac_cv_sys_largefile_CC
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6614 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6615 if ${ac_cv_sys_file_offset_bits+:} false
; then :
6616 $as_echo_n "(cached) " >&6
6619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 #include <sys/types.h>
6622 /* Check that off_t can represent 2**63 - 1 correctly.
6623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6624 since some C++ compilers masquerading as C compilers
6625 incorrectly reject 9223372036854775807. */
6626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6628 && LARGE_OFF_T % 2147483647 == 1)
6638 if ac_fn_c_try_compile
"$LINENO"; then :
6639 ac_cv_sys_file_offset_bits
=no
; break
6641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 #define _FILE_OFFSET_BITS 64
6645 #include <sys/types.h>
6646 /* Check that off_t can represent 2**63 - 1 correctly.
6647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6648 since some C++ compilers masquerading as C compilers
6649 incorrectly reject 9223372036854775807. */
6650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6652 && LARGE_OFF_T % 2147483647 == 1)
6662 if ac_fn_c_try_compile
"$LINENO"; then :
6663 ac_cv_sys_file_offset_bits
=64; break
6665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6666 ac_cv_sys_file_offset_bits
=unknown
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6671 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6672 case $ac_cv_sys_file_offset_bits in #(
6675 cat >>confdefs.h
<<_ACEOF
6676 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6681 if test $ac_cv_sys_file_offset_bits = unknown
; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6683 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6684 if ${ac_cv_sys_large_files+:} false
; then :
6685 $as_echo_n "(cached) " >&6
6688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6690 #include <sys/types.h>
6691 /* Check that off_t can represent 2**63 - 1 correctly.
6692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6693 since some C++ compilers masquerading as C compilers
6694 incorrectly reject 9223372036854775807. */
6695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6697 && LARGE_OFF_T % 2147483647 == 1)
6707 if ac_fn_c_try_compile
"$LINENO"; then :
6708 ac_cv_sys_large_files
=no
; break
6710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 #define _LARGE_FILES 1
6714 #include <sys/types.h>
6715 /* Check that off_t can represent 2**63 - 1 correctly.
6716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6717 since some C++ compilers masquerading as C compilers
6718 incorrectly reject 9223372036854775807. */
6719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6721 && LARGE_OFF_T % 2147483647 == 1)
6731 if ac_fn_c_try_compile
"$LINENO"; then :
6732 ac_cv_sys_large_files
=1; break
6734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6735 ac_cv_sys_large_files
=unknown
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6740 $as_echo "$ac_cv_sys_large_files" >&6; }
6741 case $ac_cv_sys_large_files in #(
6744 cat >>confdefs.h
<<_ACEOF
6745 #define _LARGE_FILES $ac_cv_sys_large_files
6753 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6760 for ac_dir
in ..
"$srcdir"/..
; do
6761 if test -f "$ac_dir/install-sh"; then
6763 ac_install_sh
="$ac_aux_dir/install-sh -c"
6765 elif test -f "$ac_dir/install.sh"; then
6767 ac_install_sh
="$ac_aux_dir/install.sh -c"
6769 elif test -f "$ac_dir/shtool"; then
6771 ac_install_sh
="$ac_aux_dir/shtool install -c"
6775 if test -z "$ac_aux_dir"; then
6776 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6779 # These three variables are undocumented and unsupported,
6780 # and are intended to be withdrawn in a future Autoconf release.
6781 # They can cause serious problems if a builder's source tree is in a directory
6782 # whose full name contains unusual characters.
6783 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6784 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6785 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6796 # Check whether --enable-cross-guesses was given.
6797 if test "${enable_cross_guesses+set}" = set; then :
6798 enableval
=$enable_cross_guesses; if test "x$enableval" != xconservative
&& test "x$enableval" != xrisky
; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6800 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6801 enableval
=conservative
6803 gl_cross_guesses
="$enableval"
6805 gl_cross_guesses
=conservative
6808 if test $gl_cross_guesses = risky
; then
6809 gl_cross_guess_normal
="guessing yes"
6810 gl_cross_guess_inverted
="guessing no"
6812 gl_cross_guess_normal
="guessing no"
6813 gl_cross_guess_inverted
="guessing yes"
6815 LIBC_FATAL_STDERR_
=1
6816 export LIBC_FATAL_STDERR_
6818 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6819 if test "x$ac_cv_type_size_t" = xyes
; then :
6823 cat >>confdefs.h
<<_ACEOF
6824 #define size_t unsigned int
6829 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6830 # for constant arguments. Useless!
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6832 $as_echo_n "checking for working alloca.h... " >&6; }
6833 if ${ac_cv_working_alloca_h+:} false
; then :
6834 $as_echo_n "(cached) " >&6
6836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6842 char *p = (char *) alloca (2 * sizeof (int));
6848 if ac_fn_c_try_link
"$LINENO"; then :
6849 ac_cv_working_alloca_h
=yes
6851 ac_cv_working_alloca_h
=no
6853 rm -f core conftest.err conftest.
$ac_objext \
6854 conftest
$ac_exeext conftest.
$ac_ext
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6857 $as_echo "$ac_cv_working_alloca_h" >&6; }
6858 if test $ac_cv_working_alloca_h = yes; then
6860 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6865 $as_echo_n "checking for alloca... " >&6; }
6866 if ${ac_cv_func_alloca_works+:} false
; then :
6867 $as_echo_n "(cached) " >&6
6869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6872 # define alloca __builtin_alloca
6875 # include <malloc.h>
6876 # define alloca _alloca
6878 # ifdef HAVE_ALLOCA_H
6879 # include <alloca.h>
6884 # ifndef alloca /* predefined by HP cc +Olibcalls */
6885 void *alloca (size_t);
6895 char *p = (char *) alloca (1);
6901 if ac_fn_c_try_link
"$LINENO"; then :
6902 ac_cv_func_alloca_works
=yes
6904 ac_cv_func_alloca_works
=no
6906 rm -f core conftest.err conftest.
$ac_objext \
6907 conftest
$ac_exeext conftest.
$ac_ext
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6910 $as_echo "$ac_cv_func_alloca_works" >&6; }
6912 if test $ac_cv_func_alloca_works = yes; then
6914 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6917 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6918 # that cause trouble. Some versions do not even contain alloca or
6919 # contain a buggy version. If you still want to use their alloca,
6920 # use ar to extract alloca.o from them instead of compiling alloca.c.
6926 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6928 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6932 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6933 if ${ac_cv_os_cray+:} false
; then :
6934 $as_echo_n "(cached) " >&6
6936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938 #if defined CRAY && ! defined CRAY2
6945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6946 $EGREP "webecray" >/dev
/null
2>&1; then :
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6955 $as_echo "$ac_cv_os_cray" >&6; }
6956 if test $ac_cv_os_cray = yes; then
6957 for ac_func
in _getb67 GETB67 getb67
; do
6958 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6959 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6960 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6962 cat >>confdefs.h
<<_ACEOF
6963 #define CRAY_STACKSEG_END $ac_func
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6973 $as_echo_n "checking stack direction for C alloca... " >&6; }
6974 if ${ac_cv_c_stack_direction+:} false
; then :
6975 $as_echo_n "(cached) " >&6
6977 if test "$cross_compiling" = yes; then :
6978 ac_cv_c_stack_direction
=0
6980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982 $ac_includes_default
6984 find_stack_direction (int *addr, int depth)
6989 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6990 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6995 main (int argc, char **argv)
6997 return find_stack_direction (0, argc + !argv + 20) < 0;
7000 if ac_fn_c_try_run
"$LINENO"; then :
7001 ac_cv_c_stack_direction
=1
7003 ac_cv_c_stack_direction
=-1
7005 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7006 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7011 $as_echo "$ac_cv_c_stack_direction" >&6; }
7012 cat >>confdefs.h
<<_ACEOF
7013 #define STACK_DIRECTION $ac_cv_c_stack_direction
7022 HAVE_DECL_INET_NTOP
=1;
7023 HAVE_DECL_INET_PTON
=1;
7024 REPLACE_INET_NTOP
=0;
7025 REPLACE_INET_PTON
=0;
7030 for ac_header
in $ac_header_list
7032 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7033 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7035 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7036 cat >>confdefs.h
<<_ACEOF
7037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7049 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7050 if ${gl_cv_have_include_next+:} false
; then :
7051 $as_echo_n "(cached) " >&6
7053 rm -rf conftestd1a conftestd1b conftestd2
7054 mkdir conftestd1a conftestd1b conftestd2
7055 cat <<EOF > conftestd1a/conftest.h
7056 #define DEFINED_IN_CONFTESTD1
7057 #include_next <conftest.h>
7058 #ifdef DEFINED_IN_CONFTESTD2
7061 #error "include_next doesn't work"
7064 cat <<EOF > conftestd1b/conftest.h
7065 #define DEFINED_IN_CONFTESTD1
7067 #include_next <conftest.h>
7068 #ifdef DEFINED_IN_CONFTESTD2
7071 #error "include_next doesn't work"
7074 cat <<EOF > conftestd2/conftest.h
7075 #ifndef DEFINED_IN_CONFTESTD1
7076 #error "include_next test doesn't work"
7078 #define DEFINED_IN_CONFTESTD2
7080 gl_save_CPPFLAGS
="$CPPFLAGS"
7081 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7084 #include <conftest.h>
7086 if ac_fn_c_try_compile
"$LINENO"; then :
7087 gl_cv_have_include_next
=yes
7089 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092 #include <conftest.h>
7094 if ac_fn_c_try_compile
"$LINENO"; then :
7095 gl_cv_have_include_next
=buggy
7097 gl_cv_have_include_next
=no
7099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7103 CPPFLAGS
="$gl_save_CPPFLAGS"
7104 rm -rf conftestd1a conftestd1b conftestd2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7108 $as_echo "$gl_cv_have_include_next" >&6; }
7109 PRAGMA_SYSTEM_HEADER
=
7110 if test $gl_cv_have_include_next = yes; then
7111 INCLUDE_NEXT
=include_next
7112 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7113 if test -n "$GCC"; then
7114 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7117 if test $gl_cv_have_include_next = buggy
; then
7118 INCLUDE_NEXT
=include
7119 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7121 INCLUDE_NEXT
=include
7122 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7129 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7130 if ${gl_cv_pragma_columns+:} false
; then :
7131 $as_echo_n "(cached) " >&6
7133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142 $EGREP "choke me" >/dev
/null
2>&1; then :
7143 gl_cv_pragma_columns
=yes
7145 gl_cv_pragma_columns
=no
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7152 $as_echo "$gl_cv_pragma_columns" >&6; }
7153 if test $gl_cv_pragma_columns = yes; then
7154 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7164 if test $ac_cv_header_features_h = yes; then
7174 if test $ac_cv_header_sys_socket_h = no
; then
7175 for ac_header
in ws2tcpip.h
7177 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7178 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
7179 cat >>confdefs.h
<<_ACEOF
7180 #define HAVE_WS2TCPIP_H 1
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7190 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7191 if test -z "$MKDIR_P"; then
7192 if ${ac_cv_path_mkdir+:} false
; then :
7193 $as_echo_n "(cached) " >&6
7195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7196 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7199 test -z "$as_dir" && as_dir
=.
7200 for ac_prog
in mkdir gmkdir
; do
7201 for ac_exec_ext
in '' $ac_executable_extensions; do
7202 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7203 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7204 'mkdir (GNU coreutils) '* | \
7205 'mkdir (coreutils) '* | \
7206 'mkdir (fileutils) '4.1*)
7207 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7217 test -d .
/--version && rmdir .
/--version
7218 if test "${ac_cv_path_mkdir+set}" = set; then
7219 MKDIR_P
="$ac_cv_path_mkdir -p"
7221 # As a last resort, use the slow shell script. Don't cache a
7222 # value for MKDIR_P within a source directory, because that will
7223 # break other packages using the cache if that directory is
7224 # removed, or if the value is a relative name.
7225 MKDIR_P
="$ac_install_sh -d"
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7229 $as_echo "$MKDIR_P" >&6; }
7234 GNULIB_CALLOC_POSIX
=0;
7235 GNULIB_CANONICALIZE_FILE_NAME
=0;
7236 GNULIB_GETLOADAVG
=0;
7239 GNULIB_MALLOC_POSIX
=0;
7246 GNULIB_POSIX_OPENPT
=0;
7253 GNULIB_REALLOCARRAY
=0;
7254 GNULIB_REALLOC_POSIX
=0;
7257 GNULIB_SECURE_GETENV
=0;
7263 GNULIB_SYSTEM_POSIX
=0;
7269 HAVE_CANONICALIZE_FILE_NAME
=1;
7270 HAVE_DECL_GETLOADAVG
=1;
7274 HAVE_DECL_INITSTATE
=1;
7281 HAVE_POSIX_OPENPT
=1;
7288 HAVE_REALLOCARRAY
=1;
7291 HAVE_SECURE_GETENV
=1;
7295 HAVE_DECL_SETSTATE
=1;
7300 HAVE_STRUCT_RANDOM_DATA
=1;
7301 HAVE_SYS_LOADAVG_H
=0;
7303 HAVE_DECL_UNSETENV
=1;
7305 REPLACE_CANONICALIZE_FILE_NAME
=0;
7306 REPLACE_INITSTATE
=0;
7311 REPLACE_PTSNAME_R
=0;
7328 for ac_func
in $ac_func_list
7330 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7331 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7332 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7333 cat >>confdefs.h
<<_ACEOF
7334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7349 $as_echo_n "checking whether // is distinct from /... " >&6; }
7350 if ${gl_cv_double_slash_root+:} false
; then :
7351 $as_echo_n "(cached) " >&6
7353 if test x
"$cross_compiling" = xyes
; then
7354 # When cross-compiling, there is no way to tell whether // is special
7355 # short of a list of hosts. However, the only known hosts to date
7356 # that have a distinct // are Apollo DomainOS (too old to port to),
7357 # Cygwin, and z/OS. If anyone knows of another system for which // has
7358 # special semantics and is distinct from /, please report it to
7359 # <bug-gnulib@gnu.org>.
7361 *-cygwin | i370-ibm-openedition
)
7362 gl_cv_double_slash_root
=yes ;;
7364 # Be optimistic and assume that / and // are the same when we
7366 gl_cv_double_slash_root
='unknown, assuming no' ;;
7369 set x
`ls -di / // 2>/dev/null`
7370 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7371 gl_cv_double_slash_root
=no
7373 gl_cv_double_slash_root
=yes
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7378 $as_echo "$gl_cv_double_slash_root" >&6; }
7379 if test "$gl_cv_double_slash_root" = yes; then
7381 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7390 $as_echo_n "checking whether realpath works... " >&6; }
7391 if ${gl_cv_func_realpath_works+:} false
; then :
7392 $as_echo_n "(cached) " >&6
7397 if test "$cross_compiling" = yes; then :
7399 # Guess yes on glibc systems.
7400 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7401 # Guess yes on musl systems.
7402 *-musl*) gl_cv_func_realpath_works
="guessing yes" ;;
7403 # Guess no on native Windows.
7404 mingw
*) gl_cv_func_realpath_works
="guessing no" ;;
7405 # If we don't know, obey --enable-cross-guesses.
7406 *) gl_cv_func_realpath_works
="$gl_cross_guess_normal" ;;
7410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7416 #if defined __MACH__ && defined __APPLE__
7417 /* Avoid a crash on Mac OS X. */
7418 #include <mach/mach.h>
7419 #include <mach/mach_error.h>
7420 #include <mach/thread_status.h>
7421 #include <mach/exception.h>
7422 #include <mach/task.h>
7423 #include <pthread.h>
7424 /* The exception port on which our thread listens. */
7425 static mach_port_t our_exception_port;
7426 /* The main function of the thread listening for exceptions of type
7429 mach_exception_thread (void *arg)
7431 /* Buffer for a message to be received. */
7433 mach_msg_header_t head;
7434 mach_msg_body_t msgh_body;
7437 mach_msg_return_t retval;
7438 /* Wait for a message on the exception port. */
7439 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7440 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7441 if (retval != MACH_MSG_SUCCESS)
7448 mach_port_t self = mach_task_self ();
7449 /* Allocate a port on which the thread shall listen for exceptions. */
7450 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7452 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7453 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7454 MACH_MSG_TYPE_MAKE_SEND)
7456 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7458 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7459 /* Create the thread listening on the exception port. */
7460 pthread_attr_t attr;
7462 if (pthread_attr_init (&attr) == 0
7463 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7464 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7465 pthread_attr_destroy (&attr);
7466 /* Replace the exception port info for these exceptions with our own.
7467 Note that we replace the exception port for the entire task, not only
7468 for a particular thread. This has the effect that when our exception
7469 port gets the message, the thread specific exception port has already
7470 been asked, and we don't need to bother about it.
7471 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7472 task_set_exception_ports (self, mask, our_exception_port,
7473 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7478 #elif defined _WIN32 && ! defined __CYGWIN__
7479 /* Avoid a crash on native Windows. */
7480 #define WIN32_LEAN_AND_MEAN
7481 #include <windows.h>
7482 #include <winerror.h>
7484 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7486 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7488 case EXCEPTION_ACCESS_VIOLATION:
7489 case EXCEPTION_IN_PAGE_ERROR:
7490 case EXCEPTION_STACK_OVERFLOW:
7491 case EXCEPTION_GUARD_PAGE:
7492 case EXCEPTION_PRIV_INSTRUCTION:
7493 case EXCEPTION_ILLEGAL_INSTRUCTION:
7494 case EXCEPTION_DATATYPE_MISALIGNMENT:
7495 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7496 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7499 return EXCEPTION_CONTINUE_SEARCH;
7504 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7507 /* Avoid a crash on POSIX systems. */
7510 /* A POSIX signal handler. */
7512 exception_handler (int sig)
7520 signal (SIGSEGV, exception_handler);
7523 signal (SIGBUS, exception_handler);
7537 char *name = realpath ("conftest.a", NULL);
7538 if (!(name && *name == '/'))
7543 char *name = realpath ("conftest.b/../conftest.a", NULL);
7549 char *name = realpath ("conftest.a/", NULL);
7555 char *name1 = realpath (".", NULL);
7556 char *name2 = realpath ("conftest.d//./..", NULL);
7557 if (! name1 || ! name2 || strcmp (name1, name2))
7569 if ac_fn_c_try_run
"$LINENO"; then :
7570 gl_cv_func_realpath_works
=yes
7572 gl_cv_func_realpath_works
=no
7574 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7575 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7578 rm -rf conftest.a conftest.d
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7582 $as_echo "$gl_cv_func_realpath_works" >&6; }
7583 case "$gl_cv_func_realpath_works" in
7586 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7605 GNULIB_COPY_FILE_RANGE
=0;
7610 GNULIB_EUIDACCESS
=0;
7618 GNULIB_GETDOMAINNAME
=0;
7619 GNULIB_GETDTABLESIZE
=0;
7621 GNULIB_GETHOSTNAME
=0;
7623 GNULIB_GETLOGIN_R
=0;
7624 GNULIB_GETPAGESIZE
=0;
7626 GNULIB_GETUSERSHELL
=0;
7627 GNULIB_GROUP_MEMBER
=0;
7639 GNULIB_READLINKAT
=0;
7641 GNULIB_SETHOSTNAME
=0;
7647 GNULIB_UNISTD_H_NONBLOCKING
=0;
7648 GNULIB_UNISTD_H_SIGPIPE
=0;
7654 HAVE_COPY_FILE_RANGE
=1;
7664 HAVE_GETDTABLESIZE
=1;
7670 HAVE_GROUP_MEMBER
=1;
7686 HAVE_DECL_ENVIRON
=1;
7688 HAVE_DECL_FDATASYNC
=1;
7689 HAVE_DECL_GETDOMAINNAME
=1;
7690 HAVE_DECL_GETLOGIN
=1;
7691 HAVE_DECL_GETLOGIN_R
=1;
7692 HAVE_DECL_GETPAGESIZE
=1;
7693 HAVE_DECL_GETUSERSHELL
=1;
7694 HAVE_DECL_SETHOSTNAME
=1;
7695 HAVE_DECL_TRUNCATE
=1;
7696 HAVE_DECL_TTYNAME_R
=1;
7704 REPLACE_FACCESSAT
=0;
7706 REPLACE_FTRUNCATE
=0;
7708 REPLACE_GETDOMAINNAME
=0;
7709 REPLACE_GETDTABLESIZE
=0;
7710 REPLACE_GETLOGIN_R
=0;
7711 REPLACE_GETGROUPS
=0;
7712 REPLACE_GETPAGESIZE
=0;
7723 REPLACE_READLINKAT
=0;
7727 REPLACE_SYMLINKAT
=0;
7729 REPLACE_TTYNAME_R
=0;
7734 UNISTD_H_HAVE_WINSOCK2_H
=0;
7735 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7747 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7748 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7750 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7753 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7773 HAVE_DECL_FDOPENDIR
=1;
7780 REPLACE_FDOPENDIR
=0;
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7784 $as_echo_n "checking for unsigned long long int... " >&6; }
7785 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
7786 $as_echo_n "(cached) " >&6
7788 ac_cv_type_unsigned_long_long_int
=yes
7789 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
7790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7793 /* For now, do not test the preprocessor; as of 2007 there are too many
7794 implementations with broken preprocessors. Perhaps this can
7795 be revisited in 2012. In the meantime, code should not expect
7796 #if to work with literals wider than 32 bits. */
7797 /* Test literals. */
7798 long long int ll = 9223372036854775807ll;
7799 long long int nll = -9223372036854775807LL;
7800 unsigned long long int ull = 18446744073709551615ULL;
7801 /* Test constant expressions. */
7802 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7804 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7810 /* Test availability of runtime routines for shift and division. */
7811 long long int llmax = 9223372036854775807ll;
7812 unsigned long long int ullmax = 18446744073709551615ull;
7813 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7814 | (llmax / ll) | (llmax % ll)
7815 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7816 | (ullmax / ull) | (ullmax % ull));
7822 if ac_fn_c_try_link
"$LINENO"; then :
7825 ac_cv_type_unsigned_long_long_int
=no
7827 rm -f core conftest.err conftest.
$ac_objext \
7828 conftest
$ac_exeext conftest.
$ac_ext
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7832 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7833 if test $ac_cv_type_unsigned_long_long_int = yes; then
7835 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7849 $as_echo_n "checking if environ is properly declared... " >&6; }
7850 if ${gt_cv_var_environ_declaration+:} false
; then :
7851 $as_echo_n "(cached) " >&6
7853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7858 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7861 extern struct { int foo; } environ;
7870 if ac_fn_c_try_compile
"$LINENO"; then :
7871 gt_cv_var_environ_declaration
=no
7873 gt_cv_var_environ_declaration
=yes
7875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7878 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7879 if test $gt_cv_var_environ_declaration = yes; then
7881 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7886 if test $gt_cv_var_environ_declaration != yes; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7893 $as_echo_n "checking for complete errno.h... " >&6; }
7894 if ${gl_cv_header_errno_h_complete+:} false
; then :
7895 $as_echo_n "(cached) " >&6
7898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7902 #if !defined ETXTBSY
7911 #if !defined ENOLINK
7917 #if !defined EMULTIHOP
7920 #if !defined EBADMSG
7923 #if !defined EOVERFLOW
7926 #if !defined ENOTSUP
7929 #if !defined ENETRESET
7932 #if !defined ECONNABORTED
7941 #if !defined ECANCELED
7944 #if !defined EOWNERDEAD
7947 #if !defined ENOTRECOVERABLE
7955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7956 $EGREP "booboo" >/dev
/null
2>&1; then :
7957 gl_cv_header_errno_h_complete
=no
7959 gl_cv_header_errno_h_complete
=yes
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7966 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7967 if test $gl_cv_header_errno_h_complete = yes; then
7978 if test $gl_cv_have_include_next = yes; then
7979 gl_cv_next_errno_h
='<'errno.h
'>'
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7982 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7983 if ${gl_cv_next_errno_h+:} false
; then :
7984 $as_echo_n "(cached) " >&6
7989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7994 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7995 *) gl_absname_cpp
="$ac_cpp" ;;
8000 gl_dirsep_regex
='[/\\]'
8003 gl_dirsep_regex
='\/'
8006 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8007 gl_header_literal_regex
=`echo 'errno.h' \
8008 | sed -e "$gl_make_literal_regex_sed"`
8009 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8010 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8016 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8017 sed -n "$gl_absolute_header_sed"`
8019 gl_header
=$gl_cv_absolute_errno_h
8020 gl_cv_next_errno_h
='"'$gl_header'"'
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8025 $as_echo "$gl_cv_next_errno_h" >&6; }
8027 NEXT_ERRNO_H
=$gl_cv_next_errno_h
8029 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8031 gl_next_as_first_directive
='<'errno.h
'>'
8033 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8034 gl_next_as_first_directive
=$gl_cv_next_errno_h
8036 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
8044 if test -n "$ERRNO_H"; then
8045 GL_GENERATE_ERRNO_H_TRUE
=
8046 GL_GENERATE_ERRNO_H_FALSE
='#'
8048 GL_GENERATE_ERRNO_H_TRUE
='#'
8049 GL_GENERATE_ERRNO_H_FALSE
=
8053 if test -n "$ERRNO_H"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8055 $as_echo_n "checking for EMULTIHOP value... " >&6; }
8056 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
8057 $as_echo_n "(cached) " >&6
8060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8070 $EGREP "yes" >/dev
/null
2>&1; then :
8071 gl_cv_header_errno_h_EMULTIHOP
=yes
8073 gl_cv_header_errno_h_EMULTIHOP
=no
8077 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
8078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8081 #define _XOPEN_SOURCE_EXTENDED 1
8088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8089 $EGREP "yes" >/dev
/null
2>&1; then :
8090 gl_cv_header_errno_h_EMULTIHOP
=hidden
8094 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
8095 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8096 #define _XOPEN_SOURCE_EXTENDED 1
8098 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8110 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8111 case $gl_cv_header_errno_h_EMULTIHOP in
8113 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8116 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8124 if test -n "$ERRNO_H"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8126 $as_echo_n "checking for ENOLINK value... " >&6; }
8127 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8128 $as_echo_n "(cached) " >&6
8131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8141 $EGREP "yes" >/dev
/null
2>&1; then :
8142 gl_cv_header_errno_h_ENOLINK
=yes
8144 gl_cv_header_errno_h_ENOLINK
=no
8148 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8152 #define _XOPEN_SOURCE_EXTENDED 1
8159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8160 $EGREP "yes" >/dev
/null
2>&1; then :
8161 gl_cv_header_errno_h_ENOLINK
=hidden
8165 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8166 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8167 #define _XOPEN_SOURCE_EXTENDED 1
8169 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8181 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8182 case $gl_cv_header_errno_h_ENOLINK in
8184 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8187 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8195 if test -n "$ERRNO_H"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8197 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8198 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8199 $as_echo_n "(cached) " >&6
8202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8212 $EGREP "yes" >/dev
/null
2>&1; then :
8213 gl_cv_header_errno_h_EOVERFLOW
=yes
8215 gl_cv_header_errno_h_EOVERFLOW
=no
8219 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8223 #define _XOPEN_SOURCE_EXTENDED 1
8230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8231 $EGREP "yes" >/dev
/null
2>&1; then :
8232 gl_cv_header_errno_h_EOVERFLOW
=hidden
8236 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8237 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8238 #define _XOPEN_SOURCE_EXTENDED 1
8240 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8252 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8253 case $gl_cv_header_errno_h_EOVERFLOW in
8255 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8258 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8266 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8267 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
8273 cat >>confdefs.h
<<_ACEOF
8274 #define HAVE_DECL_STRERROR_R $ac_have_decl
8277 for ac_func
in strerror_r
8279 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8280 if test "x$ac_cv_func_strerror_r" = xyes
; then :
8281 cat >>confdefs.h
<<_ACEOF
8282 #define HAVE_STRERROR_R 1
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8289 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8290 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
8291 $as_echo_n "(cached) " >&6
8294 ac_cv_func_strerror_r_char_p
=no
8295 if test $ac_cv_have_decl_strerror_r = yes; then
8296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8298 $ac_includes_default
8304 char x = *strerror_r (0, buf, sizeof buf);
8305 char *p = strerror_r (0, buf, sizeof buf);
8312 if ac_fn_c_try_compile
"$LINENO"; then :
8313 ac_cv_func_strerror_r_char_p
=yes
8315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8317 # strerror_r is not declared. Choose between
8318 # systems that have relatively inaccessible declarations for the
8319 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8320 # former has a strerror_r that returns char*, while the latter
8321 # has a strerror_r that returns `int'.
8322 # This test should segfault on the DEC system.
8323 if test "$cross_compiling" = yes; then :
8326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 $ac_includes_default
8329 extern char *strerror_r ();
8334 char x = *strerror_r (0, buf, sizeof buf);
8335 return ! isalpha (x);
8340 if ac_fn_c_try_run
"$LINENO"; then :
8341 ac_cv_func_strerror_r_char_p
=yes
8343 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8344 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8351 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8352 if test $ac_cv_func_strerror_r_char_p = yes; then
8354 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8361 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8362 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8368 cat >>confdefs.h
<<_ACEOF
8369 #define HAVE_DECL_FCHDIR $ac_have_decl
8375 GNULIB_NONBLOCKING
=0;
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8395 $as_echo_n "checking for working fcntl.h... " >&6; }
8396 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8397 $as_echo_n "(cached) " >&6
8399 if test "$cross_compiling" = yes; then :
8401 # Guess 'no' on native Windows.
8402 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
8403 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
8407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 #include <sys/types.h>
8410 #include <sys/stat.h>
8412 # include <unistd.h>
8413 #else /* on Windows with MSVC */
8415 # include <stdlib.h>
8416 # defined sleep(n) _sleep ((n) * 1000)
8423 #define O_NOFOLLOW 0
8425 static int const constants[] =
8427 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8428 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8435 int result = !constants;
8438 static char const sym[] = "conftest.sym";
8439 if (symlink ("/dev/null", sym) != 0)
8443 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8450 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8454 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8465 static char const file[] = "confdefs.h";
8466 int fd = open (file, O_RDONLY | O_NOATIME);
8472 if (fstat (fd, &st0) != 0)
8478 if (read (fd, &c, 1) != 1)
8482 if (close (fd) != 0)
8487 if (stat (file, &st1) != 0)
8490 if (st0.st_atime != st1.st_atime)
8502 if ac_fn_c_try_run
"$LINENO"; then :
8503 gl_cv_header_working_fcntl_h
=yes
8506 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8507 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8508 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8509 *) gl_cv_header_working_fcntl_h
='no';;
8512 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8513 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8519 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8521 case $gl_cv_header_working_fcntl_h in #(
8522 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8526 cat >>confdefs.h
<<_ACEOF
8527 #define HAVE_WORKING_O_NOATIME $ac_val
8531 case $gl_cv_header_working_fcntl_h in #(
8532 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8536 cat >>confdefs.h
<<_ACEOF
8537 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8541 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8542 if test "x$ac_cv_type_pid_t" = xyes
; then :
8546 cat >>confdefs.h
<<_ACEOF
8552 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8553 if test "x$ac_cv_type_mode_t" = xyes
; then :
8557 cat >>confdefs.h
<<_ACEOF
8587 if test $gl_cv_have_include_next = yes; then
8588 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
8591 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
8592 if ${gl_cv_next_fnmatch_h+:} false
; then :
8593 $as_echo_n "(cached) " >&6
8596 if test $ac_cv_header_fnmatch_h = yes; then
8601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8603 #include <fnmatch.h>
8606 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8607 *) gl_absname_cpp
="$ac_cpp" ;;
8612 gl_dirsep_regex
='[/\\]'
8615 gl_dirsep_regex
='\/'
8618 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8619 gl_header_literal_regex
=`echo 'fnmatch.h' \
8620 | sed -e "$gl_make_literal_regex_sed"`
8621 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8622 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8628 gl_cv_absolute_fnmatch_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8629 sed -n "$gl_absolute_header_sed"`
8631 gl_header
=$gl_cv_absolute_fnmatch_h
8632 gl_cv_next_fnmatch_h
='"'$gl_header'"'
8634 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
8640 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
8642 NEXT_FNMATCH_H
=$gl_cv_next_fnmatch_h
8644 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8645 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8646 gl_next_as_first_directive
='<'fnmatch.h
'>'
8648 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8649 gl_next_as_first_directive
=$gl_cv_next_fnmatch_h
8651 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
=$gl_next_as_first_directive
8659 if test $ac_cv_header_fnmatch_h = yes; then
8670 if test $ac_cv_header_fnmatch_h != yes; then
8676 if test -n "$FNMATCH_H"; then
8677 GL_GENERATE_FNMATCH_H_TRUE
=
8678 GL_GENERATE_FNMATCH_H_FALSE
='#'
8680 GL_GENERATE_FNMATCH_H_TRUE
='#'
8681 GL_GENERATE_FNMATCH_H_FALSE
=
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8694 $as_echo_n "checking for mbstate_t... " >&6; }
8695 if ${ac_cv_type_mbstate_t+:} false
; then :
8696 $as_echo_n "(cached) " >&6
8698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 $ac_includes_default
8701 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8703 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8704 included before <wchar.h>. */
8712 mbstate_t x; return sizeof x;
8717 if ac_fn_c_try_compile
"$LINENO"; then :
8718 ac_cv_type_mbstate_t
=yes
8720 ac_cv_type_mbstate_t
=no
8722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8725 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8726 if test $ac_cv_type_mbstate_t = yes; then
8728 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8732 $as_echo "#define mbstate_t int" >>confdefs.h
8828 GNULIB_REMAINDERF
=0;
8829 GNULIB_REMAINDERL
=0;
8915 HAVE_DECL_COPYSIGNF
=1;
8932 HAVE_DECL_REMAINDER
=1;
8933 HAVE_DECL_REMAINDERL
=1;
9005 REPLACE_REMAINDER
=0;
9006 REPLACE_REMAINDERF
=0;
9007 REPLACE_REMAINDERL
=0;
9013 REPLACE_SIGNBIT_USING_GCC
=0;
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
9026 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
9027 if ${gl_cv_func_frexp_no_libm+:} false
; then :
9028 $as_echo_n "(cached) " >&6
9031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9038 int e; return frexp (x, &e) > 0;
9043 if ac_fn_c_try_link
"$LINENO"; then :
9044 gl_cv_func_frexp_no_libm
=yes
9046 gl_cv_func_frexp_no_libm
=no
9048 rm -f core conftest.err conftest.
$ac_objext \
9049 conftest
$ac_exeext conftest.
$ac_ext
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
9053 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
9055 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
9056 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
9062 cat >>confdefs.h
<<_ACEOF
9063 #define HAVE_DECL_ALARM $ac_have_decl
9070 if test $gl_cv_func_frexp_no_libm = no
; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
9072 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
9073 if ${gl_cv_func_frexp_in_libm+:} false
; then :
9074 $as_echo_n "(cached) " >&6
9079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9086 int e; return frexp (x, &e) > 0;
9091 if ac_fn_c_try_link
"$LINENO"; then :
9092 gl_cv_func_frexp_in_libm
=yes
9094 gl_cv_func_frexp_in_libm
=no
9096 rm -f core conftest.err conftest.
$ac_objext \
9097 conftest
$ac_exeext conftest.
$ac_ext
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
9102 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
9103 if test $gl_cv_func_frexp_in_libm = yes; then
9107 if test $gl_cv_func_frexp_no_libm = yes \
9108 ||
test $gl_cv_func_frexp_in_libm = yes; then
9110 LIBS
="$LIBS $FREXP_LIBM"
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
9115 $as_echo_n "checking whether frexp works... " >&6; }
9116 if ${gl_cv_func_frexp_works+:} false
; then :
9117 $as_echo_n "(cached) " >&6
9120 if test "$cross_compiling" = yes; then :
9122 netbsd
* | irix
*) gl_cv_func_frexp_works
="guessing no" ;;
9123 mingw
*) # Guess yes with MSVC, no with mingw.
9124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9133 $EGREP "Good" >/dev
/null
2>&1; then :
9134 gl_cv_func_frexp_works
="guessing yes"
9136 gl_cv_func_frexp_works
="guessing no"
9141 *) gl_cv_func_frexp_works
="guessing yes" ;;
9145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9152 # include <signal.h>
9153 # include <unistd.h>
9155 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
9156 ICC 10.0 has a bug when optimizing the expression -zero.
9157 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
9158 to PowerPC on Mac OS X 10.5. */
9159 #if defined __hpux || defined __sgi || defined __ICC
9161 compute_minus_zero (void)
9163 return -DBL_MIN * DBL_MIN;
9165 # define minus_zero compute_minus_zero ()
9167 double minus_zero = -0.0;
9176 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
9177 number. Let the test fail in this case. */
9178 signal (SIGALRM, SIG_DFL);
9181 /* Test on denormalized numbers. */
9182 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
9187 double y = frexp (x, &exp);
9188 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
9189 On NetBSD: y = 0.75. Correct: y = 0.5. */
9193 /* Test on infinite numbers. */
9197 double y = frexp (x, &exp);
9201 /* Test on negative zero. */
9205 double y = frexp (x, &exp);
9206 if (memcmp (&y, &x, sizeof x))
9212 if ac_fn_c_try_run
"$LINENO"; then :
9213 gl_cv_func_frexp_works
=yes
9215 gl_cv_func_frexp_works
=no
9217 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9218 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
9224 $as_echo "$gl_cv_func_frexp_works" >&6; }
9227 case "$gl_cv_func_frexp_works" in
9228 *yes) gl_func_frexp
=yes ;;
9229 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
9234 if test $gl_func_frexp = yes; then
9236 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9243 $as_echo_n "checking whether long double and double are the same... " >&6; }
9244 if ${gl_cv_long_double_equals_double+:} false
; then :
9245 $as_echo_n "(cached) " >&6
9247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9253 typedef int check[sizeof (long double) == sizeof (double)
9254 && LDBL_MANT_DIG == DBL_MANT_DIG
9255 && LDBL_MAX_EXP == DBL_MAX_EXP
9256 && LDBL_MIN_EXP == DBL_MIN_EXP
9263 if ac_fn_c_try_compile
"$LINENO"; then :
9264 gl_cv_long_double_equals_double
=yes
9266 gl_cv_long_double_equals_double
=no
9268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9272 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9273 if test $gl_cv_long_double_equals_double = yes; then
9275 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9277 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9279 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9289 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
9291 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
9299 if test $HAVE_DECL_FREXPL = 1; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
9302 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
9303 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
9304 $as_echo_n "(cached) " >&6
9307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9314 int e; return frexpl (x, &e) > 0;
9319 if ac_fn_c_try_link
"$LINENO"; then :
9320 gl_cv_func_frexpl_no_libm
=yes
9322 gl_cv_func_frexpl_no_libm
=no
9324 rm -f core conftest.err conftest.
$ac_objext \
9325 conftest
$ac_exeext conftest.
$ac_ext
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
9329 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
9331 if test $gl_cv_func_frexpl_no_libm = no
; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
9333 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
9334 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
9335 $as_echo_n "(cached) " >&6
9340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9347 int e; return frexpl (x, &e) > 0;
9352 if ac_fn_c_try_link
"$LINENO"; then :
9353 gl_cv_func_frexpl_in_libm
=yes
9355 gl_cv_func_frexpl_in_libm
=no
9357 rm -f core conftest.err conftest.
$ac_objext \
9358 conftest
$ac_exeext conftest.
$ac_ext
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
9363 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
9364 if test $gl_cv_func_frexpl_in_libm = yes; then
9368 if test $gl_cv_func_frexpl_no_libm = yes \
9369 ||
test $gl_cv_func_frexpl_in_libm = yes; then
9371 LIBS
="$LIBS $FREXPL_LIBM"
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
9375 $as_echo_n "checking whether frexpl works... " >&6; }
9376 if ${gl_cv_func_frexpl_works+:} false
; then :
9377 $as_echo_n "(cached) " >&6
9380 if test "$cross_compiling" = yes; then :
9383 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
9384 gl_cv_func_frexpl_works
="guessing no";;
9385 *) gl_cv_func_frexpl_works
="guessing yes";;
9389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9394 /* Override the values of <float.h>, like done in float.in.h. */
9395 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
9396 # undef LDBL_MIN_EXP
9397 # define LDBL_MIN_EXP (-16381)
9399 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
9400 # undef LDBL_MIN_EXP
9401 # define LDBL_MIN_EXP (-16381)
9403 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
9404 # undef LDBL_MIN_EXP
9405 # define LDBL_MIN_EXP DBL_MIN_EXP
9407 #if defined __sgi && (LDBL_MANT_DIG >= 106)
9408 # if defined __GNUC__
9409 # undef LDBL_MIN_EXP
9410 # define LDBL_MIN_EXP DBL_MIN_EXP
9417 long double frexpl (long double, int *);
9421 volatile long double x;
9422 /* Test on finite numbers that fails on AIX 5.1. */
9430 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
9431 function returns an invalid (incorrectly normalized) value: it returns
9432 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
9433 but the correct result is
9434 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
9438 long double y = frexpl (x, &exp);
9439 if (!(exp == 1 && y == 0.505L))
9442 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
9443 LDBL_MAX_EXP = 16384.
9444 In the loop end test, we test x against Infinity, rather than comparing
9445 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
9448 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
9459 /* Test on denormalized numbers. */
9462 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
9467 long double y = frexpl (x, &exp);
9468 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
9469 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
9470 if (exp != LDBL_MIN_EXP - 1)
9474 /* Test on infinite numbers. */
9478 long double y = frexpl (x, &exp);
9485 if ac_fn_c_try_run
"$LINENO"; then :
9486 gl_cv_func_frexpl_works
=yes
9488 gl_cv_func_frexpl_works
=no
9490 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9491 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
9497 $as_echo "$gl_cv_func_frexpl_works" >&6; }
9500 case "$gl_cv_func_frexpl_works" in
9501 *yes) gl_func_frexpl
=yes ;;
9502 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
9507 if test $gl_func_frexpl = yes; then
9509 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
9513 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
9514 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
9516 FREXPL_LIBM
="$FREXP_LIBM"
9537 GNULIB_OVERRIDES_STRUCT_STAT
=0;
9557 REPLACE_UTIMENSAT
=0;
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9560 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9561 if ${ac_cv_header_stat_broken+:} false
; then :
9562 $as_echo_n "(cached) " >&6
9564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9565 /* end confdefs.h. */
9566 #include <sys/types.h>
9567 #include <sys/stat.h>
9569 #if defined S_ISBLK && defined S_IFDIR
9570 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9573 #if defined S_ISBLK && defined S_IFCHR
9574 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9577 #if defined S_ISLNK && defined S_IFREG
9578 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9581 #if defined S_ISSOCK && defined S_IFREG
9582 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9586 if ac_fn_c_try_compile
"$LINENO"; then :
9587 ac_cv_header_stat_broken
=no
9589 ac_cv_header_stat_broken
=yes
9591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9594 $as_echo "$ac_cv_header_stat_broken" >&6; }
9595 if test $ac_cv_header_stat_broken = yes; then
9597 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9608 $as_echo_n "checking for 64-bit off_t... " >&6; }
9609 if ${gl_cv_type_off_t_64+:} false
; then :
9610 $as_echo_n "(cached) " >&6
9612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614 #include <sys/types.h>
9615 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9625 if ac_fn_c_try_compile
"$LINENO"; then :
9626 gl_cv_type_off_t_64
=yes
9628 gl_cv_type_off_t_64
=no
9630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9634 $as_echo "$gl_cv_type_off_t_64" >&6; }
9635 if test $gl_cv_type_off_t_64 = no
; then
9636 WINDOWS_64_BIT_OFF_T
=1
9638 WINDOWS_64_BIT_OFF_T
=0
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
9641 $as_echo_n "checking for 64-bit st_size... " >&6; }
9642 if ${gl_cv_member_st_size_64+:} false
; then :
9643 $as_echo_n "(cached) " >&6
9645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647 #include <sys/types.h>
9649 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
9659 if ac_fn_c_try_compile
"$LINENO"; then :
9660 gl_cv_member_st_size_64
=yes
9662 gl_cv_member_st_size_64
=no
9664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
9668 $as_echo "$gl_cv_member_st_size_64" >&6; }
9669 if test $gl_cv_member_st_size_64 = no
; then
9670 WINDOWS_64_BIT_ST_SIZE
=1
9672 WINDOWS_64_BIT_ST_SIZE
=0
9676 WINDOWS_64_BIT_OFF_T
=0
9677 WINDOWS_64_BIT_ST_SIZE
=0
9695 if test $gl_cv_have_include_next = yes; then
9696 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
9699 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
9700 if ${gl_cv_next_sys_stat_h+:} false
; then :
9701 $as_echo_n "(cached) " >&6
9704 if test $ac_cv_header_sys_stat_h = yes; then
9709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9711 #include <sys/stat.h>
9714 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9715 *) gl_absname_cpp
="$ac_cpp" ;;
9720 gl_dirsep_regex
='[/\\]'
9723 gl_dirsep_regex
='\/'
9726 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9727 gl_header_literal_regex
=`echo 'sys/stat.h' \
9728 | sed -e "$gl_make_literal_regex_sed"`
9729 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9730 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9736 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9737 sed -n "$gl_absolute_header_sed"`
9739 gl_header
=$gl_cv_absolute_sys_stat_h
9740 gl_cv_next_sys_stat_h
='"'$gl_header'"'
9742 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
9748 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
9750 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
9752 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9753 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9754 gl_next_as_first_directive
='<'sys
/stat.h
'>'
9756 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9757 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
9759 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
9768 WINDOWS_STAT_TIMESPEC
=0
9777 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
9778 #include <sys/stat.h>
9780 if test "x$ac_cv_type_nlink_t" = xyes
; then :
9784 $as_echo "#define nlink_t int" >>confdefs.h
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9795 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9796 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
9797 $as_echo_n "(cached) " >&6
9799 rm -f conftest.sym conftest.
file
9801 if test "$cross_compiling" = yes; then :
9804 # Guess yes on Linux systems.
9805 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9807 # Guess yes on glibc systems.
9808 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9810 # Guess no on native Windows.
9811 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
9813 # If we don't know, obey --enable-cross-guesses.
9814 gl_cv_func_lstat_dereferences_slashed_symlink
="$gl_cross_guess_normal" ;;
9818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 $ac_includes_default
9825 if (symlink ("conftest.file", "conftest.sym") != 0)
9827 /* Linux will dereference the symlink and fail, as required by
9828 POSIX. That is better in the sense that it means we will not
9829 have to compile and use the lstat wrapper. */
9830 return lstat ("conftest.sym/", &sbuf) == 0;
9836 if ac_fn_c_try_run
"$LINENO"; then :
9837 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
9839 gl_cv_func_lstat_dereferences_slashed_symlink
=no
9841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9845 rm -f conftest.sym conftest.
file
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9849 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9850 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9853 cat >>confdefs.h
<<_ACEOF
9854 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9865 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9866 if ${gl_cv_func_getcwd_null+:} false
; then :
9867 $as_echo_n "(cached) " >&6
9869 if test "$cross_compiling" = yes; then :
9871 # Guess yes on glibc systems.
9872 *-gnu* | gnu
*) gl_cv_func_getcwd_null
="guessing yes";;
9873 # Guess yes on musl systems.
9874 *-musl*) gl_cv_func_getcwd_null
="guessing yes";;
9875 # Guess yes on Cygwin.
9876 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
9877 # If we don't know, obey --enable-cross-guesses.
9878 *) gl_cv_func_getcwd_null
="$gl_cross_guess_normal";;
9882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9885 # include <stdlib.h>
9887 # include <unistd.h>
9888 # else /* on Windows with MSVC */
9889 # include <direct.h>
9899 #if defined _WIN32 && ! defined __CYGWIN__
9900 /* mingw cwd does not start with '/', but getcwd does allocate.
9901 However, mingw fails to honor non-zero size. */
9903 if (chdir ("/") != 0)
9907 char *f = getcwd (NULL, 0);
9911 { free (f); return 3; }
9913 { free (f); return 4; }
9923 if ac_fn_c_try_run
"$LINENO"; then :
9924 gl_cv_func_getcwd_null
=yes
9926 gl_cv_func_getcwd_null
=no
9928 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9929 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9934 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9938 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9939 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9940 $as_echo_n "(cached) " >&6
9942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9952 char *getcwd (char *, size_t);
9959 if ac_fn_c_try_compile
"$LINENO"; then :
9960 gl_cv_func_getcwd_posix_signature
=yes
9962 gl_cv_func_getcwd_posix_signature
=no
9964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9968 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9970 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9971 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
9977 cat >>confdefs.h
<<_ACEOF
9978 #define HAVE_DECL_GETCWD $ac_have_decl
9983 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9984 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
9990 cat >>confdefs.h
<<_ACEOF
9991 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9994 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9995 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
10001 cat >>confdefs.h
<<_ACEOF
10002 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
10007 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
10008 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
10014 cat >>confdefs.h
<<_ACEOF
10015 #define HAVE_DECL_GETLOGIN $ac_have_decl
10022 LIB_GETLOGIN
='-ladvapi32' ;;
10033 GNULIB_GETTIMEOFDAY
=0;
10034 HAVE_GETTIMEOFDAY
=1;
10035 HAVE_STRUCT_TIMEVAL
=1;
10037 REPLACE_GETTIMEOFDAY
=0;
10038 REPLACE_STRUCT_TIMEVAL
=0;
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10041 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10042 if ${ac_cv_c_restrict+:} false
; then :
10043 $as_echo_n "(cached) " >&6
10045 ac_cv_c_restrict
=no
10046 # The order here caters to the fact that C++ does not require restrict.
10047 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
10048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10050 typedef int *int_ptr;
10051 int foo (int_ptr $ac_kw ip) { return ip[0]; }
10052 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
10053 int bar (int ip[$ac_kw]) { return ip[0]; }
10061 return foo (t) + bar (t);
10067 if ac_fn_c_try_compile
"$LINENO"; then :
10068 ac_cv_c_restrict
=$ac_kw
10070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10071 test "$ac_cv_c_restrict" != no
&& break
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10076 $as_echo "$ac_cv_c_restrict" >&6; }
10078 case $ac_cv_c_restrict in
10080 no
) $as_echo "#define restrict /**/" >>confdefs.h
10082 *) cat >>confdefs.h
<<_ACEOF
10083 #define restrict $ac_cv_c_restrict
10103 if test $gl_cv_have_include_next = yes; then
10104 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
10107 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
10108 if ${gl_cv_next_sys_time_h+:} false
; then :
10109 $as_echo_n "(cached) " >&6
10112 if test $ac_cv_header_sys_time_h = yes; then
10117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119 #include <sys/time.h>
10122 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10123 *) gl_absname_cpp
="$ac_cpp" ;;
10128 gl_dirsep_regex
='[/\\]'
10131 gl_dirsep_regex
='\/'
10134 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10135 gl_header_literal_regex
=`echo 'sys/time.h' \
10136 | sed -e "$gl_make_literal_regex_sed"`
10137 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10138 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10144 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10145 sed -n "$gl_absolute_header_sed"`
10147 gl_header
=$gl_cv_absolute_sys_time_h
10148 gl_cv_next_sys_time_h
='"'$gl_header'"'
10150 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
10156 $as_echo "$gl_cv_next_sys_time_h" >&6; }
10158 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
10160 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10161 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10162 gl_next_as_first_directive
='<'sys
/time.h
'>'
10164 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10165 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
10167 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
10173 if test $ac_cv_header_sys_time_h != yes; then
10181 if test $ac_cv_header_sys_socket_h != yes; then
10182 for ac_header
in winsock2.h
10184 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10185 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10186 cat >>confdefs.h
<<_ACEOF
10187 #define HAVE_WINSOCK2_H 1
10195 if test "$ac_cv_header_winsock2_h" = yes; then
10197 UNISTD_H_HAVE_WINSOCK2_H
=1
10198 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
10205 $as_echo_n "checking for struct timeval... " >&6; }
10206 if ${gl_cv_sys_struct_timeval+:} false
; then :
10207 $as_echo_n "(cached) " >&6
10209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h. */
10211 #if HAVE_SYS_TIME_H
10212 #include <sys/time.h>
10215 #if HAVE_WINSOCK2_H
10216 # include <winsock2.h>
10222 static struct timeval x; x.tv_sec = x.tv_usec;
10227 if ac_fn_c_try_compile
"$LINENO"; then :
10228 gl_cv_sys_struct_timeval
=yes
10230 gl_cv_sys_struct_timeval
=no
10232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10236 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10237 if test $gl_cv_sys_struct_timeval != yes; then
10238 HAVE_STRUCT_TIMEVAL
=0
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
10241 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
10242 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
10243 $as_echo_n "(cached) " >&6
10245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h. */
10247 #if HAVE_SYS_TIME_H
10248 #include <sys/time.h>
10251 #if HAVE_WINSOCK2_H
10252 # include <winsock2.h>
10258 static struct timeval x;
10259 typedef int verify_tv_sec_type[
10260 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
10267 if ac_fn_c_try_compile
"$LINENO"; then :
10268 gl_cv_sys_struct_timeval_tv_sec
=yes
10270 gl_cv_sys_struct_timeval_tv_sec
=no
10272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10276 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10277 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10278 REPLACE_STRUCT_TIMEVAL
=1
10292 NEED_LOCALTIME_BUFFER
=0
10297 GNULIB_LOCALTIME
=0;
10298 GNULIB_NANOSLEEP
=0;
10305 HAVE_DECL_LOCALTIME_R
=1;
10311 REPLACE_CTIME
=GNULIB_PORTCHECK
;
10312 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
10313 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
10314 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
10315 REPLACE_STRFTIME
=GNULIB_PORTCHECK
;
10316 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
10317 REPLACE_TZSET
=GNULIB_PORTCHECK
;
10319 : ${GNULIB_GETTIMEOFDAY=0};
10321 REPLACE_LOCALTIME
=0;
10326 HAVE_GLOB_PATTERN_P
=1;
10328 REPLACE_GLOB_PATTERN_P
=0;
10346 if test $gl_cv_have_include_next = yes; then
10347 gl_cv_next_glob_h
='<'glob.h
'>'
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <glob.h>" >&5
10350 $as_echo_n "checking absolute name of <glob.h>... " >&6; }
10351 if ${gl_cv_next_glob_h+:} false
; then :
10352 $as_echo_n "(cached) " >&6
10355 if test $ac_cv_header_glob_h = yes; then
10360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10365 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10366 *) gl_absname_cpp
="$ac_cpp" ;;
10371 gl_dirsep_regex
='[/\\]'
10374 gl_dirsep_regex
='\/'
10377 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10378 gl_header_literal_regex
=`echo 'glob.h' \
10379 | sed -e "$gl_make_literal_regex_sed"`
10380 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10381 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10387 gl_cv_absolute_glob_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10388 sed -n "$gl_absolute_header_sed"`
10390 gl_header
=$gl_cv_absolute_glob_h
10391 gl_cv_next_glob_h
='"'$gl_header'"'
10393 gl_cv_next_glob_h
='<'glob.h
'>'
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_glob_h" >&5
10399 $as_echo "$gl_cv_next_glob_h" >&6; }
10401 NEXT_GLOB_H
=$gl_cv_next_glob_h
10403 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10404 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10405 gl_next_as_first_directive
='<'glob.h
'>'
10407 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10408 gl_next_as_first_directive
=$gl_cv_next_glob_h
10410 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
=$gl_next_as_first_directive
10416 if test $ac_cv_header_glob_h = yes; then
10427 if test $ac_cv_header_glob_h != yes; then
10433 if test -n "$GLOB_H"; then
10434 GL_GENERATE_GLOB_H_TRUE
=
10435 GL_GENERATE_GLOB_H_FALSE
='#'
10437 GL_GENERATE_GLOB_H_TRUE
='#'
10438 GL_GENERATE_GLOB_H_FALSE
=
10459 GNULIB_GETPEERNAME
=0;
10460 GNULIB_GETSOCKNAME
=0;
10461 GNULIB_GETSOCKOPT
=0;
10467 GNULIB_SETSOCKOPT
=0;
10470 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
10471 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
10473 HAVE_SA_FAMILY_T
=1;
10483 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
10489 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
10490 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
10491 $as_echo_n "(cached) " >&6
10494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10496 #include <sys/socket.h>
10505 if ac_fn_c_try_compile
"$LINENO"; then :
10506 gl_cv_header_sys_socket_h_selfcontained
=yes
10508 gl_cv_header_sys_socket_h_selfcontained
=no
10510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
10514 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
10515 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
10516 for ac_func
in shutdown
10518 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
10519 if test "x$ac_cv_func_shutdown" = xyes
; then :
10520 cat >>confdefs.h
<<_ACEOF
10521 #define HAVE_SHUTDOWN 1
10527 if test $ac_cv_func_shutdown = yes; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
10529 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
10530 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
10531 $as_echo_n "(cached) " >&6
10534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10536 #include <sys/socket.h>
10540 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
10545 if ac_fn_c_try_compile
"$LINENO"; then :
10546 gl_cv_header_sys_socket_h_shut
=yes
10548 gl_cv_header_sys_socket_h_shut
=no
10550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
10554 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
10555 if test $gl_cv_header_sys_socket_h_shut = no
; then
10556 SYS_SOCKET_H
='sys/socket.h'
10560 # We need to check for ws2tcpip.h now.
10572 if test $gl_cv_have_include_next = yes; then
10573 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
10576 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
10577 if ${gl_cv_next_sys_socket_h+:} false
; then :
10578 $as_echo_n "(cached) " >&6
10581 if test $ac_cv_header_sys_socket_h = yes; then
10586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588 #include <sys/socket.h>
10591 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10592 *) gl_absname_cpp
="$ac_cpp" ;;
10597 gl_dirsep_regex
='[/\\]'
10600 gl_dirsep_regex
='\/'
10603 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10604 gl_header_literal_regex
=`echo 'sys/socket.h' \
10605 | sed -e "$gl_make_literal_regex_sed"`
10606 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10607 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10613 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10614 sed -n "$gl_absolute_header_sed"`
10616 gl_header
=$gl_cv_absolute_sys_socket_h
10617 gl_cv_next_sys_socket_h
='"'$gl_header'"'
10619 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
10625 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
10627 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
10629 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10630 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10631 gl_next_as_first_directive
='<'sys
/socket.h
'>'
10633 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10634 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
10636 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
10641 if test $ac_cv_header_sys_socket_h = yes; then
10642 HAVE_SYS_SOCKET_H
=1
10644 HAVE_SYS_SOCKET_H
=0
10649 if test $ac_cv_header_sys_socket_h = yes; then
10652 if test $ac_cv_header_ws2tcpip_h = yes; then
10661 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10662 /* sys/types.h is not needed according to POSIX, but the
10663 sys/socket.h in i386-unknown-freebsd4.10 and
10664 powerpc-apple-darwin5.5 required it. */
10665 #include <sys/types.h>
10666 #ifdef HAVE_SYS_SOCKET_H
10667 #include <sys/socket.h>
10669 #ifdef HAVE_WS2TCPIP_H
10670 #include <ws2tcpip.h>
10674 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
10676 cat >>confdefs.h
<<_ACEOF
10677 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10682 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
10683 /* sys/types.h is not needed according to POSIX, but the
10684 sys/socket.h in i386-unknown-freebsd4.10 and
10685 powerpc-apple-darwin5.5 required it. */
10686 #include <sys/types.h>
10687 #ifdef HAVE_SYS_SOCKET_H
10688 #include <sys/socket.h>
10690 #ifdef HAVE_WS2TCPIP_H
10691 #include <ws2tcpip.h>
10695 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
10697 cat >>confdefs.h
<<_ACEOF
10698 #define HAVE_SA_FAMILY_T 1
10704 if test $ac_cv_type_struct_sockaddr_storage = no
; then
10705 HAVE_STRUCT_SOCKADDR_STORAGE
=0
10707 if test $ac_cv_type_sa_family_t = no
; then
10710 if test $ac_cv_type_struct_sockaddr_storage != no
; then
10711 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
10712 #ifdef HAVE_SYS_SOCKET_H
10713 #include <sys/socket.h>
10715 #ifdef HAVE_WS2TCPIP_H
10716 #include <ws2tcpip.h>
10720 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
10722 cat >>confdefs.h
<<_ACEOF
10723 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10728 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
10732 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
10733 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
10734 SYS_SOCKET_H
='sys/socket.h'
10740 if test $ac_cv_header_sys_socket_h != yes; then
10741 for ac_header
in winsock2.h
10743 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10744 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10745 cat >>confdefs.h
<<_ACEOF
10746 #define HAVE_WINSOCK2_H 1
10754 if test "$ac_cv_header_winsock2_h" = yes; then
10756 UNISTD_H_HAVE_WINSOCK2_H
=1
10757 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
10775 $as_echo_n "checking for IPv4 sockets... " >&6; }
10776 if ${gl_cv_socket_ipv4+:} false
; then :
10777 $as_echo_n "(cached) " >&6
10779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 #include <sys/types.h>
10782 #ifdef HAVE_SYS_SOCKET_H
10783 #include <sys/socket.h>
10785 #ifdef HAVE_NETINET_IN_H
10786 #include <netinet/in.h>
10788 #ifdef HAVE_WINSOCK2_H
10789 #include <winsock2.h>
10794 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10795 if (&x && &y && &z) return 0;
10800 if ac_fn_c_try_compile
"$LINENO"; then :
10801 gl_cv_socket_ipv4
=yes
10803 gl_cv_socket_ipv4
=no
10805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
10808 $as_echo "$gl_cv_socket_ipv4" >&6; }
10809 if test $gl_cv_socket_ipv4 = yes; then
10811 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
10816 $as_echo_n "checking for IPv6 sockets... " >&6; }
10817 if ${gl_cv_socket_ipv6+:} false
; then :
10818 $as_echo_n "(cached) " >&6
10820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10822 #include <sys/types.h>
10823 #ifdef HAVE_SYS_SOCKET_H
10824 #include <sys/socket.h>
10826 #ifdef HAVE_NETINET_IN_H
10827 #include <netinet/in.h>
10829 #ifdef HAVE_WINSOCK2_H
10830 #include <winsock2.h>
10832 #ifdef HAVE_WS2TCPIP_H
10833 #include <ws2tcpip.h>
10838 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10839 if (&x && &y && &z) return 0;
10844 if ac_fn_c_try_compile
"$LINENO"; then :
10845 gl_cv_socket_ipv6
=yes
10847 gl_cv_socket_ipv6
=no
10849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
10852 $as_echo "$gl_cv_socket_ipv6" >&6; }
10853 if test $gl_cv_socket_ipv6 = yes; then
10855 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
10871 if test $gl_cv_have_include_next = yes; then
10872 gl_cv_next_limits_h
='<'limits.h
'>'
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
10875 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
10876 if ${gl_cv_next_limits_h+:} false
; then :
10877 $as_echo_n "(cached) " >&6
10880 if test $ac_cv_header_limits_h = yes; then
10885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887 #include <limits.h>
10890 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10891 *) gl_absname_cpp
="$ac_cpp" ;;
10896 gl_dirsep_regex
='[/\\]'
10899 gl_dirsep_regex
='\/'
10902 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10903 gl_header_literal_regex
=`echo 'limits.h' \
10904 | sed -e "$gl_make_literal_regex_sed"`
10905 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10906 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10912 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10913 sed -n "$gl_absolute_header_sed"`
10915 gl_header
=$gl_cv_absolute_limits_h
10916 gl_cv_next_limits_h
='"'$gl_header'"'
10918 gl_cv_next_limits_h
='<'limits.h
'>'
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
10924 $as_echo "$gl_cv_next_limits_h" >&6; }
10926 NEXT_LIMITS_H
=$gl_cv_next_limits_h
10928 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10929 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10930 gl_next_as_first_directive
='<'limits.h
'>'
10932 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10933 gl_next_as_first_directive
=$gl_cv_next_limits_h
10935 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
10942 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
10943 if ${gl_cv_header_limits_width+:} false
; then :
10944 $as_echo_n "(cached) " >&6
10946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10949 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10951 #include <limits.h>
10952 long long llm = LLONG_MAX;
10954 int ullw = ULLONG_WIDTH;
10964 if ac_fn_c_try_compile
"$LINENO"; then :
10965 gl_cv_header_limits_width
=yes
10967 gl_cv_header_limits_width
=no
10969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
10972 $as_echo "$gl_cv_header_limits_width" >&6; }
10973 if test "$gl_cv_header_limits_width" = yes; then
10979 if test -n "$LIMITS_H"; then
10980 GL_GENERATE_LIMITS_H_TRUE
=
10981 GL_GENERATE_LIMITS_H_FALSE
='#'
10983 GL_GENERATE_LIMITS_H_TRUE
='#'
10984 GL_GENERATE_LIMITS_H_FALSE
=
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10990 $as_echo_n "checking for wint_t... " >&6; }
10991 if ${gt_cv_c_wint_t+:} false
; then :
10992 $as_echo_n "(cached) " >&6
10994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10997 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10999 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11000 before <wchar.h>. */
11001 #include <stddef.h>
11005 wint_t foo = (wchar_t)'\0';
11014 if ac_fn_c_try_compile
"$LINENO"; then :
11019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11022 $as_echo "$gt_cv_c_wint_t" >&6; }
11023 if test $gt_cv_c_wint_t = yes; then
11025 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
11029 $as_echo_n "checking whether wint_t is too small... " >&6; }
11030 if ${gl_cv_type_wint_t_too_small+:} false
; then :
11031 $as_echo_n "(cached) " >&6
11033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11036 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11038 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11039 included before <wchar.h>. */
11040 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11041 # include <stddef.h>
11042 # include <stdio.h>
11046 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
11056 if ac_fn_c_try_compile
"$LINENO"; then :
11057 gl_cv_type_wint_t_too_small
=no
11059 gl_cv_type_wint_t_too_small
=yes
11061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
11064 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
11065 if test $gl_cv_type_wint_t_too_small = yes; then
11066 GNULIB_OVERRIDES_WINT_T
=1
11068 GNULIB_OVERRIDES_WINT_T
=0
11071 GNULIB_OVERRIDES_WINT_T
=0
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11078 $as_echo_n "checking for long long int... " >&6; }
11079 if ${ac_cv_type_long_long_int+:} false
; then :
11080 $as_echo_n "(cached) " >&6
11082 ac_cv_type_long_long_int
=yes
11083 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
11084 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
11085 if test $ac_cv_type_long_long_int = yes; then
11086 if test "$cross_compiling" = yes; then :
11089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11091 #include <limits.h>
11094 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11095 # define LLONG_MAX (HALF - 1 + HALF)
11100 long long int n = 1;
11104 long long int m = n << i;
11107 if (LLONG_MAX / 2 < m)
11115 if ac_fn_c_try_run
"$LINENO"; then :
11118 ac_cv_type_long_long_int
=no
11120 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11121 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11128 $as_echo "$ac_cv_type_long_long_int" >&6; }
11129 if test $ac_cv_type_long_long_int = yes; then
11131 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11140 gl_cv_c_multiarch
=no
11141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11143 #ifndef __APPLE_CC__
11144 not a universal capable compiler
11149 if ac_fn_c_try_compile
"$LINENO"; then :
11153 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
11154 if test -n "$prev"; then
11156 i?
86 | x86_64 | ppc | ppc64
)
11157 if test -z "$arch" ||
test "$arch" = "$word"; then
11160 gl_cv_c_multiarch
=yes
11166 if test "x$word" = "x-arch"; then
11173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11174 if test $gl_cv_c_multiarch = yes; then
11175 APPLE_UNIVERSAL_BUILD
=1
11177 APPLE_UNIVERSAL_BUILD
=0
11187 if test $ac_cv_type_long_long_int = yes; then
11188 HAVE_LONG_LONG_INT
=1
11190 HAVE_LONG_LONG_INT
=0
11194 if test $ac_cv_type_unsigned_long_long_int = yes; then
11195 HAVE_UNSIGNED_LONG_LONG_INT
=1
11197 HAVE_UNSIGNED_LONG_LONG_INT
=0
11202 if test $ac_cv_header_wchar_h = yes; then
11209 if test $ac_cv_header_inttypes_h = yes; then
11216 if test $ac_cv_header_sys_types_h = yes; then
11232 if test $gl_cv_have_include_next = yes; then
11233 gl_cv_next_stdint_h
='<'stdint.h
'>'
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
11236 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
11237 if ${gl_cv_next_stdint_h+:} false
; then :
11238 $as_echo_n "(cached) " >&6
11241 if test $ac_cv_header_stdint_h = yes; then
11246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248 #include <stdint.h>
11251 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11252 *) gl_absname_cpp
="$ac_cpp" ;;
11257 gl_dirsep_regex
='[/\\]'
11260 gl_dirsep_regex
='\/'
11263 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11264 gl_header_literal_regex
=`echo 'stdint.h' \
11265 | sed -e "$gl_make_literal_regex_sed"`
11266 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11267 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11273 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11274 sed -n "$gl_absolute_header_sed"`
11276 gl_header
=$gl_cv_absolute_stdint_h
11277 gl_cv_next_stdint_h
='"'$gl_header'"'
11279 gl_cv_next_stdint_h
='<'stdint.h
'>'
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
11285 $as_echo "$gl_cv_next_stdint_h" >&6; }
11287 NEXT_STDINT_H
=$gl_cv_next_stdint_h
11289 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11291 gl_next_as_first_directive
='<'stdint.h
'>'
11293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11294 gl_next_as_first_directive
=$gl_cv_next_stdint_h
11296 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
11301 if test $ac_cv_header_stdint_h = yes; then
11308 if test $ac_cv_header_stdint_h = yes; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
11310 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
11311 if ${gl_cv_header_working_stdint_h+:} false
; then :
11312 $as_echo_n "(cached) " >&6
11314 gl_cv_header_working_stdint_h
=no
11315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11319 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11320 #define __STDC_CONSTANT_MACROS 1
11321 #define __STDC_LIMIT_MACROS 1
11322 #include <stdint.h>
11323 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
11324 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
11325 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
11329 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11330 included before <wchar.h>. */
11331 #include <stddef.h>
11332 #include <signal.h>
11334 # include <stdio.h>
11336 # include <wchar.h>
11341 int8_t a1 = INT8_MAX;
11342 int8_t a1min = INT8_MIN;
11345 int16_t a2 = INT16_MAX;
11346 int16_t a2min = INT16_MIN;
11349 int32_t a3 = INT32_MAX;
11350 int32_t a3min = INT32_MIN;
11353 int64_t a4 = INT64_MAX;
11354 int64_t a4min = INT64_MIN;
11357 uint8_t b1 = UINT8_MAX;
11359 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
11362 uint16_t b2 = UINT16_MAX;
11365 uint32_t b3 = UINT32_MAX;
11368 uint64_t b4 = UINT64_MAX;
11370 int_least8_t c1 = INT8_C (0x7f);
11371 int_least8_t c1max = INT_LEAST8_MAX;
11372 int_least8_t c1min = INT_LEAST8_MIN;
11373 int_least16_t c2 = INT16_C (0x7fff);
11374 int_least16_t c2max = INT_LEAST16_MAX;
11375 int_least16_t c2min = INT_LEAST16_MIN;
11376 int_least32_t c3 = INT32_C (0x7fffffff);
11377 int_least32_t c3max = INT_LEAST32_MAX;
11378 int_least32_t c3min = INT_LEAST32_MIN;
11379 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
11380 int_least64_t c4max = INT_LEAST64_MAX;
11381 int_least64_t c4min = INT_LEAST64_MIN;
11382 uint_least8_t d1 = UINT8_C (0xff);
11383 uint_least8_t d1max = UINT_LEAST8_MAX;
11384 uint_least16_t d2 = UINT16_C (0xffff);
11385 uint_least16_t d2max = UINT_LEAST16_MAX;
11386 uint_least32_t d3 = UINT32_C (0xffffffff);
11387 uint_least32_t d3max = UINT_LEAST32_MAX;
11388 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
11389 uint_least64_t d4max = UINT_LEAST64_MAX;
11390 int_fast8_t e1 = INT_FAST8_MAX;
11391 int_fast8_t e1min = INT_FAST8_MIN;
11392 int_fast16_t e2 = INT_FAST16_MAX;
11393 int_fast16_t e2min = INT_FAST16_MIN;
11394 int_fast32_t e3 = INT_FAST32_MAX;
11395 int_fast32_t e3min = INT_FAST32_MIN;
11396 int_fast64_t e4 = INT_FAST64_MAX;
11397 int_fast64_t e4min = INT_FAST64_MIN;
11398 uint_fast8_t f1 = UINT_FAST8_MAX;
11399 uint_fast16_t f2 = UINT_FAST16_MAX;
11400 uint_fast32_t f3 = UINT_FAST32_MAX;
11401 uint_fast64_t f4 = UINT_FAST64_MAX;
11403 intptr_t g = INTPTR_MAX;
11404 intptr_t gmin = INTPTR_MIN;
11407 uintptr_t h = UINTPTR_MAX;
11409 intmax_t i = INTMAX_MAX;
11410 uintmax_t j = UINTMAX_MAX;
11412 /* Check that SIZE_MAX has the correct type, if possible. */
11413 #if 201112 <= __STDC_VERSION__
11414 int k = _Generic (SIZE_MAX, size_t: 0);
11415 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
11416 || (0x5110 <= __SUNPRO_C && !__STDC__))
11418 extern __typeof__ (SIZE_MAX) k;
11421 #include <limits.h> /* for CHAR_BIT */
11422 #define TYPE_MINIMUM(t) \
11423 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
11424 #define TYPE_MAXIMUM(t) \
11425 ((t) ((t) 0 < (t) -1 \
11427 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
11430 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
11431 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
11433 /* Detect bug in FreeBSD 6.0 / ia64. */
11434 int check_SIG_ATOMIC:
11435 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
11436 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
11438 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
11440 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
11441 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
11443 /* Detect bug in mingw. */
11445 WINT_MIN == TYPE_MINIMUM (wint_t)
11446 && WINT_MAX == TYPE_MAXIMUM (wint_t)
11449 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
11451 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11452 int check_UINT16_C:
11453 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11455 /* Detect bugs in OpenBSD 3.9 stdint.h. */
11457 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11460 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11463 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11466 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11468 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11469 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11470 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11471 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11472 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11473 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11474 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11475 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11476 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11477 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11478 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
11489 if ac_fn_c_try_compile
"$LINENO"; then :
11490 if test "$cross_compiling" = yes; then :
11492 # Guess yes on native Windows.
11493 mingw
*) gl_cv_header_working_stdint_h
="guessing yes" ;;
11494 # In general, assume it works.
11495 *) gl_cv_header_working_stdint_h
="guessing yes" ;;
11499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h. */
11503 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11504 #define __STDC_CONSTANT_MACROS 1
11505 #define __STDC_LIMIT_MACROS 1
11506 #include <stdint.h>
11509 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11510 included before <wchar.h>. */
11511 #include <stddef.h>
11512 #include <signal.h>
11514 # include <stdio.h>
11516 # include <wchar.h>
11521 #include <string.h>
11522 #define MVAL(macro) MVAL1(macro)
11523 #define MVAL1(expression) #expression
11524 static const char *macro_values[] =
11558 for (mv = macro_values; *mv != NULL; mv++)
11560 const char *value = *mv;
11561 /* Test whether it looks like a cast expression. */
11562 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
11563 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
11564 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
11565 || strncmp (value, "((int)"/*)*/, 6) == 0
11566 || strncmp (value, "((signed short)"/*)*/, 15) == 0
11567 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
11568 return mv - macro_values + 1;
11576 if ac_fn_c_try_run
"$LINENO"; then :
11577 gl_cv_header_working_stdint_h
=yes
11579 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11580 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
11589 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
11592 HAVE_C99_STDINT_H
=0
11593 HAVE_SYS_BITYPES_H
=0
11594 HAVE_SYS_INTTYPES_H
=0
11596 case "$gl_cv_header_working_stdint_h" in
11598 HAVE_C99_STDINT_H
=1
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
11600 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
11601 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
11602 $as_echo_n "(cached) " >&6
11604 gl_cv_header_stdint_predates_cxx11_h
=yes
11605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11609 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11610 #include <stdint.h>
11613 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11614 included before <wchar.h>. */
11615 #include <stddef.h>
11616 #include <signal.h>
11618 # include <stdio.h>
11620 # include <wchar.h>
11624 intmax_t im = INTMAX_MAX;
11625 int32_t i32 = INT32_C (0x7fffffff);
11635 if ac_fn_c_try_compile
"$LINENO"; then :
11636 gl_cv_header_stdint_predates_cxx11_h
=no
11638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
11641 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
11643 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
11645 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
11648 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
11652 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
11653 if ${gl_cv_header_stdint_width+:} false
; then :
11654 $as_echo_n "(cached) " >&6
11656 gl_cv_header_stdint_width
=no
11657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11660 /* Work if build is not clean. */
11661 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
11662 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11663 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11665 #include <stdint.h>
11667 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11668 included before <wchar.h>. */
11669 #include <stddef.h>
11670 #include <signal.h>
11672 # include <stdio.h>
11674 # include <wchar.h>
11677 int iw = UINTMAX_WIDTH;
11687 if ac_fn_c_try_compile
"$LINENO"; then :
11688 gl_cv_header_stdint_width
=yes
11690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
11693 $as_echo "$gl_cv_header_stdint_width" >&6; }
11694 if test "$gl_cv_header_stdint_width" = yes; then
11699 for ac_header
in sys
/inttypes.h sys
/bitypes.h
11701 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11702 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11703 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11704 cat >>confdefs.h
<<_ACEOF
11705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11712 if test $ac_cv_header_sys_inttypes_h = yes; then
11713 HAVE_SYS_INTTYPES_H
=1
11715 if test $ac_cv_header_sys_bitypes_h = yes; then
11716 HAVE_SYS_BITYPES_H
=1
11720 if test $APPLE_UNIVERSAL_BUILD = 0; then
11723 for gltype
in ptrdiff_t size_t
; do
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11725 $as_echo_n "checking for bit size of $gltype... " >&6; }
11726 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11727 $as_echo_n "(cached) " >&6
11729 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11730 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11731 included before <wchar.h>. */
11732 #include <stddef.h>
11733 #include <signal.h>
11735 # include <stdio.h>
11737 # include <wchar.h>
11740 #include <limits.h>"; then :
11746 eval gl_cv_bitsizeof_
${gltype}=\
$result
11749 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11751 $as_echo "$ac_res" >&6; }
11752 eval result
=\
$gl_cv_bitsizeof_${gltype}
11753 if test $result = unknown
; then
11756 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11757 cat >>confdefs.h
<<_ACEOF
11758 #define BITSIZEOF_${GLTYPE} $result
11761 eval BITSIZEOF_
${GLTYPE}=\
$result
11768 for gltype
in sig_atomic_t wchar_t wint_t
; do
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11770 $as_echo_n "checking for bit size of $gltype... " >&6; }
11771 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11772 $as_echo_n "(cached) " >&6
11774 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11775 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11776 included before <wchar.h>. */
11777 #include <stddef.h>
11778 #include <signal.h>
11780 # include <stdio.h>
11782 # include <wchar.h>
11785 #include <limits.h>"; then :
11791 eval gl_cv_bitsizeof_
${gltype}=\
$result
11794 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11796 $as_echo "$ac_res" >&6; }
11797 eval result
=\
$gl_cv_bitsizeof_${gltype}
11798 if test $result = unknown
; then
11801 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11802 cat >>confdefs.h
<<_ACEOF
11803 #define BITSIZEOF_${GLTYPE} $result
11806 eval BITSIZEOF_
${GLTYPE}=\
$result
11812 for gltype
in sig_atomic_t wchar_t wint_t
; do
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11814 $as_echo_n "checking whether $gltype is signed... " >&6; }
11815 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
11816 $as_echo_n "(cached) " >&6
11818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11821 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11822 included before <wchar.h>. */
11823 #include <stddef.h>
11824 #include <signal.h>
11826 # include <stdio.h>
11828 # include <wchar.h>
11831 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11840 if ac_fn_c_try_compile
"$LINENO"; then :
11845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11846 eval gl_cv_type_
${gltype}_signed
=\
$result
11849 eval ac_res
=\
$gl_cv_type_${gltype}_signed
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11851 $as_echo "$ac_res" >&6; }
11852 eval result
=\
$gl_cv_type_${gltype}_signed
11853 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11854 if test "$result" = yes; then
11855 cat >>confdefs.h
<<_ACEOF
11856 #define HAVE_SIGNED_${GLTYPE} 1
11859 eval HAVE_SIGNED_
${GLTYPE}=1
11861 eval HAVE_SIGNED_
${GLTYPE}=0
11866 gl_cv_type_ptrdiff_t_signed
=yes
11867 gl_cv_type_size_t_signed
=no
11868 if test $APPLE_UNIVERSAL_BUILD = 0; then
11871 for gltype
in ptrdiff_t size_t
; do
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11873 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11874 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11875 $as_echo_n "(cached) " >&6
11877 eval gl_cv_type_
${gltype}_suffix
=no
11878 eval result
=\
$gl_cv_type_${gltype}_signed
11879 if test "$result" = yes; then
11884 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11886 '') gltype1
='int';;
11887 l
) gltype1
='long int';;
11888 ll
) gltype1
='long long int';;
11889 i64
) gltype1
='__int64';;
11890 u
) gltype1
='unsigned int';;
11891 ul
) gltype1
='unsigned long int';;
11892 ull
) gltype1
='unsigned long long int';;
11893 ui64
)gltype1
='unsigned __int64';;
11895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11898 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11899 included before <wchar.h>. */
11900 #include <stddef.h>
11901 #include <signal.h>
11903 # include <stdio.h>
11905 # include <wchar.h>
11908 extern $gltype foo;
11909 extern $gltype1 foo;
11918 if ac_fn_c_try_compile
"$LINENO"; then :
11919 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11922 eval result
=\
$gl_cv_type_${gltype}_suffix
11923 test "$result" != no
&& break
11926 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11928 $as_echo "$ac_res" >&6; }
11929 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11930 eval result
=\
$gl_cv_type_${gltype}_suffix
11931 test "$result" = no
&& result
=
11932 eval ${GLTYPE}_SUFFIX
=\
$result
11933 cat >>confdefs.h
<<_ACEOF
11934 #define ${GLTYPE}_SUFFIX $result
11943 for gltype
in sig_atomic_t wchar_t wint_t
; do
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11945 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11946 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11947 $as_echo_n "(cached) " >&6
11949 eval gl_cv_type_
${gltype}_suffix
=no
11950 eval result
=\
$gl_cv_type_${gltype}_signed
11951 if test "$result" = yes; then
11956 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11958 '') gltype1
='int';;
11959 l
) gltype1
='long int';;
11960 ll
) gltype1
='long long int';;
11961 i64
) gltype1
='__int64';;
11962 u
) gltype1
='unsigned int';;
11963 ul
) gltype1
='unsigned long int';;
11964 ull
) gltype1
='unsigned long long int';;
11965 ui64
)gltype1
='unsigned __int64';;
11967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11970 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11971 included before <wchar.h>. */
11972 #include <stddef.h>
11973 #include <signal.h>
11975 # include <stdio.h>
11977 # include <wchar.h>
11980 extern $gltype foo;
11981 extern $gltype1 foo;
11990 if ac_fn_c_try_compile
"$LINENO"; then :
11991 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11994 eval result
=\
$gl_cv_type_${gltype}_suffix
11995 test "$result" != no
&& break
11998 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12000 $as_echo "$ac_res" >&6; }
12001 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12002 eval result
=\
$gl_cv_type_${gltype}_suffix
12003 test "$result" = no
&& result
=
12004 eval ${GLTYPE}_SUFFIX
=\
$result
12005 cat >>confdefs.h
<<_ACEOF
12006 #define ${GLTYPE}_SUFFIX $result
12013 if test $GNULIB_OVERRIDES_WINT_T = 1; then
12014 BITSIZEOF_WINT_T
=32
12022 LIMITS_H
='limits.h'
12023 if test -n "$LIMITS_H"; then
12024 GL_GENERATE_LIMITS_H_TRUE
=
12025 GL_GENERATE_LIMITS_H_FALSE
='#'
12027 GL_GENERATE_LIMITS_H_TRUE
='#'
12028 GL_GENERATE_LIMITS_H_FALSE
=
12037 if test -n "$STDINT_H"; then
12038 GL_GENERATE_STDINT_H_TRUE
=
12039 GL_GENERATE_STDINT_H_FALSE
='#'
12041 GL_GENERATE_STDINT_H_TRUE
='#'
12042 GL_GENERATE_STDINT_H_FALSE
=
12051 GNULIB_STRTOIMAX
=0;
12052 GNULIB_STRTOUMAX
=0;
12053 HAVE_DECL_IMAXABS
=1;
12054 HAVE_DECL_IMAXDIV
=1;
12055 HAVE_DECL_STRTOIMAX
=1;
12056 HAVE_DECL_STRTOUMAX
=1;
12058 REPLACE_STRTOIMAX
=0;
12059 REPLACE_STRTOUMAX
=0;
12060 INT32_MAX_LT_INTMAX_MAX
=1;
12061 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
12062 PRI_MACROS_BROKEN
=0;
12063 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
12064 UINT32_MAX_LT_UINTMAX_MAX
=1;
12065 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
12081 if test $gl_cv_have_include_next = yes; then
12082 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
12085 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
12086 if ${gl_cv_next_inttypes_h+:} false
; then :
12087 $as_echo_n "(cached) " >&6
12090 if test $ac_cv_header_inttypes_h = yes; then
12095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h. */
12097 #include <inttypes.h>
12100 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
12101 *) gl_absname_cpp
="$ac_cpp" ;;
12106 gl_dirsep_regex
='[/\\]'
12109 gl_dirsep_regex
='\/'
12112 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
12113 gl_header_literal_regex
=`echo 'inttypes.h' \
12114 | sed -e "$gl_make_literal_regex_sed"`
12115 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12116 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12122 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12123 sed -n "$gl_absolute_header_sed"`
12125 gl_header
=$gl_cv_absolute_inttypes_h
12126 gl_cv_next_inttypes_h
='"'$gl_header'"'
12128 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
12134 $as_echo "$gl_cv_next_inttypes_h" >&6; }
12136 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
12138 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
12139 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12140 gl_next_as_first_directive
='<'inttypes.h
'>'
12142 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12143 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
12145 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
12158 for ac_header
in inttypes.h
12160 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12161 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
12162 cat >>confdefs.h
<<_ACEOF
12163 #define HAVE_INTTYPES_H 1
12170 if test $ac_cv_header_inttypes_h = yes; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12172 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12173 if ${gt_cv_inttypes_pri_broken+:} false
; then :
12174 $as_echo_n "(cached) " >&6
12177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12180 #include <inttypes.h>
12193 if ac_fn_c_try_compile
"$LINENO"; then :
12194 gt_cv_inttypes_pri_broken
=no
12196 gt_cv_inttypes_pri_broken
=yes
12198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12202 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12204 if test "$gt_cv_inttypes_pri_broken" = yes; then
12206 cat >>confdefs.h
<<_ACEOF
12207 #define PRI_MACROS_BROKEN 1
12210 PRI_MACROS_BROKEN
=1
12212 PRI_MACROS_BROKEN
=0
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
12218 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
12219 if ${gl_cv_cc_double_expbit0+:} false
; then :
12220 $as_echo_n "(cached) " >&6
12223 if test "$cross_compiling" = yes; then :
12225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12228 #if defined arm || defined __arm || defined __arm__
12233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12234 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
12235 gl_cv_cc_double_expbit0
="unknown"
12239 if ${ac_cv_c_bigendian+:} false
; then :
12240 $as_echo_n "(cached) " >&6
12242 ac_cv_c_bigendian
=unknown
12243 # See if we're dealing with a universal compiler.
12244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 #ifndef __APPLE_CC__
12247 not a universal capable compiler
12252 if ac_fn_c_try_compile
"$LINENO"; then :
12254 # Check for potential -arch flags. It is not universal unless
12255 # there are at least two -arch flags with different values.
12258 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12259 if test -n "$ac_prev"; then
12261 i?
86 | x86_64 | ppc | ppc64
)
12262 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12265 ac_cv_c_bigendian
=universal
12271 elif test "x$ac_word" = "x-arch"; then
12276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12277 if test $ac_cv_c_bigendian = unknown
; then
12278 # See if sys/param.h defines the BYTE_ORDER macro.
12279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281 #include <sys/types.h>
12282 #include <sys/param.h>
12287 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12288 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12290 bogus endian macros
12297 if ac_fn_c_try_compile
"$LINENO"; then :
12298 # It does; now see whether it defined to BIG_ENDIAN or not.
12299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301 #include <sys/types.h>
12302 #include <sys/param.h>
12307 #if BYTE_ORDER != BIG_ENDIAN
12315 if ac_fn_c_try_compile
"$LINENO"; then :
12316 ac_cv_c_bigendian
=yes
12318 ac_cv_c_bigendian
=no
12320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12324 if test $ac_cv_c_bigendian = unknown
; then
12325 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12328 #include <limits.h>
12333 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12334 bogus endian macros
12341 if ac_fn_c_try_compile
"$LINENO"; then :
12342 # It does; now see whether it defined to _BIG_ENDIAN or not.
12343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12345 #include <limits.h>
12350 #ifndef _BIG_ENDIAN
12358 if ac_fn_c_try_compile
"$LINENO"; then :
12359 ac_cv_c_bigendian
=yes
12361 ac_cv_c_bigendian
=no
12363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12367 if test $ac_cv_c_bigendian = unknown
; then
12368 # Compile a test program.
12369 if test "$cross_compiling" = yes; then :
12370 # Try to guess by grepping values from an object file.
12371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373 short int ascii_mm[] =
12374 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12375 short int ascii_ii[] =
12376 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12377 int use_ascii (int i) {
12378 return ascii_mm[i] + ascii_ii[i];
12380 short int ebcdic_ii[] =
12381 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12382 short int ebcdic_mm[] =
12383 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12384 int use_ebcdic (int i) {
12385 return ebcdic_mm[i] + ebcdic_ii[i];
12392 return use_ascii (foo) == use_ebcdic (foo);
12397 if ac_fn_c_try_compile
"$LINENO"; then :
12398 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12399 ac_cv_c_bigendian
=yes
12401 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12402 if test "$ac_cv_c_bigendian" = unknown
; then
12403 ac_cv_c_bigendian
=no
12405 # finding both strings is unlikely to happen, but who knows?
12406 ac_cv_c_bigendian
=unknown
12410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12414 $ac_includes_default
12419 /* Are we little or big endian? From Harbison&Steele. */
12423 char c[sizeof (long int)];
12426 return u.c[sizeof (long int) - 1] == 1;
12432 if ac_fn_c_try_run
"$LINENO"; then :
12433 ac_cv_c_bigendian
=no
12435 ac_cv_c_bigendian
=yes
12437 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12438 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12444 case $ac_cv_c_bigendian in #(
12446 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
12448 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
12451 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12455 gl_cv_cc_double_expbit0
="unknown" ;;
12464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12468 #include <stddef.h>
12470 #include <string.h>
12472 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12473 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
12474 static unsigned int ored_words[NWORDS];
12475 static unsigned int anded_words[NWORDS];
12476 static void add_to_ored_words (double x)
12480 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
12481 memset (&m, 0, sizeof (memory_double));
12483 for (i = 0; i < NWORDS; i++)
12485 ored_words[i] |= m.word[i];
12486 anded_words[i] &= m.word[i];
12492 FILE *fp = fopen ("conftest.out", "w");
12495 for (j = 0; j < NWORDS; j++)
12496 anded_words[j] = ~ (unsigned int) 0;
12497 add_to_ored_words (0.25);
12498 add_to_ored_words (0.5);
12499 add_to_ored_words (1.0);
12500 add_to_ored_words (2.0);
12501 add_to_ored_words (4.0);
12502 /* Remove bits that are common (e.g. if representation of the first mantissa
12503 bit is explicit). */
12504 for (j = 0; j < NWORDS; j++)
12505 ored_words[j] &= ~anded_words[j];
12506 /* Now find the nonzero word. */
12507 for (j = 0; j < NWORDS; j++)
12508 if (ored_words[j] != 0)
12513 for (i = j + 1; i < NWORDS; i++)
12514 if (ored_words[i] != 0)
12516 fprintf (fp, "unknown");
12517 return (fclose (fp) != 0);
12520 if ((ored_words[j] >> i) & 1)
12522 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12523 return (fclose (fp) != 0);
12526 fprintf (fp, "unknown");
12527 return (fclose (fp) != 0);
12531 if ac_fn_c_try_run
"$LINENO"; then :
12532 gl_cv_cc_double_expbit0
=`cat conftest.out`
12534 gl_cv_cc_double_expbit0
="unknown"
12536 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12537 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
12544 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
12545 case "$gl_cv_cc_double_expbit0" in
12547 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12548 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
12550 cat >>confdefs.h
<<_ACEOF
12551 #define DBL_EXPBIT0_WORD $word
12555 cat >>confdefs.h
<<_ACEOF
12556 #define DBL_EXPBIT0_BIT $bit
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12564 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12565 if ${ac_cv_c_bigendian+:} false
; then :
12566 $as_echo_n "(cached) " >&6
12568 ac_cv_c_bigendian
=unknown
12569 # See if we're dealing with a universal compiler.
12570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12572 #ifndef __APPLE_CC__
12573 not a universal capable compiler
12578 if ac_fn_c_try_compile
"$LINENO"; then :
12580 # Check for potential -arch flags. It is not universal unless
12581 # there are at least two -arch flags with different values.
12584 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12585 if test -n "$ac_prev"; then
12587 i?
86 | x86_64 | ppc | ppc64
)
12588 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12591 ac_cv_c_bigendian
=universal
12597 elif test "x$ac_word" = "x-arch"; then
12602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12603 if test $ac_cv_c_bigendian = unknown
; then
12604 # See if sys/param.h defines the BYTE_ORDER macro.
12605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607 #include <sys/types.h>
12608 #include <sys/param.h>
12613 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12614 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12616 bogus endian macros
12623 if ac_fn_c_try_compile
"$LINENO"; then :
12624 # It does; now see whether it defined to BIG_ENDIAN or not.
12625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12627 #include <sys/types.h>
12628 #include <sys/param.h>
12633 #if BYTE_ORDER != BIG_ENDIAN
12641 if ac_fn_c_try_compile
"$LINENO"; then :
12642 ac_cv_c_bigendian
=yes
12644 ac_cv_c_bigendian
=no
12646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12650 if test $ac_cv_c_bigendian = unknown
; then
12651 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12653 /* end confdefs.h. */
12654 #include <limits.h>
12659 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12660 bogus endian macros
12667 if ac_fn_c_try_compile
"$LINENO"; then :
12668 # It does; now see whether it defined to _BIG_ENDIAN or not.
12669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h. */
12671 #include <limits.h>
12676 #ifndef _BIG_ENDIAN
12684 if ac_fn_c_try_compile
"$LINENO"; then :
12685 ac_cv_c_bigendian
=yes
12687 ac_cv_c_bigendian
=no
12689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12693 if test $ac_cv_c_bigendian = unknown
; then
12694 # Compile a test program.
12695 if test "$cross_compiling" = yes; then :
12696 # Try to guess by grepping values from an object file.
12697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12699 short int ascii_mm[] =
12700 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12701 short int ascii_ii[] =
12702 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12703 int use_ascii (int i) {
12704 return ascii_mm[i] + ascii_ii[i];
12706 short int ebcdic_ii[] =
12707 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12708 short int ebcdic_mm[] =
12709 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12710 int use_ebcdic (int i) {
12711 return ebcdic_mm[i] + ebcdic_ii[i];
12718 return use_ascii (foo) == use_ebcdic (foo);
12723 if ac_fn_c_try_compile
"$LINENO"; then :
12724 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12725 ac_cv_c_bigendian
=yes
12727 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12728 if test "$ac_cv_c_bigendian" = unknown
; then
12729 ac_cv_c_bigendian
=no
12731 # finding both strings is unlikely to happen, but who knows?
12732 ac_cv_c_bigendian
=unknown
12736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12740 $ac_includes_default
12745 /* Are we little or big endian? From Harbison&Steele. */
12749 char c[sizeof (long int)];
12752 return u.c[sizeof (long int) - 1] == 1;
12758 if ac_fn_c_try_run
"$LINENO"; then :
12759 ac_cv_c_bigendian
=no
12761 ac_cv_c_bigendian
=yes
12763 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12764 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12770 $as_echo "$ac_cv_c_bigendian" >&6; }
12771 case $ac_cv_c_bigendian in #(
12773 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12779 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12783 as_fn_error $?
"unknown endianness
12784 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12790 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12791 if ${am_cv_langinfo_codeset+:} false
; then :
12792 $as_echo_n "(cached) " >&6
12794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 #include <langinfo.h>
12800 char* cs = nl_langinfo(CODESET); return !cs;
12805 if ac_fn_c_try_link
"$LINENO"; then :
12806 am_cv_langinfo_codeset
=yes
12808 am_cv_langinfo_codeset
=no
12810 rm -f core conftest.err conftest.
$ac_objext \
12811 conftest
$ac_exeext conftest.
$ac_ext
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12815 $as_echo "$am_cv_langinfo_codeset" >&6; }
12816 if test $am_cv_langinfo_codeset = yes; then
12818 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12826 gl_threads_api
=none
12831 if test "$gl_use_threads" != no
; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
12834 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
12835 if ${gl_cv_have_weak+:} false
; then :
12836 $as_echo_n "(cached) " >&6
12839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12841 extern void xyzzy ();
12851 if ac_fn_c_try_link
"$LINENO"; then :
12852 gl_cv_have_weak
=maybe
12854 rm -f core conftest.err conftest.
$ac_objext \
12855 conftest
$ac_exeext conftest.
$ac_ext
12856 if test $gl_cv_have_weak = maybe
; then
12857 if test "$cross_compiling" = yes; then :
12858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12861 Extensible Linking Format
12865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12866 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
12867 gl_cv_have_weak
="guessing yes"
12869 gl_cv_have_weak
="guessing no"
12875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12882 return (fputs == NULL);
12885 if ac_fn_c_try_run
"$LINENO"; then :
12886 gl_cv_have_weak
=yes
12890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12891 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12895 case " $LDFLAGS " in
12896 *" -static "*) gl_cv_have_weak
=no
;;
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
12901 $as_echo "$gl_cv_have_weak" >&6; }
12902 case "$gl_cv_have_weak" in
12905 $as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h
12910 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
12914 if test "$gl_use_threads" = isoc ||
test "$gl_use_threads" = isoc
+posix
; then
12916 if test $ac_cv_header_threads_h = yes; then
12917 gl_have_isoc_threads
=
12918 # Test whether both mtx_lock and cnd_timedwait exist in libc.
12919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 #include <threads.h>
12922 #include <stddef.h>
12930 cnd_timedwait (&c, &m, NULL);
12935 if ac_fn_c_try_link
"$LINENO"; then :
12936 gl_have_isoc_threads
=yes
12938 rm -f core conftest.err conftest.
$ac_objext \
12939 conftest
$ac_exeext conftest.
$ac_ext
12942 if test "$gl_use_threads" = yes \
12943 ||
test "$gl_use_threads" = posix \
12944 ||
test "$gl_use_threads" = isoc
+posix
; then
12947 if test -z "$gl_threadlib_body_done"; then
12951 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
12952 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY.
12953 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12954 if test "x$ac_cv_header_pthread_h" = xyes
; then :
12955 gl_have_pthread_h
=yes
12957 gl_have_pthread_h
=no
12961 if test "$gl_have_pthread_h" = yes; then
12962 # Other possible tests:
12963 # -lpthreads (FSU threads, PCthreads)
12965 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
12966 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
12967 # the second one only in libpthread, and lock.c needs it.
12969 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
12970 # needs -pthread for some reason. See:
12971 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
12973 for gl_pthread
in '' '-pthread'; do
12974 LIBS
="$LIBS $gl_pthread"
12975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12977 #include <pthread.h>
12979 pthread_mutexattr_t ma;
12984 pthread_mutex_lock (&m);
12985 pthread_mutexattr_init (&ma);
12990 if ac_fn_c_try_link
"$LINENO"; then :
12992 LIBPTHREAD
=$gl_pthread
12993 LIBPMULTITHREAD
=$gl_pthread
12995 rm -f core conftest.err conftest.
$ac_objext \
12996 conftest
$ac_exeext conftest.
$ac_ext
12998 test $gl_pthread_api = yes && break
13001 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
13002 # since it is defined as a macro on OSF/1.)
13003 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then
13004 # The program links fine without libpthread. But it may actually
13005 # need to link with libpthread in order to create multiple threads.
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
13007 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13008 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
13009 $as_echo_n "(cached) " >&6
13011 ac_check_lib_save_LIBS
=$LIBS
13012 LIBS
="-lpthread $LIBS"
13013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13016 /* Override any GCC internal prototype to avoid an error.
13017 Use char because int might match the return type of a GCC
13018 builtin and then its argument prototype would still apply. */
13022 char pthread_kill ();
13026 return pthread_kill ();
13031 if ac_fn_c_try_link
"$LINENO"; then :
13032 ac_cv_lib_pthread_pthread_kill
=yes
13034 ac_cv_lib_pthread_pthread_kill
=no
13036 rm -f core conftest.err conftest.
$ac_objext \
13037 conftest
$ac_exeext conftest.
$ac_ext
13038 LIBS
=$ac_check_lib_save_LIBS
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
13041 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13042 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
13043 LIBPMULTITHREAD
=-lpthread
13044 # On Solaris and HP-UX, most pthread functions exist also in libc.
13045 # Therefore pthread_in_use() needs to actually try to create a
13046 # thread: pthread_create from libc will fail, whereas
13047 # pthread_create will actually create a thread.
13048 # On Solaris 10 or newer, this test is no longer needed, because
13049 # libc contains the fully functional pthread functions.
13051 solaris | solaris2.1
-9 | solaris2.1
-9.
* | hpux
*)
13053 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
13059 elif test $gl_pthread_api != yes; then
13060 # Some library is needed. Try libpthread and libc_r.
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
13062 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13063 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
13064 $as_echo_n "(cached) " >&6
13066 ac_check_lib_save_LIBS
=$LIBS
13067 LIBS
="-lpthread $LIBS"
13068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13071 /* Override any GCC internal prototype to avoid an error.
13072 Use char because int might match the return type of a GCC
13073 builtin and then its argument prototype would still apply. */
13077 char pthread_kill ();
13081 return pthread_kill ();
13086 if ac_fn_c_try_link
"$LINENO"; then :
13087 ac_cv_lib_pthread_pthread_kill
=yes
13089 ac_cv_lib_pthread_pthread_kill
=no
13091 rm -f core conftest.err conftest.
$ac_objext \
13092 conftest
$ac_exeext conftest.
$ac_ext
13093 LIBS
=$ac_check_lib_save_LIBS
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
13096 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13097 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
13099 LIBPTHREAD
=-lpthread
13100 LIBPMULTITHREAD
=-lpthread
13103 if test $gl_pthread_api != yes; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
13106 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
13107 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
13108 $as_echo_n "(cached) " >&6
13110 ac_check_lib_save_LIBS
=$LIBS
13112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13115 /* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13121 char pthread_kill ();
13125 return pthread_kill ();
13130 if ac_fn_c_try_link
"$LINENO"; then :
13131 ac_cv_lib_c_r_pthread_kill
=yes
13133 ac_cv_lib_c_r_pthread_kill
=no
13135 rm -f core conftest.err conftest.
$ac_objext \
13136 conftest
$ac_exeext conftest.
$ac_ext
13137 LIBS
=$ac_check_lib_save_LIBS
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
13140 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
13141 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
13144 LIBPMULTITHREAD
=-lc_r
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5
13151 $as_echo_n "checking whether POSIX threads API is available... " >&6; }
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5
13153 $as_echo "$gl_pthread_api" >&6; }
13156 if test $gl_pthread_api = yes; then
13158 $as_echo "#define HAVE_PTHREAD_API 1" >>confdefs.h
13161 gl_threadlib_body_done
=done
13164 LIBTHREAD
=$LIBPTHREAD LTLIBTHREAD
=$LIBPTHREAD
13165 LIBMULTITHREAD
=$LIBPMULTITHREAD LTLIBMULTITHREAD
=$LIBPMULTITHREAD
13166 if test $gl_pthread_api = yes; then
13167 if test "$gl_use_threads" = isoc
+posix
&& test "$gl_have_isoc_threads" = yes; then
13168 gl_threads_api
='isoc+posix'
13170 $as_echo "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h
13172 LIBTHREAD
= LTLIBTHREAD
=
13174 gl_threads_api
=posix
13176 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
13178 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
13179 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13181 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
13183 LIBTHREAD
= LTLIBTHREAD
=
13189 if test $gl_threads_api = none
; then
13190 if test "$gl_use_threads" = isoc
&& test "$gl_have_isoc_threads" = yes; then
13191 gl_threads_api
=isoc
13193 $as_echo "#define USE_ISOC_THREADS 1" >>confdefs.h
13197 if test $gl_threads_api = none
; then
13198 case "$gl_use_threads" in
13199 yes | windows | win32
) # The 'win32' is for backward compatibility.
13200 if { case "$host_os" in
13205 gl_threads_api
=windows
13207 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
13215 $as_echo_n "checking for multithread API to use... " >&6; }
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
13217 $as_echo "$gl_threads_api" >&6; }
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13231 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
13232 if ${gl_cv_func_malloc_posix+:} false
; then :
13233 $as_echo_n "(cached) " >&6
13236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13242 #if defined _WIN32 && ! defined __CYGWIN__
13250 if ac_fn_c_try_compile
"$LINENO"; then :
13251 gl_cv_func_malloc_posix
=yes
13253 gl_cv_func_malloc_posix
=no
13255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
13259 $as_echo "$gl_cv_func_malloc_posix" >&6; }
13263 for ac_header
in stdlib.h
13265 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13266 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
13267 cat >>confdefs.h
<<_ACEOF
13268 #define HAVE_STDLIB_H 1
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13276 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13277 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
13278 $as_echo_n "(cached) " >&6
13280 if test "$cross_compiling" = yes; then :
13282 # Guess yes on platforms where we know the result.
13283 *-gnu* | gnu
* |
*-musl* | freebsd
* | netbsd
* | openbsd
* \
13284 | hpux
* | solaris
* | cygwin
* | mingw
*)
13285 ac_cv_func_malloc_0_nonnull
="guessing yes" ;;
13286 # If we don't know, obey --enable-cross-guesses.
13287 *) ac_cv_func_malloc_0_nonnull
="$gl_cross_guess_normal" ;;
13291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13293 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13294 # include <stdlib.h>
13302 char *p = malloc (0);
13311 if ac_fn_c_try_run
"$LINENO"; then :
13312 ac_cv_func_malloc_0_nonnull
=yes
13314 ac_cv_func_malloc_0_nonnull
=no
13316 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13317 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13323 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13324 case "$ac_cv_func_malloc_0_nonnull" in
13326 gl_cv_func_malloc_0_nonnull
=1
13329 gl_cv_func_malloc_0_nonnull
=0
13334 cat >>confdefs.h
<<_ACEOF
13335 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
13347 GNULIB_MBSRTOWCS
=0;
13348 GNULIB_MBSNRTOWCS
=0;
13350 GNULIB_WCSRTOMBS
=0;
13351 GNULIB_WCSNRTOMBS
=0;
13368 GNULIB_WCSCASECMP
=0;
13369 GNULIB_WCSNCASECMP
=0;
13407 HAVE_WCSNCASECMP
=1;
13421 HAVE_DECL_WCWIDTH
=1;
13422 REPLACE_MBSTATE_T
=0;
13428 REPLACE_MBSRTOWCS
=0;
13429 REPLACE_MBSNRTOWCS
=0;
13431 REPLACE_WCSRTOMBS
=0;
13432 REPLACE_WCSNRTOMBS
=0;
13434 REPLACE_WCSWIDTH
=0;
13435 REPLACE_WCSFTIME
=0;
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
13446 $as_echo_n "checking for a traditional japanese locale... " >&6; }
13447 if ${gt_cv_locale_ja+:} false
; then :
13448 $as_echo_n "(cached) " >&6
13451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13454 #include <locale.h>
13456 #if HAVE_LANGINFO_CODESET
13457 # include <langinfo.h>
13459 #include <stdlib.h>
13460 #include <string.h>
13465 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
13466 imitates locale dependent behaviour by looking at the environment
13467 variables, and all locales use the UTF-8 encoding. */
13468 #if defined __BEOS__ || defined __HAIKU__
13471 /* Check whether the given locale name is recognized by the system. */
13472 # if defined _WIN32 && !defined __CYGWIN__
13473 /* On native Windows, setlocale(category, "") looks at the system settings,
13474 not at the environment variables. Also, when an encoding suffix such
13475 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13476 category of the locale to "C". */
13477 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13478 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13481 if (setlocale (LC_ALL, "") == NULL) return 1;
13483 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13484 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13485 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13486 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13487 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13488 some unit tests fail.
13489 On MirBSD 10, when an unsupported locale is specified, setlocale()
13490 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
13491 # if HAVE_LANGINFO_CODESET
13493 const char *cs = nl_langinfo (CODESET);
13494 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
13495 || strcmp (cs, "UTF-8") == 0)
13500 /* On Cygwin, avoid locale names without encoding suffix, because the
13501 locale_charset() function relies on the encoding suffix. Note that
13502 LC_ALL is set on the command line. */
13503 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13505 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
13506 on Cygwin 1.5.x. */
13507 if (MB_CUR_MAX == 1)
13509 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
13510 This excludes the UTF-8 encoding (except on MirBSD). */
13513 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13514 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
13515 for (p = buf; *p != '\0'; p++)
13516 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
13524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13525 (eval $ac_link) 2>&5
13527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13528 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
13530 # Handle native Windows specially, because there setlocale() interprets
13531 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13532 # "fr" or "fra" as "French" or "French_France.1252",
13533 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13534 # "ja" as "Japanese" or "Japanese_Japan.932",
13537 # Note that on native Windows, the Japanese locale is
13538 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
13539 # cannot use it here.
13540 gt_cv_locale_ja
=none
13543 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13544 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13545 # configure script would override the LC_ALL setting. Likewise for
13546 # LC_CTYPE, which is also set at the beginning of the configure script.
13547 # Test for the AIX locale name.
13548 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13549 gt_cv_locale_ja
=ja_JP
13551 # Test for the locale name with explicit encoding suffix.
13552 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13553 gt_cv_locale_ja
=ja_JP.EUC-JP
13555 # Test for the HP-UX, OSF/1, NetBSD locale name.
13556 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13557 gt_cv_locale_ja
=ja_JP.eucJP
13559 # Test for the IRIX, FreeBSD locale name.
13560 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13561 gt_cv_locale_ja
=ja_JP.EUC
13563 # Test for the Solaris 7 locale name.
13564 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13567 # Special test for NetBSD 1.6.
13568 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
13569 gt_cv_locale_ja
=ja_JP.eucJP
13572 gt_cv_locale_ja
=none
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
13586 $as_echo "$gt_cv_locale_ja" >&6; }
13587 LOCALE_JA
=$gt_cv_locale_ja
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
13593 $as_echo_n "checking for a french Unicode locale... " >&6; }
13594 if ${gt_cv_locale_fr_utf8+:} false
; then :
13595 $as_echo_n "(cached) " >&6
13598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13601 #include <locale.h>
13603 #if HAVE_LANGINFO_CODESET
13604 # include <langinfo.h>
13606 #include <stdlib.h>
13607 #include <string.h>
13611 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
13612 imitates locale dependent behaviour by looking at the environment
13613 variables, and all locales use the UTF-8 encoding. */
13614 #if !(defined __BEOS__ || defined __HAIKU__)
13615 /* Check whether the given locale name is recognized by the system. */
13616 # if defined _WIN32 && !defined __CYGWIN__
13617 /* On native Windows, setlocale(category, "") looks at the system settings,
13618 not at the environment variables. Also, when an encoding suffix such
13619 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13620 category of the locale to "C". */
13621 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13622 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13625 if (setlocale (LC_ALL, "") == NULL) return 1;
13627 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13628 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13629 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13630 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13631 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13632 some unit tests fail. */
13633 # if HAVE_LANGINFO_CODESET
13635 const char *cs = nl_langinfo (CODESET);
13636 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
13641 /* On Cygwin, avoid locale names without encoding suffix, because the
13642 locale_charset() function relies on the encoding suffix. Note that
13643 LC_ALL is set on the command line. */
13644 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13646 /* Check whether in the abbreviation of the second month, the second
13647 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
13648 two bytes long, with UTF-8 encoding. */
13649 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13650 if (strftime (buf, sizeof (buf), "%b", &t) < 4
13651 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
13654 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
13655 /* Check whether the decimal separator is a comma.
13656 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
13657 are nl_langinfo(RADIXCHAR) are both ".". */
13658 if (localeconv () ->decimal_point[0] != ',') return 1;
13664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13665 (eval $ac_link) 2>&5
13667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13668 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
13670 # Handle native Windows specially, because there setlocale() interprets
13671 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13672 # "fr" or "fra" as "French" or "French_France.1252",
13673 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13674 # "ja" as "Japanese" or "Japanese_Japan.932",
13677 # Test for the hypothetical native Windows locale name.
13678 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13679 gt_cv_locale_fr_utf8
=French_France
.65001
13682 gt_cv_locale_fr_utf8
=none
13686 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13687 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13688 # configure script would override the LC_ALL setting. Likewise for
13689 # LC_CTYPE, which is also set at the beginning of the configure script.
13690 # Test for the usual locale name.
13691 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13692 gt_cv_locale_fr_utf8
=fr_FR
13694 # Test for the locale name with explicit encoding suffix.
13695 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13696 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
13698 # Test for the Solaris 7 locale name.
13699 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13700 gt_cv_locale_fr_utf8
=fr.UTF-8
13703 gt_cv_locale_fr_utf8
=none
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
13714 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
13715 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
13722 $as_echo_n "checking for a transitional chinese locale... " >&6; }
13723 if ${gt_cv_locale_zh_CN+:} false
; then :
13724 $as_echo_n "(cached) " >&6
13727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h. */
13730 #include <locale.h>
13731 #include <stdlib.h>
13733 #if HAVE_LANGINFO_CODESET
13734 # include <langinfo.h>
13736 #include <stdlib.h>
13737 #include <string.h>
13742 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
13743 imitates locale dependent behaviour by looking at the environment
13744 variables, and all locales use the UTF-8 encoding. */
13745 #if defined __BEOS__ || defined __HAIKU__
13748 /* Check whether the given locale name is recognized by the system. */
13749 # if defined _WIN32 && !defined __CYGWIN__
13750 /* On native Windows, setlocale(category, "") looks at the system settings,
13751 not at the environment variables. Also, when an encoding suffix such
13752 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13753 category of the locale to "C". */
13754 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13755 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13758 if (setlocale (LC_ALL, "") == NULL) return 1;
13760 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13761 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13762 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13763 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13764 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13765 some unit tests fail.
13766 On MirBSD 10, when an unsupported locale is specified, setlocale()
13767 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
13768 # if HAVE_LANGINFO_CODESET
13770 const char *cs = nl_langinfo (CODESET);
13771 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
13772 || strcmp (cs, "UTF-8") == 0)
13777 /* On Cygwin, avoid locale names without encoding suffix, because the
13778 locale_charset() function relies on the encoding suffix. Note that
13779 LC_ALL is set on the command line. */
13780 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13782 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
13783 This excludes the UTF-8 encoding (except on MirBSD). */
13786 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13787 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
13788 for (p = buf; *p != '\0'; p++)
13789 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
13792 /* Check whether a typical GB18030 multibyte sequence is recognized as a
13793 single wide character. This excludes the GB2312 and GBK encodings. */
13794 if (mblen ("\203\062\332\066", 5) != 4)
13801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13802 (eval $ac_link) 2>&5
13804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13805 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
13807 # Handle native Windows specially, because there setlocale() interprets
13808 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13809 # "fr" or "fra" as "French" or "French_France.1252",
13810 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13811 # "ja" as "Japanese" or "Japanese_Japan.932",
13814 # Test for the hypothetical native Windows locale name.
13815 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13816 gt_cv_locale_zh_CN
=Chinese_China
.54936
13819 gt_cv_locale_zh_CN
=none
13823 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
13824 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
13825 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
13826 gt_cv_locale_zh_CN
=none
13829 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13830 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13831 # configure script would override the LC_ALL setting. Likewise for
13832 # LC_CTYPE, which is also set at the beginning of the configure script.
13833 # Test for the locale name without encoding suffix.
13834 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13835 gt_cv_locale_zh_CN
=zh_CN
13837 # Test for the locale name with explicit encoding suffix.
13838 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13839 gt_cv_locale_zh_CN
=zh_CN.GB18030
13842 gt_cv_locale_zh_CN
=none
13848 # If there was a link error, due to mblen(), the system is so old that
13849 # it certainly doesn't have a chinese locale.
13850 gt_cv_locale_zh_CN
=none
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
13856 $as_echo "$gt_cv_locale_zh_CN" >&6; }
13857 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13861 $as_echo_n "checking for inline... " >&6; }
13862 if ${ac_cv_c_inline+:} false
; then :
13863 $as_echo_n "(cached) " >&6
13866 for ac_kw
in inline __inline__ __inline
; do
13867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13869 #ifndef __cplusplus
13871 static $ac_kw foo_t static_foo () {return 0; }
13872 $ac_kw foo_t foo () {return 0; }
13876 if ac_fn_c_try_compile
"$LINENO"; then :
13877 ac_cv_c_inline
=$ac_kw
13879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13880 test "$ac_cv_c_inline" != no
&& break
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13885 $as_echo "$ac_cv_c_inline" >&6; }
13887 case $ac_cv_c_inline in
13890 case $ac_cv_c_inline in
13892 *) ac_val
=$ac_cv_c_inline;;
13894 cat >>confdefs.h
<<_ACEOF
13895 #ifndef __cplusplus
13896 #define inline $ac_val
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
13906 $as_echo_n "checking for a traditional french locale... " >&6; }
13907 if ${gt_cv_locale_fr+:} false
; then :
13908 $as_echo_n "(cached) " >&6
13911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13912 /* end confdefs.h. */
13914 #include <locale.h>
13916 #if HAVE_LANGINFO_CODESET
13917 # include <langinfo.h>
13919 #include <stdlib.h>
13920 #include <string.h>
13924 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
13925 imitates locale dependent behaviour by looking at the environment
13926 variables, and all locales use the UTF-8 encoding. */
13927 #if defined __BEOS__ || defined __HAIKU__
13930 /* Check whether the given locale name is recognized by the system. */
13931 # if defined _WIN32 && !defined __CYGWIN__
13932 /* On native Windows, setlocale(category, "") looks at the system settings,
13933 not at the environment variables. Also, when an encoding suffix such
13934 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13935 category of the locale to "C". */
13936 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13937 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13940 if (setlocale (LC_ALL, "") == NULL) return 1;
13942 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13943 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13944 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13945 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13946 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13947 some unit tests fail.
13948 On MirBSD 10, when an unsupported locale is specified, setlocale()
13949 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
13950 # if HAVE_LANGINFO_CODESET
13952 const char *cs = nl_langinfo (CODESET);
13953 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
13954 || strcmp (cs, "UTF-8") == 0)
13959 /* On Cygwin, avoid locale names without encoding suffix, because the
13960 locale_charset() function relies on the encoding suffix. Note that
13961 LC_ALL is set on the command line. */
13962 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13964 /* Check whether in the abbreviation of the second month, the second
13965 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
13966 one byte long. This excludes the UTF-8 encoding. */
13967 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13968 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
13969 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
13970 /* Check whether the decimal separator is a comma.
13971 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
13972 are nl_langinfo(RADIXCHAR) are both ".". */
13973 if (localeconv () ->decimal_point[0] != ',') return 1;
13980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13981 (eval $ac_link) 2>&5
13983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13984 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
13986 # Handle native Windows specially, because there setlocale() interprets
13987 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13988 # "fr" or "fra" as "French" or "French_France.1252",
13989 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13990 # "ja" as "Japanese" or "Japanese_Japan.932",
13993 # Test for the native Windows locale name.
13994 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13995 gt_cv_locale_fr
=French_France
.1252
13998 gt_cv_locale_fr
=none
14002 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14003 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14004 # configure script would override the LC_ALL setting. Likewise for
14005 # LC_CTYPE, which is also set at the beginning of the configure script.
14006 # Test for the usual locale name.
14007 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14008 gt_cv_locale_fr
=fr_FR
14010 # Test for the locale name with explicit encoding suffix.
14011 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14012 gt_cv_locale_fr
=fr_FR.ISO-8859-1
14014 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
14015 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14016 gt_cv_locale_fr
=fr_FR.ISO8859-1
14018 # Test for the HP-UX locale name.
14019 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14020 gt_cv_locale_fr
=fr_FR.iso88591
14022 # Test for the Solaris 7 locale name.
14023 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14027 gt_cv_locale_fr
=none
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
14040 $as_echo "$gt_cv_locale_fr" >&6; }
14041 LOCALE_FR
=$gt_cv_locale_fr
14049 GNULIB_EXPLICIT_BZERO
=0;
14056 GNULIB_RAWMEMCHR
=0;
14059 GNULIB_STRCHRNUL
=0;
14067 GNULIB_STRCASESTR
=0;
14074 GNULIB_MBSCASECMP
=0;
14075 GNULIB_MBSNCASECMP
=0;
14076 GNULIB_MBSPCASECMP
=0;
14077 GNULIB_MBSCASESTR
=0;
14084 GNULIB_STRERROR_R
=0;
14085 GNULIB_STRSIGNAL
=0;
14086 GNULIB_STRVERSCMP
=0;
14088 HAVE_EXPLICIT_BZERO
=1;
14092 HAVE_DECL_MEMMEM
=1;
14094 HAVE_DECL_MEMRCHR
=1;
14099 HAVE_DECL_STRDUP
=1;
14100 HAVE_DECL_STRNDUP
=1;
14101 HAVE_DECL_STRNLEN
=1;
14105 HAVE_DECL_STRTOK_R
=1;
14106 HAVE_DECL_STRERROR_R
=1;
14107 HAVE_DECL_STRSIGNAL
=1;
14112 REPLACE_STRCHRNUL
=0;
14118 REPLACE_STRCASESTR
=0;
14119 REPLACE_STRTOK_R
=0;
14120 REPLACE_STRERROR
=0;
14121 REPLACE_STRERROR_R
=0;
14122 REPLACE_STRSIGNAL
=0;
14123 UNDEFINE_STRTOK_R
=0;
14130 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
14131 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
14132 # irrelevant for anonymous mappings.
14133 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
14134 if test "x$ac_cv_func_mmap" = xyes
; then :
14141 # Try to allow MAP_ANONYMOUS.
14142 gl_have_mmap_anonymous
=no
14143 if test $gl_have_mmap = yes; then
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14145 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
14146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14149 #include <sys/mman.h>
14150 #ifdef MAP_ANONYMOUS
14151 I cannot identify this map
14155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14156 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14157 gl_have_mmap_anonymous
=yes
14161 if test $gl_have_mmap_anonymous != yes; then
14162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14165 #include <sys/mman.h>
14167 I cannot identify this map
14171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14172 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14174 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14176 gl_have_mmap_anonymous
=yes
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14182 $as_echo "$gl_have_mmap_anonymous" >&6; }
14183 if test $gl_have_mmap_anonymous = yes; then
14185 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14195 if test $HAVE_MEMCHR = 1; then
14196 # Detect platform-specific bugs in some versions of glibc:
14197 # memchr should not dereference anything with length 0
14198 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
14199 # memchr should not dereference overestimated length after a match
14200 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14201 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
14202 # memchr should cast the second argument to 'unsigned char'.
14203 # This bug exists in Android 4.3.
14204 # Assume that memchr works on platforms that lack mprotect.
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14206 $as_echo_n "checking whether memchr works... " >&6; }
14207 if ${gl_cv_func_memchr_works+:} false
; then :
14208 $as_echo_n "(cached) " >&6
14210 if test "$cross_compiling" = yes; then :
14212 # Guess no on Android.
14213 linux
*-android*) gl_cv_func_memchr_works
="guessing no" ;;
14214 # Guess yes on native Windows.
14215 mingw
*) gl_cv_func_memchr_works
="guessing yes" ;;
14216 # If we don't know, obey --enable-cross-guesses.
14217 *) gl_cv_func_memchr_works
="$gl_cross_guess_normal" ;;
14221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14224 #include <string.h>
14225 #if HAVE_SYS_MMAN_H
14226 # include <fcntl.h>
14227 # include <unistd.h>
14228 # include <sys/types.h>
14229 # include <sys/mman.h>
14231 # define MAP_FILE 0
14240 char *fence = NULL;
14241 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14242 # if HAVE_MAP_ANONYMOUS
14243 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14245 # else /* !HAVE_MAP_ANONYMOUS */
14246 const int flags = MAP_FILE | MAP_PRIVATE;
14247 int fd = open ("/dev/zero", O_RDONLY, 0666);
14251 int pagesize = getpagesize ();
14253 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14255 if (two_pages != (char *)(-1)
14256 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14257 fence = two_pages + pagesize;
14262 if (memchr (fence, 0, 0))
14264 strcpy (fence - 9, "12345678");
14265 if (memchr (fence - 9, 0, 79) != fence - 1)
14267 if (memchr (fence - 1, 0, 3) != fence - 1)
14270 /* Test against bug on Android 4.3. */
14276 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
14285 if ac_fn_c_try_run
"$LINENO"; then :
14286 gl_cv_func_memchr_works
=yes
14288 gl_cv_func_memchr_works
=no
14290 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14291 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14297 $as_echo "$gl_cv_func_memchr_works" >&6; }
14298 case "$gl_cv_func_memchr_works" in
14300 *) REPLACE_MEMCHR
=1 ;;
14304 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
14305 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
14311 cat >>confdefs.h
<<_ACEOF
14312 #define HAVE_DECL_MEMMEM $ac_have_decl
14319 for ac_func
in memmem
14321 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
14322 if test "x$ac_cv_func_memmem" = xyes
; then :
14323 cat >>confdefs.h
<<_ACEOF
14324 #define HAVE_MEMMEM 1
14330 if test $ac_cv_func_memmem = yes; then
14336 if test $ac_cv_have_decl_memmem = no
; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
14340 $as_echo_n "checking whether memmem works... " >&6; }
14341 if ${gl_cv_func_memmem_works_always+:} false
; then :
14342 $as_echo_n "(cached) " >&6
14344 if test "$cross_compiling" = yes; then :
14345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14348 #ifdef __GNU_LIBRARY__
14349 #include <features.h>
14350 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
14351 || __GLIBC_MINOR__ > 12)) \
14352 || (__GLIBC__ > 2)) \
14353 || defined __UCLIBC__
14356 #elif defined __CYGWIN__
14357 #include <cygwin/version.h>
14358 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14367 $EGREP "Lucky user" >/dev
/null
2>&1; then :
14368 gl_cv_func_memmem_works_always
="guessing yes"
14370 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
14376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14379 #include <string.h> /* for memmem */
14380 #define P "_EF_BF_BD"
14381 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14382 #define NEEDLE P P P P P
14389 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
14391 /* Check for empty needle behavior. */
14393 const char *haystack = "AAA";
14394 if (memmem (haystack, 3, NULL, 0) != haystack)
14403 if ac_fn_c_try_run
"$LINENO"; then :
14404 gl_cv_func_memmem_works_always
=yes
14406 gl_cv_func_memmem_works_always
=no
14408 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14409 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
14415 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
14416 case "$gl_cv_func_memmem_works_always" in
14425 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
14426 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
14432 cat >>confdefs.h
<<_ACEOF
14433 #define HAVE_DECL_MEMRCHR $ac_have_decl
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
14443 $as_echo_n "checking for O_CLOEXEC... " >&6; }
14444 if ${gl_cv_macro_O_CLOEXEC+:} false
; then :
14445 $as_echo_n "(cached) " >&6
14447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14462 if ac_fn_c_try_compile
"$LINENO"; then :
14463 gl_cv_macro_O_CLOEXEC
=yes
14465 gl_cv_macro_O_CLOEXEC
=no
14467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
14470 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
14475 $as_echo_n "checking for promoted mode_t type... " >&6; }
14476 if ${gl_cv_promoted_mode_t+:} false
; then :
14477 $as_echo_n "(cached) " >&6
14480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14482 #include <sys/types.h>
14486 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
14491 if ac_fn_c_try_compile
"$LINENO"; then :
14492 gl_cv_promoted_mode_t
='int'
14494 gl_cv_promoted_mode_t
='mode_t'
14496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
14500 $as_echo "$gl_cv_promoted_mode_t" >&6; }
14502 cat >>confdefs.h
<<_ACEOF
14503 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
14518 GNULIB_FPRINTF_POSIX
=0;
14534 GNULIB_OBSTACK_PRINTF
=0;
14535 GNULIB_OBSTACK_PRINTF_POSIX
=0;
14540 GNULIB_PRINTF_POSIX
=0;
14549 GNULIB_SPRINTF_POSIX
=0;
14550 GNULIB_STDIO_H_NONBLOCKING
=0;
14551 GNULIB_STDIO_H_SIGPIPE
=0;
14553 GNULIB_VASPRINTF
=0;
14558 GNULIB_VFPRINTF_POSIX
=0;
14560 GNULIB_VPRINTF_POSIX
=0;
14561 GNULIB_VSNPRINTF
=0;
14562 GNULIB_VSPRINTF_POSIX
=0;
14563 HAVE_DECL_FPURGE
=1;
14564 HAVE_DECL_FSEEKO
=1;
14565 HAVE_DECL_FTELLO
=1;
14566 HAVE_DECL_GETDELIM
=1;
14567 HAVE_DECL_GETLINE
=1;
14568 HAVE_DECL_OBSTACK_PRINTF
=1;
14569 HAVE_DECL_SNPRINTF
=1;
14570 HAVE_DECL_VSNPRINTF
=1;
14591 REPLACE_GETDELIM
=0;
14593 REPLACE_OBSTACK_PRINTF
=0;
14599 REPLACE_RENAMEAT
=0;
14600 REPLACE_SNPRINTF
=0;
14602 REPLACE_STDIO_READ_FUNCS
=0;
14603 REPLACE_STDIO_WRITE_FUNCS
=0;
14605 REPLACE_VASPRINTF
=0;
14606 REPLACE_VDPRINTF
=0;
14607 REPLACE_VFPRINTF
=0;
14609 REPLACE_VSNPRINTF
=0;
14610 REPLACE_VSPRINTF
=0;
14614 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
14615 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
14621 cat >>confdefs.h
<<_ACEOF
14622 #define HAVE_DECL_SETENV $ac_have_decl
14630 if test $ac_cv_have_decl_setenv = no
; then
14638 for ac_header
in search.h
14640 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
14641 if test "x$ac_cv_header_search_h" = xyes
; then :
14642 cat >>confdefs.h
<<_ACEOF
14643 #define HAVE_SEARCH_H 1
14650 for ac_func
in tsearch
14652 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
14653 if test "x$ac_cv_func_tsearch" = xyes
; then :
14654 cat >>confdefs.h
<<_ACEOF
14655 #define HAVE_TSEARCH 1
14664 GNULIB_PTHREAD_SIGMASK
=0;
14666 GNULIB_SIGNAL_H_SIGPIPE
=0;
14667 GNULIB_SIGPROCMASK
=0;
14668 GNULIB_SIGACTION
=0;
14669 HAVE_POSIX_SIGNALBLOCKING
=1;
14670 HAVE_PTHREAD_SIGMASK
=1;
14675 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
14677 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
14679 HAVE_SIGHANDLER_T
=1;
14680 REPLACE_PTHREAD_SIGMASK
=0;
14684 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
14685 #include <signal.h>
14686 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
14687 #include <sys/types.h>
14690 if test "x$ac_cv_type_sigset_t" = xyes
; then :
14692 cat >>confdefs.h
<<_ACEOF
14693 #define HAVE_SIGSET_T 1
14696 gl_cv_type_sigset_t
=yes
14698 gl_cv_type_sigset_t
=no
14701 if test $gl_cv_type_sigset_t != yes; then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14706 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14707 if ${ac_cv_type_uid_t+:} false
; then :
14708 $as_echo_n "(cached) " >&6
14710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14712 #include <sys/types.h>
14715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14716 $EGREP "uid_t" >/dev
/null
2>&1; then :
14717 ac_cv_type_uid_t
=yes
14719 ac_cv_type_uid_t
=no
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14725 $as_echo "$ac_cv_type_uid_t" >&6; }
14726 if test $ac_cv_type_uid_t = no
; then
14728 $as_echo "#define uid_t int" >>confdefs.h
14731 $as_echo "#define gid_t int" >>confdefs.h
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14736 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14737 if ${ac_cv_header_stdbool_h+:} false
; then :
14738 $as_echo_n "(cached) " >&6
14740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14743 #include <stdbool.h>
14748 typedef _Bool Bool;
14750 "error: bool is not defined"
14753 "error: false is not defined"
14756 "error: false is not 0"
14759 "error: true is not defined"
14762 "error: true is not 1"
14766 #ifndef __bool_true_false_are_defined
14767 "error: __bool_true_false_are_defined is not defined"
14770 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
14772 char a[true == 1 ? 1 : -1];
14773 char b[false == 0 ? 1 : -1];
14774 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14775 char d[(bool) 0.5 == true ? 1 : -1];
14776 /* See body of main program for 'e'. */
14777 char f[(Bool) 0.0 == false ? 1 : -1];
14779 char h[sizeof (Bool)];
14780 char i[sizeof s.t];
14781 enum { j = false, k = true, l = false * true, m = true * 256 };
14782 /* The following fails for
14783 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14785 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14786 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14787 /* Catch a bug in an HP-UX C compiler. See
14788 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14789 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
14800 *pq |= q; *pq |= ! q;
14801 *qq |= q; *qq |= ! q;
14802 /* Refer to every declared value, to avoid compiler optimizations. */
14803 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14804 + !m + !n + !o + !p + !q + !pq + !qq);
14810 if ac_fn_c_try_compile
"$LINENO"; then :
14811 ac_cv_header_stdbool_h
=yes
14813 ac_cv_header_stdbool_h
=no
14815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14818 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14819 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14820 if test "x$ac_cv_type__Bool" = xyes
; then :
14822 cat >>confdefs.h
<<_ACEOF
14823 #define HAVE__BOOL 1
14832 HAVE_MAX_ALIGN_T
=1;
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14837 $as_echo_n "checking for wchar_t... " >&6; }
14838 if ${gt_cv_c_wchar_t+:} false
; then :
14839 $as_echo_n "(cached) " >&6
14841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14842 /* end confdefs.h. */
14843 #include <stddef.h>
14844 wchar_t foo = (wchar_t)'\0';
14853 if ac_fn_c_try_compile
"$LINENO"; then :
14854 gt_cv_c_wchar_t
=yes
14858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14861 $as_echo "$gt_cv_c_wchar_t" >&6; }
14862 if test $gt_cv_c_wchar_t = yes; then
14864 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14870 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
14871 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
14877 cat >>confdefs.h
<<_ACEOF
14878 #define HAVE_DECL_STRDUP $ac_have_decl
14882 REPLACE_STRERROR_0
=0
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
14884 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
14885 if ${gl_cv_func_strerror_0_works+:} false
; then :
14886 $as_echo_n "(cached) " >&6
14888 if test "$cross_compiling" = yes; then :
14890 # Guess yes on glibc systems.
14891 *-gnu* | gnu
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
14892 # Guess yes on musl systems.
14893 *-musl*) gl_cv_func_strerror_0_works
="guessing yes" ;;
14894 # Guess yes on native Windows.
14895 mingw
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
14896 # If we don't know, obey --enable-cross-guesses.
14897 *) gl_cv_func_strerror_0_works
="$gl_cross_guess_normal" ;;
14901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14903 #include <string.h>
14912 str = strerror (0);
14913 if (!*str) result |= 1;
14914 if (errno) result |= 2;
14915 if (strstr (str, "nknown") || strstr (str, "ndefined"))
14922 if ac_fn_c_try_run
"$LINENO"; then :
14923 gl_cv_func_strerror_0_works
=yes
14925 gl_cv_func_strerror_0_works
=no
14927 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14928 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
14934 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
14935 case "$gl_cv_func_strerror_0_works" in
14938 REPLACE_STRERROR_0
=1
14940 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
14954 if test $ac_cv_func_strerror_r = yes; then
14955 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
14957 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
14958 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
14959 $as_echo_n "(cached) " >&6
14961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963 #include <string.h>
14964 int strerror_r (int, char *, size_t);
14974 if ac_fn_c_try_compile
"$LINENO"; then :
14975 gl_cv_func_strerror_r_posix_signature
=yes
14977 gl_cv_func_strerror_r_posix_signature
=no
14979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
14983 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
14984 if test $gl_cv_func_strerror_r_posix_signature = yes; then
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
14986 $as_echo_n "checking whether strerror_r works... " >&6; }
14987 if ${gl_cv_func_strerror_r_works+:} false
; then :
14988 $as_echo_n "(cached) " >&6
14990 if test "$cross_compiling" = yes; then :
14994 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
14995 # Guess no on HP-UX.
14996 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
14997 # Guess no on BSD variants.
14998 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
14999 # Guess yes otherwise.
15000 *) gl_cv_func_strerror_r_works
="guessing yes";;
15004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15005 /* end confdefs.h. */
15007 #include <string.h>
15014 if (strerror_r (EACCES, buf, 0) < 0)
15017 if (strerror_r (EACCES, buf, sizeof buf) != 0)
15019 strcpy (buf, "Unknown");
15020 if (strerror_r (0, buf, sizeof buf) != 0)
15024 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
15028 if (strerror_r (-3, buf, sizeof buf) < 0)
15040 if ac_fn_c_try_run
"$LINENO"; then :
15041 gl_cv_func_strerror_r_works
=yes
15043 gl_cv_func_strerror_r_works
=no
15045 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15046 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
15052 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
15055 if test $ac_cv_func___xpg_strerror_r = yes; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
15057 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
15058 if ${gl_cv_func_strerror_r_works+:} false
; then :
15059 $as_echo_n "(cached) " >&6
15061 if test "$cross_compiling" = yes; then :
15062 gl_cv_func_strerror_r_works
="$gl_cross_guess_normal"
15065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15068 #include <string.h>
15073 int __xpg_strerror_r(int, char *, size_t);
15079 char buf[256] = "^";
15081 char *str = strerror (-1);
15082 strcpy (copy, str);
15083 if (__xpg_strerror_r (-2, buf, 1) == 0)
15087 __xpg_strerror_r (-2, buf, 256);
15088 if (strcmp (str, copy))
15096 if ac_fn_c_try_run
"$LINENO"; then :
15097 gl_cv_func_strerror_r_works
=yes
15099 gl_cv_func_strerror_r_works
=no
15101 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15102 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
15108 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
15114 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15115 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
15121 cat >>confdefs.h
<<_ACEOF
15122 #define HAVE_DECL_STRERROR_R $ac_have_decl
15140 if test $gl_cv_have_include_next = yes; then
15141 gl_cv_next_string_h
='<'string.h
'>'
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15144 $as_echo_n "checking absolute name of <string.h>... " >&6; }
15145 if ${gl_cv_next_string_h+:} false
; then :
15146 $as_echo_n "(cached) " >&6
15151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15153 #include <string.h>
15156 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15157 *) gl_absname_cpp
="$ac_cpp" ;;
15162 gl_dirsep_regex
='[/\\]'
15165 gl_dirsep_regex
='\/'
15168 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15169 gl_header_literal_regex
=`echo 'string.h' \
15170 | sed -e "$gl_make_literal_regex_sed"`
15171 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15172 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15178 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15179 sed -n "$gl_absolute_header_sed"`
15181 gl_header
=$gl_cv_absolute_string_h
15182 gl_cv_next_string_h
='"'$gl_header'"'
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15187 $as_echo "$gl_cv_next_string_h" >&6; }
15189 NEXT_STRING_H
=$gl_cv_next_string_h
15191 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15193 gl_next_as_first_directive
='<'string.h
'>'
15195 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15196 gl_next_as_first_directive
=$gl_cv_next_string_h
15198 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
15211 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
15215 $as_echo_n "checking whether strstr works... " >&6; }
15216 if ${gl_cv_func_strstr_works_always+:} false
; then :
15217 $as_echo_n "(cached) " >&6
15219 if test "$cross_compiling" = yes; then :
15220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15223 #ifdef __GNU_LIBRARY__
15224 #include <features.h>
15225 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
15226 || defined __UCLIBC__
15229 #elif defined __CYGWIN__
15230 #include <cygwin/version.h>
15231 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15240 $EGREP "Lucky user" >/dev
/null
2>&1; then :
15241 gl_cv_func_strstr_works_always
="guessing yes"
15243 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
15249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15250 /* end confdefs.h. */
15252 #include <string.h> /* for strstr */
15253 #ifdef __GNU_LIBRARY__
15254 #include <features.h>
15255 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
15259 #define P "_EF_BF_BD"
15260 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15261 #define NEEDLE P P P P P
15266 return !!strstr (HAYSTACK, NEEDLE);
15272 if ac_fn_c_try_run
"$LINENO"; then :
15273 gl_cv_func_strstr_works_always
=yes
15275 gl_cv_func_strstr_works_always
=no
15277 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15278 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
15284 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
15285 case "$gl_cv_func_strstr_works_always" in
15293 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
15294 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
15300 cat >>confdefs.h
<<_ACEOF
15301 #define HAVE_DECL_STRTOK_R $ac_have_decl
15314 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
15326 if test $gl_cv_have_include_next = yes; then
15327 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
15330 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
15331 if ${gl_cv_next_sys_types_h+:} false
; then :
15332 $as_echo_n "(cached) " >&6
15337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339 #include <sys/types.h>
15342 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15343 *) gl_absname_cpp
="$ac_cpp" ;;
15348 gl_dirsep_regex
='[/\\]'
15351 gl_dirsep_regex
='\/'
15354 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15355 gl_header_literal_regex
=`echo 'sys/types.h' \
15356 | sed -e "$gl_make_literal_regex_sed"`
15357 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15358 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15364 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15365 sed -n "$gl_absolute_header_sed"`
15367 gl_header
=$gl_cv_absolute_sys_types_h
15368 gl_cv_next_sys_types_h
='"'$gl_header'"'
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
15373 $as_echo "$gl_cv_next_sys_types_h" >&6; }
15375 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
15377 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15378 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15379 gl_next_as_first_directive
='<'sys
/types.h
'>'
15381 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15382 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
15384 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
15397 WINDOWS_STAT_INODES
=0
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15408 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15409 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
15410 $as_echo_n "(cached) " >&6
15412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15419 static struct timespec x; x.tv_sec = x.tv_nsec;
15424 if ac_fn_c_try_compile
"$LINENO"; then :
15425 gl_cv_sys_struct_timespec_in_time_h
=yes
15427 gl_cv_sys_struct_timespec_in_time_h
=no
15429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15432 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15434 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15435 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15436 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
15437 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
15438 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15439 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15442 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15443 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
15444 $as_echo_n "(cached) " >&6
15446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15448 #include <sys/time.h>
15453 static struct timespec x; x.tv_sec = x.tv_nsec;
15458 if ac_fn_c_try_compile
"$LINENO"; then :
15459 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15461 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15466 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15467 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15468 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15471 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15472 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
15473 $as_echo_n "(cached) " >&6
15475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15477 #include <pthread.h>
15482 static struct timespec x; x.tv_sec = x.tv_nsec;
15487 if ac_fn_c_try_compile
"$LINENO"; then :
15488 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15490 gl_cv_sys_struct_timespec_in_pthread_h
=no
15492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15495 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15496 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15497 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
15500 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
15501 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
15502 $as_echo_n "(cached) " >&6
15504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15506 #include <unistd.h>
15511 static struct timespec x; x.tv_sec = x.tv_nsec;
15516 if ac_fn_c_try_compile
"$LINENO"; then :
15517 gl_cv_sys_struct_timespec_in_unistd_h
=yes
15519 gl_cv_sys_struct_timespec_in_unistd_h
=no
15521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
15524 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
15525 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
15526 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
15547 if test $gl_cv_have_include_next = yes; then
15548 gl_cv_next_time_h
='<'time.h
'>'
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15551 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15552 if ${gl_cv_next_time_h+:} false
; then :
15553 $as_echo_n "(cached) " >&6
15558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15563 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15564 *) gl_absname_cpp
="$ac_cpp" ;;
15569 gl_dirsep_regex
='[/\\]'
15572 gl_dirsep_regex
='\/'
15575 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15576 gl_header_literal_regex
=`echo 'time.h' \
15577 | sed -e "$gl_make_literal_regex_sed"`
15578 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15579 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15585 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15586 sed -n "$gl_absolute_header_sed"`
15588 gl_header
=$gl_cv_absolute_time_h
15589 gl_cv_next_time_h
='"'$gl_header'"'
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15594 $as_echo "$gl_cv_next_time_h" >&6; }
15596 NEXT_TIME_H
=$gl_cv_next_time_h
15598 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15599 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15600 gl_next_as_first_directive
='<'time.h
'>'
15602 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15603 gl_next_as_first_directive
=$gl_cv_next_time_h
15605 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
15616 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
15617 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
15623 cat >>confdefs.h
<<_ACEOF
15624 #define HAVE_DECL_UNSETENV $ac_have_decl
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
15629 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
15630 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
15631 $as_echo_n "(cached) " >&6
15633 gl_cv_header_wchar_h_correct_inline
=yes
15634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h. */
15637 #define wcstod renamed_wcstod
15638 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15640 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15641 included before <wchar.h>. */
15642 #include <stddef.h>
15646 extern int zero (void);
15647 int main () { return zero(); }
15650 save_ac_compile
="$ac_compile"
15651 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
15652 if echo '#include "conftest.c"' >conftest1.c
&&
15653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15654 (eval $ac_compile) 2>&5
15656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15657 test $ac_status = 0; }; then
15658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h. */
15661 #define wcstod renamed_wcstod
15662 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15664 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15665 included before <wchar.h>. */
15666 #include <stddef.h>
15670 int zero (void) { return 0; }
15673 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
15674 if echo '#include "conftest.c"' >conftest2.c
&&
15675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15676 (eval $ac_compile) 2>&5
15678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15679 test $ac_status = 0; }; then
15680 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
15683 gl_cv_header_wchar_h_correct_inline
=no
15687 ac_compile
="$save_ac_compile"
15688 rm -f conftest12.c conftest12.
$ac_objext conftest
$ac_exeext
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
15692 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
15693 if test $gl_cv_header_wchar_h_correct_inline = no
; then
15694 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
15695 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
15696 C99 mode. You have four options:
15697 - Add the flag -fgnu89-inline to CC and reconfigure, or
15698 - Fix your include files, using parts of
15699 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
15700 - Use a gcc version older than 4.3, or
15701 - Don't use the flags -std=c99 or -std=gnu99.
15702 Configuration aborted." "$LINENO" 5
15709 if test $ac_cv_header_crtdefs_h = yes; then
15721 GNULIB_TOWCTRANS
=0;
15725 REPLACE_ISWBLANK
=0;
15731 GL_COND_LIBTOOL_TRUE
=
15732 GL_COND_LIBTOOL_FALSE
='#'
15734 GL_COND_LIBTOOL_TRUE
='#'
15735 GL_COND_LIBTOOL_FALSE
=
15738 gl_cond_libtool
=false
15741 gl_m4_base
='import/m4'
15751 gl_source_base
='import'
15754 if test $ac_cv_func_alloca_works = no
; then
15758 # Define an additional variable used in the Makefile substitution.
15759 if test $ac_cv_working_alloca_h = yes; then
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
15761 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
15762 if ${gl_cv_rpl_alloca+:} false
; then :
15763 $as_echo_n "(cached) " >&6
15766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15767 /* end confdefs.h. */
15769 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
15774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15775 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
15776 gl_cv_rpl_alloca
=yes
15778 gl_cv_rpl_alloca
=no
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
15785 $as_echo "$gl_cv_rpl_alloca" >&6; }
15786 if test $gl_cv_rpl_alloca = yes; then
15788 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15798 if test -n "$ALLOCA_H"; then
15799 GL_GENERATE_ALLOCA_H_TRUE
=
15800 GL_GENERATE_ALLOCA_H_FALSE
='#'
15802 GL_GENERATE_ALLOCA_H_TRUE
='#'
15803 GL_GENERATE_ALLOCA_H_FALSE
=
15807 if test $ac_cv_working_alloca_h = yes; then
15818 if test $ac_cv_header_arpa_inet_h = yes; then
15833 if test $gl_cv_have_include_next = yes; then
15834 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
15837 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
15838 if ${gl_cv_next_arpa_inet_h+:} false
; then :
15839 $as_echo_n "(cached) " >&6
15842 if test $ac_cv_header_arpa_inet_h = yes; then
15847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15848 /* end confdefs.h. */
15849 #include <arpa/inet.h>
15852 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15853 *) gl_absname_cpp
="$ac_cpp" ;;
15858 gl_dirsep_regex
='[/\\]'
15861 gl_dirsep_regex
='\/'
15864 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15865 gl_header_literal_regex
=`echo 'arpa/inet.h' \
15866 | sed -e "$gl_make_literal_regex_sed"`
15867 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15868 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15874 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15875 sed -n "$gl_absolute_header_sed"`
15877 gl_header
=$gl_cv_absolute_arpa_inet_h
15878 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
15880 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
15886 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
15888 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
15890 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15892 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
15894 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15895 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
15897 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
15907 if test $ac_cv_header_sys_socket_h = yes; then
15910 if test $ac_cv_header_ws2tcpip_h = yes; then
15932 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
15936 $as_echo_n "checking for __builtin_expect... " >&6; }
15937 if ${gl_cv___builtin_expect+:} false
; then :
15938 $as_echo_n "(cached) " >&6
15940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15944 main (int argc, char **argv)
15946 argc = __builtin_expect (argc, 100);
15947 return argv[argc != 100][0];
15950 if ac_fn_c_try_link
"$LINENO"; then :
15951 gl_cv___builtin_expect
=yes
15953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15956 #include <builtins.h>
15958 main (int argc, char **argv)
15960 argc = __builtin_expect (argc, 100);
15961 return argv[argc != 100][0];
15964 if ac_fn_c_try_link
"$LINENO"; then :
15965 gl_cv___builtin_expect
="in <builtins.h>"
15967 gl_cv___builtin_expect
=no
15969 rm -f core conftest.err conftest.
$ac_objext \
15970 conftest
$ac_exeext conftest.
$ac_ext
15972 rm -f core conftest.err conftest.
$ac_objext \
15973 conftest
$ac_exeext conftest.
$ac_ext
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
15976 $as_echo "$gl_cv___builtin_expect" >&6; }
15977 if test "$gl_cv___builtin_expect" = yes; then
15978 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
15980 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
15981 $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
15989 if test $ac_cv_func_canonicalize_file_name = no
; then
15990 HAVE_CANONICALIZE_FILE_NAME
=0
15991 if test $ac_cv_func_realpath = no
; then
15994 case "$gl_cv_func_realpath_works" in
15996 *) REPLACE_REALPATH
=1 ;;
16000 case "$gl_cv_func_realpath_works" in
16004 REPLACE_CANONICALIZE_FILE_NAME
=1
16010 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
16019 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
16024 cat >>confdefs.h
<<_ACEOF
16025 #define GNULIB_CANONICALIZE_LGPL 1
16034 GNULIB_CANONICALIZE_FILE_NAME
=1
16040 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
16055 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
16070 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
16077 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
16078 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
16079 $as_echo_n "(cached) " >&6
16081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16084 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
16086 # include <unistd.h>
16088 #include <limits.h>
16089 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
16090 # include <sys/param.h>
16092 #if !defined PATH_MAX && defined MAXPATHLEN
16093 # define PATH_MAX MAXPATHLEN
16097 # define PATH_MAX 1024
16099 #if defined _WIN32 && ! defined __CYGWIN__
16101 # define PATH_MAX 260
16105 have_arbitrary_file_name_length_limit
16108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16109 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
16110 gl_cv_have_arbitrary_file_name_length_limit
=yes
16112 gl_cv_have_arbitrary_file_name_length_limit
=no
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
16118 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
16120 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
16129 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
16135 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
16142 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
16151 if test $ac_cv_header_sys_socket_h != yes; then
16152 for ac_header
in winsock2.h
16154 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16155 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
16156 cat >>confdefs.h
<<_ACEOF
16157 #define HAVE_WINSOCK2_H 1
16165 if test "$ac_cv_header_winsock2_h" = yes; then
16167 UNISTD_H_HAVE_WINSOCK2_H
=1
16168 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
16174 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
16179 if test $REPLACE_CLOSE = 0; then
16183 if test $ac_cv_func_fchdir = no
; then
16187 if test $HAVE_FCHDIR = 0; then
16193 if test $REPLACE_CLOSE = 1; then
16202 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
16216 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
16223 for ac_func
in closedir
16225 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
16226 if test "x$ac_cv_func_closedir" = xyes
; then :
16227 cat >>confdefs.h
<<_ACEOF
16228 #define HAVE_CLOSEDIR 1
16234 if test $ac_cv_func_closedir = no
; then
16241 if test $ac_cv_func_fchdir = no
; then
16245 if test $HAVE_FCHDIR = 0; then
16246 if test $HAVE_CLOSEDIR = 1; then
16251 case $host_os,$HAVE_CLOSEDIR in
16253 REPLACE_CLOSEDIR
=1;;
16256 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
16265 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
16279 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
16287 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
16288 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
16289 $as_echo_n "(cached) " >&6
16291 if test "$cross_compiling" = yes; then :
16293 # Guess yes on glibc systems with Linux kernel.
16294 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
16295 # Guess yes on musl systems with Linux kernel.
16296 linux
*-musl*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
16297 # Guess no on native Windows.
16298 mingw
*) gl_cv_struct_dirent_d_ino
="guessing no" ;;
16299 # If we don't know, obey --enable-cross-guesses.
16300 *) gl_cv_struct_dirent_d_ino
="$gl_cross_guess_normal" ;;
16304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 #include <sys/types.h>
16307 #include <sys/stat.h>
16308 #include <dirent.h>
16313 DIR *dp = opendir (".");
16320 { closedir (dp); return 2; }
16321 if (lstat (e->d_name, &st) != 0)
16322 { closedir (dp); return 3; }
16323 if (e->d_ino != st.st_ino)
16324 { closedir (dp); return 4; }
16332 if ac_fn_c_try_run
"$LINENO"; then :
16333 gl_cv_struct_dirent_d_ino
=yes
16335 gl_cv_struct_dirent_d_ino
=no
16337 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16338 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
16343 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
16344 case "$gl_cv_struct_dirent_d_ino" in
16347 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
16354 $as_echo_n "checking for d_type member in directory struct... " >&6; }
16355 if ${gl_cv_struct_dirent_d_type+:} false
; then :
16356 $as_echo_n "(cached) " >&6
16358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16361 #include <sys/types.h>
16362 #include <dirent.h>
16367 struct dirent dp; dp.d_type = 0;
16372 if ac_fn_c_try_link
"$LINENO"; then :
16373 gl_cv_struct_dirent_d_type
=yes
16375 gl_cv_struct_dirent_d_type
=no
16377 rm -f core conftest.err conftest.
$ac_objext \
16378 conftest
$ac_exeext conftest.
$ac_ext
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
16383 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
16384 if test $gl_cv_struct_dirent_d_type = yes; then
16386 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
16403 if test $gl_cv_have_include_next = yes; then
16404 gl_cv_next_dirent_h
='<'dirent.h
'>'
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
16407 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
16408 if ${gl_cv_next_dirent_h+:} false
; then :
16409 $as_echo_n "(cached) " >&6
16412 if test $ac_cv_header_dirent_h = yes; then
16417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16419 #include <dirent.h>
16422 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16423 *) gl_absname_cpp
="$ac_cpp" ;;
16428 gl_dirsep_regex
='[/\\]'
16431 gl_dirsep_regex
='\/'
16434 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16435 gl_header_literal_regex
=`echo 'dirent.h' \
16436 | sed -e "$gl_make_literal_regex_sed"`
16437 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16438 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16444 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16445 sed -n "$gl_absolute_header_sed"`
16447 gl_header
=$gl_cv_absolute_dirent_h
16448 gl_cv_next_dirent_h
='"'$gl_header'"'
16450 gl_cv_next_dirent_h
='<'dirent.h
'>'
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
16456 $as_echo "$gl_cv_next_dirent_h" >&6; }
16458 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
16460 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16461 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16462 gl_next_as_first_directive
='<'dirent.h
'>'
16464 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16465 gl_next_as_first_directive
=$gl_cv_next_dirent_h
16467 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
16472 if test $ac_cv_header_dirent_h = yes; then
16488 for ac_func
in dirfd
16490 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
16491 if test "x$ac_cv_func_dirfd" = xyes
; then :
16492 cat >>confdefs.h
<<_ACEOF
16493 #define HAVE_DIRFD 1
16499 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
16500 #include <dirent.h>
16502 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
16508 cat >>confdefs.h
<<_ACEOF
16509 #define HAVE_DECL_DIRFD $ac_have_decl
16512 if test $ac_cv_have_decl_dirfd = no
; then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
16517 $as_echo_n "checking whether dirfd is a macro... " >&6; }
16518 if ${gl_cv_func_dirfd_macro+:} false
; then :
16519 $as_echo_n "(cached) " >&6
16521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16524 #include <sys/types.h>
16525 #include <dirent.h>
16527 dirent_header_defines_dirfd
16530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16531 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
16532 gl_cv_func_dirfd_macro
=yes
16534 gl_cv_func_dirfd_macro
=no
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
16540 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
16542 # Use the replacement if we have no function or macro with that name,
16543 # or if OS/2 kLIBC whose dirfd() does not work.
16544 # Replace only if the system declares dirfd already.
16545 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
16546 no
,no
,*,yes |
*,*,os2
*,yes)
16549 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
16553 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
16554 ||
test $REPLACE_DIRFD = 1; then
16563 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
16567 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
16568 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
16569 $as_echo_n "(cached) " >&6
16572 dirfd_save_CFLAGS
=$CFLAGS
16573 for ac_expr
in d_fd dd_fd
; do
16575 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
16576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16577 /* end confdefs.h. */
16579 #include <sys/types.h>
16580 #include <dirent.h>
16584 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
16589 if ac_fn_c_try_compile
"$LINENO"; then :
16593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16594 CFLAGS
=$dirfd_save_CFLAGS
16595 test "$dir_fd_found" = yes && break
16597 test "$dir_fd_found" = yes || ac_expr
=no_such_member
16599 gl_cv_sys_dir_fd_member_name
=$ac_expr
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
16604 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
16605 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
16607 cat >>confdefs.h
<<_ACEOF
16608 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
16626 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
16637 $as_echo_n "checking whether // is distinct from /... " >&6; }
16638 if ${gl_cv_double_slash_root+:} false
; then :
16639 $as_echo_n "(cached) " >&6
16641 if test x
"$cross_compiling" = xyes
; then
16642 # When cross-compiling, there is no way to tell whether // is special
16643 # short of a list of hosts. However, the only known hosts to date
16644 # that have a distinct // are Apollo DomainOS (too old to port to),
16645 # Cygwin, and z/OS. If anyone knows of another system for which // has
16646 # special semantics and is distinct from /, please report it to
16647 # <bug-gnulib@gnu.org>.
16649 *-cygwin | i370-ibm-openedition
)
16650 gl_cv_double_slash_root
=yes ;;
16652 # Be optimistic and assume that / and // are the same when we
16654 gl_cv_double_slash_root
='unknown, assuming no' ;;
16657 set x
`ls -di / // 2>/dev/null`
16658 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
16659 gl_cv_double_slash_root
=no
16661 gl_cv_double_slash_root
=yes
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
16666 $as_echo "$gl_cv_double_slash_root" >&6; }
16667 if test "$gl_cv_double_slash_root" = yes; then
16669 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
16677 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
16685 if test $ac_cv_func_fchdir = no
; then
16689 if test $HAVE_FCHDIR = 0; then
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
16694 $as_echo_n "checking whether dup works... " >&6; }
16695 if ${gl_cv_func_dup_works+:} false
; then :
16696 $as_echo_n "(cached) " >&6
16698 if test "$cross_compiling" = yes; then :
16700 # Guess no on native Windows.
16701 mingw
*) gl_cv_func_dup_works
="guessing no" ;;
16702 *) gl_cv_func_dup_works
="guessing yes" ;;
16706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16707 /* end confdefs.h. */
16708 #include <unistd.h>
16714 /* On OS/2 kLIBC, dup does not work on a directory fd. */
16715 int fd = open (".", O_RDONLY);
16716 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
16723 if ac_fn_c_try_run
"$LINENO"; then :
16724 gl_cv_func_dup_works
=yes
16726 gl_cv_func_dup_works
=no
16728 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16729 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
16735 $as_echo "$gl_cv_func_dup_works" >&6; }
16736 case "$gl_cv_func_dup_works" in
16743 if test $REPLACE_DUP = 1; then
16752 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
16767 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
16776 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
16779 if test $HAVE_DUP2 = 1; then
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
16781 $as_echo_n "checking whether dup2 works... " >&6; }
16782 if ${gl_cv_func_dup2_works+:} false
; then :
16783 $as_echo_n "(cached) " >&6
16785 if test "$cross_compiling" = yes; then :
16787 mingw
*) # on this platform, dup2 always returns 0 for success
16788 gl_cv_func_dup2_works
="guessing no" ;;
16789 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
16790 gl_cv_func_dup2_works
="guessing no" ;;
16792 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
16794 gl_cv_func_dup2_works
="guessing no" ;;
16795 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
16796 gl_cv_func_dup2_works
="guessing no" ;;
16797 *-android*) # implemented using dup3(), which fails if oldfd == newfd
16798 gl_cv_func_dup2_works
="guessing no" ;;
16799 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
16800 gl_cv_func_dup2_works
="guessing no" ;;
16801 *) gl_cv_func_dup2_works
="guessing yes" ;;
16804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h. */
16809 #include <limits.h>
16810 #include <sys/resource.h>
16811 #include <unistd.h>
16812 #ifndef RLIM_SAVED_CUR
16813 # define RLIM_SAVED_CUR RLIM_INFINITY
16815 #ifndef RLIM_SAVED_MAX
16816 # define RLIM_SAVED_MAX RLIM_INFINITY
16823 int bad_fd = INT_MAX;
16824 struct rlimit rlim;
16825 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
16826 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
16827 && rlim.rlim_cur != RLIM_INFINITY
16828 && rlim.rlim_cur != RLIM_SAVED_MAX
16829 && rlim.rlim_cur != RLIM_SAVED_CUR)
16830 bad_fd = rlim.rlim_cur;
16832 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
16835 if (dup2 (1, 1) != 1)
16838 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
16842 if (dup2 (0, 0) != -1)
16844 /* Many gnulib modules require POSIX conformance of EBADF. */
16845 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
16847 /* Flush out some cygwin core dumps. */
16848 if (dup2 (2, -1) != -1 || errno != EBADF)
16852 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
16854 int fd = open (".", O_RDONLY);
16857 else if (dup2 (fd, fd + 1) == -1)
16868 if ac_fn_c_try_run
"$LINENO"; then :
16869 gl_cv_func_dup2_works
=yes
16871 gl_cv_func_dup2_works
=no
16873 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16874 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
16880 $as_echo "$gl_cv_func_dup2_works" >&6; }
16881 case "$gl_cv_func_dup2_works" in
16885 for ac_func
in setdtablesize
16887 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
16888 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
16889 cat >>confdefs.h
<<_ACEOF
16890 #define HAVE_SETDTABLESIZE 1
16903 if test $ac_cv_func_fchdir = no
; then
16907 if test $HAVE_FCHDIR = 0; then
16908 if test $HAVE_DUP2 = 1; then
16914 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
16923 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
16938 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
16954 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
16961 $as_echo_n "checking for error_at_line... " >&6; }
16962 if ${ac_cv_lib_error_at_line+:} false
; then :
16963 $as_echo_n "(cached) " >&6
16965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16966 /* end confdefs.h. */
16971 error_at_line (0, 0, "", 0, "an error occurred");
16976 if ac_fn_c_try_link
"$LINENO"; then :
16977 ac_cv_lib_error_at_line
=yes
16979 ac_cv_lib_error_at_line
=no
16981 rm -f core conftest.err conftest.
$ac_objext \
16982 conftest
$ac_exeext conftest.
$ac_ext
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
16985 $as_echo "$ac_cv_lib_error_at_line" >&6; }
16987 if test $ac_cv_lib_error_at_line = no
; then
16996 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
17010 if test $ac_cv_have_decl_fchdir = no
; then
17015 if test $HAVE_FCHDIR = 0; then
17024 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
17028 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
17031 $as_echo_n "checking whether open can visit directories... " >&6; }
17032 if ${gl_cv_func_open_directory_works+:} false
; then :
17033 $as_echo_n "(cached) " >&6
17035 if test "$cross_compiling" = yes; then :
17037 # Guess yes on Linux systems.
17038 linux-
* | linux
) gl_cv_func_open_directory_works
="guessing yes" ;;
17039 # Guess yes on glibc systems.
17040 *-gnu* | gnu
*) gl_cv_func_open_directory_works
="guessing yes" ;;
17041 # Guess no on native Windows.
17042 mingw
*) gl_cv_func_open_directory_works
="guessing no" ;;
17043 # If we don't know, obey --enable-cross-guesses.
17044 *) gl_cv_func_open_directory_works
="$gl_cross_guess_normal" ;;
17048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h. */
17055 return open(".", O_RDONLY) < 0;
17060 if ac_fn_c_try_run
"$LINENO"; then :
17061 gl_cv_func_open_directory_works
=yes
17063 gl_cv_func_open_directory_works
=no
17065 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17066 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
17071 $as_echo "$gl_cv_func_open_directory_works" >&6; }
17072 case "$gl_cv_func_open_directory_works" in
17076 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
17093 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
17102 if test $ac_cv_func_fcntl = no
; then
17106 if test $ac_cv_func_fcntl = no
; then
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
17114 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
17115 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
17116 $as_echo_n "(cached) " >&6
17118 if test "$cross_compiling" = yes; then :
17120 aix
* | cygwin
* | haiku
*)
17121 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
17122 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
17125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17126 /* end confdefs.h. */
17129 #include <limits.h>
17130 #include <sys/resource.h>
17131 #include <unistd.h>
17132 #ifndef RLIM_SAVED_CUR
17133 # define RLIM_SAVED_CUR RLIM_INFINITY
17135 #ifndef RLIM_SAVED_MAX
17136 # define RLIM_SAVED_MAX RLIM_INFINITY
17143 int bad_fd = INT_MAX;
17144 struct rlimit rlim;
17145 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
17146 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
17147 && rlim.rlim_cur != RLIM_INFINITY
17148 && rlim.rlim_cur != RLIM_SAVED_MAX
17149 && rlim.rlim_cur != RLIM_SAVED_CUR)
17150 bad_fd = rlim.rlim_cur;
17151 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
17152 if (errno != EINVAL) result |= 2;
17153 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
17154 if (errno != EINVAL) result |= 8;
17155 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
17158 fd = open (".", O_RDONLY);
17161 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
17171 if ac_fn_c_try_run
"$LINENO"; then :
17172 gl_cv_func_fcntl_f_dupfd_works
=yes
17174 gl_cv_func_fcntl_f_dupfd_works
=no
17176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
17182 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
17183 case $gl_cv_func_fcntl_f_dupfd_works in
17188 if test $ac_cv_func_fcntl = no
; then
17195 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
17200 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
17201 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
17202 $as_echo_n "(cached) " >&6
17204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h. */
17208 #ifndef F_DUPFD_CLOEXEC
17220 if ac_fn_c_try_compile
"$LINENO"; then :
17221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17222 /* end confdefs.h. */
17225 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
17226 it to support the semantics on older kernels that failed with EINVAL. */
17238 if ac_fn_c_try_compile
"$LINENO"; then :
17239 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
17241 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
17243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17245 gl_cv_func_fcntl_f_dupfd_cloexec
=no
17247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
17250 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
17251 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
17255 if test $ac_cv_func_fcntl = no
; then
17267 if test $ac_cv_func_fchdir = no
; then
17271 if test $HAVE_FCHDIR = 0; then
17275 if test $ac_cv_func_fcntl = no
; then
17284 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
17293 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
17307 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
17322 if test $gl_cv_have_include_next = yes; then
17323 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
17326 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
17327 if ${gl_cv_next_fcntl_h+:} false
; then :
17328 $as_echo_n "(cached) " >&6
17333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h. */
17338 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17339 *) gl_absname_cpp
="$ac_cpp" ;;
17344 gl_dirsep_regex
='[/\\]'
17347 gl_dirsep_regex
='\/'
17350 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17351 gl_header_literal_regex
=`echo 'fcntl.h' \
17352 | sed -e "$gl_make_literal_regex_sed"`
17353 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17354 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17360 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17361 sed -n "$gl_absolute_header_sed"`
17363 gl_header
=$gl_cv_absolute_fcntl_h
17364 gl_cv_next_fcntl_h
='"'$gl_header'"'
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
17369 $as_echo "$gl_cv_next_fcntl_h" >&6; }
17371 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
17373 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17374 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17375 gl_next_as_first_directive
='<'fcntl.h
'>'
17377 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17378 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
17380 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
17396 cat >>confdefs.h
<<_ACEOF
17397 #define GNULIB_FD_SAFER_FLAG 1
17406 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
17407 #include <dirent.h>
17410 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
17416 cat >>confdefs.h
<<_ACEOF
17417 #define HAVE_DECL_FDOPENDIR $ac_have_decl
17419 if test $ac_have_decl = 1; then :
17422 HAVE_DECL_FDOPENDIR
=0
17426 if test $ac_cv_func_fdopendir = no
; then
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
17430 $as_echo_n "checking whether fdopendir works... " >&6; }
17431 if ${gl_cv_func_fdopendir_works+:} false
; then :
17432 $as_echo_n "(cached) " >&6
17434 if test "$cross_compiling" = yes; then :
17436 # Guess yes on glibc systems.
17437 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
17438 # Guess yes on musl systems.
17439 *-musl*) gl_cv_func_fdopendir_works
="guessing yes" ;;
17440 # If we don't know, obey --enable-cross-guesses.
17441 *) gl_cv_func_fdopendir_works
="$gl_cross_guess_normal" ;;
17445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17448 #include <dirent.h>
17450 #include <unistd.h>
17451 #if !HAVE_DECL_FDOPENDIR
17453 # ifdef __cplusplus
17456 DIR *fdopendir (int);
17463 int fd = open ("conftest.c", O_RDONLY);
17464 if (fd < 0) result |= 1;
17465 if (fdopendir (fd)) result |= 2;
17466 if (close (fd)) result |= 4;
17472 if ac_fn_c_try_run
"$LINENO"; then :
17473 gl_cv_func_fdopendir_works
=yes
17475 gl_cv_func_fdopendir_works
=no
17477 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17478 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
17483 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
17484 case "$gl_cv_func_fdopendir_works" in
17487 REPLACE_FDOPENDIR
=1
17492 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
17501 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
17515 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
17521 cat >>confdefs.h
<<_ACEOF
17522 #define GNULIB_FDOPENDIR 1
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
17531 $as_echo_n "checking for flexible array member... " >&6; }
17532 if ${ac_cv_c_flexmember+:} false
; then :
17533 $as_echo_n "(cached) " >&6
17535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17536 /* end confdefs.h. */
17537 #include <stdlib.h>
17539 #include <stddef.h>
17540 struct m { struct m *next, **list; char name[]; };
17541 struct s { struct s *p; struct m *m; int n; double d[]; };
17545 int m = getchar ();
17546 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
17547 nbytes += sizeof (struct s) - 1;
17548 nbytes -= nbytes % sizeof (struct s);
17549 struct s *p = malloc (nbytes);
17553 return p->d != (double *) NULL;
17558 if ac_fn_c_try_compile
"$LINENO"; then :
17559 ac_cv_c_flexmember
=yes
17561 ac_cv_c_flexmember
=no
17563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
17566 $as_echo "$ac_cv_c_flexmember" >&6; }
17567 if test $ac_cv_c_flexmember = yes; then
17569 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
17572 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
17580 REPLACE_FLOAT_LDBL
=0
17582 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
17585 freebsd
* | dragonfly
*)
17586 case "$host_cpu" in
17591 # On x86_64 systems, the C compiler may still be generating
17593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h. */
17595 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
17602 if ac_fn_c_try_compile
"$LINENO"; then :
17607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17612 case "$host_cpu" in
17620 aix
* | freebsd
* | dragonfly
* | linux
*)
17621 if test -n "$FLOAT_H"; then
17622 REPLACE_FLOAT_LDBL
=1
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
17629 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
17630 if ${gl_cv_func_itold_works+:} false
; then :
17631 $as_echo_n "(cached) " >&6
17634 if test "$cross_compiling" = yes; then :
17637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17639 #if defined __LP64__ || defined __arch64__
17646 if ac_fn_c_try_compile
"$LINENO"; then :
17647 gl_cv_func_itold_works
="guessing no"
17649 gl_cv_func_itold_works
="guessing yes"
17651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17653 # Guess yes on native Windows.
17654 mingw
*) gl_cv_func_itold_works
="guessing yes" ;;
17655 *) gl_cv_func_itold_works
="guessing yes" ;;
17659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17660 /* end confdefs.h. */
17663 volatile long double ld;
17672 if ac_fn_c_try_run
"$LINENO"; then :
17673 gl_cv_func_itold_works
=yes
17675 gl_cv_func_itold_works
=no
17677 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17678 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
17684 $as_echo "$gl_cv_func_itold_works" >&6; }
17685 case "$gl_cv_func_itold_works" in
17692 if test -n "$FLOAT_H"; then
17701 if test $gl_cv_have_include_next = yes; then
17702 gl_cv_next_float_h
='<'float.h
'>'
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
17705 $as_echo_n "checking absolute name of <float.h>... " >&6; }
17706 if ${gl_cv_next_float_h+:} false
; then :
17707 $as_echo_n "(cached) " >&6
17712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17717 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17718 *) gl_absname_cpp
="$ac_cpp" ;;
17723 gl_dirsep_regex
='[/\\]'
17726 gl_dirsep_regex
='\/'
17729 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17730 gl_header_literal_regex
=`echo 'float.h' \
17731 | sed -e "$gl_make_literal_regex_sed"`
17732 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17733 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17739 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17740 sed -n "$gl_absolute_header_sed"`
17742 gl_header
=$gl_cv_absolute_float_h
17743 gl_cv_next_float_h
='"'$gl_header'"'
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
17748 $as_echo "$gl_cv_next_float_h" >&6; }
17750 NEXT_FLOAT_H
=$gl_cv_next_float_h
17752 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17753 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17754 gl_next_as_first_directive
='<'float.h
'>'
17756 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17757 gl_next_as_first_directive
=$gl_cv_next_float_h
17759 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
17766 if test -n "$FLOAT_H"; then
17767 GL_GENERATE_FLOAT_H_TRUE
=
17768 GL_GENERATE_FLOAT_H_FALSE
='#'
17770 GL_GENERATE_FLOAT_H_TRUE
='#'
17771 GL_GENERATE_FLOAT_H_FALSE
=
17776 if test $REPLACE_FLOAT_LDBL = 1; then
17785 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
17788 if test $REPLACE_ITOLD = 1; then
17797 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
17804 gl_fnmatch_required_lowercase
=`
17805 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
17808 if test $ac_cv_func_fnmatch = no
; then
17811 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
17813 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
17814 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
17815 $as_echo_n "(cached) " >&6
17817 if test $gl_fnmatch_required = GNU
; then
17818 gl_fnmatch_gnu_start
=
17819 gl_fnmatch_gnu_end
=
17821 gl_fnmatch_gnu_start
='#if 0'
17822 gl_fnmatch_gnu_end
='#endif'
17824 if test "$cross_compiling" = yes; then :
17826 # Guess yes on musl systems.
17827 *-musl*) eval "$gl_fnmatch_cache_var=\"guessing yes\"" ;;
17828 # Guess no otherwise, even on glibc systems.
17829 *) eval "$gl_fnmatch_cache_var=\"guessing no\"" ;;
17833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h. */
17835 #include <fnmatch.h>
17837 y (char const *pattern, char const *string, int flags)
17839 return fnmatch (pattern, string, flags) == 0;
17842 n (char const *pattern, char const *string, int flags)
17844 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
17850 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
17851 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
17852 static char const A_1[] = { 'A' - 1, 0 };
17853 static char const A01[] = { 'A' + 1, 0 };
17854 static char const a_1[] = { 'a' - 1, 0 };
17855 static char const a01[] = { 'a' + 1, 0 };
17856 static char const bs_1[] = { '\\\\' - 1, 0 };
17857 static char const bs01[] = { '\\\\' + 1, 0 };
17859 if (!n ("a*", "", 0))
17861 if (!y ("a*", "abc", 0))
17863 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
17865 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
17867 if (!y ("a\\\\bc", "abc", 0))
17869 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
17871 if (!y ("*x", ".x", 0))
17873 if (!n ("*x", ".x", FNM_PERIOD))
17875 if (!y (Apat, "\\\\", 0))
17877 if (!y (Apat, "A", 0))
17879 if (!y (apat, "\\\\", 0))
17881 if (!y (apat, "a", 0))
17883 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
17885 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
17887 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
17889 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
17891 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
17893 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
17895 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
17897 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
17899 $gl_fnmatch_gnu_start
17900 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
17902 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
17904 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
17906 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
17908 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
17910 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
17912 $gl_fnmatch_gnu_end
17919 if ac_fn_c_try_run
"$LINENO"; then :
17920 eval "$gl_fnmatch_cache_var=yes"
17922 eval "$gl_fnmatch_cache_var=no"
17924 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17925 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17930 eval ac_res
=\$
$gl_fnmatch_cache_var
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17932 $as_echo "$ac_res" >&6; }
17933 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
17934 case "$gl_fnmatch_result" in
17936 *) REPLACE_FNMATCH
=1 ;;
17939 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
17942 FNMATCH_H
='fnmatch.h'
17943 if test -n "$FNMATCH_H"; then
17944 GL_GENERATE_FNMATCH_H_TRUE
=
17945 GL_GENERATE_FNMATCH_H_FALSE
='#'
17947 GL_GENERATE_FNMATCH_H_TRUE
='#'
17948 GL_GENERATE_FNMATCH_H_FALSE
=
17954 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
17963 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
17967 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
17969 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
17975 cat >>confdefs.h
<<_ACEOF
17976 #define HAVE_DECL_ISBLANK $ac_have_decl
17994 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
18003 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
18012 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
18016 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
18018 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
18024 cat >>confdefs.h
<<_ACEOF
18025 #define HAVE_DECL_ISBLANK $ac_have_decl
18034 cat >>confdefs.h
<<_ACEOF
18035 #define GNULIB_FNMATCH_GNU 1
18041 if test $gl_func_frexp != yes; then
18050 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
18064 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
18069 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
18078 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
18092 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
18110 if test $ac_cv_func_fchdir = no
; then
18114 if test $HAVE_FCHDIR = 0; then
18115 case "$gl_cv_func_open_directory_works" in
18124 if test $REPLACE_FSTAT = 1; then
18133 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
18145 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
18165 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
18176 if test $ac_cv_func_fstatat = no
; then
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
18180 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
18181 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
18182 $as_echo_n "(cached) " >&6
18184 if test "$cross_compiling" = yes; then :
18186 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
18187 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
18191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h. */
18195 #include <sys/stat.h>
18200 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
18204 if ac_fn_c_try_run
"$LINENO"; then :
18205 gl_cv_func_fstatat_zero_flag
=yes
18207 gl_cv_func_fstatat_zero_flag
=no
18209 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18210 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
18216 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
18218 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
18220 *) REPLACE_FSTATAT
=1 ;;
18225 REPLACE_FSTATAT
=1 ;;
18228 case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
18231 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
18237 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
18246 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
18260 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
18272 gl_cv_func_getcwd_path_max
=yes
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
18281 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
18282 if ${gl_cv_func_getcwd_path_max+:} false
; then :
18283 $as_echo_n "(cached) " >&6
18285 # Arrange for deletion of the temporary directory this test creates.
18286 ac_clean_files
="$ac_clean_files confdir3"
18287 if test "$cross_compiling" = yes; then :
18288 # Cross-compilation guesses:
18290 aix
*) # On AIX, it has the AIX bug.
18291 gl_cv_func_getcwd_path_max
='guessing no, it has the AIX bug' ;;
18292 gnu
*) # On Hurd, it is 'yes'.
18293 gl_cv_func_getcwd_path_max
='guessing yes' ;;
18294 linux
* | kfreebsd
*)
18295 # On older Linux+glibc it's 'no, but it is partly working',
18296 # on newer Linux+glibc it's 'yes'.
18297 # On Linux+musl libc, it's 'no, but it is partly working'.
18298 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
18299 gl_cv_func_getcwd_path_max
='guessing no, but it is partly working' ;;
18300 *) # If we don't know, obey --enable-cross-guesses.
18301 gl_cv_func_getcwd_path_max
="$gl_cross_guess_normal" ;;
18305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h. */
18309 #include <stdlib.h>
18311 # include <unistd.h>
18313 # include <direct.h>
18315 #include <string.h>
18316 #include <limits.h>
18317 #include <sys/stat.h>
18318 #include <sys/types.h>
18322 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
18324 # include <unistd.h>
18326 #include <limits.h>
18327 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
18328 # include <sys/param.h>
18330 #if !defined PATH_MAX && defined MAXPATHLEN
18331 # define PATH_MAX MAXPATHLEN
18335 # define PATH_MAX 1024
18337 #if defined _WIN32 && ! defined __CYGWIN__
18339 # define PATH_MAX 260
18344 # define AT_FDCWD 0
18346 #ifdef ENAMETOOLONG
18347 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
18349 # define is_ENAMETOOLONG(x) 0
18352 /* Use the getcwd function, not any macro. */
18355 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
18359 # define S_IRWXU 0700
18362 /* The length of this name must be 8. */
18363 #define DIR_NAME "confdir3"
18364 #define DIR_NAME_LEN 8
18365 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
18367 /* The length of "../". */
18368 #define DOTDOTSLASH_LEN 3
18370 /* Leftover bytes in the buffer, to work around library or OS bugs. */
18371 #define BUF_SLOP 20
18377 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
18378 at least not on a local file system. And if we were to start worrying
18379 about remote file systems, we'd have to enable the wrapper function
18380 all of the time, just to be safe. That's not worth the cost. */
18382 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
18383 - DIR_NAME_SIZE - BUF_SLOP) \
18385 /* FIXME: Assuming there's a system for which this is true,
18386 this should be done in a compile test. */
18389 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
18390 + DIR_NAME_SIZE + BUF_SLOP];
18391 char *cwd = getcwd (buf, PATH_MAX);
18392 size_t initial_cwd_len;
18395 size_t n_chdirs = 0;
18400 cwd_len = initial_cwd_len = strlen (cwd);
18404 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
18407 cwd_len += DIR_NAME_SIZE;
18408 /* If mkdir or chdir fails, it could be that this system cannot create
18409 any file with an absolute name longer than PATH_MAX, such as cygwin.
18410 If so, leave fail as 0, because the current working directory can't
18411 be too long for getcwd if it can't even be created. On Linux with
18412 the 9p file system, mkdir fails with error EINVAL when cwd_len gets
18413 too long; ignore this failure because the getcwd() system call
18414 produces good results whereas the gnulib substitute calls getdents64
18415 which fails with error EPROTO.
18416 For other errors, be pessimistic and consider that as a failure,
18418 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
18420 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
18422 if (! (errno == EINVAL))
18428 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
18432 c = getcwd (buf, PATH_MAX);
18433 if (!c && errno == ENOENT)
18443 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
18449 /* Our replacement needs to be able to stat() long ../../paths,
18450 so generate a path larger than PATH_MAX to check,
18451 avoiding the replacement if we can't stat(). */
18452 c = getcwd (buf, cwd_len + 1);
18453 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
18460 if (dotdot_max <= cwd_len - initial_cwd_len)
18462 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
18464 c = getcwd (buf, cwd_len + 1);
18467 if (! (errno == ERANGE || errno == ENOENT
18468 || is_ENAMETOOLONG (errno)))
18473 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
18481 if (c && strlen (c) != cwd_len)
18489 /* Leaving behind such a deep directory is not polite.
18490 So clean up here, right away, even though the driving
18491 shell script would also clean up. */
18495 /* Try rmdir first, in case the chdir failed. */
18497 for (i = 0; i <= n_chdirs; i++)
18499 if (chdir ("..") < 0)
18501 if (rmdir (DIR_NAME) != 0)
18511 if ac_fn_c_try_run
"$LINENO"; then :
18512 gl_cv_func_getcwd_path_max
=yes
18515 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
18516 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
18517 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
18518 *) gl_cv_func_getcwd_path_max
=no
;;
18521 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18522 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
18528 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
18530 case "$gl_cv_func_getcwd_null" in
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
18539 $as_echo_n "checking for getpagesize... " >&6; }
18540 if ${gl_cv_func_getpagesize+:} false
; then :
18541 $as_echo_n "(cached) " >&6
18543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18544 /* end confdefs.h. */
18545 #include <unistd.h>
18549 return getpagesize();
18555 if ac_fn_c_try_link
"$LINENO"; then :
18556 gl_cv_func_getpagesize
=yes
18558 gl_cv_func_getpagesize
=no
18560 rm -f core conftest.err conftest.
$ac_objext \
18561 conftest
$ac_exeext conftest.
$ac_ext
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
18565 $as_echo "$gl_cv_func_getpagesize" >&6; }
18567 if test $gl_cv_func_getpagesize = yes; then
18569 cat >>confdefs.h
<<_ACEOF
18570 #define HAVE_GETPAGESIZE 1
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
18576 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
18577 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
18578 $as_echo_n "(cached) " >&6
18580 # Remove any remnants of a previous test.
18581 rm -rf confdir-14B---
18582 # Arrange for deletion of the temporary directory this test creates.
18583 ac_clean_files
="$ac_clean_files confdir-14B---"
18584 if test "$cross_compiling" = yes; then :
18586 # Guess no on musl systems.
18587 *-musl*) gl_cv_func_getcwd_abort_bug
="guessing no" ;;
18588 # Guess yes otherwise, even on glibc systems.
18589 *) gl_cv_func_getcwd_abort_bug
="guessing yes"
18593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18594 /* end confdefs.h. */
18597 #include <stdlib.h>
18599 # include <unistd.h>
18600 #else /* on Windows with MSVC */
18601 # include <direct.h>
18603 #include <string.h>
18604 #include <sys/stat.h>
18607 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
18609 # include <unistd.h>
18611 #include <limits.h>
18612 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
18613 # include <sys/param.h>
18615 #if !defined PATH_MAX && defined MAXPATHLEN
18616 # define PATH_MAX MAXPATHLEN
18620 # define PATH_MAX 1024
18622 #if defined _WIN32 && ! defined __CYGWIN__
18624 # define PATH_MAX 260
18628 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
18632 # define S_IRWXU 0700
18635 /* FIXME: skip the run-test altogether on systems without getpagesize. */
18636 #if ! HAVE_GETPAGESIZE
18637 # define getpagesize() 0
18640 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
18641 the 16kB pagesize on ia64 linux. Those conditions make the code below
18642 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
18643 #define TARGET_LEN (5 * 1024)
18649 size_t initial_cwd_len;
18652 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
18653 this relatively expensive and invasive test if that's not true. */
18655 int bug_possible = PATH_MAX < getpagesize ();
18657 int bug_possible = 0;
18659 if (! bug_possible)
18662 cwd = getcwd (NULL, 0);
18666 initial_cwd_len = strlen (cwd);
18671 static char const dir_name[] = "confdir-14B---";
18672 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
18673 / sizeof dir_name);
18675 for (d = 0; d < desired_depth; d++)
18677 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
18679 if (! (errno == ERANGE || errno == ENAMETOOLONG
18680 || errno == ENOENT))
18681 fail = 3; /* Unable to construct deep hierarchy. */
18686 /* If libc has the bug in question, this invocation of getcwd
18687 results in a failed assertion. */
18688 cwd = getcwd (NULL, 0);
18690 fail = 4; /* getcwd didn't assert, but it failed for a long name
18691 where the answer could have been learned. */
18694 /* Call rmdir first, in case the above chdir failed. */
18698 if (chdir ("..") < 0)
18711 if ac_fn_c_try_run
"$LINENO"; then :
18712 gl_cv_func_getcwd_abort_bug
=no
18715 if test $ret -ge 128 ||
test $ret = 4; then
18716 gl_cv_func_getcwd_abort_bug
=yes
18718 gl_cv_func_getcwd_abort_bug
=no
18722 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18723 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
18729 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
18730 case "$gl_cv_func_getcwd_abort_bug" in
18743 case "$gl_cv_func_getcwd_path_max" in
18744 *"no" |
*"no, it has the AIX bug") ;;
18747 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
18751 case "$gl_cv_func_getcwd_path_max" in
18752 *"no, but it is partly working")
18754 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
18757 *"yes, but with shorter paths")
18759 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
18764 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
18765 ||
test $gl_cv_func_getcwd_posix_signature != yes \
18766 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
18767 ||
test $gl_abort_bug = yes; then
18771 if test $REPLACE_GETCWD = 1; then
18780 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
18790 cat >>confdefs.h
<<_ACEOF
18791 #define GNULIB_GETCWD 1
18806 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18815 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
18822 if test $REPLACE_GETCWD = 1; then
18831 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
18845 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
18854 if test $ac_cv_func_getdtablesize = yes &&
18855 test $ac_cv_have_decl_getdtablesize = yes; then
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
18857 $as_echo_n "checking whether getdtablesize works... " >&6; }
18858 if ${gl_cv_func_getdtablesize_works+:} false
; then :
18859 $as_echo_n "(cached) " >&6
18862 vms
*) gl_cv_func_getdtablesize_works
="no (limitation)" ;;
18864 if test "$cross_compiling" = yes; then :
18866 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
18867 gl_cv_func_getdtablesize_works
="guessing no" ;;
18868 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
18872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18875 #include <unistd.h>
18879 int size = getdtablesize();
18880 if (dup2 (0, getdtablesize()) != -1)
18882 if (size != getdtablesize())
18889 if ac_fn_c_try_run
"$LINENO"; then :
18890 gl_cv_func_getdtablesize_works
=yes
18892 gl_cv_func_getdtablesize_works
=no
18894 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18895 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
18903 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
18904 case "$gl_cv_func_getdtablesize_works" in
18905 *yes |
"no (limitation)") ;;
18906 *) REPLACE_GETDTABLESIZE
=1 ;;
18909 HAVE_GETDTABLESIZE
=0
18912 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
18921 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
18930 GNULIB_GETDTABLESIZE
=1
18936 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
18946 if test $ac_cv_have_decl_getlogin_r = no
; then
18947 HAVE_DECL_GETLOGIN_R
=0
18951 if test $ac_cv_func_getlogin_r = no
; then
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
18957 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
18958 if ${gl_cv_func_getlogin_r_works+:} false
; then :
18959 $as_echo_n "(cached) " >&6
18963 # Guess no on Mac OS X, OSF/1.
18964 darwin
* | osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
18965 # Guess yes otherwise.
18966 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
18968 if test "$cross_compiling" = yes; then :
18971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h. */
18974 #include <stddef.h>
18975 #include <string.h>
18976 #include <unistd.h>
18977 #if !HAVE_DECL_GETLOGIN_R
18979 # ifdef __cplusplus
18982 int getlogin_r (char *, size_t);
18990 if (getlogin_r (buf, 0) == 0)
18992 if (getlogin_r (buf, 1) == 0)
18994 if (getlogin_r (buf, 100) == 0)
18996 size_t n = strlen (buf);
18997 if (getlogin_r (buf, n) == 0)
19003 if ac_fn_c_try_run
"$LINENO"; then :
19004 gl_cv_func_getlogin_r_works
=yes
19006 gl_cv_func_getlogin_r_works
=no
19008 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19009 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
19015 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
19016 case "$gl_cv_func_getlogin_r_works" in
19018 *) REPLACE_GETLOGIN_R
=1 ;;
19022 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
19031 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
19042 GNULIB_GETLOGIN_R
=1
19048 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
19057 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
19059 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
19065 cat >>confdefs.h
<<_ACEOF
19066 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
19068 if test $ac_have_decl = 1; then :
19072 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
19074 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
19080 cat >>confdefs.h
<<_ACEOF
19081 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
19083 if test $ac_have_decl = 1; then :
19087 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
19089 if test "x$ac_cv_have_decl___argv" = xyes
; then :
19095 cat >>confdefs.h
<<_ACEOF
19096 #define HAVE_DECL___ARGV $ac_have_decl
19098 if test $ac_have_decl = 1; then :
19103 # Incur the cost of this test only if none of the above worked.
19104 if test $ac_found = 0; then
19105 # On OpenBSD 5.1, using the global __progname variable appears to be
19106 # the only way to implement getprogname.
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
19108 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
19109 if ${gl_cv_var___progname+:} false
; then :
19110 $as_echo_n "(cached) " >&6
19113 gl_cv_var___progname
=
19114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h. */
19116 extern char *__progname;
19120 return *__progname;
19126 if ac_fn_c_try_link
"$LINENO"; then :
19127 gl_cv_var___progname
=yes
19130 rm -f core conftest.err conftest.
$ac_objext \
19131 conftest
$ac_exeext conftest.
$ac_ext
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
19136 $as_echo "$gl_cv_var___progname" >&6; }
19137 if test "$gl_cv_var___progname" = yes; then
19139 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
19153 gl_gettimeofday_timezone
=void
19154 if test $ac_cv_func_gettimeofday != yes; then
19155 HAVE_GETTIMEOFDAY
=0
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
19162 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
19163 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
19164 $as_echo_n "(cached) " >&6
19166 if test "$cross_compiling" = yes; then :
19167 # When cross-compiling:
19169 # Guess all is fine on glibc systems.
19170 *-gnu* | gnu
*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
19171 # Guess all is fine on musl systems.
19172 *-musl*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
19173 # Guess no on native Windows.
19174 mingw
*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
19175 # If we don't know, obey --enable-cross-guesses.
19176 *) gl_cv_func_gettimeofday_clobber
="$gl_cross_guess_inverted" ;;
19180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h. */
19182 #include <string.h>
19183 #include <sys/time.h>
19185 #include <stdlib.h>
19193 struct tm saved_lt;
19195 lt = localtime (&t);
19197 gettimeofday (&tv, NULL);
19198 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
19204 if ac_fn_c_try_run
"$LINENO"; then :
19205 gl_cv_func_gettimeofday_clobber
=no
19207 gl_cv_func_gettimeofday_clobber
=yes
19209 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19210 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
19215 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
19217 case "$gl_cv_func_gettimeofday_clobber" in
19219 REPLACE_GETTIMEOFDAY
=1
19221 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
19226 NEED_LOCALTIME_BUFFER
=1
19228 REPLACE_LOCALTIME
=1
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
19234 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
19235 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
19236 $as_echo_n "(cached) " >&6
19238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19239 /* end confdefs.h. */
19240 #include <sys/time.h>
19242 int gettimeofday (struct timeval *restrict, void *restrict);
19247 /* glibc uses struct timezone * rather than the POSIX void *
19248 if _GNU_SOURCE is defined. However, since the only portable
19249 use of gettimeofday uses NULL as the second parameter, and
19250 since the glibc definition is actually more typesafe, it is
19251 not worth wrapping this to get a compliant signature. */
19252 int (*f) (struct timeval *restrict, void *restrict)
19255 return !(x | c.tv_sec | c.tv_usec);
19261 if ac_fn_c_try_compile
"$LINENO"; then :
19262 gl_cv_func_gettimeofday_posix_signature
=yes
19264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h. */
19266 #include <sys/time.h>
19267 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
19277 if ac_fn_c_try_compile
"$LINENO"; then :
19278 gl_cv_func_gettimeofday_posix_signature
=almost
19280 gl_cv_func_gettimeofday_posix_signature
=no
19282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
19287 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
19288 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
19289 gl_gettimeofday_timezone
='struct timezone'
19290 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
19291 REPLACE_GETTIMEOFDAY
=1
19293 if test $REPLACE_STRUCT_TIMEVAL = 1; then
19294 REPLACE_GETTIMEOFDAY
=1
19297 mingw
*) REPLACE_GETTIMEOFDAY
=1 ;;
19301 cat >>confdefs.h
<<_ACEOF
19302 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
19306 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
19315 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
19324 GNULIB_GETTIMEOFDAY
=1
19330 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
19338 if test $ac_cv_func_glob = no
; then
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1 or 2" >&5
19343 $as_echo_n "checking for GNU glob interface version 1 or 2... " >&6; }
19344 if ${gl_cv_gnu_glob_interface_version_1_2+:} false
; then :
19345 $as_echo_n "(cached) " >&6
19347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19348 /* end confdefs.h. */
19349 #include <gnu-versions.h>
19350 char a[_GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2 ? 1 : -1];
19352 if ac_fn_c_try_compile
"$LINENO"; then :
19353 gl_cv_gnu_glob_interface_version_1_2
=yes
19355 gl_cv_gnu_glob_interface_version_1_2
=no
19357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1_2" >&5
19360 $as_echo "$gl_cv_gnu_glob_interface_version_1_2" >&6; }
19361 if test "$gl_cv_gnu_glob_interface_version_1_2" = "no"; then
19365 if test $REPLACE_GLOB = 0; then
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
19367 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
19368 if ${gl_cv_glob_lists_symlinks+:} false
; then :
19369 $as_echo_n "(cached) " >&6
19371 if test $cross_compiling != yes; then
19372 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
19373 gl_cv_glob_lists_symlinks
=maybe
19375 # If we can't make a symlink, then we cannot test this issue. Be
19376 # pessimistic about this.
19377 gl_cv_glob_lists_symlinks
=no
19379 if test $gl_cv_glob_lists_symlinks = maybe
; then
19380 if test "$cross_compiling" = yes; then :
19384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19385 /* end confdefs.h. */
19386 #include <stddef.h>
19392 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
19399 if ac_fn_c_try_run
"$LINENO"; then :
19400 gl_cv_glob_lists_symlinks
=yes
19402 gl_cv_glob_lists_symlinks
=no
19404 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19405 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19409 rm -f conf$$
-globtest
19411 gl_cv_glob_lists_symlinks
="$gl_cross_guess_normal"
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
19416 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
19417 case "$gl_cv_glob_lists_symlinks" in
19419 *) REPLACE_GLOB
=1 ;;
19425 if test $ac_cv_func_glob_pattern_p = no
; then
19426 HAVE_GLOB_PATTERN_P
=0
19428 if test $REPLACE_GLOB = 1; then
19429 REPLACE_GLOB_PATTERN_P
=1
19433 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
19437 if test -n "$GLOB_H"; then
19438 GL_GENERATE_GLOB_H_TRUE
=
19439 GL_GENERATE_GLOB_H_FALSE
='#'
19441 GL_GENERATE_GLOB_H_TRUE
='#'
19442 GL_GENERATE_GLOB_H_FALSE
=
19448 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
19457 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
19467 gl_LIBOBJS
="$gl_LIBOBJS globfree.$ac_objext"
19475 if test $HAVE_GLOB_PATTERN_P = 0 ||
test $REPLACE_GLOB_PATTERN_P = 1; then
19484 gl_LIBOBJS
="$gl_LIBOBJS glob_pattern_p.$ac_objext"
19498 $as_echo "#define GNULIB_TEST_GLOB 1" >>confdefs.h
19516 if test $ac_cv_header_sys_socket_h != yes; then
19517 for ac_header
in winsock2.h
19519 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19520 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
19521 cat >>confdefs.h
<<_ACEOF
19522 #define HAVE_WINSOCK2_H 1
19530 if test "$ac_cv_header_winsock2_h" = yes; then
19532 UNISTD_H_HAVE_WINSOCK2_H
=1
19533 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
19539 if test $HAVE_WINSOCK2_H = 1; then
19540 REPLACE_INET_NTOP
=1
19541 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
19543 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
19549 cat >>confdefs.h
<<_ACEOF
19550 #define HAVE_DECL_INET_NTOP $ac_have_decl
19553 if test $ac_cv_have_decl_inet_ntop = yes; then
19554 INET_NTOP_LIB
="-lws2_32"
19556 HAVE_DECL_INET_NTOP
=0
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
19561 $as_echo_n "checking for library containing inet_ntop... " >&6; }
19562 if ${ac_cv_search_inet_ntop+:} false
; then :
19563 $as_echo_n "(cached) " >&6
19565 ac_func_search_save_LIBS
=$LIBS
19566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19567 /* end confdefs.h. */
19569 /* Override any GCC internal prototype to avoid an error.
19570 Use char because int might match the return type of a GCC
19571 builtin and then its argument prototype would still apply. */
19579 return inet_ntop ();
19584 for ac_lib
in '' nsl resolv network
; do
19585 if test -z "$ac_lib"; then
19586 ac_res
="none required"
19589 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
19591 if ac_fn_c_try_link
"$LINENO"; then :
19592 ac_cv_search_inet_ntop
=$ac_res
19594 rm -f core conftest.err conftest.
$ac_objext \
19596 if ${ac_cv_search_inet_ntop+:} false
; then :
19600 if ${ac_cv_search_inet_ntop+:} false
; then :
19603 ac_cv_search_inet_ntop
=no
19605 rm conftest.
$ac_ext
19606 LIBS
=$ac_func_search_save_LIBS
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
19609 $as_echo "$ac_cv_search_inet_ntop" >&6; }
19610 ac_res
=$ac_cv_search_inet_ntop
19611 if test "$ac_res" != no
; then :
19612 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
19615 for ac_func
in inet_ntop
19617 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
19618 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
19619 cat >>confdefs.h
<<_ACEOF
19620 #define HAVE_INET_NTOP 1
19626 if test $ac_cv_func_inet_ntop = no
; then
19634 if test "$ac_cv_search_inet_ntop" != "no" \
19635 && test "$ac_cv_search_inet_ntop" != "none required"; then
19636 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
19640 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
19642 # include <netdb.h>
19646 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
19652 cat >>confdefs.h
<<_ACEOF
19653 #define HAVE_DECL_INET_NTOP $ac_have_decl
19656 if test $ac_cv_have_decl_inet_ntop = no
; then
19657 HAVE_DECL_INET_NTOP
=0
19662 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
19671 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
19693 if test -n "$STDINT_H"; then
19694 PRIPTR_PREFIX
='"l"'
19696 for glpfx
in '' l ll I64
; do
19698 '') gltype1
='int';;
19699 l
) gltype1
='long int';;
19700 ll
) gltype1
='long long int';;
19701 I64
) gltype1
='__int64';;
19703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19704 /* end confdefs.h. */
19705 #include <stdint.h>
19706 extern intptr_t foo;
19707 extern $gltype1 foo;
19716 if ac_fn_c_try_compile
"$LINENO"; then :
19717 PRIPTR_PREFIX
='"'$glpfx'"'
19719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19720 test -n "$PRIPTR_PREFIX" && break
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
19727 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
19728 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
19729 $as_echo_n "(cached) " >&6
19731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19732 /* end confdefs.h. */
19733 /* Work also in C++ mode. */
19734 #define __STDC_LIMIT_MACROS 1
19736 /* Work if build is not clean. */
19737 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19739 #include <limits.h>
19741 #include <stdint.h>
19744 #if defined INT32_MAX && defined INTMAX_MAX
19745 #define CONDITION (INT32_MAX < INTMAX_MAX)
19746 #elif HAVE_LONG_LONG_INT
19747 #define CONDITION (sizeof (int) < sizeof (long long int))
19749 #define CONDITION 0
19751 int test[CONDITION ? 1 : -1];
19760 if ac_fn_c_try_compile
"$LINENO"; then :
19761 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
19763 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
19765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
19768 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
19769 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
19770 INT32_MAX_LT_INTMAX_MAX
=1;
19772 INT32_MAX_LT_INTMAX_MAX
=0;
19776 if test $APPLE_UNIVERSAL_BUILD = 0; then
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
19779 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
19780 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
19781 $as_echo_n "(cached) " >&6
19783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19784 /* end confdefs.h. */
19785 /* Work also in C++ mode. */
19786 #define __STDC_LIMIT_MACROS 1
19788 /* Work if build is not clean. */
19789 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19791 #include <limits.h>
19793 #include <stdint.h>
19796 #if defined INT64_MAX
19797 #define CONDITION (INT64_MAX == LONG_MAX)
19798 #elif HAVE_LONG_LONG_INT
19799 #define CONDITION (sizeof (long long int) == sizeof (long int))
19801 #define CONDITION 0
19803 int test[CONDITION ? 1 : -1];
19812 if ac_fn_c_try_compile
"$LINENO"; then :
19813 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
19815 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
19817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
19820 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
19821 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
19822 INT64_MAX_EQ_LONG_MAX
=1;
19824 INT64_MAX_EQ_LONG_MAX
=0;
19829 INT64_MAX_EQ_LONG_MAX
=-1
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
19833 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
19834 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
19835 $as_echo_n "(cached) " >&6
19837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19838 /* end confdefs.h. */
19839 /* Work also in C++ mode. */
19840 #define __STDC_LIMIT_MACROS 1
19842 /* Work if build is not clean. */
19843 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19845 #include <limits.h>
19847 #include <stdint.h>
19850 #if defined UINT32_MAX && defined UINTMAX_MAX
19851 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
19852 #elif HAVE_LONG_LONG_INT
19853 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
19855 #define CONDITION 0
19857 int test[CONDITION ? 1 : -1];
19866 if ac_fn_c_try_compile
"$LINENO"; then :
19867 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
19869 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
19871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
19874 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
19875 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
19876 UINT32_MAX_LT_UINTMAX_MAX
=1;
19878 UINT32_MAX_LT_UINTMAX_MAX
=0;
19882 if test $APPLE_UNIVERSAL_BUILD = 0; then
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
19885 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
19886 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
19887 $as_echo_n "(cached) " >&6
19889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19890 /* end confdefs.h. */
19891 /* Work also in C++ mode. */
19892 #define __STDC_LIMIT_MACROS 1
19894 /* Work if build is not clean. */
19895 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
19897 #include <limits.h>
19899 #include <stdint.h>
19902 #if defined UINT64_MAX
19903 #define CONDITION (UINT64_MAX == ULONG_MAX)
19904 #elif HAVE_LONG_LONG_INT
19905 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
19907 #define CONDITION 0
19909 int test[CONDITION ? 1 : -1];
19918 if ac_fn_c_try_compile
"$LINENO"; then :
19919 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
19921 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
19923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
19926 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
19927 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
19928 UINT64_MAX_EQ_ULONG_MAX
=1;
19930 UINT64_MAX_EQ_ULONG_MAX
=0;
19935 UINT64_MAX_EQ_ULONG_MAX
=-1
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
19943 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
19944 if ${gl_cv_func_isnand_no_libm+:} false
; then :
19945 $as_echo_n "(cached) " >&6
19948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19949 /* end confdefs.h. */
19953 # define isnand(x) __builtin_isnan ((double)(x))
19956 # define isnand(x) isnan ((double)(x))
19967 if ac_fn_c_try_link
"$LINENO"; then :
19968 gl_cv_func_isnand_no_libm
=yes
19970 gl_cv_func_isnand_no_libm
=no
19972 rm -f core conftest.err conftest.
$ac_objext \
19973 conftest
$ac_exeext conftest.
$ac_ext
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
19977 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
19979 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
19980 if test $gl_cv_func_isnand_no_libm = yes; then
19982 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
19986 if test $gl_func_isnand_no_libm != yes; then
19995 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
20004 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
20005 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
20006 $as_echo_n "(cached) " >&6
20009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h. */
20014 # define isnanl(x) __builtin_isnanl ((long double)(x))
20015 #elif defined isnan
20017 # define isnanl(x) isnan ((long double)(x))
20028 if ac_fn_c_try_link
"$LINENO"; then :
20029 gl_cv_func_isnanl_no_libm
=yes
20031 gl_cv_func_isnanl_no_libm
=no
20033 rm -f core conftest.err conftest.
$ac_objext \
20034 conftest
$ac_exeext conftest.
$ac_ext
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
20038 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
20040 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
20041 if test $gl_func_isnanl_no_libm = yes; then
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
20047 $as_echo_n "checking whether isnanl works... " >&6; }
20048 if ${gl_cv_func_isnanl_works+:} false
; then :
20049 $as_echo_n "(cached) " >&6
20052 if test "$cross_compiling" = yes; then :
20054 mingw
*) # Guess yes on mingw, no on MSVC.
20055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20056 /* end confdefs.h. */
20063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20064 $EGREP "Known" >/dev
/null
2>&1; then :
20065 gl_cv_func_isnanl_works
="guessing yes"
20067 gl_cv_func_isnanl_works
="guessing no"
20072 *) gl_cv_func_isnanl_works
="guessing yes" ;;
20076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20077 /* end confdefs.h. */
20080 #include <limits.h>
20084 # define isnanl(x) __builtin_isnanl ((long double)(x))
20085 #elif defined isnan
20087 # define isnanl(x) isnan ((long double)(x))
20090 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20091 typedef union { unsigned int word[NWORDS]; long double value; }
20092 memory_long_double;
20093 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
20094 runtime type conversion. */
20096 static long double NaNl ()
20099 return zero / zero;
20102 # define NaNl() (0.0L / 0.0L)
20108 if (!isnanl (NaNl ()))
20112 memory_long_double m;
20115 /* The isnanl function should be immune against changes in the sign bit and
20116 in the mantissa bits. The xor operation twiddles a bit that can only be
20117 a sign bit or a mantissa bit (since the exponent never extends to
20120 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
20121 for (i = 0; i < NWORDS; i++)
20123 if (!isnanl (m.value))
20127 #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
20128 /* Representation of an 80-bit 'long double' as an initializer for a sequence
20129 of 'unsigned int' words. */
20130 # ifdef WORDS_BIGENDIAN
20131 # define LDBL80_WORDS(exponent,manthi,mantlo) \
20132 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
20133 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
20134 (unsigned int) (mantlo) << 16 \
20137 # define LDBL80_WORDS(exponent,manthi,mantlo) \
20138 { mantlo, manthi, exponent }
20141 static memory_long_double x =
20142 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
20143 if (!isnanl (x.value))
20147 /* Signalling NaN. */
20148 static memory_long_double x =
20149 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
20150 if (!isnanl (x.value))
20153 /* isnanl should return something even for noncanonical values. */
20154 { /* Pseudo-NaN. */
20155 static memory_long_double x =
20156 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
20157 if (isnanl (x.value) && !isnanl (x.value))
20160 { /* Pseudo-Infinity. */
20161 static memory_long_double x =
20162 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
20163 if (isnanl (x.value) && !isnanl (x.value))
20166 { /* Pseudo-Zero. */
20167 static memory_long_double x =
20168 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
20169 if (isnanl (x.value) && !isnanl (x.value))
20172 { /* Unnormalized number. */
20173 static memory_long_double x =
20174 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
20175 if (isnanl (x.value) && !isnanl (x.value))
20178 { /* Pseudo-Denormal. */
20179 static memory_long_double x =
20180 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
20181 if (isnanl (x.value) && !isnanl (x.value))
20189 if ac_fn_c_try_run
"$LINENO"; then :
20190 gl_cv_func_isnanl_works
=yes
20192 gl_cv_func_isnanl_works
=no
20194 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20195 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
20201 $as_echo "$gl_cv_func_isnanl_works" >&6; }
20203 case "$gl_cv_func_isnanl_works" in
20205 *) gl_func_isnanl_no_libm
=no
;;
20208 if test $gl_func_isnanl_no_libm = yes; then
20210 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
20214 if test $gl_func_isnanl_no_libm != yes; then
20223 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
20229 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
20230 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
20231 $as_echo_n "(cached) " >&6
20234 if test "$cross_compiling" = yes; then :
20236 gl_cv_cc_long_double_expbit0
="unknown"
20238 mingw
*) # On native Windows (little-endian), we know the result
20239 # in two cases: mingw, MSVC.
20240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20241 /* end confdefs.h. */
20248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20249 $EGREP "Known" >/dev
/null
2>&1; then :
20250 gl_cv_cc_long_double_expbit0
="word 2 bit 0"
20254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h. */
20262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20263 $EGREP "Known" >/dev
/null
2>&1; then :
20264 gl_cv_cc_long_double_expbit0
="word 1 bit 20"
20272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20273 /* end confdefs.h. */
20276 #include <stddef.h>
20278 #include <string.h>
20280 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20281 typedef union { long double value; unsigned int word[NWORDS]; }
20282 memory_long_double;
20283 static unsigned int ored_words[NWORDS];
20284 static unsigned int anded_words[NWORDS];
20285 static void add_to_ored_words (long double x)
20287 memory_long_double m;
20289 /* Clear it first, in case
20290 sizeof (long double) < sizeof (memory_long_double). */
20291 memset (&m, 0, sizeof (memory_long_double));
20293 for (i = 0; i < NWORDS; i++)
20295 ored_words[i] |= m.word[i];
20296 anded_words[i] &= m.word[i];
20302 FILE *fp = fopen ("conftest.out", "w");
20305 for (j = 0; j < NWORDS; j++)
20306 anded_words[j] = ~ (unsigned int) 0;
20307 add_to_ored_words (0.25L);
20308 add_to_ored_words (0.5L);
20309 add_to_ored_words (1.0L);
20310 add_to_ored_words (2.0L);
20311 add_to_ored_words (4.0L);
20312 /* Remove bits that are common (e.g. if representation of the first mantissa
20313 bit is explicit). */
20314 for (j = 0; j < NWORDS; j++)
20315 ored_words[j] &= ~anded_words[j];
20316 /* Now find the nonzero word. */
20317 for (j = 0; j < NWORDS; j++)
20318 if (ored_words[j] != 0)
20323 for (i = j + 1; i < NWORDS; i++)
20324 if (ored_words[i] != 0)
20326 fprintf (fp, "unknown");
20327 return (fclose (fp) != 0);
20330 if ((ored_words[j] >> i) & 1)
20332 fprintf (fp, "word %d bit %d", (int) j, (int) i);
20333 return (fclose (fp) != 0);
20336 fprintf (fp, "unknown");
20337 return (fclose (fp) != 0);
20341 if ac_fn_c_try_run
"$LINENO"; then :
20342 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
20344 gl_cv_cc_long_double_expbit0
="unknown"
20346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20347 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
20354 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
20355 case "$gl_cv_cc_long_double_expbit0" in
20357 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20358 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
20360 cat >>confdefs.h
<<_ACEOF
20361 #define LDBL_EXPBIT0_WORD $word
20365 cat >>confdefs.h
<<_ACEOF
20366 #define LDBL_EXPBIT0_BIT $bit
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
20378 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
20379 if ${gl_cv_c___inline+:} false
; then :
20380 $as_echo_n "(cached) " >&6
20382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20383 /* end confdefs.h. */
20385 static __inline foo_t foo (void) { return 0; }
20394 if ac_fn_c_try_compile
"$LINENO"; then :
20395 gl_cv_c___inline
=yes
20397 gl_cv_c___inline
=no
20399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
20402 $as_echo "$gl_cv_c___inline" >&6; }
20403 if test $gl_cv_c___inline = yes; then
20405 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
20413 LOCALCHARSET_TESTS_ENVIRONMENT
=
20424 gl_LIBOBJS
="$gl_LIBOBJS localtime-buffer.$ac_objext"
20428 if test "$gl_threads_api" = posix
; then
20429 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
20430 # pthread_rwlock_* functions.
20432 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
20434 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
20437 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
20441 if $has_rwlock; then
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
20445 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
20446 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false
; then :
20447 $as_echo_n "(cached) " >&6
20450 LIBS
="$LIBS $LIBMULTITHREAD"
20451 if test "$cross_compiling" = yes; then :
20453 # Guess no on glibc systems.
20454 *-gnu* | gnu
*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
20455 # Guess no on musl systems.
20456 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
20457 # Guess no on bionic systems.
20458 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no" ;;
20459 # Guess yes on native Windows with the mingw-w64 winpthreads library.
20460 # Guess no on native Windows with the gnulib windows-rwlock module.
20461 mingw
*) if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
20462 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing yes"
20464 gl_cv_pthread_rwlock_rdlock_prefer_writer
="guessing no"
20467 # If we don't know, obey --enable-cross-guesses.
20468 *) gl_cv_pthread_rwlock_rdlock_prefer_writer
="$gl_cross_guess_normal" ;;
20472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20473 /* end confdefs.h. */
20476 #include <pthread.h>
20477 #include <stdlib.h>
20478 #include <unistd.h>
20480 #define SUCCEED() exit (0)
20481 #define FAILURE() exit (1)
20482 #define UNEXPECTED(n) (exit (10 + (n)))
20484 /* The main thread creates the waiting writer and the requesting reader threads
20485 in the default way; this guarantees that they have the same priority.
20486 We can reuse the main thread as first reader thread. */
20488 static pthread_rwlock_t lock;
20489 static pthread_t reader1;
20490 static pthread_t writer;
20491 static pthread_t reader2;
20492 static pthread_t timer;
20493 /* Used to pass control from writer to reader2 and from reader2 to timer,
20494 as in a relay race.
20495 Passing control from one running thread to another running thread
20496 is most likely faster than to create the second thread. */
20497 static pthread_mutex_t baton;
20500 timer_func (void *ignored)
20502 /* Step 13 (can be before or after step 12):
20503 The timer thread takes the baton, then waits a moment to make sure
20504 it can tell whether the second reader thread is blocked at step 12. */
20505 if (pthread_mutex_lock (&baton))
20508 /* By the time we get here, it's clear that the second reader thread is
20509 blocked at step 12. This is the desired behaviour. */
20514 reader2_func (void *ignored)
20518 /* Step 8 (can be before or after step 7):
20519 The second reader thread takes the baton, then waits a moment to make sure
20520 the writer thread has reached step 7. */
20521 if (pthread_mutex_lock (&baton))
20524 /* Step 9: The second reader thread requests the lock. */
20525 err = pthread_rwlock_tryrdlock (&lock);
20528 else if (err != EBUSY)
20530 /* Step 10: Launch a timer, to test whether the next call blocks. */
20531 if (pthread_create (&timer, NULL, timer_func, NULL))
20533 /* Step 11: Release the baton. */
20534 if (pthread_mutex_unlock (&baton))
20536 /* Step 12: The second reader thread requests the lock. */
20537 err = pthread_rwlock_rdlock (&lock);
20545 writer_func (void *ignored)
20547 /* Step 4: Take the baton, so that the second reader thread does not go ahead
20549 if (pthread_mutex_lock (&baton))
20551 /* Step 5: Create the second reader thread. */
20552 if (pthread_create (&reader2, NULL, reader2_func, NULL))
20554 /* Step 6: Release the baton. */
20555 if (pthread_mutex_unlock (&baton))
20557 /* Step 7: The writer thread requests the lock. */
20558 if (pthread_rwlock_wrlock (&lock))
20566 reader1 = pthread_self ();
20568 /* Step 1: The main thread initializes the lock and the baton. */
20569 if (pthread_rwlock_init (&lock, NULL))
20571 if (pthread_mutex_init (&baton, NULL))
20573 /* Step 2: The main thread acquires the lock as a reader. */
20574 if (pthread_rwlock_rdlock (&lock))
20576 /* Step 3: Create the writer thread. */
20577 if (pthread_create (&writer, NULL, writer_func, NULL))
20579 /* Job done. Go to sleep. */
20587 if ac_fn_c_try_run
"$LINENO"; then :
20588 gl_cv_pthread_rwlock_rdlock_prefer_writer
=yes
20590 gl_cv_pthread_rwlock_rdlock_prefer_writer
=no
20592 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20593 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
20600 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
20601 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
20604 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
20610 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
20611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20612 /* end confdefs.h. */
20614 #include <pthread.h>
20619 #if __FreeBSD__ == 4
20620 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
20621 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
20622 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
20623 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
20625 int x = (int)PTHREAD_MUTEX_RECURSIVE;
20633 if ac_fn_c_try_compile
"$LINENO"; then :
20635 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
20638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20644 cat >>confdefs.h
<<_ACEOF
20645 #define GNULIB_LOCK 1
20653 if test $ac_cv_func_lstat = yes; then
20655 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
20664 if test $REPLACE_LSTAT = 1; then
20673 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
20688 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
20695 if test $gl_cv_func_malloc_posix = yes; then
20697 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
20703 if test $REPLACE_MALLOC = 1; then
20712 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
20720 GNULIB_MALLOC_POSIX
=1
20726 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
20745 if test $gl_cv_have_include_next = yes; then
20746 gl_cv_next_math_h
='<'math.h
'>'
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
20749 $as_echo_n "checking absolute name of <math.h>... " >&6; }
20750 if ${gl_cv_next_math_h+:} false
; then :
20751 $as_echo_n "(cached) " >&6
20754 if test $ac_cv_header_math_h = yes; then
20759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h. */
20764 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
20765 *) gl_absname_cpp
="$ac_cpp" ;;
20770 gl_dirsep_regex
='[/\\]'
20773 gl_dirsep_regex
='\/'
20776 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
20777 gl_header_literal_regex
=`echo 'math.h' \
20778 | sed -e "$gl_make_literal_regex_sed"`
20779 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20780 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20786 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20787 sed -n "$gl_absolute_header_sed"`
20789 gl_header
=$gl_cv_absolute_math_h
20790 gl_cv_next_math_h
='"'$gl_header'"'
20792 gl_cv_next_math_h
='<'math.h
'>'
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
20798 $as_echo "$gl_cv_next_math_h" >&6; }
20800 NEXT_MATH_H
=$gl_cv_next_math_h
20802 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
20803 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20804 gl_next_as_first_directive
='<'math.h
'>'
20806 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20807 gl_next_as_first_directive
=$gl_cv_next_math_h
20809 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
20816 $as_echo_n "checking whether NAN macro works... " >&6; }
20817 if ${gl_cv_header_math_nan_works+:} false
; then :
20818 $as_echo_n "(cached) " >&6
20820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20821 /* end confdefs.h. */
20826 /* Solaris 10 has a broken definition of NAN. Other platforms
20827 fail to provide NAN, or provide it only in C99 mode; this
20828 test only needs to fail when NAN is provided but wrong. */
20838 if ac_fn_c_try_compile
"$LINENO"; then :
20839 gl_cv_header_math_nan_works
=yes
20841 gl_cv_header_math_nan_works
=no
20843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
20846 $as_echo "$gl_cv_header_math_nan_works" >&6; }
20847 if test $gl_cv_header_math_nan_works = no
; then
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
20851 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
20852 if ${gl_cv_header_math_huge_val_works+:} false
; then :
20853 $as_echo_n "(cached) " >&6
20855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20856 /* end confdefs.h. */
20861 /* Solaris 10 has a broken definition of HUGE_VAL. */
20862 double d = HUGE_VAL;
20868 if ac_fn_c_try_compile
"$LINENO"; then :
20869 gl_cv_header_math_huge_val_works
=yes
20871 gl_cv_header_math_huge_val_works
=no
20873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
20876 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
20877 if test $gl_cv_header_math_huge_val_works = no
; then
20895 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20901 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20902 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20903 $as_echo_n "(cached) " >&6
20907 # Guess no on AIX and OSF/1.
20908 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20909 # Guess yes otherwise.
20910 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20912 if test $LOCALE_JA != none
; then
20913 if test "$cross_compiling" = yes; then :
20916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20917 /* end confdefs.h. */
20919 #include <locale.h>
20920 #include <string.h>
20921 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20923 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20924 included before <wchar.h>. */
20925 #include <stddef.h>
20931 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20933 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20937 memset (&state, '\0', sizeof (mbstate_t));
20938 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20939 if (mbsinit (&state))
20945 if ac_fn_c_try_run
"$LINENO"; then :
20946 gl_cv_func_mbrtowc_incomplete_state
=yes
20948 gl_cv_func_mbrtowc_incomplete_state
=no
20950 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20951 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20955 if test $LOCALE_FR_UTF8 != none
; then
20956 if test "$cross_compiling" = yes; then :
20959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20960 /* end confdefs.h. */
20962 #include <locale.h>
20963 #include <string.h>
20964 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20966 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20967 included before <wchar.h>. */
20968 #include <stddef.h>
20974 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20976 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
20980 memset (&state, '\0', sizeof (mbstate_t));
20981 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20982 if (mbsinit (&state))
20988 if ac_fn_c_try_run
"$LINENO"; then :
20989 gl_cv_func_mbrtowc_incomplete_state
=yes
20991 gl_cv_func_mbrtowc_incomplete_state
=no
20993 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20994 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21002 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21008 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21009 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
21010 $as_echo_n "(cached) " >&6
21014 # Guess no on Solaris 8.
21015 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
21016 # Guess yes otherwise.
21017 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
21019 if test $LOCALE_ZH_CN != none
; then
21020 if test "$cross_compiling" = yes; then :
21023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21024 /* end confdefs.h. */
21026 #include <locale.h>
21027 #include <stdlib.h>
21028 #include <string.h>
21029 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21031 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21032 included before <wchar.h>. */
21033 #include <stddef.h>
21039 /* This fails on Solaris 8:
21040 mbrtowc returns 2, and sets wc to 0x00F0.
21041 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21042 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21044 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21048 memset (&state, '\0', sizeof (mbstate_t));
21049 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21050 && mbtowc (&wc, input + 3, 6) == 4)
21056 if ac_fn_c_try_run
"$LINENO"; then :
21057 gl_cv_func_mbrtowc_sanitycheck
=yes
21059 gl_cv_func_mbrtowc_sanitycheck
=no
21061 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21062 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21069 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21071 REPLACE_MBSTATE_T
=0
21072 case "$gl_cv_func_mbrtowc_incomplete_state" in
21074 *) REPLACE_MBSTATE_T
=1 ;;
21076 case "$gl_cv_func_mbrtowc_sanitycheck" in
21078 *) REPLACE_MBSTATE_T
=1 ;;
21081 REPLACE_MBSTATE_T
=1
21086 if test $ac_cv_func_mbrtowc = no
; then
21088 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
21089 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21091 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21092 included before <wchar.h>. */
21093 #include <stddef.h>
21099 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
21105 cat >>confdefs.h
<<_ACEOF
21106 #define HAVE_DECL_MBRTOWC $ac_have_decl
21109 if test $ac_cv_have_decl_mbrtowc = yes; then
21113 if test $REPLACE_MBSTATE_T = 1; then
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
21120 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
21121 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
21122 $as_echo_n "(cached) " >&6
21126 # Guess no on Solaris.
21127 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
21128 # Guess yes otherwise.
21129 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
21131 if test $LOCALE_FR_UTF8 != none
; then
21132 if test "$cross_compiling" = yes; then :
21135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21136 /* end confdefs.h. */
21138 #include <locale.h>
21139 #include <stdlib.h>
21140 #include <string.h>
21141 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21143 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21144 included before <wchar.h>. */
21145 #include <stddef.h>
21153 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21155 char input[] = "\303\237er";
21160 memset (&state, '\0', sizeof (mbstate_t));
21161 wc = (wchar_t) 0xBADFACE;
21162 ret = mbrtowc (&wc, input, 5, &state);
21165 if (!mbsinit (&state))
21168 memset (&state, '\0', sizeof (mbstate_t));
21169 ret = mbrtowc (NULL, input, 5, &state);
21170 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
21172 if (!mbsinit (&state))
21178 if ac_fn_c_try_run
"$LINENO"; then :
21179 gl_cv_func_mbrtowc_null_arg1
=yes
21181 gl_cv_func_mbrtowc_null_arg1
=no
21183 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21184 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
21191 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
21197 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
21198 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
21199 $as_echo_n "(cached) " >&6
21203 # Guess no on OSF/1.
21204 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
21205 # Guess yes otherwise.
21206 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
21208 if test $LOCALE_FR_UTF8 != none
; then
21209 if test "$cross_compiling" = yes; then :
21212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21213 /* end confdefs.h. */
21215 #include <locale.h>
21216 #include <string.h>
21217 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21219 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21220 included before <wchar.h>. */
21221 #include <stddef.h>
21227 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21233 memset (&state, '\0', sizeof (mbstate_t));
21234 wc = (wchar_t) 0xBADFACE;
21235 mbrtowc (&wc, NULL, 5, &state);
21236 /* Check that wc was not modified. */
21237 if (wc != (wchar_t) 0xBADFACE)
21243 if ac_fn_c_try_run
"$LINENO"; then :
21244 gl_cv_func_mbrtowc_null_arg2
=yes
21246 gl_cv_func_mbrtowc_null_arg2
=no
21248 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21249 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
21256 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
21264 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
21265 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
21266 $as_echo_n "(cached) " >&6
21270 # Guess no on HP-UX, Solaris, native Windows.
21271 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
21272 # Guess yes otherwise.
21273 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
21275 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
21276 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
21277 if test "$cross_compiling" = yes; then :
21280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21281 /* end confdefs.h. */
21283 #include <locale.h>
21284 #include <string.h>
21285 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21287 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21288 included before <wchar.h>. */
21289 #include <stddef.h>
21296 int found_some_locale = 0;
21297 /* This fails on Solaris. */
21298 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21300 char input[] = "B\303\274\303\237er"; /* "Büßer" */
21304 memset (&state, '\0', sizeof (mbstate_t));
21305 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21308 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
21311 found_some_locale = 1;
21313 /* This fails on HP-UX 11.11. */
21314 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21316 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21320 memset (&state, '\0', sizeof (mbstate_t));
21321 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21324 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
21327 found_some_locale = 1;
21329 /* This fails on native Windows. */
21330 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
21332 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
21336 memset (&state, '\0', sizeof (mbstate_t));
21337 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
21340 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
21343 found_some_locale = 1;
21345 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
21347 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
21351 memset (&state, '\0', sizeof (mbstate_t));
21352 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
21355 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
21358 found_some_locale = 1;
21360 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
21362 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
21366 memset (&state, '\0', sizeof (mbstate_t));
21367 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
21370 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
21373 found_some_locale = 1;
21375 return (found_some_locale ? result : 77);
21378 if ac_fn_c_try_run
"$LINENO"; then :
21379 gl_cv_func_mbrtowc_retval
=yes
21381 if test $?
!= 77; then
21382 gl_cv_func_mbrtowc_retval
=no
21386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
21394 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
21400 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
21401 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
21402 $as_echo_n "(cached) " >&6
21406 # Guess no on Solaris 8 and 9.
21407 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
21408 # Guess yes otherwise.
21409 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
21411 if test $LOCALE_ZH_CN != none
; then
21412 if test "$cross_compiling" = yes; then :
21415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21416 /* end confdefs.h. */
21418 #include <locale.h>
21419 #include <string.h>
21420 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21422 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21423 included before <wchar.h>. */
21424 #include <stddef.h>
21430 /* This fails on Solaris 8 and 9. */
21431 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21436 memset (&state, '\0', sizeof (mbstate_t));
21437 if (mbrtowc (&wc, "", 1, &state) != 0)
21443 if ac_fn_c_try_run
"$LINENO"; then :
21444 gl_cv_func_mbrtowc_nul_retval
=yes
21446 gl_cv_func_mbrtowc_nul_retval
=no
21448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
21456 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
21461 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
21462 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
21463 $as_echo_n "(cached) " >&6
21467 # Guess no on AIX and glibc systems.
21468 aix
* |
*-gnu* | gnu
*) gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
21469 # Guess yes on native Windows.
21470 mingw
*) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
21471 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
21473 if test "$cross_compiling" = yes; then :
21476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21477 /* end confdefs.h. */
21481 static mbstate_t mbs;
21485 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
21488 if ac_fn_c_try_run
"$LINENO"; then :
21489 gl_cv_func_mbrtowc_empty_input
=yes
21491 gl_cv_func_mbrtowc_empty_input
=no
21493 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21494 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
21500 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
21504 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
21505 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
21506 $as_echo_n "(cached) " >&6
21509 gl_cv_C_locale_sans_EILSEQ
="$gl_cross_guess_normal"
21511 if test "$cross_compiling" = yes; then :
21513 # Guess yes on native Windows.
21514 mingw
*) gl_cv_C_locale_sans_EILSEQ
="guessing yes" ;;
21518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21519 /* end confdefs.h. */
21520 #include <limits.h>
21521 #include <locale.h>
21529 char *locale = setlocale (LC_ALL, "C");
21532 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
21536 mbstate_t mbs = { 0, };
21537 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
21547 if ac_fn_c_try_run
"$LINENO"; then :
21548 gl_cv_C_locale_sans_EILSEQ
=yes
21550 gl_cv_C_locale_sans_EILSEQ
=no
21552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21553 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
21559 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
21561 case "$gl_cv_func_mbrtowc_null_arg1" in
21564 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
21569 case "$gl_cv_func_mbrtowc_null_arg2" in
21572 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
21577 case "$gl_cv_func_mbrtowc_retval" in
21580 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
21585 case "$gl_cv_func_mbrtowc_nul_retval" in
21588 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
21593 case "$gl_cv_func_mbrtowc_empty_input" in
21596 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
21601 case $gl_cv_C_locale_sans_EILSEQ in
21604 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
21612 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
21621 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
21639 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
21654 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21660 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21661 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
21662 $as_echo_n "(cached) " >&6
21666 # Guess no on AIX and OSF/1.
21667 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
21668 # Guess yes otherwise.
21669 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
21671 if test $LOCALE_JA != none
; then
21672 if test "$cross_compiling" = yes; then :
21675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21676 /* end confdefs.h. */
21678 #include <locale.h>
21679 #include <string.h>
21680 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21682 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21683 included before <wchar.h>. */
21684 #include <stddef.h>
21690 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21692 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21696 memset (&state, '\0', sizeof (mbstate_t));
21697 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21698 if (mbsinit (&state))
21704 if ac_fn_c_try_run
"$LINENO"; then :
21705 gl_cv_func_mbrtowc_incomplete_state
=yes
21707 gl_cv_func_mbrtowc_incomplete_state
=no
21709 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21710 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21714 if test $LOCALE_FR_UTF8 != none
; then
21715 if test "$cross_compiling" = yes; then :
21718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21719 /* end confdefs.h. */
21721 #include <locale.h>
21722 #include <string.h>
21723 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21725 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21726 included before <wchar.h>. */
21727 #include <stddef.h>
21733 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
21735 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
21739 memset (&state, '\0', sizeof (mbstate_t));
21740 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21741 if (mbsinit (&state))
21747 if ac_fn_c_try_run
"$LINENO"; then :
21748 gl_cv_func_mbrtowc_incomplete_state
=yes
21750 gl_cv_func_mbrtowc_incomplete_state
=no
21752 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21753 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21761 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21767 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21768 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
21769 $as_echo_n "(cached) " >&6
21773 # Guess no on Solaris 8.
21774 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
21775 # Guess yes otherwise.
21776 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
21778 if test $LOCALE_ZH_CN != none
; then
21779 if test "$cross_compiling" = yes; then :
21782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21783 /* end confdefs.h. */
21785 #include <locale.h>
21786 #include <stdlib.h>
21787 #include <string.h>
21788 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21790 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21791 included before <wchar.h>. */
21792 #include <stddef.h>
21798 /* This fails on Solaris 8:
21799 mbrtowc returns 2, and sets wc to 0x00F0.
21800 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21801 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21803 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21807 memset (&state, '\0', sizeof (mbstate_t));
21808 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21809 && mbtowc (&wc, input + 3, 6) == 4)
21815 if ac_fn_c_try_run
"$LINENO"; then :
21816 gl_cv_func_mbrtowc_sanitycheck
=yes
21818 gl_cv_func_mbrtowc_sanitycheck
=no
21820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21828 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21830 REPLACE_MBSTATE_T
=0
21831 case "$gl_cv_func_mbrtowc_incomplete_state" in
21833 *) REPLACE_MBSTATE_T
=1 ;;
21835 case "$gl_cv_func_mbrtowc_sanitycheck" in
21837 *) REPLACE_MBSTATE_T
=1 ;;
21840 REPLACE_MBSTATE_T
=1
21845 if test $ac_cv_func_mbsinit = no
; then
21847 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
21848 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21850 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21851 included before <wchar.h>. */
21852 #include <stddef.h>
21858 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
21864 cat >>confdefs.h
<<_ACEOF
21865 #define HAVE_DECL_MBSINIT $ac_have_decl
21868 if test $ac_cv_have_decl_mbsinit = yes; then
21872 if test $REPLACE_MBSTATE_T = 1; then
21876 mingw
*) REPLACE_MBSINIT
=1 ;;
21881 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
21890 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
21907 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
21921 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21927 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21928 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
21929 $as_echo_n "(cached) " >&6
21933 # Guess no on AIX and OSF/1.
21934 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
21935 # Guess yes otherwise.
21936 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
21938 if test $LOCALE_JA != none
; then
21939 if test "$cross_compiling" = yes; then :
21942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21943 /* end confdefs.h. */
21945 #include <locale.h>
21946 #include <string.h>
21947 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21949 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21950 included before <wchar.h>. */
21951 #include <stddef.h>
21957 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21959 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21963 memset (&state, '\0', sizeof (mbstate_t));
21964 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21965 if (mbsinit (&state))
21971 if ac_fn_c_try_run
"$LINENO"; then :
21972 gl_cv_func_mbrtowc_incomplete_state
=yes
21974 gl_cv_func_mbrtowc_incomplete_state
=no
21976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21981 if test $LOCALE_FR_UTF8 != none
; then
21982 if test "$cross_compiling" = yes; then :
21985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21986 /* end confdefs.h. */
21988 #include <locale.h>
21989 #include <string.h>
21990 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21992 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21993 included before <wchar.h>. */
21994 #include <stddef.h>
22000 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22002 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
22006 memset (&state, '\0', sizeof (mbstate_t));
22007 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22008 if (mbsinit (&state))
22014 if ac_fn_c_try_run
"$LINENO"; then :
22015 gl_cv_func_mbrtowc_incomplete_state
=yes
22017 gl_cv_func_mbrtowc_incomplete_state
=no
22019 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22020 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22028 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22034 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22035 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22036 $as_echo_n "(cached) " >&6
22040 # Guess no on Solaris 8.
22041 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22042 # Guess yes otherwise.
22043 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22045 if test $LOCALE_ZH_CN != none
; then
22046 if test "$cross_compiling" = yes; then :
22049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22050 /* end confdefs.h. */
22052 #include <locale.h>
22053 #include <stdlib.h>
22054 #include <string.h>
22055 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22057 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22058 included before <wchar.h>. */
22059 #include <stddef.h>
22065 /* This fails on Solaris 8:
22066 mbrtowc returns 2, and sets wc to 0x00F0.
22067 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22068 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22070 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22074 memset (&state, '\0', sizeof (mbstate_t));
22075 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22076 && mbtowc (&wc, input + 3, 6) == 4)
22082 if ac_fn_c_try_run
"$LINENO"; then :
22083 gl_cv_func_mbrtowc_sanitycheck
=yes
22085 gl_cv_func_mbrtowc_sanitycheck
=no
22087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22088 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22095 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22097 REPLACE_MBSTATE_T
=0
22098 case "$gl_cv_func_mbrtowc_incomplete_state" in
22100 *) REPLACE_MBSTATE_T
=1 ;;
22102 case "$gl_cv_func_mbrtowc_sanitycheck" in
22104 *) REPLACE_MBSTATE_T
=1 ;;
22107 REPLACE_MBSTATE_T
=1
22112 if test $ac_cv_func_mbsrtowcs = no
; then
22114 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
22115 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22117 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22118 included before <wchar.h>. */
22119 #include <stddef.h>
22125 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
22131 cat >>confdefs.h
<<_ACEOF
22132 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
22135 if test $ac_cv_have_decl_mbsrtowcs = yes; then
22136 REPLACE_MBSRTOWCS
=1
22139 if test $REPLACE_MBSTATE_T = 1; then
22140 REPLACE_MBSRTOWCS
=1
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
22149 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
22150 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
22151 $as_echo_n "(cached) " >&6
22155 # Guess no on HP-UX, Solaris, mingw.
22156 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
22157 # Guess yes otherwise.
22158 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
22160 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
22161 if test "$cross_compiling" = yes; then :
22164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22165 /* end confdefs.h. */
22167 #include <locale.h>
22168 #include <string.h>
22169 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22171 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22172 included before <wchar.h>. */
22173 #include <stddef.h>
22180 /* Test whether the function supports a NULL destination argument.
22181 This fails on native Windows. */
22182 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
22184 const char input[] = "\337er";
22185 const char *src = input;
22188 memset (&state, '\0', sizeof (mbstate_t));
22189 if (mbsrtowcs (NULL, &src, 1, &state) != 3
22193 /* Test whether the function works when started with a conversion state
22194 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
22195 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22197 const char input[] = "B\303\274\303\237er";
22200 memset (&state, '\0', sizeof (mbstate_t));
22201 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
22202 if (!mbsinit (&state))
22204 const char *src = input + 2;
22205 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
22209 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22211 const char input[] = "<\306\374\313\334\270\354>";
22214 memset (&state, '\0', sizeof (mbstate_t));
22215 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
22216 if (!mbsinit (&state))
22218 const char *src = input + 4;
22219 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
22223 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22225 const char input[] = "B\250\271\201\060\211\070er";
22228 memset (&state, '\0', sizeof (mbstate_t));
22229 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
22230 if (!mbsinit (&state))
22232 const char *src = input + 2;
22233 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
22240 if ac_fn_c_try_run
"$LINENO"; then :
22241 gl_cv_func_mbsrtowcs_works
=yes
22243 gl_cv_func_mbsrtowcs_works
=no
22245 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22246 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
22253 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
22255 case "$gl_cv_func_mbsrtowcs_works" in
22257 *) REPLACE_MBSRTOWCS
=1 ;;
22262 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
22271 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
22281 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
22298 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
22303 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
22312 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
22315 for ac_header
in bp-sym.h
22317 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
22318 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
22319 cat >>confdefs.h
<<_ACEOF
22320 #define HAVE_BP_SYM_H 1
22340 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
22346 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
22348 $as_echo_n "checking whether memmem works in linear time... " >&6; }
22349 if ${gl_cv_func_memmem_works_fast+:} false
; then :
22350 $as_echo_n "(cached) " >&6
22352 if test "$cross_compiling" = yes; then :
22353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22354 /* end confdefs.h. */
22356 #include <features.h>
22357 #ifdef __GNU_LIBRARY__
22358 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
22359 && !defined __UCLIBC__
22364 #include <cygwin/version.h>
22365 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
22371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22372 $EGREP "Lucky user" >/dev
/null
2>&1; then :
22373 gl_cv_func_memmem_works_fast
="guessing yes"
22375 gl_cv_func_memmem_works_fast
="$gl_cross_guess_normal"
22381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22382 /* end confdefs.h. */
22384 #include <signal.h> /* for signal */
22385 #include <string.h> /* for memmem */
22386 #include <stdlib.h> /* for malloc */
22387 #include <unistd.h> /* for alarm */
22388 static void quit (int sig) { _exit (sig + 128); }
22395 size_t m = 1000000;
22396 char *haystack = (char *) malloc (2 * m + 1);
22397 char *needle = (char *) malloc (m + 1);
22398 /* Failure to compile this test due to missing alarm is okay,
22399 since all such platforms (mingw) also lack memmem. */
22400 signal (SIGALRM, quit);
22402 /* Check for quadratic performance. */
22403 if (haystack && needle)
22405 memset (haystack, 'A', 2 * m);
22406 haystack[2 * m] = 'B';
22407 memset (needle, 'A', m);
22409 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
22412 /* Free allocated memory, in case some sanitizer is watching. */
22421 if ac_fn_c_try_run
"$LINENO"; then :
22422 gl_cv_func_memmem_works_fast
=yes
22424 gl_cv_func_memmem_works_fast
=no
22426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
22433 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
22434 case "$gl_cv_func_memmem_works_fast" in
22442 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
22451 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
22458 for ac_func
in memmem
22460 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
22461 if test "x$ac_cv_func_memmem" = xyes
; then :
22462 cat >>confdefs.h
<<_ACEOF
22463 #define HAVE_MEMMEM 1
22469 if test $ac_cv_func_memmem = yes; then
22475 if test $ac_cv_have_decl_memmem = no
; then
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
22479 $as_echo_n "checking whether memmem works... " >&6; }
22480 if ${gl_cv_func_memmem_works_always+:} false
; then :
22481 $as_echo_n "(cached) " >&6
22483 if test "$cross_compiling" = yes; then :
22484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22485 /* end confdefs.h. */
22487 #ifdef __GNU_LIBRARY__
22488 #include <features.h>
22489 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
22490 || __GLIBC_MINOR__ > 12)) \
22491 || (__GLIBC__ > 2)) \
22492 || defined __UCLIBC__
22495 #elif defined __CYGWIN__
22496 #include <cygwin/version.h>
22497 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
22505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22506 $EGREP "Lucky user" >/dev
/null
2>&1; then :
22507 gl_cv_func_memmem_works_always
="guessing yes"
22509 gl_cv_func_memmem_works_always
="$gl_cross_guess_normal"
22515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22516 /* end confdefs.h. */
22518 #include <string.h> /* for memmem */
22519 #define P "_EF_BF_BD"
22520 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
22521 #define NEEDLE P P P P P
22528 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
22530 /* Check for empty needle behavior. */
22532 const char *haystack = "AAA";
22533 if (memmem (haystack, 3, NULL, 0) != haystack)
22542 if ac_fn_c_try_run
"$LINENO"; then :
22543 gl_cv_func_memmem_works_always
=yes
22545 gl_cv_func_memmem_works_always
=no
22547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22548 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
22554 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
22555 case "$gl_cv_func_memmem_works_always" in
22564 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
22573 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
22587 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
22597 for ac_func
in mempcpy
22599 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
22600 if test "x$ac_cv_func_mempcpy" = xyes
; then :
22601 cat >>confdefs.h
<<_ACEOF
22602 #define HAVE_MEMPCPY 1
22608 if test $ac_cv_func_mempcpy = no
; then
22612 if test $HAVE_MEMPCPY = 0; then
22621 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
22638 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
22647 if test $ac_cv_have_decl_memrchr = no
; then
22648 HAVE_DECL_MEMRCHR
=0
22651 for ac_func
in memrchr
22653 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
22654 if test "x$ac_cv_func_memrchr" = xyes
; then :
22655 cat >>confdefs.h
<<_ACEOF
22656 #define HAVE_MEMRCHR 1
22663 if test $ac_cv_func_memrchr = no
; then
22672 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
22687 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
22694 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
22695 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
22696 $as_echo_n "(cached) " >&6
22698 rm -rf conftest.dir
22699 if test "$cross_compiling" = yes; then :
22701 # Guess yes on Linux systems.
22702 linux-
* | linux
) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
22703 # Guess yes on glibc systems.
22704 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
22705 # Guess yes on MSVC, no on mingw.
22706 mingw
*) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22707 /* end confdefs.h. */
22714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22715 $EGREP "Known" >/dev
/null
2>&1; then :
22716 gl_cv_func_mkdir_trailing_slash_works
="guessing yes"
22718 gl_cv_func_mkdir_trailing_slash_works
="guessing no"
22723 # If we don't know, obey --enable-cross-guesses.
22724 *) gl_cv_func_mkdir_trailing_slash_works
="$gl_cross_guess_normal" ;;
22728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22729 /* end confdefs.h. */
22731 # include <sys/types.h>
22732 # include <sys/stat.h>
22737 return mkdir ("conftest.dir/", 0700);
22742 if ac_fn_c_try_run
"$LINENO"; then :
22743 gl_cv_func_mkdir_trailing_slash_works
=yes
22745 gl_cv_func_mkdir_trailing_slash_works
=no
22747 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22748 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22751 rm -rf conftest.dir
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
22756 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
22757 case "$gl_cv_func_mkdir_trailing_slash_works" in
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
22765 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
22766 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
22767 $as_echo_n "(cached) " >&6
22769 rm -rf conftest.dir
22770 if test "$cross_compiling" = yes; then :
22772 # Guess yes on glibc systems.
22773 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
22774 # Guess yes on musl systems.
22775 *-musl*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
22776 # Guess no on native Windows.
22777 mingw
*) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
22778 # If we don't know, obey --enable-cross-guesses.
22779 *) gl_cv_func_mkdir_trailing_dot_works
="$gl_cross_guess_normal" ;;
22783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22784 /* end confdefs.h. */
22786 # include <sys/types.h>
22787 # include <sys/stat.h>
22792 return !mkdir ("conftest.dir/./", 0700);
22797 if ac_fn_c_try_run
"$LINENO"; then :
22798 gl_cv_func_mkdir_trailing_dot_works
=yes
22800 gl_cv_func_mkdir_trailing_dot_works
=no
22802 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22803 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22806 rm -rf conftest.dir
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
22811 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
22812 case "$gl_cv_func_mkdir_trailing_dot_works" in
22817 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
22822 if test $REPLACE_MKDIR = 1; then
22831 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
22836 for ac_func
in mkdtemp
22838 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
22839 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
22840 cat >>confdefs.h
<<_ACEOF
22841 #define HAVE_MKDTEMP 1
22847 if test $ac_cv_func_mkdtemp = no
; then
22851 if test $HAVE_MKDTEMP = 0; then
22860 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
22876 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
22886 if test $ac_cv_func_mkostemp != yes; then
22890 if test $HAVE_MKOSTEMP = 0; then
22899 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
22906 cat >>confdefs.h
<<_ACEOF
22907 #define GNULIB_MKOSTEMP 1
22922 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
22927 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22936 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
22940 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22949 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22954 cat >>confdefs.h
<<_ACEOF
22955 #define GNULIB_MSVC_NOTHROW 1
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
22962 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
22963 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
22964 $as_echo_n "(cached) " >&6
22967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22968 /* end confdefs.h. */
22969 #include <netinet/in.h>
22978 if ac_fn_c_try_compile
"$LINENO"; then :
22979 gl_cv_header_netinet_in_h_selfcontained
=yes
22981 gl_cv_header_netinet_in_h_selfcontained
=no
22983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
22987 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
22988 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
22991 NETINET_IN_H
='netinet/in.h'
22992 for ac_header
in netinet
/in.h
22994 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22995 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
22996 cat >>confdefs.h
<<_ACEOF
22997 #define HAVE_NETINET_IN_H 1
23013 if test $gl_cv_have_include_next = yes; then
23014 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
23017 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
23018 if ${gl_cv_next_netinet_in_h+:} false
; then :
23019 $as_echo_n "(cached) " >&6
23022 if test $ac_cv_header_netinet_in_h = yes; then
23027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23029 #include <netinet/in.h>
23032 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23033 *) gl_absname_cpp
="$ac_cpp" ;;
23038 gl_dirsep_regex
='[/\\]'
23041 gl_dirsep_regex
='\/'
23044 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23045 gl_header_literal_regex
=`echo 'netinet/in.h' \
23046 | sed -e "$gl_make_literal_regex_sed"`
23047 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23048 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23054 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23055 sed -n "$gl_absolute_header_sed"`
23057 gl_header
=$gl_cv_absolute_netinet_in_h
23058 gl_cv_next_netinet_in_h
='"'$gl_header'"'
23060 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
23066 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
23068 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
23070 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23072 gl_next_as_first_directive
='<'netinet
/in.h
'>'
23074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23075 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
23077 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
23082 if test $ac_cv_header_netinet_in_h = yes; then
23083 HAVE_NETINET_IN_H
=1
23085 HAVE_NETINET_IN_H
=0
23090 if test -n "$NETINET_IN_H"; then
23091 GL_GENERATE_NETINET_IN_H_TRUE
=
23092 GL_GENERATE_NETINET_IN_H_FALSE
='#'
23094 GL_GENERATE_NETINET_IN_H_TRUE
='#'
23095 GL_GENERATE_NETINET_IN_H_FALSE
=
23109 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
23115 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
23116 if ${gl_cv_func_open_slash+:} false
; then :
23117 $as_echo_n "(cached) " >&6
23119 # Assume that if we have lstat, we can also check symlinks.
23120 if test $ac_cv_func_lstat = yes; then
23122 ln -s conftest.tmp conftest.lnk
23124 if test "$cross_compiling" = yes; then :
23127 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
23128 gl_cv_func_open_slash
="guessing no" ;;
23130 gl_cv_func_open_slash
="guessing yes" ;;
23134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23135 /* end confdefs.h. */
23139 # include <unistd.h>
23145 if (open ("conftest.lnk/", O_RDONLY) != -1)
23148 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
23153 if ac_fn_c_try_run
"$LINENO"; then :
23154 gl_cv_func_open_slash
=yes
23156 gl_cv_func_open_slash
=no
23158 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23159 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23162 rm -f conftest.sl conftest.tmp conftest.lnk
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
23166 $as_echo "$gl_cv_func_open_slash" >&6; }
23167 case "$gl_cv_func_open_slash" in
23170 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
23175 case "$gl_cv_func_open_slash" in
23183 if test $REPLACE_OPEN = 0; then
23187 if test $ac_cv_func_fchdir = no
; then
23191 if test $HAVE_FCHDIR = 0; then
23198 if test $REPLACE_OPEN = 1; then
23207 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
23225 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
23235 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
23239 # Solaris 10 lacks O_CLOEXEC.
23240 # Solaris 9 has *at functions, but uniformly mishandles trailing
23241 # slash in all of them.
23249 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
23258 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
23267 cat >>confdefs.h
<<_ACEOF
23268 #define GNULIB_OPENAT 1
23282 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
23289 for ac_func
in opendir
23291 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
23292 if test "x$ac_cv_func_opendir" = xyes
; then :
23293 cat >>confdefs.h
<<_ACEOF
23294 #define HAVE_OPENDIR 1
23300 if test $ac_cv_func_opendir = no
; then
23307 if test $ac_cv_func_fchdir = no
; then
23311 if test $HAVE_FCHDIR = 0; then
23312 if test $HAVE_OPENDIR = 1; then
23317 case $host_os,$HAVE_OPENDIR in
23319 REPLACE_OPENDIR
=1;;
23322 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
23331 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
23345 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
23356 for ac_func
in rawmemchr
23358 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
23359 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
23360 cat >>confdefs.h
<<_ACEOF
23361 #define HAVE_RAWMEMCHR 1
23367 if test $ac_cv_func_rawmemchr = no
; then
23371 if test $HAVE_RAWMEMCHR = 0; then
23380 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
23395 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
23402 for ac_func
in readdir
23404 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
23405 if test "x$ac_cv_func_readdir" = xyes
; then :
23406 cat >>confdefs.h
<<_ACEOF
23407 #define HAVE_READDIR 1
23413 if test $ac_cv_func_readdir = no
; then
23417 if test $HAVE_READDIR = 0; then
23426 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
23440 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
23447 if test $ac_cv_func_readlink = no
; then
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23451 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23452 if ${gl_cv_decl_readlink_works+:} false
; then :
23453 $as_echo_n "(cached) " >&6
23455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h. */
23457 #include <unistd.h>
23458 /* Cause compilation failure if original declaration has wrong type. */
23459 ssize_t readlink (const char *, char *, size_t);
23468 if ac_fn_c_try_compile
"$LINENO"; then :
23469 gl_cv_decl_readlink_works
=yes
23471 gl_cv_decl_readlink_works
=no
23473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23476 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23478 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23479 if ${gl_cv_func_readlink_works+:} false
; then :
23480 $as_echo_n "(cached) " >&6
23482 # We have readlink, so assume ln -s works.
23483 ln -s conftest.no-such conftest.link
23484 ln -s conftest.link conftest.lnk2
23485 if test "$cross_compiling" = yes; then :
23487 # Guess yes on Linux systems.
23488 linux-
* | linux
) gl_cv_func_readlink_works
="guessing yes" ;;
23489 # Guess yes on glibc systems.
23490 *-gnu* | gnu
*) gl_cv_func_readlink_works
="guessing yes" ;;
23491 # If we don't know, obey --enable-cross-guesses.
23492 *) gl_cv_func_readlink_works
="$gl_cross_guess_normal" ;;
23496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23497 /* end confdefs.h. */
23498 #include <unistd.h>
23504 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23509 if ac_fn_c_try_run
"$LINENO"; then :
23510 gl_cv_func_readlink_works
=yes
23512 gl_cv_func_readlink_works
=no
23514 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23515 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23518 rm -f conftest.link conftest.lnk2
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23521 $as_echo "$gl_cv_func_readlink_works" >&6; }
23522 case "$gl_cv_func_readlink_works" in
23524 if test "$gl_cv_decl_readlink_works" != yes; then
23530 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23537 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
23546 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
23563 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
23570 if test $gl_cv_func_malloc_posix = yes; then
23572 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
23578 if test $REPLACE_REALLOC = 1; then
23587 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
23595 GNULIB_REALLOC_POSIX
=1
23601 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
23611 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
23612 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
23613 $as_echo_n "(cached) " >&6
23615 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
23616 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
23617 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
23618 # Assume that if we have lstat, we can also check symlinks.
23619 if test $ac_cv_func_lstat = yes; then
23620 ln -s conftest.f conftest.lnk
23622 if test "$cross_compiling" = yes; then :
23624 # Guess yes on Linux systems.
23625 linux-
* | linux
) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
23626 # Guess yes on glibc systems.
23627 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
23628 # Guess no on native Windows.
23629 mingw
*) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
23630 # If we don't know, obey --enable-cross-guesses.
23631 *) gl_cv_func_rename_slash_dst_works
="$gl_cross_guess_normal" ;;
23635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23636 /* end confdefs.h. */
23638 # include <stdio.h>
23639 # include <stdlib.h>
23645 if (rename ("conftest.f1", "conftest.f2/") == 0)
23647 if (rename ("conftest.d1", "conftest.d2/") != 0)
23650 if (rename ("conftest.f", "conftest.lnk/") == 0)
23659 if ac_fn_c_try_run
"$LINENO"; then :
23660 gl_cv_func_rename_slash_dst_works
=yes
23662 gl_cv_func_rename_slash_dst_works
=no
23664 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23665 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23668 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
23672 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
23673 case "$gl_cv_func_rename_slash_dst_works" in
23678 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
23684 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
23685 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
23686 $as_echo_n "(cached) " >&6
23688 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
23689 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
23690 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
23691 # Assume that if we have lstat, we can also check symlinks.
23692 if test $ac_cv_func_lstat = yes; then
23693 ln -s conftest.f conftest.lnk
23695 if test "$cross_compiling" = yes; then :
23697 # Guess yes on Linux systems.
23698 linux-
* | linux
) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
23699 # Guess yes on glibc systems.
23700 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
23701 # Guess yes on native Windows.
23702 mingw
*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
23703 # If we don't know, obey --enable-cross-guesses.
23704 *) gl_cv_func_rename_slash_src_works
="$gl_cross_guess_normal" ;;
23708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23709 /* end confdefs.h. */
23711 # include <stdio.h>
23712 # include <stdlib.h>
23718 if (rename ("conftest.f1/", "conftest.d3") == 0)
23720 if (rename ("conftest.d1/", "conftest.d2") != 0)
23723 if (rename ("conftest.lnk/", "conftest.f") == 0)
23732 if ac_fn_c_try_run
"$LINENO"; then :
23733 gl_cv_func_rename_slash_src_works
=yes
23735 gl_cv_func_rename_slash_src_works
=no
23737 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23738 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23741 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
23745 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
23746 case "$gl_cv_func_rename_slash_src_works" in
23751 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
23758 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
23759 if ${gl_cv_func_rename_link_works+:} false
; then :
23760 $as_echo_n "(cached) " >&6
23762 if test $ac_cv_func_link = yes; then
23763 if test $cross_compiling != yes; then
23764 rm -rf conftest.f conftest.f1 conftest.f2
23765 if touch conftest.f conftest.f2
&& ln conftest.f conftest.f1
&&
23766 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
23767 if test "$cross_compiling" = yes; then :
23771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23772 /* end confdefs.h. */
23774 # include <errno.h>
23775 # include <stdio.h>
23776 # include <stdlib.h>
23777 # include <unistd.h>
23783 if (rename ("conftest.f", "conftest.f1"))
23785 if (unlink ("conftest.f1"))
23788 /* Allow either the POSIX-required behavior, where the
23789 previous rename kept conftest.f, or the (better) NetBSD
23790 behavior, where it removed conftest.f. */
23791 if (rename ("conftest.f", "conftest.f") != 0
23792 && errno != ENOENT)
23795 if (rename ("conftest.f1", "conftest.f1") == 0)
23797 if (rename ("conftest.f2", "conftest.f2") != 0)
23805 if ac_fn_c_try_run
"$LINENO"; then :
23806 gl_cv_func_rename_link_works
=yes
23808 gl_cv_func_rename_link_works
=no
23810 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23811 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23815 gl_cv_func_rename_link_works
="guessing no"
23817 rm -rf conftest.f conftest.f1 conftest.f2
23820 # Guess yes on Linux systems.
23821 linux-
* | linux
) gl_cv_func_rename_link_works
="guessing yes" ;;
23822 # Guess yes on glibc systems.
23823 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
23824 # Guess yes on native Windows.
23825 mingw
*) gl_cv_func_rename_link_works
="guessing yes" ;;
23826 # If we don't know, obey --enable-cross-guesses.
23827 *) gl_cv_func_rename_link_works
="$gl_cross_guess_normal" ;;
23831 gl_cv_func_rename_link_works
=yes
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
23836 $as_echo "$gl_cv_func_rename_link_works" >&6; }
23837 case "$gl_cv_func_rename_link_works" in
23842 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
23848 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
23849 if ${gl_cv_func_rename_dest_works+:} false
; then :
23850 $as_echo_n "(cached) " >&6
23852 rm -rf conftest.f conftest.d1 conftest.d2
23853 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
23854 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
23855 if test "$cross_compiling" = yes; then :
23857 # Guess yes on Linux systems.
23858 linux-
* | linux
) gl_cv_func_rename_dest_works
="guessing yes" ;;
23859 # Guess yes on glibc systems.
23860 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
23861 # Guess no on native Windows.
23862 mingw
*) gl_cv_func_rename_dest_works
="guessing no" ;;
23863 # If we don't know, obey --enable-cross-guesses.
23864 *) gl_cv_func_rename_dest_works
="$gl_cross_guess_normal" ;;
23868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23869 /* end confdefs.h. */
23871 # include <stdio.h>
23872 # include <stdlib.h>
23878 if (rename ("conftest.d1", "conftest.d2") != 0)
23880 if (rename ("conftest.d2", "conftest.f") == 0)
23888 if ac_fn_c_try_run
"$LINENO"; then :
23889 gl_cv_func_rename_dest_works
=yes
23891 gl_cv_func_rename_dest_works
=no
23893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23897 rm -rf conftest.f conftest.d1 conftest.d2
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
23901 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
23902 case "$gl_cv_func_rename_dest_works" in
23907 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
23912 if test $REPLACE_RENAME = 1; then
23921 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
23935 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
23942 for ac_func
in rewinddir
23944 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
23945 if test "x$ac_cv_func_rewinddir" = xyes
; then :
23946 cat >>confdefs.h
<<_ACEOF
23947 #define HAVE_REWINDDIR 1
23953 if test $ac_cv_func_rewinddir = no
; then
23957 if test $HAVE_REWINDDIR = 0; then
23966 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
23980 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
23988 $as_echo_n "checking whether rmdir works... " >&6; }
23989 if ${gl_cv_func_rmdir_works+:} false
; then :
23990 $as_echo_n "(cached) " >&6
23993 touch conftest.
file
23994 if test "$cross_compiling" = yes; then :
23996 # Guess yes on Linux systems.
23997 linux-
* | linux
) gl_cv_func_rmdir_works
="guessing yes" ;;
23998 # Guess yes on glibc systems.
23999 *-gnu* | gnu
*) gl_cv_func_rmdir_works
="guessing yes" ;;
24000 # Guess no on native Windows.
24001 mingw
*) gl_cv_func_rmdir_works
="guessing no" ;;
24002 # If we don't know, obey --enable-cross-guesses.
24003 *) gl_cv_func_rmdir_works
="$gl_cross_guess_normal" ;;
24007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24008 /* end confdefs.h. */
24012 # include <unistd.h>
24013 #else /* on Windows with MSVC */
24014 # include <direct.h>
24021 if (!rmdir ("conftest.file/"))
24023 else if (errno != ENOTDIR)
24025 if (!rmdir ("conftest.dir/./"))
24033 if ac_fn_c_try_run
"$LINENO"; then :
24034 gl_cv_func_rmdir_works
=yes
24036 gl_cv_func_rmdir_works
=no
24038 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24039 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24042 rm -rf conftest.dir conftest.
file
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
24045 $as_echo "$gl_cv_func_rmdir_works" >&6; }
24046 case "$gl_cv_func_rmdir_works" in
24053 if test $REPLACE_RMDIR = 1; then
24062 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
24076 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
24085 if test $ac_cv_func_setenv = no
; then
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
24089 $as_echo_n "checking whether setenv validates arguments... " >&6; }
24090 if ${gl_cv_func_setenv_works+:} false
; then :
24091 $as_echo_n "(cached) " >&6
24093 if test "$cross_compiling" = yes; then :
24095 # Guess yes on glibc systems.
24096 *-gnu* | gnu
*) gl_cv_func_setenv_works
="guessing yes" ;;
24097 # Guess yes on musl systems.
24098 *-musl*) gl_cv_func_setenv_works
="guessing yes" ;;
24099 # If we don't know, obey --enable-cross-guesses.
24100 *) gl_cv_func_setenv_works
="$gl_cross_guess_normal" ;;
24104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24105 /* end confdefs.h. */
24107 #include <stdlib.h>
24109 #include <string.h>
24117 if (setenv ("", "", 0) != -1)
24119 else if (errno != EINVAL)
24123 if (setenv ("a", "=", 1) != 0)
24125 else if (strcmp (getenv ("a"), "=") != 0)
24134 if ac_fn_c_try_run
"$LINENO"; then :
24135 gl_cv_func_setenv_works
=yes
24137 gl_cv_func_setenv_works
=no
24139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24140 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
24145 $as_echo "$gl_cv_func_setenv_works" >&6; }
24146 case "$gl_cv_func_setenv_works" in
24154 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
24163 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
24177 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
24192 if test $gl_cv_have_include_next = yes; then
24193 gl_cv_next_signal_h
='<'signal.h
'>'
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
24196 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
24197 if ${gl_cv_next_signal_h+:} false
; then :
24198 $as_echo_n "(cached) " >&6
24203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24204 /* end confdefs.h. */
24205 #include <signal.h>
24208 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24209 *) gl_absname_cpp
="$ac_cpp" ;;
24214 gl_dirsep_regex
='[/\\]'
24217 gl_dirsep_regex
='\/'
24220 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24221 gl_header_literal_regex
=`echo 'signal.h' \
24222 | sed -e "$gl_make_literal_regex_sed"`
24223 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24224 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24230 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24231 sed -n "$gl_absolute_header_sed"`
24233 gl_header
=$gl_cv_absolute_signal_h
24234 gl_cv_next_signal_h
='"'$gl_header'"'
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
24239 $as_echo "$gl_cv_next_signal_h" >&6; }
24241 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
24243 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24244 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24245 gl_next_as_first_directive
='<'signal.h
'>'
24247 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24248 gl_next_as_first_directive
=$gl_cv_next_signal_h
24250 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
24256 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
24257 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
24258 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
24259 #include <signal.h>
24262 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
24265 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
24274 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
24275 #include <signal.h>
24278 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
24281 HAVE_SIGHANDLER_T
=0
24289 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
24290 /* <sys/types.h> is not needed according to POSIX, but the
24291 <sys/socket.h> in i386-unknown-freebsd4.10 and
24292 powerpc-apple-darwin5.5 required it. */
24293 #include <sys/types.h>
24294 #if HAVE_SYS_SOCKET_H
24295 # include <sys/socket.h>
24296 #elif HAVE_WS2TCPIP_H
24297 # include <ws2tcpip.h>
24301 if test "x$ac_cv_type_socklen_t" = xyes
; then :
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
24305 $as_echo_n "checking for socklen_t equivalent... " >&6; }
24306 if ${gl_cv_socklen_t_equiv+:} false
; then :
24307 $as_echo_n "(cached) " >&6
24309 # Systems have either "struct sockaddr *" or
24310 # "void *" as the second argument to getpeername
24311 gl_cv_socklen_t_equiv
=
24312 for arg2
in "struct sockaddr" void
; do
24313 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
24314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24315 /* end confdefs.h. */
24316 #include <sys/types.h>
24317 #include <sys/socket.h>
24319 int getpeername (int, $arg2 *, $t *);
24324 getpeername (0, 0, &len);
24329 if ac_fn_c_try_compile
"$LINENO"; then :
24330 gl_cv_socklen_t_equiv
="$t"
24332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24333 test "$gl_cv_socklen_t_equiv" != "" && break
24335 test "$gl_cv_socklen_t_equiv" != "" && break
24337 if test "$gl_cv_socklen_t_equiv" = ""; then
24338 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
24343 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
24345 cat >>confdefs.h
<<_ACEOF
24346 #define socklen_t $gl_cv_socklen_t_equiv
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
24353 $as_echo_n "checking for ssize_t... " >&6; }
24354 if ${gt_cv_ssize_t+:} false
; then :
24355 $as_echo_n "(cached) " >&6
24357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24358 /* end confdefs.h. */
24359 #include <sys/types.h>
24363 int x = sizeof (ssize_t *) + sizeof (ssize_t);
24369 if ac_fn_c_try_compile
"$LINENO"; then :
24374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
24377 $as_echo "$gt_cv_ssize_t" >&6; }
24378 if test $gt_cv_ssize_t = no
; then
24380 $as_echo "#define ssize_t int" >>confdefs.h
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
24394 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
24395 if ${gl_cv_func_stat_file_slash+:} false
; then :
24396 $as_echo_n "(cached) " >&6
24399 # Assume that if we have lstat, we can also check symlinks.
24400 if test $ac_cv_func_lstat = yes; then
24401 ln -s conftest.tmp conftest.lnk
24403 if test "$cross_compiling" = yes; then :
24405 # Guess yes on Linux systems.
24406 linux-
* | linux
) gl_cv_func_stat_file_slash
="guessing yes" ;;
24407 # Guess yes on glibc systems.
24408 *-gnu* | gnu
*) gl_cv_func_stat_file_slash
="guessing yes" ;;
24409 # If we don't know, obey --enable-cross-guesses.
24410 *) gl_cv_func_stat_file_slash
="$gl_cross_guess_normal" ;;
24414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24415 /* end confdefs.h. */
24416 #include <sys/stat.h>
24423 if (!stat ("conftest.tmp/", &st))
24426 if (!stat ("conftest.lnk/", &st))
24435 if ac_fn_c_try_run
"$LINENO"; then :
24436 gl_cv_func_stat_file_slash
=yes
24438 gl_cv_func_stat_file_slash
=no
24440 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24441 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24444 rm -f conftest.tmp conftest.lnk
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
24447 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
24448 case $gl_cv_func_stat_file_slash in
24452 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
24462 if test $REPLACE_STAT = 1; then
24471 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
24483 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
24503 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
24511 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>
24512 #include <sys/stat.h>
24514 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
24516 cat >>confdefs.h
<<_ACEOF
24517 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
24521 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
24522 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
24523 $as_echo_n "(cached) " >&6
24525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24526 /* end confdefs.h. */
24528 #include <sys/types.h>
24529 #include <sys/stat.h>
24530 #if HAVE_SYS_TIME_H
24531 # include <sys/time.h>
24534 struct timespec ts;
24547 if ac_fn_c_try_compile
"$LINENO"; then :
24548 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
24550 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
24552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
24555 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
24556 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
24558 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
24562 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>
24563 #include <sys/stat.h>
24565 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
24567 cat >>confdefs.h
<<_ACEOF
24568 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
24573 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
24574 #include <sys/stat.h>
24576 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
24578 cat >>confdefs.h
<<_ACEOF
24579 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
24584 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>
24585 #include <sys/stat.h>
24587 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
24589 cat >>confdefs.h
<<_ACEOF
24590 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
24606 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>
24607 #include <sys/stat.h>
24609 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
; then :
24611 cat >>confdefs.h
<<_ACEOF
24612 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
24617 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
24618 #include <sys/stat.h>
24620 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
; then :
24622 cat >>confdefs.h
<<_ACEOF
24623 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
24628 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>
24629 #include <sys/stat.h>
24631 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
; then :
24633 cat >>confdefs.h
<<_ACEOF
24634 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
24647 $as_echo_n "checking for working stdalign.h... " >&6; }
24648 if ${gl_cv_header_working_stdalign_h+:} false
; then :
24649 $as_echo_n "(cached) " >&6
24651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24652 /* end confdefs.h. */
24653 #include <stdalign.h>
24654 #include <stddef.h>
24656 /* Test that alignof yields a result consistent with offsetof.
24657 This catches GCC bug 52023
24658 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
24660 template <class t> struct alignof_helper { char a; t b; };
24661 # define ao(type) offsetof (alignof_helper<type>, b)
24663 # define ao(type) offsetof (struct { char a; type b; }, b)
24665 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
24666 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
24667 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
24669 /* Test _Alignas only on platforms where gnulib can help. */
24671 ((defined __cplusplus && 201103 <= __cplusplus) \
24672 || (defined __APPLE__ && defined __MACH__ \
24673 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
24675 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
24676 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
24677 || 1300 <= _MSC_VER)
24678 struct alignas_test { char c; char alignas (8) alignas_8; };
24679 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
24691 if ac_fn_c_try_compile
"$LINENO"; then :
24692 gl_cv_header_working_stdalign_h
=yes
24694 gl_cv_header_working_stdalign_h
=no
24696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
24699 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
24701 if test $gl_cv_header_working_stdalign_h = yes; then
24704 STDALIGN_H
='stdalign.h'
24708 if test -n "$STDALIGN_H"; then
24709 GL_GENERATE_STDALIGN_H_TRUE
=
24710 GL_GENERATE_STDALIGN_H_FALSE
='#'
24712 GL_GENERATE_STDALIGN_H_TRUE
='#'
24713 GL_GENERATE_STDALIGN_H_FALSE
=
24721 if test "$ac_cv_header_stdbool_h" = yes; then
24724 if test -z "$GCC"; then
24725 STDBOOL_H
='stdbool.h'
24735 STDBOOL_H
='stdbool.h'
24738 if test -n "$STDBOOL_H"; then
24739 GL_GENERATE_STDBOOL_H_TRUE
=
24740 GL_GENERATE_STDBOOL_H_FALSE
='#'
24742 GL_GENERATE_STDBOOL_H_TRUE
='#'
24743 GL_GENERATE_STDBOOL_H_FALSE
=
24747 if test "$ac_cv_type__Bool" = yes; then
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
24760 $as_echo_n "checking for good max_align_t... " >&6; }
24761 if ${gl_cv_type_max_align_t+:} false
; then :
24762 $as_echo_n "(cached) " >&6
24764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24765 /* end confdefs.h. */
24766 #include <stddef.h>
24767 unsigned int s = sizeof (max_align_t);
24768 #if defined __GNUC__ || defined __IBM__ALIGNOF__
24769 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
24770 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
24781 if ac_fn_c_try_compile
"$LINENO"; then :
24782 gl_cv_type_max_align_t
=yes
24784 gl_cv_type_max_align_t
=no
24786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
24790 $as_echo "$gl_cv_type_max_align_t" >&6; }
24791 if test $gl_cv_type_max_align_t = no
; then
24796 if test $gt_cv_c_wchar_t = no
; then
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24802 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24803 if ${gl_cv_decl_null_works+:} false
; then :
24804 $as_echo_n "(cached) " >&6
24806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24807 /* end confdefs.h. */
24808 #include <stddef.h>
24809 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24819 if ac_fn_c_try_compile
"$LINENO"; then :
24820 gl_cv_decl_null_works
=yes
24822 gl_cv_decl_null_works
=no
24824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24827 $as_echo "$gl_cv_decl_null_works" >&6; }
24828 if test $gl_cv_decl_null_works = no
; then
24834 if test -n "$STDDEF_H"; then
24835 GL_GENERATE_STDDEF_H_TRUE
=
24836 GL_GENERATE_STDDEF_H_FALSE
='#'
24838 GL_GENERATE_STDDEF_H_TRUE
='#'
24839 GL_GENERATE_STDDEF_H_FALSE
=
24842 if test -n "$STDDEF_H"; then
24851 if test $gl_cv_have_include_next = yes; then
24852 gl_cv_next_stddef_h
='<'stddef.h
'>'
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24855 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24856 if ${gl_cv_next_stddef_h+:} false
; then :
24857 $as_echo_n "(cached) " >&6
24862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h. */
24864 #include <stddef.h>
24867 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24868 *) gl_absname_cpp
="$ac_cpp" ;;
24873 gl_dirsep_regex
='[/\\]'
24876 gl_dirsep_regex
='\/'
24879 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24880 gl_header_literal_regex
=`echo 'stddef.h' \
24881 | sed -e "$gl_make_literal_regex_sed"`
24882 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24883 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24889 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24890 sed -n "$gl_absolute_header_sed"`
24892 gl_header
=$gl_cv_absolute_stddef_h
24893 gl_cv_next_stddef_h
='"'$gl_header'"'
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24898 $as_echo "$gl_cv_next_stddef_h" >&6; }
24900 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
24902 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24904 gl_next_as_first_directive
='<'stddef.h
'>'
24906 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24907 gl_next_as_first_directive
=$gl_cv_next_stddef_h
24909 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
24919 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
24930 if test $gl_cv_have_include_next = yes; then
24931 gl_cv_next_stdio_h
='<'stdio.h
'>'
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24934 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24935 if ${gl_cv_next_stdio_h+:} false
; then :
24936 $as_echo_n "(cached) " >&6
24941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24942 /* end confdefs.h. */
24946 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24947 *) gl_absname_cpp
="$ac_cpp" ;;
24952 gl_dirsep_regex
='[/\\]'
24955 gl_dirsep_regex
='\/'
24958 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24959 gl_header_literal_regex
=`echo 'stdio.h' \
24960 | sed -e "$gl_make_literal_regex_sed"`
24961 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24962 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24968 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24969 sed -n "$gl_absolute_header_sed"`
24971 gl_header
=$gl_cv_absolute_stdio_h
24972 gl_cv_next_stdio_h
='"'$gl_header'"'
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24977 $as_echo "$gl_cv_next_stdio_h" >&6; }
24979 NEXT_STDIO_H
=$gl_cv_next_stdio_h
24981 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24983 gl_next_as_first_directive
='<'stdio.h
'>'
24985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24986 gl_next_as_first_directive
=$gl_cv_next_stdio_h
24988 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
24995 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
24996 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
24997 $as_echo_n "(cached) " >&6
24999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25000 /* end confdefs.h. */
25002 #define __STDC_FORMAT_MACROS 1
25004 #include <inttypes.h>
25005 /* For non-mingw systems, compilation will trivially succeed.
25006 For mingw, compilation will succeed for older mingw (system
25007 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
25008 #if (defined _WIN32 && ! defined __CYGWIN__) && \
25009 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
25010 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
25021 if ac_fn_c_try_compile
"$LINENO"; then :
25022 gl_cv_func_printf_attribute_flavor
=system
25024 gl_cv_func_printf_attribute_flavor
=gnu
25026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
25029 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
25030 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
25032 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
25039 cat >>confdefs.h
<<_ACEOF
25040 #define GNULIB_FSCANF 1
25047 cat >>confdefs.h
<<_ACEOF
25048 #define GNULIB_SCANF 1
25086 if test $gl_cv_have_include_next = yes; then
25087 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
25090 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
25091 if ${gl_cv_next_stdlib_h+:} false
; then :
25092 $as_echo_n "(cached) " >&6
25097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25098 /* end confdefs.h. */
25099 #include <stdlib.h>
25102 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25103 *) gl_absname_cpp
="$ac_cpp" ;;
25108 gl_dirsep_regex
='[/\\]'
25111 gl_dirsep_regex
='\/'
25114 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25115 gl_header_literal_regex
=`echo 'stdlib.h' \
25116 | sed -e "$gl_make_literal_regex_sed"`
25117 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25118 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25124 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25125 sed -n "$gl_absolute_header_sed"`
25127 gl_header
=$gl_cv_absolute_stdlib_h
25128 gl_cv_next_stdlib_h
='"'$gl_header'"'
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
25133 $as_echo "$gl_cv_next_stdlib_h" >&6; }
25135 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
25137 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25139 gl_next_as_first_directive
='<'stdlib.h
'>'
25141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25142 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
25144 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
25158 for ac_func
in strchrnul
25160 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
25161 if test "x$ac_cv_func_strchrnul" = xyes
; then :
25162 cat >>confdefs.h
<<_ACEOF
25163 #define HAVE_STRCHRNUL 1
25169 if test $ac_cv_func_strchrnul = no
; then
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
25173 $as_echo_n "checking whether strchrnul works... " >&6; }
25174 if ${gl_cv_func_strchrnul_works+:} false
; then :
25175 $as_echo_n "(cached) " >&6
25177 if test "$cross_compiling" = yes; then :
25178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25179 /* end confdefs.h. */
25181 #if defined __CYGWIN__
25182 #include <cygwin/version.h>
25183 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
25191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25192 $EGREP "Lucky user" >/dev
/null
2>&1; then :
25193 gl_cv_func_strchrnul_works
="guessing yes"
25195 gl_cv_func_strchrnul_works
="guessing no"
25201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25202 /* end confdefs.h. */
25204 #include <string.h> /* for strchrnul */
25209 const char *buf = "a";
25210 return strchrnul (buf, 'b') != buf + 1;
25216 if ac_fn_c_try_run
"$LINENO"; then :
25217 gl_cv_func_strchrnul_works
=yes
25219 gl_cv_func_strchrnul_works
=no
25221 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25222 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
25228 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
25229 case "$gl_cv_func_strchrnul_works" in
25231 *) REPLACE_STRCHRNUL
=1 ;;
25235 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
25244 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
25259 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
25267 if test $ac_cv_func_strdup = yes; then
25268 if test $gl_cv_func_malloc_posix != yes; then
25273 if test $ac_cv_have_decl_strdup = no
; then
25277 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
25286 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
25301 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
25312 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
25314 $as_echo_n "checking for working strerror function... " >&6; }
25315 if ${gl_cv_func_working_strerror+:} false
; then :
25316 $as_echo_n "(cached) " >&6
25318 if test "$cross_compiling" = yes; then :
25320 # Guess yes on glibc systems.
25321 *-gnu* | gnu
*) gl_cv_func_working_strerror
="guessing yes" ;;
25322 # Guess yes on musl systems.
25323 *-musl*) gl_cv_func_working_strerror
="guessing yes" ;;
25324 # If we don't know, obey --enable-cross-guesses.
25325 *) gl_cv_func_working_strerror
="$gl_cross_guess_normal" ;;
25329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25330 /* end confdefs.h. */
25331 #include <string.h>
25336 if (!*strerror (-2)) return 1;
25341 if ac_fn_c_try_run
"$LINENO"; then :
25342 gl_cv_func_working_strerror
=yes
25344 gl_cv_func_working_strerror
=no
25346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25347 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
25353 $as_echo "$gl_cv_func_working_strerror" >&6; }
25354 case "$gl_cv_func_working_strerror" in
25361 case "$gl_cv_func_strerror_r_works" in
25362 *no
) REPLACE_STRERROR
=1 ;;
25369 if test $REPLACE_STRERROR = 1; then
25378 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
25383 cat >>confdefs.h
<<_ACEOF
25384 #define GNULIB_STRERROR 1
25399 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
25405 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
25414 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
25420 if test $ac_cv_header_sys_socket_h != yes; then
25421 for ac_header
in winsock2.h
25423 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25424 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
25425 cat >>confdefs.h
<<_ACEOF
25426 #define HAVE_WINSOCK2_H 1
25434 if test "$ac_cv_header_winsock2_h" = yes; then
25436 UNISTD_H_HAVE_WINSOCK2_H
=1
25437 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
25451 if test $ac_cv_have_decl_strerror_r = no
; then
25452 HAVE_DECL_STRERROR_R
=0
25455 if test $ac_cv_func_strerror_r = yes; then
25456 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
25457 if test $gl_cv_func_strerror_r_posix_signature = yes; then
25458 case "$gl_cv_func_strerror_r_works" in
25459 *no
) REPLACE_STRERROR_R
=1 ;;
25462 REPLACE_STRERROR_R
=1
25465 REPLACE_STRERROR_R
=1
25469 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
25478 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
25491 GNULIB_STRERROR_R
=1
25497 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
25503 cat >>confdefs.h
<<_ACEOF
25504 #define GNULIB_STRERROR_R_POSIX 1
25513 if test $REPLACE_STRSTR = 0; then
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
25515 $as_echo_n "checking whether strstr works in linear time... " >&6; }
25516 if ${gl_cv_func_strstr_linear+:} false
; then :
25517 $as_echo_n "(cached) " >&6
25519 if test "$cross_compiling" = yes; then :
25520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25521 /* end confdefs.h. */
25523 #include <features.h>
25524 #ifdef __GNU_LIBRARY__
25525 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
25526 && !(defined __i386__ || defined __x86_64__) \
25527 && !defined __UCLIBC__
25532 #include <cygwin/version.h>
25533 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
25539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25540 $EGREP "Lucky user" >/dev
/null
2>&1; then :
25541 gl_cv_func_strstr_linear
="guessing yes"
25543 gl_cv_func_strstr_linear
="$gl_cross_guess_normal"
25549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25550 /* end confdefs.h. */
25553 /* z/OS does not deliver signals while strstr() is running (thanks to
25554 restrictions on its LE runtime), which prevents us from limiting the
25555 running time of this test. */
25556 # error "This test does not work properly on z/OS"
25558 #include <signal.h> /* for signal */
25559 #include <string.h> /* for strstr */
25560 #include <stdlib.h> /* for malloc */
25561 #include <unistd.h> /* for alarm */
25562 static void quit (int sig) { _exit (sig + 128); }
25569 size_t m = 1000000;
25570 char *haystack = (char *) malloc (2 * m + 2);
25571 char *needle = (char *) malloc (m + 2);
25572 /* Failure to compile this test due to missing alarm is okay,
25573 since all such platforms (mingw) also have quadratic strstr. */
25574 signal (SIGALRM, quit);
25576 /* Check for quadratic performance. */
25577 if (haystack && needle)
25579 memset (haystack, 'A', 2 * m);
25580 haystack[2 * m] = 'B';
25581 haystack[2 * m + 1] = 0;
25582 memset (needle, 'A', m);
25585 if (!strstr (haystack, needle))
25588 /* Free allocated memory, in case some sanitizer is watching. */
25597 if ac_fn_c_try_run
"$LINENO"; then :
25598 gl_cv_func_strstr_linear
=yes
25600 gl_cv_func_strstr_linear
=no
25602 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25603 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
25609 $as_echo "$gl_cv_func_strstr_linear" >&6; }
25610 case "$gl_cv_func_strstr_linear" in
25618 if test $REPLACE_STRSTR = 1; then
25627 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
25633 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
25637 $as_echo_n "checking whether strstr works... " >&6; }
25638 if ${gl_cv_func_strstr_works_always+:} false
; then :
25639 $as_echo_n "(cached) " >&6
25641 if test "$cross_compiling" = yes; then :
25642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25643 /* end confdefs.h. */
25645 #ifdef __GNU_LIBRARY__
25646 #include <features.h>
25647 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
25648 || defined __UCLIBC__
25651 #elif defined __CYGWIN__
25652 #include <cygwin/version.h>
25653 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
25661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25662 $EGREP "Lucky user" >/dev
/null
2>&1; then :
25663 gl_cv_func_strstr_works_always
="guessing yes"
25665 gl_cv_func_strstr_works_always
="$gl_cross_guess_normal"
25671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25672 /* end confdefs.h. */
25674 #include <string.h> /* for strstr */
25675 #ifdef __GNU_LIBRARY__
25676 #include <features.h>
25677 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
25681 #define P "_EF_BF_BD"
25682 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
25683 #define NEEDLE P P P P P
25688 return !!strstr (HAYSTACK, NEEDLE);
25694 if ac_fn_c_try_run
"$LINENO"; then :
25695 gl_cv_func_strstr_works_always
=yes
25697 gl_cv_func_strstr_works_always
=no
25699 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25700 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
25706 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
25707 case "$gl_cv_func_strstr_works_always" in
25715 if test $REPLACE_STRSTR = 1; then
25724 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
25738 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
25746 for ac_func
in strtok_r
25748 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
25749 if test "x$ac_cv_func_strtok_r" = xyes
; then :
25750 cat >>confdefs.h
<<_ACEOF
25751 #define HAVE_STRTOK_R 1
25757 if test $ac_cv_func_strtok_r = yes; then
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
25760 $as_echo_n "checking whether strtok_r works... " >&6; }
25761 if ${gl_cv_func_strtok_r_works+:} false
; then :
25762 $as_echo_n "(cached) " >&6
25764 if test "$cross_compiling" = yes; then :
25766 # Guess no on glibc systems.
25767 *-gnu* | gnu
*) gl_cv_func_strtok_r_works
="guessing no" ;;
25768 # Guess yes on native Windows.
25769 mingw
*) gl_cv_func_strtok_r_works
="guessing yes" ;;
25770 *) gl_cv_func_strtok_r_works
="guessing yes" ;;
25774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25775 /* end confdefs.h. */
25777 #ifndef __OPTIMIZE__
25778 # define __OPTIMIZE__ 1
25780 #undef __OPTIMIZE_SIZE__
25781 #undef __NO_INLINE__
25782 #include <stdlib.h>
25783 #include <string.h>
25788 static const char dummy[] = "\177\01a";
25789 char delimiters[] = "xxxxxxxx";
25790 char *save_ptr = (char *) dummy;
25791 strtok_r (delimiters, "x", &save_ptr);
25792 strtok_r (NULL, "x", &save_ptr);
25800 if ac_fn_c_try_run
"$LINENO"; then :
25801 gl_cv_func_strtok_r_works
=yes
25803 gl_cv_func_strtok_r_works
=no
25805 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25806 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
25812 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
25813 case "$gl_cv_func_strtok_r_works" in
25815 UNDEFINE_STRTOK_R
=1
25822 if test $ac_cv_have_decl_strtok_r = no
; then
25823 HAVE_DECL_STRTOK_R
=0
25826 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
25835 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
25852 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
25872 if test $gl_cv_have_include_next = yes; then
25873 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
25876 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
25877 if ${gl_cv_next_sys_stat_h+:} false
; then :
25878 $as_echo_n "(cached) " >&6
25881 if test $ac_cv_header_sys_stat_h = yes; then
25886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25887 /* end confdefs.h. */
25888 #include <sys/stat.h>
25891 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25892 *) gl_absname_cpp
="$ac_cpp" ;;
25897 gl_dirsep_regex
='[/\\]'
25900 gl_dirsep_regex
='\/'
25903 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25904 gl_header_literal_regex
=`echo 'sys/stat.h' \
25905 | sed -e "$gl_make_literal_regex_sed"`
25906 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25907 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25913 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25914 sed -n "$gl_absolute_header_sed"`
25916 gl_header
=$gl_cv_absolute_sys_stat_h
25917 gl_cv_next_sys_stat_h
='"'$gl_header'"'
25919 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
25925 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
25927 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
25929 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25930 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25931 gl_next_as_first_directive
='<'sys
/stat.h
'>'
25933 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25934 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
25936 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
25945 WINDOWS_STAT_TIMESPEC
=0
25954 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25955 #include <sys/stat.h>
25957 if test "x$ac_cv_type_nlink_t" = xyes
; then :
25961 $as_echo "#define nlink_t int" >>confdefs.h
25988 if test $gl_cv_have_include_next = yes; then
25989 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
25992 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
25993 if ${gl_cv_next_sys_uio_h+:} false
; then :
25994 $as_echo_n "(cached) " >&6
25997 if test $ac_cv_header_sys_uio_h = yes; then
26002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26003 /* end confdefs.h. */
26004 #include <sys/uio.h>
26007 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26008 *) gl_absname_cpp
="$ac_cpp" ;;
26013 gl_dirsep_regex
='[/\\]'
26016 gl_dirsep_regex
='\/'
26019 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26020 gl_header_literal_regex
=`echo 'sys/uio.h' \
26021 | sed -e "$gl_make_literal_regex_sed"`
26022 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26023 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26029 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26030 sed -n "$gl_absolute_header_sed"`
26032 gl_header
=$gl_cv_absolute_sys_uio_h
26033 gl_cv_next_sys_uio_h
='"'$gl_header'"'
26035 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
26041 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
26043 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
26045 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26046 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26047 gl_next_as_first_directive
='<'sys
/uio.h
'>'
26049 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26050 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
26052 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
26057 if test $ac_cv_header_sys_uio_h = yes; then
26080 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,
26081 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
26082 been included before. */
26083 #if defined __MINGW32__
26084 # include <unistd.h>
26089 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
26095 cat >>confdefs.h
<<_ACEOF
26096 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
26099 if test $ac_cv_have_decl_localtime_r = no
; then
26100 HAVE_DECL_LOCALTIME_R
=0
26104 if test $ac_cv_func_localtime_r = yes; then
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
26107 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
26108 if ${gl_cv_time_r_posix+:} false
; then :
26109 $as_echo_n "(cached) " >&6
26111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26112 /* end confdefs.h. */
26113 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
26114 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
26115 been included before. */
26116 #if defined __MINGW32__
26117 # include <unistd.h>
26124 /* We don't need to append 'restrict's to the argument types,
26125 even though the POSIX signature has the 'restrict's,
26126 since C99 says they can't affect type compatibility. */
26127 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
26129 /* Check the return type is a pointer.
26130 On HP-UX 10 it is 'int'. */
26131 *localtime_r (0, 0);
26137 if ac_fn_c_try_compile
"$LINENO"; then :
26138 gl_cv_time_r_posix
=yes
26140 gl_cv_time_r_posix
=no
26142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
26146 $as_echo "$gl_cv_time_r_posix" >&6; }
26147 if test $gl_cv_time_r_posix = yes; then
26148 REPLACE_LOCALTIME_R
=0
26150 REPLACE_LOCALTIME_R
=1
26154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r exists as an inline function" >&5
26155 $as_echo_n "checking whether localtime_r exists as an inline function... " >&6; }
26156 if ${gl_cv_func_localtime_r_inline+:} false
; then :
26157 $as_echo_n "(cached) " >&6
26159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26160 /* end confdefs.h. */
26161 /* mingw's <time.h> provides the functions asctime_r, ctime_r,
26162 gmtime_r, localtime_r only if <unistd.h> or <pthread.h> has
26163 been included before. */
26164 #if defined __MINGW32__
26165 # include <unistd.h>
26174 localtime_r (&a, &r);
26181 if ac_fn_c_try_link
"$LINENO"; then :
26182 gl_cv_func_localtime_r_inline
=yes
26184 gl_cv_func_localtime_r_inline
=no
26186 rm -f core conftest.err conftest.
$ac_objext \
26187 conftest
$ac_exeext conftest.
$ac_ext
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_localtime_r_inline" >&5
26191 $as_echo "$gl_cv_func_localtime_r_inline" >&6; }
26192 if test $gl_cv_func_localtime_r_inline = yes; then
26193 REPLACE_LOCALTIME_R
=1
26197 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
26206 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
26223 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
26239 if test $gl_cv_have_include_next = yes; then
26240 gl_cv_next_unistd_h
='<'unistd.h
'>'
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
26243 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
26244 if ${gl_cv_next_unistd_h+:} false
; then :
26245 $as_echo_n "(cached) " >&6
26248 if test $ac_cv_header_unistd_h = yes; then
26253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26254 /* end confdefs.h. */
26255 #include <unistd.h>
26258 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26259 *) gl_absname_cpp
="$ac_cpp" ;;
26264 gl_dirsep_regex
='[/\\]'
26267 gl_dirsep_regex
='\/'
26270 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26271 gl_header_literal_regex
=`echo 'unistd.h' \
26272 | sed -e "$gl_make_literal_regex_sed"`
26273 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26274 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26280 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26281 sed -n "$gl_absolute_header_sed"`
26283 gl_header
=$gl_cv_absolute_unistd_h
26284 gl_cv_next_unistd_h
='"'$gl_header'"'
26286 gl_cv_next_unistd_h
='<'unistd.h
'>'
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
26292 $as_echo "$gl_cv_next_unistd_h" >&6; }
26294 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
26296 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26298 gl_next_as_first_directive
='<'unistd.h
'>'
26300 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26301 gl_next_as_first_directive
=$gl_cv_next_unistd_h
26303 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
26308 if test $ac_cv_header_unistd_h = yes; then
26329 if test $ac_cv_have_decl_unsetenv = no
; then
26330 HAVE_DECL_UNSETENV
=0
26332 for ac_func
in unsetenv
26334 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
26335 if test "x$ac_cv_func_unsetenv" = xyes
; then :
26336 cat >>confdefs.h
<<_ACEOF
26337 #define HAVE_UNSETENV 1
26343 if test $ac_cv_func_unsetenv = no
; then
26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
26348 $as_echo_n "checking for unsetenv() return type... " >&6; }
26349 if ${gt_cv_func_unsetenv_ret+:} false
; then :
26350 $as_echo_n "(cached) " >&6
26352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26353 /* end confdefs.h. */
26356 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
26357 #include <stdlib.h>
26362 int unsetenv (const char *name);
26372 if ac_fn_c_try_compile
"$LINENO"; then :
26373 gt_cv_func_unsetenv_ret
='int'
26375 gt_cv_func_unsetenv_ret
='void'
26377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
26380 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
26381 if test $gt_cv_func_unsetenv_ret = 'void'; then
26383 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
26389 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
26390 if ${gl_cv_func_unsetenv_works+:} false
; then :
26391 $as_echo_n "(cached) " >&6
26393 if test "$cross_compiling" = yes; then :
26395 # Guess yes on glibc systems.
26396 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
26397 # If we don't know, obey --enable-cross-guesses.
26398 *) gl_cv_func_unsetenv_works
="$gl_cross_guess_normal" ;;
26402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26403 /* end confdefs.h. */
26405 #include <stdlib.h>
26407 extern char **environ;
26413 char entry1[] = "a=1";
26414 char entry2[] = "b=2";
26415 char *env[] = { entry1, entry2, NULL };
26416 if (putenv ((char *) "a=1")) return 1;
26417 if (putenv (entry2)) return 2;
26420 if (getenv ("a")) return 3;
26421 if (!unsetenv ("") || errno != EINVAL) return 4;
26424 if (!getenv ("a")) return 5;
26427 if (getenv ("a")) return 6;
26433 if ac_fn_c_try_run
"$LINENO"; then :
26434 gl_cv_func_unsetenv_works
=yes
26436 gl_cv_func_unsetenv_works
=no
26438 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26439 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
26444 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
26445 case "$gl_cv_func_unsetenv_works" in
26453 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
26462 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
26480 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
26496 if test $gl_cv_have_include_next = yes; then
26497 gl_cv_next_wchar_h
='<'wchar.h
'>'
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
26500 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
26501 if ${gl_cv_next_wchar_h+:} false
; then :
26502 $as_echo_n "(cached) " >&6
26505 if test $ac_cv_header_wchar_h = yes; then
26510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26511 /* end confdefs.h. */
26515 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26516 *) gl_absname_cpp
="$ac_cpp" ;;
26521 gl_dirsep_regex
='[/\\]'
26524 gl_dirsep_regex
='\/'
26527 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26528 gl_header_literal_regex
=`echo 'wchar.h' \
26529 | sed -e "$gl_make_literal_regex_sed"`
26530 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26531 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26537 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26538 sed -n "$gl_absolute_header_sed"`
26540 gl_header
=$gl_cv_absolute_wchar_h
26541 gl_cv_next_wchar_h
='"'$gl_header'"'
26543 gl_cv_next_wchar_h
='<'wchar.h
'>'
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
26549 $as_echo "$gl_cv_next_wchar_h" >&6; }
26551 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
26553 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26554 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26555 gl_next_as_first_directive
='<'wchar.h
'>'
26557 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26558 gl_next_as_first_directive
=$gl_cv_next_wchar_h
26560 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
26565 if test $ac_cv_header_wchar_h = yes; then
26575 if test $gt_cv_c_wint_t = yes; then
26593 if test $ac_cv_func_iswcntrl = yes; then
26601 if test $gt_cv_c_wint_t = yes; then
26619 if test $gl_cv_have_include_next = yes; then
26620 gl_cv_next_wctype_h
='<'wctype.h
'>'
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
26623 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
26624 if ${gl_cv_next_wctype_h+:} false
; then :
26625 $as_echo_n "(cached) " >&6
26628 if test $ac_cv_header_wctype_h = yes; then
26633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26634 /* end confdefs.h. */
26635 #include <wctype.h>
26638 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26639 *) gl_absname_cpp
="$ac_cpp" ;;
26644 gl_dirsep_regex
='[/\\]'
26647 gl_dirsep_regex
='\/'
26650 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26651 gl_header_literal_regex
=`echo 'wctype.h' \
26652 | sed -e "$gl_make_literal_regex_sed"`
26653 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26654 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26660 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26661 sed -n "$gl_absolute_header_sed"`
26663 gl_header
=$gl_cv_absolute_wctype_h
26664 gl_cv_next_wctype_h
='"'$gl_header'"'
26666 gl_cv_next_wctype_h
='<'wctype.h
'>'
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
26672 $as_echo "$gl_cv_next_wctype_h" >&6; }
26674 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
26676 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26677 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26678 gl_next_as_first_directive
='<'wctype.h
'>'
26680 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26681 gl_next_as_first_directive
=$gl_cv_next_wctype_h
26683 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
26688 if test $ac_cv_header_wctype_h = yes; then
26689 if test $ac_cv_func_iswcntrl = yes; then
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
26691 $as_echo_n "checking whether iswcntrl works... " >&6; }
26692 if ${gl_cv_func_iswcntrl_works+:} false
; then :
26693 $as_echo_n "(cached) " >&6
26696 if test "$cross_compiling" = yes; then :
26697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26698 /* end confdefs.h. */
26699 #include <stdlib.h>
26700 #if __GNU_LIBRARY__ == 1
26701 Linux libc5 i18n is broken.
26711 if ac_fn_c_try_compile
"$LINENO"; then :
26712 gl_cv_func_iswcntrl_works
="guessing yes"
26714 gl_cv_func_iswcntrl_works
="guessing no"
26716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26720 /* end confdefs.h. */
26722 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
26723 included before <wchar.h>.
26724 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
26725 must be included before <wchar.h>. */
26726 #include <stddef.h>
26730 #include <wctype.h>
26731 int main () { return iswprint ('x') == 0; }
26734 if ac_fn_c_try_run
"$LINENO"; then :
26735 gl_cv_func_iswcntrl_works
=yes
26737 gl_cv_func_iswcntrl_works
=no
26739 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26740 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
26746 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
26754 if test $GNULIB_OVERRIDES_WINT_T = 1; then
26757 case "$gl_cv_func_iswcntrl_works" in
26758 *yes) REPLACE_ISWCNTRL
=0 ;;
26759 *) REPLACE_ISWCNTRL
=1 ;;
26764 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
26768 if test $REPLACE_ISWCNTRL = 1; then
26771 for ac_func
in towlower
26773 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
26774 if test "x$ac_cv_func_towlower" = xyes
; then :
26775 cat >>confdefs.h
<<_ACEOF
26776 #define HAVE_TOWLOWER 1
26782 if test $ac_cv_func_towlower = yes; then
26785 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
26786 included before <wchar.h>.
26787 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
26788 must be included before <wchar.h>. */
26789 #include <stddef.h>
26794 # include <wctype.h>
26798 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
26804 cat >>confdefs.h
<<_ACEOF
26805 #define HAVE_DECL_TOWLOWER $ac_have_decl
26808 if test $ac_cv_have_decl_towlower = yes; then
26817 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
26822 $as_echo_n "checking for wctype_t... " >&6; }
26823 if ${gl_cv_type_wctype_t+:} false
; then :
26824 $as_echo_n "(cached) " >&6
26826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26827 /* end confdefs.h. */
26828 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
26829 included before <wchar.h>.
26830 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
26831 must be included before <wchar.h>. */
26832 #include <stddef.h>
26837 # include <wctype.h>
26849 if ac_fn_c_try_compile
"$LINENO"; then :
26850 gl_cv_type_wctype_t
=yes
26852 gl_cv_type_wctype_t
=no
26854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
26858 $as_echo "$gl_cv_type_wctype_t" >&6; }
26859 if test $gl_cv_type_wctype_t = no
; then
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
26864 $as_echo_n "checking for wctrans_t... " >&6; }
26865 if ${gl_cv_type_wctrans_t+:} false
; then :
26866 $as_echo_n "(cached) " >&6
26868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26869 /* end confdefs.h. */
26870 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
26871 included before <wchar.h>.
26872 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
26873 must be included before <wchar.h>. */
26874 #include <stddef.h>
26878 #include <wctype.h>
26889 if ac_fn_c_try_compile
"$LINENO"; then :
26890 gl_cv_type_wctrans_t
=yes
26892 gl_cv_type_wctrans_t
=no
26894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
26898 $as_echo "$gl_cv_type_wctrans_t" >&6; }
26899 if test $gl_cv_type_wctrans_t = no
; then
26918 gl_LIBOBJS
="$gl_LIBOBJS windows-mutex.$ac_objext"
26933 gl_LIBOBJS
="$gl_LIBOBJS windows-once.$ac_objext"
26948 gl_LIBOBJS
="$gl_LIBOBJS windows-recmutex.$ac_objext"
26963 gl_LIBOBJS
="$gl_LIBOBJS windows-rwlock.$ac_objext"
26967 # End of code from modules
26988 gl_source_base
='tests'
26989 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
26991 gl_module_indicator_condition
=$gltests_WITNESS
27001 LIBGNU_LIBDEPS
="$gl_libdeps"
27003 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
27007 am__api_version
='1.15'
27009 # Find a good install program. We prefer a C program (faster),
27010 # so one script is as good as another. But avoid the broken or
27011 # incompatible versions:
27012 # SysV /etc/install, /usr/sbin/install
27013 # SunOS /usr/etc/install
27014 # IRIX /sbin/install
27016 # AmigaOS /C/install, which installs bootblocks on floppy discs
27017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
27018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
27019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
27020 # OS/2's system install, which has a completely different semantic
27021 # ./install, which can be erroneously created by make from ./install.sh.
27022 # Reject install programs that cannot install multiple files.
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
27024 $as_echo_n "checking for a BSD-compatible install... " >&6; }
27025 if test -z "$INSTALL"; then
27026 if ${ac_cv_path_install+:} false
; then :
27027 $as_echo_n "(cached) " >&6
27029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27030 for as_dir
in $PATH
27033 test -z "$as_dir" && as_dir
=.
27034 # Account for people who put trailing slashes in PATH elements.
27035 case $as_dir/ in #((
27036 .
/ | .
// |
/[cC
]/* | \
27037 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
27038 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
27041 # OSF1 and SCO ODT 3.0 have their own names for install.
27042 # Don't use installbsd from OSF since it installs stuff as root
27044 for ac_prog
in ginstall scoinst
install; do
27045 for ac_exec_ext
in '' $ac_executable_extensions; do
27046 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
27047 if test $ac_prog = install &&
27048 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
27049 # AIX install. It has an incompatible calling convention.
27051 elif test $ac_prog = install &&
27052 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
27053 # program-specific install script used by HP pwplus--don't use.
27056 rm -rf conftest.one conftest.two conftest.dir
27057 echo one
> conftest.one
27058 echo two
> conftest.two
27060 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
27061 test -s conftest.one
&& test -s conftest.two
&&
27062 test -s conftest.dir
/conftest.one
&&
27063 test -s conftest.dir
/conftest.two
27065 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
27078 rm -rf conftest.one conftest.two conftest.dir
27081 if test "${ac_cv_path_install+set}" = set; then
27082 INSTALL
=$ac_cv_path_install
27084 # As a last resort, use the slow shell script. Don't cache a
27085 # value for INSTALL within a source directory, because that will
27086 # break other packages using the cache if that directory is
27087 # removed, or if the value is a relative name.
27088 INSTALL
=$ac_install_sh
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
27092 $as_echo "$INSTALL" >&6; }
27094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
27095 # It thinks the first close brace ends the variable substitution.
27096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
27098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
27100 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
27103 $as_echo_n "checking whether build environment is sane... " >&6; }
27104 # Reject unsafe characters in $srcdir or the absolute working directory
27105 # name. Accept space and tab only in the latter.
27109 *[\\\"\
#\$\&\'\`$am_lf]*)
27110 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
27113 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
27114 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
27117 # Do 'set' in a subshell so we don't clobber the current shell's
27118 # arguments. Must try -L first in case configure is actually a
27119 # symlink; some systems play weird games with the mod time of symlinks
27120 # (eg FreeBSD returns the mod time of the symlink's containing
27124 for am_try
in 1 2; do
27125 echo "timestamp, slept: $am_has_slept" > conftest.
file
27126 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
27127 if test "$*" = "X"; then
27129 set X
`ls -t "$srcdir/configure" conftest.file`
27131 if test "$*" != "X $srcdir/configure conftest.file" \
27132 && test "$*" != "X conftest.file $srcdir/configure"; then
27134 # If neither matched, then we have a broken ls. This can happen
27135 # if, for instance, CONFIG_SHELL is bash and it inherits a
27136 # broken ls alias from the environment. This has actually
27137 # happened. Such a system could not be considered "sane".
27138 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
27139 alias in your environment" "$LINENO" 5
27141 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
27148 test "$2" = conftest.
file
27154 as_fn_error $?
"newly created file is older than distributed files!
27155 Check your system clock" "$LINENO" 5
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27158 $as_echo "yes" >&6; }
27159 # If we didn't sleep, we still need to ensure time stamps of config.status and
27160 # generated files are strictly newer.
27162 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
27167 rm -f conftest.
file
27169 test "$program_prefix" != NONE
&&
27170 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
27171 # Use a double $ so make ignores it.
27172 test "$program_suffix" != NONE
&&
27173 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
27174 # Double any \ or $.
27175 # By default was `s,x,x', remove it if useless.
27176 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
27177 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
27179 # Expand $ac_aux_dir to an absolute path.
27180 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
27182 if test x
"${MISSING+set}" != xset
; then
27183 case $am_aux_dir in
27185 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
27187 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
27190 # Use eval to expand $SHELL
27191 if eval "$MISSING --is-lightweight"; then
27192 am_missing_run
="$MISSING "
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
27196 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
27199 if test x
"${install_sh+set}" != xset
; then
27200 case $am_aux_dir in
27202 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
27204 install_sh
="\${SHELL} $am_aux_dir/install-sh"
27208 # Installed binaries are usually stripped using 'strip' when the user
27209 # run "make install-strip". However 'strip' might not be the right
27210 # tool to use in cross-compilation environments, therefore Automake
27211 # will honor the 'STRIP' environment variable to overrule this program.
27212 if test "$cross_compiling" != no
; then
27213 if test -n "$ac_tool_prefix"; then
27214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
27215 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27217 $as_echo_n "checking for $ac_word... " >&6; }
27218 if ${ac_cv_prog_STRIP+:} false
; then :
27219 $as_echo_n "(cached) " >&6
27221 if test -n "$STRIP"; then
27222 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
27224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27225 for as_dir
in $PATH
27228 test -z "$as_dir" && as_dir
=.
27229 for ac_exec_ext
in '' $ac_executable_extensions; do
27230 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
27231 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
27232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27241 STRIP
=$ac_cv_prog_STRIP
27242 if test -n "$STRIP"; then
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
27244 $as_echo "$STRIP" >&6; }
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27247 $as_echo "no" >&6; }
27252 if test -z "$ac_cv_prog_STRIP"; then
27254 # Extract the first word of "strip", so it can be a program name with args.
27255 set dummy strip
; ac_word
=$2
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27257 $as_echo_n "checking for $ac_word... " >&6; }
27258 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
27259 $as_echo_n "(cached) " >&6
27261 if test -n "$ac_ct_STRIP"; then
27262 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
27264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27265 for as_dir
in $PATH
27268 test -z "$as_dir" && as_dir
=.
27269 for ac_exec_ext
in '' $ac_executable_extensions; do
27270 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
27271 ac_cv_prog_ac_ct_STRIP
="strip"
27272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27281 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
27282 if test -n "$ac_ct_STRIP"; then
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
27284 $as_echo "$ac_ct_STRIP" >&6; }
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27287 $as_echo "no" >&6; }
27290 if test "x$ac_ct_STRIP" = x
; then
27293 case $cross_compiling:$ac_tool_warned in
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27297 ac_tool_warned
=yes ;;
27302 STRIP
="$ac_cv_prog_STRIP"
27306 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
27308 for ac_prog
in gawk mawk nawk
awk
27310 # Extract the first word of "$ac_prog", so it can be a program name with args.
27311 set dummy
$ac_prog; ac_word
=$2
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27313 $as_echo_n "checking for $ac_word... " >&6; }
27314 if ${ac_cv_prog_AWK+:} false
; then :
27315 $as_echo_n "(cached) " >&6
27317 if test -n "$AWK"; then
27318 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
27320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27321 for as_dir
in $PATH
27324 test -z "$as_dir" && as_dir
=.
27325 for ac_exec_ext
in '' $ac_executable_extensions; do
27326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
27327 ac_cv_prog_AWK
="$ac_prog"
27328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27337 AWK
=$ac_cv_prog_AWK
27338 if test -n "$AWK"; then
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27340 $as_echo "$AWK" >&6; }
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27343 $as_echo "no" >&6; }
27347 test -n "$AWK" && break
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
27351 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
27353 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
27354 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
27355 $as_echo_n "(cached) " >&6
27357 cat >conftest.
make <<\_ACEOF
27360 @
echo '@@@%%%=$(MAKE)=@@@%%%'
27362 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
27363 case `${MAKE-make} -f conftest.make 2>/dev/null` in
27364 *@@@
%%%=?
*=@@@
%%%*)
27365 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
27367 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
27369 rm -f conftest.
make
27371 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27373 $as_echo "yes" >&6; }
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27377 $as_echo "no" >&6; }
27378 SET_MAKE
="MAKE=${MAKE-make}"
27381 rm -rf .tst
2>/dev
/null
27382 mkdir .tst
2>/dev
/null
27383 if test -d .tst
; then
27388 rmdir .tst
2>/dev
/null
27390 DEPDIR
="${am__leading_dot}deps"
27392 ac_config_commands
="$ac_config_commands depfiles"
27395 am_make
=${MAKE-make}
27396 cat > confinc
<< 'END'
27398 @
echo this is the am__doit target
27401 # If we don't find an include directive, just comment out the code.
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
27403 $as_echo_n "checking for style of include used by $am_make... " >&6; }
27407 # First try GNU make style include.
27408 echo "include confinc" > confmf
27409 # Ignore all kinds of additional output from 'make'.
27410 case `$am_make -s -f confmf 2> /dev/null` in #(
27411 *the\ am__doit\ target
*)
27412 am__include
=include
27417 # Now try BSD make style include.
27418 if test "$am__include" = "#"; then
27419 echo '.include "confinc"' > confmf
27420 case `$am_make -s -f confmf 2> /dev/null` in #(
27421 *the\ am__doit\ target
*)
27422 am__include
=.include
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
27431 $as_echo "$_am_result" >&6; }
27432 rm -f confinc confmf
27434 # Check whether --enable-dependency-tracking was given.
27435 if test "${enable_dependency_tracking+set}" = set; then :
27436 enableval
=$enable_dependency_tracking;
27439 if test "x$enable_dependency_tracking" != xno
; then
27440 am_depcomp
="$ac_aux_dir/depcomp"
27444 if test "x$enable_dependency_tracking" != xno; then
27453 # Check whether --enable-silent-rules was given.
27454 if test "${enable_silent_rules+set}" = set; then :
27455 enableval
=$enable_silent_rules;
27458 case $enable_silent_rules in # (((
27459 yes) AM_DEFAULT_VERBOSITY
=0;;
27460 no
) AM_DEFAULT_VERBOSITY
=1;;
27461 *) AM_DEFAULT_VERBOSITY
=1;;
27463 am_make
=${MAKE-make}
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
27465 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
27466 if ${am_cv_make_support_nested_variables+:} false
; then :
27467 $as_echo_n "(cached) " >&6
27469 if $as_echo 'TRUE=$(BAR$(V))
27475 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
27476 am_cv_make_support_nested_variables
=yes
27478 am_cv_make_support_nested_variables
=no
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
27482 $as_echo "$am_cv_make_support_nested_variables" >&6; }
27483 if test $am_cv_make_support_nested_variables = yes; then
27485 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
27487 AM_V
=$AM_DEFAULT_VERBOSITY
27488 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
27492 if test "`cd $srcdir && pwd`" != "`pwd`"; then
27493 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
27494 # is not polluted with repeated "-I."
27495 am__isrc
=' -I$(srcdir)'
27496 # test to see if srcdir already configured
27497 if test -f $srcdir/config.status
; then
27498 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
27502 # test whether we have cygpath
27503 if test -z "$CYGPATH_W"; then
27504 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
27505 CYGPATH_W
='cygpath -w'
27512 # Define the identity of the package.
27514 VERSION
='UNUSED-VERSION'
27517 # Some tools Automake needs.
27519 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
27522 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
27525 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
27528 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
27531 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
27533 # For better backward compatibility. To be removed once Automake 1.9.x
27534 # dies out for good. For more background, see:
27535 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
27536 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
27537 mkdir_p
='$(MKDIR_P)'
27539 # We need awk for the "check" target (and possibly the TAP driver). The
27540 # system "awk" is bad on some platforms.
27541 # Always define AMTAR for backward compatibility. Yes, it's still used
27542 # in the wild :-( We should find a proper way to deprecate it ...
27543 AMTAR
='$${TAR-tar}'
27546 # We'll loop over all known methods to create a tar archive until one works.
27547 _am_tools
='gnutar pax cpio none'
27549 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
27555 depcc
="$CC" am_compiler_list
=
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
27558 $as_echo_n "checking dependency style of $depcc... " >&6; }
27559 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
27560 $as_echo_n "(cached) " >&6
27562 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
27563 # We make a subdir and do the tests there. Otherwise we can end up
27564 # making bogus files that we don't know about and never remove. For
27565 # instance it was reported that on HP-UX the gcc test will end up
27566 # making a dummy file named 'D' -- because '-MD' means "put the output
27568 rm -rf conftest.dir
27570 # Copy depcomp to subdir because otherwise we won't find it if we're
27571 # using a relative directory.
27572 cp "$am_depcomp" conftest.dir
27574 # We will build objects and dependencies in a subdirectory because
27575 # it helps to detect inapplicable dependency modes. For instance
27576 # both Tru64's cc and ICC support -MD to output dependencies as a
27577 # side effect of compilation, but ICC will put the dependencies in
27578 # the current directory while Tru64 will put them in the object
27582 am_cv_CC_dependencies_compiler_type
=none
27583 if test "$am_compiler_list" = ""; then
27584 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
27586 am__universal
=false
27587 case " $depcc " in #(
27588 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
27591 for depmode
in $am_compiler_list; do
27592 # Setup a source with many dependencies, because some compilers
27593 # like to wrap large dependency lists on column 80 (with \), and
27594 # we should not choose a depcomp mode which is confused by this.
27596 # We need to recreate these files for each test, as the compiler may
27597 # overwrite some of them when testing with obscure command lines.
27598 # This happens at least with the AIX C compiler.
27600 for i
in 1 2 3 4 5 6; do
27601 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
27602 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
27603 # Solaris 10 /bin/sh.
27604 echo '/* dummy */' > sub
/conftst
$i.h
27606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
27608 # We check with '-c' and '-o' for the sake of the "dashmstdout"
27609 # mode. It turns out that the SunPro C++ compiler does not properly
27610 # handle '-M -o', and we need to detect this. Also, some Intel
27611 # versions had trouble with output in subdirs.
27612 am__obj
=sub
/conftest.
${OBJEXT-o}
27613 am__minus_obj
="-o $am__obj"
27616 # This depmode causes a compiler race in universal mode.
27617 test "$am__universal" = false ||
continue
27620 # After this tag, mechanisms are not by side-effect, so they'll
27621 # only be used when explicitly requested.
27622 if test "x$enable_dependency_tracking" = xyes
; then
27628 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
27629 # This compiler won't grok '-c -o', but also, the minuso test has
27630 # not run yet. These depmodes are late enough in the game, and
27631 # so weak that their functioning should not be impacted.
27632 am__obj
=conftest.
${OBJEXT-o}
27637 if depmode
=$depmode \
27638 source=sub
/conftest.c object
=$am__obj \
27639 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
27640 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
27641 >/dev
/null
2>conftest.err
&&
27642 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
27643 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
27644 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
27645 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
27646 # icc doesn't choke on unknown options, it will just issue warnings
27647 # or remarks (even with -Werror). So we grep stderr for any message
27648 # that says an option was ignored or not supported.
27649 # When given -MP, icc 7.0 and 7.1 complain thusly:
27650 # icc: Command line warning: ignoring option '-M'; no argument required
27651 # The diagnosis changed in icc 8.0:
27652 # icc: Command line remark: option '-MP' not supported
27653 if (grep 'ignoring option' conftest.err ||
27654 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
27655 am_cv_CC_dependencies_compiler_type
=$depmode
27662 rm -rf conftest.dir
27664 am_cv_CC_dependencies_compiler_type
=none
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
27669 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
27670 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
27673 test "x$enable_dependency_tracking" != xno \
27674 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
27675 am__fastdepCC_TRUE
=
27676 am__fastdepCC_FALSE
='#'
27678 am__fastdepCC_TRUE
='#'
27679 am__fastdepCC_FALSE
=
27684 # POSIX will say in a future version that running "rm -f" with no argument
27685 # is OK; and we want to be able to make that assumption in our Makefile
27686 # recipes. So use an aggressive probe to check that the usage we want is
27687 # actually supported "in the wild" to an acceptable degree.
27688 # See automake bug#10828.
27689 # To make any issue more visible, cause the running configure to be aborted
27690 # by default if the 'rm' program in use doesn't match our expectations; the
27691 # user can still override this though.
27692 if rm -f && rm -fr && rm -rf; then : OK
; else
27696 Your 'rm' program seems unable to run without file operands specified
27697 on the command line, even when the '-f' option is present. This is contrary
27698 to the behaviour of most rm programs out there, and not conforming with
27699 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
27701 Please tell bug-automake@gnu.org about your system, including the value
27702 of your $PATH and any error possibly output before this message. This
27703 can help us improve future automake versions.
27706 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
27707 echo 'Configuration will proceed anyway, since you have set the' >&2
27708 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
27712 Aborting the configuration process, to ensure you take notice of the issue.
27714 You can download and install GNU coreutils to get an 'rm' implementation
27715 that behaves properly: <http://www.gnu.org/software/coreutils/>.
27717 If you want to complete the configuration process using your problematic
27718 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
27719 to "yes", and re-run configure.
27722 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
27727 # Check whether --enable-silent-rules was given.
27728 if test "${enable_silent_rules+set}" = set; then :
27729 enableval
=$enable_silent_rules;
27732 case $enable_silent_rules in # (((
27733 yes) AM_DEFAULT_VERBOSITY
=0;;
27734 no
) AM_DEFAULT_VERBOSITY
=1;;
27735 *) AM_DEFAULT_VERBOSITY
=0;;
27737 am_make
=${MAKE-make}
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
27739 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
27740 if ${am_cv_make_support_nested_variables+:} false
; then :
27741 $as_echo_n "(cached) " >&6
27743 if $as_echo 'TRUE=$(BAR$(V))
27749 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
27750 am_cv_make_support_nested_variables
=yes
27752 am_cv_make_support_nested_variables
=no
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
27756 $as_echo "$am_cv_make_support_nested_variables" >&6; }
27757 if test $am_cv_make_support_nested_variables = yes; then
27759 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
27761 AM_V
=$AM_DEFAULT_VERBOSITY
27762 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
27767 # --------------------- #
27768 # Checks for programs. #
27769 # --------------------- #
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
27773 $as_echo_n "checking whether ln -s works... " >&6; }
27775 if test "$LN_S" = "ln -s"; then
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27777 $as_echo "yes" >&6; }
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
27780 $as_echo "no, using $LN_S" >&6; }
27783 if test -n "$ac_tool_prefix"; then
27784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
27785 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27787 $as_echo_n "checking for $ac_word... " >&6; }
27788 if ${ac_cv_prog_RANLIB+:} false; then :
27789 $as_echo_n "(cached) " >&6
27791 if test -n "$RANLIB"; then
27792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
27794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27795 for as_dir in $PATH
27798 test -z "$as_dir" && as_dir=.
27799 for ac_exec_ext in '' $ac_executable_extensions; do
27800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27801 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
27802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27811 RANLIB=$ac_cv_prog_RANLIB
27812 if test -n "$RANLIB"; then
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
27814 $as_echo "$RANLIB" >&6; }
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27817 $as_echo "no" >&6; }
27822 if test -z "$ac_cv_prog_RANLIB"; then
27823 ac_ct_RANLIB=$RANLIB
27824 # Extract the first word of "ranlib", so it can be a program name with args.
27825 set dummy ranlib; ac_word=$2
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27827 $as_echo_n "checking for $ac_word... " >&6; }
27828 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
27829 $as_echo_n "(cached) " >&6
27831 if test -n "$ac_ct_RANLIB"; then
27832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
27834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27835 for as_dir in $PATH
27838 test -z "$as_dir" && as_dir=.
27839 for ac_exec_ext in '' $ac_executable_extensions; do
27840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27841 ac_cv_prog_ac_ct_RANLIB="ranlib"
27842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
27852 if test -n "$ac_ct_RANLIB"; then
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
27854 $as_echo "$ac_ct_RANLIB" >&6; }
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27857 $as_echo "no" >&6; }
27860 if test "x$ac_ct_RANLIB" = x; then
27863 case $cross_compiling:$ac_tool_warned in
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27867 ac_tool_warned=yes ;;
27869 RANLIB=$ac_ct_RANLIB
27872 RANLIB="$ac_cv_prog_RANLIB"
27876 if test -n "$ac_tool_prefix"; then
27877 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
27878 set dummy ${ac_tool_prefix}ar; ac_word=$2
27879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27880 $as_echo_n "checking for $ac_word... " >&6; }
27881 if ${ac_cv_prog_AR+:} false; then :
27882 $as_echo_n "(cached) " >&6
27884 if test -n "$AR"; then
27885 ac_cv_prog_AR="$AR" # Let the user override the test.
27887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27888 for as_dir in $PATH
27891 test -z "$as_dir" && as_dir=.
27892 for ac_exec_ext in '' $ac_executable_extensions; do
27893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27894 ac_cv_prog_AR="${ac_tool_prefix}ar"
27895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27905 if test -n "$AR"; then
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
27907 $as_echo "$AR" >&6; }
27909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27910 $as_echo "no" >&6; }
27915 if test -z "$ac_cv_prog_AR"; then
27917 # Extract the first word of "ar", so it can be a program name with args.
27918 set dummy ar; ac_word=$2
27919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27920 $as_echo_n "checking for $ac_word... " >&6; }
27921 if ${ac_cv_prog_ac_ct_AR+:} false; then :
27922 $as_echo_n "(cached) " >&6
27924 if test -n "$ac_ct_AR"; then
27925 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
27927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27928 for as_dir in $PATH
27931 test -z "$as_dir" && as_dir=.
27932 for ac_exec_ext in '' $ac_executable_extensions; do
27933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27934 ac_cv_prog_ac_ct_AR="ar"
27935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27944 ac_ct_AR=$ac_cv_prog_ac_ct_AR
27945 if test -n "$ac_ct_AR"; then
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
27947 $as_echo "$ac_ct_AR" >&6; }
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27950 $as_echo "no" >&6; }
27953 if test "x$ac_ct_AR" = x; then
27956 case $cross_compiling:$ac_tool_warned in
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27960 ac_tool_warned=yes ;;
27965 AR="$ac_cv_prog_AR"
27969 # ---------------------- #
27970 # Checks for libraries. #
27971 # ---------------------- #
27973 ac_config_files="$ac_config_files Makefile import/Makefile"
27975 ac_config_commands="$ac_config_commands default"
27977 cat >confcache <<\_ACEOF
27978 # This file is a shell script that caches the results of configure
27979 # tests run on this system so they can be shared between configure
27980 # scripts and configure runs, see configure's option
--config-cache.
27981 # It is not useful on other systems. If it contains results you don't
27982 # want to keep, you may remove or edit it.
27984 # config.status only pays attention to the cache file if you give it
27985 # the --recheck option to rerun configure.
27987 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27988 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27989 # following values.
27993 # The following way of writing the cache mishandles newlines in values,
27994 # but we know of no workaround that is simple, portable, and efficient.
27995 # So, we kill variables containing newlines.
27996 # Ultrix sh set writes to stderr and can't be redirected directly,
27997 # and sets the high bit in the cache file unless we assign to the vars.
27999 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28000 eval ac_val
=\$
$ac_var
28004 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28008 _ | IFS | as_nl
) ;; #(
28009 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28010 *) { eval $ac_var=; unset $ac_var;} ;;
28016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28017 *${as_nl}ac_space
=\
*)
28018 # `set' does not quote correctly, so add quotes: double-quote
28019 # substitution turns \\\\ into \\, and sed turns \\ into \.
28022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28025 # `set' quotes correctly as required by POSIX, so do not add quotes.
28026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28039 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28040 if test -w "$cache_file"; then
28041 if test "x$cache_file" != "x/dev/null"; then
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28043 $as_echo "$as_me: updating cache $cache_file" >&6;}
28044 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
28045 cat confcache
>"$cache_file"
28047 case $cache_file in #(
28049 mv -f confcache
"$cache_file"$$
&&
28050 mv -f "$cache_file"$$
"$cache_file" ;; #(
28052 mv -f confcache
"$cache_file" ;;
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28058 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28063 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28064 # Let make expand exec_prefix.
28065 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28067 DEFS
=-DHAVE_CONFIG_H
28071 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28072 # 1. Remove the extension, and $U if already installed.
28073 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28074 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28075 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28076 # will be set to the directory where LIBOBJS objects are built.
28077 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28078 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28080 LIBOBJS
=$ac_libobjs
28082 LTLIBOBJS
=$ac_ltlibobjs
28085 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28086 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
28087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28089 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28090 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
28091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28093 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28094 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28097 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28098 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28101 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
28102 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
28103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28105 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
28106 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
28107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28109 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
28110 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
28111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28113 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
28114 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
28115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28117 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
28118 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
28119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28121 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28122 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
28123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28125 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28126 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
28127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28129 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28130 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
28131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28135 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
28136 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
28137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28139 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
28140 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
28141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28143 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28144 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28147 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28148 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28154 if test -n "$gl_LIBOBJS"; then
28155 # Remove the extension.
28156 sed_drop_objext
='s/\.o$//;s/\.obj$//'
28157 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28158 gl_libobjs
="$gl_libobjs $i.$ac_objext"
28159 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
28162 gl_LIBOBJS
=$gl_libobjs
28164 gl_LTLIBOBJS
=$gl_ltlibobjs
28170 if test -n "$gltests_LIBOBJS"; then
28171 # Remove the extension.
28172 sed_drop_objext
='s/\.o$//;s/\.obj$//'
28173 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28174 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
28175 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
28178 gltests_LIBOBJS
=$gltests_libobjs
28180 gltests_LTLIBOBJS
=$gltests_ltlibobjs
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28184 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28185 if test -n "$am_sleep_pid"; then
28186 # Hide warnings about reused PIDs.
28187 wait $am_sleep_pid 2>/dev
/null
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28190 $as_echo "done" >&6; }
28191 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28192 as_fn_error $?
"conditional \"AMDEP\" was never defined.
28193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28195 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28196 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
28197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28199 if test -n "$EXEEXT"; then
28201 am__EXEEXT_FALSE
='#'
28203 am__EXEEXT_TRUE
='#'
28208 : "${CONFIG_STATUS=./config.status}"
28210 ac_clean_files_save
=$ac_clean_files
28211 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28213 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28215 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28217 # Generated by $as_me.
28218 # Run this file to recreate the current configuration.
28219 # Compiler output produced by configure, useful for debugging
28220 # configure, is in config.log if it exists.
28223 ac_cs_recheck=false
28226 SHELL=\${CONFIG_SHELL-$SHELL}
28229 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28230 ## -------------------- ##
28231 ## M4sh Initialization. ##
28232 ## -------------------- ##
28234 # Be more Bourne compatible
28235 DUALCASE
=1; export DUALCASE
# for MKS sh
28236 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28239 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28240 # is contrary to our usage. Disable this feature.
28241 alias -g '${1+"$@"}'='"$@"'
28242 setopt NO_GLOB_SUBST
28244 case `(set -o) 2>/dev/null` in #(
28256 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28257 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28258 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28259 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28260 # Prefer a ksh shell builtin over an external printf program on Solaris,
28261 # but without wasting forks for bash or zsh.
28262 if test -z "$BASH_VERSION$ZSH_VERSION" \
28263 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28264 as_echo='print
-r --'
28265 as_echo_n='print
-rn --'
28266 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28267 as_echo='printf %s
\n'
28268 as_echo_n='printf %s
'
28270 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28271 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28272 as_echo_n='/usr
/ucb
/echo -n'
28274 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28275 as_echo_n_body='eval
28279 expr "X$arg" : "X\\(.*\\)$as_nl";
28280 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28282 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28284 export as_echo_n_body
28285 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28287 export as_echo_body
28288 as_echo='sh
-c $as_echo_body as_echo
'
28291 # The user is always right.
28292 if test "${PATH_SEPARATOR+set}" != set; then
28294 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28295 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28302 # We need space, tab and new line, in precisely that order. Quoting is
28303 # there to prevent editors from complaining about space-tab.
28304 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28305 # splitting by setting IFS to empty value.)
28308 # Find who we are. Look in the path if we contain no directory separator.
28311 *[\\/]* ) as_myself=$0 ;;
28312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28313 for as_dir in $PATH
28316 test -z "$as_dir" && as_dir=.
28317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28323 # We did not find ourselves, most probably we were run as `sh COMMAND'
28324 # in which case we are not to be found in the path.
28325 if test "x$as_myself" = x
; then
28328 if test ! -f "$as_myself"; then
28329 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28333 # Unset variables that we do not need and which cause bugs (e.g. in
28334 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28335 # suppresses any "Segmentation fault" message there. '((' could
28336 # trigger a bug in pdksh 5.2.14.
28337 for as_var
in BASH_ENV ENV MAIL MAILPATH
28338 do eval test x\
${$as_var+set} = xset \
28339 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28352 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28355 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28356 # ----------------------------------------
28357 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28358 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28359 # script with STATUS, using 1 if that was 0.
28362 as_status
=$1; test $as_status -eq 0 && as_status
=1
28364 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28365 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28367 $as_echo "$as_me: error: $2" >&2
28368 as_fn_exit
$as_status
28372 # as_fn_set_status STATUS
28373 # -----------------------
28374 # Set $? to STATUS, without forking.
28375 as_fn_set_status
()
28378 } # as_fn_set_status
28380 # as_fn_exit STATUS
28381 # -----------------
28382 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28386 as_fn_set_status
$1
28392 # Portably unset VAR.
28395 { eval $1=; unset $1;}
28397 as_unset
=as_fn_unset
28398 # as_fn_append VAR VALUE
28399 # ----------------------
28400 # Append the text in VALUE to the end of the definition contained in VAR. Take
28401 # advantage of any shell optimizations that allow amortized linear growth over
28402 # repeated appends, instead of the typical quadratic growth present in naive
28404 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28405 eval 'as_fn_append ()
28416 # as_fn_arith ARG...
28417 # ------------------
28418 # Perform arithmetic evaluation on the ARGs, and store the result in the
28419 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28420 # must be portable across $(()) and expr.
28421 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28422 eval 'as_fn_arith ()
28429 as_val
=`expr "$@" || test $? -eq 1`
28434 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28435 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28441 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28442 as_basename
=basename
28447 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28453 as_me
=`$as_basename -- "$0" ||
28454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28455 X"$0" : 'X\(//\)$' \| \
28456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28458 sed '/^.*\/\([^/][^/]*\)\/*$/{
28472 # Avoid depending upon Character Ranges.
28473 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28474 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28475 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28476 as_cr_digits
='0123456789'
28477 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28479 ECHO_C
= ECHO_N
= ECHO_T
=
28480 case `echo -n x` in #(((((
28482 case `echo 'xy\c'` in
28483 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28485 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28492 rm -f conf$$ conf$$.exe conf$$.
file
28493 if test -d conf$$.dir
; then
28494 rm -f conf$$.dir
/conf$$.
file
28497 mkdir conf$$.dir
2>/dev
/null
28499 if (echo >conf$$.
file) 2>/dev
/null
; then
28500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28502 # ... but there are two gotchas:
28503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28505 # In both cases, we have to default to `cp -pR'.
28506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28516 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28517 rmdir conf$$.dir
2>/dev
/null
28522 # Create "$as_dir" as a directory, including parents if necessary.
28527 -*) as_dir
=.
/$as_dir;;
28529 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28533 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28534 *) as_qdir
=$as_dir;;
28536 as_dirs
="'$as_qdir' $as_dirs"
28537 as_dir
=`$as_dirname -- "$as_dir" ||
28538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28539 X"$as_dir" : 'X\(//\)[^/]' \| \
28540 X"$as_dir" : 'X\(//\)$' \| \
28541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28542 $as_echo X"$as_dir" |
28543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28547 /^X\(\/\/\)[^/].*/{
28560 test -d "$as_dir" && break
28562 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28563 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
28567 if mkdir
-p .
2>/dev
/null
; then
28568 as_mkdir_p
='mkdir -p "$as_dir"'
28570 test -d .
/-p && rmdir .
/-p
28575 # as_fn_executable_p FILE
28576 # -----------------------
28577 # Test if FILE is an executable regular file.
28578 as_fn_executable_p
()
28580 test -f "$1" && test -x "$1"
28581 } # as_fn_executable_p
28582 as_test_x
='test -x'
28583 as_executable_p
=as_fn_executable_p
28585 # Sed expression to map a string onto a valid CPP name.
28586 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28588 # Sed expression to map a string onto a valid variable name.
28589 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28593 ## ----------------------------------- ##
28594 ## Main body of $CONFIG_STATUS script. ##
28595 ## ----------------------------------- ##
28597 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28600 # Save the log message, to keep $0 and so on meaningful, and to
28601 # report actual input values of CONFIG_FILES etc. instead of their
28602 # values after options handling.
28604 This file was extended by libgnu $as_me UNUSED-VERSION, which was
28605 generated by GNU Autoconf 2.69. Invocation command line was
28607 CONFIG_FILES = $CONFIG_FILES
28608 CONFIG_HEADERS = $CONFIG_HEADERS
28609 CONFIG_LINKS = $CONFIG_LINKS
28610 CONFIG_COMMANDS = $CONFIG_COMMANDS
28613 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28618 case $ac_config_files in *"
28619 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28622 case $ac_config_headers in *"
28623 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28628 # Files that config.status was made for.
28629 config_files="$ac_config_files"
28630 config_headers="$ac_config_headers"
28631 config_commands="$ac_config_commands"
28635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28637 \`$as_me' instantiates files and other configuration actions
28638 from templates according to the current configuration. Unless the files
28639 and actions are specified as TAGs, all are instantiated by default.
28641 Usage: $0 [OPTION]... [TAG]...
28643 -h, --help print this help, then exit
28644 -V, --version print version number and configuration settings, then exit
28645 --config print configuration, then exit
28646 -q, --quiet, --silent
28647 do not print progress messages
28648 -d, --debug don't remove temporary files
28649 --recheck update $as_me by reconfiguring in the same conditions
28650 --file=FILE[:TEMPLATE]
28651 instantiate the configuration file FILE
28652 --header=FILE[:TEMPLATE]
28653 instantiate the configuration header FILE
28655 Configuration files:
28658 Configuration headers:
28661 Configuration commands:
28664 Report bugs to the package provider."
28667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28668 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28670 libgnu config.status UNUSED-VERSION
28671 configured by $0, generated by GNU Autoconf 2.69,
28672 with options \\"\$ac_cs_config\\"
28674 Copyright (C) 2012 Free Software Foundation, Inc.
28675 This config.status script is free software; the Free Software Foundation
28676 gives unlimited permission to copy, distribute and modify it."
28683 test -n "\$AWK" || AWK=awk
28686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28687 # The default lists apply if the user does not specify any file.
28693 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28694 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28698 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28710 # Handling of the options.
28711 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28713 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28714 $as_echo "$ac_cs_version"; exit ;;
28715 --config |
--confi |
--conf |
--con |
--co |
--c )
28716 $as_echo "$ac_cs_config"; exit ;;
28717 --debug |
--debu |
--deb |
--de |
--d |
-d )
28719 --file |
--fil |
--fi |
--f )
28722 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28723 '') as_fn_error $?
"missing file argument" ;;
28725 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28726 ac_need_defaults
=false
;;
28727 --header |
--heade |
--head |
--hea )
28730 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28732 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28733 ac_need_defaults
=false
;;
28735 # Conflict between --help and --header
28736 as_fn_error $?
"ambiguous option: \`$1'
28737 Try \`$0 --help' for more information.";;
28738 --help |
--hel |
-h )
28739 $as_echo "$ac_cs_usage"; exit ;;
28740 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28741 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28744 # This is an error.
28745 -*) as_fn_error $?
"unrecognized option: \`$1'
28746 Try \`$0 --help' for more information." ;;
28748 *) as_fn_append ac_config_targets
" $1"
28749 ac_need_defaults
=false
;;
28755 ac_configure_extra_args
=
28757 if $ac_cs_silent; then
28759 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28764 if \$ac_cs_recheck; then
28765 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28767 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28768 CONFIG_SHELL='$SHELL'
28769 export CONFIG_SHELL
28774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28778 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28779 ## Running $as_me. ##
28785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28789 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28795 # Handling of arguments.
28796 for ac_config_target
in $ac_config_targets
28798 case $ac_config_target in
28799 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
28800 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
28801 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
28802 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
28803 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28805 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28810 # If the user did not use the arguments to specify the items to instantiate,
28811 # then the envvar interface is used. Set only those that are not.
28812 # We use the long form for the default assignment because of an extremely
28813 # bizarre bug on SunOS 4.1.3.
28814 if $ac_need_defaults; then
28815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28817 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28820 # Have a temporary directory for convenience. Make it in the build tree
28821 # simply because there is no reason against having it here, and in addition,
28822 # creating and moving files from /tmp can sometimes cause problems.
28823 # Hook for its removal unless debugging.
28824 # Note that there is a small window in which the directory will not be cleaned:
28825 # after its creation but before its name has been assigned to `$tmp'.
28829 trap 'exit_status=$?
28830 : "${ac_tmp:=$tmp}"
28831 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28833 trap 'as_fn_exit 1' 1 2 13 15
28835 # Create a (secure) tmp directory for tmp files.
28838 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28842 tmp
=.
/conf$$
-$RANDOM
28843 (umask 077 && mkdir
"$tmp")
28844 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
28847 # Set up the scripts for CONFIG_FILES section.
28848 # No need to generate them if there are no CONFIG_FILES.
28849 # This happens for instance with `./config.status config.h'.
28850 if test -n "$CONFIG_FILES"; then
28853 ac_cr
=`echo X | tr X '\015'`
28854 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28855 # But we know of no other shell where ac_cr would be empty at this
28856 # point, so we can use a bashism as a fallback.
28857 if test "x$ac_cr" = x
; then
28858 eval ac_cr
=\$
\'\\r
\'
28860 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28861 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28864 ac_cs_awk_cr
=$ac_cr
28867 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28872 echo "cat >conf$$subs.awk <<_ACEOF" &&
28873 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28875 } >conf$$subs.sh ||
28876 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
28877 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28879 for ac_last_try in false false false false false :; do
28880 . ./conf$$subs.sh ||
28881 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
28883 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28884 if test $ac_delim_n = $ac_delim_num; then
28886 elif $ac_last_try; then
28887 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
28889 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28892 rm -f conf$$subs.sh
28894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28895 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
28899 s/^/S["/; s
/!.
*/"]=/
28909 s/\(.\{148\}\)..*/\1/
28911 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28916 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28923 s/\(.\{148\}\)..*/\1/
28925 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28929 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28934 ' <conf$$subs.awk | sed '
28939 ' >>$CONFIG_STATUS || ac_write_fail=1
28940 rm -f conf$$subs.awk
28941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28943 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
28944 for (key in S) S_is_set[key] = 1
28950 nfields = split(line, field, "@
")
28952 len = length(field[1])
28953 for (i = 2; i < nfields; i++) {
28955 keylen = length(key)
28956 if (S_is_set[key]) {
28958 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28959 len += length(value) + length(field[++i])
28970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28971 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28972 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28975 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
28976 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
28979 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28980 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
28981 # trailing colons and then remove the whole line if VPATH becomes empty
28982 # (actually we leave an empty line to preserve line numbers).
28983 if test "x
$srcdir" = x.; then
28984 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29003 fi # test -n "$CONFIG_FILES"
29005 # Set up the scripts for CONFIG_HEADERS section.
29006 # No need to generate them if there are no CONFIG_HEADERS.
29007 # This happens for instance with `./config.status Makefile'.
29008 if test -n "$CONFIG_HEADERS"; then
29009 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
29013 # Transform confdefs.h into an awk script `defines.awk', embedded as
29014 # here-document in config.status, that substitutes the proper values into
29015 # config.h.in to produce config.h.
29017 # Create a delimiter string that does not exist in confdefs.h, to ease
29018 # handling of long lines.
29020 for ac_last_try in false false :; do
29021 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
29022 if test -z "$ac_tt"; then
29024 elif $ac_last_try; then
29025 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
29027 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29031 # For the awk script, D is an array of macro values keyed by name,
29032 # likewise P contains macro parameters if any. Preserve backslash
29033 # newline sequences.
29035 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29037 s/.\{148\}/&'"$ac_delim"'/g
29040 s/^[ ]*#[ ]*define[ ][ ]*/ /
29047 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29049 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29053 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29054 D["\
1"]=" \
3\\\\\\n
"\\/p
29056 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29061 s/.\{148\}/&'"$ac_delim"'/g
29066 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29069 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29071 ' <confdefs.h | sed '
29072 s/'"$ac_delim"'/"\\\
29073 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29076 for (key in D) D_is_set[key] = 1
29079 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29081 split(line, arg, " ")
29082 if (arg[1] == "#") {
29086 defundef
= substr
(arg
[1], 2)
29089 split(mac1
, mac2
, "(") #)
29091 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29092 if (D_is_set
[macro
]) {
29093 # Preserve the white space surrounding the "#".
29094 print prefix
"define", macro P
[macro
] D
[macro
]
29097 # Replace #undef with comments. This is necessary, for example,
29098 # in the case of _POSIX_SOURCE, which is predefined and required
29099 # on some systems where configure will not decide to define it.
29100 if (defundef
== "undef") {
29101 print
"/*", prefix defundef
, macro
, "*/"
29109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29110 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
29111 fi # test -n "$CONFIG_HEADERS"
29114 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29119 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29121 case $ac_mode$ac_tag in
29123 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29124 :[FH
]-) ac_tag
=-:-;;
29125 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29142 -) ac_f
="$ac_tmp/stdin";;
29143 *) # Look for the file first in the build tree, then in the source tree
29144 # (if the path is not absolute). The absolute path cannot be DOS-style,
29145 # because $ac_f cannot contain `:'.
29149 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29151 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29153 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29154 as_fn_append ac_file_inputs
" '$ac_f'"
29157 # Let's still pretend it is `configure' which instantiates (i.e., don't
29158 # use $as_me), people would be surprised to read:
29159 # /* config.h. Generated by config.status. */
29160 configure_input
='Generated from '`
29161 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29163 if test x
"$ac_file" != x-
; then
29164 configure_input
="$ac_file. $configure_input"
29165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29166 $as_echo "$as_me: creating $ac_file" >&6;}
29168 # Neutralize special characters interpreted by sed in replacement strings.
29169 case $configure_input in #(
29170 *\
&* |
*\|
* |
*\\* )
29171 ac_sed_conf_input
=`$as_echo "$configure_input" |
29172 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29173 *) ac_sed_conf_input
=$configure_input;;
29177 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
29178 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
29183 ac_dir
=`$as_dirname -- "$ac_file" ||
29184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29185 X"$ac_file" : 'X\(//\)[^/]' \| \
29186 X"$ac_file" : 'X\(//\)$' \| \
29187 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29188 $as_echo X"$ac_file" |
29189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29193 /^X\(\/\/\)[^/].*/{
29206 as_dir
="$ac_dir"; as_fn_mkdir_p
29210 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29212 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29213 # A ".." for each directory in $ac_dir_suffix.
29214 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29215 case $ac_top_builddir_sub in
29216 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29217 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29220 ac_abs_top_builddir
=$ac_pwd
29221 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29222 # for backward compatibility:
29223 ac_top_builddir
=$ac_top_build_prefix
29226 .
) # We are building in place.
29228 ac_top_srcdir
=$ac_top_builddir_sub
29229 ac_abs_top_srcdir
=$ac_pwd ;;
29230 [\\/]* | ?
:[\\/]* ) # Absolute name.
29231 ac_srcdir
=$srcdir$ac_dir_suffix;
29232 ac_top_srcdir
=$srcdir
29233 ac_abs_top_srcdir
=$srcdir ;;
29234 *) # Relative name.
29235 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29236 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29237 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29239 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29249 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
29250 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
29252 ac_MKDIR_P
=$MKDIR_P
29254 [\\/$
]* | ?
:[\\/]* ) ;;
29255 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
29259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29260 # If the template does not know about datarootdir, expand it.
29261 # FIXME: This hack should be removed a few years after 2.60.
29262 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29273 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29274 *datarootdir
*) ac_datarootdir_seen
=yes;;
29275 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29277 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29280 ac_datarootdir_hack='
29281 s&@datadir@&$datadir&g
29282 s&@docdir@&$docdir&g
29283 s&@infodir@&$infodir&g
29284 s&@localedir@&$localedir&g
29285 s&@mandir@&$mandir&g
29286 s&\\\${datarootdir}&$datarootdir&g' ;;
29290 # Neutralize VPATH when `$srcdir' = `.'.
29291 # Shell code in configure.ac might set extrasub.
29292 # FIXME: do we really want to maintain this feature?
29293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29294 ac_sed_extra="$ac_vpsub
29297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29299 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29300 s|@configure_input@|
$ac_sed_conf_input|
;t t
29301 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29302 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29303 s
&@srcdir@
&$ac_srcdir&;t t
29304 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29305 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29306 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29307 s
&@builddir@
&$ac_builddir&;t t
29308 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29309 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29310 s
&@INSTALL@
&$ac_INSTALL&;t t
29311 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
29312 $ac_datarootdir_hack
29314 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
29315 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
29317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29318 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
29319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29320 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
29321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29322 which seems to be undefined. Please make sure it is defined" >&5
29323 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29324 which seems to be undefined. Please make sure it is defined" >&2;}
29326 rm -f "$ac_tmp/stdin"
29328 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29329 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29337 if test x"$ac_file" != x-; then
29339 $as_echo "/* $configure_input */" \
29340 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29341 } >"$ac_tmp/config.h" \
29342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29343 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29344 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29345 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29348 mv "$ac_tmp/config.h" "$ac_file" \
29349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29352 $as_echo "/* $configure_input */" \
29353 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29354 || as_fn_error $? "could not create -" "$LINENO" 5
29356 # Compute "$ac_file"'s index
in $config_headers.
29359 for _am_header
in $config_headers :; do
29360 case $_am_header in
29361 $_am_arg |
$_am_arg:* )
29364 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
29367 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29368 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29369 X"$_am_arg" : 'X\(//\)[^/]' \| \
29370 X"$_am_arg" : 'X\(//\)$' \| \
29371 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29372 $as_echo X"$_am_arg" |
29373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29377 /^X\(\/\/\)[^/].*/{
29389 s/.*/./; q'`/stamp-h
$_am_stamp_count
29392 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29393 $as_echo "$as_me: executing $ac_file commands" >&6;}
29398 case $ac_file$ac_mode in
29399 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
29400 # Older Autoconf quotes --file arguments for eval, but not when files
29401 # are listed without --file. Let's play safe and only enable the eval
29402 # if we detect the quoting.
29403 case $CONFIG_FILES in
29404 *\'*) eval set x
"$CONFIG_FILES" ;;
29405 *) set x
$CONFIG_FILES ;;
29410 # Strip MF so we end up with the name of the file.
29411 mf
=`echo "$mf" | sed -e 's/:.*$//'`
29412 # Check whether this is an Automake generated Makefile or not.
29413 # We used to match only the files named 'Makefile.in', but
29414 # some people rename them; so instead we look at the file content.
29415 # Grep'ing the first line is not enough: some people post-process
29416 # each Makefile.in and add a new line on top of each file to say so.
29417 # Grep'ing the whole file is not good either: AIX grep has a line
29418 # limit of 2048, but all sed's we know have understand at least 4000.
29419 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
29420 dirpart
=`$as_dirname -- "$mf" ||
29421 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29422 X"$mf" : 'X\(//\)[^/]' \| \
29423 X"$mf" : 'X\(//\)$' \| \
29424 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29430 /^X\(\/\/\)[^/].*/{
29446 # Extract the definition of DEPDIR, am__include, and am__quote
29447 # from the Makefile without running 'make'.
29448 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
29449 test -z "$DEPDIR" && continue
29450 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
29451 test -z "$am__include" && continue
29452 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
29453 # Find all dependency output files, they are included files with
29454 # $(DEPDIR) in their names. We invoke sed twice because it is the
29455 # simplest approach to changing $(DEPDIR) to its actual value in the
29457 for file in `sed -n "
29458 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29459 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
29460 # Make sure the directory exists.
29461 test -f "$dirpart/$file" && continue
29462 fdir
=`$as_dirname -- "$file" ||
29463 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29464 X"$file" : 'X\(//\)[^/]' \| \
29465 X"$file" : 'X\(//\)$' \| \
29466 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29467 $as_echo X"$file" |
29468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29472 /^X\(\/\/\)[^/].*/{
29485 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
29486 # echo "creating $dirpart/$file"
29487 echo '# dummy' > "$dirpart/$file"
29493 case x
$CONFIG_HEADERS in
29494 xconfig.h
:config.
in)
29505 ac_clean_files
=$ac_clean_files_save
29507 test $ac_write_fail = 0 ||
29508 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
29511 # configure is writing to config.log, and then calls config.status.
29512 # config.status does its own redirection, appending to config.log.
29513 # Unfortunately, on DOS this fails, as config.log is still kept open
29514 # by configure, so config.status won't be able to write to it; its
29515 # output is simply discarded. So we exec the FD to /dev/null,
29516 # effectively closing config.log, so it can be properly (re)opened and
29517 # appended to by config.status. When coming back to configure, we
29518 # need to make the FD available again.
29519 if test "$no_create" != yes; then
29521 ac_config_status_args
=
29522 test "$silent" = yes &&
29523 ac_config_status_args
="$ac_config_status_args --quiet"
29525 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29527 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29528 # would make configure fail if this is the last instruction.
29529 $ac_cs_success || as_fn_exit
1
29531 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29533 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}