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>
624 gl_fnmatch_required
=POSIX
625 ac_subst_vars
='am__EXEEXT_FALSE
655 INSTALL_STRIP_PROGRAM
676 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
691 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
694 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
696 UNISTD_H_DEFINES_STRUCT_TIMESPEC
697 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
698 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
699 TIME_H_DEFINES_STRUCT_TIMESPEC
700 NEXT_AS_FIRST_DIRECTIVE_TIME_H
704 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
707 NEXT_AS_FIRST_DIRECTIVE_STRING_H
709 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
711 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
713 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
715 GL_GENERATE_STDDEF_H_FALSE
716 GL_GENERATE_STDDEF_H_TRUE
722 GL_GENERATE_STDBOOL_H_FALSE
723 GL_GENERATE_STDBOOL_H_TRUE
725 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
728 REPLACE_PTHREAD_SIGMASK
730 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
731 HAVE_STRUCT_SIGACTION_SA_SIGACTION
737 HAVE_POSIX_SIGNALBLOCKING
740 GNULIB_SIGNAL_H_SIGPIPE
742 GNULIB_PTHREAD_SIGMASK
750 REPLACE_STDIO_WRITE_FUNCS
751 REPLACE_STDIO_READ_FUNCS
760 REPLACE_OBSTACK_PRINTF
785 HAVE_DECL_OBSTACK_PRINTF
791 GNULIB_VSPRINTF_POSIX
795 GNULIB_VFPRINTF_POSIX
802 GNULIB_STDIO_H_SIGPIPE
803 GNULIB_STDIO_H_NONBLOCKING
818 GNULIB_OBSTACK_PRINTF_POSIX
819 GNULIB_OBSTACK_PRINTF
918 GNULIB_EXPLICIT_BZERO
1017 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1019 LOCALCHARSET_TESTS_ENVIRONMENT
1020 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1022 UINT64_MAX_EQ_ULONG_MAX
1023 UINT32_MAX_LT_UINTMAX_MAX
1026 INT64_MAX_EQ_LONG_MAX
1027 INT32_MAX_LT_INTMAX_MAX
1039 GL_GENERATE_STDINT_H_FALSE
1040 GL_GENERATE_STDINT_H_TRUE
1052 HAVE_SIGNED_SIG_ATOMIC_T
1055 BITSIZEOF_SIG_ATOMIC_T
1058 APPLE_UNIVERSAL_BUILD
1060 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1065 HAVE_UNSIGNED_LONG_LONG_INT
1067 GNULIB_OVERRIDES_WINT_T
1068 GL_GENERATE_LIMITS_H_FALSE
1069 GL_GENERATE_LIMITS_H_TRUE
1071 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1073 GL_GENERATE_GLOB_H_FALSE
1074 GL_GENERATE_GLOB_H_TRUE
1077 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
1079 REPLACE_GLOB_PATTERN_P
1098 HAVE_DECL_LOCALTIME_R
1109 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1111 REPLACE_STRUCT_TIMEVAL
1112 REPLACE_GETTIMEOFDAY
1120 WINDOWS_64_BIT_ST_SIZE
1121 WINDOWS_STAT_TIMESPEC
1122 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1144 GNULIB_OVERRIDES_STRUCT_STAT
1159 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1170 REPLACE_SIGNBIT_USING_GCC
1247 HAVE_DECL_REMAINDERL
1428 GL_GENERATE_FNMATCH_H_FALSE
1429 GL_GENERATE_FNMATCH_H_TRUE
1432 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
1438 GL_GENERATE_FLOAT_H_FALSE
1439 GL_GENERATE_FLOAT_H_TRUE
1441 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1443 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1460 GL_GENERATE_ERRNO_H_FALSE
1461 GL_GENERATE_ERRNO_H_TRUE
1463 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1466 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1469 PRAGMA_SYSTEM_HEADER
1470 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1494 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1495 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1496 UNISTD_H_HAVE_WINSOCK2_H
1521 REPLACE_GETDTABLESIZE
1522 REPLACE_GETDOMAINNAME
1535 HAVE_DECL_SETHOSTNAME
1536 HAVE_DECL_GETUSERSHELL
1537 HAVE_DECL_GETPAGESIZE
1538 HAVE_DECL_GETLOGIN_R
1540 HAVE_DECL_GETDOMAINNAME
1580 GNULIB_UNISTD_H_SIGPIPE
1581 GNULIB_UNISTD_H_NONBLOCKING
1609 GNULIB_GETDTABLESIZE
1610 GNULIB_GETDOMAINNAME
1640 REPLACE_CANONICALIZE_FILE_NAME
1645 HAVE_STRUCT_RANDOM_DATA
1671 HAVE_DECL_GETLOADAVG
1672 HAVE_CANONICALIZE_FILE_NAME
1683 GNULIB_SECURE_GETENV
1686 GNULIB_REALLOC_POSIX
1705 GNULIB_CANONICALIZE_FILE_NAME
1709 GL_GENERATE_ALLOCA_H_FALSE
1710 GL_GENERATE_ALLOCA_H_TRUE
1713 GL_COND_LIBTOOL_FALSE
1714 GL_COND_LIBTOOL_TRUE
1741 MAINTAINER_MODE_FALSE
1742 MAINTAINER_MODE_TRUE
1770 program_transform_name
1783 enable_option_checking
1784 enable_maintainer_mode
1786 enable_dependency_tracking
1789 ac_precious_vars
='build_alias
1800 # Initialize some variables set by options.
1802 ac_init_version
=false
1803 ac_unrecognized_opts
=
1804 ac_unrecognized_sep
=
1805 # The variables have the same names as the options, with
1806 # dashes changed to underlines.
1807 cache_file
=/dev
/null
1814 program_transform_name
=s
,x
,x
,
1822 # Installation directory options.
1823 # These are left unexpanded so users can "make install exec_prefix=/foo"
1824 # and all the variables that are supposed to be based on exec_prefix
1825 # by default will actually change.
1826 # Use braces instead of parens because sh, perl, etc. also accept them.
1827 # (The list follows the same order as the GNU Coding Standards.)
1828 bindir
='${exec_prefix}/bin'
1829 sbindir
='${exec_prefix}/sbin'
1830 libexecdir
='${exec_prefix}/libexec'
1831 datarootdir
='${prefix}/share'
1832 datadir
='${datarootdir}'
1833 sysconfdir
='${prefix}/etc'
1834 sharedstatedir
='${prefix}/com'
1835 localstatedir
='${prefix}/var'
1836 includedir
='${prefix}/include'
1837 oldincludedir
='/usr/include'
1838 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1839 infodir
='${datarootdir}/info'
1844 libdir
='${exec_prefix}/lib'
1845 localedir
='${datarootdir}/locale'
1846 mandir
='${datarootdir}/man'
1852 # If the previous option needs an argument, assign it.
1853 if test -n "$ac_prev"; then
1854 eval $ac_prev=\
$ac_option
1860 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1865 # Accept the important Cygnus configure options, so we can diagnose typos.
1867 case $ac_dashdash$ac_option in
1871 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1873 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1874 bindir
=$ac_optarg ;;
1876 -build |
--build |
--buil |
--bui |
--bu)
1877 ac_prev
=build_alias
;;
1878 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1879 build_alias
=$ac_optarg ;;
1881 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1882 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1883 ac_prev
=cache_file
;;
1884 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1885 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1886 cache_file
=$ac_optarg ;;
1888 --config-cache |
-C)
1889 cache_file
=config.cache
;;
1891 -datadir |
--datadir |
--datadi |
--datad)
1893 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1894 datadir
=$ac_optarg ;;
1896 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1897 |
--dataroo |
--dataro |
--datar)
1898 ac_prev
=datarootdir
;;
1899 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1900 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1901 datarootdir
=$ac_optarg ;;
1903 -disable-* |
--disable-*)
1904 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1905 # Reject names that are not valid shell variable names.
1906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1907 as_fn_error $?
"invalid feature name: $ac_useropt"
1908 ac_useropt_orig
=$ac_useropt
1909 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1910 case $ac_user_opts in
1912 "enable_
$ac_useropt"
1914 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1915 ac_unrecognized_sep
=', ';;
1917 eval enable_
$ac_useropt=no
;;
1919 -docdir |
--docdir |
--docdi |
--doc |
--do)
1921 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1922 docdir
=$ac_optarg ;;
1924 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1926 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1927 dvidir
=$ac_optarg ;;
1929 -enable-* |
--enable-*)
1930 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1931 # Reject names that are not valid shell variable names.
1932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1933 as_fn_error $?
"invalid feature name: $ac_useropt"
1934 ac_useropt_orig
=$ac_useropt
1935 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1936 case $ac_user_opts in
1938 "enable_
$ac_useropt"
1940 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1941 ac_unrecognized_sep
=', ';;
1943 eval enable_
$ac_useropt=\
$ac_optarg ;;
1945 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1946 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1947 |
--exec |
--exe |
--ex)
1948 ac_prev
=exec_prefix
;;
1949 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1950 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1951 |
--exec=* |
--exe=* |
--ex=*)
1952 exec_prefix
=$ac_optarg ;;
1954 -gas |
--gas |
--ga |
--g)
1955 # Obsolete; use --with-gas.
1958 -help |
--help |
--hel |
--he |
-h)
1959 ac_init_help
=long
;;
1960 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1961 ac_init_help
=recursive
;;
1962 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1963 ac_init_help
=short
;;
1965 -host |
--host |
--hos |
--ho)
1966 ac_prev
=host_alias
;;
1967 -host=* |
--host=* |
--hos=* |
--ho=*)
1968 host_alias
=$ac_optarg ;;
1970 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1972 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1974 htmldir
=$ac_optarg ;;
1976 -includedir |
--includedir |
--includedi |
--included |
--include \
1977 |
--includ |
--inclu |
--incl |
--inc)
1978 ac_prev
=includedir
;;
1979 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1980 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1981 includedir
=$ac_optarg ;;
1983 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1985 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1986 infodir
=$ac_optarg ;;
1988 -libdir |
--libdir |
--libdi |
--libd)
1990 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1991 libdir
=$ac_optarg ;;
1993 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1994 |
--libexe |
--libex |
--libe)
1995 ac_prev
=libexecdir
;;
1996 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1997 |
--libexe=* |
--libex=* |
--libe=*)
1998 libexecdir
=$ac_optarg ;;
2000 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2001 ac_prev
=localedir
;;
2002 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2003 localedir
=$ac_optarg ;;
2005 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2006 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2007 ac_prev
=localstatedir
;;
2008 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2009 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2010 localstatedir
=$ac_optarg ;;
2012 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2014 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2015 mandir
=$ac_optarg ;;
2017 -nfp |
--nfp |
--nf)
2018 # Obsolete; use --without-fp.
2021 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2022 |
--no-cr |
--no-c |
-n)
2025 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2026 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2029 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2030 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2031 |
--oldin |
--oldi |
--old |
--ol |
--o)
2032 ac_prev
=oldincludedir
;;
2033 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2034 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2035 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2036 oldincludedir
=$ac_optarg ;;
2038 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2040 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2041 prefix
=$ac_optarg ;;
2043 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2044 |
--program-pre |
--program-pr |
--program-p)
2045 ac_prev
=program_prefix
;;
2046 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2047 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2048 program_prefix
=$ac_optarg ;;
2050 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2051 |
--program-suf |
--program-su |
--program-s)
2052 ac_prev
=program_suffix
;;
2053 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2054 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2055 program_suffix
=$ac_optarg ;;
2057 -program-transform-name |
--program-transform-name \
2058 |
--program-transform-nam |
--program-transform-na \
2059 |
--program-transform-n |
--program-transform- \
2060 |
--program-transform |
--program-transfor \
2061 |
--program-transfo |
--program-transf \
2062 |
--program-trans |
--program-tran \
2063 |
--progr-tra |
--program-tr |
--program-t)
2064 ac_prev
=program_transform_name
;;
2065 -program-transform-name=* |
--program-transform-name=* \
2066 |
--program-transform-nam=* |
--program-transform-na=* \
2067 |
--program-transform-n=* |
--program-transform-=* \
2068 |
--program-transform=* |
--program-transfor=* \
2069 |
--program-transfo=* |
--program-transf=* \
2070 |
--program-trans=* |
--program-tran=* \
2071 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2072 program_transform_name
=$ac_optarg ;;
2074 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2076 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2077 pdfdir
=$ac_optarg ;;
2079 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2081 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2084 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2085 |
-silent |
--silent |
--silen |
--sile |
--sil)
2088 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2090 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2092 sbindir
=$ac_optarg ;;
2094 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2095 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2096 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2098 ac_prev
=sharedstatedir
;;
2099 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2100 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2101 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2103 sharedstatedir
=$ac_optarg ;;
2105 -site |
--site |
--sit)
2107 -site=* |
--site=* |
--sit=*)
2110 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2112 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2113 srcdir
=$ac_optarg ;;
2115 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2116 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2117 ac_prev
=sysconfdir
;;
2118 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2119 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2120 sysconfdir
=$ac_optarg ;;
2122 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2123 ac_prev
=target_alias
;;
2124 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2125 target_alias
=$ac_optarg ;;
2127 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2130 -version |
--version |
--versio |
--versi |
--vers |
-V)
2131 ac_init_version
=: ;;
2134 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2135 # Reject names that are not valid shell variable names.
2136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2137 as_fn_error $?
"invalid package name: $ac_useropt"
2138 ac_useropt_orig
=$ac_useropt
2139 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2140 case $ac_user_opts in
2144 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2145 ac_unrecognized_sep
=', ';;
2147 eval with_
$ac_useropt=\
$ac_optarg ;;
2149 -without-* |
--without-*)
2150 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2151 # Reject names that are not valid shell variable names.
2152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2153 as_fn_error $?
"invalid package name: $ac_useropt"
2154 ac_useropt_orig
=$ac_useropt
2155 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2156 case $ac_user_opts in
2160 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2161 ac_unrecognized_sep
=', ';;
2163 eval with_
$ac_useropt=no
;;
2166 # Obsolete; use --with-x.
2169 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2170 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2171 ac_prev
=x_includes
;;
2172 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2173 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2174 x_includes
=$ac_optarg ;;
2176 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2177 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2178 ac_prev
=x_libraries
;;
2179 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2180 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2181 x_libraries
=$ac_optarg ;;
2183 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2184 Try \`$0 --help' for more information"
2188 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2189 # Reject names that are not valid shell variable names.
2190 case $ac_envvar in #(
2191 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2192 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2194 eval $ac_envvar=\
$ac_optarg
2195 export $ac_envvar ;;
2198 # FIXME: should be removed in autoconf 3.0.
2199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2208 if test -n "$ac_prev"; then
2209 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2210 as_fn_error $?
"missing argument to $ac_option"
2213 if test -n "$ac_unrecognized_opts"; then
2214 case $enable_option_checking in
2216 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2221 # Check all directory arguments for consistency.
2222 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2223 datadir sysconfdir sharedstatedir localstatedir includedir \
2224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2225 libdir localedir mandir
2227 eval ac_val
=\$
$ac_var
2228 # Remove trailing slashes.
2231 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2232 eval $ac_var=\
$ac_val;;
2234 # Be sure to have absolute directory names.
2236 [\\/$
]* | ?
:[\\/]* ) continue;;
2237 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2239 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2242 # There might be people who depend on the old broken behavior: `$host'
2243 # used to hold the argument of --host etc.
2244 # FIXME: To remove some day.
2247 target
=$target_alias
2249 # FIXME: To remove some day.
2250 if test "x$host_alias" != x
; then
2251 if test "x$build_alias" = x
; then
2252 cross_compiling
=maybe
2253 elif test "x$build_alias" != "x$host_alias"; then
2259 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2261 test "$silent" = yes && exec 6>/dev
/null
2264 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2265 ac_ls_di
=`ls -di .` &&
2266 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2267 as_fn_error $?
"working directory cannot be determined"
2268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2269 as_fn_error $?
"pwd does not report name of working directory"
2272 # Find the source files, if location was not specified.
2273 if test -z "$srcdir"; then
2274 ac_srcdir_defaulted
=yes
2275 # Try the directory containing this script, then the parent directory.
2276 ac_confdir
=`$as_dirname -- "$as_myself" ||
2277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2278 X"$as_myself" : 'X\(//\)[^/]' \| \
2279 X"$as_myself" : 'X\(//\)$' \| \
2280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2281 $as_echo X"$as_myself" |
2282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2300 if test ! -r "$srcdir/$ac_unique_file"; then
2304 ac_srcdir_defaulted
=no
2306 if test ! -r "$srcdir/$ac_unique_file"; then
2307 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2308 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2310 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2314 # When building in place, set srcdir=.
2315 if test "$ac_abs_confdir" = "$ac_pwd"; then
2318 # Remove unnecessary trailing slashes from srcdir.
2319 # Double slashes in file names in object file debugging info
2320 # mess up M-x gdb in Emacs.
2322 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2324 for ac_var
in $ac_precious_vars; do
2325 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2326 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2327 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2328 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2332 # Report the --help message.
2334 if test "$ac_init_help" = "long"; then
2335 # Omit some internal or obsolete options to make the list less imposing.
2336 # This message is too long to be a string in the A/UX 3.1 sh.
2338 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2340 Usage: $0 [OPTION]... [VAR=VALUE]...
2342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2343 VAR=VALUE. See below for descriptions of some of the useful variables.
2345 Defaults for the options are specified in brackets.
2348 -h, --help display this help and exit
2349 --help=short display options specific to this package
2350 --help=recursive display the short help of all the included packages
2351 -V, --version display version information and exit
2352 -q, --quiet, --silent do not print \`checking ...' messages
2353 --cache-file=FILE cache test results in FILE [disabled]
2354 -C, --config-cache alias for \`--cache-file=config.cache'
2355 -n, --no-create do not create output files
2356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2358 Installation directories:
2359 --prefix=PREFIX install architecture-independent files in PREFIX
2360 [$ac_default_prefix]
2361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2364 By default, \`make install' will install all the files in
2365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2367 for instance \`--prefix=\$HOME'.
2369 For better control, use the options below.
2371 Fine tuning of the installation directories:
2372 --bindir=DIR user executables [EPREFIX/bin]
2373 --sbindir=DIR system admin executables [EPREFIX/sbin]
2374 --libexecdir=DIR program executables [EPREFIX/libexec]
2375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2378 --libdir=DIR object code libraries [EPREFIX/lib]
2379 --includedir=DIR C header files [PREFIX/include]
2380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2383 --infodir=DIR info documentation [DATAROOTDIR/info]
2384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2385 --mandir=DIR man documentation [DATAROOTDIR/man]
2386 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2387 --htmldir=DIR html documentation [DOCDIR]
2388 --dvidir=DIR dvi documentation [DOCDIR]
2389 --pdfdir=DIR pdf documentation [DOCDIR]
2390 --psdir=DIR ps documentation [DOCDIR]
2396 --program-prefix=PREFIX prepend PREFIX to installed program names
2397 --program-suffix=SUFFIX append SUFFIX to installed program names
2398 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2401 --build=BUILD configure
for building on BUILD
[guessed
]
2402 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2403 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2407 if test -n "$ac_init_help"; then
2408 case $ac_init_help in
2409 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2414 --disable-option-checking ignore unrecognized
--enable/--with options
2415 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2416 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2417 --enable-maintainer-mode
2418 enable make rules and dependencies not useful
(and
2419 sometimes confusing
) to the casual installer
2420 --disable-largefile omit support
for large files
2421 --enable-dependency-tracking
2422 do not reject slow dependency extractors
2423 --disable-dependency-tracking
2424 speeds up one-time build
2425 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2426 --disable-silent-rules verbose build output
(undo
: "make V=0")
2428 Some influential environment variables
:
2429 CC C compiler
command
2430 CFLAGS C compiler flags
2431 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2432 nonstandard directory
<lib dir
>
2433 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2434 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
2435 you have headers
in a nonstandard directory
<include dir
>
2438 Use these variables to override the choices made by
`configure' or to help
2439 it to find libraries and programs with nonstandard names/locations.
2441 Report bugs to the package provider.
2446 if test "$ac_init_help" = "recursive"; then
2447 # If there are subdirs, report their specific --help.
2448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2449 test -d "$ac_dir" ||
2450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2457 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2458 # A ".." for each directory in $ac_dir_suffix.
2459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2460 case $ac_top_builddir_sub in
2461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2465 ac_abs_top_builddir=$ac_pwd
2466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2467 # for backward compatibility:
2468 ac_top_builddir=$ac_top_build_prefix
2471 .) # We are building in place.
2473 ac_top_srcdir=$ac_top_builddir_sub
2474 ac_abs_top_srcdir=$ac_pwd ;;
2475 [\\/]* | ?:[\\/]* ) # Absolute name.
2476 ac_srcdir=$srcdir$ac_dir_suffix;
2477 ac_top_srcdir=$srcdir
2478 ac_abs_top_srcdir=$srcdir ;;
2480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2481 ac_top_srcdir=$ac_top_build_prefix$srcdir
2482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2486 cd "$ac_dir" || { ac_status=$?; continue; }
2487 # Check for guested configure.
2488 if test -f "$ac_srcdir/configure.gnu"; then
2490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2491 elif test -f "$ac_srcdir/configure"; then
2493 $SHELL "$ac_srcdir/configure" --help=recursive
2495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2497 cd "$ac_pwd" || { ac_status=$?; break; }
2501 test -n "$ac_init_help" && exit $ac_status
2502 if $ac_init_version; then
2504 libgnu configure UNUSED-VERSION
2505 generated by GNU Autoconf 2.69
2507 Copyright (C) 2012 Free Software Foundation, Inc.
2508 This configure script is free software; the Free Software Foundation
2509 gives unlimited permission to copy, distribute and modify it.
2514 ## ------------------------ ##
2515 ## Autoconf initialization. ##
2516 ## ------------------------ ##
2518 # ac_fn_c_try_compile LINENO
2519 # --------------------------
2520 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2521 ac_fn_c_try_compile ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 rm -f conftest.$ac_objext
2525 if { { ac_try="$ac_compile"
2527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2528 *) ac_try_echo
=$ac_try;;
2530 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2531 $as_echo "$ac_try_echo"; } >&5
2532 (eval "$ac_compile") 2>conftest.err
2534 if test -s conftest.err
; then
2535 grep -v '^ *+' conftest.err
>conftest.er1
2536 cat conftest.er1
>&5
2537 mv -f conftest.er1 conftest.err
2539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2540 test $ac_status = 0; } && {
2541 test -z "$ac_c_werror_flag" ||
2542 test ! -s conftest.err
2543 } && test -s conftest.
$ac_objext; then :
2546 $as_echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.
$ac_ext >&5
2551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2552 as_fn_set_status
$ac_retval
2554 } # ac_fn_c_try_compile
2556 # ac_fn_c_try_cpp LINENO
2557 # ----------------------
2558 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2561 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2562 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568 $as_echo "$ac_try_echo"; } >&5
2569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2571 if test -s conftest.err; then
2572 grep -v '^ *+' conftest.err >conftest.er1
2573 cat conftest.er1 >&5
2574 mv -f conftest.er1 conftest.err
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; } > conftest.i && {
2578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2579 test ! -s conftest.err
2583 $as_echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589 as_fn_set_status $ac_retval
2593 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2594 # -------------------------------------------------------
2595 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2596 # the include files in INCLUDES and setting the cache variable VAR
2598 ac_fn_c_check_header_mongrel ()
2600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2601 if eval \${$3+:} false; then :
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if eval \${$3+:} false; then :
2605 $as_echo_n "(cached) " >&6
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2611 # Is the header compilable?
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2613 $as_echo_n "checking $2 usability... " >&6; }
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2619 if ac_fn_c_try_compile "$LINENO"; then :
2620 ac_header_compiler=yes
2622 ac_header_compiler=no
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2626 $as_echo "$ac_header_compiler" >&6; }
2628 # Is the header present?
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2630 $as_echo_n "checking $2 presence... " >&6; }
2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2635 if ac_fn_c_try_cpp "$LINENO"; then :
2636 ac_header_preproc=yes
2638 ac_header_preproc=no
2640 rm -f conftest.err conftest.i conftest.$ac_ext
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2642 $as_echo "$ac_header_preproc" >&6; }
2644 # So? What about this header?
2645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2648 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2650 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2654 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2656 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2658 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2660 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2662 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2666 $as_echo_n "checking for $2... " >&6; }
2667 if eval \${$3+:} false; then :
2668 $as_echo_n "(cached) " >&6
2670 eval "$3=\$ac_header_compiler"
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674 $as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678 } # ac_fn_c_check_header_mongrel
2680 # ac_fn_c_try_run LINENO
2681 # ----------------------
2682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2683 # that executables *can* be run.
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 if { { ac_try="$ac_link"
2689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2690 *) ac_try_echo
=$ac_try;;
2692 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694 (eval "$ac_link") 2>&5
2696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2697 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2698 { { case "(($ac_try" in
2699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2703 $as_echo "$ac_try_echo"; } >&5
2704 (eval "$ac_try") 2>&5
2706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2707 test $ac_status = 0; }; }; then :
2710 $as_echo "$as_me: program exited with status $ac_status" >&5
2711 $as_echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2714 ac_retval=$ac_status
2716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2718 as_fn_set_status $ac_retval
2722 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2723 # -------------------------------------------------------
2724 # Tests whether HEADER exists and can be compiled using the include files in
2725 # INCLUDES, setting the cache variable VAR accordingly.
2726 ac_fn_c_check_header_compile ()
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2730 $as_echo_n "checking for $2... " >&6; }
2731 if eval \${$3+:} false; then :
2732 $as_echo_n "(cached) " >&6
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2739 if ac_fn_c_try_compile "$LINENO"; then :
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2748 $as_echo "$ac_res" >&6; }
2749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2751 } # ac_fn_c_check_header_compile
2753 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2754 # -------------------------------------------
2755 # Tests whether TYPE exists after having included INCLUDES, setting cache
2756 # variable VAR accordingly.
2757 ac_fn_c_check_type ()
2759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2761 $as_echo_n "checking for $2... " >&6; }
2762 if eval \${$3+:} false; then :
2763 $as_echo_n "(cached) " >&6
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2778 if ac_fn_c_try_compile "$LINENO"; then :
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h. */
2791 if ac_fn_c_try_compile "$LINENO"; then :
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2802 $as_echo "$ac_res" >&6; }
2803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805 } # ac_fn_c_check_type
2807 # ac_fn_c_try_link LINENO
2808 # -----------------------
2809 # Try to link conftest.$ac_ext, and return whether this succeeded.
2812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2813 rm -f conftest.$ac_objext conftest$ac_exeext
2814 if { { ac_try="$ac_link"
2816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2817 *) ac_try_echo
=$ac_try;;
2819 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 $as_echo "$ac_try_echo"; } >&5
2821 (eval "$ac_link") 2>conftest.err
2823 if test -s conftest.err
; then
2824 grep -v '^ *+' conftest.err
>conftest.er1
2825 cat conftest.er1
>&5
2826 mv -f conftest.er1 conftest.err
2828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2829 test $ac_status = 0; } && {
2830 test -z "$ac_c_werror_flag" ||
2831 test ! -s conftest.err
2832 } && test -s conftest
$ac_exeext && {
2833 test "$cross_compiling" = yes ||
2834 test -x conftest
$ac_exeext
2838 $as_echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.
$ac_ext >&5
2843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2845 # interfere with the next link command; also delete a directory that is
2846 # left behind by Apple's compiler. We do this before executing the actions.
2847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2849 as_fn_set_status
$ac_retval
2851 } # ac_fn_c_try_link
2853 # ac_fn_c_check_func LINENO FUNC VAR
2854 # ----------------------------------
2855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2856 ac_fn_c_check_func
()
2858 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2860 $as_echo_n "checking for $2... " >&6; }
2861 if eval \
${$3+:} false
; then :
2862 $as_echo_n "(cached) " >&6
2864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2865 /* end confdefs.h. */
2866 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2868 #define $2 innocuous_$2
2870 /* System header to define __stub macros and hopefully few prototypes,
2871 which can conflict with char $2 (); below.
2872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873 <limits.h> exists even on freestanding compilers. */
2876 # include <limits.h>
2878 # include <assert.h>
2883 /* Override any GCC internal prototype to avoid an error.
2884 Use char because int might match the return type of a GCC
2885 builtin and then its argument prototype would still apply. */
2890 /* The GNU C library defines this for functions which it implements
2891 to always fail with ENOSYS. Some functions are actually named
2892 something starting with __ and the normal name is an alias. */
2893 #if defined __stub_$2 || defined __stub___$2
2905 if ac_fn_c_try_link
"$LINENO"; then :
2910 rm -f core conftest.err conftest.
$ac_objext \
2911 conftest
$ac_exeext conftest.
$ac_ext
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2915 $as_echo "$ac_res" >&6; }
2916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2918 } # ac_fn_c_check_func
2920 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2921 # ---------------------------------------------
2922 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2924 ac_fn_c_check_decl
()
2926 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2927 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2928 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2930 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2931 if eval \
${$3+:} false
; then :
2932 $as_echo_n "(cached) " >&6
2934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h. */
2940 #ifndef $as_decl_name
2942 (void) $as_decl_use;
2944 (void) $as_decl_name;
2952 if ac_fn_c_try_compile
"$LINENO"; then :
2957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2961 $as_echo "$ac_res" >&6; }
2962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2964 } # ac_fn_c_check_decl
2966 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2967 # --------------------------------------------
2968 # Tries to find the compile-time value of EXPR in a program that includes
2969 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2971 ac_fn_c_compute_int
()
2973 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2974 if test "$cross_compiling" = yes; then
2975 # Depending upon the size, compute the lo and hi bounds.
2976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2982 static int test_array [1 - 2 * !(($2) >= 0)];
2984 return test_array [0];
2990 if ac_fn_c_try_compile
"$LINENO"; then :
2993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h. */
2999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3001 return test_array [0];
3007 if ac_fn_c_try_compile
"$LINENO"; then :
3008 ac_hi
=$ac_mid; break
3010 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
3011 if test $ac_lo -le $ac_mid; then
3015 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
3017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3026 static int test_array [1 - 2 * !(($2) < 0)];
3028 return test_array [0];
3034 if ac_fn_c_try_compile
"$LINENO"; then :
3037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3043 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3045 return test_array [0];
3051 if ac_fn_c_try_compile
"$LINENO"; then :
3052 ac_lo
=$ac_mid; break
3054 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
3055 if test $ac_mid -le $ac_hi; then
3059 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
3061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3069 # Binary search between lo and hi bounds.
3070 while test "x$ac_lo" != "x$ac_hi"; do
3071 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
3072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3080 return test_array [0];
3086 if ac_fn_c_try_compile
"$LINENO"; then :
3089 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
3091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3094 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
3098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h. */
3101 static long int longval () { return $2; }
3102 static unsigned long int ulongval () { return $2; }
3109 FILE *f = fopen ("conftest.val", "w");
3114 long int i = longval ();
3117 fprintf (f, "%ld", i);
3121 unsigned long int i = ulongval ();
3124 fprintf (f, "%lu", i);
3126 /* Do not output a trailing newline, as this causes \r\n confusion
3127 on some platforms. */
3128 return ferror (f) || fclose (f) != 0;
3134 if ac_fn_c_try_run
"$LINENO"; then :
3135 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
3139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3140 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3145 as_fn_set_status
$ac_retval
3147 } # ac_fn_c_compute_int
3149 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3150 # ----------------------------------------------------
3151 # Tries to find if the field MEMBER exists in type AGGR, after including
3152 # INCLUDES, setting cache variable VAR accordingly.
3153 ac_fn_c_check_member
()
3155 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3157 $as_echo_n "checking for $2.$3... " >&6; }
3158 if eval \
${$4+:} false
; then :
3159 $as_echo_n "(cached) " >&6
3161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3174 if ac_fn_c_try_compile
"$LINENO"; then :
3177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3184 if (sizeof ac_aggr.$3)
3190 if ac_fn_c_try_compile
"$LINENO"; then :
3195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3201 $as_echo "$ac_res" >&6; }
3202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3204 } # ac_fn_c_check_member
3205 cat >config.log
<<_ACEOF
3206 This file contains any messages produced by compilers while
3207 running configure, to aid debugging if configure makes a mistake.
3209 It was created by libgnu $as_me UNUSED-VERSION, which was
3210 generated by GNU Autoconf 2.69. Invocation command line was
3222 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3223 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3224 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3225 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3226 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3228 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3229 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3231 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3232 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3233 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3234 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3235 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3236 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3237 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir
=.
3246 $as_echo "PATH: $as_dir"
3262 # Keep a trace of the command line.
3263 # Strip out --no-create and --no-recursion so they do not pile up.
3264 # Strip out --silent because we don't want to record it for future runs.
3265 # Also quote any args containing shell meta-characters.
3266 # Make two passes to allow for proper duplicate-argument suppression.
3270 ac_must_keep_next
=false
3276 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
3277 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
3278 |
-silent |
--silent |
--silen |
--sile |
--sil)
3281 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3284 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
3286 as_fn_append ac_configure_args1
" '$ac_arg'"
3287 if test $ac_must_keep_next = true
; then
3288 ac_must_keep_next
=false
# Got value, back to normal.
3291 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
3292 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
3293 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
3294 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
3295 case "$ac_configure_args0 " in
3296 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3299 -* ) ac_must_keep_next
=true
;;
3302 as_fn_append ac_configure_args
" '$ac_arg'"
3307 { ac_configure_args0
=; unset ac_configure_args0
;}
3308 { ac_configure_args1
=; unset ac_configure_args1
;}
3310 # When interrupted or exit'd, cleanup temporary files, and complete
3311 # config.log. We remove comments because anyway the quotes in there
3312 # would cause problems or look ugly.
3313 # WARNING: Use '\'' to represent an apostrophe within the trap.
3314 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3315 trap 'exit_status=$?
3316 # Save into config.log some information that might help in debugging.
3320 $as_echo "## ---------------- ##
3321 ## Cache variables. ##
3322 ## ---------------- ##"
3324 # The following way of writing the cache mishandles newlines in values,
3326 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3327 eval ac_val=\$$ac_var
3331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3335 _ | IFS | as_nl) ;; #(
3336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3337 *) { eval $ac_var=; unset $ac_var;} ;;
3342 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3343 *${as_nl}ac_space=\ *)
3345 "s/'\''/'\''\\\\'\'''\''/g;
3346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3356 $as_echo "## ----------------- ##
3357 ## Output variables. ##
3358 ## ----------------- ##"
3360 for ac_var in $ac_subst_vars
3362 eval ac_val=\$$ac_var
3364 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3366 $as_echo "$ac_var='\''$ac_val'\''"
3370 if test -n "$ac_subst_files"; then
3371 $as_echo "## ------------------- ##
3372 ## File substitutions. ##
3373 ## ------------------- ##"
3375 for ac_var
in $ac_subst_files
3377 eval ac_val
=\$
$ac_var
3379 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3381 $as_echo "$ac_var='\''$ac_val'\''"
3386 if test -s confdefs.h; then
3387 $as_echo "## ----------- ##
3394 test "$ac_signal" != 0 &&
3395 $as_echo "$as_me: caught signal $ac_signal"
3396 $as_echo "$as_me: exit $exit_status"
3398 rm -f core *.core core.conftest.* &&
3399 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3402 for ac_signal
in 1 2 13 15; do
3403 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3408 rm -f -r conftest
* confdefs.h
3410 $as_echo "/* confdefs.h */" > confdefs.h
3412 # Predefined preprocessor variables.
3414 cat >>confdefs.h
<<_ACEOF
3415 #define PACKAGE_NAME "$PACKAGE_NAME"
3418 cat >>confdefs.h
<<_ACEOF
3419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3422 cat >>confdefs.h
<<_ACEOF
3423 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3426 cat >>confdefs.h
<<_ACEOF
3427 #define PACKAGE_STRING "$PACKAGE_STRING"
3430 cat >>confdefs.h
<<_ACEOF
3431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3434 cat >>confdefs.h
<<_ACEOF
3435 #define PACKAGE_URL "$PACKAGE_URL"
3439 # Let the site file select an alternate cache file if it wants to.
3440 # Prefer an explicitly selected file to automatically selected ones.
3443 if test -n "$CONFIG_SITE"; then
3444 # We do not want a PATH search for config.site.
3445 case $CONFIG_SITE in #((
3446 -*) ac_site_file1
=.
/$CONFIG_SITE;;
3447 */*) ac_site_file1
=$CONFIG_SITE;;
3448 *) ac_site_file1
=.
/$CONFIG_SITE;;
3450 elif test "x$prefix" != xNONE
; then
3451 ac_site_file1
=$prefix/share
/config.site
3452 ac_site_file2
=$prefix/etc
/config.site
3454 ac_site_file1
=$ac_default_prefix/share
/config.site
3455 ac_site_file2
=$ac_default_prefix/etc
/config.site
3457 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3459 test "x$ac_site_file" = xNONE
&& continue
3460 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3462 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3463 sed 's/^/| /' "$ac_site_file" >&5
3465 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error $?
"failed to load site script $ac_site_file
3468 See \`config.log' for more details" "$LINENO" 5; }
3472 if test -r "$cache_file"; then
3473 # Some versions of bash will fail to source /dev/null (special files
3474 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3475 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3477 $as_echo "$as_me: loading cache $cache_file" >&6;}
3479 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3480 *) .
"./$cache_file";;
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3485 $as_echo "$as_me: creating cache $cache_file" >&6;}
3489 gl_func_list
="$gl_func_list canonicalize_file_name"
3490 gl_func_list
="$gl_func_list getcwd"
3491 gl_func_list
="$gl_func_list readlink"
3492 gl_func_list
="$gl_func_list realpath"
3493 gl_header_list
="$gl_header_list sys/param.h"
3494 gl_header_list
="$gl_header_list unistd.h"
3495 gl_func_list
="$gl_func_list _set_invalid_parameter_handler"
3496 gl_header_list
="$gl_header_list sys/socket.h"
3497 gl_func_list
="$gl_func_list fchdir"
3498 gl_header_list
="$gl_header_list dirent.h"
3499 gl_func_list
="$gl_func_list fcntl"
3500 gl_func_list
="$gl_func_list symlink"
3501 gl_func_list
="$gl_func_list fdopendir"
3502 gl_func_list
="$gl_func_list mempcpy"
3503 gl_header_list
="$gl_header_list fnmatch.h"
3504 gl_func_list
="$gl_func_list fnmatch"
3505 gl_func_list
="$gl_func_list btowc"
3506 gl_func_list
="$gl_func_list isblank"
3507 gl_func_list
="$gl_func_list iswctype"
3508 gl_func_list
="$gl_func_list mbsrtowcs"
3509 gl_func_list
="$gl_func_list wmemchr"
3510 gl_func_list
="$gl_func_list wmemcpy"
3511 gl_func_list
="$gl_func_list wmempcpy"
3512 gl_header_list
="$gl_header_list wctype.h"
3513 gl_fnmatch_required
=GNU
3514 gl_header_list
="$gl_header_list sys/stat.h"
3515 gl_func_list
="$gl_func_list fstatat"
3516 gl_func_list
="$gl_func_list getdtablesize"
3517 gl_func_list
="$gl_func_list getlogin_r"
3518 gl_func_list
="$gl_func_list getprogname"
3519 gl_func_list
="$gl_func_list getexecname"
3520 gl_header_list
="$gl_header_list sys/time.h"
3521 gl_func_list
="$gl_func_list gettimeofday"
3522 gl_header_list
="$gl_header_list glob.h"
3523 gl_func_list
="$gl_func_list glob"
3524 gl_func_list
="$gl_func_list glob_pattern_p"
3525 gl_func_list
="$gl_func_list getpwnam_r"
3526 gl_header_list
="$gl_header_list limits.h"
3527 gl_header_list
="$gl_header_list wchar.h"
3528 gl_header_list
="$gl_header_list stdint.h"
3529 gl_header_list
="$gl_header_list inttypes.h"
3530 gl_func_list
="$gl_func_list lstat"
3531 gl_header_list
="$gl_header_list math.h"
3532 gl_func_list
="$gl_func_list mbsinit"
3533 gl_func_list
="$gl_func_list mbrtowc"
3534 gl_header_list
="$gl_header_list sys/mman.h"
3535 gl_func_list
="$gl_func_list mprotect"
3536 gl_func_list
="$gl_func_list mkstemp"
3537 gl_func_list
="$gl_func_list openat"
3538 gl_func_list
="$gl_func_list link"
3539 gl_func_list
="$gl_func_list setenv"
3540 gl_func_list
="$gl_func_list strdup"
3541 gl_func_list
="$gl_func_list pipe"
3542 gl_header_list
="$gl_header_list features.h"
3543 gl_header_list
="$gl_header_list crtdefs.h"
3544 gl_func_list
="$gl_func_list iswcntrl"
3545 # Check that the precious variables saved in the cache have kept the same
3547 ac_cache_corrupted
=false
3548 for ac_var
in $ac_precious_vars; do
3549 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3550 eval ac_new_set
=\
$ac_env_${ac_var}_set
3551 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3552 eval ac_new_val
=\
$ac_env_${ac_var}_value
3553 case $ac_old_set,$ac_new_set in
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3556 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3557 ac_cache_corrupted
=: ;;
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3560 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3561 ac_cache_corrupted
=: ;;
3564 if test "x$ac_old_val" != "x$ac_new_val"; then
3565 # differences in whitespace do not lead to failure.
3566 ac_old_val_w
=`echo x $ac_old_val`
3567 ac_new_val_w
=`echo x $ac_new_val`
3568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3570 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3571 ac_cache_corrupted
=:
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3574 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3575 eval $ac_var=\
$ac_old_val
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3578 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3580 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3583 # Pass precious variables to config.status.
3584 if test "$ac_new_set" = set; then
3586 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3587 *) ac_arg
=$ac_var=$ac_new_val ;;
3589 case " $ac_configure_args " in
3590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3591 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3595 if $ac_cache_corrupted; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3599 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3600 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3602 ## -------------------- ##
3603 ## Main body of script. ##
3604 ## -------------------- ##
3607 ac_cpp
='$CPP $CPPFLAGS'
3608 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3609 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3610 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3614 ac_config_headers
="$ac_config_headers config.h:config.in"
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3618 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3619 # Check whether --enable-maintainer-mode was given.
3620 if test "${enable_maintainer_mode+set}" = set; then :
3621 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3623 USE_MAINTAINER_MODE
=no
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3627 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3628 if test $USE_MAINTAINER_MODE = yes; then
3629 MAINTAINER_MODE_TRUE
=
3630 MAINTAINER_MODE_FALSE
='#'
3632 MAINTAINER_MODE_TRUE
='#'
3633 MAINTAINER_MODE_FALSE
=
3636 MAINT
=$MAINTAINER_MODE_TRUE
3641 ac_cpp
='$CPP $CPPFLAGS'
3642 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3647 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_CC+:} false
; then :
3651 $as_echo_n "(cached) " >&6
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC
="$CC" # Let the user override the test.
3656 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir
=.
3661 for ac_exec_ext
in '' $ac_executable_extensions; do
3662 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 if test -n "$CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3684 if test -z "$ac_cv_prog_CC"; then
3686 # Extract the first word of "gcc", so it can be a program name with args.
3687 set dummy gcc
; ac_word
=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3691 $as_echo_n "(cached) " >&6
3693 if test -n "$ac_ct_CC"; then
3694 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3696 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir
=.
3701 for ac_exec_ext
in '' $ac_executable_extensions; do
3702 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3703 ac_cv_prog_ac_ct_CC
="gcc"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3714 if test -n "$ac_ct_CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3716 $as_echo "$ac_ct_CC" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3722 if test "x$ac_ct_CC" = x
; then
3725 case $cross_compiling:$ac_tool_warned in
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3729 ac_tool_warned
=yes ;;
3737 if test -z "$CC"; then
3738 if test -n "$ac_tool_prefix"; then
3739 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3740 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if ${ac_cv_prog_CC+:} false
; then :
3744 $as_echo_n "(cached) " >&6
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC
="$CC" # Let the user override the test.
3749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir
=.
3754 for ac_exec_ext
in '' $ac_executable_extensions; do
3755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 if test -n "$CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769 $as_echo "$CC" >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3778 if test -z "$CC"; then
3779 # Extract the first word of "cc", so it can be a program name with args.
3780 set dummy cc
; ac_word
=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_CC+:} false
; then :
3784 $as_echo_n "(cached) " >&6
3786 if test -n "$CC"; then
3787 ac_cv_prog_CC
="$CC" # Let the user override the test.
3790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3794 test -z "$as_dir" && as_dir
=.
3795 for ac_exec_ext
in '' $ac_executable_extensions; do
3796 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3798 ac_prog_rejected
=yes
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 if test $ac_prog_rejected = yes; then
3810 # We found a bogon in the path, so make sure we never use it.
3811 set dummy
$ac_cv_prog_CC
3813 if test $# != 0; then
3814 # We chose a different compiler from the bogus one.
3815 # However, it has the same basename, so the bogon will be chosen
3816 # first if we set CC to just the basename; use the full file name.
3818 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3824 if test -n "$CC"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826 $as_echo "$CC" >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3834 if test -z "$CC"; then
3835 if test -n "$ac_tool_prefix"; then
3836 for ac_prog
in cl.exe
3838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3839 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if ${ac_cv_prog_CC+:} false
; then :
3843 $as_echo_n "(cached) " >&6
3845 if test -n "$CC"; then
3846 ac_cv_prog_CC
="$CC" # Let the user override the test.
3848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3852 test -z "$as_dir" && as_dir
=.
3853 for ac_exec_ext
in '' $ac_executable_extensions; do
3854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 if test -n "$CC"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3868 $as_echo "$CC" >&6; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3875 test -n "$CC" && break
3878 if test -z "$CC"; then
3880 for ac_prog
in cl.exe
3882 # Extract the first word of "$ac_prog", so it can be a program name with args.
3883 set dummy
$ac_prog; ac_word
=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3887 $as_echo_n "(cached) " >&6
3889 if test -n "$ac_ct_CC"; then
3890 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3896 test -z "$as_dir" && as_dir
=.
3897 for ac_exec_ext
in '' $ac_executable_extensions; do
3898 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_ac_ct_CC
="$ac_prog"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3910 if test -n "$ac_ct_CC"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3912 $as_echo "$ac_ct_CC" >&6; }
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3919 test -n "$ac_ct_CC" && break
3922 if test "x$ac_ct_CC" = x
; then
3925 case $cross_compiling:$ac_tool_warned in
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3929 ac_tool_warned
=yes ;;
3936 if test -z "$CC"; then
3937 if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3939 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if ${ac_cv_prog_CC+:} false
; then :
3943 $as_echo_n "(cached) " >&6
3945 if test -n "$CC"; then
3946 ac_cv_prog_CC
="$CC" # Let the user override the test.
3948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3952 test -z "$as_dir" && as_dir
=.
3953 for ac_exec_ext
in '' $ac_executable_extensions; do
3954 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 if test -n "$CC"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968 $as_echo "$CC" >&6; }
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3976 if test -z "$ac_cv_prog_CC"; then
3978 # Extract the first word of "clang", so it can be a program name with args.
3979 set dummy clang
; ac_word
=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3983 $as_echo_n "(cached) " >&6
3985 if test -n "$ac_ct_CC"; then
3986 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir
=.
3993 for ac_exec_ext
in '' $ac_executable_extensions; do
3994 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_ac_ct_CC
="clang"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4006 if test -n "$ac_ct_CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4008 $as_echo "$ac_ct_CC" >&6; }
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4014 if test "x$ac_ct_CC" = x
; then
4017 case $cross_compiling:$ac_tool_warned in
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021 ac_tool_warned
=yes ;;
4032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error $?
"no acceptable C compiler found in \$PATH
4035 See \`config.log' for more details" "$LINENO" 5; }
4037 # Provide some information about the compiler.
4038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4041 for ac_option
in --version -v -V -qversion -version; do
4042 { { ac_try
="$ac_compiler $ac_option >&5"
4044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4051 if test -s conftest.err; then
4053 ... rest of stderr output deleted ...
4054 10q' conftest.err >conftest.er1
4055 cat conftest.er1 >&5
4057 rm -f conftest.er1 conftest.err
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 ac_clean_files_save=$ac_clean_files
4074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4075 # Try to create an executable without -o first, disregard a.out.
4076 # It will help us diagnose broken compilers, and finding out an intuition
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4079 $as_echo_n "checking whether the C compiler works... " >&6; }
4080 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4082 # The possible output files:
4083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4086 for ac_file in $ac_files
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4095 if { { ac_try="$ac_link_default"
4097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4098 *) ac_try_echo
=$ac_try;;
4100 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_link_default") 2>&5
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4108 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4109 # so that the user can short-circuit this test for compilers unknown to
4111 for ac_file
in $ac_files ''
4113 test -f "$ac_file" ||
continue
4115 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4118 # We found the default executable, but exeext='' is most
4122 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4124 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4126 # We set ac_cv_exeext here because the later test for it is not
4127 # safe: cross compilers may not add the suffix if given an `-o'
4128 # argument, so we may need to know it at that point already.
4129 # Even if this section looks crufty: it has the advantage of
4136 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4141 if test -z "$ac_file"; then :
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.
$ac_ext >&5
4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 as_fn_error
77 "C compiler cannot create executables
4150 See \`config.log' for more details" "$LINENO" 5; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4153 $as_echo "yes" >&6; }
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4156 $as_echo_n "checking for C compiler default output file name... " >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4158 $as_echo "$ac_file" >&6; }
4159 ac_exeext
=$ac_cv_exeext
4161 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4162 ac_clean_files
=$ac_clean_files_save
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4164 $as_echo_n "checking for suffix of executables... " >&6; }
4165 if { { ac_try
="$ac_link"
4167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4171 $as_echo "$ac_try_echo"; } >&5
4172 (eval "$ac_link") 2>&5
4174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175 test $ac_status = 0; }; then :
4176 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4177 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4178 # work properly (i.e., refer to `conftest.exe'), while it won't with
4180 for ac_file
in conftest.exe conftest conftest.
*; do
4181 test -f "$ac_file" ||
continue
4183 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4184 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4193 See \`config.log' for more details" "$LINENO" 5; }
4195 rm -f conftest conftest
$ac_cv_exeext
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4197 $as_echo "$ac_cv_exeext" >&6; }
4199 rm -f conftest.
$ac_ext
4200 EXEEXT
=$ac_cv_exeext
4202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4208 FILE *f = fopen ("conftest.out", "w");
4209 return ferror (f) || fclose (f) != 0;
4215 ac_clean_files
="$ac_clean_files conftest.out"
4216 # Check that the compiler produces executables we can run. If not, either
4217 # the compiler is broken, or we cross compile.
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4219 $as_echo_n "checking whether we are cross compiling... " >&6; }
4220 if test "$cross_compiling" != yes; then
4221 { { ac_try
="$ac_link"
4223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_link") 2>&5
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; }
4232 if { ac_try='./conftest$ac_cv_exeext'
4233 { { case "(($ac_try" in
4234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4235 *) ac_try_echo
=$ac_try;;
4237 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 $as_echo "$ac_try_echo"; } >&5
4239 (eval "$ac_try") 2>&5
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }; }; then
4245 if test "$cross_compiling" = maybe
; then
4248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4250 as_fn_error $?
"cannot run C compiled programs.
4251 If you meant to cross compile, use \`--host'.
4252 See \`config.log' for more details" "$LINENO" 5; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4257 $as_echo "$cross_compiling" >&6; }
4259 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4260 ac_clean_files
=$ac_clean_files_save
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4262 $as_echo_n "checking for suffix of object files... " >&6; }
4263 if ${ac_cv_objext+:} false
; then :
4264 $as_echo_n "(cached) " >&6
4266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 rm -f conftest.o conftest.obj
4278 if { { ac_try
="$ac_compile"
4280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_compile") 2>&5
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; }; then :
4289 for ac_file in conftest.o conftest.obj conftest.*; do
4290 test -f "$ac_file" || continue;
4292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4293 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4298 $as_echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4303 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4304 See \
`config.log' for more details" "$LINENO" 5; }
4306 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4309 $as_echo "$ac_cv_objext" >&6; }
4310 OBJEXT=$ac_cv_objext
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4313 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4314 if ${ac_cv_c_compiler_gnu+:} false; then :
4315 $as_echo_n "(cached) " >&6
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4331 if ac_fn_c_try_compile "$LINENO"; then :
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4341 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4342 if test $ac_compiler_gnu = yes; then
4347 ac_test_CFLAGS=${CFLAGS+set}
4348 ac_save_CFLAGS=$CFLAGS
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4350 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4351 if ${ac_cv_prog_cc_g+:} false; then :
4352 $as_echo_n "(cached) " >&6
4354 ac_save_c_werror_flag=$ac_c_werror_flag
4355 ac_c_werror_flag=yes
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4369 if ac_fn_c_try_compile "$LINENO"; then :
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4384 if ac_fn_c_try_compile "$LINENO"; then :
4387 ac_c_werror_flag=$ac_save_c_werror_flag
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4400 if ac_fn_c_try_compile "$LINENO"; then :
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 ac_c_werror_flag=$ac_save_c_werror_flag
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4411 $as_echo "$ac_cv_prog_cc_g" >&6; }
4412 if test "$ac_test_CFLAGS" = set; then
4413 CFLAGS=$ac_save_CFLAGS
4414 elif test $ac_cv_prog_cc_g = yes; then
4415 if test "$GCC" = yes; then
4421 if test "$GCC" = yes; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4428 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
4429 if ${ac_cv_prog_cc_c11+:} false; then :
4430 $as_echo_n "(cached) " >&6
4432 ac_cv_prog_cc_c11=no
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4437 #include <stdbool.h>
4443 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4444 #define debug(...) fprintf (stderr, __VA_ARGS__)
4445 #define showlist(...) puts (#__VA_ARGS__)
4446 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4448 test_varargs_macros (void)
4453 debug ("X = %d\n", x);
4454 showlist (The first, second, and third items.);
4455 report (x>y, "x is %d but y is %d", x, y);
4458 // Check long long types.
4459 #define BIG64 18446744073709551615ull
4460 #define BIG32 4294967295ul
4461 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4463 your preprocessor is broken;
4467 your preprocessor is broken;
4469 static long long int bignum = -9223372036854775807LL;
4470 static unsigned long long int ubignum = BIG64;
4472 struct incomplete_array
4480 const wchar_t *name;
4484 typedef const char *ccp;
4487 test_restrict (ccp restrict text)
4489 // See if C++-style comments work.
4490 // Iterate through items via the restricted pointer.
4491 // Also check for declarations in for loops.
4492 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4497 // Check varargs and va_copy.
4499 test_varargs (const char *format, ...)
4502 va_start (args, format);
4504 va_copy (args_copy, args);
4506 const char *str = "";
4515 str = va_arg (args_copy, const char *);
4518 number = va_arg (args_copy, int);
4521 fnumber = va_arg (args_copy, double);
4530 return *str && number && fnumber;
4533 char _Alignas (double) aligned_as_double;
4534 char _Alignas (0) no_special_alignment;
4535 extern char aligned_as_int;
4536 char _Alignas (0) _Alignas (int) aligned_as_int;
4541 int_alignment = _Alignof (int),
4542 int_array_alignment = _Alignof (int[100]),
4543 char_alignment = _Alignof (char)
4545 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4548 int _Noreturn does_not_return (void) { for (;;) continue; }
4550 // Check _Static_assert.
4551 struct test_static_assert
4554 _Static_assert (sizeof (int) <= sizeof (long int),
4555 "_Static_assert does not work in struct");
4559 // Check UTF-8 literals.
4560 #define u8 syntax error!
4561 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4563 // Check duplicate typedefs.
4564 typedef long *long_ptr;
4565 typedef long int *long_ptr;
4566 typedef long_ptr long_ptr;
4568 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4572 struct { int i; int j; };
4573 struct { int k; long int l; } w;
4583 _Bool success = false;
4586 if (test_restrict ("String literal") == 0)
4588 char *restrict newvar = "Another string";
4591 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4592 test_varargs_macros ();
4594 // Check flexible array members.
4595 struct incomplete_array *ia =
4596 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4598 for (int i = 0; i < ia->datasize; ++i)
4599 ia->data[i] = i * 1.234;
4601 // Check named initializers.
4602 struct named_init ni = {
4604 .name = L"Test wide string",
4605 .average = 543.34343,
4610 int dynamic_array[ni.number];
4611 dynamic_array[ni.number - 1] = 543;
4613 // work around unused variable warnings
4614 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4615 || dynamic_array[ni.number - 1] != 543);
4619 _Static_assert ((offsetof (struct anonymous, i)
4620 == offsetof (struct anonymous, w.k)),
4621 "Anonymous union alignment botch");
4627 for ac_arg in '' -std=gnu11
4629 CC="$ac_save_CC $ac_arg"
4630 if ac_fn_c_try_compile "$LINENO"; then :
4631 ac_cv_prog_cc_c11=$ac_arg
4633 rm -f core conftest.err conftest.$ac_objext
4634 test "x$ac_cv_prog_cc_c11" != "xno" && break
4636 rm -f conftest.$ac_ext
4641 ac_prog_cc_stdc_options=
4642 case "x$ac_cv_prog_cc_c11" in
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4645 $as_echo "none needed" >&6; } ;;
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4648 $as_echo "unsupported" >&6; } ;;
4650 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4651 CC=$CC$ac_prog_cc_stdc_options
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4653 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
4655 if test "x$ac_cv_prog_cc_c11" != xno; then :
4657 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4660 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
4661 if ${ac_cv_prog_cc_c99+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 ac_cv_prog_cc_c99=no
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4669 #include <stdbool.h>
4675 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4676 #define debug(...) fprintf (stderr, __VA_ARGS__)
4677 #define showlist(...) puts (#__VA_ARGS__)
4678 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4680 test_varargs_macros (void)
4685 debug ("X = %d\n", x);
4686 showlist (The first, second, and third items.);
4687 report (x>y, "x is %d but y is %d", x, y);
4690 // Check long long types.
4691 #define BIG64 18446744073709551615ull
4692 #define BIG32 4294967295ul
4693 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4695 your preprocessor is broken;
4699 your preprocessor is broken;
4701 static long long int bignum = -9223372036854775807LL;
4702 static unsigned long long int ubignum = BIG64;
4704 struct incomplete_array
4712 const wchar_t *name;
4716 typedef const char *ccp;
4719 test_restrict (ccp restrict text)
4721 // See if C++-style comments work.
4722 // Iterate through items via the restricted pointer.
4723 // Also check for declarations in for loops.
4724 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4729 // Check varargs and va_copy.
4731 test_varargs (const char *format, ...)
4734 va_start (args, format);
4736 va_copy (args_copy, args);
4738 const char *str = "";
4747 str = va_arg (args_copy, const char *);
4750 number = va_arg (args_copy, int);
4753 fnumber = va_arg (args_copy, double);
4762 return *str && number && fnumber;
4769 _Bool success = false;
4772 if (test_restrict ("String literal") == 0)
4774 char *restrict newvar = "Another string";
4777 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4778 test_varargs_macros ();
4780 // Check flexible array members.
4781 struct incomplete_array *ia =
4782 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4784 for (int i = 0; i < ia->datasize; ++i)
4785 ia->data[i] = i * 1.234;
4787 // Check named initializers.
4788 struct named_init ni = {
4790 .name = L"Test wide string",
4791 .average = 543.34343,
4796 int dynamic_array[ni.number];
4797 dynamic_array[ni.number - 1] = 543;
4799 // work around unused variable warnings
4800 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4801 || dynamic_array[ni.number - 1] != 543);
4807 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
4809 CC="$ac_save_CC $ac_arg"
4810 if ac_fn_c_try_compile "$LINENO"; then :
4811 ac_cv_prog_cc_c99=$ac_arg
4813 rm -f core conftest.err conftest.$ac_objext
4814 test "x$ac_cv_prog_cc_c99" != "xno" && break
4816 rm -f conftest.$ac_ext
4821 ac_prog_cc_stdc_options=
4822 case "x$ac_cv_prog_cc_c99" in
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4825 $as_echo "none needed" >&6; } ;;
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4828 $as_echo "unsupported" >&6; } ;;
4830 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
4831 CC=$CC$ac_prog_cc_stdc_options
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4833 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4835 if test "x$ac_cv_prog_cc_c99" != xno; then :
4837 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4840 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
4841 if ${ac_cv_prog_cc_c89+:} false; then :
4842 $as_echo_n "(cached) " >&6
4844 ac_cv_prog_cc_c89=no
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4852 struct buf { int x; };
4853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4854 static char *e (p, i)
4860 static char *f (char * (*g) (char **, int), char **p, ...)
4865 s = g (p, va_arg (v,int));
4870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4871 function prototypes and stuff, but not '\xHH' hex character constants.
4872 These don't provoke an error unfortunately, instead are silently treated
4873 as 'x'. The following induces an error, until -std is added to get
4874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4875 array size at least. It's necessary to write '\x00'==0 to get something
4876 that's true only with -std. */
4877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4880 inside strings and character constants. */
4882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4884 int test (int i, double x);
4885 struct s1 {int (*f) (int a);};
4886 struct s2 {int (*f) (double a);};
4887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4893 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4901 CC="$ac_save_CC $ac_arg"
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_prog_cc_c89=$ac_arg
4905 rm -f core conftest.err conftest.$ac_objext
4906 test "x$ac_cv_prog_cc_c89" != "xno" && break
4908 rm -f conftest.$ac_ext
4913 ac_prog_cc_stdc_options=
4914 case "x$ac_cv_prog_cc_c89" in
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4917 $as_echo "none needed" >&6; } ;;
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4920 $as_echo "unsupported" >&6; } ;;
4922 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
4923 CC=$CC$ac_prog_cc_stdc_options
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4925 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4927 if test "x$ac_cv_prog_cc_c89" != xno; then :
4929 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4932 ac_cv_prog_cc_stdc=no
4940 ac_cpp='$CPP $CPPFLAGS'
4941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947 ac_cpp='$CPP $CPPFLAGS'
4948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4952 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4953 # On Suns, sometimes $CPP names a directory.
4954 if test -n "$CPP" && test -d "$CPP"; then
4957 if test -z "$CPP"; then
4958 if ${ac_cv_prog_CPP+:} false; then :
4959 $as_echo_n "(cached) " >&6
4961 # Double quotes because CPP needs to be expanded
4962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4965 for ac_c_preproc_warn_flag in '' yes
4967 # Use a header file that comes with gcc, so configuring glibc
4968 # with a fresh cross-compiler works.
4969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4970 # <limits.h> exists even on freestanding compilers.
4971 # On the NeXT, cc -E runs the code through the compiler's parser,
4972 # not just through cpp. "Syntax error" is here to catch this case.
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4976 # include <limits.h>
4978 # include <assert.h>
4982 if ac_fn_c_try_cpp "$LINENO"; then :
4985 # Broken: fails on valid input.
4988 rm -f conftest.err conftest.i conftest.$ac_ext
4990 # OK, works on sane cases. Now check whether nonexistent headers
4991 # can be detected and how.
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 #include <ac_nonexistent.h>
4996 if ac_fn_c_try_cpp "$LINENO"; then :
4997 # Broken: success on invalid input.
5000 # Passes both tests.
5004 rm -f conftest.err conftest.i conftest.$ac_ext
5007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5008 rm -f conftest.i conftest.err conftest.
$ac_ext
5009 if $ac_preproc_ok; then :
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5022 $as_echo "$CPP" >&6; }
5024 for ac_c_preproc_warn_flag
in '' yes
5026 # Use a header file that comes with gcc, so configuring glibc
5027 # with a fresh cross-compiler works.
5028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5029 # <limits.h> exists even on freestanding compilers.
5030 # On the NeXT, cc -E runs the code through the compiler's parser,
5031 # not just through cpp. "Syntax error" is here to catch this case.
5032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5035 # include <limits.h>
5037 # include <assert.h>
5041 if ac_fn_c_try_cpp
"$LINENO"; then :
5044 # Broken: fails on valid input.
5047 rm -f conftest.err conftest.i conftest.
$ac_ext
5049 # OK, works on sane cases. Now check whether nonexistent headers
5050 # can be detected and how.
5051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 #include <ac_nonexistent.h>
5055 if ac_fn_c_try_cpp
"$LINENO"; then :
5056 # Broken: success on invalid input.
5059 # Passes both tests.
5063 rm -f conftest.err conftest.i conftest.
$ac_ext
5066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5067 rm -f conftest.i conftest.err conftest.
$ac_ext
5068 if $ac_preproc_ok; then :
5071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5073 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5074 See \`config.log' for more details" "$LINENO" 5; }
5078 ac_cpp
='$CPP $CPPFLAGS'
5079 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5085 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5086 if ${ac_cv_path_GREP+:} false
; then :
5087 $as_echo_n "(cached) " >&6
5089 if test -z "$GREP"; then
5090 ac_path_GREP_found
=false
5091 # Loop through the user's path and test for each of PROGNAME-LIST
5092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5093 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5096 test -z "$as_dir" && as_dir
=.
5097 for ac_prog
in grep ggrep
; do
5098 for ac_exec_ext
in '' $ac_executable_extensions; do
5099 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5100 as_fn_executable_p
"$ac_path_GREP" ||
continue
5101 # Check for GNU ac_path_GREP and select it if it is found.
5102 # Check for GNU $ac_path_GREP
5103 case `"$ac_path_GREP" --version 2>&1` in
5105 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5108 $as_echo_n 0123456789 >"conftest.in"
5111 cat "conftest.in" "conftest.in" >"conftest.tmp"
5112 mv "conftest.tmp" "conftest.in"
5113 cp "conftest.in" "conftest.nl"
5114 $as_echo 'GREP' >> "conftest.nl"
5115 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5116 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5117 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5118 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5119 # Best one so far, save it but keep looking for a better one
5120 ac_cv_path_GREP
="$ac_path_GREP"
5121 ac_path_GREP_max
=$ac_count
5123 # 10*(2^10) chars as input seems more than enough
5124 test $ac_count -gt 10 && break
5126 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5129 $ac_path_GREP_found && break 3
5134 if test -z "$ac_cv_path_GREP"; then
5135 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138 ac_cv_path_GREP
=$GREP
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5143 $as_echo "$ac_cv_path_GREP" >&6; }
5144 GREP
="$ac_cv_path_GREP"
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5148 $as_echo_n "checking for egrep... " >&6; }
5149 if ${ac_cv_path_EGREP+:} false
; then :
5150 $as_echo_n "(cached) " >&6
5152 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5153 then ac_cv_path_EGREP
="$GREP -E"
5155 if test -z "$EGREP"; then
5156 ac_path_EGREP_found
=false
5157 # Loop through the user's path and test for each of PROGNAME-LIST
5158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5159 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5162 test -z "$as_dir" && as_dir
=.
5163 for ac_prog
in egrep; do
5164 for ac_exec_ext
in '' $ac_executable_extensions; do
5165 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5166 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5167 # Check for GNU ac_path_EGREP and select it if it is found.
5168 # Check for GNU $ac_path_EGREP
5169 case `"$ac_path_EGREP" --version 2>&1` in
5171 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5174 $as_echo_n 0123456789 >"conftest.in"
5177 cat "conftest.in" "conftest.in" >"conftest.tmp"
5178 mv "conftest.tmp" "conftest.in"
5179 cp "conftest.in" "conftest.nl"
5180 $as_echo 'EGREP' >> "conftest.nl"
5181 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5182 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5183 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5184 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5185 # Best one so far, save it but keep looking for a better one
5186 ac_cv_path_EGREP
="$ac_path_EGREP"
5187 ac_path_EGREP_max
=$ac_count
5189 # 10*(2^10) chars as input seems more than enough
5190 test $ac_count -gt 10 && break
5192 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5195 $ac_path_EGREP_found && break 3
5200 if test -z "$ac_cv_path_EGREP"; then
5201 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5204 ac_cv_path_EGREP
=$EGREP
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5210 $as_echo "$ac_cv_path_EGREP" >&6; }
5211 EGREP
="$ac_cv_path_EGREP"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5215 $as_echo_n "checking for ANSI C header files... " >&6; }
5216 if ${ac_cv_header_stdc+:} false
; then :
5217 $as_echo_n "(cached) " >&6
5219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5234 if ac_fn_c_try_compile
"$LINENO"; then :
5235 ac_cv_header_stdc
=yes
5237 ac_cv_header_stdc
=no
5239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5241 if test $ac_cv_header_stdc = yes; then
5242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5249 $EGREP "memchr" >/dev
/null
2>&1; then :
5252 ac_cv_header_stdc
=no
5258 if test $ac_cv_header_stdc = yes; then
5259 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266 $EGREP "free" >/dev
/null
2>&1; then :
5269 ac_cv_header_stdc
=no
5275 if test $ac_cv_header_stdc = yes; then
5276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5277 if test "$cross_compiling" = yes; then :
5280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5284 #if ((' ' & 0x0FF) == 0x020)
5285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5288 # define ISLOWER(c) \
5289 (('a' <= (c) && (c) <= 'i') \
5290 || ('j' <= (c) && (c) <= 'r') \
5291 || ('s' <= (c) && (c) <= 'z'))
5292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5300 for (i = 0; i < 256; i++)
5301 if (XOR (islower (i), ISLOWER (i))
5302 || toupper (i) != TOUPPER (i))
5307 if ac_fn_c_try_run
"$LINENO"; then :
5310 ac_cv_header_stdc
=no
5312 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5313 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5319 $as_echo "$ac_cv_header_stdc" >&6; }
5320 if test $ac_cv_header_stdc = yes; then
5322 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5326 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5327 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5328 inttypes.h stdint.h unistd.h
5330 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5331 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5333 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5334 cat >>confdefs.h
<<_ACEOF
5335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5344 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5345 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5352 if test "$MINIX" = yes; then
5354 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5357 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5360 $as_echo "#define _MINIX 1" >>confdefs.h
5363 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5369 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5370 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5371 $as_echo_n "(cached) " >&6
5373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5376 # define __EXTENSIONS__ 1
5377 $ac_includes_default
5386 if ac_fn_c_try_compile
"$LINENO"; then :
5387 ac_cv_safe_to_define___extensions__
=yes
5389 ac_cv_safe_to_define___extensions__
=no
5391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5394 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5395 test $ac_cv_safe_to_define___extensions__ = yes &&
5396 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5398 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5400 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5402 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5404 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5406 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5408 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5410 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5412 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5414 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5416 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5418 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5420 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5422 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5424 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5427 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5428 if ${ac_cv_should_define__xopen_source+:} false
; then :
5429 $as_echo_n "(cached) " >&6
5431 ac_cv_should_define__xopen_source
=no
5432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5445 if ac_fn_c_try_compile
"$LINENO"; then :
5448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5451 #define _XOPEN_SOURCE 500
5462 if ac_fn_c_try_compile
"$LINENO"; then :
5463 ac_cv_should_define__xopen_source
=yes
5465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5470 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5471 test $ac_cv_should_define__xopen_source = yes &&
5472 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5474 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5487 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5488 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
5489 $as_echo_n "(cached) " >&6
5492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
5502 gl_cv_c_amsterdam_compiler
=yes
5504 gl_cv_c_amsterdam_compiler
=no
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5511 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5513 if test $gl_cv_c_amsterdam_compiler = yes; then
5514 if test -z "$AR"; then
5517 if test -z "$ARFLAGS"; then
5524 if test -n "$ac_tool_prefix"; then
5525 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5526 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_AR+:} false
; then :
5530 $as_echo_n "(cached) " >&6
5532 if test -n "$AR"; then
5533 ac_cv_prog_AR
="$AR" # Let the user override the test.
5535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir
=.
5540 for ac_exec_ext
in '' $ac_executable_extensions; do
5541 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 if test -n "$AR"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5555 $as_echo "$AR" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5563 if test -z "$ac_cv_prog_AR"; then
5565 # Extract the first word of "ar", so it can be a program name with args.
5566 set dummy
ar; ac_word
=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5570 $as_echo_n "(cached) " >&6
5572 if test -n "$ac_ct_AR"; then
5573 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5579 test -z "$as_dir" && as_dir
=.
5580 for ac_exec_ext
in '' $ac_executable_extensions; do
5581 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5582 ac_cv_prog_ac_ct_AR
="ar"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5593 if test -n "$ac_ct_AR"; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5595 $as_echo "$ac_ct_AR" >&6; }
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5601 if test "x$ac_ct_AR" = x
; then
5604 case $cross_compiling:$ac_tool_warned in
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5608 ac_tool_warned
=yes ;;
5616 if test -z "$ARFLAGS"; then
5622 if test -z "$RANLIB"; then
5623 if test $gl_cv_c_amsterdam_compiler = yes; then
5626 if test -n "$ac_tool_prefix"; then
5627 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5628 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if ${ac_cv_prog_RANLIB+:} false
; then :
5632 $as_echo_n "(cached) " >&6
5634 if test -n "$RANLIB"; then
5635 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5641 test -z "$as_dir" && as_dir
=.
5642 for ac_exec_ext
in '' $ac_executable_extensions; do
5643 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5644 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 RANLIB
=$ac_cv_prog_RANLIB
5655 if test -n "$RANLIB"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5657 $as_echo "$RANLIB" >&6; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5665 if test -z "$ac_cv_prog_RANLIB"; then
5666 ac_ct_RANLIB
=$RANLIB
5667 # Extract the first word of "ranlib", so it can be a program name with args.
5668 set dummy ranlib
; ac_word
=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5672 $as_echo_n "(cached) " >&6
5674 if test -n "$ac_ct_RANLIB"; then
5675 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir
=.
5682 for ac_exec_ext
in '' $ac_executable_extensions; do
5683 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5684 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5695 if test -n "$ac_ct_RANLIB"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5697 $as_echo "$ac_ct_RANLIB" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5703 if test "x$ac_ct_RANLIB" = x
; then
5706 case $cross_compiling:$ac_tool_warned in
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5710 ac_tool_warned
=yes ;;
5712 RANLIB
=$ac_ct_RANLIB
5715 RANLIB
="$ac_cv_prog_RANLIB"
5724 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5725 if test -f "$ac_dir/install-sh"; then
5727 ac_install_sh
="$ac_aux_dir/install-sh -c"
5729 elif test -f "$ac_dir/install.sh"; then
5731 ac_install_sh
="$ac_aux_dir/install.sh -c"
5733 elif test -f "$ac_dir/shtool"; then
5735 ac_install_sh
="$ac_aux_dir/shtool install -c"
5739 if test -z "$ac_aux_dir"; then
5740 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5743 # These three variables are undocumented and unsupported,
5744 # and are intended to be withdrawn in a future Autoconf release.
5745 # They can cause serious problems if a builder's source tree is in a directory
5746 # whose full name contains unusual characters.
5747 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5748 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5749 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5752 # Make sure we can run config.sub.
5753 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5754 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5757 $as_echo_n "checking build system type... " >&6; }
5758 if ${ac_cv_build+:} false
; then :
5759 $as_echo_n "(cached) " >&6
5761 ac_build_alias
=$build_alias
5762 test "x$ac_build_alias" = x
&&
5763 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5764 test "x$ac_build_alias" = x
&&
5765 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5766 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5767 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5771 $as_echo "$ac_cv_build" >&6; }
5772 case $ac_cv_build in
5774 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5777 ac_save_IFS
=$IFS; IFS
='-'
5783 # Remember, the first character of IFS is used to create $*,
5784 # except with old shells:
5787 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5791 $as_echo_n "checking host system type... " >&6; }
5792 if ${ac_cv_host+:} false
; then :
5793 $as_echo_n "(cached) " >&6
5795 if test "x$host_alias" = x
; then
5796 ac_cv_host
=$ac_cv_build
5798 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5799 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5804 $as_echo "$ac_cv_host" >&6; }
5807 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5810 ac_save_IFS
=$IFS; IFS
='-'
5816 # Remember, the first character of IFS is used to create $*,
5817 # except with old shells:
5820 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5826 # IEEE behaviour is the default on all CPUs except Alpha and SH
5827 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5828 # and the GCC 4.1.2 manual).
5831 # On Alpha systems, a compiler option provides the behaviour.
5832 # See the ieee(3) manual page, also available at
5833 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
5834 if test -n "$GCC"; then
5835 # GCC has the option -mieee.
5836 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5837 CPPFLAGS
="$CPPFLAGS -mieee"
5839 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5840 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5841 CPPFLAGS
="$CPPFLAGS -ieee"
5845 if test -n "$GCC"; then
5846 # GCC has the option -mieee.
5847 CPPFLAGS
="$CPPFLAGS -mieee"
5852 # Check whether --enable-largefile was given.
5853 if test "${enable_largefile+set}" = set; then :
5854 enableval
=$enable_largefile;
5857 if test "$enable_largefile" != no
; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5860 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5861 if ${ac_cv_sys_largefile_CC+:} false
; then :
5862 $as_echo_n "(cached) " >&6
5864 ac_cv_sys_largefile_CC
=no
5865 if test "$GCC" != yes; then
5868 # IRIX 6.2 and later do not support large files by default,
5869 # so use the C compiler's -n32 option if that helps.
5870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872 #include <sys/types.h>
5873 /* Check that off_t can represent 2**63 - 1 correctly.
5874 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5875 since some C++ compilers masquerading as C compilers
5876 incorrectly reject 9223372036854775807. */
5877 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5878 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5879 && LARGE_OFF_T % 2147483647 == 1)
5889 if ac_fn_c_try_compile
"$LINENO"; then :
5892 rm -f core conftest.err conftest.
$ac_objext
5894 if ac_fn_c_try_compile
"$LINENO"; then :
5895 ac_cv_sys_largefile_CC
=' -n32'; break
5897 rm -f core conftest.err conftest.
$ac_objext
5901 rm -f conftest.
$ac_ext
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5905 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5906 if test "$ac_cv_sys_largefile_CC" != no
; then
5907 CC
=$CC$ac_cv_sys_largefile_CC
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5911 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5912 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5913 $as_echo_n "(cached) " >&6
5916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918 #include <sys/types.h>
5919 /* Check that off_t can represent 2**63 - 1 correctly.
5920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5921 since some C++ compilers masquerading as C compilers
5922 incorrectly reject 9223372036854775807. */
5923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5925 && LARGE_OFF_T % 2147483647 == 1)
5935 if ac_fn_c_try_compile
"$LINENO"; then :
5936 ac_cv_sys_file_offset_bits
=no
; break
5938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941 #define _FILE_OFFSET_BITS 64
5942 #include <sys/types.h>
5943 /* Check that off_t can represent 2**63 - 1 correctly.
5944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5945 since some C++ compilers masquerading as C compilers
5946 incorrectly reject 9223372036854775807. */
5947 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5949 && LARGE_OFF_T % 2147483647 == 1)
5959 if ac_fn_c_try_compile
"$LINENO"; then :
5960 ac_cv_sys_file_offset_bits
=64; break
5962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5963 ac_cv_sys_file_offset_bits
=unknown
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5968 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5969 case $ac_cv_sys_file_offset_bits in #(
5972 cat >>confdefs.h
<<_ACEOF
5973 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5978 if test $ac_cv_sys_file_offset_bits = unknown
; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5980 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5981 if ${ac_cv_sys_large_files+:} false
; then :
5982 $as_echo_n "(cached) " >&6
5985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5987 #include <sys/types.h>
5988 /* Check that off_t can represent 2**63 - 1 correctly.
5989 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5990 since some C++ compilers masquerading as C compilers
5991 incorrectly reject 9223372036854775807. */
5992 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5993 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5994 && LARGE_OFF_T % 2147483647 == 1)
6004 if ac_fn_c_try_compile
"$LINENO"; then :
6005 ac_cv_sys_large_files
=no
; break
6007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 #define _LARGE_FILES 1
6011 #include <sys/types.h>
6012 /* Check that off_t can represent 2**63 - 1 correctly.
6013 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6014 since some C++ compilers masquerading as C compilers
6015 incorrectly reject 9223372036854775807. */
6016 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6017 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6018 && LARGE_OFF_T % 2147483647 == 1)
6028 if ac_fn_c_try_compile
"$LINENO"; then :
6029 ac_cv_sys_large_files
=1; break
6031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6032 ac_cv_sys_large_files
=unknown
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6037 $as_echo "$ac_cv_sys_large_files" >&6; }
6038 case $ac_cv_sys_large_files in #(
6041 cat >>confdefs.h
<<_ACEOF
6042 #define _LARGE_FILES $ac_cv_sys_large_files
6050 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6056 # Pre-early section.
6061 # Code from module absolute-header:
6062 # Code from module alloca:
6063 # Code from module alloca-opt:
6064 # Code from module assure:
6065 # Code from module at-internal:
6066 # Code from module builtin-expect:
6067 # Code from module c99:
6068 # Code from module canonicalize-lgpl:
6069 # Code from module chdir:
6070 # Code from module chdir-long:
6071 # Code from module cloexec:
6072 # Code from module close:
6073 # Code from module closedir:
6074 # Code from module d-ino:
6075 # Code from module d-type:
6076 # Code from module dirent:
6077 # Code from module dirfd:
6078 # Code from module dirname-lgpl:
6079 # Code from module dosname:
6080 # Code from module double-slash-root:
6081 # Code from module dup:
6082 # Code from module dup2:
6083 # Code from module environ:
6084 # Code from module errno:
6085 # Code from module error:
6086 # Code from module exitfail:
6087 # Code from module extensions:
6088 # Code from module extern-inline:
6089 # Code from module fchdir:
6090 # Code from module fcntl:
6091 # Code from module fcntl-h:
6092 # Code from module fd-hook:
6093 # Code from module fd-safer-flag:
6094 # Code from module fdopendir:
6095 # Code from module filename:
6096 # Code from module filenamecat-lgpl:
6097 # Code from module flexmember:
6098 # Code from module float:
6099 # Code from module fnmatch:
6100 # Code from module fnmatch-gnu:
6101 # Code from module fnmatch-h:
6102 # Code from module fpieee:
6104 # Code from module fpucw:
6105 # Code from module frexp:
6106 # Code from module frexpl:
6107 # Code from module fstat:
6108 # Code from module fstatat:
6109 # Code from module getcwd:
6110 # Code from module getcwd-lgpl:
6111 # Code from module getdtablesize:
6112 # Code from module getlogin_r:
6113 # Code from module getprogname:
6114 # Code from module gettext-h:
6115 # Code from module gettimeofday:
6116 # Code from module glob:
6117 # Code from module glob-h:
6118 # Code from module hard-locale:
6119 # Code from module include_next:
6120 # Code from module intprops:
6121 # Code from module inttypes:
6122 # Code from module inttypes-incomplete:
6123 # Code from module isnand-nolibm:
6124 # Code from module isnanl-nolibm:
6125 # Code from module largefile:
6127 # Code from module libc-config:
6128 # Code from module limits-h:
6129 # Code from module localcharset:
6130 # Code from module localtime-buffer:
6131 # Code from module lstat:
6132 # Code from module malloc-posix:
6133 # Code from module malloca:
6134 # Code from module math:
6135 # Code from module mbrtowc:
6136 # Code from module mbsinit:
6137 # Code from module mbsrtowcs:
6138 # Code from module memchr:
6139 # Code from module memmem:
6140 # Code from module memmem-simple:
6141 # Code from module mempcpy:
6142 # Code from module memrchr:
6143 # Code from module mkdir:
6144 # Code from module mkstemp:
6145 # Code from module msvc-inval:
6146 # Code from module msvc-nothrow:
6147 # Code from module multiarch:
6148 # Code from module nocrash:
6149 # Code from module open:
6150 # Code from module openat:
6151 # Code from module openat-die:
6152 # Code from module openat-h:
6153 # Code from module opendir:
6154 # Code from module pathmax:
6155 # Code from module rawmemchr:
6156 # Code from module readdir:
6157 # Code from module readlink:
6158 # Code from module realloc-posix:
6159 # Code from module rename:
6160 # Code from module rewinddir:
6161 # Code from module rmdir:
6162 # Code from module same-inode:
6163 # Code from module save-cwd:
6164 # Code from module scratch_buffer:
6165 # Code from module setenv:
6166 # Code from module signal-h:
6167 # Code from module snippet/_Noreturn:
6168 # Code from module snippet/arg-nonnull:
6169 # Code from module snippet/c++defs:
6170 # Code from module snippet/warn-on-use:
6171 # Code from module ssize_t:
6172 # Code from module stat:
6173 # Code from module stat-time:
6174 # Code from module std-gnu11:
6175 # Code from module stdbool:
6176 # Code from module stddef:
6177 # Code from module stdint:
6178 # Code from module stdio:
6179 # Code from module stdlib:
6180 # Code from module strchrnul:
6181 # Code from module strdup-posix:
6182 # Code from module streq:
6183 # Code from module strerror:
6184 # Code from module strerror-override:
6185 # Code from module string:
6186 # Code from module strnlen1:
6187 # Code from module strstr:
6188 # Code from module strstr-simple:
6189 # Code from module strtok_r:
6190 # Code from module sys_stat:
6191 # Code from module sys_time:
6192 # Code from module sys_types:
6193 # Code from module tempname:
6194 # Code from module time:
6195 # Code from module unistd:
6196 # Code from module unistd-safer:
6197 # Code from module unsetenv:
6198 # Code from module update-copyright:
6199 # Code from module verify:
6200 # Code from module wchar:
6201 # Code from module wctype-h:
6202 # Code from module xalloc-oversized:
6205 am_cv_prog_cc_stdc
=$ac_cv_prog_cc_stdc
6209 for ac_dir
in ..
/..
"$srcdir"/..
/..
; do
6210 if test -f "$ac_dir/install-sh"; then
6212 ac_install_sh
="$ac_aux_dir/install-sh -c"
6214 elif test -f "$ac_dir/install.sh"; then
6216 ac_install_sh
="$ac_aux_dir/install.sh -c"
6218 elif test -f "$ac_dir/shtool"; then
6220 ac_install_sh
="$ac_aux_dir/shtool install -c"
6224 if test -z "$ac_aux_dir"; then
6225 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
6228 # These three variables are undocumented and unsupported,
6229 # and are intended to be withdrawn in a future Autoconf release.
6230 # They can cause serious problems if a builder's source tree is in a directory
6231 # whose full name contains unusual characters.
6232 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6233 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6234 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6238 $as_echo_n "checking target system type... " >&6; }
6239 if ${ac_cv_target+:} false
; then :
6240 $as_echo_n "(cached) " >&6
6242 if test "x$target_alias" = x
; then
6243 ac_cv_target
=$ac_cv_host
6245 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6246 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6251 $as_echo "$ac_cv_target" >&6; }
6252 case $ac_cv_target in
6254 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
6256 target
=$ac_cv_target
6257 ac_save_IFS
=$IFS; IFS
='-'
6263 # Remember, the first character of IFS is used to create $*,
6264 # except with old shells:
6267 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
6270 # The aliases save the names the user supplied, while $host etc.
6271 # will get canonicalized.
6272 test -n "$target_alias" &&
6273 test "$program_prefix$program_suffix$program_transform_name" = \
6275 program_prefix
=${target_alias}-
6283 LIBC_FATAL_STDERR_
=1
6284 export LIBC_FATAL_STDERR_
6286 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6287 if test "x$ac_cv_type_size_t" = xyes
; then :
6291 cat >>confdefs.h
<<_ACEOF
6292 #define size_t unsigned int
6297 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6298 # for constant arguments. Useless!
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6300 $as_echo_n "checking for working alloca.h... " >&6; }
6301 if ${ac_cv_working_alloca_h+:} false
; then :
6302 $as_echo_n "(cached) " >&6
6304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6310 char *p = (char *) alloca (2 * sizeof (int));
6316 if ac_fn_c_try_link
"$LINENO"; then :
6317 ac_cv_working_alloca_h
=yes
6319 ac_cv_working_alloca_h
=no
6321 rm -f core conftest.err conftest.
$ac_objext \
6322 conftest
$ac_exeext conftest.
$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6325 $as_echo "$ac_cv_working_alloca_h" >&6; }
6326 if test $ac_cv_working_alloca_h = yes; then
6328 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6333 $as_echo_n "checking for alloca... " >&6; }
6334 if ${ac_cv_func_alloca_works+:} false
; then :
6335 $as_echo_n "(cached) " >&6
6337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6340 # define alloca __builtin_alloca
6343 # include <malloc.h>
6344 # define alloca _alloca
6346 # ifdef HAVE_ALLOCA_H
6347 # include <alloca.h>
6352 # ifndef alloca /* predefined by HP cc +Olibcalls */
6353 void *alloca (size_t);
6363 char *p = (char *) alloca (1);
6369 if ac_fn_c_try_link
"$LINENO"; then :
6370 ac_cv_func_alloca_works
=yes
6372 ac_cv_func_alloca_works
=no
6374 rm -f core conftest.err conftest.
$ac_objext \
6375 conftest
$ac_exeext conftest.
$ac_ext
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6378 $as_echo "$ac_cv_func_alloca_works" >&6; }
6380 if test $ac_cv_func_alloca_works = yes; then
6382 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6385 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6386 # that cause trouble. Some versions do not even contain alloca or
6387 # contain a buggy version. If you still want to use their alloca,
6388 # use ar to extract alloca.o from them instead of compiling alloca.c.
6394 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6396 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6400 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6401 if ${ac_cv_os_cray+:} false
; then :
6402 $as_echo_n "(cached) " >&6
6404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406 #if defined CRAY && ! defined CRAY2
6413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6414 $EGREP "webecray" >/dev
/null
2>&1; then :
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6423 $as_echo "$ac_cv_os_cray" >&6; }
6424 if test $ac_cv_os_cray = yes; then
6425 for ac_func
in _getb67 GETB67 getb67
; do
6426 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6427 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6428 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6430 cat >>confdefs.h
<<_ACEOF
6431 #define CRAY_STACKSEG_END $ac_func
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6441 $as_echo_n "checking stack direction for C alloca... " >&6; }
6442 if ${ac_cv_c_stack_direction+:} false
; then :
6443 $as_echo_n "(cached) " >&6
6445 if test "$cross_compiling" = yes; then :
6446 ac_cv_c_stack_direction
=0
6448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 $ac_includes_default
6452 find_stack_direction (int *addr, int depth)
6457 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6458 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6463 main (int argc, char **argv)
6465 return find_stack_direction (0, argc + !argv + 20) < 0;
6468 if ac_fn_c_try_run
"$LINENO"; then :
6469 ac_cv_c_stack_direction
=1
6471 ac_cv_c_stack_direction
=-1
6473 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6474 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6479 $as_echo "$ac_cv_c_stack_direction" >&6; }
6480 cat >>confdefs.h
<<_ACEOF
6481 #define STACK_DIRECTION $ac_cv_c_stack_direction
6490 GNULIB_CALLOC_POSIX
=0;
6491 GNULIB_CANONICALIZE_FILE_NAME
=0;
6492 GNULIB_GETLOADAVG
=0;
6495 GNULIB_MALLOC_POSIX
=0;
6502 GNULIB_POSIX_OPENPT
=0;
6509 GNULIB_REALLOCARRAY
=0;
6510 GNULIB_REALLOC_POSIX
=0;
6513 GNULIB_SECURE_GETENV
=0;
6518 GNULIB_SYSTEM_POSIX
=0;
6524 HAVE_CANONICALIZE_FILE_NAME
=1;
6525 HAVE_DECL_GETLOADAVG
=1;
6528 HAVE_DECL_INITSTATE
=1;
6534 HAVE_POSIX_OPENPT
=1;
6541 HAVE_REALLOCARRAY
=1;
6544 HAVE_SECURE_GETENV
=1;
6547 HAVE_DECL_SETSTATE
=1;
6551 HAVE_STRUCT_RANDOM_DATA
=1;
6552 HAVE_SYS_LOADAVG_H
=0;
6554 HAVE_DECL_UNSETENV
=1;
6556 REPLACE_CANONICALIZE_FILE_NAME
=0;
6561 REPLACE_PTSNAME_R
=0;
6576 for ac_func
in $gl_func_list
6578 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6579 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6580 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6581 cat >>confdefs.h
<<_ACEOF
6582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6605 $as_echo_n "checking whether // is distinct from /... " >&6; }
6606 if ${gl_cv_double_slash_root+:} false
; then :
6607 $as_echo_n "(cached) " >&6
6609 if test x
"$cross_compiling" = xyes
; then
6610 # When cross-compiling, there is no way to tell whether // is special
6611 # short of a list of hosts. However, the only known hosts to date
6612 # that have a distinct // are Apollo DomainOS (too old to port to),
6613 # Cygwin, and z/OS. If anyone knows of another system for which // has
6614 # special semantics and is distinct from /, please report it to
6615 # <bug-gnulib@gnu.org>.
6617 *-cygwin | i370-ibm-openedition
)
6618 gl_cv_double_slash_root
=yes ;;
6620 # Be optimistic and assume that / and // are the same when we
6622 gl_cv_double_slash_root
='unknown, assuming no' ;;
6625 set x
`ls -di / // 2>/dev/null`
6626 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
6627 gl_cv_double_slash_root
=no
6629 gl_cv_double_slash_root
=yes
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6634 $as_echo "$gl_cv_double_slash_root" >&6; }
6635 if test "$gl_cv_double_slash_root" = yes; then
6637 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6655 $as_echo_n "checking whether realpath works... " >&6; }
6656 if ${gl_cv_func_realpath_works+:} false
; then :
6657 $as_echo_n "(cached) " >&6
6662 if test "$cross_compiling" = yes; then :
6664 # Guess yes on glibc systems.
6665 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
6666 # Guess no on native Windows.
6667 mingw
*) gl_cv_func_realpath_works
="guessing no" ;;
6668 # If we don't know, assume the worst.
6669 *) gl_cv_func_realpath_works
="guessing no" ;;
6673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6679 #if defined __MACH__ && defined __APPLE__
6680 /* Avoid a crash on Mac OS X. */
6681 #include <mach/mach.h>
6682 #include <mach/mach_error.h>
6683 #include <mach/thread_status.h>
6684 #include <mach/exception.h>
6685 #include <mach/task.h>
6686 #include <pthread.h>
6687 /* The exception port on which our thread listens. */
6688 static mach_port_t our_exception_port;
6689 /* The main function of the thread listening for exceptions of type
6692 mach_exception_thread (void *arg)
6694 /* Buffer for a message to be received. */
6696 mach_msg_header_t head;
6697 mach_msg_body_t msgh_body;
6700 mach_msg_return_t retval;
6701 /* Wait for a message on the exception port. */
6702 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6703 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6704 if (retval != MACH_MSG_SUCCESS)
6711 mach_port_t self = mach_task_self ();
6712 /* Allocate a port on which the thread shall listen for exceptions. */
6713 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6715 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6716 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6717 MACH_MSG_TYPE_MAKE_SEND)
6719 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6721 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6722 /* Create the thread listening on the exception port. */
6723 pthread_attr_t attr;
6725 if (pthread_attr_init (&attr) == 0
6726 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6727 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6728 pthread_attr_destroy (&attr);
6729 /* Replace the exception port info for these exceptions with our own.
6730 Note that we replace the exception port for the entire task, not only
6731 for a particular thread. This has the effect that when our exception
6732 port gets the message, the thread specific exception port has already
6733 been asked, and we don't need to bother about it.
6734 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6735 task_set_exception_ports (self, mask, our_exception_port,
6736 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6741 #elif defined _WIN32 && ! defined __CYGWIN__
6742 /* Avoid a crash on native Windows. */
6743 #define WIN32_LEAN_AND_MEAN
6744 #include <windows.h>
6745 #include <winerror.h>
6747 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6749 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6751 case EXCEPTION_ACCESS_VIOLATION:
6752 case EXCEPTION_IN_PAGE_ERROR:
6753 case EXCEPTION_STACK_OVERFLOW:
6754 case EXCEPTION_GUARD_PAGE:
6755 case EXCEPTION_PRIV_INSTRUCTION:
6756 case EXCEPTION_ILLEGAL_INSTRUCTION:
6757 case EXCEPTION_DATATYPE_MISALIGNMENT:
6758 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6759 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6762 return EXCEPTION_CONTINUE_SEARCH;
6767 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6770 /* Avoid a crash on POSIX systems. */
6773 /* A POSIX signal handler. */
6775 exception_handler (int sig)
6783 signal (SIGSEGV, exception_handler);
6786 signal (SIGBUS, exception_handler);
6800 char *name = realpath ("conftest.a", NULL);
6801 if (!(name && *name == '/'))
6806 char *name = realpath ("conftest.b/../conftest.a", NULL);
6812 char *name = realpath ("conftest.a/", NULL);
6818 char *name1 = realpath (".", NULL);
6819 char *name2 = realpath ("conftest.d//./..", NULL);
6820 if (! name1 || ! name2 || strcmp (name1, name2))
6832 if ac_fn_c_try_run
"$LINENO"; then :
6833 gl_cv_func_realpath_works
=yes
6835 gl_cv_func_realpath_works
=no
6837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6841 rm -rf conftest.a conftest.d
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6845 $as_echo "$gl_cv_func_realpath_works" >&6; }
6846 case "$gl_cv_func_realpath_works" in
6849 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6858 for ac_header
in $gl_header_list
6860 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6861 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6862 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6863 cat >>confdefs.h
<<_ACEOF
6864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6908 GNULIB_EUIDACCESS
=0;
6916 GNULIB_GETDOMAINNAME
=0;
6917 GNULIB_GETDTABLESIZE
=0;
6919 GNULIB_GETHOSTNAME
=0;
6921 GNULIB_GETLOGIN_R
=0;
6922 GNULIB_GETPAGESIZE
=0;
6924 GNULIB_GETUSERSHELL
=0;
6925 GNULIB_GROUP_MEMBER
=0;
6937 GNULIB_READLINKAT
=0;
6939 GNULIB_SETHOSTNAME
=0;
6945 GNULIB_UNISTD_H_NONBLOCKING
=0;
6946 GNULIB_UNISTD_H_SIGPIPE
=0;
6961 HAVE_GETDTABLESIZE
=1;
6967 HAVE_GROUP_MEMBER
=1;
6983 HAVE_DECL_ENVIRON
=1;
6985 HAVE_DECL_FDATASYNC
=1;
6986 HAVE_DECL_GETDOMAINNAME
=1;
6987 HAVE_DECL_GETLOGIN
=1;
6988 HAVE_DECL_GETLOGIN_R
=1;
6989 HAVE_DECL_GETPAGESIZE
=1;
6990 HAVE_DECL_GETUSERSHELL
=1;
6991 HAVE_DECL_SETHOSTNAME
=1;
6992 HAVE_DECL_TRUNCATE
=1;
6993 HAVE_DECL_TTYNAME_R
=1;
7000 REPLACE_FACCESSAT
=0;
7002 REPLACE_FTRUNCATE
=0;
7004 REPLACE_GETDOMAINNAME
=0;
7005 REPLACE_GETDTABLESIZE
=0;
7006 REPLACE_GETLOGIN_R
=0;
7007 REPLACE_GETGROUPS
=0;
7008 REPLACE_GETPAGESIZE
=0;
7019 REPLACE_READLINKAT
=0;
7023 REPLACE_SYMLINKAT
=0;
7025 REPLACE_TTYNAME_R
=0;
7030 UNISTD_H_HAVE_WINSOCK2_H
=0;
7031 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7064 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7065 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7067 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7070 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7098 HAVE_DECL_FDOPENDIR
=1;
7105 REPLACE_FDOPENDIR
=0;
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7110 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7111 if ${gl_cv_have_include_next+:} false
; then :
7112 $as_echo_n "(cached) " >&6
7114 rm -rf conftestd1a conftestd1b conftestd2
7115 mkdir conftestd1a conftestd1b conftestd2
7116 cat <<EOF > conftestd1a/conftest.h
7117 #define DEFINED_IN_CONFTESTD1
7118 #include_next <conftest.h>
7119 #ifdef DEFINED_IN_CONFTESTD2
7122 #error "include_next doesn't work"
7125 cat <<EOF > conftestd1b/conftest.h
7126 #define DEFINED_IN_CONFTESTD1
7128 #include_next <conftest.h>
7129 #ifdef DEFINED_IN_CONFTESTD2
7132 #error "include_next doesn't work"
7135 cat <<EOF > conftestd2/conftest.h
7136 #ifndef DEFINED_IN_CONFTESTD1
7137 #error "include_next test doesn't work"
7139 #define DEFINED_IN_CONFTESTD2
7141 gl_save_CPPFLAGS
="$CPPFLAGS"
7142 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 #include <conftest.h>
7147 if ac_fn_c_try_compile
"$LINENO"; then :
7148 gl_cv_have_include_next
=yes
7150 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153 #include <conftest.h>
7155 if ac_fn_c_try_compile
"$LINENO"; then :
7156 gl_cv_have_include_next
=buggy
7158 gl_cv_have_include_next
=no
7160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7164 CPPFLAGS
="$gl_save_CPPFLAGS"
7165 rm -rf conftestd1a conftestd1b conftestd2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7169 $as_echo "$gl_cv_have_include_next" >&6; }
7170 PRAGMA_SYSTEM_HEADER
=
7171 if test $gl_cv_have_include_next = yes; then
7172 INCLUDE_NEXT
=include_next
7173 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7174 if test -n "$GCC"; then
7175 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
7178 if test $gl_cv_have_include_next = buggy
; then
7179 INCLUDE_NEXT
=include
7180 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7182 INCLUDE_NEXT
=include
7183 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7190 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7191 if ${gl_cv_pragma_columns+:} false
; then :
7192 $as_echo_n "(cached) " >&6
7194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "choke me" >/dev
/null
2>&1; then :
7204 gl_cv_pragma_columns
=yes
7206 gl_cv_pragma_columns
=no
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7213 $as_echo "$gl_cv_pragma_columns" >&6; }
7214 if test $gl_cv_pragma_columns = yes; then
7215 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7240 $as_echo_n "checking if environ is properly declared... " >&6; }
7241 if ${gt_cv_var_environ_declaration+:} false
; then :
7242 $as_echo_n "(cached) " >&6
7245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7250 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
7253 extern struct { int foo; } environ;
7262 if ac_fn_c_try_compile
"$LINENO"; then :
7263 gt_cv_var_environ_declaration
=no
7265 gt_cv_var_environ_declaration
=yes
7267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7271 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7272 if test $gt_cv_var_environ_declaration = yes; then
7274 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7279 if test $gt_cv_var_environ_declaration != yes; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7286 $as_echo_n "checking for complete errno.h... " >&6; }
7287 if ${gl_cv_header_errno_h_complete+:} false
; then :
7288 $as_echo_n "(cached) " >&6
7291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7295 #if !defined ETXTBSY
7304 #if !defined ENOLINK
7310 #if !defined EMULTIHOP
7313 #if !defined EBADMSG
7316 #if !defined EOVERFLOW
7319 #if !defined ENOTSUP
7322 #if !defined ENETRESET
7325 #if !defined ECONNABORTED
7334 #if !defined ECANCELED
7337 #if !defined EOWNERDEAD
7340 #if !defined ENOTRECOVERABLE
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349 $EGREP "booboo" >/dev
/null
2>&1; then :
7350 gl_cv_header_errno_h_complete
=no
7352 gl_cv_header_errno_h_complete
=yes
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7359 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7360 if test $gl_cv_header_errno_h_complete = yes; then
7371 if test $gl_cv_have_include_next = yes; then
7372 gl_cv_next_errno_h
='<'errno.h
'>'
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7375 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7376 if ${gl_cv_next_errno_h+:} false
; then :
7377 $as_echo_n "(cached) " >&6
7382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7387 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7388 *) gl_absname_cpp
="$ac_cpp" ;;
7393 gl_dirsep_regex
='[/\\]'
7396 gl_dirsep_regex
='\/'
7399 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
7400 gl_header_literal_regex
=`echo 'errno.h' \
7401 | sed -e "$gl_make_literal_regex_sed"`
7402 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7403 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7409 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7410 sed -n "$gl_absolute_header_sed"`
7412 gl_header
=$gl_cv_absolute_errno_h
7413 gl_cv_next_errno_h
='"'$gl_header'"'
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7418 $as_echo "$gl_cv_next_errno_h" >&6; }
7420 NEXT_ERRNO_H
=$gl_cv_next_errno_h
7422 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7423 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7424 gl_next_as_first_directive
='<'errno.h
'>'
7426 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7427 gl_next_as_first_directive
=$gl_cv_next_errno_h
7429 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
7437 if test -n "$ERRNO_H"; then
7438 GL_GENERATE_ERRNO_H_TRUE
=
7439 GL_GENERATE_ERRNO_H_FALSE
='#'
7441 GL_GENERATE_ERRNO_H_TRUE
='#'
7442 GL_GENERATE_ERRNO_H_FALSE
=
7446 if test -n "$ERRNO_H"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7448 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7449 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
7450 $as_echo_n "(cached) " >&6
7453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7463 $EGREP "yes" >/dev
/null
2>&1; then :
7464 gl_cv_header_errno_h_EMULTIHOP
=yes
7466 gl_cv_header_errno_h_EMULTIHOP
=no
7470 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
7471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7474 #define _XOPEN_SOURCE_EXTENDED 1
7481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7482 $EGREP "yes" >/dev
/null
2>&1; then :
7483 gl_cv_header_errno_h_EMULTIHOP
=hidden
7487 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
7488 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7489 #define _XOPEN_SOURCE_EXTENDED 1
7491 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7503 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7504 case $gl_cv_header_errno_h_EMULTIHOP in
7506 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
7509 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
7517 if test -n "$ERRNO_H"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7519 $as_echo_n "checking for ENOLINK value... " >&6; }
7520 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
7521 $as_echo_n "(cached) " >&6
7524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7525 /* end confdefs.h. */
7533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7534 $EGREP "yes" >/dev
/null
2>&1; then :
7535 gl_cv_header_errno_h_ENOLINK
=yes
7537 gl_cv_header_errno_h_ENOLINK
=no
7541 if test $gl_cv_header_errno_h_ENOLINK = no
; then
7542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7545 #define _XOPEN_SOURCE_EXTENDED 1
7552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7553 $EGREP "yes" >/dev
/null
2>&1; then :
7554 gl_cv_header_errno_h_ENOLINK
=hidden
7558 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
7559 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7560 #define _XOPEN_SOURCE_EXTENDED 1
7562 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7574 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7575 case $gl_cv_header_errno_h_ENOLINK in
7577 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
7580 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
7588 if test -n "$ERRNO_H"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7590 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7591 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
7592 $as_echo_n "(cached) " >&6
7595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7605 $EGREP "yes" >/dev
/null
2>&1; then :
7606 gl_cv_header_errno_h_EOVERFLOW
=yes
7608 gl_cv_header_errno_h_EOVERFLOW
=no
7612 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
7613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7616 #define _XOPEN_SOURCE_EXTENDED 1
7623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7624 $EGREP "yes" >/dev
/null
2>&1; then :
7625 gl_cv_header_errno_h_EOVERFLOW
=hidden
7629 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
7630 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7631 #define _XOPEN_SOURCE_EXTENDED 1
7633 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7645 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7646 case $gl_cv_header_errno_h_EOVERFLOW in
7648 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
7651 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
7659 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
7660 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
7666 cat >>confdefs.h
<<_ACEOF
7667 #define HAVE_DECL_STRERROR_R $ac_have_decl
7670 for ac_func
in strerror_r
7672 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
7673 if test "x$ac_cv_func_strerror_r" = xyes
; then :
7674 cat >>confdefs.h
<<_ACEOF
7675 #define HAVE_STRERROR_R 1
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
7682 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7683 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
7684 $as_echo_n "(cached) " >&6
7687 ac_cv_func_strerror_r_char_p
=no
7688 if test $ac_cv_have_decl_strerror_r = yes; then
7689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7691 $ac_includes_default
7697 char x = *strerror_r (0, buf, sizeof buf);
7698 char *p = strerror_r (0, buf, sizeof buf);
7705 if ac_fn_c_try_compile
"$LINENO"; then :
7706 ac_cv_func_strerror_r_char_p
=yes
7708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7710 # strerror_r is not declared. Choose between
7711 # systems that have relatively inaccessible declarations for the
7712 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
7713 # former has a strerror_r that returns char*, while the latter
7714 # has a strerror_r that returns `int'.
7715 # This test should segfault on the DEC system.
7716 if test "$cross_compiling" = yes; then :
7719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 $ac_includes_default
7722 extern char *strerror_r ();
7727 char x = *strerror_r (0, buf, sizeof buf);
7728 return ! isalpha (x);
7733 if ac_fn_c_try_run
"$LINENO"; then :
7734 ac_cv_func_strerror_r_char_p
=yes
7736 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7737 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
7744 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7745 if test $ac_cv_func_strerror_r_char_p = yes; then
7747 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
7752 XGETTEXT_EXTRA_OPTIONS
=
7758 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
7759 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
7765 cat >>confdefs.h
<<_ACEOF
7766 #define HAVE_DECL_FCHDIR $ac_have_decl
7772 GNULIB_NONBLOCKING
=0;
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7809 $as_echo_n "checking for working fcntl.h... " >&6; }
7810 if ${gl_cv_header_working_fcntl_h+:} false
; then :
7811 $as_echo_n "(cached) " >&6
7813 if test "$cross_compiling" = yes; then :
7815 # Guess 'no' on native Windows.
7816 mingw
*) gl_cv_header_working_fcntl_h
='no' ;;
7817 *) gl_cv_header_working_fcntl_h
=cross-compiling
;;
7821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 #include <sys/types.h>
7824 #include <sys/stat.h>
7826 # include <unistd.h>
7827 #else /* on Windows with MSVC */
7829 # include <stdlib.h>
7830 # defined sleep(n) _sleep ((n) * 1000)
7837 #define O_NOFOLLOW 0
7839 static int const constants[] =
7841 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7842 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7849 int result = !constants;
7852 static char const sym[] = "conftest.sym";
7853 if (symlink ("/dev/null", sym) != 0)
7857 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7864 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7868 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7879 static char const file[] = "confdefs.h";
7880 int fd = open (file, O_RDONLY | O_NOATIME);
7886 if (fstat (fd, &st0) != 0)
7892 if (read (fd, &c, 1) != 1)
7896 if (close (fd) != 0)
7901 if (stat (file, &st1) != 0)
7904 if (st0.st_atime != st1.st_atime)
7916 if ac_fn_c_try_run
"$LINENO"; then :
7917 gl_cv_header_working_fcntl_h
=yes
7920 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
7921 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
7922 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7923 *) gl_cv_header_working_fcntl_h
='no';;
7926 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7927 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7933 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7935 case $gl_cv_header_working_fcntl_h in #(
7936 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
7940 cat >>confdefs.h
<<_ACEOF
7941 #define HAVE_WORKING_O_NOATIME $ac_val
7945 case $gl_cv_header_working_fcntl_h in #(
7946 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
7950 cat >>confdefs.h
<<_ACEOF
7951 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7955 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7956 if test "x$ac_cv_type_pid_t" = xyes
; then :
7960 cat >>confdefs.h
<<_ACEOF
7966 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7967 if test "x$ac_cv_type_mode_t" = xyes
; then :
7971 cat >>confdefs.h
<<_ACEOF
8022 if test $gl_cv_have_include_next = yes; then
8023 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fnmatch.h>" >&5
8026 $as_echo_n "checking absolute name of <fnmatch.h>... " >&6; }
8027 if ${gl_cv_next_fnmatch_h+:} false
; then :
8028 $as_echo_n "(cached) " >&6
8031 if test $ac_cv_header_fnmatch_h = yes; then
8036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8038 #include <fnmatch.h>
8041 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8042 *) gl_absname_cpp
="$ac_cpp" ;;
8047 gl_dirsep_regex
='[/\\]'
8050 gl_dirsep_regex
='\/'
8053 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8054 gl_header_literal_regex
=`echo 'fnmatch.h' \
8055 | sed -e "$gl_make_literal_regex_sed"`
8056 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8057 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8063 gl_cv_absolute_fnmatch_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8064 sed -n "$gl_absolute_header_sed"`
8066 gl_header
=$gl_cv_absolute_fnmatch_h
8067 gl_cv_next_fnmatch_h
='"'$gl_header'"'
8069 gl_cv_next_fnmatch_h
='<'fnmatch.h
'>'
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fnmatch_h" >&5
8075 $as_echo "$gl_cv_next_fnmatch_h" >&6; }
8077 NEXT_FNMATCH_H
=$gl_cv_next_fnmatch_h
8079 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8080 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8081 gl_next_as_first_directive
='<'fnmatch.h
'>'
8083 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8084 gl_next_as_first_directive
=$gl_cv_next_fnmatch_h
8086 NEXT_AS_FIRST_DIRECTIVE_FNMATCH_H
=$gl_next_as_first_directive
8094 if test $ac_cv_header_fnmatch_h = yes; then
8105 if test $ac_cv_header_fnmatch_h != yes; then
8111 if test -n "$FNMATCH_H"; then
8112 GL_GENERATE_FNMATCH_H_TRUE
=
8113 GL_GENERATE_FNMATCH_H_FALSE
='#'
8115 GL_GENERATE_FNMATCH_H_TRUE
='#'
8116 GL_GENERATE_FNMATCH_H_FALSE
=
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8132 $as_echo_n "checking for mbstate_t... " >&6; }
8133 if ${ac_cv_type_mbstate_t+:} false
; then :
8134 $as_echo_n "(cached) " >&6
8136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h. */
8138 $ac_includes_default
8139 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8141 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8142 included before <wchar.h>. */
8150 mbstate_t x; return sizeof x;
8155 if ac_fn_c_try_compile
"$LINENO"; then :
8156 ac_cv_type_mbstate_t
=yes
8158 ac_cv_type_mbstate_t
=no
8160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8163 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8164 if test $ac_cv_type_mbstate_t = yes; then
8166 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8170 $as_echo "#define mbstate_t int" >>confdefs.h
8290 GNULIB_REMAINDERF
=0;
8291 GNULIB_REMAINDERL
=0;
8377 HAVE_DECL_COPYSIGNF
=1;
8394 HAVE_DECL_REMAINDER
=1;
8395 HAVE_DECL_REMAINDERL
=1;
8465 REPLACE_REMAINDER
=0;
8466 REPLACE_REMAINDERF
=0;
8467 REPLACE_REMAINDERL
=0;
8472 REPLACE_SIGNBIT_USING_GCC
=0;
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
8485 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
8486 if ${gl_cv_func_frexp_no_libm+:} false
; then :
8487 $as_echo_n "(cached) " >&6
8490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8497 int e; return frexp (x, &e) > 0;
8502 if ac_fn_c_try_link
"$LINENO"; then :
8503 gl_cv_func_frexp_no_libm
=yes
8505 gl_cv_func_frexp_no_libm
=no
8507 rm -f core conftest.err conftest.
$ac_objext \
8508 conftest
$ac_exeext conftest.
$ac_ext
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
8512 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
8515 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
8516 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
8522 cat >>confdefs.h
<<_ACEOF
8523 #define HAVE_DECL_ALARM $ac_have_decl
8531 if test $gl_cv_func_frexp_no_libm = no
; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
8533 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
8534 if ${gl_cv_func_frexp_in_libm+:} false
; then :
8535 $as_echo_n "(cached) " >&6
8540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8547 int e; return frexp (x, &e) > 0;
8552 if ac_fn_c_try_link
"$LINENO"; then :
8553 gl_cv_func_frexp_in_libm
=yes
8555 gl_cv_func_frexp_in_libm
=no
8557 rm -f core conftest.err conftest.
$ac_objext \
8558 conftest
$ac_exeext conftest.
$ac_ext
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
8563 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
8564 if test $gl_cv_func_frexp_in_libm = yes; then
8568 if test $gl_cv_func_frexp_no_libm = yes \
8569 ||
test $gl_cv_func_frexp_in_libm = yes; then
8571 LIBS
="$LIBS $FREXP_LIBM"
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
8582 $as_echo_n "checking whether frexp works... " >&6; }
8583 if ${gl_cv_func_frexp_works+:} false
; then :
8584 $as_echo_n "(cached) " >&6
8587 if test "$cross_compiling" = yes; then :
8589 netbsd
* | irix
*) gl_cv_func_frexp_works
="guessing no" ;;
8590 mingw
*) # Guess yes with MSVC, no with mingw.
8591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8600 $EGREP "Good" >/dev
/null
2>&1; then :
8601 gl_cv_func_frexp_works
="guessing yes"
8603 gl_cv_func_frexp_works
="guessing no"
8608 *) gl_cv_func_frexp_works
="guessing yes" ;;
8612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8619 # include <signal.h>
8620 # include <unistd.h>
8622 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
8623 ICC 10.0 has a bug when optimizing the expression -zero.
8624 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
8625 to PowerPC on Mac OS X 10.5. */
8626 #if defined __hpux || defined __sgi || defined __ICC
8628 compute_minus_zero (void)
8630 return -DBL_MIN * DBL_MIN;
8632 # define minus_zero compute_minus_zero ()
8634 double minus_zero = -0.0;
8643 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
8644 number. Let the test fail in this case. */
8645 signal (SIGALRM, SIG_DFL);
8648 /* Test on denormalized numbers. */
8649 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
8654 double y = frexp (x, &exp);
8655 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
8656 On NetBSD: y = 0.75. Correct: y = 0.5. */
8660 /* Test on infinite numbers. */
8664 double y = frexp (x, &exp);
8668 /* Test on negative zero. */
8672 double y = frexp (x, &exp);
8673 if (memcmp (&y, &x, sizeof x))
8679 if ac_fn_c_try_run
"$LINENO"; then :
8680 gl_cv_func_frexp_works
=yes
8682 gl_cv_func_frexp_works
=no
8684 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8685 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
8691 $as_echo "$gl_cv_func_frexp_works" >&6; }
8694 case "$gl_cv_func_frexp_works" in
8695 *yes) gl_func_frexp
=yes ;;
8696 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
8701 if test $gl_func_frexp = yes; then
8703 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8710 $as_echo_n "checking whether long double and double are the same... " >&6; }
8711 if ${gl_cv_long_double_equals_double+:} false
; then :
8712 $as_echo_n "(cached) " >&6
8714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8720 typedef int check[sizeof (long double) == sizeof (double)
8721 && LDBL_MANT_DIG == DBL_MANT_DIG
8722 && LDBL_MAX_EXP == DBL_MAX_EXP
8723 && LDBL_MIN_EXP == DBL_MIN_EXP
8730 if ac_fn_c_try_compile
"$LINENO"; then :
8731 gl_cv_long_double_equals_double
=yes
8733 gl_cv_long_double_equals_double
=no
8735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8739 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8740 if test $gl_cv_long_double_equals_double = yes; then
8742 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8744 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
8746 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
8756 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
8758 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
8766 if test $HAVE_DECL_FREXPL = 1; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
8769 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
8770 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
8771 $as_echo_n "(cached) " >&6
8774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8781 int e; return frexpl (x, &e) > 0;
8786 if ac_fn_c_try_link
"$LINENO"; then :
8787 gl_cv_func_frexpl_no_libm
=yes
8789 gl_cv_func_frexpl_no_libm
=no
8791 rm -f core conftest.err conftest.
$ac_objext \
8792 conftest
$ac_exeext conftest.
$ac_ext
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
8796 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
8798 if test $gl_cv_func_frexpl_no_libm = no
; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
8800 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
8801 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
8802 $as_echo_n "(cached) " >&6
8807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8814 int e; return frexpl (x, &e) > 0;
8819 if ac_fn_c_try_link
"$LINENO"; then :
8820 gl_cv_func_frexpl_in_libm
=yes
8822 gl_cv_func_frexpl_in_libm
=no
8824 rm -f core conftest.err conftest.
$ac_objext \
8825 conftest
$ac_exeext conftest.
$ac_ext
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
8830 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
8831 if test $gl_cv_func_frexpl_in_libm = yes; then
8835 if test $gl_cv_func_frexpl_no_libm = yes \
8836 ||
test $gl_cv_func_frexpl_in_libm = yes; then
8838 LIBS
="$LIBS $FREXPL_LIBM"
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
8842 $as_echo_n "checking whether frexpl works... " >&6; }
8843 if ${gl_cv_func_frexpl_works+:} false
; then :
8844 $as_echo_n "(cached) " >&6
8847 if test "$cross_compiling" = yes; then :
8850 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
8851 gl_cv_func_frexpl_works
="guessing no";;
8852 *) gl_cv_func_frexpl_works
="guessing yes";;
8856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8861 /* Override the values of <float.h>, like done in float.in.h. */
8862 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
8863 # undef LDBL_MIN_EXP
8864 # define LDBL_MIN_EXP (-16381)
8866 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
8867 # undef LDBL_MIN_EXP
8868 # define LDBL_MIN_EXP (-16381)
8870 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
8871 # undef LDBL_MIN_EXP
8872 # define LDBL_MIN_EXP DBL_MIN_EXP
8874 #if defined __sgi && (LDBL_MANT_DIG >= 106)
8875 # if defined __GNUC__
8876 # undef LDBL_MIN_EXP
8877 # define LDBL_MIN_EXP DBL_MIN_EXP
8884 long double frexpl (long double, int *);
8888 volatile long double x;
8889 /* Test on finite numbers that fails on AIX 5.1. */
8897 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
8898 function returns an invalid (incorrectly normalized) value: it returns
8899 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
8900 but the correct result is
8901 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
8905 long double y = frexpl (x, &exp);
8906 if (!(exp == 1 && y == 0.505L))
8909 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
8910 LDBL_MAX_EXP = 16384.
8911 In the loop end test, we test x against Infinity, rather than comparing
8912 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
8915 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
8926 /* Test on denormalized numbers. */
8929 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
8934 long double y = frexpl (x, &exp);
8935 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
8936 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
8937 if (exp != LDBL_MIN_EXP - 1)
8941 /* Test on infinite numbers. */
8945 long double y = frexpl (x, &exp);
8952 if ac_fn_c_try_run
"$LINENO"; then :
8953 gl_cv_func_frexpl_works
=yes
8955 gl_cv_func_frexpl_works
=no
8957 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8958 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
8964 $as_echo "$gl_cv_func_frexpl_works" >&6; }
8967 case "$gl_cv_func_frexpl_works" in
8968 *yes) gl_func_frexpl
=yes ;;
8969 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
8974 if test $gl_func_frexpl = yes; then
8976 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
8980 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
8981 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
8983 FREXPL_LIBM
="$FREXP_LIBM"
9004 GNULIB_OVERRIDES_STRUCT_STAT
=0;
9024 REPLACE_UTIMENSAT
=0;
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9027 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9028 if ${ac_cv_header_stat_broken+:} false
; then :
9029 $as_echo_n "(cached) " >&6
9031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033 #include <sys/types.h>
9034 #include <sys/stat.h>
9036 #if defined S_ISBLK && defined S_IFDIR
9037 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9040 #if defined S_ISBLK && defined S_IFCHR
9041 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9044 #if defined S_ISLNK && defined S_IFREG
9045 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9048 #if defined S_ISSOCK && defined S_IFREG
9049 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9053 if ac_fn_c_try_compile
"$LINENO"; then :
9054 ac_cv_header_stat_broken
=no
9056 ac_cv_header_stat_broken
=yes
9058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9061 $as_echo "$ac_cv_header_stat_broken" >&6; }
9062 if test $ac_cv_header_stat_broken = yes; then
9064 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9078 $as_echo_n "checking for 64-bit off_t... " >&6; }
9079 if ${gl_cv_type_off_t_64+:} false
; then :
9080 $as_echo_n "(cached) " >&6
9082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9084 #include <sys/types.h>
9085 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9095 if ac_fn_c_try_compile
"$LINENO"; then :
9096 gl_cv_type_off_t_64
=yes
9098 gl_cv_type_off_t_64
=no
9100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9104 $as_echo "$gl_cv_type_off_t_64" >&6; }
9105 if test $gl_cv_type_off_t_64 = no
; then
9106 WINDOWS_64_BIT_OFF_T
=1
9108 WINDOWS_64_BIT_OFF_T
=0
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
9111 $as_echo_n "checking for 64-bit st_size... " >&6; }
9112 if ${gl_cv_member_st_size_64+:} false
; then :
9113 $as_echo_n "(cached) " >&6
9115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 #include <sys/types.h>
9119 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
9129 if ac_fn_c_try_compile
"$LINENO"; then :
9130 gl_cv_member_st_size_64
=yes
9132 gl_cv_member_st_size_64
=no
9134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
9138 $as_echo "$gl_cv_member_st_size_64" >&6; }
9139 if test $gl_cv_member_st_size_64 = no
; then
9140 WINDOWS_64_BIT_ST_SIZE
=1
9142 WINDOWS_64_BIT_ST_SIZE
=0
9146 WINDOWS_64_BIT_OFF_T
=0
9147 WINDOWS_64_BIT_ST_SIZE
=0
9171 if test $gl_cv_have_include_next = yes; then
9172 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
9175 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
9176 if ${gl_cv_next_sys_stat_h+:} false
; then :
9177 $as_echo_n "(cached) " >&6
9180 if test $ac_cv_header_sys_stat_h = yes; then
9185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 #include <sys/stat.h>
9190 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9191 *) gl_absname_cpp
="$ac_cpp" ;;
9196 gl_dirsep_regex
='[/\\]'
9199 gl_dirsep_regex
='\/'
9202 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9203 gl_header_literal_regex
=`echo 'sys/stat.h' \
9204 | sed -e "$gl_make_literal_regex_sed"`
9205 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9206 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9212 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9213 sed -n "$gl_absolute_header_sed"`
9215 gl_header
=$gl_cv_absolute_sys_stat_h
9216 gl_cv_next_sys_stat_h
='"'$gl_header'"'
9218 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
9224 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
9226 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
9228 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9230 gl_next_as_first_directive
='<'sys
/stat.h
'>'
9232 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9233 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
9235 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
9244 WINDOWS_STAT_TIMESPEC
=0
9253 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
9254 #include <sys/stat.h>
9256 if test "x$ac_cv_type_nlink_t" = xyes
; then :
9260 $as_echo "#define nlink_t int" >>confdefs.h
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9271 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9272 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
9273 $as_echo_n "(cached) " >&6
9275 rm -f conftest.sym conftest.
file
9277 if test "$cross_compiling" = yes; then :
9280 # Guess yes on Linux systems.
9281 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9283 # Guess yes on glibc systems.
9284 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9286 # Guess no on native Windows.
9287 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
9289 # If we don't know, assume the worst.
9290 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
9294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9296 $ac_includes_default
9301 if (symlink ("conftest.file", "conftest.sym") != 0)
9303 /* Linux will dereference the symlink and fail, as required by
9304 POSIX. That is better in the sense that it means we will not
9305 have to compile and use the lstat wrapper. */
9306 return lstat ("conftest.sym/", &sbuf) == 0;
9312 if ac_fn_c_try_run
"$LINENO"; then :
9313 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
9315 gl_cv_func_lstat_dereferences_slashed_symlink
=no
9317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9318 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9321 rm -f conftest.sym conftest.
file
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9325 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9326 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9329 cat >>confdefs.h
<<_ACEOF
9330 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9350 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9351 if ${gl_cv_func_getcwd_null+:} false
; then :
9352 $as_echo_n "(cached) " >&6
9354 if test "$cross_compiling" = yes; then :
9356 # Guess yes on glibc systems.
9357 *-gnu* | gnu
*) gl_cv_func_getcwd_null
="guessing yes";;
9358 # Guess yes on Cygwin.
9359 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
9360 # If we don't know, assume the worst.
9361 *) gl_cv_func_getcwd_null
="guessing no";;
9365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9368 # include <stdlib.h>
9370 # include <unistd.h>
9371 # else /* on Windows with MSVC */
9372 # include <direct.h>
9382 #if defined _WIN32 && ! defined __CYGWIN__
9383 /* mingw cwd does not start with '/', but getcwd does allocate.
9384 However, mingw fails to honor non-zero size. */
9386 if (chdir ("/") != 0)
9390 char *f = getcwd (NULL, 0);
9394 { free (f); return 3; }
9396 { free (f); return 4; }
9406 if ac_fn_c_try_run
"$LINENO"; then :
9407 gl_cv_func_getcwd_null
=yes
9409 gl_cv_func_getcwd_null
=no
9411 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9412 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9417 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9421 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9422 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9423 $as_echo_n "(cached) " >&6
9425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9435 char *getcwd (char *, size_t);
9442 if ac_fn_c_try_compile
"$LINENO"; then :
9443 gl_cv_func_getcwd_posix_signature
=yes
9445 gl_cv_func_getcwd_posix_signature
=no
9447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9451 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9454 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9455 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
9461 cat >>confdefs.h
<<_ACEOF
9462 #define HAVE_DECL_GETCWD $ac_have_decl
9472 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9473 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
9479 cat >>confdefs.h
<<_ACEOF
9480 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9485 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9486 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
9492 cat >>confdefs.h
<<_ACEOF
9493 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9503 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9504 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
9510 cat >>confdefs.h
<<_ACEOF
9511 #define HAVE_DECL_GETLOGIN $ac_have_decl
9519 LIB_GETLOGIN
='-ladvapi32' ;;
9536 GNULIB_GETTIMEOFDAY
=0;
9537 HAVE_GETTIMEOFDAY
=1;
9538 HAVE_STRUCT_TIMEVAL
=1;
9540 REPLACE_GETTIMEOFDAY
=0;
9541 REPLACE_STRUCT_TIMEVAL
=0;
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9544 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9545 if ${ac_cv_c_restrict+:} false
; then :
9546 $as_echo_n "(cached) " >&6
9549 # The order here caters to the fact that C++ does not require restrict.
9550 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h. */
9553 typedef int *int_ptr;
9554 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9555 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9556 int bar (int ip[$ac_kw]) { return ip[0]; }
9564 return foo (t) + bar (t);
9570 if ac_fn_c_try_compile
"$LINENO"; then :
9571 ac_cv_c_restrict
=$ac_kw
9573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9574 test "$ac_cv_c_restrict" != no
&& break
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9579 $as_echo "$ac_cv_c_restrict" >&6; }
9581 case $ac_cv_c_restrict in
9583 no
) $as_echo "#define restrict /**/" >>confdefs.h
9585 *) cat >>confdefs.h
<<_ACEOF
9586 #define restrict $ac_cv_c_restrict
9621 if test $gl_cv_have_include_next = yes; then
9622 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9625 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9626 if ${gl_cv_next_sys_time_h+:} false
; then :
9627 $as_echo_n "(cached) " >&6
9630 if test $ac_cv_header_sys_time_h = yes; then
9635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9637 #include <sys/time.h>
9640 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9641 *) gl_absname_cpp
="$ac_cpp" ;;
9646 gl_dirsep_regex
='[/\\]'
9649 gl_dirsep_regex
='\/'
9652 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9653 gl_header_literal_regex
=`echo 'sys/time.h' \
9654 | sed -e "$gl_make_literal_regex_sed"`
9655 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9656 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9662 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9663 sed -n "$gl_absolute_header_sed"`
9665 gl_header
=$gl_cv_absolute_sys_time_h
9666 gl_cv_next_sys_time_h
='"'$gl_header'"'
9668 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9674 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9676 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9678 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9679 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9680 gl_next_as_first_directive
='<'sys
/time.h
'>'
9682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9683 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
9685 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
9691 if test $ac_cv_header_sys_time_h != yes; then
9705 if test $ac_cv_header_sys_socket_h != yes; then
9706 for ac_header
in winsock2.h
9708 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9709 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
9710 cat >>confdefs.h
<<_ACEOF
9711 #define HAVE_WINSOCK2_H 1
9719 if test "$ac_cv_header_winsock2_h" = yes; then
9721 UNISTD_H_HAVE_WINSOCK2_H
=1
9722 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9729 $as_echo_n "checking for struct timeval... " >&6; }
9730 if ${gl_cv_sys_struct_timeval+:} false
; then :
9731 $as_echo_n "(cached) " >&6
9733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9736 #include <sys/time.h>
9740 # include <winsock2.h>
9746 static struct timeval x; x.tv_sec = x.tv_usec;
9751 if ac_fn_c_try_compile
"$LINENO"; then :
9752 gl_cv_sys_struct_timeval
=yes
9754 gl_cv_sys_struct_timeval
=no
9756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9760 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9761 if test $gl_cv_sys_struct_timeval != yes; then
9762 HAVE_STRUCT_TIMEVAL
=0
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9765 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9766 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
9767 $as_echo_n "(cached) " >&6
9769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9772 #include <sys/time.h>
9776 # include <winsock2.h>
9782 static struct timeval x;
9783 typedef int verify_tv_sec_type[
9784 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9791 if ac_fn_c_try_compile
"$LINENO"; then :
9792 gl_cv_sys_struct_timeval_tv_sec
=yes
9794 gl_cv_sys_struct_timeval_tv_sec
=no
9796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9800 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9801 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9802 REPLACE_STRUCT_TIMEVAL
=1
9819 NEED_LOCALTIME_BUFFER
=0
9832 HAVE_DECL_LOCALTIME_R
=1;
9838 REPLACE_CTIME
=GNULIB_PORTCHECK
;
9839 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
9840 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
9841 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
9842 REPLACE_STRFTIME
=GNULIB_PORTCHECK
;
9843 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
9844 REPLACE_TZSET
=GNULIB_PORTCHECK
;
9846 : ${GNULIB_GETTIMEOFDAY=0};
9848 REPLACE_LOCALTIME
=0;
9853 HAVE_GLOB_PATTERN_P
=1;
9855 REPLACE_GLOB_PATTERN_P
=0;
9888 if test $gl_cv_have_include_next = yes; then
9889 gl_cv_next_glob_h
='<'glob.h
'>'
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <glob.h>" >&5
9892 $as_echo_n "checking absolute name of <glob.h>... " >&6; }
9893 if ${gl_cv_next_glob_h+:} false
; then :
9894 $as_echo_n "(cached) " >&6
9897 if test $ac_cv_header_glob_h = yes; then
9902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9907 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9908 *) gl_absname_cpp
="$ac_cpp" ;;
9913 gl_dirsep_regex
='[/\\]'
9916 gl_dirsep_regex
='\/'
9919 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9920 gl_header_literal_regex
=`echo 'glob.h' \
9921 | sed -e "$gl_make_literal_regex_sed"`
9922 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9923 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9929 gl_cv_absolute_glob_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9930 sed -n "$gl_absolute_header_sed"`
9932 gl_header
=$gl_cv_absolute_glob_h
9933 gl_cv_next_glob_h
='"'$gl_header'"'
9935 gl_cv_next_glob_h
='<'glob.h
'>'
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_glob_h" >&5
9941 $as_echo "$gl_cv_next_glob_h" >&6; }
9943 NEXT_GLOB_H
=$gl_cv_next_glob_h
9945 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9946 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9947 gl_next_as_first_directive
='<'glob.h
'>'
9949 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9950 gl_next_as_first_directive
=$gl_cv_next_glob_h
9952 NEXT_AS_FIRST_DIRECTIVE_GLOB_H
=$gl_next_as_first_directive
9958 if test $ac_cv_header_glob_h = yes; then
9969 if test $ac_cv_header_glob_h != yes; then
9975 if test -n "$GLOB_H"; then
9976 GL_GENERATE_GLOB_H_TRUE
=
9977 GL_GENERATE_GLOB_H_FALSE
='#'
9979 GL_GENERATE_GLOB_H_TRUE
='#'
9980 GL_GENERATE_GLOB_H_FALSE
=
10024 if test $gl_cv_have_include_next = yes; then
10025 gl_cv_next_limits_h
='<'limits.h
'>'
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
10028 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
10029 if ${gl_cv_next_limits_h+:} false
; then :
10030 $as_echo_n "(cached) " >&6
10033 if test $ac_cv_header_limits_h = yes; then
10038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 #include <limits.h>
10043 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10044 *) gl_absname_cpp
="$ac_cpp" ;;
10049 gl_dirsep_regex
='[/\\]'
10052 gl_dirsep_regex
='\/'
10055 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10056 gl_header_literal_regex
=`echo 'limits.h' \
10057 | sed -e "$gl_make_literal_regex_sed"`
10058 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10059 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10065 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10066 sed -n "$gl_absolute_header_sed"`
10068 gl_header
=$gl_cv_absolute_limits_h
10069 gl_cv_next_limits_h
='"'$gl_header'"'
10071 gl_cv_next_limits_h
='<'limits.h
'>'
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
10077 $as_echo "$gl_cv_next_limits_h" >&6; }
10079 NEXT_LIMITS_H
=$gl_cv_next_limits_h
10081 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10082 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10083 gl_next_as_first_directive
='<'limits.h
'>'
10085 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10086 gl_next_as_first_directive
=$gl_cv_next_limits_h
10088 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
10095 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
10096 if ${gl_cv_header_limits_width+:} false
; then :
10097 $as_echo_n "(cached) " >&6
10099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10101 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10102 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10104 #include <limits.h>
10105 int ullw = ULLONG_WIDTH;
10114 if ac_fn_c_try_compile
"$LINENO"; then :
10115 gl_cv_header_limits_width
=yes
10117 gl_cv_header_limits_width
=no
10119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
10122 $as_echo "$gl_cv_header_limits_width" >&6; }
10123 if test "$gl_cv_header_limits_width" = yes; then
10129 if test -n "$LIMITS_H"; then
10130 GL_GENERATE_LIMITS_H_TRUE
=
10131 GL_GENERATE_LIMITS_H_FALSE
='#'
10133 GL_GENERATE_LIMITS_H_TRUE
='#'
10134 GL_GENERATE_LIMITS_H_FALSE
=
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10140 $as_echo_n "checking for wint_t... " >&6; }
10141 if ${gt_cv_c_wint_t+:} false
; then :
10142 $as_echo_n "(cached) " >&6
10144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10147 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10149 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10150 before <wchar.h>. */
10151 #include <stddef.h>
10155 wint_t foo = (wchar_t)'\0';
10164 if ac_fn_c_try_compile
"$LINENO"; then :
10169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10172 $as_echo "$gt_cv_c_wint_t" >&6; }
10173 if test $gt_cv_c_wint_t = yes; then
10175 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
10179 $as_echo_n "checking whether wint_t is too small... " >&6; }
10180 if ${gl_cv_type_wint_t_too_small+:} false
; then :
10181 $as_echo_n "(cached) " >&6
10183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10186 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10188 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10189 included before <wchar.h>. */
10190 #if !(defined __GLIBC__ && !defined __UCLIBC__)
10191 # include <stddef.h>
10192 # include <stdio.h>
10196 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
10206 if ac_fn_c_try_compile
"$LINENO"; then :
10207 gl_cv_type_wint_t_too_small
=no
10209 gl_cv_type_wint_t_too_small
=yes
10211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
10214 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
10215 if test $gl_cv_type_wint_t_too_small = yes; then
10216 GNULIB_OVERRIDES_WINT_T
=1
10218 GNULIB_OVERRIDES_WINT_T
=0
10221 GNULIB_OVERRIDES_WINT_T
=0
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10227 $as_echo_n "checking for unsigned long long int... " >&6; }
10228 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
10229 $as_echo_n "(cached) " >&6
10231 ac_cv_type_unsigned_long_long_int
=yes
10232 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10236 /* For now, do not test the preprocessor; as of 2007 there are too many
10237 implementations with broken preprocessors. Perhaps this can
10238 be revisited in 2012. In the meantime, code should not expect
10239 #if to work with literals wider than 32 bits. */
10240 /* Test literals. */
10241 long long int ll = 9223372036854775807ll;
10242 long long int nll = -9223372036854775807LL;
10243 unsigned long long int ull = 18446744073709551615ULL;
10244 /* Test constant expressions. */
10245 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10247 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10253 /* Test availability of runtime routines for shift and division. */
10254 long long int llmax = 9223372036854775807ll;
10255 unsigned long long int ullmax = 18446744073709551615ull;
10256 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10257 | (llmax / ll) | (llmax % ll)
10258 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10259 | (ullmax / ull) | (ullmax % ull));
10265 if ac_fn_c_try_link
"$LINENO"; then :
10268 ac_cv_type_unsigned_long_long_int
=no
10270 rm -f core conftest.err conftest.
$ac_objext \
10271 conftest
$ac_exeext conftest.
$ac_ext
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10275 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10276 if test $ac_cv_type_unsigned_long_long_int = yes; then
10278 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10285 $as_echo_n "checking for long long int... " >&6; }
10286 if ${ac_cv_type_long_long_int+:} false
; then :
10287 $as_echo_n "(cached) " >&6
10289 ac_cv_type_long_long_int
=yes
10290 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10291 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
10292 if test $ac_cv_type_long_long_int = yes; then
10293 if test "$cross_compiling" = yes; then :
10296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298 #include <limits.h>
10301 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10302 # define LLONG_MAX (HALF - 1 + HALF)
10307 long long int n = 1;
10311 long long int m = n << i;
10314 if (LLONG_MAX / 2 < m)
10322 if ac_fn_c_try_run
"$LINENO"; then :
10325 ac_cv_type_long_long_int
=no
10327 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10328 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10335 $as_echo "$ac_cv_type_long_long_int" >&6; }
10336 if test $ac_cv_type_long_long_int = yes; then
10338 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10353 gl_cv_c_multiarch
=no
10354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356 #ifndef __APPLE_CC__
10357 not a universal capable compiler
10362 if ac_fn_c_try_compile
"$LINENO"; then :
10366 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10367 if test -n "$prev"; then
10369 i?
86 | x86_64 | ppc | ppc64
)
10370 if test -z "$arch" ||
test "$arch" = "$word"; then
10373 gl_cv_c_multiarch
=yes
10379 if test "x$word" = "x-arch"; then
10386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10387 if test $gl_cv_c_multiarch = yes; then
10388 APPLE_UNIVERSAL_BUILD
=1
10390 APPLE_UNIVERSAL_BUILD
=0
10400 if test $ac_cv_type_long_long_int = yes; then
10401 HAVE_LONG_LONG_INT
=1
10403 HAVE_LONG_LONG_INT
=0
10407 if test $ac_cv_type_unsigned_long_long_int = yes; then
10408 HAVE_UNSIGNED_LONG_LONG_INT
=1
10410 HAVE_UNSIGNED_LONG_LONG_INT
=0
10421 if test $ac_cv_header_wchar_h = yes; then
10428 if test $ac_cv_header_inttypes_h = yes; then
10435 if test $ac_cv_header_sys_types_h = yes; then
10457 if test $gl_cv_have_include_next = yes; then
10458 gl_cv_next_stdint_h
='<'stdint.h
'>'
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10461 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10462 if ${gl_cv_next_stdint_h+:} false
; then :
10463 $as_echo_n "(cached) " >&6
10466 if test $ac_cv_header_stdint_h = yes; then
10471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 #include <stdint.h>
10476 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10477 *) gl_absname_cpp
="$ac_cpp" ;;
10482 gl_dirsep_regex
='[/\\]'
10485 gl_dirsep_regex
='\/'
10488 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10489 gl_header_literal_regex
=`echo 'stdint.h' \
10490 | sed -e "$gl_make_literal_regex_sed"`
10491 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10492 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10498 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10499 sed -n "$gl_absolute_header_sed"`
10501 gl_header
=$gl_cv_absolute_stdint_h
10502 gl_cv_next_stdint_h
='"'$gl_header'"'
10504 gl_cv_next_stdint_h
='<'stdint.h
'>'
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10510 $as_echo "$gl_cv_next_stdint_h" >&6; }
10512 NEXT_STDINT_H
=$gl_cv_next_stdint_h
10514 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10515 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10516 gl_next_as_first_directive
='<'stdint.h
'>'
10518 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10519 gl_next_as_first_directive
=$gl_cv_next_stdint_h
10521 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
10526 if test $ac_cv_header_stdint_h = yes; then
10533 if test $ac_cv_header_stdint_h = yes; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10535 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10536 if ${gl_cv_header_working_stdint_h+:} false
; then :
10537 $as_echo_n "(cached) " >&6
10539 gl_cv_header_working_stdint_h
=no
10540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10544 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10545 #define __STDC_CONSTANT_MACROS 1
10546 #define __STDC_LIMIT_MACROS 1
10547 #include <stdint.h>
10548 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10549 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10550 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10554 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10555 included before <wchar.h>. */
10556 #include <stddef.h>
10557 #include <signal.h>
10559 # include <stdio.h>
10561 # include <wchar.h>
10566 int8_t a1 = INT8_MAX;
10567 int8_t a1min = INT8_MIN;
10570 int16_t a2 = INT16_MAX;
10571 int16_t a2min = INT16_MIN;
10574 int32_t a3 = INT32_MAX;
10575 int32_t a3min = INT32_MIN;
10578 int64_t a4 = INT64_MAX;
10579 int64_t a4min = INT64_MIN;
10582 uint8_t b1 = UINT8_MAX;
10584 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10587 uint16_t b2 = UINT16_MAX;
10590 uint32_t b3 = UINT32_MAX;
10593 uint64_t b4 = UINT64_MAX;
10595 int_least8_t c1 = INT8_C (0x7f);
10596 int_least8_t c1max = INT_LEAST8_MAX;
10597 int_least8_t c1min = INT_LEAST8_MIN;
10598 int_least16_t c2 = INT16_C (0x7fff);
10599 int_least16_t c2max = INT_LEAST16_MAX;
10600 int_least16_t c2min = INT_LEAST16_MIN;
10601 int_least32_t c3 = INT32_C (0x7fffffff);
10602 int_least32_t c3max = INT_LEAST32_MAX;
10603 int_least32_t c3min = INT_LEAST32_MIN;
10604 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10605 int_least64_t c4max = INT_LEAST64_MAX;
10606 int_least64_t c4min = INT_LEAST64_MIN;
10607 uint_least8_t d1 = UINT8_C (0xff);
10608 uint_least8_t d1max = UINT_LEAST8_MAX;
10609 uint_least16_t d2 = UINT16_C (0xffff);
10610 uint_least16_t d2max = UINT_LEAST16_MAX;
10611 uint_least32_t d3 = UINT32_C (0xffffffff);
10612 uint_least32_t d3max = UINT_LEAST32_MAX;
10613 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10614 uint_least64_t d4max = UINT_LEAST64_MAX;
10615 int_fast8_t e1 = INT_FAST8_MAX;
10616 int_fast8_t e1min = INT_FAST8_MIN;
10617 int_fast16_t e2 = INT_FAST16_MAX;
10618 int_fast16_t e2min = INT_FAST16_MIN;
10619 int_fast32_t e3 = INT_FAST32_MAX;
10620 int_fast32_t e3min = INT_FAST32_MIN;
10621 int_fast64_t e4 = INT_FAST64_MAX;
10622 int_fast64_t e4min = INT_FAST64_MIN;
10623 uint_fast8_t f1 = UINT_FAST8_MAX;
10624 uint_fast16_t f2 = UINT_FAST16_MAX;
10625 uint_fast32_t f3 = UINT_FAST32_MAX;
10626 uint_fast64_t f4 = UINT_FAST64_MAX;
10628 intptr_t g = INTPTR_MAX;
10629 intptr_t gmin = INTPTR_MIN;
10632 uintptr_t h = UINTPTR_MAX;
10634 intmax_t i = INTMAX_MAX;
10635 uintmax_t j = UINTMAX_MAX;
10637 /* Check that SIZE_MAX has the correct type, if possible. */
10638 #if 201112 <= __STDC_VERSION__
10639 int k = _Generic (SIZE_MAX, size_t: 0);
10640 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
10641 || (0x5110 <= __SUNPRO_C && !__STDC__))
10643 extern __typeof__ (SIZE_MAX) k;
10646 #include <limits.h> /* for CHAR_BIT */
10647 #define TYPE_MINIMUM(t) \
10648 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10649 #define TYPE_MAXIMUM(t) \
10650 ((t) ((t) 0 < (t) -1 \
10652 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10655 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10656 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10658 /* Detect bug in FreeBSD 6.0 / ia64. */
10659 int check_SIG_ATOMIC:
10660 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10661 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10663 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10665 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10666 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10668 /* Detect bug in mingw. */
10670 WINT_MIN == TYPE_MINIMUM (wint_t)
10671 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10674 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10676 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10677 int check_UINT16_C:
10678 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10680 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10682 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10685 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10688 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10691 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10693 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10694 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10695 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10696 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10697 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10698 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10699 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10700 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10701 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10702 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10703 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10714 if ac_fn_c_try_compile
"$LINENO"; then :
10715 if test "$cross_compiling" = yes; then :
10717 # Guess yes on native Windows.
10718 mingw
*) gl_cv_header_working_stdint_h
="guessing yes" ;;
10719 # In general, assume it works.
10720 *) gl_cv_header_working_stdint_h
="guessing yes" ;;
10724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10728 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10729 #define __STDC_CONSTANT_MACROS 1
10730 #define __STDC_LIMIT_MACROS 1
10731 #include <stdint.h>
10734 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10735 included before <wchar.h>. */
10736 #include <stddef.h>
10737 #include <signal.h>
10739 # include <stdio.h>
10741 # include <wchar.h>
10746 #include <string.h>
10747 #define MVAL(macro) MVAL1(macro)
10748 #define MVAL1(expression) #expression
10749 static const char *macro_values[] =
10783 for (mv = macro_values; *mv != NULL; mv++)
10785 const char *value = *mv;
10786 /* Test whether it looks like a cast expression. */
10787 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10788 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10789 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10790 || strncmp (value, "((int)"/*)*/, 6) == 0
10791 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10792 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10793 return mv - macro_values + 1;
10801 if ac_fn_c_try_run
"$LINENO"; then :
10802 gl_cv_header_working_stdint_h
=yes
10804 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10805 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10814 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10817 HAVE_C99_STDINT_H
=0
10818 HAVE_SYS_BITYPES_H
=0
10819 HAVE_SYS_INTTYPES_H
=0
10821 case "$gl_cv_header_working_stdint_h" in
10823 HAVE_C99_STDINT_H
=1
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
10825 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
10826 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
10827 $as_echo_n "(cached) " >&6
10829 gl_cv_header_stdint_predates_cxx11_h
=yes
10830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10834 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10835 #include <stdint.h>
10838 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10839 included before <wchar.h>. */
10840 #include <stddef.h>
10841 #include <signal.h>
10843 # include <stdio.h>
10845 # include <wchar.h>
10849 intmax_t im = INTMAX_MAX;
10850 int32_t i32 = INT32_C (0x7fffffff);
10860 if ac_fn_c_try_compile
"$LINENO"; then :
10861 gl_cv_header_stdint_predates_cxx11_h
=no
10863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
10866 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
10868 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
10870 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
10873 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
10877 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
10878 if ${gl_cv_header_stdint_width+:} false
; then :
10879 $as_echo_n "(cached) " >&6
10881 gl_cv_header_stdint_width
=no
10882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10885 /* Work if build is not clean. */
10886 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
10887 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10888 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10890 #include <stdint.h>
10892 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10893 included before <wchar.h>. */
10894 #include <stddef.h>
10895 #include <signal.h>
10897 # include <stdio.h>
10899 # include <wchar.h>
10902 int iw = UINTMAX_WIDTH;
10912 if ac_fn_c_try_compile
"$LINENO"; then :
10913 gl_cv_header_stdint_width
=yes
10915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
10918 $as_echo "$gl_cv_header_stdint_width" >&6; }
10919 if test "$gl_cv_header_stdint_width" = yes; then
10924 for ac_header
in sys
/inttypes.h sys
/bitypes.h
10926 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10927 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10928 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10929 cat >>confdefs.h
<<_ACEOF
10930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10937 if test $ac_cv_header_sys_inttypes_h = yes; then
10938 HAVE_SYS_INTTYPES_H
=1
10940 if test $ac_cv_header_sys_bitypes_h = yes; then
10941 HAVE_SYS_BITYPES_H
=1
10945 if test $APPLE_UNIVERSAL_BUILD = 0; then
10948 for gltype
in ptrdiff_t size_t
; do
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10950 $as_echo_n "checking for bit size of $gltype... " >&6; }
10951 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
10952 $as_echo_n "(cached) " >&6
10954 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10955 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10956 included before <wchar.h>. */
10957 #include <stddef.h>
10958 #include <signal.h>
10960 # include <stdio.h>
10962 # include <wchar.h>
10965 #include <limits.h>"; then :
10971 eval gl_cv_bitsizeof_
${gltype}=\
$result
10974 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10976 $as_echo "$ac_res" >&6; }
10977 eval result
=\
$gl_cv_bitsizeof_${gltype}
10978 if test $result = unknown
; then
10981 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10982 cat >>confdefs.h
<<_ACEOF
10983 #define BITSIZEOF_${GLTYPE} $result
10986 eval BITSIZEOF_
${GLTYPE}=\
$result
10993 for gltype
in sig_atomic_t wchar_t wint_t
; do
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10995 $as_echo_n "checking for bit size of $gltype... " >&6; }
10996 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
10997 $as_echo_n "(cached) " >&6
10999 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11000 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11001 included before <wchar.h>. */
11002 #include <stddef.h>
11003 #include <signal.h>
11005 # include <stdio.h>
11007 # include <wchar.h>
11010 #include <limits.h>"; then :
11016 eval gl_cv_bitsizeof_
${gltype}=\
$result
11019 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11021 $as_echo "$ac_res" >&6; }
11022 eval result
=\
$gl_cv_bitsizeof_${gltype}
11023 if test $result = unknown
; then
11026 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11027 cat >>confdefs.h
<<_ACEOF
11028 #define BITSIZEOF_${GLTYPE} $result
11031 eval BITSIZEOF_
${GLTYPE}=\
$result
11037 for gltype
in sig_atomic_t wchar_t wint_t
; do
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11039 $as_echo_n "checking whether $gltype is signed... " >&6; }
11040 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
11041 $as_echo_n "(cached) " >&6
11043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11046 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11047 included before <wchar.h>. */
11048 #include <stddef.h>
11049 #include <signal.h>
11051 # include <stdio.h>
11053 # include <wchar.h>
11056 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11065 if ac_fn_c_try_compile
"$LINENO"; then :
11070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11071 eval gl_cv_type_
${gltype}_signed
=\
$result
11074 eval ac_res
=\
$gl_cv_type_${gltype}_signed
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11076 $as_echo "$ac_res" >&6; }
11077 eval result
=\
$gl_cv_type_${gltype}_signed
11078 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11079 if test "$result" = yes; then
11080 cat >>confdefs.h
<<_ACEOF
11081 #define HAVE_SIGNED_${GLTYPE} 1
11084 eval HAVE_SIGNED_
${GLTYPE}=1
11086 eval HAVE_SIGNED_
${GLTYPE}=0
11091 gl_cv_type_ptrdiff_t_signed
=yes
11092 gl_cv_type_size_t_signed
=no
11093 if test $APPLE_UNIVERSAL_BUILD = 0; then
11096 for gltype
in ptrdiff_t size_t
; do
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11098 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11099 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11100 $as_echo_n "(cached) " >&6
11102 eval gl_cv_type_
${gltype}_suffix
=no
11103 eval result
=\
$gl_cv_type_${gltype}_signed
11104 if test "$result" = yes; then
11109 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11111 '') gltype1
='int';;
11112 l
) gltype1
='long int';;
11113 ll
) gltype1
='long long int';;
11114 i64
) gltype1
='__int64';;
11115 u
) gltype1
='unsigned int';;
11116 ul
) gltype1
='unsigned long int';;
11117 ull
) gltype1
='unsigned long long int';;
11118 ui64
)gltype1
='unsigned __int64';;
11120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11123 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11124 included before <wchar.h>. */
11125 #include <stddef.h>
11126 #include <signal.h>
11128 # include <stdio.h>
11130 # include <wchar.h>
11133 extern $gltype foo;
11134 extern $gltype1 foo;
11143 if ac_fn_c_try_compile
"$LINENO"; then :
11144 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11147 eval result
=\
$gl_cv_type_${gltype}_suffix
11148 test "$result" != no
&& break
11151 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11153 $as_echo "$ac_res" >&6; }
11154 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11155 eval result
=\
$gl_cv_type_${gltype}_suffix
11156 test "$result" = no
&& result
=
11157 eval ${GLTYPE}_SUFFIX
=\
$result
11158 cat >>confdefs.h
<<_ACEOF
11159 #define ${GLTYPE}_SUFFIX $result
11168 for gltype
in sig_atomic_t wchar_t wint_t
; do
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11170 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11171 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11172 $as_echo_n "(cached) " >&6
11174 eval gl_cv_type_
${gltype}_suffix
=no
11175 eval result
=\
$gl_cv_type_${gltype}_signed
11176 if test "$result" = yes; then
11181 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11183 '') gltype1
='int';;
11184 l
) gltype1
='long int';;
11185 ll
) gltype1
='long long int';;
11186 i64
) gltype1
='__int64';;
11187 u
) gltype1
='unsigned int';;
11188 ul
) gltype1
='unsigned long int';;
11189 ull
) gltype1
='unsigned long long int';;
11190 ui64
)gltype1
='unsigned __int64';;
11192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11195 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11196 included before <wchar.h>. */
11197 #include <stddef.h>
11198 #include <signal.h>
11200 # include <stdio.h>
11202 # include <wchar.h>
11205 extern $gltype foo;
11206 extern $gltype1 foo;
11215 if ac_fn_c_try_compile
"$LINENO"; then :
11216 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11219 eval result
=\
$gl_cv_type_${gltype}_suffix
11220 test "$result" != no
&& break
11223 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11225 $as_echo "$ac_res" >&6; }
11226 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11227 eval result
=\
$gl_cv_type_${gltype}_suffix
11228 test "$result" = no
&& result
=
11229 eval ${GLTYPE}_SUFFIX
=\
$result
11230 cat >>confdefs.h
<<_ACEOF
11231 #define ${GLTYPE}_SUFFIX $result
11238 if test $GNULIB_OVERRIDES_WINT_T = 1; then
11239 BITSIZEOF_WINT_T
=32
11247 LIMITS_H
='limits.h'
11248 if test -n "$LIMITS_H"; then
11249 GL_GENERATE_LIMITS_H_TRUE
=
11250 GL_GENERATE_LIMITS_H_FALSE
='#'
11252 GL_GENERATE_LIMITS_H_TRUE
='#'
11253 GL_GENERATE_LIMITS_H_FALSE
=
11262 if test -n "$STDINT_H"; then
11263 GL_GENERATE_STDINT_H_TRUE
=
11264 GL_GENERATE_STDINT_H_FALSE
='#'
11266 GL_GENERATE_STDINT_H_TRUE
='#'
11267 GL_GENERATE_STDINT_H_FALSE
=
11279 GNULIB_STRTOIMAX
=0;
11280 GNULIB_STRTOUMAX
=0;
11281 HAVE_DECL_IMAXABS
=1;
11282 HAVE_DECL_IMAXDIV
=1;
11283 HAVE_DECL_STRTOIMAX
=1;
11284 HAVE_DECL_STRTOUMAX
=1;
11286 REPLACE_STRTOIMAX
=0;
11287 REPLACE_STRTOUMAX
=0;
11288 INT32_MAX_LT_INTMAX_MAX
=1;
11289 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
11290 PRI_MACROS_BROKEN
=0;
11291 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
11292 UINT32_MAX_LT_UINTMAX_MAX
=1;
11293 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
11321 if test $gl_cv_have_include_next = yes; then
11322 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11325 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11326 if ${gl_cv_next_inttypes_h+:} false
; then :
11327 $as_echo_n "(cached) " >&6
11330 if test $ac_cv_header_inttypes_h = yes; then
11335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11337 #include <inttypes.h>
11340 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11341 *) gl_absname_cpp
="$ac_cpp" ;;
11346 gl_dirsep_regex
='[/\\]'
11349 gl_dirsep_regex
='\/'
11352 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11353 gl_header_literal_regex
=`echo 'inttypes.h' \
11354 | sed -e "$gl_make_literal_regex_sed"`
11355 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11356 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11362 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11363 sed -n "$gl_absolute_header_sed"`
11365 gl_header
=$gl_cv_absolute_inttypes_h
11366 gl_cv_next_inttypes_h
='"'$gl_header'"'
11368 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11374 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11376 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
11378 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11380 gl_next_as_first_directive
='<'inttypes.h
'>'
11382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11383 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
11385 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
11398 for ac_header
in inttypes.h
11400 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11401 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
11402 cat >>confdefs.h
<<_ACEOF
11403 #define HAVE_INTTYPES_H 1
11410 if test $ac_cv_header_inttypes_h = yes; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
11412 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
11413 if ${gt_cv_inttypes_pri_broken+:} false
; then :
11414 $as_echo_n "(cached) " >&6
11417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11420 #include <inttypes.h>
11433 if ac_fn_c_try_compile
"$LINENO"; then :
11434 gt_cv_inttypes_pri_broken
=no
11436 gt_cv_inttypes_pri_broken
=yes
11438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
11442 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11444 if test "$gt_cv_inttypes_pri_broken" = yes; then
11446 cat >>confdefs.h
<<_ACEOF
11447 #define PRI_MACROS_BROKEN 1
11450 PRI_MACROS_BROKEN
=1
11452 PRI_MACROS_BROKEN
=0
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
11458 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
11459 if ${gl_cv_cc_double_expbit0+:} false
; then :
11460 $as_echo_n "(cached) " >&6
11463 if test "$cross_compiling" = yes; then :
11465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11468 #if defined arm || defined __arm || defined __arm__
11473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11474 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
11475 gl_cv_cc_double_expbit0
="unknown"
11479 if ${ac_cv_c_bigendian+:} false
; then :
11480 $as_echo_n "(cached) " >&6
11482 ac_cv_c_bigendian
=unknown
11483 # See if we're dealing with a universal compiler.
11484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11486 #ifndef __APPLE_CC__
11487 not a universal capable compiler
11492 if ac_fn_c_try_compile
"$LINENO"; then :
11494 # Check for potential -arch flags. It is not universal unless
11495 # there are at least two -arch flags with different values.
11498 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11499 if test -n "$ac_prev"; then
11501 i?
86 | x86_64 | ppc | ppc64
)
11502 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11505 ac_cv_c_bigendian
=universal
11511 elif test "x$ac_word" = "x-arch"; then
11516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11517 if test $ac_cv_c_bigendian = unknown
; then
11518 # See if sys/param.h defines the BYTE_ORDER macro.
11519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11521 #include <sys/types.h>
11522 #include <sys/param.h>
11527 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11528 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11530 bogus endian macros
11537 if ac_fn_c_try_compile
"$LINENO"; then :
11538 # It does; now see whether it defined to BIG_ENDIAN or not.
11539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11541 #include <sys/types.h>
11542 #include <sys/param.h>
11547 #if BYTE_ORDER != BIG_ENDIAN
11555 if ac_fn_c_try_compile
"$LINENO"; then :
11556 ac_cv_c_bigendian
=yes
11558 ac_cv_c_bigendian
=no
11560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11564 if test $ac_cv_c_bigendian = unknown
; then
11565 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11568 #include <limits.h>
11573 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11574 bogus endian macros
11581 if ac_fn_c_try_compile
"$LINENO"; then :
11582 # It does; now see whether it defined to _BIG_ENDIAN or not.
11583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585 #include <limits.h>
11590 #ifndef _BIG_ENDIAN
11598 if ac_fn_c_try_compile
"$LINENO"; then :
11599 ac_cv_c_bigendian
=yes
11601 ac_cv_c_bigendian
=no
11603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11607 if test $ac_cv_c_bigendian = unknown
; then
11608 # Compile a test program.
11609 if test "$cross_compiling" = yes; then :
11610 # Try to guess by grepping values from an object file.
11611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11613 short int ascii_mm[] =
11614 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11615 short int ascii_ii[] =
11616 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11617 int use_ascii (int i) {
11618 return ascii_mm[i] + ascii_ii[i];
11620 short int ebcdic_ii[] =
11621 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11622 short int ebcdic_mm[] =
11623 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11624 int use_ebcdic (int i) {
11625 return ebcdic_mm[i] + ebcdic_ii[i];
11632 return use_ascii (foo) == use_ebcdic (foo);
11637 if ac_fn_c_try_compile
"$LINENO"; then :
11638 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11639 ac_cv_c_bigendian
=yes
11641 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11642 if test "$ac_cv_c_bigendian" = unknown
; then
11643 ac_cv_c_bigendian
=no
11645 # finding both strings is unlikely to happen, but who knows?
11646 ac_cv_c_bigendian
=unknown
11650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11654 $ac_includes_default
11659 /* Are we little or big endian? From Harbison&Steele. */
11663 char c[sizeof (long int)];
11666 return u.c[sizeof (long int) - 1] == 1;
11672 if ac_fn_c_try_run
"$LINENO"; then :
11673 ac_cv_c_bigendian
=no
11675 ac_cv_c_bigendian
=yes
11677 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11678 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11684 case $ac_cv_c_bigendian in #(
11686 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
11688 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
11691 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11695 gl_cv_cc_double_expbit0
="unknown" ;;
11704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11705 /* end confdefs.h. */
11708 #include <stddef.h>
11710 #include <string.h>
11712 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11713 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
11714 static unsigned int ored_words[NWORDS];
11715 static unsigned int anded_words[NWORDS];
11716 static void add_to_ored_words (double x)
11720 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
11721 memset (&m, 0, sizeof (memory_double));
11723 for (i = 0; i < NWORDS; i++)
11725 ored_words[i] |= m.word[i];
11726 anded_words[i] &= m.word[i];
11732 FILE *fp = fopen ("conftest.out", "w");
11735 for (j = 0; j < NWORDS; j++)
11736 anded_words[j] = ~ (unsigned int) 0;
11737 add_to_ored_words (0.25);
11738 add_to_ored_words (0.5);
11739 add_to_ored_words (1.0);
11740 add_to_ored_words (2.0);
11741 add_to_ored_words (4.0);
11742 /* Remove bits that are common (e.g. if representation of the first mantissa
11743 bit is explicit). */
11744 for (j = 0; j < NWORDS; j++)
11745 ored_words[j] &= ~anded_words[j];
11746 /* Now find the nonzero word. */
11747 for (j = 0; j < NWORDS; j++)
11748 if (ored_words[j] != 0)
11753 for (i = j + 1; i < NWORDS; i++)
11754 if (ored_words[i] != 0)
11756 fprintf (fp, "unknown");
11757 return (fclose (fp) != 0);
11760 if ((ored_words[j] >> i) & 1)
11762 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11763 return (fclose (fp) != 0);
11766 fprintf (fp, "unknown");
11767 return (fclose (fp) != 0);
11771 if ac_fn_c_try_run
"$LINENO"; then :
11772 gl_cv_cc_double_expbit0
=`cat conftest.out`
11774 gl_cv_cc_double_expbit0
="unknown"
11776 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11777 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
11784 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
11785 case "$gl_cv_cc_double_expbit0" in
11787 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11788 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
11790 cat >>confdefs.h
<<_ACEOF
11791 #define DBL_EXPBIT0_WORD $word
11795 cat >>confdefs.h
<<_ACEOF
11796 #define DBL_EXPBIT0_BIT $bit
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11804 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11805 if ${ac_cv_c_bigendian+:} false
; then :
11806 $as_echo_n "(cached) " >&6
11808 ac_cv_c_bigendian
=unknown
11809 # See if we're dealing with a universal compiler.
11810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812 #ifndef __APPLE_CC__
11813 not a universal capable compiler
11818 if ac_fn_c_try_compile
"$LINENO"; then :
11820 # Check for potential -arch flags. It is not universal unless
11821 # there are at least two -arch flags with different values.
11824 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11825 if test -n "$ac_prev"; then
11827 i?
86 | x86_64 | ppc | ppc64
)
11828 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11831 ac_cv_c_bigendian
=universal
11837 elif test "x$ac_word" = "x-arch"; then
11842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11843 if test $ac_cv_c_bigendian = unknown
; then
11844 # See if sys/param.h defines the BYTE_ORDER macro.
11845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847 #include <sys/types.h>
11848 #include <sys/param.h>
11853 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11854 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11856 bogus endian macros
11863 if ac_fn_c_try_compile
"$LINENO"; then :
11864 # It does; now see whether it defined to BIG_ENDIAN or not.
11865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867 #include <sys/types.h>
11868 #include <sys/param.h>
11873 #if BYTE_ORDER != BIG_ENDIAN
11881 if ac_fn_c_try_compile
"$LINENO"; then :
11882 ac_cv_c_bigendian
=yes
11884 ac_cv_c_bigendian
=no
11886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11890 if test $ac_cv_c_bigendian = unknown
; then
11891 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11894 #include <limits.h>
11899 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11900 bogus endian macros
11907 if ac_fn_c_try_compile
"$LINENO"; then :
11908 # It does; now see whether it defined to _BIG_ENDIAN or not.
11909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911 #include <limits.h>
11916 #ifndef _BIG_ENDIAN
11924 if ac_fn_c_try_compile
"$LINENO"; then :
11925 ac_cv_c_bigendian
=yes
11927 ac_cv_c_bigendian
=no
11929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11933 if test $ac_cv_c_bigendian = unknown
; then
11934 # Compile a test program.
11935 if test "$cross_compiling" = yes; then :
11936 # Try to guess by grepping values from an object file.
11937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939 short int ascii_mm[] =
11940 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11941 short int ascii_ii[] =
11942 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11943 int use_ascii (int i) {
11944 return ascii_mm[i] + ascii_ii[i];
11946 short int ebcdic_ii[] =
11947 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11948 short int ebcdic_mm[] =
11949 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11950 int use_ebcdic (int i) {
11951 return ebcdic_mm[i] + ebcdic_ii[i];
11958 return use_ascii (foo) == use_ebcdic (foo);
11963 if ac_fn_c_try_compile
"$LINENO"; then :
11964 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11965 ac_cv_c_bigendian
=yes
11967 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11968 if test "$ac_cv_c_bigendian" = unknown
; then
11969 ac_cv_c_bigendian
=no
11971 # finding both strings is unlikely to happen, but who knows?
11972 ac_cv_c_bigendian
=unknown
11976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980 $ac_includes_default
11985 /* Are we little or big endian? From Harbison&Steele. */
11989 char c[sizeof (long int)];
11992 return u.c[sizeof (long int) - 1] == 1;
11998 if ac_fn_c_try_run
"$LINENO"; then :
11999 ac_cv_c_bigendian
=no
12001 ac_cv_c_bigendian
=yes
12003 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12004 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12010 $as_echo "$ac_cv_c_bigendian" >&6; }
12011 case $ac_cv_c_bigendian in #(
12013 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12019 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12023 as_fn_error $?
"unknown endianness
12024 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12030 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12031 if ${am_cv_langinfo_codeset+:} false
; then :
12032 $as_echo_n "(cached) " >&6
12034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036 #include <langinfo.h>
12040 char* cs = nl_langinfo(CODESET); return !cs;
12045 if ac_fn_c_try_link
"$LINENO"; then :
12046 am_cv_langinfo_codeset
=yes
12048 am_cv_langinfo_codeset
=no
12050 rm -f core conftest.err conftest.
$ac_objext \
12051 conftest
$ac_exeext conftest.
$ac_ext
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12055 $as_echo "$am_cv_langinfo_codeset" >&6; }
12056 if test $am_cv_langinfo_codeset = yes; then
12058 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
12069 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
12070 if ${gl_cv_func_malloc_posix+:} false
; then :
12071 $as_echo_n "(cached) " >&6
12074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12080 #if defined _WIN32 && ! defined __CYGWIN__
12088 if ac_fn_c_try_compile
"$LINENO"; then :
12089 gl_cv_func_malloc_posix
=yes
12091 gl_cv_func_malloc_posix
=no
12093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12097 $as_echo "$gl_cv_func_malloc_posix" >&6; }
12101 for ac_header
in stdlib.h
12103 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12104 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
12105 cat >>confdefs.h
<<_ACEOF
12106 #define HAVE_STDLIB_H 1
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12114 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12115 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
12116 $as_echo_n "(cached) " >&6
12118 if test "$cross_compiling" = yes; then :
12120 # Guess yes on platforms where we know the result.
12121 *-gnu* | gnu
* | freebsd
* | netbsd
* | openbsd
* \
12122 | hpux
* | solaris
* | cygwin
* | mingw
*)
12123 ac_cv_func_malloc_0_nonnull
=yes ;;
12124 # If we don't know, assume the worst.
12125 *) ac_cv_func_malloc_0_nonnull
=no
;;
12129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12131 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12132 # include <stdlib.h>
12140 char *p = malloc (0);
12149 if ac_fn_c_try_run
"$LINENO"; then :
12150 ac_cv_func_malloc_0_nonnull
=yes
12152 ac_cv_func_malloc_0_nonnull
=no
12154 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12155 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12161 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12162 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12163 gl_cv_func_malloc_0_nonnull
=1
12165 gl_cv_func_malloc_0_nonnull
=0
12169 cat >>confdefs.h
<<_ACEOF
12170 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
12185 GNULIB_MBSRTOWCS
=0;
12186 GNULIB_MBSNRTOWCS
=0;
12188 GNULIB_WCSRTOMBS
=0;
12189 GNULIB_WCSNRTOMBS
=0;
12206 GNULIB_WCSCASECMP
=0;
12207 GNULIB_WCSNCASECMP
=0;
12245 HAVE_WCSNCASECMP
=1;
12259 HAVE_DECL_WCWIDTH
=1;
12260 REPLACE_MBSTATE_T
=0;
12266 REPLACE_MBSRTOWCS
=0;
12267 REPLACE_MBSNRTOWCS
=0;
12269 REPLACE_WCSRTOMBS
=0;
12270 REPLACE_WCSNRTOMBS
=0;
12272 REPLACE_WCSWIDTH
=0;
12273 REPLACE_WCSFTIME
=0;
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
12289 $as_echo_n "checking for a traditional japanese locale... " >&6; }
12290 if ${gt_cv_locale_ja+:} false
; then :
12291 $as_echo_n "(cached) " >&6
12294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12297 #include <locale.h>
12299 #if HAVE_LANGINFO_CODESET
12300 # include <langinfo.h>
12302 #include <stdlib.h>
12303 #include <string.h>
12308 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12309 imitates locale dependent behaviour by looking at the environment
12310 variables, and all locales use the UTF-8 encoding. */
12311 #if defined __BEOS__ || defined __HAIKU__
12314 /* Check whether the given locale name is recognized by the system. */
12315 # if defined _WIN32 && !defined __CYGWIN__
12316 /* On native Windows, setlocale(category, "") looks at the system settings,
12317 not at the environment variables. Also, when an encoding suffix such
12318 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12319 category of the locale to "C". */
12320 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12321 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12324 if (setlocale (LC_ALL, "") == NULL) return 1;
12326 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12327 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12328 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12329 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12330 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12331 some unit tests fail.
12332 On MirBSD 10, when an unsupported locale is specified, setlocale()
12333 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12334 # if HAVE_LANGINFO_CODESET
12336 const char *cs = nl_langinfo (CODESET);
12337 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12338 || strcmp (cs, "UTF-8") == 0)
12343 /* On Cygwin, avoid locale names without encoding suffix, because the
12344 locale_charset() function relies on the encoding suffix. Note that
12345 LC_ALL is set on the command line. */
12346 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12348 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
12349 on Cygwin 1.5.x. */
12350 if (MB_CUR_MAX == 1)
12352 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12353 This excludes the UTF-8 encoding (except on MirBSD). */
12356 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12357 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12358 for (p = buf; *p != '\0'; p++)
12359 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12368 (eval $ac_link) 2>&5
12370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12371 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12373 # Handle native Windows specially, because there setlocale() interprets
12374 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12375 # "fr" or "fra" as "French" or "French_France.1252",
12376 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12377 # "ja" as "Japanese" or "Japanese_Japan.932",
12380 # Note that on native Windows, the Japanese locale is
12381 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
12382 # cannot use it here.
12383 gt_cv_locale_ja
=none
12386 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12387 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12388 # configure script would override the LC_ALL setting. Likewise for
12389 # LC_CTYPE, which is also set at the beginning of the configure script.
12390 # Test for the AIX locale name.
12391 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12392 gt_cv_locale_ja
=ja_JP
12394 # Test for the locale name with explicit encoding suffix.
12395 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12396 gt_cv_locale_ja
=ja_JP.EUC-JP
12398 # Test for the HP-UX, OSF/1, NetBSD locale name.
12399 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12400 gt_cv_locale_ja
=ja_JP.eucJP
12402 # Test for the IRIX, FreeBSD locale name.
12403 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12404 gt_cv_locale_ja
=ja_JP.EUC
12406 # Test for the Solaris 7 locale name.
12407 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12410 # Special test for NetBSD 1.6.
12411 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
12412 gt_cv_locale_ja
=ja_JP.eucJP
12415 gt_cv_locale_ja
=none
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
12429 $as_echo "$gt_cv_locale_ja" >&6; }
12430 LOCALE_JA
=$gt_cv_locale_ja
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12437 $as_echo_n "checking for a transitional chinese locale... " >&6; }
12438 if ${gt_cv_locale_zh_CN+:} false
; then :
12439 $as_echo_n "(cached) " >&6
12442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12445 #include <locale.h>
12446 #include <stdlib.h>
12448 #if HAVE_LANGINFO_CODESET
12449 # include <langinfo.h>
12451 #include <stdlib.h>
12452 #include <string.h>
12457 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12458 imitates locale dependent behaviour by looking at the environment
12459 variables, and all locales use the UTF-8 encoding. */
12460 #if defined __BEOS__ || defined __HAIKU__
12463 /* Check whether the given locale name is recognized by the system. */
12464 # if defined _WIN32 && !defined __CYGWIN__
12465 /* On native Windows, setlocale(category, "") looks at the system settings,
12466 not at the environment variables. Also, when an encoding suffix such
12467 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12468 category of the locale to "C". */
12469 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12470 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12473 if (setlocale (LC_ALL, "") == NULL) return 1;
12475 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12476 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12477 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12478 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12479 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12480 some unit tests fail.
12481 On MirBSD 10, when an unsupported locale is specified, setlocale()
12482 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12483 # if HAVE_LANGINFO_CODESET
12485 const char *cs = nl_langinfo (CODESET);
12486 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12487 || strcmp (cs, "UTF-8") == 0)
12492 /* On Cygwin, avoid locale names without encoding suffix, because the
12493 locale_charset() function relies on the encoding suffix. Note that
12494 LC_ALL is set on the command line. */
12495 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12497 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12498 This excludes the UTF-8 encoding (except on MirBSD). */
12501 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12502 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12503 for (p = buf; *p != '\0'; p++)
12504 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12507 /* Check whether a typical GB18030 multibyte sequence is recognized as a
12508 single wide character. This excludes the GB2312 and GBK encodings. */
12509 if (mblen ("\203\062\332\066", 5) != 4)
12516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12517 (eval $ac_link) 2>&5
12519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12520 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12522 # Handle native Windows specially, because there setlocale() interprets
12523 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12524 # "fr" or "fra" as "French" or "French_France.1252",
12525 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12526 # "ja" as "Japanese" or "Japanese_Japan.932",
12529 # Test for the hypothetical native Windows locale name.
12530 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12531 gt_cv_locale_zh_CN
=Chinese_China
.54936
12534 gt_cv_locale_zh_CN
=none
12538 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
12539 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
12540 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
12541 gt_cv_locale_zh_CN
=none
12544 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12545 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12546 # configure script would override the LC_ALL setting. Likewise for
12547 # LC_CTYPE, which is also set at the beginning of the configure script.
12548 # Test for the locale name without encoding suffix.
12549 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12550 gt_cv_locale_zh_CN
=zh_CN
12552 # Test for the locale name with explicit encoding suffix.
12553 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12554 gt_cv_locale_zh_CN
=zh_CN.GB18030
12557 gt_cv_locale_zh_CN
=none
12563 # If there was a link error, due to mblen(), the system is so old that
12564 # it certainly doesn't have a chinese locale.
12565 gt_cv_locale_zh_CN
=none
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
12571 $as_echo "$gt_cv_locale_zh_CN" >&6; }
12572 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
12578 $as_echo_n "checking for a french Unicode locale... " >&6; }
12579 if ${gt_cv_locale_fr_utf8+:} false
; then :
12580 $as_echo_n "(cached) " >&6
12583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12586 #include <locale.h>
12588 #if HAVE_LANGINFO_CODESET
12589 # include <langinfo.h>
12591 #include <stdlib.h>
12592 #include <string.h>
12596 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12597 imitates locale dependent behaviour by looking at the environment
12598 variables, and all locales use the UTF-8 encoding. */
12599 #if !(defined __BEOS__ || defined __HAIKU__)
12600 /* Check whether the given locale name is recognized by the system. */
12601 # if defined _WIN32 && !defined __CYGWIN__
12602 /* On native Windows, setlocale(category, "") looks at the system settings,
12603 not at the environment variables. Also, when an encoding suffix such
12604 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12605 category of the locale to "C". */
12606 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12607 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12610 if (setlocale (LC_ALL, "") == NULL) return 1;
12612 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12613 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12614 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12615 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12616 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12617 some unit tests fail. */
12618 # if HAVE_LANGINFO_CODESET
12620 const char *cs = nl_langinfo (CODESET);
12621 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
12626 /* On Cygwin, avoid locale names without encoding suffix, because the
12627 locale_charset() function relies on the encoding suffix. Note that
12628 LC_ALL is set on the command line. */
12629 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12631 /* Check whether in the abbreviation of the second month, the second
12632 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
12633 two bytes long, with UTF-8 encoding. */
12634 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12635 if (strftime (buf, sizeof (buf), "%b", &t) < 4
12636 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
12639 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12640 /* Check whether the decimal separator is a comma.
12641 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12642 are nl_langinfo(RADIXCHAR) are both ".". */
12643 if (localeconv () ->decimal_point[0] != ',') return 1;
12649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12650 (eval $ac_link) 2>&5
12652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12653 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12655 # Handle native Windows specially, because there setlocale() interprets
12656 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12657 # "fr" or "fra" as "French" or "French_France.1252",
12658 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12659 # "ja" as "Japanese" or "Japanese_Japan.932",
12662 # Test for the hypothetical native Windows locale name.
12663 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12664 gt_cv_locale_fr_utf8
=French_France
.65001
12667 gt_cv_locale_fr_utf8
=none
12671 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12672 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12673 # configure script would override the LC_ALL setting. Likewise for
12674 # LC_CTYPE, which is also set at the beginning of the configure script.
12675 # Test for the usual locale name.
12676 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12677 gt_cv_locale_fr_utf8
=fr_FR
12679 # Test for the locale name with explicit encoding suffix.
12680 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12681 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
12683 # Test for the Solaris 7 locale name.
12684 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12685 gt_cv_locale_fr_utf8
=fr.UTF-8
12688 gt_cv_locale_fr_utf8
=none
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12699 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
12700 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12704 $as_echo_n "checking for inline... " >&6; }
12705 if ${ac_cv_c_inline+:} false
; then :
12706 $as_echo_n "(cached) " >&6
12709 for ac_kw
in inline __inline__ __inline
; do
12710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12712 #ifndef __cplusplus
12714 static $ac_kw foo_t static_foo () {return 0; }
12715 $ac_kw foo_t foo () {return 0; }
12719 if ac_fn_c_try_compile
"$LINENO"; then :
12720 ac_cv_c_inline
=$ac_kw
12722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12723 test "$ac_cv_c_inline" != no
&& break
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12728 $as_echo "$ac_cv_c_inline" >&6; }
12730 case $ac_cv_c_inline in
12733 case $ac_cv_c_inline in
12735 *) ac_val
=$ac_cv_c_inline;;
12737 cat >>confdefs.h
<<_ACEOF
12738 #ifndef __cplusplus
12739 #define inline $ac_val
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
12749 $as_echo_n "checking for a traditional french locale... " >&6; }
12750 if ${gt_cv_locale_fr+:} false
; then :
12751 $as_echo_n "(cached) " >&6
12754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12757 #include <locale.h>
12759 #if HAVE_LANGINFO_CODESET
12760 # include <langinfo.h>
12762 #include <stdlib.h>
12763 #include <string.h>
12767 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12768 imitates locale dependent behaviour by looking at the environment
12769 variables, and all locales use the UTF-8 encoding. */
12770 #if defined __BEOS__ || defined __HAIKU__
12773 /* Check whether the given locale name is recognized by the system. */
12774 # if defined _WIN32 && !defined __CYGWIN__
12775 /* On native Windows, setlocale(category, "") looks at the system settings,
12776 not at the environment variables. Also, when an encoding suffix such
12777 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12778 category of the locale to "C". */
12779 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12780 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12783 if (setlocale (LC_ALL, "") == NULL) return 1;
12785 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12786 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12787 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12788 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12789 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12790 some unit tests fail.
12791 On MirBSD 10, when an unsupported locale is specified, setlocale()
12792 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12793 # if HAVE_LANGINFO_CODESET
12795 const char *cs = nl_langinfo (CODESET);
12796 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12797 || strcmp (cs, "UTF-8") == 0)
12802 /* On Cygwin, avoid locale names without encoding suffix, because the
12803 locale_charset() function relies on the encoding suffix. Note that
12804 LC_ALL is set on the command line. */
12805 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12807 /* Check whether in the abbreviation of the second month, the second
12808 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
12809 one byte long. This excludes the UTF-8 encoding. */
12810 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12811 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
12812 # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
12813 /* Check whether the decimal separator is a comma.
12814 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
12815 are nl_langinfo(RADIXCHAR) are both ".". */
12816 if (localeconv () ->decimal_point[0] != ',') return 1;
12823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12824 (eval $ac_link) 2>&5
12826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12827 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
12829 # Handle native Windows specially, because there setlocale() interprets
12830 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12831 # "fr" or "fra" as "French" or "French_France.1252",
12832 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12833 # "ja" as "Japanese" or "Japanese_Japan.932",
12836 # Test for the native Windows locale name.
12837 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12838 gt_cv_locale_fr
=French_France
.1252
12841 gt_cv_locale_fr
=none
12845 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12846 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12847 # configure script would override the LC_ALL setting. Likewise for
12848 # LC_CTYPE, which is also set at the beginning of the configure script.
12849 # Test for the usual locale name.
12850 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12851 gt_cv_locale_fr
=fr_FR
12853 # Test for the locale name with explicit encoding suffix.
12854 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12855 gt_cv_locale_fr
=fr_FR.ISO-8859-1
12857 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
12858 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12859 gt_cv_locale_fr
=fr_FR.ISO8859-1
12861 # Test for the HP-UX locale name.
12862 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12863 gt_cv_locale_fr
=fr_FR.iso88591
12865 # Test for the Solaris 7 locale name.
12866 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
12870 gt_cv_locale_fr
=none
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
12883 $as_echo "$gt_cv_locale_fr" >&6; }
12884 LOCALE_FR
=$gt_cv_locale_fr
12898 GNULIB_EXPLICIT_BZERO
=0;
12905 GNULIB_RAWMEMCHR
=0;
12908 GNULIB_STRCHRNUL
=0;
12916 GNULIB_STRCASESTR
=0;
12923 GNULIB_MBSCASECMP
=0;
12924 GNULIB_MBSNCASECMP
=0;
12925 GNULIB_MBSPCASECMP
=0;
12926 GNULIB_MBSCASESTR
=0;
12933 GNULIB_STRERROR_R
=0;
12934 GNULIB_STRSIGNAL
=0;
12935 GNULIB_STRVERSCMP
=0;
12937 HAVE_EXPLICIT_BZERO
=1;
12941 HAVE_DECL_MEMMEM
=1;
12943 HAVE_DECL_MEMRCHR
=1;
12948 HAVE_DECL_STRDUP
=1;
12949 HAVE_DECL_STRNDUP
=1;
12950 HAVE_DECL_STRNLEN
=1;
12954 HAVE_DECL_STRTOK_R
=1;
12955 HAVE_DECL_STRERROR_R
=1;
12956 HAVE_DECL_STRSIGNAL
=1;
12961 REPLACE_STRCHRNUL
=0;
12967 REPLACE_STRCASESTR
=0;
12968 REPLACE_STRTOK_R
=0;
12969 REPLACE_STRERROR
=0;
12970 REPLACE_STRERROR_R
=0;
12971 REPLACE_STRSIGNAL
=0;
12972 UNDEFINE_STRTOK_R
=0;
12979 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
12980 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
12981 # irrelevant for anonymous mappings.
12982 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
12983 if test "x$ac_cv_func_mmap" = xyes
; then :
12990 # Try to allow MAP_ANONYMOUS.
12991 gl_have_mmap_anonymous
=no
12992 if test $gl_have_mmap = yes; then
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
12994 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
12995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12998 #include <sys/mman.h>
12999 #ifdef MAP_ANONYMOUS
13000 I cannot identify this map
13004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13005 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
13006 gl_have_mmap_anonymous
=yes
13010 if test $gl_have_mmap_anonymous != yes; then
13011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13014 #include <sys/mman.h>
13016 I cannot identify this map
13020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13021 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
13023 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
13025 gl_have_mmap_anonymous
=yes
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
13031 $as_echo "$gl_have_mmap_anonymous" >&6; }
13032 if test $gl_have_mmap_anonymous = yes; then
13034 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
13056 if test $HAVE_MEMCHR = 1; then
13057 # Detect platform-specific bugs in some versions of glibc:
13058 # memchr should not dereference anything with length 0
13059 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
13060 # memchr should not dereference overestimated length after a match
13061 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
13062 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
13063 # Assume that memchr works on platforms that lack mprotect.
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
13065 $as_echo_n "checking whether memchr works... " >&6; }
13066 if ${gl_cv_func_memchr_works+:} false
; then :
13067 $as_echo_n "(cached) " >&6
13069 if test "$cross_compiling" = yes; then :
13071 # Guess yes on native Windows.
13072 mingw
*) gl_cv_func_memchr_works
="guessing yes" ;;
13073 # Be pessimistic for now.
13074 *) gl_cv_func_memchr_works
="guessing no" ;;
13078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13081 #include <string.h>
13082 #if HAVE_SYS_MMAN_H
13083 # include <fcntl.h>
13084 # include <unistd.h>
13085 # include <sys/types.h>
13086 # include <sys/mman.h>
13088 # define MAP_FILE 0
13097 char *fence = NULL;
13098 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
13099 # if HAVE_MAP_ANONYMOUS
13100 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
13102 # else /* !HAVE_MAP_ANONYMOUS */
13103 const int flags = MAP_FILE | MAP_PRIVATE;
13104 int fd = open ("/dev/zero", O_RDONLY, 0666);
13108 int pagesize = getpagesize ();
13110 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
13112 if (two_pages != (char *)(-1)
13113 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
13114 fence = two_pages + pagesize;
13119 if (memchr (fence, 0, 0))
13121 strcpy (fence - 9, "12345678");
13122 if (memchr (fence - 9, 0, 79) != fence - 1)
13124 if (memchr (fence - 1, 0, 3) != fence - 1)
13133 if ac_fn_c_try_run
"$LINENO"; then :
13134 gl_cv_func_memchr_works
=yes
13136 gl_cv_func_memchr_works
=no
13138 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13139 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
13145 $as_echo "$gl_cv_func_memchr_works" >&6; }
13146 case "$gl_cv_func_memchr_works" in
13148 *) REPLACE_MEMCHR
=1 ;;
13153 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
13154 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
13160 cat >>confdefs.h
<<_ACEOF
13161 #define HAVE_DECL_MEMMEM $ac_have_decl
13169 for ac_func
in memmem
13171 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
13172 if test "x$ac_cv_func_memmem" = xyes
; then :
13173 cat >>confdefs.h
<<_ACEOF
13174 #define HAVE_MEMMEM 1
13180 if test $ac_cv_func_memmem = yes; then
13192 if test $ac_cv_have_decl_memmem = no
; then
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13196 $as_echo_n "checking whether memmem works... " >&6; }
13197 if ${gl_cv_func_memmem_works_always+:} false
; then :
13198 $as_echo_n "(cached) " >&6
13200 if test "$cross_compiling" = yes; then :
13201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13204 #ifdef __GNU_LIBRARY__
13205 #include <features.h>
13206 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13207 || __GLIBC_MINOR__ > 12)) \
13208 || (__GLIBC__ > 2)) \
13209 || defined __UCLIBC__
13212 #elif defined __CYGWIN__
13213 #include <cygwin/version.h>
13214 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13223 $EGREP "Lucky user" >/dev
/null
2>&1; then :
13224 gl_cv_func_memmem_works_always
="guessing yes"
13226 gl_cv_func_memmem_works_always
="guessing no"
13232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13235 #include <string.h> /* for memmem */
13236 #define P "_EF_BF_BD"
13237 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13238 #define NEEDLE P P P P P
13245 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13247 /* Check for empty needle behavior. */
13249 const char *haystack = "AAA";
13250 if (memmem (haystack, 3, NULL, 0) != haystack)
13259 if ac_fn_c_try_run
"$LINENO"; then :
13260 gl_cv_func_memmem_works_always
=yes
13262 gl_cv_func_memmem_works_always
=no
13264 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13265 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13271 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13272 case "$gl_cv_func_memmem_works_always" in
13282 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
13283 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
13289 cat >>confdefs.h
<<_ACEOF
13290 #define HAVE_DECL_MEMRCHR $ac_have_decl
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
13304 $as_echo_n "checking for O_CLOEXEC... " >&6; }
13305 if ${gl_cv_macro_O_CLOEXEC+:} false
; then :
13306 $as_echo_n "(cached) " >&6
13308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13323 if ac_fn_c_try_compile
"$LINENO"; then :
13324 gl_cv_macro_O_CLOEXEC
=yes
13326 gl_cv_macro_O_CLOEXEC
=no
13328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
13331 $as_echo "$gl_cv_macro_O_CLOEXEC" >&6; }
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
13336 $as_echo_n "checking for promoted mode_t type... " >&6; }
13337 if ${gl_cv_promoted_mode_t+:} false
; then :
13338 $as_echo_n "(cached) " >&6
13341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13343 #include <sys/types.h>
13347 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
13352 if ac_fn_c_try_compile
"$LINENO"; then :
13353 gl_cv_promoted_mode_t
='int'
13355 gl_cv_promoted_mode_t
='mode_t'
13357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
13361 $as_echo "$gl_cv_promoted_mode_t" >&6; }
13363 cat >>confdefs.h
<<_ACEOF
13364 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
13382 GNULIB_FPRINTF_POSIX
=0;
13398 GNULIB_OBSTACK_PRINTF
=0;
13399 GNULIB_OBSTACK_PRINTF_POSIX
=0;
13404 GNULIB_PRINTF_POSIX
=0;
13413 GNULIB_SPRINTF_POSIX
=0;
13414 GNULIB_STDIO_H_NONBLOCKING
=0;
13415 GNULIB_STDIO_H_SIGPIPE
=0;
13417 GNULIB_VASPRINTF
=0;
13422 GNULIB_VFPRINTF_POSIX
=0;
13424 GNULIB_VPRINTF_POSIX
=0;
13425 GNULIB_VSNPRINTF
=0;
13426 GNULIB_VSPRINTF_POSIX
=0;
13427 HAVE_DECL_FPURGE
=1;
13428 HAVE_DECL_FSEEKO
=1;
13429 HAVE_DECL_FTELLO
=1;
13430 HAVE_DECL_GETDELIM
=1;
13431 HAVE_DECL_GETLINE
=1;
13432 HAVE_DECL_OBSTACK_PRINTF
=1;
13433 HAVE_DECL_SNPRINTF
=1;
13434 HAVE_DECL_VSNPRINTF
=1;
13455 REPLACE_GETDELIM
=0;
13457 REPLACE_OBSTACK_PRINTF
=0;
13463 REPLACE_RENAMEAT
=0;
13464 REPLACE_SNPRINTF
=0;
13466 REPLACE_STDIO_READ_FUNCS
=0;
13467 REPLACE_STDIO_WRITE_FUNCS
=0;
13469 REPLACE_VASPRINTF
=0;
13470 REPLACE_VDPRINTF
=0;
13471 REPLACE_VFPRINTF
=0;
13473 REPLACE_VSNPRINTF
=0;
13474 REPLACE_VSPRINTF
=0;
13482 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
13483 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
13489 cat >>confdefs.h
<<_ACEOF
13490 #define HAVE_DECL_SETENV $ac_have_decl
13508 if test $ac_cv_have_decl_setenv = no
; then
13528 for ac_header
in search.h
13530 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
13531 if test "x$ac_cv_header_search_h" = xyes
; then :
13532 cat >>confdefs.h
<<_ACEOF
13533 #define HAVE_SEARCH_H 1
13540 for ac_func
in tsearch
13542 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
13543 if test "x$ac_cv_func_tsearch" = xyes
; then :
13544 cat >>confdefs.h
<<_ACEOF
13545 #define HAVE_TSEARCH 1
13554 GNULIB_PTHREAD_SIGMASK
=0;
13556 GNULIB_SIGNAL_H_SIGPIPE
=0;
13557 GNULIB_SIGPROCMASK
=0;
13558 GNULIB_SIGACTION
=0;
13559 HAVE_POSIX_SIGNALBLOCKING
=1;
13560 HAVE_PTHREAD_SIGMASK
=1;
13565 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
13567 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
13569 HAVE_SIGHANDLER_T
=1;
13570 REPLACE_PTHREAD_SIGMASK
=0;
13574 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
13575 #include <signal.h>
13576 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
13577 #include <sys/types.h>
13580 if test "x$ac_cv_type_sigset_t" = xyes
; then :
13582 cat >>confdefs.h
<<_ACEOF
13583 #define HAVE_SIGSET_T 1
13586 gl_cv_type_sigset_t
=yes
13588 gl_cv_type_sigset_t
=no
13591 if test $gl_cv_type_sigset_t != yes; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13596 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13597 if ${ac_cv_type_uid_t+:} false
; then :
13598 $as_echo_n "(cached) " >&6
13600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602 #include <sys/types.h>
13605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13606 $EGREP "uid_t" >/dev
/null
2>&1; then :
13607 ac_cv_type_uid_t
=yes
13609 ac_cv_type_uid_t
=no
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13615 $as_echo "$ac_cv_type_uid_t" >&6; }
13616 if test $ac_cv_type_uid_t = no
; then
13618 $as_echo "#define uid_t int" >>confdefs.h
13621 $as_echo "#define gid_t int" >>confdefs.h
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13626 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13627 if ${ac_cv_header_stdbool_h+:} false
; then :
13628 $as_echo_n "(cached) " >&6
13630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13633 #include <stdbool.h>
13638 typedef _Bool Bool;
13640 "error: bool is not defined"
13643 "error: false is not defined"
13646 "error: false is not 0"
13649 "error: true is not defined"
13652 "error: true is not 1"
13656 #ifndef __bool_true_false_are_defined
13657 "error: __bool_true_false_are_defined is not defined"
13660 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
13662 char a[true == 1 ? 1 : -1];
13663 char b[false == 0 ? 1 : -1];
13664 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13665 char d[(bool) 0.5 == true ? 1 : -1];
13666 /* See body of main program for 'e'. */
13667 char f[(Bool) 0.0 == false ? 1 : -1];
13669 char h[sizeof (Bool)];
13670 char i[sizeof s.t];
13671 enum { j = false, k = true, l = false * true, m = true * 256 };
13672 /* The following fails for
13673 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13675 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13676 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13677 /* Catch a bug in an HP-UX C compiler. See
13678 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13679 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
13690 *pq |= q; *pq |= ! q;
13691 *qq |= q; *qq |= ! q;
13692 /* Refer to every declared value, to avoid compiler optimizations. */
13693 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13694 + !m + !n + !o + !p + !q + !pq + !qq);
13700 if ac_fn_c_try_compile
"$LINENO"; then :
13701 ac_cv_header_stdbool_h
=yes
13703 ac_cv_header_stdbool_h
=no
13705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13708 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13709 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13710 if test "x$ac_cv_type__Bool" = xyes
; then :
13712 cat >>confdefs.h
<<_ACEOF
13713 #define HAVE__BOOL 1
13722 HAVE_MAX_ALIGN_T
=1;
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13727 $as_echo_n "checking for wchar_t... " >&6; }
13728 if ${gt_cv_c_wchar_t+:} false
; then :
13729 $as_echo_n "(cached) " >&6
13731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 #include <stddef.h>
13734 wchar_t foo = (wchar_t)'\0';
13743 if ac_fn_c_try_compile
"$LINENO"; then :
13744 gt_cv_c_wchar_t
=yes
13748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13751 $as_echo "$gt_cv_c_wchar_t" >&6; }
13752 if test $gt_cv_c_wchar_t = yes; then
13754 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
13764 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
13765 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
13771 cat >>confdefs.h
<<_ACEOF
13772 #define HAVE_DECL_STRDUP $ac_have_decl
13777 REPLACE_STRERROR_0
=0
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
13779 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
13780 if ${gl_cv_func_strerror_0_works+:} false
; then :
13781 $as_echo_n "(cached) " >&6
13783 if test "$cross_compiling" = yes; then :
13785 # Guess yes on glibc systems.
13786 *-gnu* | gnu
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
13787 # Guess yes on native Windows.
13788 mingw
*) gl_cv_func_strerror_0_works
="guessing yes" ;;
13789 # If we don't know, assume the worst.
13790 *) gl_cv_func_strerror_0_works
="guessing no" ;;
13794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796 #include <string.h>
13805 str = strerror (0);
13806 if (!*str) result |= 1;
13807 if (errno) result |= 2;
13808 if (strstr (str, "nknown") || strstr (str, "ndefined"))
13815 if ac_fn_c_try_run
"$LINENO"; then :
13816 gl_cv_func_strerror_0_works
=yes
13818 gl_cv_func_strerror_0_works
=no
13820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
13827 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
13828 case "$gl_cv_func_strerror_0_works" in
13831 REPLACE_STRERROR_0
=1
13833 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
13849 if test $gl_cv_have_include_next = yes; then
13850 gl_cv_next_string_h
='<'string.h
'>'
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13853 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13854 if ${gl_cv_next_string_h+:} false
; then :
13855 $as_echo_n "(cached) " >&6
13860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13862 #include <string.h>
13865 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
13866 *) gl_absname_cpp
="$ac_cpp" ;;
13871 gl_dirsep_regex
='[/\\]'
13874 gl_dirsep_regex
='\/'
13877 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
13878 gl_header_literal_regex
=`echo 'string.h' \
13879 | sed -e "$gl_make_literal_regex_sed"`
13880 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13881 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13887 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13888 sed -n "$gl_absolute_header_sed"`
13890 gl_header
=$gl_cv_absolute_string_h
13891 gl_cv_next_string_h
='"'$gl_header'"'
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13896 $as_echo "$gl_cv_next_string_h" >&6; }
13898 NEXT_STRING_H
=$gl_cv_next_string_h
13900 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
13901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13902 gl_next_as_first_directive
='<'string.h
'>'
13904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13905 gl_next_as_first_directive
=$gl_cv_next_string_h
13907 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
13920 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13924 $as_echo_n "checking whether strstr works... " >&6; }
13925 if ${gl_cv_func_strstr_works_always+:} false
; then :
13926 $as_echo_n "(cached) " >&6
13928 if test "$cross_compiling" = yes; then :
13929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13932 #ifdef __GNU_LIBRARY__
13933 #include <features.h>
13934 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13935 || defined __UCLIBC__
13938 #elif defined __CYGWIN__
13939 #include <cygwin/version.h>
13940 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13949 $EGREP "Lucky user" >/dev
/null
2>&1; then :
13950 gl_cv_func_strstr_works_always
="guessing yes"
13952 gl_cv_func_strstr_works_always
="guessing no"
13958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13961 #include <string.h> /* for strstr */
13962 #define P "_EF_BF_BD"
13963 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13964 #define NEEDLE P P P P P
13969 return !!strstr (HAYSTACK, NEEDLE);
13975 if ac_fn_c_try_run
"$LINENO"; then :
13976 gl_cv_func_strstr_works_always
=yes
13978 gl_cv_func_strstr_works_always
=no
13980 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13981 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
13987 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
13988 case "$gl_cv_func_strstr_works_always" in
13997 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
13998 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
14004 cat >>confdefs.h
<<_ACEOF
14005 #define HAVE_DECL_STRTOK_R $ac_have_decl
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
14010 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14011 if test -z "$MKDIR_P"; then
14012 if ${ac_cv_path_mkdir+:} false
; then :
14013 $as_echo_n "(cached) " >&6
14015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14016 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
14019 test -z "$as_dir" && as_dir
=.
14020 for ac_prog
in mkdir gmkdir
; do
14021 for ac_exec_ext
in '' $ac_executable_extensions; do
14022 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
14023 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14024 'mkdir (GNU coreutils) '* | \
14025 'mkdir (coreutils) '* | \
14026 'mkdir (fileutils) '4.1*)
14027 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
14037 test -d .
/--version && rmdir .
/--version
14038 if test "${ac_cv_path_mkdir+set}" = set; then
14039 MKDIR_P
="$ac_cv_path_mkdir -p"
14041 # As a last resort, use the slow shell script. Don't cache a
14042 # value for MKDIR_P within a source directory, because that will
14043 # break other packages using the cache if that directory is
14044 # removed, or if the value is a relative name.
14045 MKDIR_P
="$ac_install_sh -d"
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
14049 $as_echo "$MKDIR_P" >&6; }
14061 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
14073 if test $gl_cv_have_include_next = yes; then
14074 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14077 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14078 if ${gl_cv_next_sys_types_h+:} false
; then :
14079 $as_echo_n "(cached) " >&6
14084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14085 /* end confdefs.h. */
14086 #include <sys/types.h>
14089 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14090 *) gl_absname_cpp
="$ac_cpp" ;;
14095 gl_dirsep_regex
='[/\\]'
14098 gl_dirsep_regex
='\/'
14101 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14102 gl_header_literal_regex
=`echo 'sys/types.h' \
14103 | sed -e "$gl_make_literal_regex_sed"`
14104 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14105 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14111 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14112 sed -n "$gl_absolute_header_sed"`
14114 gl_header
=$gl_cv_absolute_sys_types_h
14115 gl_cv_next_sys_types_h
='"'$gl_header'"'
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14120 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14122 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
14124 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14125 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14126 gl_next_as_first_directive
='<'sys
/types.h
'>'
14128 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14129 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
14131 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
14144 WINDOWS_STAT_INODES
=0
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14157 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14158 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
14159 $as_echo_n "(cached) " >&6
14161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14168 static struct timespec x; x.tv_sec = x.tv_nsec;
14173 if ac_fn_c_try_compile
"$LINENO"; then :
14174 gl_cv_sys_struct_timespec_in_time_h
=yes
14176 gl_cv_sys_struct_timespec_in_time_h
=no
14178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14181 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14183 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14184 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
14185 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
14186 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
14187 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14188 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14191 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14192 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
14193 $as_echo_n "(cached) " >&6
14195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14197 #include <sys/time.h>
14202 static struct timespec x; x.tv_sec = x.tv_nsec;
14207 if ac_fn_c_try_compile
"$LINENO"; then :
14208 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
14210 gl_cv_sys_struct_timespec_in_sys_time_h
=no
14212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14215 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14216 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14217 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14220 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14221 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
14222 $as_echo_n "(cached) " >&6
14224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 #include <pthread.h>
14231 static struct timespec x; x.tv_sec = x.tv_nsec;
14236 if ac_fn_c_try_compile
"$LINENO"; then :
14237 gl_cv_sys_struct_timespec_in_pthread_h
=yes
14239 gl_cv_sys_struct_timespec_in_pthread_h
=no
14241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14244 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14245 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14246 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
14249 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
14250 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
14251 $as_echo_n "(cached) " >&6
14253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14255 #include <unistd.h>
14260 static struct timespec x; x.tv_sec = x.tv_nsec;
14265 if ac_fn_c_try_compile
"$LINENO"; then :
14266 gl_cv_sys_struct_timespec_in_unistd_h
=yes
14268 gl_cv_sys_struct_timespec_in_unistd_h
=no
14270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
14273 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
14274 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
14275 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
14296 if test $gl_cv_have_include_next = yes; then
14297 gl_cv_next_time_h
='<'time.h
'>'
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14300 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14301 if ${gl_cv_next_time_h+:} false
; then :
14302 $as_echo_n "(cached) " >&6
14307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14312 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
14313 *) gl_absname_cpp
="$ac_cpp" ;;
14318 gl_dirsep_regex
='[/\\]'
14321 gl_dirsep_regex
='\/'
14324 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
14325 gl_header_literal_regex
=`echo 'time.h' \
14326 | sed -e "$gl_make_literal_regex_sed"`
14327 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14328 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14334 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14335 sed -n "$gl_absolute_header_sed"`
14337 gl_header
=$gl_cv_absolute_time_h
14338 gl_cv_next_time_h
='"'$gl_header'"'
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14343 $as_echo "$gl_cv_next_time_h" >&6; }
14345 NEXT_TIME_H
=$gl_cv_next_time_h
14347 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
14348 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14349 gl_next_as_first_directive
='<'time.h
'>'
14351 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14352 gl_next_as_first_directive
=$gl_cv_next_time_h
14354 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
14367 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
14368 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
14374 cat >>confdefs.h
<<_ACEOF
14375 #define HAVE_DECL_UNSETENV $ac_have_decl
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
14381 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
14382 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
14383 $as_echo_n "(cached) " >&6
14385 gl_cv_header_wchar_h_correct_inline
=yes
14386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14389 #define wcstod renamed_wcstod
14390 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14392 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14393 included before <wchar.h>. */
14394 #include <stddef.h>
14398 extern int zero (void);
14399 int main () { return zero(); }
14402 save_ac_compile
="$ac_compile"
14403 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
14404 if echo '#include "conftest.c"' >conftest1.c
&&
14405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14406 (eval $ac_compile) 2>&5
14408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14409 test $ac_status = 0; }; then
14410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14413 #define wcstod renamed_wcstod
14414 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14416 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14417 included before <wchar.h>. */
14418 #include <stddef.h>
14422 int zero (void) { return 0; }
14425 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
14426 if echo '#include "conftest.c"' >conftest2.c
&&
14427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14428 (eval $ac_compile) 2>&5
14430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14431 test $ac_status = 0; }; then
14432 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
14435 gl_cv_header_wchar_h_correct_inline
=no
14439 ac_compile
="$save_ac_compile"
14440 rm -f conftest12.c conftest12.
$ac_objext conftest
$ac_exeext
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
14444 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
14445 if test $gl_cv_header_wchar_h_correct_inline = no
; then
14446 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
14447 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
14448 C99 mode. You have four options:
14449 - Add the flag -fgnu89-inline to CC and reconfigure, or
14450 - Fix your include files, using parts of
14451 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
14452 - Use a gcc version older than 4.3, or
14453 - Don't use the flags -std=c99 or -std=gnu99.
14454 Configuration aborted." "$LINENO" 5
14470 if test $ac_cv_header_features_h = yes; then
14490 if test $ac_cv_header_crtdefs_h = yes; then
14502 GNULIB_TOWCTRANS
=0;
14506 REPLACE_ISWBLANK
=0;
14515 GL_COND_LIBTOOL_TRUE
=
14516 GL_COND_LIBTOOL_FALSE
='#'
14518 GL_COND_LIBTOOL_TRUE
='#'
14519 GL_COND_LIBTOOL_FALSE
=
14522 gl_cond_libtool
=false
14525 gl_m4_base
='import/m4'
14535 gl_source_base
='import'
14538 if test $ac_cv_func_alloca_works = no
; then
14542 # Define an additional variable used in the Makefile substitution.
14543 if test $ac_cv_working_alloca_h = yes; then
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
14545 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
14546 if ${gl_cv_rpl_alloca+:} false
; then :
14547 $as_echo_n "(cached) " >&6
14550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14553 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
14558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14559 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
14560 gl_cv_rpl_alloca
=yes
14562 gl_cv_rpl_alloca
=no
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
14569 $as_echo "$gl_cv_rpl_alloca" >&6; }
14570 if test $gl_cv_rpl_alloca = yes; then
14572 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14582 if test -n "$ALLOCA_H"; then
14583 GL_GENERATE_ALLOCA_H_TRUE
=
14584 GL_GENERATE_ALLOCA_H_FALSE
='#'
14586 GL_GENERATE_ALLOCA_H_TRUE
='#'
14587 GL_GENERATE_ALLOCA_H_FALSE
=
14599 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
14603 $as_echo_n "checking for __builtin_expect... " >&6; }
14604 if ${gl_cv___builtin_expect+:} false
; then :
14605 $as_echo_n "(cached) " >&6
14607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14611 main (int argc, char **argv)
14613 argc = __builtin_expect (argc, 100);
14614 return argv[argc != 100][0];
14617 if ac_fn_c_try_link
"$LINENO"; then :
14618 gl_cv___builtin_expect
=yes
14620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14623 #include <builtins.h>
14625 main (int argc, char **argv)
14627 argc = __builtin_expect (argc, 100);
14628 return argv[argc != 100][0];
14631 if ac_fn_c_try_link
"$LINENO"; then :
14632 gl_cv___builtin_expect
="in <builtins.h>"
14634 gl_cv___builtin_expect
=no
14636 rm -f core conftest.err conftest.
$ac_objext \
14637 conftest
$ac_exeext conftest.
$ac_ext
14639 rm -f core conftest.err conftest.
$ac_objext \
14640 conftest
$ac_exeext conftest.
$ac_ext
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
14643 $as_echo "$gl_cv___builtin_expect" >&6; }
14644 if test "$gl_cv___builtin_expect" = yes; then
14645 $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
14647 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
14648 $as_echo "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
14656 if test $ac_cv_func_canonicalize_file_name = no
; then
14657 HAVE_CANONICALIZE_FILE_NAME
=0
14658 if test $ac_cv_func_realpath = no
; then
14661 case "$gl_cv_func_realpath_works" in
14663 *) REPLACE_REALPATH
=1 ;;
14667 case "$gl_cv_func_realpath_works" in
14671 REPLACE_CANONICALIZE_FILE_NAME
=1
14677 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
14686 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
14691 cat >>confdefs.h
<<_ACEOF
14692 #define GNULIB_CANONICALIZE_LGPL 1
14701 GNULIB_CANONICALIZE_FILE_NAME
=1
14707 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
14722 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
14737 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
14744 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
14745 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
14746 $as_echo_n "(cached) " >&6
14748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14751 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
14753 # include <unistd.h>
14755 #include <limits.h>
14756 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
14757 # include <sys/param.h>
14759 #if !defined PATH_MAX && defined MAXPATHLEN
14760 # define PATH_MAX MAXPATHLEN
14764 # define PATH_MAX 1024
14766 #if defined _WIN32 && ! defined __CYGWIN__
14768 # define PATH_MAX 260
14772 have_arbitrary_file_name_length_limit
14775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14776 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
14777 gl_cv_have_arbitrary_file_name_length_limit
=yes
14779 gl_cv_have_arbitrary_file_name_length_limit
=no
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
14785 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
14787 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
14796 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
14802 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
14809 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
14824 if test $ac_cv_header_sys_socket_h != yes; then
14825 for ac_header
in winsock2.h
14827 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14828 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
14829 cat >>confdefs.h
<<_ACEOF
14830 #define HAVE_WINSOCK2_H 1
14838 if test "$ac_cv_header_winsock2_h" = yes; then
14840 UNISTD_H_HAVE_WINSOCK2_H
=1
14841 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
14847 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
14852 if test $REPLACE_CLOSE = 0; then
14862 if test $ac_cv_func_fchdir = no
; then
14866 if test $HAVE_FCHDIR = 0; then
14872 if test $REPLACE_CLOSE = 1; then
14881 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
14895 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
14902 for ac_func
in closedir
14904 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
14905 if test "x$ac_cv_func_closedir" = xyes
; then :
14906 cat >>confdefs.h
<<_ACEOF
14907 #define HAVE_CLOSEDIR 1
14913 if test $ac_cv_func_closedir = no
; then
14926 if test $ac_cv_func_fchdir = no
; then
14930 if test $HAVE_FCHDIR = 0; then
14931 if test $HAVE_CLOSEDIR = 1; then
14936 case $host_os,$HAVE_CLOSEDIR in
14938 REPLACE_CLOSEDIR
=1;;
14941 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
14950 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
14964 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
14969 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
14970 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
14971 $as_echo_n "(cached) " >&6
14973 if test "$cross_compiling" = yes; then :
14975 # Guess yes on glibc systems with Linux kernel.
14976 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
14977 # Guess no on native Windows.
14978 mingw
*) gl_cv_struct_dirent_d_ino
="guessing no" ;;
14979 # If we don't know, assume the worst.
14980 *) gl_cv_struct_dirent_d_ino
="guessing no" ;;
14984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14986 #include <sys/types.h>
14987 #include <sys/stat.h>
14988 #include <dirent.h>
14993 DIR *dp = opendir (".");
15000 { closedir (dp); return 2; }
15001 if (lstat (e->d_name, &st) != 0)
15002 { closedir (dp); return 3; }
15003 if (e->d_ino != st.st_ino)
15004 { closedir (dp); return 4; }
15012 if ac_fn_c_try_run
"$LINENO"; then :
15013 gl_cv_struct_dirent_d_ino
=yes
15015 gl_cv_struct_dirent_d_ino
=no
15017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15018 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
15023 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
15024 case "$gl_cv_struct_dirent_d_ino" in
15027 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
15034 $as_echo_n "checking for d_type member in directory struct... " >&6; }
15035 if ${gl_cv_struct_dirent_d_type+:} false
; then :
15036 $as_echo_n "(cached) " >&6
15038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15041 #include <sys/types.h>
15042 #include <dirent.h>
15047 struct dirent dp; dp.d_type = 0;
15052 if ac_fn_c_try_link
"$LINENO"; then :
15053 gl_cv_struct_dirent_d_type
=yes
15055 gl_cv_struct_dirent_d_type
=no
15057 rm -f core conftest.err conftest.
$ac_objext \
15058 conftest
$ac_exeext conftest.
$ac_ext
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
15063 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
15064 if test $gl_cv_struct_dirent_d_type = yes; then
15066 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
15089 if test $gl_cv_have_include_next = yes; then
15090 gl_cv_next_dirent_h
='<'dirent.h
'>'
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
15093 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
15094 if ${gl_cv_next_dirent_h+:} false
; then :
15095 $as_echo_n "(cached) " >&6
15098 if test $ac_cv_header_dirent_h = yes; then
15103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15105 #include <dirent.h>
15108 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15109 *) gl_absname_cpp
="$ac_cpp" ;;
15114 gl_dirsep_regex
='[/\\]'
15117 gl_dirsep_regex
='\/'
15120 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15121 gl_header_literal_regex
=`echo 'dirent.h' \
15122 | sed -e "$gl_make_literal_regex_sed"`
15123 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15124 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15130 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15131 sed -n "$gl_absolute_header_sed"`
15133 gl_header
=$gl_cv_absolute_dirent_h
15134 gl_cv_next_dirent_h
='"'$gl_header'"'
15136 gl_cv_next_dirent_h
='<'dirent.h
'>'
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
15142 $as_echo "$gl_cv_next_dirent_h" >&6; }
15144 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
15146 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15147 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15148 gl_next_as_first_directive
='<'dirent.h
'>'
15150 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15151 gl_next_as_first_directive
=$gl_cv_next_dirent_h
15153 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
15158 if test $ac_cv_header_dirent_h = yes; then
15174 for ac_func
in dirfd
15176 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
15177 if test "x$ac_cv_func_dirfd" = xyes
; then :
15178 cat >>confdefs.h
<<_ACEOF
15179 #define HAVE_DIRFD 1
15185 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
15186 #include <dirent.h>
15188 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
15194 cat >>confdefs.h
<<_ACEOF
15195 #define HAVE_DECL_DIRFD $ac_have_decl
15198 if test $ac_cv_have_decl_dirfd = no
; then
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
15203 $as_echo_n "checking whether dirfd is a macro... " >&6; }
15204 if ${gl_cv_func_dirfd_macro+:} false
; then :
15205 $as_echo_n "(cached) " >&6
15207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15208 /* end confdefs.h. */
15210 #include <sys/types.h>
15211 #include <dirent.h>
15213 dirent_header_defines_dirfd
15216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15217 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
15218 gl_cv_func_dirfd_macro
=yes
15220 gl_cv_func_dirfd_macro
=no
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
15226 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
15228 # Use the replacement if we have no function or macro with that name,
15229 # or if OS/2 kLIBC whose dirfd() does not work.
15230 # Replace only if the system declares dirfd already.
15231 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
15232 no
,no
,*,yes |
*,*,os2
*,yes)
15235 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
15239 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
15240 ||
test $REPLACE_DIRFD = 1; then
15249 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
15253 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
15254 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
15255 $as_echo_n "(cached) " >&6
15258 dirfd_save_CFLAGS
=$CFLAGS
15259 for ac_expr
in d_fd dd_fd
; do
15261 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
15262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15265 #include <sys/types.h>
15266 #include <dirent.h>
15270 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
15275 if ac_fn_c_try_compile
"$LINENO"; then :
15279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15280 CFLAGS
=$dirfd_save_CFLAGS
15281 test "$dir_fd_found" = yes && break
15283 test "$dir_fd_found" = yes || ac_expr
=no_such_member
15285 gl_cv_sys_dir_fd_member_name
=$ac_expr
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
15290 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
15291 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
15293 cat >>confdefs.h
<<_ACEOF
15294 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
15312 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15323 $as_echo_n "checking whether // is distinct from /... " >&6; }
15324 if ${gl_cv_double_slash_root+:} false
; then :
15325 $as_echo_n "(cached) " >&6
15327 if test x
"$cross_compiling" = xyes
; then
15328 # When cross-compiling, there is no way to tell whether // is special
15329 # short of a list of hosts. However, the only known hosts to date
15330 # that have a distinct // are Apollo DomainOS (too old to port to),
15331 # Cygwin, and z/OS. If anyone knows of another system for which // has
15332 # special semantics and is distinct from /, please report it to
15333 # <bug-gnulib@gnu.org>.
15335 *-cygwin | i370-ibm-openedition
)
15336 gl_cv_double_slash_root
=yes ;;
15338 # Be optimistic and assume that / and // are the same when we
15340 gl_cv_double_slash_root
='unknown, assuming no' ;;
15343 set x
`ls -di / // 2>/dev/null`
15344 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
15345 gl_cv_double_slash_root
=no
15347 gl_cv_double_slash_root
=yes
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15352 $as_echo "$gl_cv_double_slash_root" >&6; }
15353 if test "$gl_cv_double_slash_root" = yes; then
15355 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15363 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
15377 if test $ac_cv_func_fchdir = no
; then
15381 if test $HAVE_FCHDIR = 0; then
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
15386 $as_echo_n "checking whether dup works... " >&6; }
15387 if ${gl_cv_func_dup_works+:} false
; then :
15388 $as_echo_n "(cached) " >&6
15390 if test "$cross_compiling" = yes; then :
15392 # Guess no on native Windows.
15393 mingw
*) gl_cv_func_dup_works
="guessing no" ;;
15394 *) gl_cv_func_dup_works
="guessing yes" ;;
15398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15400 #include <unistd.h>
15406 /* On OS/2 kLIBC, dup does not work on a directory fd. */
15407 int fd = open (".", O_RDONLY);
15408 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
15415 if ac_fn_c_try_run
"$LINENO"; then :
15416 gl_cv_func_dup_works
=yes
15418 gl_cv_func_dup_works
=no
15420 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15421 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
15427 $as_echo "$gl_cv_func_dup_works" >&6; }
15428 case "$gl_cv_func_dup_works" in
15435 if test $REPLACE_DUP = 1; then
15444 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
15459 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
15468 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
15471 if test $HAVE_DUP2 = 1; then
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
15473 $as_echo_n "checking whether dup2 works... " >&6; }
15474 if ${gl_cv_func_dup2_works+:} false
; then :
15475 $as_echo_n "(cached) " >&6
15477 if test "$cross_compiling" = yes; then :
15479 mingw
*) # on this platform, dup2 always returns 0 for success
15480 gl_cv_func_dup2_works
="guessing no" ;;
15481 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
15482 gl_cv_func_dup2_works
="guessing no" ;;
15484 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
15486 gl_cv_func_dup2_works
="guessing no" ;;
15487 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
15488 gl_cv_func_dup2_works
="guessing no" ;;
15489 *-android*) # implemented using dup3(), which fails if oldfd == newfd
15490 gl_cv_func_dup2_works
="guessing no" ;;
15491 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
15492 gl_cv_func_dup2_works
="guessing no" ;;
15493 *) gl_cv_func_dup2_works
="guessing yes" ;;
15496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15501 #include <limits.h>
15502 #include <sys/resource.h>
15503 #include <unistd.h>
15504 #ifndef RLIM_SAVED_CUR
15505 # define RLIM_SAVED_CUR RLIM_INFINITY
15507 #ifndef RLIM_SAVED_MAX
15508 # define RLIM_SAVED_MAX RLIM_INFINITY
15515 int bad_fd = INT_MAX;
15516 struct rlimit rlim;
15517 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
15518 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
15519 && rlim.rlim_cur != RLIM_INFINITY
15520 && rlim.rlim_cur != RLIM_SAVED_MAX
15521 && rlim.rlim_cur != RLIM_SAVED_CUR)
15522 bad_fd = rlim.rlim_cur;
15524 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
15527 if (dup2 (1, 1) != 1)
15530 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
15534 if (dup2 (0, 0) != -1)
15536 /* Many gnulib modules require POSIX conformance of EBADF. */
15537 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
15539 /* Flush out some cygwin core dumps. */
15540 if (dup2 (2, -1) != -1 || errno != EBADF)
15544 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
15546 int fd = open (".", O_RDONLY);
15549 else if (dup2 (fd, fd + 1) == -1)
15560 if ac_fn_c_try_run
"$LINENO"; then :
15561 gl_cv_func_dup2_works
=yes
15563 gl_cv_func_dup2_works
=no
15565 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15566 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
15572 $as_echo "$gl_cv_func_dup2_works" >&6; }
15573 case "$gl_cv_func_dup2_works" in
15577 for ac_func
in setdtablesize
15579 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
15580 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
15581 cat >>confdefs.h
<<_ACEOF
15582 #define HAVE_SETDTABLESIZE 1
15601 if test $ac_cv_func_fchdir = no
; then
15605 if test $HAVE_FCHDIR = 0; then
15606 if test $HAVE_DUP2 = 1; then
15612 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
15621 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
15636 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
15652 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15659 $as_echo_n "checking for error_at_line... " >&6; }
15660 if ${ac_cv_lib_error_at_line+:} false
; then :
15661 $as_echo_n "(cached) " >&6
15663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15669 error_at_line (0, 0, "", 0, "an error occurred");
15674 if ac_fn_c_try_link
"$LINENO"; then :
15675 ac_cv_lib_error_at_line
=yes
15677 ac_cv_lib_error_at_line
=no
15679 rm -f core conftest.err conftest.
$ac_objext \
15680 conftest
$ac_exeext conftest.
$ac_ext
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15683 $as_echo "$ac_cv_lib_error_at_line" >&6; }
15685 if test $ac_cv_lib_error_at_line = no
; then
15694 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
15703 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
15707 XGETTEXT_EXTRA_OPTIONS
="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
15721 if test $ac_cv_have_decl_fchdir = no
; then
15726 if test $HAVE_FCHDIR = 0; then
15735 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
15739 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
15742 $as_echo_n "checking whether open can visit directories... " >&6; }
15743 if ${gl_cv_func_open_directory_works+:} false
; then :
15744 $as_echo_n "(cached) " >&6
15746 if test "$cross_compiling" = yes; then :
15748 # Guess yes on Linux systems.
15749 linux-
* | linux
) gl_cv_func_open_directory_works
="guessing yes" ;;
15750 # Guess yes on glibc systems.
15751 *-gnu* | gnu
*) gl_cv_func_open_directory_works
="guessing yes" ;;
15752 # Guess no on native Windows.
15753 mingw
*) gl_cv_func_open_directory_works
="guessing no" ;;
15754 # If we don't know, assume the worst.
15755 *) gl_cv_func_open_directory_works
="guessing no" ;;
15759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15766 return open(".", O_RDONLY) < 0;
15771 if ac_fn_c_try_run
"$LINENO"; then :
15772 gl_cv_func_open_directory_works
=yes
15774 gl_cv_func_open_directory_works
=no
15776 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15777 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
15782 $as_echo "$gl_cv_func_open_directory_works" >&6; }
15783 case "$gl_cv_func_open_directory_works" in
15787 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
15804 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
15819 if test $ac_cv_func_fcntl = no
; then
15829 if test $ac_cv_func_fcntl = no
; then
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
15837 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
15838 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
15839 $as_echo_n "(cached) " >&6
15841 if test "$cross_compiling" = yes; then :
15843 aix
* | cygwin
* | haiku
*)
15844 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
15845 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
15848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15852 #include <limits.h>
15853 #include <sys/resource.h>
15854 #include <unistd.h>
15855 #ifndef RLIM_SAVED_CUR
15856 # define RLIM_SAVED_CUR RLIM_INFINITY
15858 #ifndef RLIM_SAVED_MAX
15859 # define RLIM_SAVED_MAX RLIM_INFINITY
15866 int bad_fd = INT_MAX;
15867 struct rlimit rlim;
15868 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
15869 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
15870 && rlim.rlim_cur != RLIM_INFINITY
15871 && rlim.rlim_cur != RLIM_SAVED_MAX
15872 && rlim.rlim_cur != RLIM_SAVED_CUR)
15873 bad_fd = rlim.rlim_cur;
15874 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
15875 if (errno != EINVAL) result |= 2;
15876 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
15877 if (errno != EINVAL) result |= 8;
15878 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
15881 fd = open (".", O_RDONLY);
15884 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
15894 if ac_fn_c_try_run
"$LINENO"; then :
15895 gl_cv_func_fcntl_f_dupfd_works
=yes
15897 gl_cv_func_fcntl_f_dupfd_works
=no
15899 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15900 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
15905 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
15906 case $gl_cv_func_fcntl_f_dupfd_works in
15917 if test $ac_cv_func_fcntl = no
; then
15924 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
15929 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
15930 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
15931 $as_echo_n "(cached) " >&6
15933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15934 /* end confdefs.h. */
15937 #ifndef F_DUPFD_CLOEXEC
15949 if ac_fn_c_try_compile
"$LINENO"; then :
15950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15954 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
15955 it to support the semantics on older kernels that failed with EINVAL. */
15967 if ac_fn_c_try_compile
"$LINENO"; then :
15968 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
15970 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
15972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15974 gl_cv_func_fcntl_f_dupfd_cloexec
=no
15976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
15979 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
15980 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
15990 if test $ac_cv_func_fcntl = no
; then
16008 if test $ac_cv_func_fchdir = no
; then
16012 if test $HAVE_FCHDIR = 0; then
16022 if test $ac_cv_func_fcntl = no
; then
16031 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
16040 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
16054 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
16069 if test $gl_cv_have_include_next = yes; then
16070 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
16073 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
16074 if ${gl_cv_next_fcntl_h+:} false
; then :
16075 $as_echo_n "(cached) " >&6
16080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16085 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16086 *) gl_absname_cpp
="$ac_cpp" ;;
16091 gl_dirsep_regex
='[/\\]'
16094 gl_dirsep_regex
='\/'
16097 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16098 gl_header_literal_regex
=`echo 'fcntl.h' \
16099 | sed -e "$gl_make_literal_regex_sed"`
16100 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16101 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16107 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16108 sed -n "$gl_absolute_header_sed"`
16110 gl_header
=$gl_cv_absolute_fcntl_h
16111 gl_cv_next_fcntl_h
='"'$gl_header'"'
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
16116 $as_echo "$gl_cv_next_fcntl_h" >&6; }
16118 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
16120 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16121 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16122 gl_next_as_first_directive
='<'fcntl.h
'>'
16124 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16125 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
16127 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
16143 cat >>confdefs.h
<<_ACEOF
16144 #define GNULIB_FD_SAFER_FLAG 1
16153 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
16154 #include <dirent.h>
16157 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
16163 cat >>confdefs.h
<<_ACEOF
16164 #define HAVE_DECL_FDOPENDIR $ac_have_decl
16166 if test $ac_have_decl = 1; then :
16169 HAVE_DECL_FDOPENDIR
=0
16179 if test $ac_cv_func_fdopendir = no
; then
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
16183 $as_echo_n "checking whether fdopendir works... " >&6; }
16184 if ${gl_cv_func_fdopendir_works+:} false
; then :
16185 $as_echo_n "(cached) " >&6
16187 if test "$cross_compiling" = yes; then :
16189 # Guess yes on glibc systems.
16190 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
16191 # If we don't know, assume the worst.
16192 *) gl_cv_func_fdopendir_works
="guessing no" ;;
16196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16199 #include <dirent.h>
16201 #include <unistd.h>
16202 #if !HAVE_DECL_FDOPENDIR
16204 # ifdef __cplusplus
16207 DIR *fdopendir (int);
16214 int fd = open ("conftest.c", O_RDONLY);
16215 if (fd < 0) result |= 1;
16216 if (fdopendir (fd)) result |= 2;
16217 if (close (fd)) result |= 4;
16223 if ac_fn_c_try_run
"$LINENO"; then :
16224 gl_cv_func_fdopendir_works
=yes
16226 gl_cv_func_fdopendir_works
=no
16228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
16234 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
16235 case "$gl_cv_func_fdopendir_works" in
16238 REPLACE_FDOPENDIR
=1
16243 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
16252 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
16266 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
16272 cat >>confdefs.h
<<_ACEOF
16273 #define GNULIB_FDOPENDIR 1
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
16288 $as_echo_n "checking for flexible array member... " >&6; }
16289 if ${ac_cv_c_flexmember+:} false
; then :
16290 $as_echo_n "(cached) " >&6
16292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16294 #include <stdlib.h>
16296 #include <stddef.h>
16297 struct m { struct m *next, **list; char name[]; };
16298 struct s { struct s *p; struct m *m; int n; double d[]; };
16302 int m = getchar ();
16303 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
16304 nbytes += sizeof (struct s) - 1;
16305 nbytes -= nbytes % sizeof (struct s);
16306 struct s *p = malloc (nbytes);
16310 return p->d != (double *) NULL;
16315 if ac_fn_c_try_compile
"$LINENO"; then :
16316 ac_cv_c_flexmember
=yes
16318 ac_cv_c_flexmember
=no
16320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
16323 $as_echo "$ac_cv_c_flexmember" >&6; }
16324 if test $ac_cv_c_flexmember = yes; then
16326 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
16329 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
16337 REPLACE_FLOAT_LDBL
=0
16339 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
16342 freebsd
* | dragonfly
*)
16343 case "$host_cpu" in
16348 # On x86_64 systems, the C compiler may still be generating
16350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
16359 if ac_fn_c_try_compile
"$LINENO"; then :
16364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16369 case "$host_cpu" in
16377 aix
* | freebsd
* | dragonfly
* | linux
*)
16378 if test -n "$FLOAT_H"; then
16379 REPLACE_FLOAT_LDBL
=1
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
16386 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
16387 if ${gl_cv_func_itold_works+:} false
; then :
16388 $as_echo_n "(cached) " >&6
16391 if test "$cross_compiling" = yes; then :
16394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16396 #if defined __LP64__ || defined __arch64__
16403 if ac_fn_c_try_compile
"$LINENO"; then :
16404 gl_cv_func_itold_works
="guessing no"
16406 gl_cv_func_itold_works
="guessing yes"
16408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16410 # Guess yes on native Windows.
16411 mingw
*) gl_cv_func_itold_works
="guessing yes" ;;
16412 *) gl_cv_func_itold_works
="guessing yes" ;;
16416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h. */
16420 volatile long double ld;
16429 if ac_fn_c_try_run
"$LINENO"; then :
16430 gl_cv_func_itold_works
=yes
16432 gl_cv_func_itold_works
=no
16434 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16435 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
16441 $as_echo "$gl_cv_func_itold_works" >&6; }
16442 case "$gl_cv_func_itold_works" in
16449 if test -n "$FLOAT_H"; then
16458 if test $gl_cv_have_include_next = yes; then
16459 gl_cv_next_float_h
='<'float.h
'>'
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
16462 $as_echo_n "checking absolute name of <float.h>... " >&6; }
16463 if ${gl_cv_next_float_h+:} false
; then :
16464 $as_echo_n "(cached) " >&6
16469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16474 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16475 *) gl_absname_cpp
="$ac_cpp" ;;
16480 gl_dirsep_regex
='[/\\]'
16483 gl_dirsep_regex
='\/'
16486 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16487 gl_header_literal_regex
=`echo 'float.h' \
16488 | sed -e "$gl_make_literal_regex_sed"`
16489 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16490 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16496 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16497 sed -n "$gl_absolute_header_sed"`
16499 gl_header
=$gl_cv_absolute_float_h
16500 gl_cv_next_float_h
='"'$gl_header'"'
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
16505 $as_echo "$gl_cv_next_float_h" >&6; }
16507 NEXT_FLOAT_H
=$gl_cv_next_float_h
16509 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16510 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16511 gl_next_as_first_directive
='<'float.h
'>'
16513 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16514 gl_next_as_first_directive
=$gl_cv_next_float_h
16516 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
16523 if test -n "$FLOAT_H"; then
16524 GL_GENERATE_FLOAT_H_TRUE
=
16525 GL_GENERATE_FLOAT_H_FALSE
='#'
16527 GL_GENERATE_FLOAT_H_TRUE
='#'
16528 GL_GENERATE_FLOAT_H_FALSE
=
16533 if test $REPLACE_FLOAT_LDBL = 1; then
16542 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
16545 if test $REPLACE_ITOLD = 1; then
16554 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
16561 gl_fnmatch_required_lowercase
=`
16562 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
16571 if test $ac_cv_func_fnmatch = no
; then
16574 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
16576 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
16577 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
16578 $as_echo_n "(cached) " >&6
16580 if test $gl_fnmatch_required = GNU
; then
16581 gl_fnmatch_gnu_start
=
16582 gl_fnmatch_gnu_end
=
16584 gl_fnmatch_gnu_start
='#if 0'
16585 gl_fnmatch_gnu_end
='#endif'
16587 if test "$cross_compiling" = yes; then :
16588 eval "$gl_fnmatch_cache_var=\"guessing no\""
16590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16592 #include <fnmatch.h>
16594 y (char const *pattern, char const *string, int flags)
16596 return fnmatch (pattern, string, flags) == 0;
16599 n (char const *pattern, char const *string, int flags)
16601 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
16607 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
16608 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
16609 static char const A_1[] = { 'A' - 1, 0 };
16610 static char const A01[] = { 'A' + 1, 0 };
16611 static char const a_1[] = { 'a' - 1, 0 };
16612 static char const a01[] = { 'a' + 1, 0 };
16613 static char const bs_1[] = { '\\\\' - 1, 0 };
16614 static char const bs01[] = { '\\\\' + 1, 0 };
16616 if (!n ("a*", "", 0))
16618 if (!y ("a*", "abc", 0))
16620 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
16622 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
16624 if (!y ("a\\\\bc", "abc", 0))
16626 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
16628 if (!y ("*x", ".x", 0))
16630 if (!n ("*x", ".x", FNM_PERIOD))
16632 if (!y (Apat, "\\\\", 0))
16634 if (!y (Apat, "A", 0))
16636 if (!y (apat, "\\\\", 0))
16638 if (!y (apat, "a", 0))
16640 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
16642 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
16644 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
16646 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
16648 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
16650 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
16652 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
16654 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
16656 $gl_fnmatch_gnu_start
16657 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
16659 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
16661 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
16663 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
16665 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
16667 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
16669 $gl_fnmatch_gnu_end
16676 if ac_fn_c_try_run
"$LINENO"; then :
16677 eval "$gl_fnmatch_cache_var=yes"
16679 eval "$gl_fnmatch_cache_var=no"
16681 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16682 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16687 eval ac_res
=\$
$gl_fnmatch_cache_var
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16689 $as_echo "$ac_res" >&6; }
16690 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
16691 if test "$gl_fnmatch_result" != yes; then
16695 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
16698 FNMATCH_H
='fnmatch.h'
16699 if test -n "$FNMATCH_H"; then
16700 GL_GENERATE_FNMATCH_H_TRUE
=
16701 GL_GENERATE_FNMATCH_H_FALSE
='#'
16703 GL_GENERATE_FNMATCH_H_TRUE
='#'
16704 GL_GENERATE_FNMATCH_H_FALSE
=
16710 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
16719 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
16723 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16725 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
16731 cat >>confdefs.h
<<_ACEOF
16732 #define HAVE_DECL_ISBLANK $ac_have_decl
16783 $as_echo "#define GNULIB_TEST_FNMATCH 1" >>confdefs.h
16792 if test $HAVE_FNMATCH = 0 ||
test $REPLACE_FNMATCH = 1; then
16801 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
16805 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16807 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
16813 cat >>confdefs.h
<<_ACEOF
16814 #define HAVE_DECL_ISBLANK $ac_have_decl
16856 cat >>confdefs.h
<<_ACEOF
16857 #define GNULIB_FNMATCH_GNU 1
16863 if test $gl_func_frexp != yes; then
16872 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
16886 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
16891 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
16900 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
16914 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
16938 if test $ac_cv_func_fchdir = no
; then
16942 if test $HAVE_FCHDIR = 0; then
16943 case "$gl_cv_func_open_directory_works" in
16952 if test $REPLACE_FSTAT = 1; then
16961 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
16973 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
16993 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
17010 if test $ac_cv_func_fstatat = no
; then
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
17014 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
17015 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
17016 $as_echo_n "(cached) " >&6
17018 if test "$cross_compiling" = yes; then :
17020 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
17021 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
17025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17029 #include <sys/stat.h>
17034 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
17038 if ac_fn_c_try_run
"$LINENO"; then :
17039 gl_cv_func_fstatat_zero_flag
=yes
17041 gl_cv_func_fstatat_zero_flag
=no
17043 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17044 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
17050 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
17052 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
17054 *) REPLACE_FSTATAT
=1 ;;
17059 REPLACE_FSTATAT
=1 ;;
17062 case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
17065 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
17071 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
17080 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
17094 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
17106 gl_cv_func_getcwd_path_max
=yes
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
17127 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
17128 if ${gl_cv_func_getcwd_path_max+:} false
; then :
17129 $as_echo_n "(cached) " >&6
17131 # Arrange for deletion of the temporary directory this test creates.
17132 ac_clean_files
="$ac_clean_files confdir3"
17133 if test "$cross_compiling" = yes; then :
17134 # Cross-compilation guesses:
17136 aix
*) # On AIX, it has the AIX bug.
17137 gl_cv_func_getcwd_path_max
='no, it has the AIX bug' ;;
17138 gnu
*) # On Hurd, it is 'yes'.
17139 gl_cv_func_getcwd_path_max
=yes ;;
17140 linux
* | kfreebsd
*)
17141 # On older Linux+glibc it's 'no, but it is partly working',
17142 # on newer Linux+glibc it's 'yes'.
17143 # On Linux+musl libc, it's 'no, but it is partly working'.
17144 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
17145 gl_cv_func_getcwd_path_max
='no, but it is partly working' ;;
17146 *) # If we don't know, assume the worst.
17147 gl_cv_func_getcwd_path_max
=no
;;
17151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h. */
17155 #include <stdlib.h>
17157 # include <unistd.h>
17159 # include <direct.h>
17161 #include <string.h>
17162 #include <limits.h>
17163 #include <sys/stat.h>
17164 #include <sys/types.h>
17168 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17170 # include <unistd.h>
17172 #include <limits.h>
17173 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17174 # include <sys/param.h>
17176 #if !defined PATH_MAX && defined MAXPATHLEN
17177 # define PATH_MAX MAXPATHLEN
17181 # define PATH_MAX 1024
17183 #if defined _WIN32 && ! defined __CYGWIN__
17185 # define PATH_MAX 260
17190 # define AT_FDCWD 0
17192 #ifdef ENAMETOOLONG
17193 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
17195 # define is_ENAMETOOLONG(x) 0
17198 /* Use the getcwd function, not any macro. */
17201 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
17205 # define S_IRWXU 0700
17208 /* The length of this name must be 8. */
17209 #define DIR_NAME "confdir3"
17210 #define DIR_NAME_LEN 8
17211 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
17213 /* The length of "../". */
17214 #define DOTDOTSLASH_LEN 3
17216 /* Leftover bytes in the buffer, to work around library or OS bugs. */
17217 #define BUF_SLOP 20
17223 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
17224 at least not on a local file system. And if we were to start worrying
17225 about remote file systems, we'd have to enable the wrapper function
17226 all of the time, just to be safe. That's not worth the cost. */
17228 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
17229 - DIR_NAME_SIZE - BUF_SLOP) \
17231 /* FIXME: Assuming there's a system for which this is true,
17232 this should be done in a compile test. */
17235 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
17236 + DIR_NAME_SIZE + BUF_SLOP];
17237 char *cwd = getcwd (buf, PATH_MAX);
17238 size_t initial_cwd_len;
17241 size_t n_chdirs = 0;
17246 cwd_len = initial_cwd_len = strlen (cwd);
17250 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
17253 cwd_len += DIR_NAME_SIZE;
17254 /* If mkdir or chdir fails, it could be that this system cannot create
17255 any file with an absolute name longer than PATH_MAX, such as cygwin.
17256 If so, leave fail as 0, because the current working directory can't
17257 be too long for getcwd if it can't even be created. For other
17258 errors, be pessimistic and consider that as a failure, too. */
17259 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
17261 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17266 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
17270 c = getcwd (buf, PATH_MAX);
17271 if (!c && errno == ENOENT)
17281 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
17287 /* Our replacement needs to be able to stat() long ../../paths,
17288 so generate a path larger than PATH_MAX to check,
17289 avoiding the replacement if we can't stat(). */
17290 c = getcwd (buf, cwd_len + 1);
17291 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
17298 if (dotdot_max <= cwd_len - initial_cwd_len)
17300 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
17302 c = getcwd (buf, cwd_len + 1);
17305 if (! (errno == ERANGE || errno == ENOENT
17306 || is_ENAMETOOLONG (errno)))
17311 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
17319 if (c && strlen (c) != cwd_len)
17327 /* Leaving behind such a deep directory is not polite.
17328 So clean up here, right away, even though the driving
17329 shell script would also clean up. */
17333 /* Try rmdir first, in case the chdir failed. */
17335 for (i = 0; i <= n_chdirs; i++)
17337 if (chdir ("..") < 0)
17339 if (rmdir (DIR_NAME) != 0)
17349 if ac_fn_c_try_run
"$LINENO"; then :
17350 gl_cv_func_getcwd_path_max
=yes
17353 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
17354 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
17355 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
17356 *) gl_cv_func_getcwd_path_max
=no
;;
17359 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17360 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
17366 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
17368 case "$gl_cv_func_getcwd_null" in
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
17389 $as_echo_n "checking for getpagesize... " >&6; }
17390 if ${gl_cv_func_getpagesize+:} false
; then :
17391 $as_echo_n "(cached) " >&6
17393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h. */
17395 #include <unistd.h>
17399 return getpagesize();
17405 if ac_fn_c_try_link
"$LINENO"; then :
17406 gl_cv_func_getpagesize
=yes
17408 gl_cv_func_getpagesize
=no
17410 rm -f core conftest.err conftest.
$ac_objext \
17411 conftest
$ac_exeext conftest.
$ac_ext
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5
17415 $as_echo "$gl_cv_func_getpagesize" >&6; }
17417 if test $gl_cv_func_getpagesize = yes; then
17419 cat >>confdefs.h
<<_ACEOF
17420 #define HAVE_GETPAGESIZE 1
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
17426 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
17427 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
17428 $as_echo_n "(cached) " >&6
17430 # Remove any remnants of a previous test.
17431 rm -rf confdir-14B---
17432 # Arrange for deletion of the temporary directory this test creates.
17433 ac_clean_files
="$ac_clean_files confdir-14B---"
17434 if test "$cross_compiling" = yes; then :
17435 gl_cv_func_getcwd_abort_bug
=yes
17437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17438 /* end confdefs.h. */
17441 #include <stdlib.h>
17443 # include <unistd.h>
17444 #else /* on Windows with MSVC */
17445 # include <direct.h>
17447 #include <string.h>
17448 #include <sys/stat.h>
17451 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
17453 # include <unistd.h>
17455 #include <limits.h>
17456 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
17457 # include <sys/param.h>
17459 #if !defined PATH_MAX && defined MAXPATHLEN
17460 # define PATH_MAX MAXPATHLEN
17464 # define PATH_MAX 1024
17466 #if defined _WIN32 && ! defined __CYGWIN__
17468 # define PATH_MAX 260
17472 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
17476 # define S_IRWXU 0700
17479 /* FIXME: skip the run-test altogether on systems without getpagesize. */
17480 #if ! HAVE_GETPAGESIZE
17481 # define getpagesize() 0
17484 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
17485 the 16kB pagesize on ia64 linux. Those conditions make the code below
17486 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
17487 #define TARGET_LEN (5 * 1024)
17493 size_t initial_cwd_len;
17496 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
17497 this relatively expensive and invasive test if that's not true. */
17499 int bug_possible = PATH_MAX < getpagesize ();
17501 int bug_possible = 0;
17503 if (! bug_possible)
17506 cwd = getcwd (NULL, 0);
17510 initial_cwd_len = strlen (cwd);
17515 static char const dir_name[] = "confdir-14B---";
17516 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
17517 / sizeof dir_name);
17519 for (d = 0; d < desired_depth; d++)
17521 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
17523 if (! (errno == ERANGE || errno == ENAMETOOLONG
17524 || errno == ENOENT))
17525 fail = 3; /* Unable to construct deep hierarchy. */
17530 /* If libc has the bug in question, this invocation of getcwd
17531 results in a failed assertion. */
17532 cwd = getcwd (NULL, 0);
17534 fail = 4; /* getcwd didn't assert, but it failed for a long name
17535 where the answer could have been learned. */
17538 /* Call rmdir first, in case the above chdir failed. */
17542 if (chdir ("..") < 0)
17555 if ac_fn_c_try_run
"$LINENO"; then :
17556 gl_cv_func_getcwd_abort_bug
=no
17559 if test $ret -ge 128 ||
test $ret = 4; then
17560 gl_cv_func_getcwd_abort_bug
=yes
17562 gl_cv_func_getcwd_abort_bug
=no
17565 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17566 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
17572 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
17573 if test $gl_cv_func_getcwd_abort_bug = yes; then :
17581 case "$gl_cv_func_getcwd_path_max" in
17582 "no"|
"no, it has the AIX bug") ;;
17585 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
17589 case "$gl_cv_func_getcwd_path_max" in
17590 "no, but it is partly working")
17592 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
17595 "yes, but with shorter paths")
17597 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
17602 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
17603 ||
test $gl_cv_func_getcwd_posix_signature != yes \
17604 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
17605 ||
test $gl_abort_bug = yes; then
17609 if test $REPLACE_GETCWD = 1; then
17618 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
17628 cat >>confdefs.h
<<_ACEOF
17629 #define GNULIB_GETCWD 1
17644 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
17653 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
17660 if test $REPLACE_GETCWD = 1; then
17669 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
17683 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
17704 if test $ac_cv_func_getdtablesize = yes &&
17705 test $ac_cv_have_decl_getdtablesize = yes; then
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
17707 $as_echo_n "checking whether getdtablesize works... " >&6; }
17708 if ${gl_cv_func_getdtablesize_works+:} false
; then :
17709 $as_echo_n "(cached) " >&6
17712 vms
*) gl_cv_func_getdtablesize_works
="no (limitation)" ;;
17714 if test "$cross_compiling" = yes; then :
17716 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
17717 gl_cv_func_getdtablesize_works
="guessing no" ;;
17718 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
17722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17725 #include <unistd.h>
17729 int size = getdtablesize();
17730 if (dup2 (0, getdtablesize()) != -1)
17732 if (size != getdtablesize())
17739 if ac_fn_c_try_run
"$LINENO"; then :
17740 gl_cv_func_getdtablesize_works
=yes
17742 gl_cv_func_getdtablesize_works
=no
17744 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17745 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
17753 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
17754 case "$gl_cv_func_getdtablesize_works" in
17755 *yes |
"no (limitation)") ;;
17756 *) REPLACE_GETDTABLESIZE
=1 ;;
17759 HAVE_GETDTABLESIZE
=0
17762 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
17771 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
17780 GNULIB_GETDTABLESIZE
=1
17786 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
17802 if test $ac_cv_have_decl_getlogin_r = no
; then
17803 HAVE_DECL_GETLOGIN_R
=0
17813 if test $ac_cv_func_getlogin_r = no
; then
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
17819 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
17820 if ${gl_cv_func_getlogin_r_works+:} false
; then :
17821 $as_echo_n "(cached) " >&6
17825 # Guess no on Mac OS X, OSF/1.
17826 darwin
* | osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
17827 # Guess yes otherwise.
17828 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
17830 if test "$cross_compiling" = yes; then :
17833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h. */
17836 #include <stddef.h>
17837 #include <string.h>
17838 #include <unistd.h>
17839 #if !HAVE_DECL_GETLOGIN_R
17841 # ifdef __cplusplus
17844 int getlogin_r (char *, size_t);
17852 if (getlogin_r (buf, 0) == 0)
17854 if (getlogin_r (buf, 1) == 0)
17856 if (getlogin_r (buf, 100) == 0)
17858 size_t n = strlen (buf);
17859 if (getlogin_r (buf, n) == 0)
17865 if ac_fn_c_try_run
"$LINENO"; then :
17866 gl_cv_func_getlogin_r_works
=yes
17868 gl_cv_func_getlogin_r_works
=no
17870 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17871 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
17877 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
17878 case "$gl_cv_func_getlogin_r_works" in
17880 *) REPLACE_GETLOGIN_R
=1 ;;
17884 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
17893 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
17910 GNULIB_GETLOGIN_R
=1
17916 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
17934 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
17936 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
17942 cat >>confdefs.h
<<_ACEOF
17943 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
17945 if test $ac_have_decl = 1; then :
17949 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
17951 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
17957 cat >>confdefs.h
<<_ACEOF
17958 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
17960 if test $ac_have_decl = 1; then :
17964 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
17966 if test "x$ac_cv_have_decl___argv" = xyes
; then :
17972 cat >>confdefs.h
<<_ACEOF
17973 #define HAVE_DECL___ARGV $ac_have_decl
17975 if test $ac_have_decl = 1; then :
17980 # Incur the cost of this test only if none of the above worked.
17981 if test $ac_found = 0; then
17982 # On OpenBSD 5.1, using the global __progname variable appears to be
17983 # the only way to implement getprogname.
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
17985 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
17986 if ${gl_cv_var___progname+:} false
; then :
17987 $as_echo_n "(cached) " >&6
17990 gl_cv_var___progname
=
17991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17992 /* end confdefs.h. */
17993 extern char *__progname;
17997 return *__progname;
18003 if ac_fn_c_try_link
"$LINENO"; then :
18004 gl_cv_var___progname
=yes
18007 rm -f core conftest.err conftest.
$ac_objext \
18008 conftest
$ac_exeext conftest.
$ac_ext
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
18013 $as_echo "$gl_cv_var___progname" >&6; }
18014 if test "$gl_cv_var___progname" = yes; then
18016 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
18036 gl_gettimeofday_timezone
=void
18037 if test $ac_cv_func_gettimeofday != yes; then
18038 HAVE_GETTIMEOFDAY
=0
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
18045 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
18046 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
18047 $as_echo_n "(cached) " >&6
18049 if test "$cross_compiling" = yes; then :
18050 # When cross-compiling:
18052 # Guess all is fine on glibc systems.
18053 *-gnu* | gnu
*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
18054 # Guess no on native Windows.
18055 mingw
*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
18056 # If we don't know, assume the worst.
18057 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
18061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h. */
18063 #include <string.h>
18064 #include <sys/time.h>
18066 #include <stdlib.h>
18074 struct tm saved_lt;
18076 lt = localtime (&t);
18078 gettimeofday (&tv, NULL);
18079 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
18085 if ac_fn_c_try_run
"$LINENO"; then :
18086 gl_cv_func_gettimeofday_clobber
=no
18088 gl_cv_func_gettimeofday_clobber
=yes
18090 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18091 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
18096 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
18098 case "$gl_cv_func_gettimeofday_clobber" in
18100 REPLACE_GETTIMEOFDAY
=1
18102 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
18107 NEED_LOCALTIME_BUFFER
=1
18109 REPLACE_LOCALTIME
=1
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
18115 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
18116 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
18117 $as_echo_n "(cached) " >&6
18119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18121 #include <sys/time.h>
18123 int gettimeofday (struct timeval *restrict, void *restrict);
18128 /* glibc uses struct timezone * rather than the POSIX void *
18129 if _GNU_SOURCE is defined. However, since the only portable
18130 use of gettimeofday uses NULL as the second parameter, and
18131 since the glibc definition is actually more typesafe, it is
18132 not worth wrapping this to get a compliant signature. */
18133 int (*f) (struct timeval *restrict, void *restrict)
18136 return !(x | c.tv_sec | c.tv_usec);
18142 if ac_fn_c_try_compile
"$LINENO"; then :
18143 gl_cv_func_gettimeofday_posix_signature
=yes
18145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h. */
18147 #include <sys/time.h>
18148 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
18158 if ac_fn_c_try_compile
"$LINENO"; then :
18159 gl_cv_func_gettimeofday_posix_signature
=almost
18161 gl_cv_func_gettimeofday_posix_signature
=no
18163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
18168 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
18169 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
18170 gl_gettimeofday_timezone
='struct timezone'
18171 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
18172 REPLACE_GETTIMEOFDAY
=1
18174 if test $REPLACE_STRUCT_TIMEVAL = 1; then
18175 REPLACE_GETTIMEOFDAY
=1
18178 mingw
*) REPLACE_GETTIMEOFDAY
=1 ;;
18182 cat >>confdefs.h
<<_ACEOF
18183 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
18187 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
18196 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
18205 GNULIB_GETTIMEOFDAY
=1
18211 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
18228 if test $ac_cv_func_glob = no
; then
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1 or 2" >&5
18233 $as_echo_n "checking for GNU glob interface version 1 or 2... " >&6; }
18234 if ${gl_cv_gnu_glob_interface_version_1_2+:} false
; then :
18235 $as_echo_n "(cached) " >&6
18237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239 #include <gnu-versions.h>
18240 char a[_GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2 ? 1 : -1];
18242 if ac_fn_c_try_compile
"$LINENO"; then :
18243 gl_cv_gnu_glob_interface_version_1_2
=yes
18245 gl_cv_gnu_glob_interface_version_1_2
=no
18247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1_2" >&5
18250 $as_echo "$gl_cv_gnu_glob_interface_version_1_2" >&6; }
18251 if test "$gl_cv_gnu_glob_interface_version_1_2" = "no"; then
18255 if test $REPLACE_GLOB = 0; then
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
18257 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
18258 if ${gl_cv_glob_lists_symlinks+:} false
; then :
18259 $as_echo_n "(cached) " >&6
18261 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
18262 gl_cv_glob_lists_symlinks
=maybe
18264 # If we can't make a symlink, then we cannot test this issue. Be
18265 # pessimistic about this.
18266 gl_cv_glob_lists_symlinks
=no
18268 if test $gl_cv_glob_lists_symlinks = maybe
; then
18269 if test "$cross_compiling" = yes; then :
18270 gl_cv_glob_lists_symlinks
=no
18272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274 #include <stddef.h>
18280 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH)
18287 if ac_fn_c_try_run
"$LINENO"; then :
18288 gl_cv_glob_lists_symlinks
=yes
18290 gl_cv_glob_lists_symlinks
=no
18292 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18293 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18297 rm -f conf$$
-globtest
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
18301 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
18302 if test $gl_cv_glob_lists_symlinks = no
; then
18309 if test $ac_cv_func_glob_pattern_p = no
; then
18310 HAVE_GLOB_PATTERN_P
=0
18312 if test $REPLACE_GLOB = 1; then
18313 REPLACE_GLOB_PATTERN_P
=1
18317 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
18321 if test -n "$GLOB_H"; then
18322 GL_GENERATE_GLOB_H_TRUE
=
18323 GL_GENERATE_GLOB_H_FALSE
='#'
18325 GL_GENERATE_GLOB_H_TRUE
='#'
18326 GL_GENERATE_GLOB_H_FALSE
=
18332 if test $HAVE_GLOB = 0 ||
test $REPLACE_GLOB = 1; then
18341 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
18351 gl_LIBOBJS
="$gl_LIBOBJS globfree.$ac_objext"
18374 if test $HAVE_GLOB_PATTERN_P = 0 ||
test $REPLACE_GLOB_PATTERN_P = 1; then
18383 gl_LIBOBJS
="$gl_LIBOBJS glob_pattern_p.$ac_objext"
18397 $as_echo "#define GNULIB_TEST_GLOB 1" >>confdefs.h
18408 if test -n "$STDINT_H"; then
18409 PRIPTR_PREFIX
='"l"'
18411 for glpfx
in '' l ll I64
; do
18413 '') gltype1
='int';;
18414 l
) gltype1
='long int';;
18415 ll
) gltype1
='long long int';;
18416 I64
) gltype1
='__int64';;
18418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18420 #include <stdint.h>
18421 extern intptr_t foo;
18422 extern $gltype1 foo;
18431 if ac_fn_c_try_compile
"$LINENO"; then :
18432 PRIPTR_PREFIX
='"'$glpfx'"'
18434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18435 test -n "$PRIPTR_PREFIX" && break
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
18442 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
18443 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
18444 $as_echo_n "(cached) " >&6
18446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18448 /* Work also in C++ mode. */
18449 #define __STDC_LIMIT_MACROS 1
18451 /* Work if build is not clean. */
18452 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18454 #include <limits.h>
18456 #include <stdint.h>
18459 #if defined INT32_MAX && defined INTMAX_MAX
18460 #define CONDITION (INT32_MAX < INTMAX_MAX)
18461 #elif HAVE_LONG_LONG_INT
18462 #define CONDITION (sizeof (int) < sizeof (long long int))
18464 #define CONDITION 0
18466 int test[CONDITION ? 1 : -1];
18475 if ac_fn_c_try_compile
"$LINENO"; then :
18476 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
18478 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
18480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
18483 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
18484 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
18485 INT32_MAX_LT_INTMAX_MAX
=1;
18487 INT32_MAX_LT_INTMAX_MAX
=0;
18491 if test $APPLE_UNIVERSAL_BUILD = 0; then
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
18494 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
18495 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
18496 $as_echo_n "(cached) " >&6
18498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18499 /* end confdefs.h. */
18500 /* Work also in C++ mode. */
18501 #define __STDC_LIMIT_MACROS 1
18503 /* Work if build is not clean. */
18504 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18506 #include <limits.h>
18508 #include <stdint.h>
18511 #if defined INT64_MAX
18512 #define CONDITION (INT64_MAX == LONG_MAX)
18513 #elif HAVE_LONG_LONG_INT
18514 #define CONDITION (sizeof (long long int) == sizeof (long int))
18516 #define CONDITION 0
18518 int test[CONDITION ? 1 : -1];
18527 if ac_fn_c_try_compile
"$LINENO"; then :
18528 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
18530 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
18532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
18535 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
18536 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
18537 INT64_MAX_EQ_LONG_MAX
=1;
18539 INT64_MAX_EQ_LONG_MAX
=0;
18544 INT64_MAX_EQ_LONG_MAX
=-1
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
18548 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
18549 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
18550 $as_echo_n "(cached) " >&6
18552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18553 /* end confdefs.h. */
18554 /* Work also in C++ mode. */
18555 #define __STDC_LIMIT_MACROS 1
18557 /* Work if build is not clean. */
18558 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18560 #include <limits.h>
18562 #include <stdint.h>
18565 #if defined UINT32_MAX && defined UINTMAX_MAX
18566 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
18567 #elif HAVE_LONG_LONG_INT
18568 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
18570 #define CONDITION 0
18572 int test[CONDITION ? 1 : -1];
18581 if ac_fn_c_try_compile
"$LINENO"; then :
18582 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
18584 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
18586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
18589 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
18590 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
18591 UINT32_MAX_LT_UINTMAX_MAX
=1;
18593 UINT32_MAX_LT_UINTMAX_MAX
=0;
18597 if test $APPLE_UNIVERSAL_BUILD = 0; then
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
18600 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
18601 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
18602 $as_echo_n "(cached) " >&6
18604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18605 /* end confdefs.h. */
18606 /* Work also in C++ mode. */
18607 #define __STDC_LIMIT_MACROS 1
18609 /* Work if build is not clean. */
18610 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
18612 #include <limits.h>
18614 #include <stdint.h>
18617 #if defined UINT64_MAX
18618 #define CONDITION (UINT64_MAX == ULONG_MAX)
18619 #elif HAVE_LONG_LONG_INT
18620 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
18622 #define CONDITION 0
18624 int test[CONDITION ? 1 : -1];
18633 if ac_fn_c_try_compile
"$LINENO"; then :
18634 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
18636 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
18638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
18641 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
18642 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
18643 UINT64_MAX_EQ_ULONG_MAX
=1;
18645 UINT64_MAX_EQ_ULONG_MAX
=0;
18650 UINT64_MAX_EQ_ULONG_MAX
=-1
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
18658 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
18659 if ${gl_cv_func_isnand_no_libm+:} false
; then :
18660 $as_echo_n "(cached) " >&6
18663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h. */
18668 # define isnand(x) __builtin_isnan ((double)(x))
18671 # define isnand(x) isnan ((double)(x))
18682 if ac_fn_c_try_link
"$LINENO"; then :
18683 gl_cv_func_isnand_no_libm
=yes
18685 gl_cv_func_isnand_no_libm
=no
18687 rm -f core conftest.err conftest.
$ac_objext \
18688 conftest
$ac_exeext conftest.
$ac_ext
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
18692 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
18694 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
18695 if test $gl_cv_func_isnand_no_libm = yes; then
18697 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
18701 if test $gl_func_isnand_no_libm != yes; then
18710 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
18719 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
18720 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
18721 $as_echo_n "(cached) " >&6
18724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18725 /* end confdefs.h. */
18729 # define isnanl(x) __builtin_isnanl ((long double)(x))
18730 #elif defined isnan
18732 # define isnanl(x) isnan ((long double)(x))
18743 if ac_fn_c_try_link
"$LINENO"; then :
18744 gl_cv_func_isnanl_no_libm
=yes
18746 gl_cv_func_isnanl_no_libm
=no
18748 rm -f core conftest.err conftest.
$ac_objext \
18749 conftest
$ac_exeext conftest.
$ac_ext
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
18753 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
18755 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
18756 if test $gl_func_isnanl_no_libm = yes; then
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
18762 $as_echo_n "checking whether isnanl works... " >&6; }
18763 if ${gl_cv_func_isnanl_works+:} false
; then :
18764 $as_echo_n "(cached) " >&6
18767 if test "$cross_compiling" = yes; then :
18769 mingw
*) # Guess yes on mingw, no on MSVC.
18770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18771 /* end confdefs.h. */
18778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18779 $EGREP "Known" >/dev
/null
2>&1; then :
18780 gl_cv_func_isnanl_works
="guessing yes"
18782 gl_cv_func_isnanl_works
="guessing no"
18787 *) gl_cv_func_isnanl_works
="guessing yes" ;;
18791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18792 /* end confdefs.h. */
18795 #include <limits.h>
18799 # define isnanl(x) __builtin_isnanl ((long double)(x))
18800 #elif defined isnan
18802 # define isnanl(x) isnan ((long double)(x))
18805 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
18806 typedef union { unsigned int word[NWORDS]; long double value; }
18807 memory_long_double;
18808 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
18809 runtime type conversion. */
18811 static long double NaNl ()
18814 return zero / zero;
18817 # define NaNl() (0.0L / 0.0L)
18823 if (!isnanl (NaNl ()))
18827 memory_long_double m;
18830 /* The isnanl function should be immune against changes in the sign bit and
18831 in the mantissa bits. The xor operation twiddles a bit that can only be
18832 a sign bit or a mantissa bit (since the exponent never extends to
18835 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
18836 for (i = 0; i < NWORDS; i++)
18838 if (!isnanl (m.value))
18842 #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
18843 /* Representation of an 80-bit 'long double' as an initializer for a sequence
18844 of 'unsigned int' words. */
18845 # ifdef WORDS_BIGENDIAN
18846 # define LDBL80_WORDS(exponent,manthi,mantlo) \
18847 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
18848 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
18849 (unsigned int) (mantlo) << 16 \
18852 # define LDBL80_WORDS(exponent,manthi,mantlo) \
18853 { mantlo, manthi, exponent }
18856 static memory_long_double x =
18857 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
18858 if (!isnanl (x.value))
18862 /* Signalling NaN. */
18863 static memory_long_double x =
18864 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
18865 if (!isnanl (x.value))
18868 /* isnanl should return something even for noncanonical values. */
18869 { /* Pseudo-NaN. */
18870 static memory_long_double x =
18871 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
18872 if (isnanl (x.value) && !isnanl (x.value))
18875 { /* Pseudo-Infinity. */
18876 static memory_long_double x =
18877 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
18878 if (isnanl (x.value) && !isnanl (x.value))
18881 { /* Pseudo-Zero. */
18882 static memory_long_double x =
18883 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
18884 if (isnanl (x.value) && !isnanl (x.value))
18887 { /* Unnormalized number. */
18888 static memory_long_double x =
18889 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
18890 if (isnanl (x.value) && !isnanl (x.value))
18893 { /* Pseudo-Denormal. */
18894 static memory_long_double x =
18895 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
18896 if (isnanl (x.value) && !isnanl (x.value))
18904 if ac_fn_c_try_run
"$LINENO"; then :
18905 gl_cv_func_isnanl_works
=yes
18907 gl_cv_func_isnanl_works
=no
18909 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18910 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
18916 $as_echo "$gl_cv_func_isnanl_works" >&6; }
18918 case "$gl_cv_func_isnanl_works" in
18920 *) gl_func_isnanl_no_libm
=no
;;
18923 if test $gl_func_isnanl_no_libm = yes; then
18925 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
18929 if test $gl_func_isnanl_no_libm != yes; then
18938 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
18944 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
18945 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
18946 $as_echo_n "(cached) " >&6
18949 if test "$cross_compiling" = yes; then :
18951 gl_cv_cc_long_double_expbit0
="unknown"
18953 mingw
*) # On native Windows (little-endian), we know the result
18954 # in two cases: mingw, MSVC.
18955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18956 /* end confdefs.h. */
18963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18964 $EGREP "Known" >/dev
/null
2>&1; then :
18965 gl_cv_cc_long_double_expbit0
="word 2 bit 0"
18969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18970 /* end confdefs.h. */
18977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18978 $EGREP "Known" >/dev
/null
2>&1; then :
18979 gl_cv_cc_long_double_expbit0
="word 1 bit 20"
18987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18988 /* end confdefs.h. */
18991 #include <stddef.h>
18993 #include <string.h>
18995 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
18996 typedef union { long double value; unsigned int word[NWORDS]; }
18997 memory_long_double;
18998 static unsigned int ored_words[NWORDS];
18999 static unsigned int anded_words[NWORDS];
19000 static void add_to_ored_words (long double x)
19002 memory_long_double m;
19004 /* Clear it first, in case
19005 sizeof (long double) < sizeof (memory_long_double). */
19006 memset (&m, 0, sizeof (memory_long_double));
19008 for (i = 0; i < NWORDS; i++)
19010 ored_words[i] |= m.word[i];
19011 anded_words[i] &= m.word[i];
19017 FILE *fp = fopen ("conftest.out", "w");
19020 for (j = 0; j < NWORDS; j++)
19021 anded_words[j] = ~ (unsigned int) 0;
19022 add_to_ored_words (0.25L);
19023 add_to_ored_words (0.5L);
19024 add_to_ored_words (1.0L);
19025 add_to_ored_words (2.0L);
19026 add_to_ored_words (4.0L);
19027 /* Remove bits that are common (e.g. if representation of the first mantissa
19028 bit is explicit). */
19029 for (j = 0; j < NWORDS; j++)
19030 ored_words[j] &= ~anded_words[j];
19031 /* Now find the nonzero word. */
19032 for (j = 0; j < NWORDS; j++)
19033 if (ored_words[j] != 0)
19038 for (i = j + 1; i < NWORDS; i++)
19039 if (ored_words[i] != 0)
19041 fprintf (fp, "unknown");
19042 return (fclose (fp) != 0);
19045 if ((ored_words[j] >> i) & 1)
19047 fprintf (fp, "word %d bit %d", (int) j, (int) i);
19048 return (fclose (fp) != 0);
19051 fprintf (fp, "unknown");
19052 return (fclose (fp) != 0);
19056 if ac_fn_c_try_run
"$LINENO"; then :
19057 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
19059 gl_cv_cc_long_double_expbit0
="unknown"
19061 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19062 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
19069 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
19070 case "$gl_cv_cc_long_double_expbit0" in
19072 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
19073 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
19075 cat >>confdefs.h
<<_ACEOF
19076 #define LDBL_EXPBIT0_WORD $word
19080 cat >>confdefs.h
<<_ACEOF
19081 #define LDBL_EXPBIT0_BIT $bit
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
19093 $as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; }
19094 if ${gl_cv_c___inline+:} false
; then :
19095 $as_echo_n "(cached) " >&6
19097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19098 /* end confdefs.h. */
19100 static __inline foo_t foo (void) { return 0; }
19109 if ac_fn_c_try_compile
"$LINENO"; then :
19110 gl_cv_c___inline
=yes
19112 gl_cv_c___inline
=no
19114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
19117 $as_echo "$gl_cv_c___inline" >&6; }
19118 if test $gl_cv_c___inline = yes; then
19120 $as_echo "#define HAVE___INLINE 1" >>confdefs.h
19128 LOCALCHARSET_TESTS_ENVIRONMENT
=
19139 gl_LIBOBJS
="$gl_LIBOBJS localtime-buffer.$ac_objext"
19151 if test $ac_cv_func_lstat = yes; then
19153 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
19162 if test $REPLACE_LSTAT = 1; then
19171 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
19186 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
19193 if test $gl_cv_func_malloc_posix = yes; then
19195 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
19201 if test $REPLACE_MALLOC = 1; then
19210 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
19218 GNULIB_MALLOC_POSIX
=1
19224 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
19249 if test $gl_cv_have_include_next = yes; then
19250 gl_cv_next_math_h
='<'math.h
'>'
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
19253 $as_echo_n "checking absolute name of <math.h>... " >&6; }
19254 if ${gl_cv_next_math_h+:} false
; then :
19255 $as_echo_n "(cached) " >&6
19258 if test $ac_cv_header_math_h = yes; then
19263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19264 /* end confdefs.h. */
19268 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
19269 *) gl_absname_cpp
="$ac_cpp" ;;
19274 gl_dirsep_regex
='[/\\]'
19277 gl_dirsep_regex
='\/'
19280 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
19281 gl_header_literal_regex
=`echo 'math.h' \
19282 | sed -e "$gl_make_literal_regex_sed"`
19283 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19284 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19290 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19291 sed -n "$gl_absolute_header_sed"`
19293 gl_header
=$gl_cv_absolute_math_h
19294 gl_cv_next_math_h
='"'$gl_header'"'
19296 gl_cv_next_math_h
='<'math.h
'>'
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
19302 $as_echo "$gl_cv_next_math_h" >&6; }
19304 NEXT_MATH_H
=$gl_cv_next_math_h
19306 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
19307 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19308 gl_next_as_first_directive
='<'math.h
'>'
19310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19311 gl_next_as_first_directive
=$gl_cv_next_math_h
19313 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
19320 $as_echo_n "checking whether NAN macro works... " >&6; }
19321 if ${gl_cv_header_math_nan_works+:} false
; then :
19322 $as_echo_n "(cached) " >&6
19324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h. */
19330 /* Solaris 10 has a broken definition of NAN. Other platforms
19331 fail to provide NAN, or provide it only in C99 mode; this
19332 test only needs to fail when NAN is provided but wrong. */
19342 if ac_fn_c_try_compile
"$LINENO"; then :
19343 gl_cv_header_math_nan_works
=yes
19345 gl_cv_header_math_nan_works
=no
19347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
19350 $as_echo "$gl_cv_header_math_nan_works" >&6; }
19351 if test $gl_cv_header_math_nan_works = no
; then
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
19355 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
19356 if ${gl_cv_header_math_huge_val_works+:} false
; then :
19357 $as_echo_n "(cached) " >&6
19359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h. */
19365 /* Solaris 10 has a broken definition of HUGE_VAL. */
19366 double d = HUGE_VAL;
19372 if ac_fn_c_try_compile
"$LINENO"; then :
19373 gl_cv_header_math_huge_val_works
=yes
19375 gl_cv_header_math_huge_val_works
=no
19377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
19380 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
19381 if test $gl_cv_header_math_huge_val_works = no
; then
19411 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19416 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19417 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
19418 $as_echo_n "(cached) " >&6
19422 # Guess no on AIX and OSF/1.
19423 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
19424 # Guess yes otherwise.
19425 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
19427 if test $LOCALE_JA != none
; then
19428 if test "$cross_compiling" = yes; then :
19431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19432 /* end confdefs.h. */
19434 #include <locale.h>
19435 #include <string.h>
19436 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19438 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19439 included before <wchar.h>. */
19440 #include <stddef.h>
19446 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19448 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19452 memset (&state, '\0', sizeof (mbstate_t));
19453 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19454 if (mbsinit (&state))
19460 if ac_fn_c_try_run
"$LINENO"; then :
19461 gl_cv_func_mbrtowc_incomplete_state
=yes
19463 gl_cv_func_mbrtowc_incomplete_state
=no
19465 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19466 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19473 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19479 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19480 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
19481 $as_echo_n "(cached) " >&6
19485 # Guess no on Solaris 8.
19486 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
19487 # Guess yes otherwise.
19488 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
19490 if test $LOCALE_ZH_CN != none
; then
19491 if test "$cross_compiling" = yes; then :
19494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19497 #include <locale.h>
19498 #include <stdlib.h>
19499 #include <string.h>
19500 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19502 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19503 included before <wchar.h>. */
19504 #include <stddef.h>
19510 /* This fails on Solaris 8:
19511 mbrtowc returns 2, and sets wc to 0x00F0.
19512 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
19513 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19515 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19519 memset (&state, '\0', sizeof (mbstate_t));
19520 if (mbrtowc (&wc, input + 3, 6, &state) != 4
19521 && mbtowc (&wc, input + 3, 6) == 4)
19527 if ac_fn_c_try_run
"$LINENO"; then :
19528 gl_cv_func_mbrtowc_sanitycheck
=yes
19530 gl_cv_func_mbrtowc_sanitycheck
=no
19532 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19533 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19540 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19542 REPLACE_MBSTATE_T
=0
19543 case "$gl_cv_func_mbrtowc_incomplete_state" in
19545 *) REPLACE_MBSTATE_T
=1 ;;
19547 case "$gl_cv_func_mbrtowc_sanitycheck" in
19549 *) REPLACE_MBSTATE_T
=1 ;;
19552 REPLACE_MBSTATE_T
=1
19563 if test $ac_cv_func_mbrtowc = no
; then
19565 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
19566 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19568 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19569 included before <wchar.h>. */
19570 #include <stddef.h>
19576 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
19582 cat >>confdefs.h
<<_ACEOF
19583 #define HAVE_DECL_MBRTOWC $ac_have_decl
19586 if test $ac_cv_have_decl_mbrtowc = yes; then
19590 if test $REPLACE_MBSTATE_T = 1; then
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
19597 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
19598 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
19599 $as_echo_n "(cached) " >&6
19603 # Guess no on Solaris.
19604 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
19605 # Guess yes otherwise.
19606 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
19608 if test $LOCALE_FR_UTF8 != none
; then
19609 if test "$cross_compiling" = yes; then :
19612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19613 /* end confdefs.h. */
19615 #include <locale.h>
19616 #include <stdlib.h>
19617 #include <string.h>
19618 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19620 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19621 included before <wchar.h>. */
19622 #include <stddef.h>
19630 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19632 char input[] = "\303\237er";
19637 memset (&state, '\0', sizeof (mbstate_t));
19638 wc = (wchar_t) 0xBADFACE;
19639 ret = mbrtowc (&wc, input, 5, &state);
19642 if (!mbsinit (&state))
19645 memset (&state, '\0', sizeof (mbstate_t));
19646 ret = mbrtowc (NULL, input, 5, &state);
19647 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
19649 if (!mbsinit (&state))
19655 if ac_fn_c_try_run
"$LINENO"; then :
19656 gl_cv_func_mbrtowc_null_arg1
=yes
19658 gl_cv_func_mbrtowc_null_arg1
=no
19660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
19668 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
19674 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
19675 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
19676 $as_echo_n "(cached) " >&6
19680 # Guess no on OSF/1.
19681 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
19682 # Guess yes otherwise.
19683 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
19685 if test $LOCALE_FR_UTF8 != none
; then
19686 if test "$cross_compiling" = yes; then :
19689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19690 /* end confdefs.h. */
19692 #include <locale.h>
19693 #include <string.h>
19694 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19696 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19697 included before <wchar.h>. */
19698 #include <stddef.h>
19704 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19710 memset (&state, '\0', sizeof (mbstate_t));
19711 wc = (wchar_t) 0xBADFACE;
19712 mbrtowc (&wc, NULL, 5, &state);
19713 /* Check that wc was not modified. */
19714 if (wc != (wchar_t) 0xBADFACE)
19720 if ac_fn_c_try_run
"$LINENO"; then :
19721 gl_cv_func_mbrtowc_null_arg2
=yes
19723 gl_cv_func_mbrtowc_null_arg2
=no
19725 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19726 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
19733 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
19741 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
19742 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
19743 $as_echo_n "(cached) " >&6
19747 # Guess no on HP-UX, Solaris, native Windows.
19748 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
19749 # Guess yes otherwise.
19750 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
19752 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
19753 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
19754 if test "$cross_compiling" = yes; then :
19757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19758 /* end confdefs.h. */
19760 #include <locale.h>
19761 #include <string.h>
19762 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19764 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19765 included before <wchar.h>. */
19766 #include <stddef.h>
19773 int found_some_locale = 0;
19774 /* This fails on Solaris. */
19775 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19777 char input[] = "B\303\274\303\237er"; /* "Büßer" */
19781 memset (&state, '\0', sizeof (mbstate_t));
19782 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19785 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
19788 found_some_locale = 1;
19790 /* This fails on HP-UX 11.11. */
19791 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19793 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19797 memset (&state, '\0', sizeof (mbstate_t));
19798 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19801 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
19804 found_some_locale = 1;
19806 /* This fails on native Windows. */
19807 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
19809 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
19813 memset (&state, '\0', sizeof (mbstate_t));
19814 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19817 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19820 found_some_locale = 1;
19822 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
19824 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
19828 memset (&state, '\0', sizeof (mbstate_t));
19829 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19832 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19835 found_some_locale = 1;
19837 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
19839 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
19843 memset (&state, '\0', sizeof (mbstate_t));
19844 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
19847 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
19850 found_some_locale = 1;
19852 return (found_some_locale ? result : 77);
19855 if ac_fn_c_try_run
"$LINENO"; then :
19856 gl_cv_func_mbrtowc_retval
=yes
19858 if test $?
!= 77; then
19859 gl_cv_func_mbrtowc_retval
=no
19863 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19864 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
19871 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
19877 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
19878 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
19879 $as_echo_n "(cached) " >&6
19883 # Guess no on Solaris 8 and 9.
19884 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
19885 # Guess yes otherwise.
19886 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
19888 if test $LOCALE_ZH_CN != none
; then
19889 if test "$cross_compiling" = yes; then :
19892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19893 /* end confdefs.h. */
19895 #include <locale.h>
19896 #include <string.h>
19897 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19899 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19900 included before <wchar.h>. */
19901 #include <stddef.h>
19907 /* This fails on Solaris 8 and 9. */
19908 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19913 memset (&state, '\0', sizeof (mbstate_t));
19914 if (mbrtowc (&wc, "", 1, &state) != 0)
19920 if ac_fn_c_try_run
"$LINENO"; then :
19921 gl_cv_func_mbrtowc_nul_retval
=yes
19923 gl_cv_func_mbrtowc_nul_retval
=no
19925 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19926 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
19933 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
19938 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
19939 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
19940 $as_echo_n "(cached) " >&6
19944 # Guess no on AIX and glibc systems.
19945 aix
* |
*-gnu* | gnu
*) gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
19946 # Guess yes on native Windows.
19947 mingw
*) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
19948 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
19950 if test "$cross_compiling" = yes; then :
19953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19954 /* end confdefs.h. */
19958 static mbstate_t mbs;
19962 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
19965 if ac_fn_c_try_run
"$LINENO"; then :
19966 gl_cv_func_mbrtowc_empty_input
=yes
19968 gl_cv_func_mbrtowc_empty_input
=no
19970 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19971 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
19977 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
19981 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
19982 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
19983 $as_echo_n "(cached) " >&6
19986 gl_cv_C_locale_sans_EILSEQ
="guessing no"
19988 if test "$cross_compiling" = yes; then :
19990 # Guess yes on native Windows.
19991 mingw
*) gl_cv_C_locale_sans_EILSEQ
="guessing yes" ;;
19995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19996 /* end confdefs.h. */
19997 #include <limits.h>
19998 #include <locale.h>
20006 char *locale = setlocale (LC_ALL, "C");
20009 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
20013 mbstate_t mbs = { 0, };
20014 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
20024 if ac_fn_c_try_run
"$LINENO"; then :
20025 gl_cv_C_locale_sans_EILSEQ
=yes
20027 gl_cv_C_locale_sans_EILSEQ
=no
20029 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20030 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
20036 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
20038 case "$gl_cv_func_mbrtowc_null_arg1" in
20041 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
20046 case "$gl_cv_func_mbrtowc_null_arg2" in
20049 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
20054 case "$gl_cv_func_mbrtowc_retval" in
20057 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
20062 case "$gl_cv_func_mbrtowc_nul_retval" in
20065 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
20070 case "$gl_cv_func_mbrtowc_empty_input" in
20073 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
20078 case $gl_cv_C_locale_sans_EILSEQ in
20081 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
20089 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
20098 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
20116 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
20143 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20148 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20149 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20150 $as_echo_n "(cached) " >&6
20154 # Guess no on AIX and OSF/1.
20155 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20156 # Guess yes otherwise.
20157 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20159 if test $LOCALE_JA != none
; then
20160 if test "$cross_compiling" = yes; then :
20163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20166 #include <locale.h>
20167 #include <string.h>
20168 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20170 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20171 included before <wchar.h>. */
20172 #include <stddef.h>
20178 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20180 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20184 memset (&state, '\0', sizeof (mbstate_t));
20185 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20186 if (mbsinit (&state))
20192 if ac_fn_c_try_run
"$LINENO"; then :
20193 gl_cv_func_mbrtowc_incomplete_state
=yes
20195 gl_cv_func_mbrtowc_incomplete_state
=no
20197 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20198 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20205 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20211 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20212 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
20213 $as_echo_n "(cached) " >&6
20217 # Guess no on Solaris 8.
20218 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
20219 # Guess yes otherwise.
20220 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
20222 if test $LOCALE_ZH_CN != none
; then
20223 if test "$cross_compiling" = yes; then :
20226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20227 /* end confdefs.h. */
20229 #include <locale.h>
20230 #include <stdlib.h>
20231 #include <string.h>
20232 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20234 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20235 included before <wchar.h>. */
20236 #include <stddef.h>
20242 /* This fails on Solaris 8:
20243 mbrtowc returns 2, and sets wc to 0x00F0.
20244 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20245 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20247 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20251 memset (&state, '\0', sizeof (mbstate_t));
20252 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20253 && mbtowc (&wc, input + 3, 6) == 4)
20259 if ac_fn_c_try_run
"$LINENO"; then :
20260 gl_cv_func_mbrtowc_sanitycheck
=yes
20262 gl_cv_func_mbrtowc_sanitycheck
=no
20264 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20265 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20272 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20274 REPLACE_MBSTATE_T
=0
20275 case "$gl_cv_func_mbrtowc_incomplete_state" in
20277 *) REPLACE_MBSTATE_T
=1 ;;
20279 case "$gl_cv_func_mbrtowc_sanitycheck" in
20281 *) REPLACE_MBSTATE_T
=1 ;;
20284 REPLACE_MBSTATE_T
=1
20295 if test $ac_cv_func_mbsinit = no
; then
20297 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
20298 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20300 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20301 included before <wchar.h>. */
20302 #include <stddef.h>
20308 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
20314 cat >>confdefs.h
<<_ACEOF
20315 #define HAVE_DECL_MBSINIT $ac_have_decl
20318 if test $ac_cv_have_decl_mbsinit = yes; then
20322 if test $REPLACE_MBSTATE_T = 1; then
20326 mingw
*) REPLACE_MBSINIT
=1 ;;
20331 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
20340 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
20357 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
20383 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
20388 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
20389 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
20390 $as_echo_n "(cached) " >&6
20394 # Guess no on AIX and OSF/1.
20395 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
20396 # Guess yes otherwise.
20397 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
20399 if test $LOCALE_JA != none
; then
20400 if test "$cross_compiling" = yes; then :
20403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20404 /* end confdefs.h. */
20406 #include <locale.h>
20407 #include <string.h>
20408 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20410 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20411 included before <wchar.h>. */
20412 #include <stddef.h>
20418 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20420 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
20424 memset (&state, '\0', sizeof (mbstate_t));
20425 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
20426 if (mbsinit (&state))
20432 if ac_fn_c_try_run
"$LINENO"; then :
20433 gl_cv_func_mbrtowc_incomplete_state
=yes
20435 gl_cv_func_mbrtowc_incomplete_state
=no
20437 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20438 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
20445 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
20451 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
20452 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
20453 $as_echo_n "(cached) " >&6
20457 # Guess no on Solaris 8.
20458 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
20459 # Guess yes otherwise.
20460 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
20462 if test $LOCALE_ZH_CN != none
; then
20463 if test "$cross_compiling" = yes; then :
20466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20467 /* end confdefs.h. */
20469 #include <locale.h>
20470 #include <stdlib.h>
20471 #include <string.h>
20472 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20474 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20475 included before <wchar.h>. */
20476 #include <stddef.h>
20482 /* This fails on Solaris 8:
20483 mbrtowc returns 2, and sets wc to 0x00F0.
20484 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
20485 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20487 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
20491 memset (&state, '\0', sizeof (mbstate_t));
20492 if (mbrtowc (&wc, input + 3, 6, &state) != 4
20493 && mbtowc (&wc, input + 3, 6) == 4)
20499 if ac_fn_c_try_run
"$LINENO"; then :
20500 gl_cv_func_mbrtowc_sanitycheck
=yes
20502 gl_cv_func_mbrtowc_sanitycheck
=no
20504 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20505 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
20512 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
20514 REPLACE_MBSTATE_T
=0
20515 case "$gl_cv_func_mbrtowc_incomplete_state" in
20517 *) REPLACE_MBSTATE_T
=1 ;;
20519 case "$gl_cv_func_mbrtowc_sanitycheck" in
20521 *) REPLACE_MBSTATE_T
=1 ;;
20524 REPLACE_MBSTATE_T
=1
20535 if test $ac_cv_func_mbsrtowcs = no
; then
20537 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
20538 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20540 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20541 included before <wchar.h>. */
20542 #include <stddef.h>
20548 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
20554 cat >>confdefs.h
<<_ACEOF
20555 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
20558 if test $ac_cv_have_decl_mbsrtowcs = yes; then
20559 REPLACE_MBSRTOWCS
=1
20562 if test $REPLACE_MBSTATE_T = 1; then
20563 REPLACE_MBSRTOWCS
=1
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
20572 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
20573 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
20574 $as_echo_n "(cached) " >&6
20578 # Guess no on HP-UX, Solaris, mingw.
20579 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
20580 # Guess yes otherwise.
20581 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
20583 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
20584 if test "$cross_compiling" = yes; then :
20587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20588 /* end confdefs.h. */
20590 #include <locale.h>
20591 #include <string.h>
20592 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20594 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20595 included before <wchar.h>. */
20596 #include <stddef.h>
20603 /* Test whether the function supports a NULL destination argument.
20604 This fails on native Windows. */
20605 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
20607 const char input[] = "\337er";
20608 const char *src = input;
20611 memset (&state, '\0', sizeof (mbstate_t));
20612 if (mbsrtowcs (NULL, &src, 1, &state) != 3
20616 /* Test whether the function works when started with a conversion state
20617 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
20618 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
20620 const char input[] = "B\303\274\303\237er";
20623 memset (&state, '\0', sizeof (mbstate_t));
20624 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
20625 if (!mbsinit (&state))
20627 const char *src = input + 2;
20628 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
20632 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
20634 const char input[] = "<\306\374\313\334\270\354>";
20637 memset (&state, '\0', sizeof (mbstate_t));
20638 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
20639 if (!mbsinit (&state))
20641 const char *src = input + 4;
20642 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
20646 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
20648 const char input[] = "B\250\271\201\060\211\070er";
20651 memset (&state, '\0', sizeof (mbstate_t));
20652 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
20653 if (!mbsinit (&state))
20655 const char *src = input + 2;
20656 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
20663 if ac_fn_c_try_run
"$LINENO"; then :
20664 gl_cv_func_mbsrtowcs_works
=yes
20666 gl_cv_func_mbsrtowcs_works
=no
20668 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20669 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
20676 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
20678 case "$gl_cv_func_mbsrtowcs_works" in
20680 *) REPLACE_MBSRTOWCS
=1 ;;
20685 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
20694 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
20704 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
20721 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
20726 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
20735 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
20738 for ac_header
in bp-sym.h
20740 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
20741 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
20742 cat >>confdefs.h
<<_ACEOF
20743 #define HAVE_BP_SYM_H 1
20763 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
20769 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
20771 $as_echo_n "checking whether memmem works in linear time... " >&6; }
20772 if ${gl_cv_func_memmem_works_fast+:} false
; then :
20773 $as_echo_n "(cached) " >&6
20775 if test "$cross_compiling" = yes; then :
20776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20777 /* end confdefs.h. */
20779 #include <features.h>
20780 #ifdef __GNU_LIBRARY__
20781 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
20782 && !defined __UCLIBC__
20787 #include <cygwin/version.h>
20788 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
20794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20795 $EGREP "Lucky user" >/dev
/null
2>&1; then :
20796 gl_cv_func_memmem_works_fast
="guessing yes"
20798 gl_cv_func_memmem_works_fast
="guessing no"
20804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20805 /* end confdefs.h. */
20807 #include <signal.h> /* for signal */
20808 #include <string.h> /* for memmem */
20809 #include <stdlib.h> /* for malloc */
20810 #include <unistd.h> /* for alarm */
20811 static void quit (int sig) { _exit (sig + 128); }
20818 size_t m = 1000000;
20819 char *haystack = (char *) malloc (2 * m + 1);
20820 char *needle = (char *) malloc (m + 1);
20821 /* Failure to compile this test due to missing alarm is okay,
20822 since all such platforms (mingw) also lack memmem. */
20823 signal (SIGALRM, quit);
20825 /* Check for quadratic performance. */
20826 if (haystack && needle)
20828 memset (haystack, 'A', 2 * m);
20829 haystack[2 * m] = 'B';
20830 memset (needle, 'A', m);
20832 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
20835 /* Free allocated memory, in case some sanitizer is watching. */
20844 if ac_fn_c_try_run
"$LINENO"; then :
20845 gl_cv_func_memmem_works_fast
=yes
20847 gl_cv_func_memmem_works_fast
=no
20849 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20850 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
20856 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
20857 case "$gl_cv_func_memmem_works_fast" in
20865 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
20874 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
20881 for ac_func
in memmem
20883 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
20884 if test "x$ac_cv_func_memmem" = xyes
; then :
20885 cat >>confdefs.h
<<_ACEOF
20886 #define HAVE_MEMMEM 1
20892 if test $ac_cv_func_memmem = yes; then
20904 if test $ac_cv_have_decl_memmem = no
; then
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
20908 $as_echo_n "checking whether memmem works... " >&6; }
20909 if ${gl_cv_func_memmem_works_always+:} false
; then :
20910 $as_echo_n "(cached) " >&6
20912 if test "$cross_compiling" = yes; then :
20913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20914 /* end confdefs.h. */
20916 #ifdef __GNU_LIBRARY__
20917 #include <features.h>
20918 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
20919 || __GLIBC_MINOR__ > 12)) \
20920 || (__GLIBC__ > 2)) \
20921 || defined __UCLIBC__
20924 #elif defined __CYGWIN__
20925 #include <cygwin/version.h>
20926 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
20934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20935 $EGREP "Lucky user" >/dev
/null
2>&1; then :
20936 gl_cv_func_memmem_works_always
="guessing yes"
20938 gl_cv_func_memmem_works_always
="guessing no"
20944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20945 /* end confdefs.h. */
20947 #include <string.h> /* for memmem */
20948 #define P "_EF_BF_BD"
20949 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
20950 #define NEEDLE P P P P P
20957 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
20959 /* Check for empty needle behavior. */
20961 const char *haystack = "AAA";
20962 if (memmem (haystack, 3, NULL, 0) != haystack)
20971 if ac_fn_c_try_run
"$LINENO"; then :
20972 gl_cv_func_memmem_works_always
=yes
20974 gl_cv_func_memmem_works_always
=no
20976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
20983 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
20984 case "$gl_cv_func_memmem_works_always" in
20993 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
21002 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
21016 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
21026 for ac_func
in mempcpy
21028 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
21029 if test "x$ac_cv_func_mempcpy" = xyes
; then :
21030 cat >>confdefs.h
<<_ACEOF
21031 #define HAVE_MEMPCPY 1
21037 if test $ac_cv_func_mempcpy = no
; then
21041 if test $HAVE_MEMPCPY = 0; then
21050 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
21067 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
21082 if test $ac_cv_have_decl_memrchr = no
; then
21083 HAVE_DECL_MEMRCHR
=0
21086 for ac_func
in memrchr
21088 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
21089 if test "x$ac_cv_func_memrchr" = xyes
; then :
21090 cat >>confdefs.h
<<_ACEOF
21091 #define HAVE_MEMRCHR 1
21098 if test $ac_cv_func_memrchr = no
; then
21107 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
21122 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
21135 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
21136 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
21137 $as_echo_n "(cached) " >&6
21139 rm -rf conftest.dir
21140 if test "$cross_compiling" = yes; then :
21142 # Guess yes on Linux systems.
21143 linux-
* | linux
) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
21144 # Guess yes on glibc systems.
21145 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
21146 # Guess yes on MSVC, no on mingw.
21147 mingw
*) cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21148 /* end confdefs.h. */
21155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21156 $EGREP "Known" >/dev
/null
2>&1; then :
21157 gl_cv_func_mkdir_trailing_slash_works
="guessing yes"
21159 gl_cv_func_mkdir_trailing_slash_works
="guessing no"
21164 # If we don't know, assume the worst.
21165 *) gl_cv_func_mkdir_trailing_slash_works
="guessing no" ;;
21169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21170 /* end confdefs.h. */
21172 # include <sys/types.h>
21173 # include <sys/stat.h>
21178 return mkdir ("conftest.dir/", 0700);
21183 if ac_fn_c_try_run
"$LINENO"; then :
21184 gl_cv_func_mkdir_trailing_slash_works
=yes
21186 gl_cv_func_mkdir_trailing_slash_works
=no
21188 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21189 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21192 rm -rf conftest.dir
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
21197 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
21198 case "$gl_cv_func_mkdir_trailing_slash_works" in
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
21206 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
21207 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
21208 $as_echo_n "(cached) " >&6
21210 rm -rf conftest.dir
21211 if test "$cross_compiling" = yes; then :
21213 # Guess yes on glibc systems.
21214 *-gnu* | gnu
*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
21215 # Guess no on native Windows.
21216 mingw
*) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
21217 # If we don't know, assume the worst.
21218 *) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
21222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21225 # include <sys/types.h>
21226 # include <sys/stat.h>
21231 return !mkdir ("conftest.dir/./", 0700);
21236 if ac_fn_c_try_run
"$LINENO"; then :
21237 gl_cv_func_mkdir_trailing_dot_works
=yes
21239 gl_cv_func_mkdir_trailing_dot_works
=no
21241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21245 rm -rf conftest.dir
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
21250 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
21251 case "$gl_cv_func_mkdir_trailing_dot_works" in
21256 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
21261 if test $REPLACE_MKDIR = 1; then
21270 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
21283 if test $ac_cv_func_mkstemp = yes; then
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
21285 $as_echo_n "checking for working mkstemp... " >&6; }
21286 if ${gl_cv_func_working_mkstemp+:} false
; then :
21287 $as_echo_n "(cached) " >&6
21290 mkdir conftest.mkstemp
21291 if test "$cross_compiling" = yes; then :
21293 # Guess yes on glibc systems.
21294 *-gnu* | gnu
*) gl_cv_func_working_mkstemp
="guessing yes" ;;
21295 # Guess no on native Windows.
21296 mingw
*) gl_cv_func_working_mkstemp
="guessing no" ;;
21297 # If we don't know, assume the worst.
21298 *) gl_cv_func_working_mkstemp
="guessing no" ;;
21302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21303 /* end confdefs.h. */
21304 $ac_includes_default
21310 off_t large = (off_t) 4294967295u;
21312 large = 2147483647;
21314 for (i = 0; i < 70; i++)
21316 char templ[] = "conftest.mkstemp/coXXXXXX";
21317 int (*mkstemp_function) (char *) = mkstemp;
21318 int fd = mkstemp_function (templ);
21324 if (lseek (fd, large, SEEK_SET) != large)
21326 if (fstat (fd, &st) < 0)
21328 else if (st.st_mode & 0077)
21339 if ac_fn_c_try_run
"$LINENO"; then :
21340 gl_cv_func_working_mkstemp
=yes
21342 gl_cv_func_working_mkstemp
=no
21344 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21345 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21348 rm -rf conftest.mkstemp
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
21352 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
21353 case "$gl_cv_func_working_mkstemp" in
21363 if test $HAVE_MKSTEMP = 0 ||
test $REPLACE_MKSTEMP = 1; then
21372 gl_LIBOBJS
="$gl_LIBOBJS mkstemp.$ac_objext"
21388 $as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
21393 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21402 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
21406 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21415 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21420 cat >>confdefs.h
<<_ACEOF
21421 #define GNULIB_MSVC_NOTHROW 1
21441 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
21445 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
21446 if ${gl_cv_func_open_slash+:} false
; then :
21447 $as_echo_n "(cached) " >&6
21449 # Assume that if we have lstat, we can also check symlinks.
21450 if test $ac_cv_func_lstat = yes; then
21452 ln -s conftest.tmp conftest.lnk
21454 if test "$cross_compiling" = yes; then :
21457 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
21458 gl_cv_func_open_slash
="guessing no" ;;
21460 gl_cv_func_open_slash
="guessing yes" ;;
21464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21465 /* end confdefs.h. */
21469 # include <unistd.h>
21475 if (open ("conftest.lnk/", O_RDONLY) != -1)
21478 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
21483 if ac_fn_c_try_run
"$LINENO"; then :
21484 gl_cv_func_open_slash
=yes
21486 gl_cv_func_open_slash
=no
21488 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21489 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21492 rm -f conftest.sl conftest.tmp conftest.lnk
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
21496 $as_echo "$gl_cv_func_open_slash" >&6; }
21497 case "$gl_cv_func_open_slash" in
21500 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
21508 if test $REPLACE_OPEN = 0; then
21518 if test $ac_cv_func_fchdir = no
; then
21522 if test $HAVE_FCHDIR = 0; then
21529 if test $REPLACE_OPEN = 1; then
21538 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
21556 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
21572 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
21576 # Solaris 10 lacks O_CLOEXEC.
21577 # Solaris 9 has *at functions, but uniformly mishandles trailing
21578 # slash in all of them.
21586 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
21595 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
21604 cat >>confdefs.h
<<_ACEOF
21605 #define GNULIB_OPENAT 1
21619 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
21626 for ac_func
in opendir
21628 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
21629 if test "x$ac_cv_func_opendir" = xyes
; then :
21630 cat >>confdefs.h
<<_ACEOF
21631 #define HAVE_OPENDIR 1
21637 if test $ac_cv_func_opendir = no
; then
21650 if test $ac_cv_func_fchdir = no
; then
21654 if test $HAVE_FCHDIR = 0; then
21655 if test $HAVE_OPENDIR = 1; then
21660 case $host_os,$HAVE_OPENDIR in
21662 REPLACE_OPENDIR
=1;;
21665 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
21674 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
21688 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
21705 for ac_func
in rawmemchr
21707 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
21708 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
21709 cat >>confdefs.h
<<_ACEOF
21710 #define HAVE_RAWMEMCHR 1
21716 if test $ac_cv_func_rawmemchr = no
; then
21720 if test $HAVE_RAWMEMCHR = 0; then
21729 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
21744 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
21751 for ac_func
in readdir
21753 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
21754 if test "x$ac_cv_func_readdir" = xyes
; then :
21755 cat >>confdefs.h
<<_ACEOF
21756 #define HAVE_READDIR 1
21762 if test $ac_cv_func_readdir = no
; then
21766 if test $HAVE_READDIR = 0; then
21775 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
21789 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
21802 if test $ac_cv_func_readlink = no
; then
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21806 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21807 if ${gl_cv_decl_readlink_works+:} false
; then :
21808 $as_echo_n "(cached) " >&6
21810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21811 /* end confdefs.h. */
21812 #include <unistd.h>
21813 /* Cause compilation failure if original declaration has wrong type. */
21814 ssize_t readlink (const char *, char *, size_t);
21823 if ac_fn_c_try_compile
"$LINENO"; then :
21824 gl_cv_decl_readlink_works
=yes
21826 gl_cv_decl_readlink_works
=no
21828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21831 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21833 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21834 if ${gl_cv_func_readlink_works+:} false
; then :
21835 $as_echo_n "(cached) " >&6
21837 # We have readlink, so assume ln -s works.
21838 ln -s conftest.no-such conftest.link
21839 ln -s conftest.link conftest.lnk2
21840 if test "$cross_compiling" = yes; then :
21842 # Guess yes on Linux systems.
21843 linux-
* | linux
) gl_cv_func_readlink_works
="guessing yes" ;;
21844 # Guess yes on glibc systems.
21845 *-gnu* | gnu
*) gl_cv_func_readlink_works
="guessing yes" ;;
21846 # If we don't know, assume the worst.
21847 *) gl_cv_func_readlink_works
="guessing no" ;;
21851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21852 /* end confdefs.h. */
21853 #include <unistd.h>
21859 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
21864 if ac_fn_c_try_run
"$LINENO"; then :
21865 gl_cv_func_readlink_works
=yes
21867 gl_cv_func_readlink_works
=no
21869 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21870 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21873 rm -f conftest.link conftest.lnk2
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
21876 $as_echo "$gl_cv_func_readlink_works" >&6; }
21877 case "$gl_cv_func_readlink_works" in
21879 if test "$gl_cv_decl_readlink_works" != yes; then
21885 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
21892 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
21901 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
21918 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
21925 if test $gl_cv_func_malloc_posix = yes; then
21927 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
21933 if test $REPLACE_REALLOC = 1; then
21942 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
21950 GNULIB_REALLOC_POSIX
=1
21956 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
21972 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
21973 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
21974 $as_echo_n "(cached) " >&6
21976 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
21977 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
21978 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
21979 # Assume that if we have lstat, we can also check symlinks.
21980 if test $ac_cv_func_lstat = yes; then
21981 ln -s conftest.f conftest.lnk
21983 if test "$cross_compiling" = yes; then :
21985 # Guess yes on Linux systems.
21986 linux-
* | linux
) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
21987 # Guess yes on glibc systems.
21988 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
21989 # Guess no on native Windows.
21990 mingw
*) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
21991 # If we don't know, assume the worst.
21992 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
21996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21997 /* end confdefs.h. */
21999 # include <stdio.h>
22000 # include <stdlib.h>
22006 if (rename ("conftest.f1", "conftest.f2/") == 0)
22008 if (rename ("conftest.d1", "conftest.d2/") != 0)
22011 if (rename ("conftest.f", "conftest.lnk/") == 0)
22020 if ac_fn_c_try_run
"$LINENO"; then :
22021 gl_cv_func_rename_slash_dst_works
=yes
22023 gl_cv_func_rename_slash_dst_works
=no
22025 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22026 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22029 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
22033 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
22034 case "$gl_cv_func_rename_slash_dst_works" in
22039 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
22045 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
22046 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
22047 $as_echo_n "(cached) " >&6
22049 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22050 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
22051 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
22052 # Assume that if we have lstat, we can also check symlinks.
22053 if test $ac_cv_func_lstat = yes; then
22054 ln -s conftest.f conftest.lnk
22056 if test "$cross_compiling" = yes; then :
22058 # Guess yes on Linux systems.
22059 linux-
* | linux
) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
22060 # Guess yes on glibc systems.
22061 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
22062 # Guess yes on native Windows.
22063 mingw
*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
22064 # If we don't know, assume the worst.
22065 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
22069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22070 /* end confdefs.h. */
22072 # include <stdio.h>
22073 # include <stdlib.h>
22079 if (rename ("conftest.f1/", "conftest.d3") == 0)
22081 if (rename ("conftest.d1/", "conftest.d2") != 0)
22084 if (rename ("conftest.lnk/", "conftest.f") == 0)
22093 if ac_fn_c_try_run
"$LINENO"; then :
22094 gl_cv_func_rename_slash_src_works
=yes
22096 gl_cv_func_rename_slash_src_works
=no
22098 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22099 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22102 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
22106 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
22107 case "$gl_cv_func_rename_slash_src_works" in
22112 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
22125 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
22126 if ${gl_cv_func_rename_link_works+:} false
; then :
22127 $as_echo_n "(cached) " >&6
22129 if test $ac_cv_func_link = yes; then
22130 rm -rf conftest.f conftest.f1 conftest.f2
22131 if touch conftest.f conftest.f2
&& ln conftest.f conftest.f1
&&
22132 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
22133 if test "$cross_compiling" = yes; then :
22135 # Guess yes on Linux systems.
22136 linux-
* | linux
) gl_cv_func_rename_link_works
="guessing yes" ;;
22137 # Guess yes on glibc systems.
22138 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
22139 # Guess yes on native Windows.
22140 mingw
*) gl_cv_func_rename_link_works
="guessing yes" ;;
22141 # If we don't know, assume the worst.
22142 *) gl_cv_func_rename_link_works
="guessing no" ;;
22146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22147 /* end confdefs.h. */
22149 # include <errno.h>
22150 # include <stdio.h>
22151 # include <stdlib.h>
22152 # include <unistd.h>
22158 if (rename ("conftest.f", "conftest.f1"))
22160 if (unlink ("conftest.f1"))
22163 /* Allow either the POSIX-required behavior, where the
22164 previous rename kept conftest.f, or the (better) NetBSD
22165 behavior, where it removed conftest.f. */
22166 if (rename ("conftest.f", "conftest.f") != 0
22167 && errno != ENOENT)
22170 if (rename ("conftest.f1", "conftest.f1") == 0)
22172 if (rename ("conftest.f2", "conftest.f2") != 0)
22180 if ac_fn_c_try_run
"$LINENO"; then :
22181 gl_cv_func_rename_link_works
=yes
22183 gl_cv_func_rename_link_works
=no
22185 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22186 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22190 gl_cv_func_rename_link_works
="guessing no"
22192 rm -rf conftest.f conftest.f1 conftest.f2
22194 gl_cv_func_rename_link_works
=yes
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
22199 $as_echo "$gl_cv_func_rename_link_works" >&6; }
22200 case "$gl_cv_func_rename_link_works" in
22205 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
22211 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
22212 if ${gl_cv_func_rename_dest_works+:} false
; then :
22213 $as_echo_n "(cached) " >&6
22215 rm -rf conftest.f conftest.d1 conftest.d2
22216 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
22217 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
22218 if test "$cross_compiling" = yes; then :
22220 # Guess yes on Linux systems.
22221 linux-
* | linux
) gl_cv_func_rename_dest_works
="guessing yes" ;;
22222 # Guess yes on glibc systems.
22223 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
22224 # Guess no on native Windows.
22225 mingw
*) gl_cv_func_rename_dest_works
="guessing no" ;;
22226 # If we don't know, assume the worst.
22227 *) gl_cv_func_rename_dest_works
="guessing no" ;;
22231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22232 /* end confdefs.h. */
22234 # include <stdio.h>
22235 # include <stdlib.h>
22241 if (rename ("conftest.d1", "conftest.d2") != 0)
22243 if (rename ("conftest.d2", "conftest.f") == 0)
22251 if ac_fn_c_try_run
"$LINENO"; then :
22252 gl_cv_func_rename_dest_works
=yes
22254 gl_cv_func_rename_dest_works
=no
22256 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22257 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22260 rm -rf conftest.f conftest.d1 conftest.d2
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
22264 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
22265 case "$gl_cv_func_rename_dest_works" in
22270 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
22275 if test $REPLACE_RENAME = 1; then
22284 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
22298 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
22305 for ac_func
in rewinddir
22307 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
22308 if test "x$ac_cv_func_rewinddir" = xyes
; then :
22309 cat >>confdefs.h
<<_ACEOF
22310 #define HAVE_REWINDDIR 1
22316 if test $ac_cv_func_rewinddir = no
; then
22320 if test $HAVE_REWINDDIR = 0; then
22329 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
22343 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
22357 $as_echo_n "checking whether rmdir works... " >&6; }
22358 if ${gl_cv_func_rmdir_works+:} false
; then :
22359 $as_echo_n "(cached) " >&6
22362 touch conftest.
file
22363 if test "$cross_compiling" = yes; then :
22365 # Guess yes on Linux systems.
22366 linux-
* | linux
) gl_cv_func_rmdir_works
="guessing yes" ;;
22367 # Guess yes on glibc systems.
22368 *-gnu* | gnu
*) gl_cv_func_rmdir_works
="guessing yes" ;;
22369 # Guess no on native Windows.
22370 mingw
*) gl_cv_func_rmdir_works
="guessing no" ;;
22371 # If we don't know, assume the worst.
22372 *) gl_cv_func_rmdir_works
="guessing no" ;;
22376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22381 # include <unistd.h>
22382 #else /* on Windows with MSVC */
22383 # include <direct.h>
22390 if (!rmdir ("conftest.file/"))
22392 else if (errno != ENOTDIR)
22394 if (!rmdir ("conftest.dir/./"))
22402 if ac_fn_c_try_run
"$LINENO"; then :
22403 gl_cv_func_rmdir_works
=yes
22405 gl_cv_func_rmdir_works
=no
22407 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22408 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22411 rm -rf conftest.dir conftest.
file
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
22414 $as_echo "$gl_cv_func_rmdir_works" >&6; }
22415 case "$gl_cv_func_rmdir_works" in
22422 if test $REPLACE_RMDIR = 1; then
22431 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
22445 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
22460 if test $ac_cv_func_setenv = no
; then
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
22464 $as_echo_n "checking whether setenv validates arguments... " >&6; }
22465 if ${gl_cv_func_setenv_works+:} false
; then :
22466 $as_echo_n "(cached) " >&6
22468 if test "$cross_compiling" = yes; then :
22470 # Guess yes on glibc systems.
22471 *-gnu* | gnu
*) gl_cv_func_setenv_works
="guessing yes" ;;
22472 # If we don't know, assume the worst.
22473 *) gl_cv_func_setenv_works
="guessing no" ;;
22477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22478 /* end confdefs.h. */
22480 #include <stdlib.h>
22482 #include <string.h>
22490 if (setenv ("", "", 0) != -1)
22492 else if (errno != EINVAL)
22496 if (setenv ("a", "=", 1) != 0)
22498 else if (strcmp (getenv ("a"), "=") != 0)
22507 if ac_fn_c_try_run
"$LINENO"; then :
22508 gl_cv_func_setenv_works
=yes
22510 gl_cv_func_setenv_works
=no
22512 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22513 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
22518 $as_echo "$gl_cv_func_setenv_works" >&6; }
22519 case "$gl_cv_func_setenv_works" in
22527 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
22536 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
22550 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
22565 if test $gl_cv_have_include_next = yes; then
22566 gl_cv_next_signal_h
='<'signal.h
'>'
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22569 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22570 if ${gl_cv_next_signal_h+:} false
; then :
22571 $as_echo_n "(cached) " >&6
22576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22577 /* end confdefs.h. */
22578 #include <signal.h>
22581 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
22582 *) gl_absname_cpp
="$ac_cpp" ;;
22587 gl_dirsep_regex
='[/\\]'
22590 gl_dirsep_regex
='\/'
22593 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
22594 gl_header_literal_regex
=`echo 'signal.h' \
22595 | sed -e "$gl_make_literal_regex_sed"`
22596 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22597 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22603 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22604 sed -n "$gl_absolute_header_sed"`
22606 gl_header
=$gl_cv_absolute_signal_h
22607 gl_cv_next_signal_h
='"'$gl_header'"'
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22612 $as_echo "$gl_cv_next_signal_h" >&6; }
22614 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
22616 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
22617 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22618 gl_next_as_first_directive
='<'signal.h
'>'
22620 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22621 gl_next_as_first_directive
=$gl_cv_next_signal_h
22623 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
22629 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22630 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22631 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22632 #include <signal.h>
22635 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
22638 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
22647 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22648 #include <signal.h>
22651 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
22654 HAVE_SIGHANDLER_T
=0
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22664 $as_echo_n "checking for ssize_t... " >&6; }
22665 if ${gt_cv_ssize_t+:} false
; then :
22666 $as_echo_n "(cached) " >&6
22668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22669 /* end confdefs.h. */
22670 #include <sys/types.h>
22674 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22680 if ac_fn_c_try_compile
"$LINENO"; then :
22685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22688 $as_echo "$gt_cv_ssize_t" >&6; }
22689 if test $gt_cv_ssize_t = no
; then
22691 $as_echo "#define ssize_t int" >>confdefs.h
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
22711 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
22712 if ${gl_cv_func_stat_file_slash+:} false
; then :
22713 $as_echo_n "(cached) " >&6
22716 # Assume that if we have lstat, we can also check symlinks.
22717 if test $ac_cv_func_lstat = yes; then
22718 ln -s conftest.tmp conftest.lnk
22720 if test "$cross_compiling" = yes; then :
22722 # Guess yes on Linux systems.
22723 linux-
* | linux
) gl_cv_func_stat_file_slash
="guessing yes" ;;
22724 # Guess yes on glibc systems.
22725 *-gnu* | gnu
*) gl_cv_func_stat_file_slash
="guessing yes" ;;
22726 # If we don't know, assume the worst.
22727 *) gl_cv_func_stat_file_slash
="guessing no" ;;
22731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22732 /* end confdefs.h. */
22733 #include <sys/stat.h>
22740 if (!stat ("conftest.tmp/", &st))
22743 if (!stat ("conftest.lnk/", &st))
22752 if ac_fn_c_try_run
"$LINENO"; then :
22753 gl_cv_func_stat_file_slash
=yes
22755 gl_cv_func_stat_file_slash
=no
22757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22758 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22761 rm -f conftest.tmp conftest.lnk
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
22764 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
22765 case $gl_cv_func_stat_file_slash in
22769 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
22779 if test $REPLACE_STAT = 1; then
22788 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
22800 gl_LIBOBJS
="$gl_LIBOBJS stat-w32.$ac_objext"
22820 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
22834 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>
22835 #include <sys/stat.h>
22837 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
; then :
22839 cat >>confdefs.h
<<_ACEOF
22840 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22844 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22845 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false
; then :
22846 $as_echo_n "(cached) " >&6
22848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h. */
22851 #include <sys/types.h>
22852 #include <sys/stat.h>
22853 #if HAVE_SYS_TIME_H
22854 # include <sys/time.h>
22857 struct timespec ts;
22870 if ac_fn_c_try_compile
"$LINENO"; then :
22871 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=yes
22873 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec
=no
22875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22878 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22879 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22881 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22885 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>
22886 #include <sys/stat.h>
22888 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
; then :
22890 cat >>confdefs.h
<<_ACEOF
22891 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22896 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22897 #include <sys/stat.h>
22899 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
; then :
22901 cat >>confdefs.h
<<_ACEOF
22902 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22907 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>
22908 #include <sys/stat.h>
22910 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
; then :
22912 cat >>confdefs.h
<<_ACEOF
22913 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22935 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>
22936 #include <sys/stat.h>
22938 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
; then :
22940 cat >>confdefs.h
<<_ACEOF
22941 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22946 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22947 #include <sys/stat.h>
22949 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
; then :
22951 cat >>confdefs.h
<<_ACEOF
22952 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22957 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>
22958 #include <sys/stat.h>
22960 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
; then :
22962 cat >>confdefs.h
<<_ACEOF
22963 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22977 # Define two additional variables used in the Makefile substitution.
22979 if test "$ac_cv_header_stdbool_h" = yes; then
22982 STDBOOL_H
='stdbool.h'
22985 if test -n "$STDBOOL_H"; then
22986 GL_GENERATE_STDBOOL_H_TRUE
=
22987 GL_GENERATE_STDBOOL_H_FALSE
='#'
22989 GL_GENERATE_STDBOOL_H_TRUE
='#'
22990 GL_GENERATE_STDBOOL_H_FALSE
=
22994 if test "$ac_cv_type__Bool" = yes; then
23005 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
23008 if test "x$ac_cv_type_max_align_t" = xyes
; then :
23011 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
23014 if test $gt_cv_c_wchar_t = no
; then
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23019 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23020 if ${gl_cv_decl_null_works+:} false
; then :
23021 $as_echo_n "(cached) " >&6
23023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23024 /* end confdefs.h. */
23025 #include <stddef.h>
23026 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23036 if ac_fn_c_try_compile
"$LINENO"; then :
23037 gl_cv_decl_null_works
=yes
23039 gl_cv_decl_null_works
=no
23041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23044 $as_echo "$gl_cv_decl_null_works" >&6; }
23045 if test $gl_cv_decl_null_works = no
; then
23050 if test -n "$STDDEF_H"; then
23051 GL_GENERATE_STDDEF_H_TRUE
=
23052 GL_GENERATE_STDDEF_H_FALSE
='#'
23054 GL_GENERATE_STDDEF_H_TRUE
='#'
23055 GL_GENERATE_STDDEF_H_FALSE
=
23058 if test -n "$STDDEF_H"; then
23067 if test $gl_cv_have_include_next = yes; then
23068 gl_cv_next_stddef_h
='<'stddef.h
'>'
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23071 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23072 if ${gl_cv_next_stddef_h+:} false
; then :
23073 $as_echo_n "(cached) " >&6
23078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23079 /* end confdefs.h. */
23080 #include <stddef.h>
23083 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23084 *) gl_absname_cpp
="$ac_cpp" ;;
23089 gl_dirsep_regex
='[/\\]'
23092 gl_dirsep_regex
='\/'
23095 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23096 gl_header_literal_regex
=`echo 'stddef.h' \
23097 | sed -e "$gl_make_literal_regex_sed"`
23098 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23099 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23105 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23106 sed -n "$gl_absolute_header_sed"`
23108 gl_header
=$gl_cv_absolute_stddef_h
23109 gl_cv_next_stddef_h
='"'$gl_header'"'
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23114 $as_echo "$gl_cv_next_stddef_h" >&6; }
23116 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
23118 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23119 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23120 gl_next_as_first_directive
='<'stddef.h
'>'
23122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23123 gl_next_as_first_directive
=$gl_cv_next_stddef_h
23125 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
23135 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
23146 if test $gl_cv_have_include_next = yes; then
23147 gl_cv_next_stdio_h
='<'stdio.h
'>'
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23150 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23151 if ${gl_cv_next_stdio_h+:} false
; then :
23152 $as_echo_n "(cached) " >&6
23157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23158 /* end confdefs.h. */
23162 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23163 *) gl_absname_cpp
="$ac_cpp" ;;
23168 gl_dirsep_regex
='[/\\]'
23171 gl_dirsep_regex
='\/'
23174 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23175 gl_header_literal_regex
=`echo 'stdio.h' \
23176 | sed -e "$gl_make_literal_regex_sed"`
23177 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23178 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23184 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23185 sed -n "$gl_absolute_header_sed"`
23187 gl_header
=$gl_cv_absolute_stdio_h
23188 gl_cv_next_stdio_h
='"'$gl_header'"'
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23193 $as_echo "$gl_cv_next_stdio_h" >&6; }
23195 NEXT_STDIO_H
=$gl_cv_next_stdio_h
23197 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23198 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23199 gl_next_as_first_directive
='<'stdio.h
'>'
23201 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23202 gl_next_as_first_directive
=$gl_cv_next_stdio_h
23204 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
23211 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
23212 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
23213 $as_echo_n "(cached) " >&6
23215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23216 /* end confdefs.h. */
23218 #define __STDC_FORMAT_MACROS 1
23220 #include <inttypes.h>
23221 /* For non-mingw systems, compilation will trivially succeed.
23222 For mingw, compilation will succeed for older mingw (system
23223 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
23224 #if (defined _WIN32 && ! defined __CYGWIN__) && \
23225 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
23226 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
23237 if ac_fn_c_try_compile
"$LINENO"; then :
23238 gl_cv_func_printf_attribute_flavor
=system
23240 gl_cv_func_printf_attribute_flavor
=gnu
23242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
23245 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
23246 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
23248 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
23255 cat >>confdefs.h
<<_ACEOF
23256 #define GNULIB_FSCANF 1
23263 cat >>confdefs.h
<<_ACEOF
23264 #define GNULIB_SCANF 1
23302 if test $gl_cv_have_include_next = yes; then
23303 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23306 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23307 if ${gl_cv_next_stdlib_h+:} false
; then :
23308 $as_echo_n "(cached) " >&6
23313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23314 /* end confdefs.h. */
23315 #include <stdlib.h>
23318 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23319 *) gl_absname_cpp
="$ac_cpp" ;;
23324 gl_dirsep_regex
='[/\\]'
23327 gl_dirsep_regex
='\/'
23330 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23331 gl_header_literal_regex
=`echo 'stdlib.h' \
23332 | sed -e "$gl_make_literal_regex_sed"`
23333 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23334 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23340 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23341 sed -n "$gl_absolute_header_sed"`
23343 gl_header
=$gl_cv_absolute_stdlib_h
23344 gl_cv_next_stdlib_h
='"'$gl_header'"'
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23349 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23351 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
23353 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23354 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23355 gl_next_as_first_directive
='<'stdlib.h
'>'
23357 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23358 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
23360 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
23374 for ac_func
in strchrnul
23376 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
23377 if test "x$ac_cv_func_strchrnul" = xyes
; then :
23378 cat >>confdefs.h
<<_ACEOF
23379 #define HAVE_STRCHRNUL 1
23385 if test $ac_cv_func_strchrnul = no
; then
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
23389 $as_echo_n "checking whether strchrnul works... " >&6; }
23390 if ${gl_cv_func_strchrnul_works+:} false
; then :
23391 $as_echo_n "(cached) " >&6
23393 if test "$cross_compiling" = yes; then :
23394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23395 /* end confdefs.h. */
23397 #if defined __CYGWIN__
23398 #include <cygwin/version.h>
23399 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
23407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23408 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23409 gl_cv_func_strchrnul_works
="guessing yes"
23411 gl_cv_func_strchrnul_works
="guessing no"
23417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23418 /* end confdefs.h. */
23420 #include <string.h> /* for strchrnul */
23425 const char *buf = "a";
23426 return strchrnul (buf, 'b') != buf + 1;
23432 if ac_fn_c_try_run
"$LINENO"; then :
23433 gl_cv_func_strchrnul_works
=yes
23435 gl_cv_func_strchrnul_works
=no
23437 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23438 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
23444 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
23445 case "$gl_cv_func_strchrnul_works" in
23447 *) REPLACE_STRCHRNUL
=1 ;;
23451 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
23460 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
23475 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
23489 if test $ac_cv_func_strdup = yes; then
23490 if test $gl_cv_func_malloc_posix != yes; then
23501 if test $ac_cv_have_decl_strdup = no
; then
23505 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
23514 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
23529 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
23538 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
23540 $as_echo_n "checking for working strerror function... " >&6; }
23541 if ${gl_cv_func_working_strerror+:} false
; then :
23542 $as_echo_n "(cached) " >&6
23544 if test "$cross_compiling" = yes; then :
23546 # Guess yes on glibc systems.
23547 *-gnu* | gnu
*) gl_cv_func_working_strerror
="guessing yes" ;;
23548 # If we don't know, assume the worst.
23549 *) gl_cv_func_working_strerror
="guessing no" ;;
23553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23554 /* end confdefs.h. */
23555 #include <string.h>
23560 if (!*strerror (-2)) return 1;
23565 if ac_fn_c_try_run
"$LINENO"; then :
23566 gl_cv_func_working_strerror
=yes
23568 gl_cv_func_working_strerror
=no
23570 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23571 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
23577 $as_echo "$gl_cv_func_working_strerror" >&6; }
23578 case "$gl_cv_func_working_strerror" in
23589 if test $REPLACE_STRERROR = 1; then
23598 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
23603 cat >>confdefs.h
<<_ACEOF
23604 #define GNULIB_STRERROR 1
23619 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
23625 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
23634 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
23646 if test $ac_cv_header_sys_socket_h != yes; then
23647 for ac_header
in winsock2.h
23649 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23650 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
23651 cat >>confdefs.h
<<_ACEOF
23652 #define HAVE_WINSOCK2_H 1
23660 if test "$ac_cv_header_winsock2_h" = yes; then
23662 UNISTD_H_HAVE_WINSOCK2_H
=1
23663 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
23675 if test $REPLACE_STRSTR = 0; then
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
23677 $as_echo_n "checking whether strstr works in linear time... " >&6; }
23678 if ${gl_cv_func_strstr_linear+:} false
; then :
23679 $as_echo_n "(cached) " >&6
23681 if test "$cross_compiling" = yes; then :
23682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23683 /* end confdefs.h. */
23685 #include <features.h>
23686 #ifdef __GNU_LIBRARY__
23687 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
23688 && !(defined __i386__ || defined __x86_64__) \
23689 && !defined __UCLIBC__
23694 #include <cygwin/version.h>
23695 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
23701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23702 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23703 gl_cv_func_strstr_linear
="guessing yes"
23705 gl_cv_func_strstr_linear
="guessing no"
23711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23712 /* end confdefs.h. */
23715 /* z/OS does not deliver signals while strstr() is running (thanks to
23716 restrictions on its LE runtime), which prevents us from limiting the
23717 running time of this test. */
23718 # error "This test does not work properly on z/OS"
23720 #include <signal.h> /* for signal */
23721 #include <string.h> /* for strstr */
23722 #include <stdlib.h> /* for malloc */
23723 #include <unistd.h> /* for alarm */
23724 static void quit (int sig) { _exit (sig + 128); }
23731 size_t m = 1000000;
23732 char *haystack = (char *) malloc (2 * m + 2);
23733 char *needle = (char *) malloc (m + 2);
23734 /* Failure to compile this test due to missing alarm is okay,
23735 since all such platforms (mingw) also have quadratic strstr. */
23736 signal (SIGALRM, quit);
23738 /* Check for quadratic performance. */
23739 if (haystack && needle)
23741 memset (haystack, 'A', 2 * m);
23742 haystack[2 * m] = 'B';
23743 haystack[2 * m + 1] = 0;
23744 memset (needle, 'A', m);
23747 if (!strstr (haystack, needle))
23750 /* Free allocated memory, in case some sanitizer is watching. */
23759 if ac_fn_c_try_run
"$LINENO"; then :
23760 gl_cv_func_strstr_linear
=yes
23762 gl_cv_func_strstr_linear
=no
23764 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23765 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
23771 $as_echo "$gl_cv_func_strstr_linear" >&6; }
23772 case "$gl_cv_func_strstr_linear" in
23780 if test $REPLACE_STRSTR = 1; then
23789 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
23795 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
23799 $as_echo_n "checking whether strstr works... " >&6; }
23800 if ${gl_cv_func_strstr_works_always+:} false
; then :
23801 $as_echo_n "(cached) " >&6
23803 if test "$cross_compiling" = yes; then :
23804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23805 /* end confdefs.h. */
23807 #ifdef __GNU_LIBRARY__
23808 #include <features.h>
23809 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
23810 || defined __UCLIBC__
23813 #elif defined __CYGWIN__
23814 #include <cygwin/version.h>
23815 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
23823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23824 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23825 gl_cv_func_strstr_works_always
="guessing yes"
23827 gl_cv_func_strstr_works_always
="guessing no"
23833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23834 /* end confdefs.h. */
23836 #include <string.h> /* for strstr */
23837 #define P "_EF_BF_BD"
23838 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
23839 #define NEEDLE P P P P P
23844 return !!strstr (HAYSTACK, NEEDLE);
23850 if ac_fn_c_try_run
"$LINENO"; then :
23851 gl_cv_func_strstr_works_always
=yes
23853 gl_cv_func_strstr_works_always
=no
23855 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23856 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
23862 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
23863 case "$gl_cv_func_strstr_works_always" in
23871 if test $REPLACE_STRSTR = 1; then
23880 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
23894 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
23902 for ac_func
in strtok_r
23904 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
23905 if test "x$ac_cv_func_strtok_r" = xyes
; then :
23906 cat >>confdefs.h
<<_ACEOF
23907 #define HAVE_STRTOK_R 1
23913 if test $ac_cv_func_strtok_r = yes; then
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
23916 $as_echo_n "checking whether strtok_r works... " >&6; }
23917 if ${gl_cv_func_strtok_r_works+:} false
; then :
23918 $as_echo_n "(cached) " >&6
23920 if test "$cross_compiling" = yes; then :
23922 # Guess no on glibc systems.
23923 *-gnu* | gnu
*) gl_cv_func_strtok_r_works
="guessing no" ;;
23924 # Guess yes on native Windows.
23925 mingw
*) gl_cv_func_strtok_r_works
="guessing yes" ;;
23926 *) gl_cv_func_strtok_r_works
="guessing yes" ;;
23930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h. */
23933 #ifndef __OPTIMIZE__
23934 # define __OPTIMIZE__ 1
23936 #undef __OPTIMIZE_SIZE__
23937 #undef __NO_INLINE__
23938 #include <stdlib.h>
23939 #include <string.h>
23944 static const char dummy[] = "\177\01a";
23945 char delimiters[] = "xxxxxxxx";
23946 char *save_ptr = (char *) dummy;
23947 strtok_r (delimiters, "x", &save_ptr);
23948 strtok_r (NULL, "x", &save_ptr);
23956 if ac_fn_c_try_run
"$LINENO"; then :
23957 gl_cv_func_strtok_r_works
=yes
23959 gl_cv_func_strtok_r_works
=no
23961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
23968 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
23969 case "$gl_cv_func_strtok_r_works" in
23971 UNDEFINE_STRTOK_R
=1
23984 if test $ac_cv_have_decl_strtok_r = no
; then
23985 HAVE_DECL_STRTOK_R
=0
23988 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
23997 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
24014 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
24038 if test $gl_cv_have_include_next = yes; then
24039 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24042 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24043 if ${gl_cv_next_sys_stat_h+:} false
; then :
24044 $as_echo_n "(cached) " >&6
24047 if test $ac_cv_header_sys_stat_h = yes; then
24052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24053 /* end confdefs.h. */
24054 #include <sys/stat.h>
24057 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24058 *) gl_absname_cpp
="$ac_cpp" ;;
24063 gl_dirsep_regex
='[/\\]'
24066 gl_dirsep_regex
='\/'
24069 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24070 gl_header_literal_regex
=`echo 'sys/stat.h' \
24071 | sed -e "$gl_make_literal_regex_sed"`
24072 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24073 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24079 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24080 sed -n "$gl_absolute_header_sed"`
24082 gl_header
=$gl_cv_absolute_sys_stat_h
24083 gl_cv_next_sys_stat_h
='"'$gl_header'"'
24085 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24091 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24093 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
24095 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24097 gl_next_as_first_directive
='<'sys
/stat.h
'>'
24099 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24100 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
24102 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
24111 WINDOWS_STAT_TIMESPEC
=0
24120 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24121 #include <sys/stat.h>
24123 if test "x$ac_cv_type_nlink_t" = xyes
; then :
24127 $as_echo "#define nlink_t int" >>confdefs.h
24169 if test $gl_cv_have_include_next = yes; then
24170 gl_cv_next_unistd_h
='<'unistd.h
'>'
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24173 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24174 if ${gl_cv_next_unistd_h+:} false
; then :
24175 $as_echo_n "(cached) " >&6
24178 if test $ac_cv_header_unistd_h = yes; then
24183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24184 /* end confdefs.h. */
24185 #include <unistd.h>
24188 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24189 *) gl_absname_cpp
="$ac_cpp" ;;
24194 gl_dirsep_regex
='[/\\]'
24197 gl_dirsep_regex
='\/'
24200 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24201 gl_header_literal_regex
=`echo 'unistd.h' \
24202 | sed -e "$gl_make_literal_regex_sed"`
24203 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24204 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24210 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24211 sed -n "$gl_absolute_header_sed"`
24213 gl_header
=$gl_cv_absolute_unistd_h
24214 gl_cv_next_unistd_h
='"'$gl_header'"'
24216 gl_cv_next_unistd_h
='<'unistd.h
'>'
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24222 $as_echo "$gl_cv_next_unistd_h" >&6; }
24224 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
24226 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24227 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24228 gl_next_as_first_directive
='<'unistd.h
'>'
24230 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24231 gl_next_as_first_directive
=$gl_cv_next_unistd_h
24233 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
24238 if test $ac_cv_header_unistd_h = yes; then
24271 if test $ac_cv_have_decl_unsetenv = no
; then
24272 HAVE_DECL_UNSETENV
=0
24274 for ac_func
in unsetenv
24276 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
24277 if test "x$ac_cv_func_unsetenv" = xyes
; then :
24278 cat >>confdefs.h
<<_ACEOF
24279 #define HAVE_UNSETENV 1
24285 if test $ac_cv_func_unsetenv = no
; then
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
24290 $as_echo_n "checking for unsetenv() return type... " >&6; }
24291 if ${gt_cv_func_unsetenv_ret+:} false
; then :
24292 $as_echo_n "(cached) " >&6
24294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24295 /* end confdefs.h. */
24298 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
24299 #include <stdlib.h>
24304 int unsetenv (const char *name);
24314 if ac_fn_c_try_compile
"$LINENO"; then :
24315 gt_cv_func_unsetenv_ret
='int'
24317 gt_cv_func_unsetenv_ret
='void'
24319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
24322 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
24323 if test $gt_cv_func_unsetenv_ret = 'void'; then
24325 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
24331 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
24332 if ${gl_cv_func_unsetenv_works+:} false
; then :
24333 $as_echo_n "(cached) " >&6
24335 if test "$cross_compiling" = yes; then :
24337 # Guess yes on glibc systems.
24338 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
24339 # If we don't know, assume the worst.
24340 *) gl_cv_func_unsetenv_works
="guessing no" ;;
24344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24345 /* end confdefs.h. */
24347 #include <stdlib.h>
24349 extern char **environ;
24355 char entry1[] = "a=1";
24356 char entry2[] = "b=2";
24357 char *env[] = { entry1, entry2, NULL };
24358 if (putenv ((char *) "a=1")) return 1;
24359 if (putenv (entry2)) return 2;
24362 if (getenv ("a")) return 3;
24363 if (!unsetenv ("") || errno != EINVAL) return 4;
24366 if (!getenv ("a")) return 5;
24369 if (getenv ("a")) return 6;
24375 if ac_fn_c_try_run
"$LINENO"; then :
24376 gl_cv_func_unsetenv_works
=yes
24378 gl_cv_func_unsetenv_works
=no
24380 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24381 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
24386 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
24387 case "$gl_cv_func_unsetenv_works" in
24395 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
24404 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
24428 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
24450 if test $gl_cv_have_include_next = yes; then
24451 gl_cv_next_wchar_h
='<'wchar.h
'>'
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24454 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24455 if ${gl_cv_next_wchar_h+:} false
; then :
24456 $as_echo_n "(cached) " >&6
24459 if test $ac_cv_header_wchar_h = yes; then
24464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24465 /* end confdefs.h. */
24469 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24470 *) gl_absname_cpp
="$ac_cpp" ;;
24475 gl_dirsep_regex
='[/\\]'
24478 gl_dirsep_regex
='\/'
24481 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24482 gl_header_literal_regex
=`echo 'wchar.h' \
24483 | sed -e "$gl_make_literal_regex_sed"`
24484 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24485 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24491 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24492 sed -n "$gl_absolute_header_sed"`
24494 gl_header
=$gl_cv_absolute_wchar_h
24495 gl_cv_next_wchar_h
='"'$gl_header'"'
24497 gl_cv_next_wchar_h
='<'wchar.h
'>'
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24503 $as_echo "$gl_cv_next_wchar_h" >&6; }
24505 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
24507 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24508 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24509 gl_next_as_first_directive
='<'wchar.h
'>'
24511 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24512 gl_next_as_first_directive
=$gl_cv_next_wchar_h
24514 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
24519 if test $ac_cv_header_wchar_h = yes; then
24529 if test $gt_cv_c_wint_t = yes; then
24553 if test $ac_cv_func_iswcntrl = yes; then
24561 if test $gt_cv_c_wint_t = yes; then
24585 if test $gl_cv_have_include_next = yes; then
24586 gl_cv_next_wctype_h
='<'wctype.h
'>'
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
24589 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
24590 if ${gl_cv_next_wctype_h+:} false
; then :
24591 $as_echo_n "(cached) " >&6
24594 if test $ac_cv_header_wctype_h = yes; then
24599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24600 /* end confdefs.h. */
24601 #include <wctype.h>
24604 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
24605 *) gl_absname_cpp
="$ac_cpp" ;;
24610 gl_dirsep_regex
='[/\\]'
24613 gl_dirsep_regex
='\/'
24616 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
24617 gl_header_literal_regex
=`echo 'wctype.h' \
24618 | sed -e "$gl_make_literal_regex_sed"`
24619 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24620 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24626 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24627 sed -n "$gl_absolute_header_sed"`
24629 gl_header
=$gl_cv_absolute_wctype_h
24630 gl_cv_next_wctype_h
='"'$gl_header'"'
24632 gl_cv_next_wctype_h
='<'wctype.h
'>'
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
24638 $as_echo "$gl_cv_next_wctype_h" >&6; }
24640 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
24642 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
24643 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24644 gl_next_as_first_directive
='<'wctype.h
'>'
24646 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24647 gl_next_as_first_directive
=$gl_cv_next_wctype_h
24649 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
24654 if test $ac_cv_header_wctype_h = yes; then
24655 if test $ac_cv_func_iswcntrl = yes; then
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
24657 $as_echo_n "checking whether iswcntrl works... " >&6; }
24658 if ${gl_cv_func_iswcntrl_works+:} false
; then :
24659 $as_echo_n "(cached) " >&6
24662 if test "$cross_compiling" = yes; then :
24663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h. */
24665 #include <stdlib.h>
24666 #if __GNU_LIBRARY__ == 1
24667 Linux libc5 i18n is broken.
24677 if ac_fn_c_try_compile
"$LINENO"; then :
24678 gl_cv_func_iswcntrl_works
="guessing yes"
24680 gl_cv_func_iswcntrl_works
="guessing no"
24682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24686 /* end confdefs.h. */
24688 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24689 included before <wchar.h>.
24690 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24691 must be included before <wchar.h>. */
24692 #include <stddef.h>
24696 #include <wctype.h>
24697 int main () { return iswprint ('x') == 0; }
24700 if ac_fn_c_try_run
"$LINENO"; then :
24701 gl_cv_func_iswcntrl_works
=yes
24703 gl_cv_func_iswcntrl_works
=no
24705 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24706 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
24712 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
24720 case "$gl_cv_func_iswcntrl_works" in
24721 *yes) REPLACE_ISWCNTRL
=0 ;;
24722 *) REPLACE_ISWCNTRL
=1 ;;
24726 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
24730 if test $REPLACE_ISWCNTRL = 1; then
24733 for ac_func
in towlower
24735 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
24736 if test "x$ac_cv_func_towlower" = xyes
; then :
24737 cat >>confdefs.h
<<_ACEOF
24738 #define HAVE_TOWLOWER 1
24744 if test $ac_cv_func_towlower = yes; then
24747 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24748 included before <wchar.h>.
24749 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24750 must be included before <wchar.h>. */
24751 #include <stddef.h>
24756 # include <wctype.h>
24760 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
24766 cat >>confdefs.h
<<_ACEOF
24767 #define HAVE_DECL_TOWLOWER $ac_have_decl
24770 if test $ac_cv_have_decl_towlower = yes; then
24779 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
24784 $as_echo_n "checking for wctype_t... " >&6; }
24785 if ${gl_cv_type_wctype_t+:} false
; then :
24786 $as_echo_n "(cached) " >&6
24788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24789 /* end confdefs.h. */
24790 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24791 included before <wchar.h>.
24792 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24793 must be included before <wchar.h>. */
24794 #include <stddef.h>
24799 # include <wctype.h>
24811 if ac_fn_c_try_compile
"$LINENO"; then :
24812 gl_cv_type_wctype_t
=yes
24814 gl_cv_type_wctype_t
=no
24816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
24820 $as_echo "$gl_cv_type_wctype_t" >&6; }
24821 if test $gl_cv_type_wctype_t = no
; then
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
24826 $as_echo_n "checking for wctrans_t... " >&6; }
24827 if ${gl_cv_type_wctrans_t+:} false
; then :
24828 $as_echo_n "(cached) " >&6
24830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24831 /* end confdefs.h. */
24832 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
24833 included before <wchar.h>.
24834 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
24835 must be included before <wchar.h>. */
24836 #include <stddef.h>
24840 #include <wctype.h>
24851 if ac_fn_c_try_compile
"$LINENO"; then :
24852 gl_cv_type_wctrans_t
=yes
24854 gl_cv_type_wctrans_t
=no
24856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
24860 $as_echo "$gl_cv_type_wctrans_t" >&6; }
24861 if test $gl_cv_type_wctrans_t = no
; then
24869 # End of code from modules
24890 gl_source_base
='tests'
24891 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
24893 gl_module_indicator_condition
=$gltests_WITNESS
24903 LIBGNU_LIBDEPS
="$gl_libdeps"
24905 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
24909 # We don't use automake, but gnulib does. This line lets us generate
24911 am__api_version
='1.15'
24913 # Find a good install program. We prefer a C program (faster),
24914 # so one script is as good as another. But avoid the broken or
24915 # incompatible versions:
24916 # SysV /etc/install, /usr/sbin/install
24917 # SunOS /usr/etc/install
24918 # IRIX /sbin/install
24920 # AmigaOS /C/install, which installs bootblocks on floppy discs
24921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
24922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
24923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
24924 # OS/2's system install, which has a completely different semantic
24925 # ./install, which can be erroneously created by make from ./install.sh.
24926 # Reject install programs that cannot install multiple files.
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
24928 $as_echo_n "checking for a BSD-compatible install... " >&6; }
24929 if test -z "$INSTALL"; then
24930 if ${ac_cv_path_install+:} false
; then :
24931 $as_echo_n "(cached) " >&6
24933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24934 for as_dir
in $PATH
24937 test -z "$as_dir" && as_dir
=.
24938 # Account for people who put trailing slashes in PATH elements.
24939 case $as_dir/ in #((
24940 .
/ | .
// |
/[cC
]/* | \
24941 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
24942 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
24945 # OSF1 and SCO ODT 3.0 have their own names for install.
24946 # Don't use installbsd from OSF since it installs stuff as root
24948 for ac_prog
in ginstall scoinst
install; do
24949 for ac_exec_ext
in '' $ac_executable_extensions; do
24950 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
24951 if test $ac_prog = install &&
24952 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
24953 # AIX install. It has an incompatible calling convention.
24955 elif test $ac_prog = install &&
24956 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
24957 # program-specific install script used by HP pwplus--don't use.
24960 rm -rf conftest.one conftest.two conftest.dir
24961 echo one
> conftest.one
24962 echo two
> conftest.two
24964 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
24965 test -s conftest.one
&& test -s conftest.two
&&
24966 test -s conftest.dir
/conftest.one
&&
24967 test -s conftest.dir
/conftest.two
24969 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
24982 rm -rf conftest.one conftest.two conftest.dir
24985 if test "${ac_cv_path_install+set}" = set; then
24986 INSTALL
=$ac_cv_path_install
24988 # As a last resort, use the slow shell script. Don't cache a
24989 # value for INSTALL within a source directory, because that will
24990 # break other packages using the cache if that directory is
24991 # removed, or if the value is a relative name.
24992 INSTALL
=$ac_install_sh
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
24996 $as_echo "$INSTALL" >&6; }
24998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
24999 # It thinks the first close brace ends the variable substitution.
25000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
25002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
25004 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
25007 $as_echo_n "checking whether build environment is sane... " >&6; }
25008 # Reject unsafe characters in $srcdir or the absolute working directory
25009 # name. Accept space and tab only in the latter.
25013 *[\\\"\
#\$\&\'\`$am_lf]*)
25014 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
25017 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
25018 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
25021 # Do 'set' in a subshell so we don't clobber the current shell's
25022 # arguments. Must try -L first in case configure is actually a
25023 # symlink; some systems play weird games with the mod time of symlinks
25024 # (eg FreeBSD returns the mod time of the symlink's containing
25028 for am_try
in 1 2; do
25029 echo "timestamp, slept: $am_has_slept" > conftest.
file
25030 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
25031 if test "$*" = "X"; then
25033 set X
`ls -t "$srcdir/configure" conftest.file`
25035 if test "$*" != "X $srcdir/configure conftest.file" \
25036 && test "$*" != "X conftest.file $srcdir/configure"; then
25038 # If neither matched, then we have a broken ls. This can happen
25039 # if, for instance, CONFIG_SHELL is bash and it inherits a
25040 # broken ls alias from the environment. This has actually
25041 # happened. Such a system could not be considered "sane".
25042 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
25043 alias in your environment" "$LINENO" 5
25045 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
25052 test "$2" = conftest.
file
25058 as_fn_error $?
"newly created file is older than distributed files!
25059 Check your system clock" "$LINENO" 5
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25062 $as_echo "yes" >&6; }
25063 # If we didn't sleep, we still need to ensure time stamps of config.status and
25064 # generated files are strictly newer.
25066 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
25071 rm -f conftest.
file
25073 test "$program_prefix" != NONE
&&
25074 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
25075 # Use a double $ so make ignores it.
25076 test "$program_suffix" != NONE
&&
25077 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
25078 # Double any \ or $.
25079 # By default was `s,x,x', remove it if useless.
25080 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
25081 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
25083 # Expand $ac_aux_dir to an absolute path.
25084 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
25086 if test x
"${MISSING+set}" != xset
; then
25087 case $am_aux_dir in
25089 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
25091 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
25094 # Use eval to expand $SHELL
25095 if eval "$MISSING --is-lightweight"; then
25096 am_missing_run
="$MISSING "
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
25100 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
25103 if test x
"${install_sh+set}" != xset
; then
25104 case $am_aux_dir in
25106 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
25108 install_sh
="\${SHELL} $am_aux_dir/install-sh"
25112 # Installed binaries are usually stripped using 'strip' when the user
25113 # run "make install-strip". However 'strip' might not be the right
25114 # tool to use in cross-compilation environments, therefore Automake
25115 # will honor the 'STRIP' environment variable to overrule this program.
25116 if test "$cross_compiling" != no
; then
25117 if test -n "$ac_tool_prefix"; then
25118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
25119 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25121 $as_echo_n "checking for $ac_word... " >&6; }
25122 if ${ac_cv_prog_STRIP+:} false
; then :
25123 $as_echo_n "(cached) " >&6
25125 if test -n "$STRIP"; then
25126 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
25128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25129 for as_dir
in $PATH
25132 test -z "$as_dir" && as_dir
=.
25133 for ac_exec_ext
in '' $ac_executable_extensions; do
25134 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25135 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
25136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25145 STRIP
=$ac_cv_prog_STRIP
25146 if test -n "$STRIP"; then
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
25148 $as_echo "$STRIP" >&6; }
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25151 $as_echo "no" >&6; }
25156 if test -z "$ac_cv_prog_STRIP"; then
25158 # Extract the first word of "strip", so it can be a program name with args.
25159 set dummy strip
; ac_word
=$2
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25161 $as_echo_n "checking for $ac_word... " >&6; }
25162 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
25163 $as_echo_n "(cached) " >&6
25165 if test -n "$ac_ct_STRIP"; then
25166 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
25168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25169 for as_dir
in $PATH
25172 test -z "$as_dir" && as_dir
=.
25173 for ac_exec_ext
in '' $ac_executable_extensions; do
25174 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25175 ac_cv_prog_ac_ct_STRIP
="strip"
25176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25185 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
25186 if test -n "$ac_ct_STRIP"; then
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
25188 $as_echo "$ac_ct_STRIP" >&6; }
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25191 $as_echo "no" >&6; }
25194 if test "x$ac_ct_STRIP" = x
; then
25197 case $cross_compiling:$ac_tool_warned in
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25201 ac_tool_warned
=yes ;;
25206 STRIP
="$ac_cv_prog_STRIP"
25210 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
25212 for ac_prog
in gawk mawk nawk
awk
25214 # Extract the first word of "$ac_prog", so it can be a program name with args.
25215 set dummy
$ac_prog; ac_word
=$2
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25217 $as_echo_n "checking for $ac_word... " >&6; }
25218 if ${ac_cv_prog_AWK+:} false
; then :
25219 $as_echo_n "(cached) " >&6
25221 if test -n "$AWK"; then
25222 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
25224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25225 for as_dir
in $PATH
25228 test -z "$as_dir" && as_dir
=.
25229 for ac_exec_ext
in '' $ac_executable_extensions; do
25230 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
25231 ac_cv_prog_AWK
="$ac_prog"
25232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25241 AWK
=$ac_cv_prog_AWK
25242 if test -n "$AWK"; then
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25244 $as_echo "$AWK" >&6; }
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25247 $as_echo "no" >&6; }
25251 test -n "$AWK" && break
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25255 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25257 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
25258 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
25259 $as_echo_n "(cached) " >&6
25261 cat >conftest.
make <<\_ACEOF
25264 @
echo '@@@%%%=$(MAKE)=@@@%%%'
25266 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25267 case `${MAKE-make} -f conftest.make 2>/dev/null` in
25268 *@@@
%%%=?
*=@@@
%%%*)
25269 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
25271 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
25273 rm -f conftest.
make
25275 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25277 $as_echo "yes" >&6; }
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25281 $as_echo "no" >&6; }
25282 SET_MAKE
="MAKE=${MAKE-make}"
25285 rm -rf .tst
2>/dev
/null
25286 mkdir .tst
2>/dev
/null
25287 if test -d .tst
; then
25292 rmdir .tst
2>/dev
/null
25294 DEPDIR
="${am__leading_dot}deps"
25296 ac_config_commands
="$ac_config_commands depfiles"
25299 am_make
=${MAKE-make}
25300 cat > confinc
<< 'END'
25302 @
echo this is the am__doit target
25305 # If we don't find an include directive, just comment out the code.
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
25307 $as_echo_n "checking for style of include used by $am_make... " >&6; }
25311 # First try GNU make style include.
25312 echo "include confinc" > confmf
25313 # Ignore all kinds of additional output from 'make'.
25314 case `$am_make -s -f confmf 2> /dev/null` in #(
25315 *the\ am__doit\ target
*)
25316 am__include
=include
25321 # Now try BSD make style include.
25322 if test "$am__include" = "#"; then
25323 echo '.include "confinc"' > confmf
25324 case `$am_make -s -f confmf 2> /dev/null` in #(
25325 *the\ am__doit\ target
*)
25326 am__include
=.include
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
25335 $as_echo "$_am_result" >&6; }
25336 rm -f confinc confmf
25338 # Check whether --enable-dependency-tracking was given.
25339 if test "${enable_dependency_tracking+set}" = set; then :
25340 enableval
=$enable_dependency_tracking;
25343 if test "x$enable_dependency_tracking" != xno
; then
25344 am_depcomp
="$ac_aux_dir/depcomp"
25348 if test "x$enable_dependency_tracking" != xno; then
25357 # Check whether --enable-silent-rules was given.
25358 if test "${enable_silent_rules+set}" = set; then :
25359 enableval
=$enable_silent_rules;
25362 case $enable_silent_rules in # (((
25363 yes) AM_DEFAULT_VERBOSITY
=0;;
25364 no
) AM_DEFAULT_VERBOSITY
=1;;
25365 *) AM_DEFAULT_VERBOSITY
=1;;
25367 am_make
=${MAKE-make}
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
25369 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
25370 if ${am_cv_make_support_nested_variables+:} false
; then :
25371 $as_echo_n "(cached) " >&6
25373 if $as_echo 'TRUE=$(BAR$(V))
25379 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
25380 am_cv_make_support_nested_variables
=yes
25382 am_cv_make_support_nested_variables
=no
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
25386 $as_echo "$am_cv_make_support_nested_variables" >&6; }
25387 if test $am_cv_make_support_nested_variables = yes; then
25389 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
25391 AM_V
=$AM_DEFAULT_VERBOSITY
25392 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
25396 if test "`cd $srcdir && pwd`" != "`pwd`"; then
25397 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
25398 # is not polluted with repeated "-I."
25399 am__isrc
=' -I$(srcdir)'
25400 # test to see if srcdir already configured
25401 if test -f $srcdir/config.status
; then
25402 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
25406 # test whether we have cygpath
25407 if test -z "$CYGPATH_W"; then
25408 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
25409 CYGPATH_W
='cygpath -w'
25416 # Define the identity of the package.
25418 VERSION
='UNUSED-VERSION'
25421 # Some tools Automake needs.
25423 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
25426 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
25429 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
25432 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
25435 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
25437 # For better backward compatibility. To be removed once Automake 1.9.x
25438 # dies out for good. For more background, see:
25439 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
25440 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
25441 mkdir_p
='$(MKDIR_P)'
25443 # We need awk for the "check" target (and possibly the TAP driver). The
25444 # system "awk" is bad on some platforms.
25445 # Always define AMTAR for backward compatibility. Yes, it's still used
25446 # in the wild :-( We should find a proper way to deprecate it ...
25447 AMTAR
='$${TAR-tar}'
25450 # We'll loop over all known methods to create a tar archive until one works.
25451 _am_tools
='gnutar pax cpio none'
25453 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
25459 depcc
="$CC" am_compiler_list
=
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25462 $as_echo_n "checking dependency style of $depcc... " >&6; }
25463 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
25464 $as_echo_n "(cached) " >&6
25466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25467 # We make a subdir and do the tests there. Otherwise we can end up
25468 # making bogus files that we don't know about and never remove. For
25469 # instance it was reported that on HP-UX the gcc test will end up
25470 # making a dummy file named 'D' -- because '-MD' means "put the output
25472 rm -rf conftest.dir
25474 # Copy depcomp to subdir because otherwise we won't find it if we're
25475 # using a relative directory.
25476 cp "$am_depcomp" conftest.dir
25478 # We will build objects and dependencies in a subdirectory because
25479 # it helps to detect inapplicable dependency modes. For instance
25480 # both Tru64's cc and ICC support -MD to output dependencies as a
25481 # side effect of compilation, but ICC will put the dependencies in
25482 # the current directory while Tru64 will put them in the object
25486 am_cv_CC_dependencies_compiler_type
=none
25487 if test "$am_compiler_list" = ""; then
25488 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25490 am__universal
=false
25491 case " $depcc " in #(
25492 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
25495 for depmode
in $am_compiler_list; do
25496 # Setup a source with many dependencies, because some compilers
25497 # like to wrap large dependency lists on column 80 (with \), and
25498 # we should not choose a depcomp mode which is confused by this.
25500 # We need to recreate these files for each test, as the compiler may
25501 # overwrite some of them when testing with obscure command lines.
25502 # This happens at least with the AIX C compiler.
25504 for i
in 1 2 3 4 5 6; do
25505 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
25506 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25507 # Solaris 10 /bin/sh.
25508 echo '/* dummy */' > sub
/conftst
$i.h
25510 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25512 # We check with '-c' and '-o' for the sake of the "dashmstdout"
25513 # mode. It turns out that the SunPro C++ compiler does not properly
25514 # handle '-M -o', and we need to detect this. Also, some Intel
25515 # versions had trouble with output in subdirs.
25516 am__obj
=sub
/conftest.
${OBJEXT-o}
25517 am__minus_obj
="-o $am__obj"
25520 # This depmode causes a compiler race in universal mode.
25521 test "$am__universal" = false ||
continue
25524 # After this tag, mechanisms are not by side-effect, so they'll
25525 # only be used when explicitly requested.
25526 if test "x$enable_dependency_tracking" = xyes
; then
25532 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
25533 # This compiler won't grok '-c -o', but also, the minuso test has
25534 # not run yet. These depmodes are late enough in the game, and
25535 # so weak that their functioning should not be impacted.
25536 am__obj
=conftest.
${OBJEXT-o}
25541 if depmode
=$depmode \
25542 source=sub
/conftest.c object
=$am__obj \
25543 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
25544 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
25545 >/dev
/null
2>conftest.err
&&
25546 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
25547 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
25548 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
25549 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
25550 # icc doesn't choke on unknown options, it will just issue warnings
25551 # or remarks (even with -Werror). So we grep stderr for any message
25552 # that says an option was ignored or not supported.
25553 # When given -MP, icc 7.0 and 7.1 complain thusly:
25554 # icc: Command line warning: ignoring option '-M'; no argument required
25555 # The diagnosis changed in icc 8.0:
25556 # icc: Command line remark: option '-MP' not supported
25557 if (grep 'ignoring option' conftest.err ||
25558 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
25559 am_cv_CC_dependencies_compiler_type
=$depmode
25566 rm -rf conftest.dir
25568 am_cv_CC_dependencies_compiler_type
=none
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
25573 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
25574 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
25577 test "x$enable_dependency_tracking" != xno \
25578 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
25579 am__fastdepCC_TRUE
=
25580 am__fastdepCC_FALSE
='#'
25582 am__fastdepCC_TRUE
='#'
25583 am__fastdepCC_FALSE
=
25588 # POSIX will say in a future version that running "rm -f" with no argument
25589 # is OK; and we want to be able to make that assumption in our Makefile
25590 # recipes. So use an aggressive probe to check that the usage we want is
25591 # actually supported "in the wild" to an acceptable degree.
25592 # See automake bug#10828.
25593 # To make any issue more visible, cause the running configure to be aborted
25594 # by default if the 'rm' program in use doesn't match our expectations; the
25595 # user can still override this though.
25596 if rm -f && rm -fr && rm -rf; then : OK
; else
25600 Your 'rm' program seems unable to run without file operands specified
25601 on the command line, even when the '-f' option is present. This is contrary
25602 to the behaviour of most rm programs out there, and not conforming with
25603 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
25605 Please tell bug-automake@gnu.org about your system, including the value
25606 of your $PATH and any error possibly output before this message. This
25607 can help us improve future automake versions.
25610 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
25611 echo 'Configuration will proceed anyway, since you have set the' >&2
25612 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
25616 Aborting the configuration process, to ensure you take notice of the issue.
25618 You can download and install GNU coreutils to get an 'rm' implementation
25619 that behaves properly: <http://www.gnu.org/software/coreutils/>.
25621 If you want to complete the configuration process using your problematic
25622 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
25623 to "yes", and re-run configure.
25626 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
25631 # Check whether --enable-silent-rules was given.
25632 if test "${enable_silent_rules+set}" = set; then :
25633 enableval
=$enable_silent_rules;
25636 case $enable_silent_rules in # (((
25637 yes) AM_DEFAULT_VERBOSITY
=0;;
25638 no
) AM_DEFAULT_VERBOSITY
=1;;
25639 *) AM_DEFAULT_VERBOSITY
=0;;
25641 am_make
=${MAKE-make}
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
25643 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
25644 if ${am_cv_make_support_nested_variables+:} false
; then :
25645 $as_echo_n "(cached) " >&6
25647 if $as_echo 'TRUE=$(BAR$(V))
25653 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
25654 am_cv_make_support_nested_variables
=yes
25656 am_cv_make_support_nested_variables
=no
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
25660 $as_echo "$am_cv_make_support_nested_variables" >&6; }
25661 if test $am_cv_make_support_nested_variables = yes; then
25663 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
25665 AM_V
=$AM_DEFAULT_VERBOSITY
25666 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
25671 # --------------------- #
25672 # Checks for programs. #
25673 # --------------------- #
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25677 $as_echo_n "checking whether ln -s works... " >&6; }
25679 if test "$LN_S" = "ln -s"; then
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25681 $as_echo "yes" >&6; }
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25684 $as_echo "no, using $LN_S" >&6; }
25687 if test -n "$ac_tool_prefix"; then
25688 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
25689 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25691 $as_echo_n "checking for $ac_word... " >&6; }
25692 if ${ac_cv_prog_RANLIB+:} false; then :
25693 $as_echo_n "(cached) " >&6
25695 if test -n "$RANLIB"; then
25696 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
25698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25699 for as_dir in $PATH
25702 test -z "$as_dir" && as_dir=.
25703 for ac_exec_ext in '' $ac_executable_extensions; do
25704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25705 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
25706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25715 RANLIB=$ac_cv_prog_RANLIB
25716 if test -n "$RANLIB"; then
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
25718 $as_echo "$RANLIB" >&6; }
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25721 $as_echo "no" >&6; }
25726 if test -z "$ac_cv_prog_RANLIB"; then
25727 ac_ct_RANLIB=$RANLIB
25728 # Extract the first word of "ranlib", so it can be a program name with args.
25729 set dummy ranlib; ac_word=$2
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25731 $as_echo_n "checking for $ac_word... " >&6; }
25732 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
25733 $as_echo_n "(cached) " >&6
25735 if test -n "$ac_ct_RANLIB"; then
25736 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
25738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25739 for as_dir in $PATH
25742 test -z "$as_dir" && as_dir=.
25743 for ac_exec_ext in '' $ac_executable_extensions; do
25744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25745 ac_cv_prog_ac_ct_RANLIB="ranlib"
25746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25755 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
25756 if test -n "$ac_ct_RANLIB"; then
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
25758 $as_echo "$ac_ct_RANLIB" >&6; }
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25761 $as_echo "no" >&6; }
25764 if test "x$ac_ct_RANLIB" = x; then
25767 case $cross_compiling:$ac_tool_warned in
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25771 ac_tool_warned=yes ;;
25773 RANLIB=$ac_ct_RANLIB
25776 RANLIB="$ac_cv_prog_RANLIB"
25780 if test -n "$ac_tool_prefix"; then
25781 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
25782 set dummy ${ac_tool_prefix}ar; ac_word=$2
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25784 $as_echo_n "checking for $ac_word... " >&6; }
25785 if ${ac_cv_prog_AR+:} false; then :
25786 $as_echo_n "(cached) " >&6
25788 if test -n "$AR"; then
25789 ac_cv_prog_AR="$AR" # Let the user override the test.
25791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25792 for as_dir in $PATH
25795 test -z "$as_dir" && as_dir=.
25796 for ac_exec_ext in '' $ac_executable_extensions; do
25797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25798 ac_cv_prog_AR="${ac_tool_prefix}ar"
25799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25809 if test -n "$AR"; then
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
25811 $as_echo "$AR" >&6; }
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25814 $as_echo "no" >&6; }
25819 if test -z "$ac_cv_prog_AR"; then
25821 # Extract the first word of "ar", so it can be a program name with args.
25822 set dummy ar; ac_word=$2
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25824 $as_echo_n "checking for $ac_word... " >&6; }
25825 if ${ac_cv_prog_ac_ct_AR+:} false; then :
25826 $as_echo_n "(cached) " >&6
25828 if test -n "$ac_ct_AR"; then
25829 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
25831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25832 for as_dir in $PATH
25835 test -z "$as_dir" && as_dir=.
25836 for ac_exec_ext in '' $ac_executable_extensions; do
25837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25838 ac_cv_prog_ac_ct_AR="ar"
25839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25848 ac_ct_AR=$ac_cv_prog_ac_ct_AR
25849 if test -n "$ac_ct_AR"; then
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
25851 $as_echo "$ac_ct_AR" >&6; }
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25854 $as_echo "no" >&6; }
25857 if test "x$ac_ct_AR" = x; then
25860 case $cross_compiling:$ac_tool_warned in
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25864 ac_tool_warned=yes ;;
25869 AR="$ac_cv_prog_AR"
25873 # ---------------------- #
25874 # Checks for libraries. #
25875 # ---------------------- #
25877 ac_config_files="$ac_config_files Makefile import/Makefile"
25879 ac_config_commands="$ac_config_commands default"
25881 cat >confcache <<\_ACEOF
25882 # This file is a shell script that caches the results of configure
25883 # tests run on this system so they can be shared between configure
25884 # scripts and configure runs, see configure's option
--config-cache.
25885 # It is not useful on other systems. If it contains results you don't
25886 # want to keep, you may remove or edit it.
25888 # config.status only pays attention to the cache file if you give it
25889 # the --recheck option to rerun configure.
25891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25893 # following values.
25897 # The following way of writing the cache mishandles newlines in values,
25898 # but we know of no workaround that is simple, portable, and efficient.
25899 # So, we kill variables containing newlines.
25900 # Ultrix sh set writes to stderr and can't be redirected directly,
25901 # and sets the high bit in the cache file unless we assign to the vars.
25903 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25904 eval ac_val
=\$
$ac_var
25908 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25909 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25912 _ | IFS | as_nl
) ;; #(
25913 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25914 *) { eval $ac_var=; unset $ac_var;} ;;
25920 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25921 *${as_nl}ac_space
=\
*)
25922 # `set' does not quote correctly, so add quotes: double-quote
25923 # substitution turns \\\\ into \\, and sed turns \\ into \.
25926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25929 # `set' quotes correctly as required by POSIX, so do not add quotes.
25930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25939 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25941 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25943 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25944 if test -w "$cache_file"; then
25945 if test "x$cache_file" != "x/dev/null"; then
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25947 $as_echo "$as_me: updating cache $cache_file" >&6;}
25948 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
25949 cat confcache
>"$cache_file"
25951 case $cache_file in #(
25953 mv -f confcache
"$cache_file"$$
&&
25954 mv -f "$cache_file"$$
"$cache_file" ;; #(
25956 mv -f confcache
"$cache_file" ;;
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25962 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25967 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25968 # Let make expand exec_prefix.
25969 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25971 DEFS
=-DHAVE_CONFIG_H
25975 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25976 # 1. Remove the extension, and $U if already installed.
25977 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25978 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25979 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25980 # will be set to the directory where LIBOBJS objects are built.
25981 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25982 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25984 LIBOBJS
=$ac_libobjs
25986 LTLIBOBJS
=$ac_ltlibobjs
25989 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25990 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
25991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25993 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25994 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
25995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25997 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25998 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26001 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
26002 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
26003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26005 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
26006 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
26007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26009 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
26010 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
26011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26013 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
26014 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
26015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26017 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
26018 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
26019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26021 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
26022 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
26023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26025 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
26026 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
26027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26029 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
26030 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
26031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26033 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
26034 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
26035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26039 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
26040 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
26041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26043 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
26044 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
26045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26050 if test -n "$gl_LIBOBJS"; then
26051 # Remove the extension.
26052 sed_drop_objext
='s/\.o$//;s/\.obj$//'
26053 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26054 gl_libobjs
="$gl_libobjs $i.$ac_objext"
26055 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
26058 gl_LIBOBJS
=$gl_libobjs
26060 gl_LTLIBOBJS
=$gl_ltlibobjs
26066 if test -n "$gltests_LIBOBJS"; then
26067 # Remove the extension.
26068 sed_drop_objext
='s/\.o$//;s/\.obj$//'
26069 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
26070 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
26071 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
26074 gltests_LIBOBJS
=$gltests_libobjs
26076 gltests_LTLIBOBJS
=$gltests_ltlibobjs
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26080 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26081 if test -n "$am_sleep_pid"; then
26082 # Hide warnings about reused PIDs.
26083 wait $am_sleep_pid 2>/dev
/null
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26086 $as_echo "done" >&6; }
26087 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26088 as_fn_error $?
"conditional \"AMDEP\" was never defined.
26089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26091 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26092 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
26093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26095 if test -n "$EXEEXT"; then
26097 am__EXEEXT_FALSE
='#'
26099 am__EXEEXT_TRUE
='#'
26104 : "${CONFIG_STATUS=./config.status}"
26106 ac_clean_files_save
=$ac_clean_files
26107 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26109 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26111 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26113 # Generated by $as_me.
26114 # Run this file to recreate the current configuration.
26115 # Compiler output produced by configure, useful for debugging
26116 # configure, is in config.log if it exists.
26119 ac_cs_recheck=false
26122 SHELL=\${CONFIG_SHELL-$SHELL}
26125 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
26126 ## -------------------- ##
26127 ## M4sh Initialization. ##
26128 ## -------------------- ##
26130 # Be more Bourne compatible
26131 DUALCASE
=1; export DUALCASE
# for MKS sh
26132 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
26135 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26136 # is contrary to our usage. Disable this feature.
26137 alias -g '${1+"$@"}'='"$@"'
26138 setopt NO_GLOB_SUBST
26140 case `(set -o) 2>/dev/null` in #(
26152 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26153 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26154 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26155 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26156 # Prefer a ksh shell builtin over an external printf program on Solaris,
26157 # but without wasting forks for bash or zsh.
26158 if test -z "$BASH_VERSION$ZSH_VERSION" \
26159 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26160 as_echo='print
-r --'
26161 as_echo_n='print
-rn --'
26162 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26163 as_echo='printf %s
\n'
26164 as_echo_n='printf %s
'
26166 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26167 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26168 as_echo_n='/usr
/ucb
/echo -n'
26170 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26171 as_echo_n_body='eval
26175 expr "X$arg" : "X\\(.*\\)$as_nl";
26176 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26178 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26180 export as_echo_n_body
26181 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26183 export as_echo_body
26184 as_echo='sh
-c $as_echo_body as_echo
'
26187 # The user is always right.
26188 if test "${PATH_SEPARATOR+set}" != set; then
26190 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26191 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26198 # We need space, tab and new line, in precisely that order. Quoting is
26199 # there to prevent editors from complaining about space-tab.
26200 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26201 # splitting by setting IFS to empty value.)
26204 # Find who we are. Look in the path if we contain no directory separator.
26207 *[\\/]* ) as_myself=$0 ;;
26208 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26209 for as_dir in $PATH
26212 test -z "$as_dir" && as_dir=.
26213 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26219 # We did not find ourselves, most probably we were run as `sh COMMAND'
26220 # in which case we are not to be found in the path.
26221 if test "x$as_myself" = x
; then
26224 if test ! -f "$as_myself"; then
26225 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26229 # Unset variables that we do not need and which cause bugs (e.g. in
26230 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26231 # suppresses any "Segmentation fault" message there. '((' could
26232 # trigger a bug in pdksh 5.2.14.
26233 for as_var
in BASH_ENV ENV MAIL MAILPATH
26234 do eval test x\
${$as_var+set} = xset \
26235 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26248 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26251 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26252 # ----------------------------------------
26253 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26254 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26255 # script with STATUS, using 1 if that was 0.
26258 as_status
=$1; test $as_status -eq 0 && as_status
=1
26260 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26261 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26263 $as_echo "$as_me: error: $2" >&2
26264 as_fn_exit
$as_status
26268 # as_fn_set_status STATUS
26269 # -----------------------
26270 # Set $? to STATUS, without forking.
26271 as_fn_set_status
()
26274 } # as_fn_set_status
26276 # as_fn_exit STATUS
26277 # -----------------
26278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26282 as_fn_set_status
$1
26288 # Portably unset VAR.
26291 { eval $1=; unset $1;}
26293 as_unset
=as_fn_unset
26294 # as_fn_append VAR VALUE
26295 # ----------------------
26296 # Append the text in VALUE to the end of the definition contained in VAR. Take
26297 # advantage of any shell optimizations that allow amortized linear growth over
26298 # repeated appends, instead of the typical quadratic growth present in naive
26300 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
26301 eval 'as_fn_append ()
26312 # as_fn_arith ARG...
26313 # ------------------
26314 # Perform arithmetic evaluation on the ARGs, and store the result in the
26315 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26316 # must be portable across $(()) and expr.
26317 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26318 eval 'as_fn_arith ()
26325 as_val
=`expr "$@" || test $? -eq 1`
26330 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26331 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26337 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26338 as_basename
=basename
26343 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26349 as_me
=`$as_basename -- "$0" ||
26350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26351 X"$0" : 'X\(//\)$' \| \
26352 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26354 sed '/^.*\/\([^/][^/]*\)\/*$/{
26368 # Avoid depending upon Character Ranges.
26369 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26370 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26371 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26372 as_cr_digits
='0123456789'
26373 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26375 ECHO_C
= ECHO_N
= ECHO_T
=
26376 case `echo -n x` in #(((((
26378 case `echo 'xy\c'` in
26379 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26381 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26388 rm -f conf$$ conf$$.exe conf$$.
file
26389 if test -d conf$$.dir
; then
26390 rm -f conf$$.dir
/conf$$.
file
26393 mkdir conf$$.dir
2>/dev
/null
26395 if (echo >conf$$.
file) 2>/dev
/null
; then
26396 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26398 # ... but there are two gotchas:
26399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26401 # In both cases, we have to default to `cp -pR'.
26402 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26404 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26412 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26413 rmdir conf$$.dir
2>/dev
/null
26418 # Create "$as_dir" as a directory, including parents if necessary.
26423 -*) as_dir
=.
/$as_dir;;
26425 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26429 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26430 *) as_qdir
=$as_dir;;
26432 as_dirs
="'$as_qdir' $as_dirs"
26433 as_dir
=`$as_dirname -- "$as_dir" ||
26434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26435 X"$as_dir" : 'X\(//\)[^/]' \| \
26436 X"$as_dir" : 'X\(//\)$' \| \
26437 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26438 $as_echo X"$as_dir" |
26439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26443 /^X\(\/\/\)[^/].*/{
26456 test -d "$as_dir" && break
26458 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26459 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
26463 if mkdir
-p .
2>/dev
/null
; then
26464 as_mkdir_p
='mkdir -p "$as_dir"'
26466 test -d .
/-p && rmdir .
/-p
26471 # as_fn_executable_p FILE
26472 # -----------------------
26473 # Test if FILE is an executable regular file.
26474 as_fn_executable_p
()
26476 test -f "$1" && test -x "$1"
26477 } # as_fn_executable_p
26478 as_test_x
='test -x'
26479 as_executable_p
=as_fn_executable_p
26481 # Sed expression to map a string onto a valid CPP name.
26482 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26484 # Sed expression to map a string onto a valid variable name.
26485 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26489 ## ----------------------------------- ##
26490 ## Main body of $CONFIG_STATUS script. ##
26491 ## ----------------------------------- ##
26493 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26496 # Save the log message, to keep $0 and so on meaningful, and to
26497 # report actual input values of CONFIG_FILES etc. instead of their
26498 # values after options handling.
26500 This file was extended by libgnu $as_me UNUSED-VERSION, which was
26501 generated by GNU Autoconf 2.69. Invocation command line was
26503 CONFIG_FILES = $CONFIG_FILES
26504 CONFIG_HEADERS = $CONFIG_HEADERS
26505 CONFIG_LINKS = $CONFIG_LINKS
26506 CONFIG_COMMANDS = $CONFIG_COMMANDS
26509 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26514 case $ac_config_files in *"
26515 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26518 case $ac_config_headers in *"
26519 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26524 # Files that config.status was made for.
26525 config_files="$ac_config_files"
26526 config_headers="$ac_config_headers"
26527 config_commands="$ac_config_commands"
26531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26533 \`$as_me' instantiates files and other configuration actions
26534 from templates according to the current configuration. Unless the files
26535 and actions are specified as TAGs, all are instantiated by default.
26537 Usage: $0 [OPTION]... [TAG]...
26539 -h, --help print this help, then exit
26540 -V, --version print version number and configuration settings, then exit
26541 --config print configuration, then exit
26542 -q, --quiet, --silent
26543 do not print progress messages
26544 -d, --debug don't remove temporary files
26545 --recheck update $as_me by reconfiguring in the same conditions
26546 --file=FILE[:TEMPLATE]
26547 instantiate the configuration file FILE
26548 --header=FILE[:TEMPLATE]
26549 instantiate the configuration header FILE
26551 Configuration files:
26554 Configuration headers:
26557 Configuration commands:
26560 Report bugs to the package provider."
26563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26564 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26566 libgnu config.status UNUSED-VERSION
26567 configured by $0, generated by GNU Autoconf 2.69,
26568 with options \\"\$ac_cs_config\\"
26570 Copyright (C) 2012 Free Software Foundation, Inc.
26571 This config.status script is free software; the Free Software Foundation
26572 gives unlimited permission to copy, distribute and modify it."
26579 test -n "\$AWK" || AWK=awk
26582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26583 # The default lists apply if the user does not specify any file.
26589 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26590 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26594 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26606 # Handling of the options.
26607 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26609 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26610 $as_echo "$ac_cs_version"; exit ;;
26611 --config |
--confi |
--conf |
--con |
--co |
--c )
26612 $as_echo "$ac_cs_config"; exit ;;
26613 --debug |
--debu |
--deb |
--de |
--d |
-d )
26615 --file |
--fil |
--fi |
--f )
26618 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26619 '') as_fn_error $?
"missing file argument" ;;
26621 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26622 ac_need_defaults
=false
;;
26623 --header |
--heade |
--head |
--hea )
26626 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26628 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26629 ac_need_defaults
=false
;;
26631 # Conflict between --help and --header
26632 as_fn_error $?
"ambiguous option: \`$1'
26633 Try \`$0 --help' for more information.";;
26634 --help |
--hel |
-h )
26635 $as_echo "$ac_cs_usage"; exit ;;
26636 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26637 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26640 # This is an error.
26641 -*) as_fn_error $?
"unrecognized option: \`$1'
26642 Try \`$0 --help' for more information." ;;
26644 *) as_fn_append ac_config_targets
" $1"
26645 ac_need_defaults
=false
;;
26651 ac_configure_extra_args
=
26653 if $ac_cs_silent; then
26655 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26660 if \$ac_cs_recheck; then
26661 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26663 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26664 CONFIG_SHELL='$SHELL'
26665 export CONFIG_SHELL
26670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26675 ## Running $as_me. ##
26681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26685 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26691 # Handling of arguments.
26692 for ac_config_target
in $ac_config_targets
26694 case $ac_config_target in
26695 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
26696 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26697 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26698 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
26699 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26701 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26706 # If the user did not use the arguments to specify the items to instantiate,
26707 # then the envvar interface is used. Set only those that are not.
26708 # We use the long form for the default assignment because of an extremely
26709 # bizarre bug on SunOS 4.1.3.
26710 if $ac_need_defaults; then
26711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26712 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26713 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26716 # Have a temporary directory for convenience. Make it in the build tree
26717 # simply because there is no reason against having it here, and in addition,
26718 # creating and moving files from /tmp can sometimes cause problems.
26719 # Hook for its removal unless debugging.
26720 # Note that there is a small window in which the directory will not be cleaned:
26721 # after its creation but before its name has been assigned to `$tmp'.
26725 trap 'exit_status=$?
26726 : "${ac_tmp:=$tmp}"
26727 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26729 trap 'as_fn_exit 1' 1 2 13 15
26731 # Create a (secure) tmp directory for tmp files.
26734 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26738 tmp
=.
/conf$$
-$RANDOM
26739 (umask 077 && mkdir
"$tmp")
26740 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
26743 # Set up the scripts for CONFIG_FILES section.
26744 # No need to generate them if there are no CONFIG_FILES.
26745 # This happens for instance with `./config.status config.h'.
26746 if test -n "$CONFIG_FILES"; then
26749 ac_cr
=`echo X | tr X '\015'`
26750 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26751 # But we know of no other shell where ac_cr would be empty at this
26752 # point, so we can use a bashism as a fallback.
26753 if test "x$ac_cr" = x
; then
26754 eval ac_cr
=\$
\'\\r
\'
26756 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26757 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26760 ac_cs_awk_cr
=$ac_cr
26763 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26768 echo "cat >conf$$subs.awk <<_ACEOF" &&
26769 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26771 } >conf$$subs.sh ||
26772 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26773 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26775 for ac_last_try in false false false false false :; do
26776 . ./conf$$subs.sh ||
26777 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26779 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26780 if test $ac_delim_n = $ac_delim_num; then
26782 elif $ac_last_try; then
26783 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
26785 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26788 rm -f conf$$subs.sh
26790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26791 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
26795 s/^/S["/; s
/!.
*/"]=/
26805 s/\(.\{148\}\)..*/\1/
26807 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26812 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26819 s/\(.\{148\}\)..*/\1/
26821 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26825 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26830 ' <conf$$subs.awk | sed '
26835 ' >>$CONFIG_STATUS || ac_write_fail=1
26836 rm -f conf$$subs.awk
26837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26839 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
26840 for (key in S) S_is_set[key] = 1
26846 nfields = split(line, field, "@
")
26848 len = length(field[1])
26849 for (i = 2; i < nfields; i++) {
26851 keylen = length(key)
26852 if (S_is_set[key]) {
26854 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26855 len += length(value) + length(field[++i])
26866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26867 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26868 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26871 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
26872 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
26875 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26876 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
26877 # trailing colons and then remove the whole line if VPATH becomes empty
26878 # (actually we leave an empty line to preserve line numbers).
26879 if test "x
$srcdir" = x.; then
26880 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26899 fi # test -n "$CONFIG_FILES"
26901 # Set up the scripts for CONFIG_HEADERS section.
26902 # No need to generate them if there are no CONFIG_HEADERS.
26903 # This happens for instance with `./config.status Makefile'.
26904 if test -n "$CONFIG_HEADERS"; then
26905 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
26909 # Transform confdefs.h into an awk script `defines.awk', embedded as
26910 # here-document in config.status, that substitutes the proper values into
26911 # config.h.in to produce config.h.
26913 # Create a delimiter string that does not exist in confdefs.h, to ease
26914 # handling of long lines.
26916 for ac_last_try in false false :; do
26917 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
26918 if test -z "$ac_tt"; then
26920 elif $ac_last_try; then
26921 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
26923 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26927 # For the awk script, D is an array of macro values keyed by name,
26928 # likewise P contains macro parameters if any. Preserve backslash
26929 # newline sequences.
26931 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26933 s/.\{148\}/&'"$ac_delim"'/g
26936 s/^[ ]*#[ ]*define[ ][ ]*/ /
26943 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26945 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26950 D["\
1"]=" \
3\\\\\\n
"\\/p
26952 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26957 s/.\{148\}/&'"$ac_delim"'/g
26962 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26965 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26967 ' <confdefs.h | sed '
26968 s/'"$ac_delim"'/"\\\
26969 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26972 for (key in D) D_is_set[key] = 1
26975 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26977 split(line, arg, " ")
26978 if (arg[1] == "#") {
26982 defundef
= substr
(arg
[1], 2)
26985 split(mac1
, mac2
, "(") #)
26987 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26988 if (D_is_set
[macro
]) {
26989 # Preserve the white space surrounding the "#".
26990 print prefix
"define", macro P
[macro
] D
[macro
]
26993 # Replace #undef with comments. This is necessary, for example,
26994 # in the case of _POSIX_SOURCE, which is predefined and required
26995 # on some systems where configure will not decide to define it.
26996 if (defundef
== "undef") {
26997 print
"/*", prefix defundef
, macro
, "*/"
27005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27006 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
27007 fi # test -n "$CONFIG_HEADERS"
27010 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27015 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27017 case $ac_mode$ac_tag in
27019 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
27020 :[FH
]-) ac_tag
=-:-;;
27021 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27038 -) ac_f
="$ac_tmp/stdin";;
27039 *) # Look for the file first in the build tree, then in the source tree
27040 # (if the path is not absolute). The absolute path cannot be DOS-style,
27041 # because $ac_f cannot contain `:'.
27045 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27047 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27049 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27050 as_fn_append ac_file_inputs
" '$ac_f'"
27053 # Let's still pretend it is `configure' which instantiates (i.e., don't
27054 # use $as_me), people would be surprised to read:
27055 # /* config.h. Generated by config.status. */
27056 configure_input
='Generated from '`
27057 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27059 if test x
"$ac_file" != x-
; then
27060 configure_input
="$ac_file. $configure_input"
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27062 $as_echo "$as_me: creating $ac_file" >&6;}
27064 # Neutralize special characters interpreted by sed in replacement strings.
27065 case $configure_input in #(
27066 *\
&* |
*\|
* |
*\\* )
27067 ac_sed_conf_input
=`$as_echo "$configure_input" |
27068 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27069 *) ac_sed_conf_input
=$configure_input;;
27073 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
27074 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
27079 ac_dir
=`$as_dirname -- "$ac_file" ||
27080 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27081 X"$ac_file" : 'X\(//\)[^/]' \| \
27082 X"$ac_file" : 'X\(//\)$' \| \
27083 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27084 $as_echo X"$ac_file" |
27085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27089 /^X\(\/\/\)[^/].*/{
27102 as_dir
="$ac_dir"; as_fn_mkdir_p
27106 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27108 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27109 # A ".." for each directory in $ac_dir_suffix.
27110 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27111 case $ac_top_builddir_sub in
27112 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27113 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27116 ac_abs_top_builddir
=$ac_pwd
27117 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27118 # for backward compatibility:
27119 ac_top_builddir
=$ac_top_build_prefix
27122 .
) # We are building in place.
27124 ac_top_srcdir
=$ac_top_builddir_sub
27125 ac_abs_top_srcdir
=$ac_pwd ;;
27126 [\\/]* | ?
:[\\/]* ) # Absolute name.
27127 ac_srcdir
=$srcdir$ac_dir_suffix;
27128 ac_top_srcdir
=$srcdir
27129 ac_abs_top_srcdir
=$srcdir ;;
27130 *) # Relative name.
27131 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27132 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27133 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27135 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27145 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27146 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27148 ac_MKDIR_P
=$MKDIR_P
27150 [\\/$
]* | ?
:[\\/]* ) ;;
27151 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
27155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27156 # If the template does not know about datarootdir, expand it.
27157 # FIXME: This hack should be removed a few years after 2.60.
27158 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27169 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27170 *datarootdir
*) ac_datarootdir_seen
=yes;;
27171 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27173 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27176 ac_datarootdir_hack='
27177 s&@datadir@&$datadir&g
27178 s&@docdir@&$docdir&g
27179 s&@infodir@&$infodir&g
27180 s&@localedir@&$localedir&g
27181 s&@mandir@&$mandir&g
27182 s&\\\${datarootdir}&$datarootdir&g' ;;
27186 # Neutralize VPATH when `$srcdir' = `.'.
27187 # Shell code in configure.ac might set extrasub.
27188 # FIXME: do we really want to maintain this feature?
27189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27190 ac_sed_extra="$ac_vpsub
27193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27195 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27196 s|@configure_input@|
$ac_sed_conf_input|
;t t
27197 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27198 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27199 s
&@srcdir@
&$ac_srcdir&;t t
27200 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27201 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27202 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27203 s
&@builddir@
&$ac_builddir&;t t
27204 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27205 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27206 s
&@INSTALL@
&$ac_INSTALL&;t t
27207 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
27208 $ac_datarootdir_hack
27210 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
27211 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
27213 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27214 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
27215 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27216 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27218 which seems to be undefined. Please make sure it is defined" >&5
27219 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27220 which seems to be undefined. Please make sure it is defined" >&2;}
27222 rm -f "$ac_tmp/stdin"
27224 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27225 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27233 if test x"$ac_file" != x-; then
27235 $as_echo "/* $configure_input */" \
27236 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27237 } >"$ac_tmp/config.h" \
27238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27239 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27240 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27241 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27244 mv "$ac_tmp/config.h" "$ac_file" \
27245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27248 $as_echo "/* $configure_input */" \
27249 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27250 || as_fn_error $? "could not create -" "$LINENO" 5
27252 # Compute "$ac_file"'s index
in $config_headers.
27255 for _am_header
in $config_headers :; do
27256 case $_am_header in
27257 $_am_arg |
$_am_arg:* )
27260 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
27263 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27264 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27265 X"$_am_arg" : 'X\(//\)[^/]' \| \
27266 X"$_am_arg" : 'X\(//\)$' \| \
27267 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27268 $as_echo X"$_am_arg" |
27269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27273 /^X\(\/\/\)[^/].*/{
27285 s/.*/./; q'`/stamp-h
$_am_stamp_count
27288 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27289 $as_echo "$as_me: executing $ac_file commands" >&6;}
27294 case $ac_file$ac_mode in
27295 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
27296 # Older Autoconf quotes --file arguments for eval, but not when files
27297 # are listed without --file. Let's play safe and only enable the eval
27298 # if we detect the quoting.
27299 case $CONFIG_FILES in
27300 *\'*) eval set x
"$CONFIG_FILES" ;;
27301 *) set x
$CONFIG_FILES ;;
27306 # Strip MF so we end up with the name of the file.
27307 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27308 # Check whether this is an Automake generated Makefile or not.
27309 # We used to match only the files named 'Makefile.in', but
27310 # some people rename them; so instead we look at the file content.
27311 # Grep'ing the first line is not enough: some people post-process
27312 # each Makefile.in and add a new line on top of each file to say so.
27313 # Grep'ing the whole file is not good either: AIX grep has a line
27314 # limit of 2048, but all sed's we know have understand at least 4000.
27315 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
27316 dirpart
=`$as_dirname -- "$mf" ||
27317 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27318 X"$mf" : 'X\(//\)[^/]' \| \
27319 X"$mf" : 'X\(//\)$' \| \
27320 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27326 /^X\(\/\/\)[^/].*/{
27342 # Extract the definition of DEPDIR, am__include, and am__quote
27343 # from the Makefile without running 'make'.
27344 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27345 test -z "$DEPDIR" && continue
27346 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27347 test -z "$am__include" && continue
27348 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27349 # Find all dependency output files, they are included files with
27350 # $(DEPDIR) in their names. We invoke sed twice because it is the
27351 # simplest approach to changing $(DEPDIR) to its actual value in the
27353 for file in `sed -n "
27354 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27355 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27356 # Make sure the directory exists.
27357 test -f "$dirpart/$file" && continue
27358 fdir
=`$as_dirname -- "$file" ||
27359 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27360 X"$file" : 'X\(//\)[^/]' \| \
27361 X"$file" : 'X\(//\)$' \| \
27362 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27363 $as_echo X"$file" |
27364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27368 /^X\(\/\/\)[^/].*/{
27381 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
27382 # echo "creating $dirpart/$file"
27383 echo '# dummy' > "$dirpart/$file"
27389 case x
$CONFIG_HEADERS in
27390 xconfig.h
:config.
in)
27401 ac_clean_files
=$ac_clean_files_save
27403 test $ac_write_fail = 0 ||
27404 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
27407 # configure is writing to config.log, and then calls config.status.
27408 # config.status does its own redirection, appending to config.log.
27409 # Unfortunately, on DOS this fails, as config.log is still kept open
27410 # by configure, so config.status won't be able to write to it; its
27411 # output is simply discarded. So we exec the FD to /dev/null,
27412 # effectively closing config.log, so it can be properly (re)opened and
27413 # appended to by config.status. When coming back to configure, we
27414 # need to make the FD available again.
27415 if test "$no_create" != yes; then
27417 ac_config_status_args
=
27418 test "$silent" = yes &&
27419 ac_config_status_args
="$ac_config_status_args --quiet"
27421 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27423 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27424 # would make configure fail if this is the last instruction.
27425 $ac_cs_success || as_fn_exit
1
27427 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27429 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}