2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libgnu UNUSED-VERSION.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
578 PACKAGE_NAME
='libgnu'
579 PACKAGE_TARNAME
='libgnu'
580 PACKAGE_VERSION
='UNUSED-VERSION'
581 PACKAGE_STRING
='libgnu UNUSED-VERSION'
585 ac_unique_file
="import/memmem.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 gl_use_threads_default
=
625 gl_fnmatch_required
=POSIX
626 ac_subst_vars
='am__EXEEXT_FALSE
656 INSTALL_STRIP_PROGRAM
677 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
690 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
693 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
695 UNISTD_H_DEFINES_STRUCT_TIMESPEC
696 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
697 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
698 TIME_H_DEFINES_STRUCT_TIMESPEC
699 NEXT_AS_FIRST_DIRECTIVE_TIME_H
710 HAVE_DECL_LOCALTIME_R
718 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
721 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
723 NEXT_AS_FIRST_DIRECTIVE_STRING_H
725 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
727 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
729 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
731 GL_GENERATE_STDDEF_H_FALSE
732 GL_GENERATE_STDDEF_H_TRUE
738 GL_GENERATE_STDBOOL_H_FALSE
739 GL_GENERATE_STDBOOL_H_TRUE
741 GL_GENERATE_STDALIGN_H_FALSE
742 GL_GENERATE_STDALIGN_H_TRUE
744 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
747 REPLACE_PTHREAD_SIGMASK
749 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
750 HAVE_STRUCT_SIGACTION_SA_SIGACTION
756 HAVE_POSIX_SIGNALBLOCKING
759 GNULIB_SIGNAL_H_SIGPIPE
761 GNULIB_PTHREAD_SIGMASK
769 REPLACE_STDIO_WRITE_FUNCS
770 REPLACE_STDIO_READ_FUNCS
779 REPLACE_OBSTACK_PRINTF
804 HAVE_DECL_OBSTACK_PRINTF
810 GNULIB_VSPRINTF_POSIX
814 GNULIB_VFPRINTF_POSIX
821 GNULIB_STDIO_H_SIGPIPE
822 GNULIB_STDIO_H_NONBLOCKING
837 GNULIB_OBSTACK_PRINTF_POSIX
838 GNULIB_OBSTACK_PRINTF
863 GL_GENERATE_NETINET_IN_H_FALSE
864 GL_GENERATE_NETINET_IN_H_TRUE
867 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1037 NEXT_AS_FIRST_DIRECTIVE_MATH_H
1046 LOCALCHARSET_TESTS_ENVIRONMENT
1048 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1050 UINT64_MAX_EQ_ULONG_MAX
1051 UINT32_MAX_LT_UINTMAX_MAX
1054 INT64_MAX_EQ_LONG_MAX
1055 INT32_MAX_LT_INTMAX_MAX
1066 GL_GENERATE_STDINT_H_FALSE
1067 GL_GENERATE_STDINT_H_TRUE
1079 HAVE_SIGNED_SIG_ATOMIC_T
1082 BITSIZEOF_SIG_ATOMIC_T
1085 APPLE_UNIVERSAL_BUILD
1087 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1092 HAVE_UNSIGNED_LONG_LONG_INT
1094 GL_GENERATE_LIMITS_H_FALSE
1095 GL_GENERATE_LIMITS_H_TRUE
1097 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1101 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1105 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
1106 HAVE_STRUCT_SOCKADDR_STORAGE
1124 GL_GENERATE_GLOB_H_FALSE
1125 GL_GENERATE_GLOB_H_TRUE
1127 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1129 REPLACE_STRUCT_TIMEVAL
1130 REPLACE_GETTIMEOFDAY
1138 WINDOWS_64_BIT_ST_SIZE
1139 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1175 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1181 REPLACE_SIGNBIT_USING_GCC
1250 HAVE_DECL_REMAINDERL
1431 GL_GENERATE_FNMATCH_H_FALSE
1432 GL_GENERATE_FNMATCH_H_TRUE
1435 GL_GENERATE_FLOAT_H_FALSE
1436 GL_GENERATE_FLOAT_H_TRUE
1438 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1440 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1457 GL_GENERATE_ERRNO_H_FALSE
1458 GL_GENERATE_ERRNO_H_TRUE
1460 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1463 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1490 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1491 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1492 UNISTD_H_HAVE_WINSOCK2_H
1515 REPLACE_GETDTABLESIZE
1516 REPLACE_GETDOMAINNAME
1527 HAVE_DECL_SETHOSTNAME
1528 HAVE_DECL_GETUSERSHELL
1529 HAVE_DECL_GETPAGESIZE
1530 HAVE_DECL_GETLOGIN_R
1531 HAVE_DECL_GETDOMAINNAME
1570 GNULIB_UNISTD_H_SIGPIPE
1571 GNULIB_UNISTD_H_NONBLOCKING
1597 GNULIB_GETDTABLESIZE
1598 GNULIB_GETDOMAINNAME
1628 REPLACE_CANONICALIZE_FILE_NAME
1633 HAVE_STRUCT_RANDOM_DATA
1656 HAVE_DECL_GETLOADAVG
1657 HAVE_CANONICALIZE_FILE_NAME
1668 GNULIB_SECURE_GETENV
1671 GNULIB_REALLOC_POSIX
1689 GNULIB_CANONICALIZE_FILE_NAME
1695 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1698 PRAGMA_SYSTEM_HEADER
1699 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1708 GL_GENERATE_ALLOCA_H_FALSE
1709 GL_GENERATE_ALLOCA_H_TRUE
1712 GL_COND_LIBTOOL_FALSE
1713 GL_COND_LIBTOOL_TRUE
1741 MAINTAINER_MODE_FALSE
1742 MAINTAINER_MODE_TRUE
1770 program_transform_name
1783 enable_option_checking
1784 enable_maintainer_mode
1791 enable_dependency_tracking
1794 ac_precious_vars
='build_alias
1805 # Initialize some variables set by options.
1807 ac_init_version
=false
1808 ac_unrecognized_opts
=
1809 ac_unrecognized_sep
=
1810 # The variables have the same names as the options, with
1811 # dashes changed to underlines.
1812 cache_file
=/dev
/null
1819 program_transform_name
=s
,x
,x
,
1827 # Installation directory options.
1828 # These are left unexpanded so users can "make install exec_prefix=/foo"
1829 # and all the variables that are supposed to be based on exec_prefix
1830 # by default will actually change.
1831 # Use braces instead of parens because sh, perl, etc. also accept them.
1832 # (The list follows the same order as the GNU Coding Standards.)
1833 bindir
='${exec_prefix}/bin'
1834 sbindir
='${exec_prefix}/sbin'
1835 libexecdir
='${exec_prefix}/libexec'
1836 datarootdir
='${prefix}/share'
1837 datadir
='${datarootdir}'
1838 sysconfdir
='${prefix}/etc'
1839 sharedstatedir
='${prefix}/com'
1840 localstatedir
='${prefix}/var'
1841 includedir
='${prefix}/include'
1842 oldincludedir
='/usr/include'
1843 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1844 infodir
='${datarootdir}/info'
1849 libdir
='${exec_prefix}/lib'
1850 localedir
='${datarootdir}/locale'
1851 mandir
='${datarootdir}/man'
1857 # If the previous option needs an argument, assign it.
1858 if test -n "$ac_prev"; then
1859 eval $ac_prev=\
$ac_option
1865 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1870 # Accept the important Cygnus configure options, so we can diagnose typos.
1872 case $ac_dashdash$ac_option in
1876 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1878 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1879 bindir
=$ac_optarg ;;
1881 -build |
--build |
--buil |
--bui |
--bu)
1882 ac_prev
=build_alias
;;
1883 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1884 build_alias
=$ac_optarg ;;
1886 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1887 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1888 ac_prev
=cache_file
;;
1889 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1890 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1891 cache_file
=$ac_optarg ;;
1893 --config-cache |
-C)
1894 cache_file
=config.cache
;;
1896 -datadir |
--datadir |
--datadi |
--datad)
1898 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1899 datadir
=$ac_optarg ;;
1901 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1902 |
--dataroo |
--dataro |
--datar)
1903 ac_prev
=datarootdir
;;
1904 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1905 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1906 datarootdir
=$ac_optarg ;;
1908 -disable-* |
--disable-*)
1909 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1910 # Reject names that are not valid shell variable names.
1911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1912 as_fn_error $?
"invalid feature name: $ac_useropt"
1913 ac_useropt_orig
=$ac_useropt
1914 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1915 case $ac_user_opts in
1917 "enable_
$ac_useropt"
1919 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1920 ac_unrecognized_sep
=', ';;
1922 eval enable_
$ac_useropt=no
;;
1924 -docdir |
--docdir |
--docdi |
--doc |
--do)
1926 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1927 docdir
=$ac_optarg ;;
1929 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1931 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1932 dvidir
=$ac_optarg ;;
1934 -enable-* |
--enable-*)
1935 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1936 # Reject names that are not valid shell variable names.
1937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1938 as_fn_error $?
"invalid feature name: $ac_useropt"
1939 ac_useropt_orig
=$ac_useropt
1940 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1941 case $ac_user_opts in
1943 "enable_
$ac_useropt"
1945 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1946 ac_unrecognized_sep
=', ';;
1948 eval enable_
$ac_useropt=\
$ac_optarg ;;
1950 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1951 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1952 |
--exec |
--exe |
--ex)
1953 ac_prev
=exec_prefix
;;
1954 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1955 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1956 |
--exec=* |
--exe=* |
--ex=*)
1957 exec_prefix
=$ac_optarg ;;
1959 -gas |
--gas |
--ga |
--g)
1960 # Obsolete; use --with-gas.
1963 -help |
--help |
--hel |
--he |
-h)
1964 ac_init_help
=long
;;
1965 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1966 ac_init_help
=recursive
;;
1967 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1968 ac_init_help
=short
;;
1970 -host |
--host |
--hos |
--ho)
1971 ac_prev
=host_alias
;;
1972 -host=* |
--host=* |
--hos=* |
--ho=*)
1973 host_alias
=$ac_optarg ;;
1975 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1977 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1979 htmldir
=$ac_optarg ;;
1981 -includedir |
--includedir |
--includedi |
--included |
--include \
1982 |
--includ |
--inclu |
--incl |
--inc)
1983 ac_prev
=includedir
;;
1984 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1985 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1986 includedir
=$ac_optarg ;;
1988 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1990 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1991 infodir
=$ac_optarg ;;
1993 -libdir |
--libdir |
--libdi |
--libd)
1995 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1996 libdir
=$ac_optarg ;;
1998 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1999 |
--libexe |
--libex |
--libe)
2000 ac_prev
=libexecdir
;;
2001 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
2002 |
--libexe=* |
--libex=* |
--libe=*)
2003 libexecdir
=$ac_optarg ;;
2005 -localedir |
--localedir |
--localedi |
--localed |
--locale)
2006 ac_prev
=localedir
;;
2007 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
2008 localedir
=$ac_optarg ;;
2010 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
2011 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
2012 ac_prev
=localstatedir
;;
2013 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
2014 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
2015 localstatedir
=$ac_optarg ;;
2017 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
2019 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
2020 mandir
=$ac_optarg ;;
2022 -nfp |
--nfp |
--nf)
2023 # Obsolete; use --without-fp.
2026 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
2027 |
--no-cr |
--no-c |
-n)
2030 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
2031 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
2034 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
2035 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
2036 |
--oldin |
--oldi |
--old |
--ol |
--o)
2037 ac_prev
=oldincludedir
;;
2038 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
2039 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
2040 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
2041 oldincludedir
=$ac_optarg ;;
2043 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
2045 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
2046 prefix
=$ac_optarg ;;
2048 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
2049 |
--program-pre |
--program-pr |
--program-p)
2050 ac_prev
=program_prefix
;;
2051 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
2052 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
2053 program_prefix
=$ac_optarg ;;
2055 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
2056 |
--program-suf |
--program-su |
--program-s)
2057 ac_prev
=program_suffix
;;
2058 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
2059 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
2060 program_suffix
=$ac_optarg ;;
2062 -program-transform-name |
--program-transform-name \
2063 |
--program-transform-nam |
--program-transform-na \
2064 |
--program-transform-n |
--program-transform- \
2065 |
--program-transform |
--program-transfor \
2066 |
--program-transfo |
--program-transf \
2067 |
--program-trans |
--program-tran \
2068 |
--progr-tra |
--program-tr |
--program-t)
2069 ac_prev
=program_transform_name
;;
2070 -program-transform-name=* |
--program-transform-name=* \
2071 |
--program-transform-nam=* |
--program-transform-na=* \
2072 |
--program-transform-n=* |
--program-transform-=* \
2073 |
--program-transform=* |
--program-transfor=* \
2074 |
--program-transfo=* |
--program-transf=* \
2075 |
--program-trans=* |
--program-tran=* \
2076 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
2077 program_transform_name
=$ac_optarg ;;
2079 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
2081 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
2082 pdfdir
=$ac_optarg ;;
2084 -psdir |
--psdir |
--psdi |
--psd |
--ps)
2086 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
2089 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2090 |
-silent |
--silent |
--silen |
--sile |
--sil)
2093 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
2095 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
2097 sbindir
=$ac_optarg ;;
2099 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
2100 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
2101 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
2103 ac_prev
=sharedstatedir
;;
2104 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
2105 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
2106 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
2108 sharedstatedir
=$ac_optarg ;;
2110 -site |
--site |
--sit)
2112 -site=* |
--site=* |
--sit=*)
2115 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
2117 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
2118 srcdir
=$ac_optarg ;;
2120 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
2121 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
2122 ac_prev
=sysconfdir
;;
2123 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
2124 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
2125 sysconfdir
=$ac_optarg ;;
2127 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
2128 ac_prev
=target_alias
;;
2129 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
2130 target_alias
=$ac_optarg ;;
2132 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
2135 -version |
--version |
--versio |
--versi |
--vers |
-V)
2136 ac_init_version
=: ;;
2139 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2140 # Reject names that are not valid shell variable names.
2141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2142 as_fn_error $?
"invalid package name: $ac_useropt"
2143 ac_useropt_orig
=$ac_useropt
2144 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2145 case $ac_user_opts in
2149 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2150 ac_unrecognized_sep
=', ';;
2152 eval with_
$ac_useropt=\
$ac_optarg ;;
2154 -without-* |
--without-*)
2155 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2156 # Reject names that are not valid shell variable names.
2157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
2158 as_fn_error $?
"invalid package name: $ac_useropt"
2159 ac_useropt_orig
=$ac_useropt
2160 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2161 case $ac_user_opts in
2165 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2166 ac_unrecognized_sep
=', ';;
2168 eval with_
$ac_useropt=no
;;
2171 # Obsolete; use --with-x.
2174 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
2175 |
--x-incl |
--x-inc |
--x-in |
--x-i)
2176 ac_prev
=x_includes
;;
2177 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
2178 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
2179 x_includes
=$ac_optarg ;;
2181 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
2182 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
2183 ac_prev
=x_libraries
;;
2184 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
2185 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
2186 x_libraries
=$ac_optarg ;;
2188 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
2189 Try \`$0 --help' for more information"
2193 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
2194 # Reject names that are not valid shell variable names.
2195 case $ac_envvar in #(
2196 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
2197 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
2199 eval $ac_envvar=\
$ac_optarg
2200 export $ac_envvar ;;
2203 # FIXME: should be removed in autoconf 3.0.
2204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
2206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2213 if test -n "$ac_prev"; then
2214 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
2215 as_fn_error $?
"missing argument to $ac_option"
2218 if test -n "$ac_unrecognized_opts"; then
2219 case $enable_option_checking in
2221 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
2222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2226 # Check all directory arguments for consistency.
2227 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2228 datadir sysconfdir sharedstatedir localstatedir includedir \
2229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2230 libdir localedir mandir
2232 eval ac_val
=\$
$ac_var
2233 # Remove trailing slashes.
2236 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2237 eval $ac_var=\
$ac_val;;
2239 # Be sure to have absolute directory names.
2241 [\\/$
]* | ?
:[\\/]* ) continue;;
2242 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
2244 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
2247 # There might be people who depend on the old broken behavior: `$host'
2248 # used to hold the argument of --host etc.
2249 # FIXME: To remove some day.
2252 target
=$target_alias
2254 # FIXME: To remove some day.
2255 if test "x$host_alias" != x
; then
2256 if test "x$build_alias" = x
; then
2257 cross_compiling
=maybe
2258 elif test "x$build_alias" != "x$host_alias"; then
2264 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2266 test "$silent" = yes && exec 6>/dev
/null
2269 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2270 ac_ls_di
=`ls -di .` &&
2271 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2272 as_fn_error $?
"working directory cannot be determined"
2273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2274 as_fn_error $?
"pwd does not report name of working directory"
2277 # Find the source files, if location was not specified.
2278 if test -z "$srcdir"; then
2279 ac_srcdir_defaulted
=yes
2280 # Try the directory containing this script, then the parent directory.
2281 ac_confdir
=`$as_dirname -- "$as_myself" ||
2282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2283 X"$as_myself" : 'X\(//\)[^/]' \| \
2284 X"$as_myself" : 'X\(//\)$' \| \
2285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2286 $as_echo X"$as_myself" |
2287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2305 if test ! -r "$srcdir/$ac_unique_file"; then
2309 ac_srcdir_defaulted
=no
2311 if test ! -r "$srcdir/$ac_unique_file"; then
2312 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2313 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
2315 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2319 # When building in place, set srcdir=.
2320 if test "$ac_abs_confdir" = "$ac_pwd"; then
2323 # Remove unnecessary trailing slashes from srcdir.
2324 # Double slashes in file names in object file debugging info
2325 # mess up M-x gdb in Emacs.
2327 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2329 for ac_var
in $ac_precious_vars; do
2330 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2331 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2332 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2333 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2337 # Report the --help message.
2339 if test "$ac_init_help" = "long"; then
2340 # Omit some internal or obsolete options to make the list less imposing.
2341 # This message is too long to be a string in the A/UX 3.1 sh.
2343 \`configure' configures libgnu UNUSED-VERSION to adapt to many kinds of systems.
2345 Usage: $0 [OPTION]... [VAR=VALUE]...
2347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2348 VAR=VALUE. See below for descriptions of some of the useful variables.
2350 Defaults for the options are specified in brackets.
2353 -h, --help display this help and exit
2354 --help=short display options specific to this package
2355 --help=recursive display the short help of all the included packages
2356 -V, --version display version information and exit
2357 -q, --quiet, --silent do not print \`checking ...' messages
2358 --cache-file=FILE cache test results in FILE [disabled]
2359 -C, --config-cache alias for \`--cache-file=config.cache'
2360 -n, --no-create do not create output files
2361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2363 Installation directories:
2364 --prefix=PREFIX install architecture-independent files in PREFIX
2365 [$ac_default_prefix]
2366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2369 By default, \`make install' will install all the files in
2370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2372 for instance \`--prefix=\$HOME'.
2374 For better control, use the options below.
2376 Fine tuning of the installation directories:
2377 --bindir=DIR user executables [EPREFIX/bin]
2378 --sbindir=DIR system admin executables [EPREFIX/sbin]
2379 --libexecdir=DIR program executables [EPREFIX/libexec]
2380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2383 --libdir=DIR object code libraries [EPREFIX/lib]
2384 --includedir=DIR C header files [PREFIX/include]
2385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2388 --infodir=DIR info documentation [DATAROOTDIR/info]
2389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2390 --mandir=DIR man documentation [DATAROOTDIR/man]
2391 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnu]
2392 --htmldir=DIR html documentation [DOCDIR]
2393 --dvidir=DIR dvi documentation [DOCDIR]
2394 --pdfdir=DIR pdf documentation [DOCDIR]
2395 --psdir=DIR ps documentation [DOCDIR]
2401 --program-prefix=PREFIX prepend PREFIX to installed program names
2402 --program-suffix=SUFFIX append SUFFIX to installed program names
2403 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2406 --build=BUILD configure
for building on BUILD
[guessed
]
2407 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2408 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2412 if test -n "$ac_init_help"; then
2413 case $ac_init_help in
2414 short | recursive
) echo "Configuration of libgnu UNUSED-VERSION:";;
2419 --disable-option-checking ignore unrecognized
--enable/--with options
2420 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2421 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2422 --enable-maintainer-mode
2423 enable make rules and dependencies not useful
(and
2424 sometimes confusing
) to the casual installer
2425 --disable-largefile omit support
for large files
2426 --enable-threads={posix|solaris|pth|windows
}
2427 specify multithreading API
2428 --disable-threads build without multithread safety
2429 --enable-plugins Enable support
for plugins
2430 --disable-rpath do not hardcode runtime library paths
2431 --enable-dependency-tracking
2432 do not reject slow dependency extractors
2433 --disable-dependency-tracking
2434 speeds up one-time build
2435 --enable-silent-rules less verbose build output
(undo
: "make V=1")
2436 --disable-silent-rules verbose build output
(undo
: "make V=0")
2439 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
2440 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
2441 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
2442 --with-libpth-prefix[=DIR
] search
for libpth
in DIR
/include and DIR
/lib
2443 --without-libpth-prefix don
't search for libpth in includedir and libdir
2445 Some influential environment variables:
2446 CC C compiler command
2447 CFLAGS C compiler flags
2448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2449 nonstandard directory <lib dir>
2450 LIBS libraries to pass to the linker, e.g. -l<library>
2451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2452 you have headers in a nonstandard directory <include dir>
2455 Use these variables to override the choices made by `configure' or to
help
2456 it to
find libraries and programs with nonstandard names
/locations.
2458 Report bugs to the package provider.
2463 if test "$ac_init_help" = "recursive"; then
2464 # If there are subdirs, report their specific --help.
2465 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
2466 test -d "$ac_dir" ||
2467 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
2472 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2474 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2475 # A ".." for each directory in $ac_dir_suffix.
2476 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2477 case $ac_top_builddir_sub in
2478 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
2479 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
2482 ac_abs_top_builddir
=$ac_pwd
2483 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
2484 # for backward compatibility:
2485 ac_top_builddir
=$ac_top_build_prefix
2488 .
) # We are building in place.
2490 ac_top_srcdir
=$ac_top_builddir_sub
2491 ac_abs_top_srcdir
=$ac_pwd ;;
2492 [\\/]* | ?
:[\\/]* ) # Absolute name.
2493 ac_srcdir
=$srcdir$ac_dir_suffix;
2494 ac_top_srcdir
=$srcdir
2495 ac_abs_top_srcdir
=$srcdir ;;
2497 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
2498 ac_top_srcdir
=$ac_top_build_prefix$srcdir
2499 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
2501 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
2503 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
2504 # Check for guested configure.
2505 if test -f "$ac_srcdir/configure.gnu"; then
2507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2508 elif test -f "$ac_srcdir/configure"; then
2510 $SHELL "$ac_srcdir/configure" --help=recursive
2512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2514 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
2518 test -n "$ac_init_help" && exit $ac_status
2519 if $ac_init_version; then
2521 libgnu configure UNUSED-VERSION
2522 generated by GNU Autoconf
2.69
2524 Copyright
(C
) 2012 Free Software Foundation
, Inc.
2525 This configure
script is free software
; the Free Software Foundation
2526 gives unlimited permission to copy
, distribute and modify it.
2531 ## ------------------------ ##
2532 ## Autoconf initialization. ##
2533 ## ------------------------ ##
2535 # ac_fn_c_try_compile LINENO
2536 # --------------------------
2537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2538 ac_fn_c_try_compile
()
2540 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2541 rm -f conftest.
$ac_objext
2542 if { { ac_try
="$ac_compile"
2544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2548 $as_echo "$ac_try_echo"; } >&5
2549 (eval "$ac_compile") 2>conftest.err
2551 if test -s conftest.err; then
2552 grep -v '^ *+' conftest.err >conftest.er1
2553 cat conftest.er1 >&5
2554 mv -f conftest.er1 conftest.err
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; } && {
2558 test -z "$ac_c_werror_flag" ||
2559 test ! -s conftest.err
2560 } && test -s conftest.$ac_objext; then :
2563 $as_echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569 as_fn_set_status $ac_retval
2571 } # ac_fn_c_try_compile
2573 # ac_fn_c_try_cpp LINENO
2574 # ----------------------
2575 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 if { { ac_try="$ac_cpp conftest.$ac_ext"
2581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2582 *) ac_try_echo
=$ac_try;;
2584 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2585 $as_echo "$ac_try_echo"; } >&5
2586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2588 if test -s conftest.err
; then
2589 grep -v '^ *+' conftest.err
>conftest.er1
2590 cat conftest.er1
>&5
2591 mv -f conftest.er1 conftest.err
2593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2594 test $ac_status = 0; } > conftest.i
&& {
2595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2596 test ! -s conftest.err
2600 $as_echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.
$ac_ext >&5
2605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2606 as_fn_set_status
$ac_retval
2610 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2611 # -------------------------------------------------------
2612 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2613 # the include files in INCLUDES and setting the cache variable VAR
2615 ac_fn_c_check_header_mongrel
()
2617 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2618 if eval \
${$3+:} false
; then :
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2620 $as_echo_n "checking for $2... " >&6; }
2621 if eval \
${$3+:} false
; then :
2622 $as_echo_n "(cached) " >&6
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2628 # Is the header compilable?
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2630 $as_echo_n "checking $2 usability... " >&6; }
2631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2636 if ac_fn_c_try_compile
"$LINENO"; then :
2637 ac_header_compiler
=yes
2639 ac_header_compiler
=no
2641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2643 $as_echo "$ac_header_compiler" >&6; }
2645 # Is the header present?
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2647 $as_echo_n "checking $2 presence... " >&6; }
2648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2652 if ac_fn_c_try_cpp
"$LINENO"; then :
2653 ac_header_preproc
=yes
2655 ac_header_preproc
=no
2657 rm -f conftest.err conftest.i conftest.
$ac_ext
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2659 $as_echo "$ac_header_preproc" >&6; }
2661 # So? What about this header?
2662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2665 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2671 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2673 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2675 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2677 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2683 $as_echo_n "checking for $2... " >&6; }
2684 if eval \
${$3+:} false
; then :
2685 $as_echo_n "(cached) " >&6
2687 eval "$3=\$ac_header_compiler"
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_check_header_mongrel
2697 # ac_fn_c_try_run LINENO
2698 # ----------------------
2699 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2700 # that executables *can* be run.
2703 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2704 if { { ac_try
="$ac_link"
2706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_link") 2>&5
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2715 { { case "(($ac_try" in
2716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2717 *) ac_try_echo
=$ac_try;;
2719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720 $as_echo "$ac_try_echo"; } >&5
2721 (eval "$ac_try") 2>&5
2723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724 test $ac_status = 0; }; }; then :
2727 $as_echo "$as_me: program exited with status $ac_status" >&5
2728 $as_echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.
$ac_ext >&5
2731 ac_retval
=$ac_status
2733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735 as_fn_set_status
$ac_retval
2739 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2740 # -------------------------------------------------------
2741 # Tests whether HEADER exists and can be compiled using the include files in
2742 # INCLUDES, setting the cache variable VAR accordingly.
2743 ac_fn_c_check_header_compile
()
2745 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if eval \
${$3+:} false
; then :
2749 $as_echo_n "(cached) " >&6
2751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2756 if ac_fn_c_try_compile
"$LINENO"; then :
2761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2765 $as_echo "$ac_res" >&6; }
2766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2768 } # ac_fn_c_check_header_compile
2770 # ac_fn_c_try_link LINENO
2771 # -----------------------
2772 # Try to link conftest.$ac_ext, and return whether this succeeded.
2775 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2776 rm -f conftest.
$ac_objext conftest
$ac_exeext
2777 if { { ac_try
="$ac_link"
2779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783 $as_echo "$ac_try_echo"; } >&5
2784 (eval "$ac_link") 2>conftest.err
2786 if test -s conftest.err; then
2787 grep -v '^ *+' conftest.err >conftest.er1
2788 cat conftest.er1 >&5
2789 mv -f conftest.er1 conftest.err
2791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792 test $ac_status = 0; } && {
2793 test -z "$ac_c_werror_flag" ||
2794 test ! -s conftest.err
2795 } && test -s conftest$ac_exeext && {
2796 test "$cross_compiling" = yes ||
2797 test -x conftest$ac_exeext
2801 $as_echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2808 # interfere with the next link command; also delete a directory that is
2809 # left behind by Apple's compiler. We do this before executing the actions.
2810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2812 as_fn_set_status $ac_retval
2814 } # ac_fn_c_try_link
2816 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2817 # -------------------------------------------
2818 # Tests whether TYPE exists after having included INCLUDES, setting cache
2819 # variable VAR accordingly.
2820 ac_fn_c_check_type ()
2822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2824 $as_echo_n "checking for $2... " >&6; }
2825 if eval \${$3+:} false; then :
2826 $as_echo_n "(cached) " >&6
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h. */
2841 if ac_fn_c_try_compile "$LINENO"; then :
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2854 if ac_fn_c_try_compile "$LINENO"; then :
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2865 $as_echo "$ac_res" >&6; }
2866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2868 } # ac_fn_c_check_type
2870 # ac_fn_c_check_func LINENO FUNC VAR
2871 # ----------------------------------
2872 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2873 ac_fn_c_check_func ()
2875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2877 $as_echo_n "checking for $2... " >&6; }
2878 if eval \${$3+:} false; then :
2879 $as_echo_n "(cached) " >&6
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2883 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2885 #define $2 innocuous_$2
2887 /* System header to define __stub macros and hopefully few prototypes,
2888 which can conflict with char $2 (); below.
2889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2890 <limits.h> exists even on freestanding compilers. */
2893 # include <limits.h>
2895 # include <assert.h>
2900 /* Override any GCC internal prototype to avoid an error.
2901 Use char because int might match the return type of a GCC
2902 builtin and then its argument prototype would still apply. */
2907 /* The GNU C library defines this for functions which it implements
2908 to always fail with ENOSYS. Some functions are actually named
2909 something starting with __ and the normal name is an alias. */
2910 #if defined __stub_$2 || defined __stub___$2
2922 if ac_fn_c_try_link "$LINENO"; then :
2927 rm -f core conftest.err conftest.$ac_objext \
2928 conftest$ac_exeext conftest.$ac_ext
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2932 $as_echo "$ac_res" >&6; }
2933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2935 } # ac_fn_c_check_func
2937 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2938 # ---------------------------------------------
2939 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2941 ac_fn_c_check_decl ()
2943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2944 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2945 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2947 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2948 if eval \${$3+:} false; then :
2949 $as_echo_n "(cached) " >&6
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2957 #ifndef $as_decl_name
2959 (void) $as_decl_use;
2961 (void) $as_decl_name;
2969 if ac_fn_c_try_compile "$LINENO"; then :
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2978 $as_echo "$ac_res" >&6; }
2979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2981 } # ac_fn_c_check_decl
2983 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2984 # --------------------------------------------
2985 # Tries to find the compile-time value of EXPR in a program that includes
2986 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2988 ac_fn_c_compute_int ()
2990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2991 if test "$cross_compiling" = yes; then
2992 # Depending upon the size, compute the lo and hi bounds.
2993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2994 /* end confdefs.h. */
2999 static int test_array [1 - 2 * !(($2) >= 0)];
3001 return test_array [0];
3007 if ac_fn_c_try_compile "$LINENO"; then :
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3016 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3018 return test_array [0];
3024 if ac_fn_c_try_compile "$LINENO"; then :
3025 ac_hi=$ac_mid; break
3027 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3028 if test $ac_lo -le $ac_mid; then
3032 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3043 static int test_array [1 - 2 * !(($2) < 0)];
3045 return test_array [0];
3051 if ac_fn_c_try_compile "$LINENO"; then :
3054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3060 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3062 return test_array [0];
3068 if ac_fn_c_try_compile "$LINENO"; then :
3069 ac_lo=$ac_mid; break
3071 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3072 if test $ac_mid -le $ac_hi; then
3076 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 # Binary search between lo and hi bounds.
3087 while test "x$ac_lo" != "x$ac_hi"; do
3088 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3097 return test_array [0];
3103 if ac_fn_c_try_compile "$LINENO"; then :
3106 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3118 static long int longval () { return $2; }
3119 static unsigned long int ulongval () { return $2; }
3126 FILE *f = fopen ("conftest.val", "w");
3131 long int i = longval ();
3134 fprintf (f, "%ld", i);
3138 unsigned long int i = ulongval ();
3141 fprintf (f, "%lu", i);
3143 /* Do not output a trailing newline, as this causes \r\n confusion
3144 on some platforms. */
3145 return ferror (f) || fclose (f) != 0;
3151 if ac_fn_c_try_run "$LINENO"; then :
3152 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3157 conftest.$ac_objext conftest.beam conftest.$ac_ext
3161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3162 as_fn_set_status $ac_retval
3164 } # ac_fn_c_compute_int
3166 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3167 # ----------------------------------------------------
3168 # Tries to find if the field MEMBER exists in type AGGR, after including
3169 # INCLUDES, setting cache variable VAR accordingly.
3170 ac_fn_c_check_member ()
3172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3174 $as_echo_n "checking for $2.$3... " >&6; }
3175 if eval \${$4+:} false; then :
3176 $as_echo_n "(cached) " >&6
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3191 if ac_fn_c_try_compile "$LINENO"; then :
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3201 if (sizeof ac_aggr.$3)
3207 if ac_fn_c_try_compile "$LINENO"; then :
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3218 $as_echo "$ac_res" >&6; }
3219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3221 } # ac_fn_c_check_member
3222 cat >config.log <<_ACEOF
3223 This file contains any messages produced by compilers while
3224 running configure, to aid debugging if configure makes a mistake.
3226 It was created by libgnu $as_me UNUSED-VERSION, which was
3227 generated by GNU Autoconf 2.69. Invocation command line was
3239 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
3240 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
3241 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
3242 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
3243 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
3245 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
3246 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
3248 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
3249 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
3250 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
3251 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
3252 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
3253 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
3254 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 test -z "$as_dir" && as_dir=.
3263 $as_echo "PATH: $as_dir"
3279 # Keep a trace of the command line.
3280 # Strip out --no-create and --no-recursion so they do not pile up.
3281 # Strip out --silent because we don't want to record it for future runs.
3282 # Also quote any args containing shell meta-characters.
3283 # Make two passes to allow for proper duplicate-argument suppression.
3287 ac_must_keep_next=false
3293 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3295 | -silent | --silent | --silen | --sile | --sil)
3298 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3301 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3303 as_fn_append ac_configure_args1 " '$ac_arg'"
3304 if test $ac_must_keep_next = true; then
3305 ac_must_keep_next=false # Got value, back to normal.
3308 *=* | --config-cache | -C | -disable-* | --disable-* \
3309 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3310 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3311 | -with-* | --with-* | -without-* | --without-* | --x)
3312 case "$ac_configure_args0 " in
3313 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3316 -* ) ac_must_keep_next=true ;;
3319 as_fn_append ac_configure_args " '$ac_arg'"
3324 { ac_configure_args0=; unset ac_configure_args0;}
3325 { ac_configure_args1=; unset ac_configure_args1;}
3327 # When interrupted or exit'd, cleanup temporary files, and complete
3328 # config.log. We remove comments because anyway the quotes in there
3329 # would cause problems or look ugly.
3330 # WARNING: Use '\'' to represent an apostrophe within the trap.
3331 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3332 trap 'exit_status=$?
3333 # Save into config.log some information that might help in debugging.
3337 $as_echo "## ---------------- ##
3338 ## Cache variables. ##
3339 ## ---------------- ##"
3341 # The following way of writing the cache mishandles newlines in values,
3343 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3344 eval ac_val=\$$ac_var
3348 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3349 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3352 _ | IFS | as_nl) ;; #(
3353 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3354 *) { eval $ac_var=; unset $ac_var;} ;;
3359 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3360 *${as_nl}ac_space=\ *)
3362 "s/'\''/'\''\\\\'\'''\''/g;
3363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3373 $as_echo "## ----------------- ##
3374 ## Output variables. ##
3375 ## ----------------- ##"
3377 for ac_var in $ac_subst_vars
3379 eval ac_val=\$$ac_var
3381 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3383 $as_echo "$ac_var='\''$ac_val'\''"
3387 if test -n "$ac_subst_files"; then
3388 $as_echo "## ------------------- ##
3389 ## File substitutions. ##
3390 ## ------------------- ##"
3392 for ac_var in $ac_subst_files
3394 eval ac_val=\$$ac_var
3396 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3398 $as_echo "$ac_var='\''$ac_val'\''"
3403 if test -s confdefs.h; then
3404 $as_echo "## ----------- ##
3411 test "$ac_signal" != 0 &&
3412 $as_echo "$as_me: caught signal $ac_signal"
3413 $as_echo "$as_me: exit $exit_status"
3415 rm -f core *.core core.conftest.* &&
3416 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3419 for ac_signal in 1 2 13 15; do
3420 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3424 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3425 rm -f -r conftest* confdefs.h
3427 $as_echo "/* confdefs.h */" > confdefs.h
3429 # Predefined preprocessor variables.
3431 cat >>confdefs.h <<_ACEOF
3432 #define PACKAGE_NAME "$PACKAGE_NAME"
3435 cat >>confdefs.h <<_ACEOF
3436 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3439 cat >>confdefs.h <<_ACEOF
3440 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3443 cat >>confdefs.h <<_ACEOF
3444 #define PACKAGE_STRING "$PACKAGE_STRING"
3447 cat >>confdefs.h <<_ACEOF
3448 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3451 cat >>confdefs.h <<_ACEOF
3452 #define PACKAGE_URL "$PACKAGE_URL"
3456 # Let the site file select an alternate cache file if it wants to.
3457 # Prefer an explicitly selected file to automatically selected ones.
3460 if test -n "$CONFIG_SITE"; then
3461 # We do not want a PATH search for config.site.
3462 case $CONFIG_SITE in #((
3463 -*) ac_site_file1=./$CONFIG_SITE;;
3464 */*) ac_site_file1=$CONFIG_SITE;;
3465 *) ac_site_file1=./$CONFIG_SITE;;
3467 elif test "x$prefix" != xNONE; then
3468 ac_site_file1=$prefix/share/config.site
3469 ac_site_file2=$prefix/etc/config.site
3471 ac_site_file1=$ac_default_prefix/share/config.site
3472 ac_site_file2=$ac_default_prefix/etc/config.site
3474 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3476 test "x$ac_site_file" = xNONE && continue
3477 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3479 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3480 sed 's/^/| /' "$ac_site_file" >&5
3482 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "failed to load site
script $ac_site_file
3485 See \
`config.log' for more details" "$LINENO" 5; }
3489 if test -r "$cache_file"; then
3490 # Some versions of bash will fail to source /dev/null (special files
3491 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3492 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3494 $as_echo "$as_me: loading cache $cache_file" >&6;}
3496 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3497 *) . "./$cache_file";;
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3502 $as_echo "$as_me: creating cache $cache_file" >&6;}
3506 gl_header_list="$gl_header_list arpa/inet.h"
3507 gl_header_list="$gl_header_list features.h"
3508 gl_func_list="$gl_func_list canonicalize_file_name"
3509 gl_func_list="$gl_func_list getcwd"
3510 gl_func_list="$gl_func_list readlink"
3511 gl_func_list="$gl_func_list realpath"
3512 gl_header_list="$gl_header_list sys/param.h"
3513 gl_header_list="$gl_header_list unistd.h"
3514 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3515 gl_header_list="$gl_header_list sys/socket.h"
3516 gl_func_list="$gl_func_list fchdir"
3517 gl_header_list="$gl_header_list dirent.h"
3518 gl_func_list="$gl_func_list fcntl"
3519 gl_func_list="$gl_func_list symlink"
3520 gl_func_list="$gl_func_list fdopendir"
3521 gl_func_list="$gl_func_list mempcpy"
3522 gl_func_list="$gl_func_list btowc"
3523 gl_func_list="$gl_func_list isblank"
3524 gl_func_list="$gl_func_list iswctype"
3525 gl_func_list="$gl_func_list mbsrtowcs"
3526 gl_func_list="$gl_func_list wmemchr"
3527 gl_func_list="$gl_func_list wmemcpy"
3528 gl_func_list="$gl_func_list wmempcpy"
3529 gl_header_list="$gl_header_list wctype.h"
3530 gl_fnmatch_required=GNU
3531 gl_header_list="$gl_header_list sys/stat.h"
3532 gl_func_list="$gl_func_list fstatat"
3533 gl_func_list="$gl_func_list getdtablesize"
3534 gl_func_list="$gl_func_list getlogin_r"
3535 gl_func_list="$gl_func_list getprogname"
3536 gl_func_list="$gl_func_list getexecname"
3537 gl_header_list="$gl_header_list sys/time.h"
3538 gl_func_list="$gl_func_list gettimeofday"
3539 gl_header_list="$gl_header_list sys/cdefs.h"
3540 gl_func_list="$gl_func_list getpwnam_r"
3541 gl_header_list="$gl_header_list netdb.h"
3542 gl_header_list="$gl_header_list netinet/in.h"
3543 gl_header_list="$gl_header_list limits.h"
3544 gl_header_list="$gl_header_list wchar.h"
3545 gl_header_list="$gl_header_list stdint.h"
3546 gl_header_list="$gl_header_list inttypes.h"
3547 gl_func_list="$gl_func_list lstat"
3548 gl_header_list="$gl_header_list math.h"
3549 gl_func_list="$gl_func_list mbsinit"
3550 gl_func_list="$gl_func_list mbrtowc"
3551 gl_header_list="$gl_header_list sys/mman.h"
3552 gl_func_list="$gl_func_list mprotect"
3553 gl_func_list="$gl_func_list mkostemp"
3554 gl_func_list="$gl_func_list openat"
3555 gl_func_list="$gl_func_list link"
3556 gl_func_list="$gl_func_list secure_getenv"
3557 gl_func_list="$gl_func_list getuid"
3558 gl_func_list="$gl_func_list geteuid"
3559 gl_func_list="$gl_func_list getgid"
3560 gl_func_list="$gl_func_list getegid"
3561 gl_func_list="$gl_func_list setenv"
3562 gl_func_list="$gl_func_list strdup"
3563 gl_func_list="$gl_func_list __xpg_strerror_r"
3564 gl_func_list="$gl_func_list catgets"
3565 gl_func_list="$gl_func_list snprintf"
3566 gl_header_list="$gl_header_list sys/uio.h"
3567 gl_func_list="$gl_func_list localtime_r"
3568 gl_func_list="$gl_func_list pipe"
3569 gl_func_list="$gl_func_list iswcntrl"
3570 # Check that the precious variables saved in the cache have kept the same
3572 ac_cache_corrupted=false
3573 for ac_var in $ac_precious_vars; do
3574 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3575 eval ac_new_set=\$ac_env_${ac_var}_set
3576 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3577 eval ac_new_val=\$ac_env_${ac_var}_value
3578 case $ac_old_set,$ac_new_set in
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3581 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3582 ac_cache_corrupted=: ;;
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3585 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3586 ac_cache_corrupted=: ;;
3589 if test "x$ac_old_val" != "x$ac_new_val"; then
3590 # differences in whitespace do not lead to failure.
3591 ac_old_val_w=`echo x
$ac_old_val`
3592 ac_new_val_w=`echo x
$ac_new_val`
3593 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3595 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3596 ac_cache_corrupted=:
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3599 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3600 eval $ac_var=\$ac_old_val
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3603 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3605 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3608 # Pass precious variables to config.status.
3609 if test "$ac_new_set" = set; then
3611 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3612 *) ac_arg=$ac_var=$ac_new_val ;;
3614 case " $ac_configure_args " in
3615 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3616 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3620 if $ac_cache_corrupted; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3624 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3625 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3627 ## -------------------- ##
3628 ## Main body of script. ##
3629 ## -------------------- ##
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642 ac_config_headers="$ac_config_headers config.h:config.in"
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3648 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3649 # Check whether --enable-maintainer-mode was given.
3650 if test "${enable_maintainer_mode+set}" = set; then :
3651 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3653 USE_MAINTAINER_MODE=no
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3657 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3658 if test $USE_MAINTAINER_MODE = yes; then
3659 MAINTAINER_MODE_TRUE=
3660 MAINTAINER_MODE_FALSE='#'
3662 MAINTAINER_MODE_TRUE='#'
3663 MAINTAINER_MODE_FALSE=
3666 MAINT=$MAINTAINER_MODE_TRUE
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 if test -n "$ac_tool_prefix"; then
3676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if ${ac_cv_prog_CC+:} false; then :
3681 $as_echo_n "(cached) " >&6
3683 if test -n "$CC"; then
3684 ac_cv_prog_CC="$CC" # Let the user override the test.
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 if test -n "$CC"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3706 $as_echo "$CC" >&6; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3714 if test -z "$ac_cv_prog_CC"; then
3716 # Extract the first word of "gcc", so it can be a program name with args.
3717 set dummy gcc; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3721 $as_echo_n "(cached) " >&6
3723 if test -n "$ac_ct_CC"; then
3724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_ac_ct_CC="gcc"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3744 if test -n "$ac_ct_CC"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3746 $as_echo "$ac_ct_CC" >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3752 if test "x$ac_ct_CC" = x; then
3755 case $cross_compiling:$ac_tool_warned in
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3767 if test -z "$CC"; then
3768 if test -n "$ac_tool_prefix"; then
3769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3770 set dummy ${ac_tool_prefix}cc; ac_word=$2
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772 $as_echo_n "checking for $ac_word... " >&6; }
3773 if ${ac_cv_prog_CC+:} false; then :
3774 $as_echo_n "(cached) " >&6
3776 if test -n "$CC"; then
3777 ac_cv_prog_CC="$CC" # Let the user override the test.
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786 ac_cv_prog_CC="${ac_tool_prefix}cc"
3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 if test -n "$CC"; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3799 $as_echo "$CC" >&6; }
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 $as_echo "no" >&6; }
3808 if test -z "$CC"; then
3809 # Extract the first word of "cc", so it can be a program name with args.
3810 set dummy cc; ac_word=$2
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3812 $as_echo_n "checking for $ac_word... " >&6; }
3813 if ${ac_cv_prog_CC+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 if test -n "$CC"; then
3817 ac_cv_prog_CC="$CC" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3828 ac_prog_rejected=yes
3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 if test $ac_prog_rejected = yes; then
3840 # We found a bogon in the path, so make sure we never use it.
3841 set dummy $ac_cv_prog_CC
3843 if test $# != 0; then
3844 # We chose a different compiler from the bogus one.
3845 # However, it has the same basename, so the bogon will be chosen
3846 # first if we set CC to just the basename; use the full file name.
3848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3854 if test -n "$CC"; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3856 $as_echo "$CC" >&6; }
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3864 if test -z "$CC"; then
3865 if test -n "$ac_tool_prefix"; then
3866 for ac_prog in cl.exe
3868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if ${ac_cv_prog_CC+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 if test -n "$CC"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 $as_echo "$CC" >&6; }
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3905 test -n "$CC" && break
3908 if test -z "$CC"; then
3910 for ac_prog in cl.exe
3912 # Extract the first word of "$ac_prog", so it can be a program name with args.
3913 set dummy $ac_prog; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3917 $as_echo_n "(cached) " >&6
3919 if test -n "$ac_ct_CC"; then
3920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_ac_ct_CC="$ac_prog"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3940 if test -n "$ac_ct_CC"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3942 $as_echo "$ac_ct_CC" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3949 test -n "$ac_ct_CC" && break
3952 if test "x$ac_ct_CC" = x; then
3955 case $cross_compiling:$ac_tool_warned in
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3959 ac_tool_warned=yes ;;
3968 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3971 See \
`config.log' for more details" "$LINENO" 5; }
3973 # Provide some information about the compiler.
3974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3977 for ac_option in --version -v -V -qversion; do
3978 { { ac_try="$ac_compiler $ac_option >&5"
3980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3981 *) ac_try_echo
=$ac_try;;
3983 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3984 $as_echo "$ac_try_echo"; } >&5
3985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3987 if test -s conftest.err
; then
3989 ... rest of stderr output deleted ...
3990 10q' conftest.err
>conftest.er1
3991 cat conftest.er1
>&5
3993 rm -f conftest.er1 conftest.err
3994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 ac_clean_files_save
=$ac_clean_files
4010 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4011 # Try to create an executable without -o first, disregard a.out.
4012 # It will help us diagnose broken compilers, and finding out an intuition
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4015 $as_echo_n "checking whether the C compiler works... " >&6; }
4016 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4018 # The possible output files:
4019 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4022 for ac_file
in $ac_files
4025 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4026 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
4031 if { { ac_try
="$ac_link_default"
4033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_link_default") 2>&5
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; then :
4042 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4043 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4044 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4045 # so that the user can short-circuit this test for compilers unknown to
4047 for ac_file in $ac_files ''
4049 test -f "$ac_file" || continue
4051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4054 # We found the default executable, but exeext='' is most
4058 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4060 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4062 # We set ac_cv_exeext here because the later test for it is not
4063 # safe: cross compilers may not add the suffix if given an `-o'
4064 # argument, so we may need to know it at that point already.
4065 # Even if this section looks crufty: it has the advantage of
4072 test "$ac_cv_exeext" = no && ac_cv_exeext=
4077 if test -z "$ac_file"; then :
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080 $as_echo "$as_me: failed program was:" >&5
4081 sed 's
/^
/|
/' conftest.$ac_ext >&5
4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4085 as_fn_error 77 "C compiler cannot create executables
4086 See \`config.log
' for more details" "$LINENO" 5; }
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4089 $as_echo "yes" >&6; }
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4092 $as_echo_n "checking for C compiler default output file name... " >&6; }
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4094 $as_echo "$ac_file" >&6; }
4095 ac_exeext=$ac_cv_exeext
4097 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4098 ac_clean_files=$ac_clean_files_save
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4100 $as_echo_n "checking for suffix of executables... " >&6; }
4101 if { { ac_try="$ac_link"
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 $as_echo "$ac_try_echo"; } >&5
4108 (eval "$ac_link") 2>&5
4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }; then :
4112 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4113 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4114 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4116 for ac_file
in conftest.exe conftest conftest.
*; do
4117 test -f "$ac_file" ||
continue
4119 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4120 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4129 See \`config.log' for more details" "$LINENO" 5; }
4131 rm -f conftest conftest
$ac_cv_exeext
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4133 $as_echo "$ac_cv_exeext" >&6; }
4135 rm -f conftest.
$ac_ext
4136 EXEEXT
=$ac_cv_exeext
4138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4144 FILE *f = fopen ("conftest.out", "w");
4145 return ferror (f) || fclose (f) != 0;
4151 ac_clean_files
="$ac_clean_files conftest.out"
4152 # Check that the compiler produces executables we can run. If not, either
4153 # the compiler is broken, or we cross compile.
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4155 $as_echo_n "checking whether we are cross compiling... " >&6; }
4156 if test "$cross_compiling" != yes; then
4157 { { ac_try
="$ac_link"
4159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 $as_echo "$ac_try_echo"; } >&5
4164 (eval "$ac_link") 2>&5
4166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167 test $ac_status = 0; }
4168 if { ac_try='./conftest$ac_cv_exeext'
4169 { { case "(($ac_try" in
4170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4171 *) ac_try_echo
=$ac_try;;
4173 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 $as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_try") 2>&5
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; }; then
4181 if test "$cross_compiling" = maybe
; then
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error $?
"cannot run C compiled programs.
4187 If you meant to cross compile, use \`--host'.
4188 See \`config.log' for more details" "$LINENO" 5; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4193 $as_echo "$cross_compiling" >&6; }
4195 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4196 ac_clean_files
=$ac_clean_files_save
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4198 $as_echo_n "checking for suffix of object files... " >&6; }
4199 if ${ac_cv_objext+:} false
; then :
4200 $as_echo_n "(cached) " >&6
4202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4213 rm -f conftest.o conftest.obj
4214 if { { ac_try
="$ac_compile"
4216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220 $as_echo "$ac_try_echo"; } >&5
4221 (eval "$ac_compile") 2>&5
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; }; then :
4225 for ac_file in conftest.o conftest.obj conftest.*; do
4226 test -f "$ac_file" || continue;
4228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4234 $as_echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4239 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4240 See \
`config.log' for more details" "$LINENO" 5; }
4242 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4245 $as_echo "$ac_cv_objext" >&6; }
4246 OBJEXT=$ac_cv_objext
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4249 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4250 if ${ac_cv_c_compiler_gnu+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4267 if ac_fn_c_try_compile "$LINENO"; then :
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4277 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4278 if test $ac_compiler_gnu = yes; then
4283 ac_test_CFLAGS=${CFLAGS+set}
4284 ac_save_CFLAGS=$CFLAGS
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4286 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4287 if ${ac_cv_prog_cc_g+:} false; then :
4288 $as_echo_n "(cached) " >&6
4290 ac_save_c_werror_flag=$ac_c_werror_flag
4291 ac_c_werror_flag=yes
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4305 if ac_fn_c_try_compile "$LINENO"; then :
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4320 if ac_fn_c_try_compile "$LINENO"; then :
4323 ac_c_werror_flag=$ac_save_c_werror_flag
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4336 if ac_fn_c_try_compile "$LINENO"; then :
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 ac_c_werror_flag=$ac_save_c_werror_flag
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4347 $as_echo "$ac_cv_prog_cc_g" >&6; }
4348 if test "$ac_test_CFLAGS" = set; then
4349 CFLAGS=$ac_save_CFLAGS
4350 elif test $ac_cv_prog_cc_g = yes; then
4351 if test "$GCC" = yes; then
4357 if test "$GCC" = yes; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4364 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4365 if ${ac_cv_prog_cc_c89+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 ac_cv_prog_cc_c89=no
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4376 struct buf { int x; };
4377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4378 static char *e (p, i)
4384 static char *f (char * (*g) (char **, int), char **p, ...)
4389 s = g (p, va_arg (v,int));
4394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4395 function prototypes and stuff, but not '\xHH' hex character constants.
4396 These don't provoke an error unfortunately, instead are silently treated
4397 as 'x'. The following induces an error, until -std is added to get
4398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4399 array size at least. It's necessary to write '\x00'==0 to get something
4400 that's true only with -std. */
4401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4404 inside strings and character constants. */
4406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4408 int test (int i, double x);
4409 struct s1 {int (*f) (int a);};
4410 struct s2 {int (*f) (double a);};
4411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4425 CC="$ac_save_CC $ac_arg"
4426 if ac_fn_c_try_compile "$LINENO"; then :
4427 ac_cv_prog_cc_c89=$ac_arg
4429 rm -f core conftest.err conftest.$ac_objext
4430 test "x$ac_cv_prog_cc_c89" != "xno" && break
4432 rm -f conftest.$ac_ext
4437 case "x$ac_cv_prog_cc_c89" in
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4440 $as_echo "none needed" >&6; } ;;
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4443 $as_echo "unsupported" >&6; } ;;
4445 CC="$CC $ac_cv_prog_cc_c89"
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4447 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4449 if test "x$ac_cv_prog_cc_c89" != xno; then :
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4461 if test -f "$ac_dir/install-sh"; then
4463 ac_install_sh="$ac_aux_dir/install-sh -c"
4465 elif test -f "$ac_dir/install.sh"; then
4467 ac_install_sh="$ac_aux_dir/install.sh -c"
4469 elif test -f "$ac_dir/shtool"; then
4471 ac_install_sh="$ac_aux_dir/shtool install -c"
4475 if test -z "$ac_aux_dir"; then
4476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4479 # These three variables are undocumented and unsupported,
4480 # and are intended to be withdrawn in a future Autoconf release.
4481 # They can cause serious problems if a builder's source tree is in a directory
4482 # whose full name contains unusual characters.
4483 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4484 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4485 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4488 # Expand $ac_aux_dir to an absolute path.
4489 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4497 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4498 if ${am_cv_prog_cc_c_o+:} false; then :
4499 $as_echo_n "(cached) " >&6
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4512 # Make sure it works both with $CC and with simple cc.
4513 # Following AC_PROG_CC_C_O, we do the test twice because some
4514 # compilers refuse to overwrite an existing .o file with -o,
4515 # though they will create one.
4516 am_cv_prog_cc_c_o=yes
4518 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4519 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } \
4523 && test -f conftest2.$ac_objext; then
4526 am_cv_prog_cc_c_o=no
4530 rm -f core conftest*
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4534 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4535 if test "$am_cv_prog_cc_c_o" != yes; then
4536 # Losing compiler, so override with the script.
4537 # FIXME: It is wrong to rewrite CC.
4538 # But if we don't then we get into trouble of one sort or another.
4539 # A longer-term fix would be to have automake use am__CC in this case,
4540 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4541 CC="$am_aux_dir/compile $CC"
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4557 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4558 # On Suns, sometimes $CPP names a directory.
4559 if test -n "$CPP" && test -d "$CPP"; then
4562 if test -z "$CPP"; then
4563 if ${ac_cv_prog_CPP+:} false; then :
4564 $as_echo_n "(cached) " >&6
4566 # Double quotes because CPP needs to be expanded
4567 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4570 for ac_c_preproc_warn_flag in '' yes
4572 # Use a header file that comes with gcc, so configuring glibc
4573 # with a fresh cross-compiler works.
4574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575 # <limits.h> exists even on freestanding compilers.
4576 # On the NeXT, cc -E runs the code through the compiler's parser,
4577 # not just through cpp. "Syntax error" is here to catch this case.
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4581 # include <limits.h>
4583 # include <assert.h>
4587 if ac_fn_c_try_cpp "$LINENO"; then :
4590 # Broken: fails on valid input.
4593 rm -f conftest.err conftest.i conftest.$ac_ext
4595 # OK, works on sane cases. Now check whether nonexistent headers
4596 # can be detected and how.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <ac_nonexistent.h>
4601 if ac_fn_c_try_cpp "$LINENO"; then :
4602 # Broken: success on invalid input.
4605 # Passes both tests.
4609 rm -f conftest.err conftest.i conftest.$ac_ext
4612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4613 rm -f conftest.i conftest.err conftest.
$ac_ext
4614 if $ac_preproc_ok; then :
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4627 $as_echo "$CPP" >&6; }
4629 for ac_c_preproc_warn_flag
in '' yes
4631 # Use a header file that comes with gcc, so configuring glibc
4632 # with a fresh cross-compiler works.
4633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4634 # <limits.h> exists even on freestanding compilers.
4635 # On the NeXT, cc -E runs the code through the compiler's parser,
4636 # not just through cpp. "Syntax error" is here to catch this case.
4637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4640 # include <limits.h>
4642 # include <assert.h>
4646 if ac_fn_c_try_cpp
"$LINENO"; then :
4649 # Broken: fails on valid input.
4652 rm -f conftest.err conftest.i conftest.
$ac_ext
4654 # OK, works on sane cases. Now check whether nonexistent headers
4655 # can be detected and how.
4656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 #include <ac_nonexistent.h>
4660 if ac_fn_c_try_cpp
"$LINENO"; then :
4661 # Broken: success on invalid input.
4664 # Passes both tests.
4668 rm -f conftest.err conftest.i conftest.
$ac_ext
4671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4672 rm -f conftest.i conftest.err conftest.
$ac_ext
4673 if $ac_preproc_ok; then :
4676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4678 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4679 See \`config.log' for more details" "$LINENO" 5; }
4683 ac_cpp
='$CPP $CPPFLAGS'
4684 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4690 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4691 if ${ac_cv_path_GREP+:} false
; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -z "$GREP"; then
4695 ac_path_GREP_found
=false
4696 # Loop through the user's path and test for each of PROGNAME-LIST
4697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4698 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4701 test -z "$as_dir" && as_dir
=.
4702 for ac_prog
in grep ggrep
; do
4703 for ac_exec_ext
in '' $ac_executable_extensions; do
4704 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4705 as_fn_executable_p
"$ac_path_GREP" ||
continue
4706 # Check for GNU ac_path_GREP and select it if it is found.
4707 # Check for GNU $ac_path_GREP
4708 case `"$ac_path_GREP" --version 2>&1` in
4710 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4713 $as_echo_n 0123456789 >"conftest.in"
4716 cat "conftest.in" "conftest.in" >"conftest.tmp"
4717 mv "conftest.tmp" "conftest.in"
4718 cp "conftest.in" "conftest.nl"
4719 $as_echo 'GREP' >> "conftest.nl"
4720 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4721 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4722 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4723 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4724 # Best one so far, save it but keep looking for a better one
4725 ac_cv_path_GREP
="$ac_path_GREP"
4726 ac_path_GREP_max
=$ac_count
4728 # 10*(2^10) chars as input seems more than enough
4729 test $ac_count -gt 10 && break
4731 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4734 $ac_path_GREP_found && break 3
4739 if test -z "$ac_cv_path_GREP"; then
4740 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4743 ac_cv_path_GREP
=$GREP
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4748 $as_echo "$ac_cv_path_GREP" >&6; }
4749 GREP
="$ac_cv_path_GREP"
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4753 $as_echo_n "checking for egrep... " >&6; }
4754 if ${ac_cv_path_EGREP+:} false
; then :
4755 $as_echo_n "(cached) " >&6
4757 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4758 then ac_cv_path_EGREP
="$GREP -E"
4760 if test -z "$EGREP"; then
4761 ac_path_EGREP_found
=false
4762 # Loop through the user's path and test for each of PROGNAME-LIST
4763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4764 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4767 test -z "$as_dir" && as_dir
=.
4768 for ac_prog
in egrep; do
4769 for ac_exec_ext
in '' $ac_executable_extensions; do
4770 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4771 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4772 # Check for GNU ac_path_EGREP and select it if it is found.
4773 # Check for GNU $ac_path_EGREP
4774 case `"$ac_path_EGREP" --version 2>&1` in
4776 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4779 $as_echo_n 0123456789 >"conftest.in"
4782 cat "conftest.in" "conftest.in" >"conftest.tmp"
4783 mv "conftest.tmp" "conftest.in"
4784 cp "conftest.in" "conftest.nl"
4785 $as_echo 'EGREP' >> "conftest.nl"
4786 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4787 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4788 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4789 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4790 # Best one so far, save it but keep looking for a better one
4791 ac_cv_path_EGREP
="$ac_path_EGREP"
4792 ac_path_EGREP_max
=$ac_count
4794 # 10*(2^10) chars as input seems more than enough
4795 test $ac_count -gt 10 && break
4797 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4800 $ac_path_EGREP_found && break 3
4805 if test -z "$ac_cv_path_EGREP"; then
4806 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4809 ac_cv_path_EGREP
=$EGREP
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4815 $as_echo "$ac_cv_path_EGREP" >&6; }
4816 EGREP
="$ac_cv_path_EGREP"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4820 $as_echo_n "checking for ANSI C header files... " >&6; }
4821 if ${ac_cv_header_stdc+:} false
; then :
4822 $as_echo_n "(cached) " >&6
4824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4839 if ac_fn_c_try_compile
"$LINENO"; then :
4840 ac_cv_header_stdc
=yes
4842 ac_cv_header_stdc
=no
4844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4846 if test $ac_cv_header_stdc = yes; then
4847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4854 $EGREP "memchr" >/dev
/null
2>&1; then :
4857 ac_cv_header_stdc
=no
4863 if test $ac_cv_header_stdc = yes; then
4864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871 $EGREP "free" >/dev
/null
2>&1; then :
4874 ac_cv_header_stdc
=no
4880 if test $ac_cv_header_stdc = yes; then
4881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4882 if test "$cross_compiling" = yes; then :
4885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4889 #if ((' ' & 0x0FF) == 0x020)
4890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4893 # define ISLOWER(c) \
4894 (('a' <= (c) && (c) <= 'i') \
4895 || ('j' <= (c) && (c) <= 'r') \
4896 || ('s' <= (c) && (c) <= 'z'))
4897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4905 for (i = 0; i < 256; i++)
4906 if (XOR (islower (i), ISLOWER (i))
4907 || toupper (i) != TOUPPER (i))
4912 if ac_fn_c_try_run
"$LINENO"; then :
4915 ac_cv_header_stdc
=no
4917 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4918 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4924 $as_echo "$ac_cv_header_stdc" >&6; }
4925 if test $ac_cv_header_stdc = yes; then
4927 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4931 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4932 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4933 inttypes.h stdint.h unistd.h
4935 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4936 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4938 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4939 cat >>confdefs.h
<<_ACEOF
4940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4949 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4950 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4957 if test "$MINIX" = yes; then
4959 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4962 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4965 $as_echo "#define _MINIX 1" >>confdefs.h
4968 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4974 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4975 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4976 $as_echo_n "(cached) " >&6
4978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4981 # define __EXTENSIONS__ 1
4982 $ac_includes_default
4991 if ac_fn_c_try_compile
"$LINENO"; then :
4992 ac_cv_safe_to_define___extensions__
=yes
4994 ac_cv_safe_to_define___extensions__
=no
4996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4999 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5000 test $ac_cv_safe_to_define___extensions__ = yes &&
5001 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5003 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5005 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5007 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5009 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5011 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5013 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5015 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5017 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5019 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5021 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5023 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5025 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5028 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5029 if ${ac_cv_should_define__xopen_source+:} false
; then :
5030 $as_echo_n "(cached) " >&6
5032 ac_cv_should_define__xopen_source
=no
5033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5046 if ac_fn_c_try_compile
"$LINENO"; then :
5049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5052 #define _XOPEN_SOURCE 500
5063 if ac_fn_c_try_compile
"$LINENO"; then :
5064 ac_cv_should_define__xopen_source
=yes
5066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5071 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5072 test $ac_cv_should_define__xopen_source = yes &&
5073 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5086 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5087 if ${gl_cv_c_amsterdam_compiler+:} false
; then :
5088 $as_echo_n "(cached) " >&6
5091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5100 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
5101 gl_cv_c_amsterdam_compiler
=yes
5103 gl_cv_c_amsterdam_compiler
=no
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5110 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5112 if test $gl_cv_c_amsterdam_compiler = yes; then
5113 if test -z "$AR"; then
5116 if test -z "$ARFLAGS"; then
5120 if test -n "$ac_tool_prefix"; then
5121 for ac_prog
in ar lib
"link -lib"
5123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_prog_AR+:} false
; then :
5128 $as_echo_n "(cached) " >&6
5130 if test -n "$AR"; then
5131 ac_cv_prog_AR
="$AR" # Let the user override the test.
5133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir
=.
5138 for ac_exec_ext
in '' $ac_executable_extensions; do
5139 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 if test -n "$AR"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5153 $as_echo "$AR" >&6; }
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5160 test -n "$AR" && break
5163 if test -z "$AR"; then
5165 for ac_prog
in ar lib
"link -lib"
5167 # Extract the first word of "$ac_prog", so it can be a program name with args.
5168 set dummy
$ac_prog; ac_word
=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5172 $as_echo_n "(cached) " >&6
5174 if test -n "$ac_ct_AR"; then
5175 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir
=.
5182 for ac_exec_ext
in '' $ac_executable_extensions; do
5183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_ac_ct_AR
="$ac_prog"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5195 if test -n "$ac_ct_AR"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5197 $as_echo "$ac_ct_AR" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 test -n "$ac_ct_AR" && break
5207 if test "x$ac_ct_AR" = x
; then
5210 case $cross_compiling:$ac_tool_warned in
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214 ac_tool_warned
=yes ;;
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5223 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5224 if ${am_cv_ar_interface+:} false
; then :
5225 $as_echo_n "(cached) " >&6
5228 ac_cpp
='$CPP $CPPFLAGS'
5229 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5230 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5233 am_cv_ar_interface
=ar
5234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236 int some_variable = 0;
5238 if ac_fn_c_try_compile
"$LINENO"; then :
5239 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
5240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5241 (eval $am_ar_try) 2>&5
5243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5244 test $ac_status = 0; }
5245 if test "$ac_status" -eq 0; then
5246 am_cv_ar_interface
=ar
5248 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5250 (eval $am_ar_try) 2>&5
5252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5253 test $ac_status = 0; }
5254 if test "$ac_status" -eq 0; then
5255 am_cv_ar_interface
=lib
5257 am_cv_ar_interface
=unknown
5260 rm -f conftest.lib libconftest.a
5263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5265 ac_cpp
='$CPP $CPPFLAGS'
5266 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5272 $as_echo "$am_cv_ar_interface" >&6; }
5274 case $am_cv_ar_interface in
5278 # Microsoft lib, so override with the ar-lib wrapper script.
5279 # FIXME: It is wrong to rewrite AR.
5280 # But if we don't then we get into trouble of one sort or another.
5281 # A longer-term fix would be to have automake use am__AR in this case,
5282 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5284 AR
="$am_aux_dir/ar-lib $AR"
5287 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
5293 if test -n "$ac_tool_prefix"; then
5294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5295 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_AR+:} false
; then :
5299 $as_echo_n "(cached) " >&6
5301 if test -n "$AR"; then
5302 ac_cv_prog_AR
="$AR" # Let the user override the test.
5304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir
=.
5309 for ac_exec_ext
in '' $ac_executable_extensions; do
5310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 if test -n "$AR"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5324 $as_echo "$AR" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5332 if test -z "$ac_cv_prog_AR"; then
5334 # Extract the first word of "ar", so it can be a program name with args.
5335 set dummy
ar; ac_word
=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5339 $as_echo_n "(cached) " >&6
5341 if test -n "$ac_ct_AR"; then
5342 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5348 test -z "$as_dir" && as_dir
=.
5349 for ac_exec_ext
in '' $ac_executable_extensions; do
5350 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_ac_ct_AR
="ar"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5362 if test -n "$ac_ct_AR"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5364 $as_echo "$ac_ct_AR" >&6; }
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5370 if test "x$ac_ct_AR" = x
; then
5373 case $cross_compiling:$ac_tool_warned in
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377 ac_tool_warned
=yes ;;
5385 if test -z "$ARFLAGS"; then
5391 if test -z "$RANLIB"; then
5392 if test $gl_cv_c_amsterdam_compiler = yes; then
5395 if test -n "$ac_tool_prefix"; then
5396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5397 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_RANLIB+:} false
; then :
5401 $as_echo_n "(cached) " >&6
5403 if test -n "$RANLIB"; then
5404 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5410 test -z "$as_dir" && as_dir
=.
5411 for ac_exec_ext
in '' $ac_executable_extensions; do
5412 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 RANLIB
=$ac_cv_prog_RANLIB
5424 if test -n "$RANLIB"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5426 $as_echo "$RANLIB" >&6; }
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5434 if test -z "$ac_cv_prog_RANLIB"; then
5435 ac_ct_RANLIB
=$RANLIB
5436 # Extract the first word of "ranlib", so it can be a program name with args.
5437 set dummy ranlib
; ac_word
=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5441 $as_echo_n "(cached) " >&6
5443 if test -n "$ac_ct_RANLIB"; then
5444 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5450 test -z "$as_dir" && as_dir
=.
5451 for ac_exec_ext
in '' $ac_executable_extensions; do
5452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5464 if test -n "$ac_ct_RANLIB"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5466 $as_echo "$ac_ct_RANLIB" >&6; }
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5472 if test "x$ac_ct_RANLIB" = x
; then
5475 case $cross_compiling:$ac_tool_warned in
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5479 ac_tool_warned
=yes ;;
5481 RANLIB
=$ac_ct_RANLIB
5484 RANLIB
="$ac_cv_prog_RANLIB"
5492 # Make sure we can run config.sub.
5493 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5494 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5497 $as_echo_n "checking build system type... " >&6; }
5498 if ${ac_cv_build+:} false
; then :
5499 $as_echo_n "(cached) " >&6
5501 ac_build_alias
=$build_alias
5502 test "x$ac_build_alias" = x
&&
5503 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5504 test "x$ac_build_alias" = x
&&
5505 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5506 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5507 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5511 $as_echo "$ac_cv_build" >&6; }
5512 case $ac_cv_build in
5514 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5517 ac_save_IFS
=$IFS; IFS
='-'
5523 # Remember, the first character of IFS is used to create $*,
5524 # except with old shells:
5527 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5531 $as_echo_n "checking host system type... " >&6; }
5532 if ${ac_cv_host+:} false
; then :
5533 $as_echo_n "(cached) " >&6
5535 if test "x$host_alias" = x
; then
5536 ac_cv_host
=$ac_cv_build
5538 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5539 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5544 $as_echo "$ac_cv_host" >&6; }
5547 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5550 ac_save_IFS
=$IFS; IFS
='-'
5556 # Remember, the first character of IFS is used to create $*,
5557 # except with old shells:
5560 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5566 # IEEE behaviour is the default on all CPUs except Alpha and SH
5567 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5568 # and the GCC 4.1.2 manual).
5571 # On Alpha systems, a compiler option provides the behaviour.
5572 # See the ieee(3) manual page, also available at
5573 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5574 if test -n "$GCC"; then
5575 # GCC has the option -mieee.
5576 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5577 CPPFLAGS
="$CPPFLAGS -mieee"
5579 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5580 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5581 CPPFLAGS
="$CPPFLAGS -ieee"
5585 if test -n "$GCC"; then
5586 # GCC has the option -mieee.
5587 CPPFLAGS
="$CPPFLAGS -mieee"
5592 # Check whether --enable-largefile was given.
5593 if test "${enable_largefile+set}" = set; then :
5594 enableval
=$enable_largefile;
5597 if test "$enable_largefile" != no
; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5600 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5601 if ${ac_cv_sys_largefile_CC+:} false
; then :
5602 $as_echo_n "(cached) " >&6
5604 ac_cv_sys_largefile_CC
=no
5605 if test "$GCC" != yes; then
5608 # IRIX 6.2 and later do not support large files by default,
5609 # so use the C compiler's -n32 option if that helps.
5610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <sys/types.h>
5613 /* Check that off_t can represent 2**63 - 1 correctly.
5614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5615 since some C++ compilers masquerading as C compilers
5616 incorrectly reject 9223372036854775807. */
5617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5619 && LARGE_OFF_T % 2147483647 == 1)
5629 if ac_fn_c_try_compile
"$LINENO"; then :
5632 rm -f core conftest.err conftest.
$ac_objext
5634 if ac_fn_c_try_compile
"$LINENO"; then :
5635 ac_cv_sys_largefile_CC
=' -n32'; break
5637 rm -f core conftest.err conftest.
$ac_objext
5641 rm -f conftest.
$ac_ext
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5645 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5646 if test "$ac_cv_sys_largefile_CC" != no
; then
5647 CC
=$CC$ac_cv_sys_largefile_CC
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5651 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5652 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5653 $as_echo_n "(cached) " >&6
5656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <sys/types.h>
5659 /* Check that off_t can represent 2**63 - 1 correctly.
5660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5661 since some C++ compilers masquerading as C compilers
5662 incorrectly reject 9223372036854775807. */
5663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5665 && LARGE_OFF_T % 2147483647 == 1)
5675 if ac_fn_c_try_compile
"$LINENO"; then :
5676 ac_cv_sys_file_offset_bits
=no
; break
5678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #define _FILE_OFFSET_BITS 64
5682 #include <sys/types.h>
5683 /* Check that off_t can represent 2**63 - 1 correctly.
5684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5685 since some C++ compilers masquerading as C compilers
5686 incorrectly reject 9223372036854775807. */
5687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5689 && LARGE_OFF_T % 2147483647 == 1)
5699 if ac_fn_c_try_compile
"$LINENO"; then :
5700 ac_cv_sys_file_offset_bits
=64; break
5702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5703 ac_cv_sys_file_offset_bits
=unknown
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5708 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5709 case $ac_cv_sys_file_offset_bits in #(
5712 cat >>confdefs.h
<<_ACEOF
5713 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5718 if test $ac_cv_sys_file_offset_bits = unknown
; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5720 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5721 if ${ac_cv_sys_large_files+:} false
; then :
5722 $as_echo_n "(cached) " >&6
5725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5744 if ac_fn_c_try_compile
"$LINENO"; then :
5745 ac_cv_sys_large_files
=no
; break
5747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #define _LARGE_FILES 1
5751 #include <sys/types.h>
5752 /* Check that off_t can represent 2**63 - 1 correctly.
5753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5754 since some C++ compilers masquerading as C compilers
5755 incorrectly reject 9223372036854775807. */
5756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5758 && LARGE_OFF_T % 2147483647 == 1)
5768 if ac_fn_c_try_compile
"$LINENO"; then :
5769 ac_cv_sys_large_files
=1; break
5771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5772 ac_cv_sys_large_files
=unknown
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5777 $as_echo "$ac_cv_sys_large_files" >&6; }
5778 case $ac_cv_sys_large_files in #(
5781 cat >>confdefs.h
<<_ACEOF
5782 #define _LARGE_FILES $ac_cv_sys_large_files
5790 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5799 # Check whether --enable-threads was given.
5800 if test "${enable_threads+set}" = set; then :
5801 enableval
=$enable_threads; gl_use_threads
=$enableval
5803 if test -n "$gl_use_threads_default"; then
5804 gl_use_threads
="$gl_use_threads_default"
5807 osf
*) gl_use_threads
=no
;;
5810 1.
[0-5].
*) gl_use_threads
=no
;;
5811 *) gl_use_threads
=yes ;;
5814 *) gl_use_threads
=yes ;;
5820 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
5821 # For using <pthread.h>:
5824 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5825 # groks <pthread.h>. cc also understands the flag -pthread, but
5826 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5827 # 2. putting a flag into CPPFLAGS that has an effect on the linker
5828 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
5829 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5830 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
5833 # Some systems optimize for single-threaded programs by default, and
5834 # need special flags to disable these optimizations. For example, the
5835 # definition of 'errno' in <errno.h>.
5837 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
5838 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
5844 # Pre-early section.
5849 # Code from module absolute-header:
5850 # Code from module alloca:
5851 # Code from module alloca-opt:
5852 # Code from module arpa_inet:
5853 # Code from module assure:
5854 # Code from module at-internal:
5855 # Code from module canonicalize-lgpl:
5856 # Code from module chdir:
5857 # Code from module chdir-long:
5858 # Code from module cloexec:
5859 # Code from module close:
5860 # Code from module closedir:
5861 # Code from module configmake:
5862 # Code from module d-ino:
5863 # Code from module d-type:
5864 # Code from module dirent:
5865 # Code from module dirfd:
5866 # Code from module dirname-lgpl:
5867 # Code from module dosname:
5868 # Code from module double-slash-root:
5869 # Code from module dup:
5870 # Code from module dup2:
5871 # Code from module environ:
5872 # Code from module errno:
5873 # Code from module error:
5874 # Code from module exitfail:
5875 # Code from module extensions:
5876 # Code from module extern-inline:
5877 # Code from module fchdir:
5878 # Code from module fcntl:
5879 # Code from module fcntl-h:
5880 # Code from module fd-hook:
5881 # Code from module fdopendir:
5882 # Code from module filename:
5883 # Code from module filenamecat-lgpl:
5884 # Code from module flexmember:
5885 # Code from module float:
5886 # Code from module fnmatch:
5887 # Code from module fnmatch-gnu:
5888 # Code from module fpieee:
5890 # Code from module fpucw:
5891 # Code from module frexp:
5892 # Code from module frexpl:
5893 # Code from module fstat:
5894 # Code from module fstatat:
5895 # Code from module getcwd:
5896 # Code from module getcwd-lgpl:
5897 # Code from module getdtablesize:
5898 # Code from module getlogin_r:
5899 # Code from module getprogname:
5900 # Code from module gettext-h:
5901 # Code from module gettimeofday:
5902 # Code from module glob:
5903 # Code from module hard-locale:
5904 # Code from module havelib:
5905 # Code from module include_next:
5906 # Code from module inet_ntop:
5907 # Code from module intprops:
5908 # Code from module inttypes:
5909 # Code from module inttypes-incomplete:
5910 # Code from module isnand-nolibm:
5911 # Code from module isnanl-nolibm:
5912 # Code from module largefile:
5914 # Code from module limits-h:
5915 # Code from module localcharset:
5916 # Code from module lock:
5917 # Code from module lstat:
5918 # Code from module malloc-posix:
5919 # Code from module malloca:
5920 # Code from module math:
5921 # Code from module mbrtowc:
5922 # Code from module mbsinit:
5923 # Code from module mbsrtowcs:
5924 # Code from module memchr:
5925 # Code from module memmem:
5926 # Code from module memmem-simple:
5927 # Code from module mempcpy:
5928 # Code from module memrchr:
5929 # Code from module mkdir:
5930 # Code from module mkdtemp:
5931 # Code from module mkostemp:
5932 # Code from module msvc-inval:
5933 # Code from module msvc-nothrow:
5934 # Code from module multiarch:
5935 # Code from module netinet_in:
5936 # Code from module nocrash:
5937 # Code from module open:
5938 # Code from module openat:
5939 # Code from module openat-die:
5940 # Code from module openat-h:
5941 # Code from module opendir:
5942 # Code from module pathmax:
5943 # Code from module rawmemchr:
5944 # Code from module readdir:
5945 # Code from module readlink:
5946 # Code from module realloc-posix:
5947 # Code from module rename:
5948 # Code from module rewinddir:
5949 # Code from module rmdir:
5950 # Code from module same-inode:
5951 # Code from module save-cwd:
5952 # Code from module secure_getenv:
5953 # Code from module setenv:
5954 # Code from module signal-h:
5955 # Code from module snippet/_Noreturn:
5956 # Code from module snippet/arg-nonnull:
5957 # Code from module snippet/c++defs:
5958 # Code from module snippet/warn-on-use:
5959 # Code from module socklen:
5960 # Code from module ssize_t:
5961 # Code from module stat:
5962 # Code from module stdalign:
5963 # Code from module stdbool:
5964 # Code from module stddef:
5965 # Code from module stdint:
5966 # Code from module stdio:
5967 # Code from module stdlib:
5968 # Code from module strchrnul:
5969 # Code from module strdup-posix:
5970 # Code from module streq:
5971 # Code from module strerror:
5972 # Code from module strerror-override:
5973 # Code from module strerror_r-posix:
5974 # Code from module string:
5975 # Code from module strnlen1:
5976 # Code from module strstr:
5977 # Code from module strstr-simple:
5978 # Code from module strtok_r:
5979 # Code from module sys_socket:
5980 # Code from module sys_stat:
5981 # Code from module sys_time:
5982 # Code from module sys_types:
5983 # Code from module sys_uio:
5984 # Code from module tempname:
5985 # Code from module threadlib:
5989 # Code from module time:
5990 # Code from module time_r:
5991 # Code from module unistd:
5992 # Code from module unistd-safer:
5993 # Code from module unsetenv:
5994 # Code from module update-copyright:
5995 # Code from module verify:
5996 # Code from module wchar:
5997 # Code from module wctype-h:
6000 ac_cpp
='$CPP $CPPFLAGS'
6001 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6004 if test -n "$ac_tool_prefix"; then
6005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6006 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_CC+:} false
; then :
6010 $as_echo_n "(cached) " >&6
6012 if test -n "$CC"; then
6013 ac_cv_prog_CC
="$CC" # Let the user override the test.
6015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir
=.
6020 for ac_exec_ext
in '' $ac_executable_extensions; do
6021 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 if test -n "$CC"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6035 $as_echo "$CC" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6043 if test -z "$ac_cv_prog_CC"; then
6045 # Extract the first word of "gcc", so it can be a program name with args.
6046 set dummy gcc
; ac_word
=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6050 $as_echo_n "(cached) " >&6
6052 if test -n "$ac_ct_CC"; then
6053 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir
=.
6060 for ac_exec_ext
in '' $ac_executable_extensions; do
6061 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_ac_ct_CC
="gcc"
6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6073 if test -n "$ac_ct_CC"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6075 $as_echo "$ac_ct_CC" >&6; }
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6081 if test "x$ac_ct_CC" = x
; then
6084 case $cross_compiling:$ac_tool_warned in
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6088 ac_tool_warned
=yes ;;
6096 if test -z "$CC"; then
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6099 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_CC+:} false
; then :
6103 $as_echo_n "(cached) " >&6
6105 if test -n "$CC"; then
6106 ac_cv_prog_CC
="$CC" # Let the user override the test.
6108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir
=.
6113 for ac_exec_ext
in '' $ac_executable_extensions; do
6114 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 if test -n "$CC"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6128 $as_echo "$CC" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6137 if test -z "$CC"; then
6138 # Extract the first word of "cc", so it can be a program name with args.
6139 set dummy cc
; ac_word
=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_CC+:} false
; then :
6143 $as_echo_n "(cached) " >&6
6145 if test -n "$CC"; then
6146 ac_cv_prog_CC
="$CC" # Let the user override the test.
6149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir
=.
6154 for ac_exec_ext
in '' $ac_executable_extensions; do
6155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6156 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6157 ac_prog_rejected
=yes
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 if test $ac_prog_rejected = yes; then
6169 # We found a bogon in the path, so make sure we never use it.
6170 set dummy
$ac_cv_prog_CC
6172 if test $# != 0; then
6173 # We chose a different compiler from the bogus one.
6174 # However, it has the same basename, so the bogon will be chosen
6175 # first if we set CC to just the basename; use the full file name.
6177 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6183 if test -n "$CC"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6185 $as_echo "$CC" >&6; }
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6193 if test -z "$CC"; then
6194 if test -n "$ac_tool_prefix"; then
6195 for ac_prog
in cl.exe
6197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6198 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if ${ac_cv_prog_CC+:} false
; then :
6202 $as_echo_n "(cached) " >&6
6204 if test -n "$CC"; then
6205 ac_cv_prog_CC
="$CC" # Let the user override the test.
6207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6211 test -z "$as_dir" && as_dir
=.
6212 for ac_exec_ext
in '' $ac_executable_extensions; do
6213 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6214 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 if test -n "$CC"; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6227 $as_echo "$CC" >&6; }
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6234 test -n "$CC" && break
6237 if test -z "$CC"; then
6239 for ac_prog
in cl.exe
6241 # Extract the first word of "$ac_prog", so it can be a program name with args.
6242 set dummy
$ac_prog; ac_word
=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -n "$ac_ct_CC"; then
6249 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir
=.
6256 for ac_exec_ext
in '' $ac_executable_extensions; do
6257 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6258 ac_cv_prog_ac_ct_CC
="$ac_prog"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6269 if test -n "$ac_ct_CC"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6271 $as_echo "$ac_ct_CC" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6278 test -n "$ac_ct_CC" && break
6281 if test "x$ac_ct_CC" = x
; then
6284 case $cross_compiling:$ac_tool_warned in
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned
=yes ;;
6297 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6299 as_fn_error $?
"no acceptable C compiler found in \$PATH
6300 See \`config.log' for more details" "$LINENO" 5; }
6302 # Provide some information about the compiler.
6303 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6306 for ac_option
in --version -v -V -qversion; do
6307 { { ac_try
="$ac_compiler $ac_option >&5"
6309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6313 $as_echo "$ac_try_echo"; } >&5
6314 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6316 if test -s conftest.err; then
6318 ... rest of stderr output deleted ...
6319 10q' conftest.err >conftest.er1
6320 cat conftest.er1 >&5
6322 rm -f conftest.er1 conftest.err
6323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324 test $ac_status = 0; }
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6328 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6329 if ${ac_cv_c_compiler_gnu+:} false; then :
6330 $as_echo_n "(cached) " >&6
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6346 if ac_fn_c_try_compile "$LINENO"; then :
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6356 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6357 if test $ac_compiler_gnu = yes; then
6362 ac_test_CFLAGS=${CFLAGS+set}
6363 ac_save_CFLAGS=$CFLAGS
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6365 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6366 if ${ac_cv_prog_cc_g+:} false; then :
6367 $as_echo_n "(cached) " >&6
6369 ac_save_c_werror_flag=$ac_c_werror_flag
6370 ac_c_werror_flag=yes
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6384 if ac_fn_c_try_compile "$LINENO"; then :
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6399 if ac_fn_c_try_compile "$LINENO"; then :
6402 ac_c_werror_flag=$ac_save_c_werror_flag
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6415 if ac_fn_c_try_compile "$LINENO"; then :
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 ac_c_werror_flag=$ac_save_c_werror_flag
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6426 $as_echo "$ac_cv_prog_cc_g" >&6; }
6427 if test "$ac_test_CFLAGS" = set; then
6428 CFLAGS=$ac_save_CFLAGS
6429 elif test $ac_cv_prog_cc_g = yes; then
6430 if test "$GCC" = yes; then
6436 if test "$GCC" = yes; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6443 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6444 if ${ac_cv_prog_cc_c89+:} false; then :
6445 $as_echo_n "(cached) " >&6
6447 ac_cv_prog_cc_c89=no
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6455 struct buf { int x; };
6456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6457 static char *e (p, i)
6463 static char *f (char * (*g) (char **, int), char **p, ...)
6468 s = g (p, va_arg (v,int));
6473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6474 function prototypes and stuff, but not '\xHH' hex character constants.
6475 These don't provoke an error unfortunately, instead are silently treated
6476 as 'x'. The following induces an error, until -std is added to get
6477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6478 array size at least. It's necessary to write '\x00'==0 to get something
6479 that's true only with -std. */
6480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6483 inside strings and character constants. */
6485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6487 int test (int i, double x);
6488 struct s1 {int (*f) (int a);};
6489 struct s2 {int (*f) (double a);};
6490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6504 CC="$ac_save_CC $ac_arg"
6505 if ac_fn_c_try_compile "$LINENO"; then :
6506 ac_cv_prog_cc_c89=$ac_arg
6508 rm -f core conftest.err conftest.$ac_objext
6509 test "x$ac_cv_prog_cc_c89" != "xno" && break
6511 rm -f conftest.$ac_ext
6516 case "x$ac_cv_prog_cc_c89" in
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6519 $as_echo "none needed" >&6; } ;;
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6522 $as_echo "unsupported" >&6; } ;;
6524 CC="$CC $ac_cv_prog_cc_c89"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6526 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6528 if test "x$ac_cv_prog_cc_c89" != xno; then :
6533 ac_cpp='$CPP $CPPFLAGS'
6534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6539 ac_cpp='$CPP $CPPFLAGS'
6540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6544 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6545 if ${am_cv_prog_cc_c_o+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6559 # Make sure it works both with $CC and with simple cc.
6560 # Following AC_PROG_CC_C_O, we do the test twice because some
6561 # compilers refuse to overwrite an existing .o file with -o,
6562 # though they will create one.
6563 am_cv_prog_cc_c_o=yes
6565 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6566 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } \
6570 && test -f conftest2.$ac_objext; then
6573 am_cv_prog_cc_c_o=no
6577 rm -f core conftest*
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6581 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6582 if test "$am_cv_prog_cc_c_o" != yes; then
6583 # Losing compiler, so override with the script.
6584 # FIXME: It is wrong to rewrite CC.
6585 # But if we don't then we get into trouble of one sort or another.
6586 # A longer-term fix would be to have automake use am__CC in this case,
6587 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6588 CC="$am_aux_dir/compile $CC"
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6597 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6601 $as_echo_n "checking target system type... " >&6; }
6602 if ${ac_cv_target+:} false; then :
6603 $as_echo_n "(cached) " >&6
6605 if test "x$target_alias" = x; then
6606 ac_cv_target=$ac_cv_host
6608 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6614 $as_echo "$ac_cv_target" >&6; }
6615 case $ac_cv_target in
6617 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6619 target=$ac_cv_target
6620 ac_save_IFS=$IFS; IFS='-'
6626 # Remember, the first character of IFS is used to create $*,
6627 # except with old shells:
6630 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
6633 # The aliases save the names the user supplied, while $host etc.
6634 # will get canonicalized.
6635 test -n "$target_alias" &&
6636 test "$program_prefix$program_suffix$program_transform_name" = \
6638 program_prefix=${target_alias}-
6640 # The tests for host and target for $enable_largefile require
6645 # As the $enable_largefile decision depends on --enable-plugins we must set it
6646 # even in directories otherwise not depending on the $plugins option.
6650 for ac_header in dlfcn.h
6652 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6654 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6655 cat >>confdefs.h <<_ACEOF
6656 #define HAVE_DLFCN_H 1
6663 for ac_header in windows.h
6665 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6667 if test "x$ac_cv_header_windows_h" = xyes; then :
6668 cat >>confdefs.h <<_ACEOF
6669 #define HAVE_WINDOWS_H 1
6677 # Check whether --enable-plugins was given.
6678 if test "${enable_plugins+set}" = set; then :
6679 enableval=$enable_plugins; case "${enableval}" in
6682 if test "$maybe_plugins" != "yes" ; then
6683 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6687 plugins=$maybe_plugins
6691 if test "$plugins" = "yes"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6693 $as_echo_n "checking for library containing dlsym... " >&6; }
6694 if ${ac_cv_search_dlsym+:} false; then :
6695 $as_echo_n "(cached) " >&6
6697 ac_func_search_save_LIBS=$LIBS
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6701 /* Override any GCC internal prototype to avoid an error.
6702 Use char because int might match the return type of a GCC
6703 builtin and then its argument prototype would still apply. */
6716 for ac_lib in '' dl; do
6717 if test -z "$ac_lib"; then
6718 ac_res="none required"
6721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6723 if ac_fn_c_try_link "$LINENO"; then :
6724 ac_cv_search_dlsym=$ac_res
6726 rm -f core conftest.err conftest.$ac_objext \
6728 if ${ac_cv_search_dlsym+:} false; then :
6732 if ${ac_cv_search_dlsym+:} false; then :
6735 ac_cv_search_dlsym=no
6738 LIBS=$ac_func_search_save_LIBS
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6741 $as_echo "$ac_cv_search_dlsym" >&6; }
6742 ac_res=$ac_cv_search_dlsym
6743 if test "$ac_res" != no; then :
6744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6752 sparc-*-solaris*|i[3-7]86-*-solaris*)
6753 # On native 32bit sparc and ia32 solaris, large-file and procfs support
6754 # are mutually exclusive; and without procfs support, the bfd/ elf module
6755 # cannot provide certain routines such as elfcore_write_prpsinfo
6756 # or elfcore_write_prstatus. So unless the user explicitly requested
6757 # large-file support through the --enable-largefile switch, disable
6758 # large-file support in favor of procfs support.
6759 test "${target}" = "${host}" -a "x$plugins" = xno \
6760 && : ${enable_largefile="no"}
6764 # Check whether --enable-largefile was given.
6765 if test "${enable_largefile+set}" = set; then :
6766 enableval=$enable_largefile;
6769 if test "$enable_largefile" != no; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6772 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6773 if ${ac_cv_sys_largefile_CC+:} false; then :
6774 $as_echo_n "(cached) " >&6
6776 ac_cv_sys_largefile_CC=no
6777 if test "$GCC" != yes; then
6780 # IRIX 6.2 and later do not support large files by default,
6781 # so use the C compiler's -n32 option if that helps.
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784 #include <sys/types.h>
6785 /* Check that off_t can represent 2**63 - 1 correctly.
6786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6787 since some C++ compilers masquerading as C compilers
6788 incorrectly reject 9223372036854775807. */
6789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6791 && LARGE_OFF_T % 2147483647 == 1)
6801 if ac_fn_c_try_compile "$LINENO"; then :
6804 rm -f core conftest.err conftest.$ac_objext
6806 if ac_fn_c_try_compile "$LINENO"; then :
6807 ac_cv_sys_largefile_CC=' -n32'; break
6809 rm -f core conftest.err conftest.$ac_objext
6813 rm -f conftest.$ac_ext
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6817 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6818 if test "$ac_cv_sys_largefile_CC" != no; then
6819 CC=$CC$ac_cv_sys_largefile_CC
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6823 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6824 if ${ac_cv_sys_file_offset_bits+:} false; then :
6825 $as_echo_n "(cached) " >&6
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6830 #include <sys/types.h>
6831 /* Check that off_t can represent 2**63 - 1 correctly.
6832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6833 since some C++ compilers masquerading as C compilers
6834 incorrectly reject 9223372036854775807. */
6835 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6837 && LARGE_OFF_T % 2147483647 == 1)
6847 if ac_fn_c_try_compile "$LINENO"; then :
6848 ac_cv_sys_file_offset_bits=no; break
6850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #define _FILE_OFFSET_BITS 64
6854 #include <sys/types.h>
6855 /* Check that off_t can represent 2**63 - 1 correctly.
6856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6857 since some C++ compilers masquerading as C compilers
6858 incorrectly reject 9223372036854775807. */
6859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6861 && LARGE_OFF_T % 2147483647 == 1)
6871 if ac_fn_c_try_compile "$LINENO"; then :
6872 ac_cv_sys_file_offset_bits=64; break
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 ac_cv_sys_file_offset_bits=unknown
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6880 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6881 case $ac_cv_sys_file_offset_bits in #(
6884 cat >>confdefs.h <<_ACEOF
6885 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6890 if test $ac_cv_sys_file_offset_bits = unknown; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6892 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6893 if ${ac_cv_sys_large_files+:} false; then :
6894 $as_echo_n "(cached) " >&6
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 #include <sys/types.h>
6900 /* Check that off_t can represent 2**63 - 1 correctly.
6901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6902 since some C++ compilers masquerading as C compilers
6903 incorrectly reject 9223372036854775807. */
6904 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6906 && LARGE_OFF_T % 2147483647 == 1)
6916 if ac_fn_c_try_compile "$LINENO"; then :
6917 ac_cv_sys_large_files=no; break
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6922 #define _LARGE_FILES 1
6923 #include <sys/types.h>
6924 /* Check that off_t can represent 2**63 - 1 correctly.
6925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6926 since some C++ compilers masquerading as C compilers
6927 incorrectly reject 9223372036854775807. */
6928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6930 && LARGE_OFF_T % 2147483647 == 1)
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941 ac_cv_sys_large_files=1; break
6943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 ac_cv_sys_large_files=unknown
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6949 $as_echo "$ac_cv_sys_large_files" >&6; }
6950 case $ac_cv_sys_large_files in #(
6953 cat >>confdefs.h <<_ACEOF
6954 #define _LARGE_FILES $ac_cv_sys_large_files
6962 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6969 for ac_dir in .. "$srcdir"/..; do
6970 if test -f "$ac_dir/install-sh"; then
6972 ac_install_sh="$ac_aux_dir/install-sh -c"
6974 elif test -f "$ac_dir/install.sh"; then
6976 ac_install_sh="$ac_aux_dir/install.sh -c"
6978 elif test -f "$ac_dir/shtool"; then
6980 ac_install_sh="$ac_aux_dir/shtool install -c"
6984 if test -z "$ac_aux_dir"; then
6985 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
6988 # These three variables are undocumented and unsupported,
6989 # and are intended to be withdrawn in a future Autoconf release.
6990 # They can cause serious problems if a builder's source tree is in a directory
6991 # whose full name contains unusual characters.
6992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
7004 LIBC_FATAL_STDERR_=1
7005 export LIBC_FATAL_STDERR_
7007 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7008 if test "x$ac_cv_type_size_t" = xyes; then :
7012 cat >>confdefs.h <<_ACEOF
7013 #define size_t unsigned int
7018 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7019 # for constant arguments. Useless!
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7021 $as_echo_n "checking for working alloca.h... " >&6; }
7022 if ${ac_cv_working_alloca_h+:} false; then :
7023 $as_echo_n "(cached) " >&6
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7031 char *p = (char *) alloca (2 * sizeof (int));
7037 if ac_fn_c_try_link "$LINENO"; then :
7038 ac_cv_working_alloca_h=yes
7040 ac_cv_working_alloca_h=no
7042 rm -f core conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7046 $as_echo "$ac_cv_working_alloca_h" >&6; }
7047 if test $ac_cv_working_alloca_h = yes; then
7049 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7054 $as_echo_n "checking for alloca... " >&6; }
7055 if ${ac_cv_func_alloca_works+:} false; then :
7056 $as_echo_n "(cached) " >&6
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7061 # define alloca __builtin_alloca
7064 # include <malloc.h>
7065 # define alloca _alloca
7067 # ifdef HAVE_ALLOCA_H
7068 # include <alloca.h>
7073 # ifndef alloca /* predefined by HP cc +Olibcalls */
7074 void *alloca (size_t);
7084 char *p = (char *) alloca (1);
7090 if ac_fn_c_try_link "$LINENO"; then :
7091 ac_cv_func_alloca_works=yes
7093 ac_cv_func_alloca_works=no
7095 rm -f core conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7099 $as_echo "$ac_cv_func_alloca_works" >&6; }
7101 if test $ac_cv_func_alloca_works = yes; then
7103 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7106 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7107 # that cause trouble. Some versions do not even contain alloca or
7108 # contain a buggy version. If you still want to use their alloca,
7109 # use ar to extract alloca.o from them instead of compiling alloca.c.
7115 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7117 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c
' needs Cray hooks" >&5
7121 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
7122 if ${ac_cv_os_cray+:} false; then :
7123 $as_echo_n "(cached
) " >&6
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 #if defined CRAY && ! defined CRAY2
7134 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7135 $EGREP "webecray
" >/dev/null 2>&1; then :
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_os_cray" >&5
7144 $as_echo "$ac_cv_os_cray" >&6; }
7145 if test $ac_cv_os_cray = yes; then
7146 for ac_func in _getb67 GETB67 getb67; do
7147 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
7148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7149 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7151 cat >>confdefs.h <<_ACEOF
7152 #define CRAY_STACKSEG_END $ac_func
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction
for C alloca
" >&5
7162 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
7163 if ${ac_cv_c_stack_direction+:} false; then :
7164 $as_echo_n "(cached
) " >&6
7166 if test "$cross_compiling" = yes; then :
7167 ac_cv_c_stack_direction=0
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7171 $ac_includes_default
7173 find_stack_direction (int *addr, int depth)
7178 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7179 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7184 main (int argc, char **argv)
7186 return find_stack_direction (0, argc + !argv + 20) < 0;
7189 if ac_fn_c_try_run "$LINENO"; then :
7190 ac_cv_c_stack_direction=1
7192 ac_cv_c_stack_direction=-1
7194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7195 conftest.$ac_objext conftest.beam conftest.$ac_ext
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_stack_direction" >&5
7200 $as_echo "$ac_cv_c_stack_direction" >&6; }
7201 cat >>confdefs.h <<_ACEOF
7202 #define STACK_DIRECTION $ac_cv_c_stack_direction
7211 HAVE_DECL_INET_NTOP=1;
7212 HAVE_DECL_INET_PTON=1;
7213 REPLACE_INET_NTOP=0;
7214 REPLACE_INET_PTON=0;
7220 for ac_header in $gl_header_list
7222 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7223 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7225 cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next
" >&5
7240 $as_echo_n "checking whether the preprocessor supports include_next...
" >&6; }
7241 if ${gl_cv_have_include_next+:} false; then :
7242 $as_echo_n "(cached
) " >&6
7244 rm -rf conftestd1a conftestd1b conftestd2
7245 mkdir conftestd1a conftestd1b conftestd2
7246 cat <<EOF > conftestd1a/conftest.h
7247 #define DEFINED_IN_CONFTESTD1
7248 #include_next <conftest.h>
7249 #ifdef DEFINED_IN_CONFTESTD2
7252 #error "include_next doesn
't work"
7255 cat <<EOF > conftestd1b/conftest.h
7256 #define DEFINED_IN_CONFTESTD1
7258 #include_next <conftest.h>
7259 #ifdef DEFINED_IN_CONFTESTD2
7262 #error "include_next doesn't work
"
7265 cat <<EOF > conftestd2/conftest.h
7266 #ifndef DEFINED_IN_CONFTESTD1
7267 #error "include_next
test doesn
't work"
7269 #define DEFINED_IN_CONFTESTD2
7271 gl_save_CPPFLAGS="$CPPFLAGS"
7272 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7275 #include <conftest.h>
7277 if ac_fn_c_try_compile "$LINENO"; then :
7278 gl_cv_have_include_next=yes
7280 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7283 #include <conftest.h>
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286 gl_cv_have_include_next=buggy
7288 gl_cv_have_include_next=no
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 CPPFLAGS="$gl_save_CPPFLAGS"
7295 rm -rf conftestd1a conftestd1b conftestd2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7299 $as_echo "$gl_cv_have_include_next" >&6; }
7300 PRAGMA_SYSTEM_HEADER=
7301 if test $gl_cv_have_include_next = yes; then
7302 INCLUDE_NEXT=include_next
7303 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7304 if test -n "$GCC"; then
7305 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7308 if test $gl_cv_have_include_next = buggy
; then
7309 INCLUDE_NEXT
=include
7310 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
7312 INCLUDE_NEXT
=include
7313 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7320 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7321 if ${gl_cv_pragma_columns+:} false
; then :
7322 $as_echo_n "(cached) " >&6
7324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7333 $EGREP "choke me" >/dev
/null
2>&1; then :
7334 gl_cv_pragma_columns
=yes
7336 gl_cv_pragma_columns
=no
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7343 $as_echo "$gl_cv_pragma_columns" >&6; }
7344 if test $gl_cv_pragma_columns = yes; then
7345 PRAGMA_COLUMNS
="#pragma COLUMNS 10000"
7364 if test $ac_cv_header_features_h = yes; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7372 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7373 if test -z "$MKDIR_P"; then
7374 if ${ac_cv_path_mkdir+:} false
; then :
7375 $as_echo_n "(cached) " >&6
7377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7378 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7381 test -z "$as_dir" && as_dir
=.
7382 for ac_prog
in mkdir gmkdir
; do
7383 for ac_exec_ext
in '' $ac_executable_extensions; do
7384 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
7385 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7386 'mkdir (GNU coreutils) '* | \
7387 'mkdir (coreutils) '* | \
7388 'mkdir (fileutils) '4.1*)
7389 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7399 test -d .
/--version && rmdir .
/--version
7400 if test "${ac_cv_path_mkdir+set}" = set; then
7401 MKDIR_P
="$ac_cv_path_mkdir -p"
7403 # As a last resort, use the slow shell script. Don't cache a
7404 # value for MKDIR_P within a source directory, because that will
7405 # break other packages using the cache if that directory is
7406 # removed, or if the value is a relative name.
7407 MKDIR_P
="$ac_install_sh -d"
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7411 $as_echo "$MKDIR_P" >&6; }
7416 GNULIB_CALLOC_POSIX
=0;
7417 GNULIB_CANONICALIZE_FILE_NAME
=0;
7418 GNULIB_GETLOADAVG
=0;
7421 GNULIB_MALLOC_POSIX
=0;
7428 GNULIB_POSIX_OPENPT
=0;
7435 GNULIB_REALLOC_POSIX
=0;
7438 GNULIB_SECURE_GETENV
=0;
7443 GNULIB_SYSTEM_POSIX
=0;
7449 HAVE_CANONICALIZE_FILE_NAME
=1;
7450 HAVE_DECL_GETLOADAVG
=1;
7458 HAVE_POSIX_OPENPT
=1;
7467 HAVE_SECURE_GETENV
=1;
7473 HAVE_STRUCT_RANDOM_DATA
=1;
7474 HAVE_SYS_LOADAVG_H
=0;
7476 HAVE_DECL_UNSETENV
=1;
7478 REPLACE_CANONICALIZE_FILE_NAME
=0;
7483 REPLACE_PTSNAME_R
=0;
7498 for ac_func
in $gl_func_list
7500 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7501 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7502 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7503 cat >>confdefs.h
<<_ACEOF
7504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
7527 $as_echo_n "checking whether // is distinct from /... " >&6; }
7528 if ${gl_cv_double_slash_root+:} false
; then :
7529 $as_echo_n "(cached) " >&6
7531 if test x
"$cross_compiling" = xyes
; then
7532 # When cross-compiling, there is no way to tell whether // is special
7533 # short of a list of hosts. However, the only known hosts to date
7534 # that have a distinct // are Apollo DomainOS (too old to port to),
7535 # Cygwin, and z/OS. If anyone knows of another system for which // has
7536 # special semantics and is distinct from /, please report it to
7537 # <bug-gnulib@gnu.org>.
7539 *-cygwin | i370-ibm-openedition
)
7540 gl_cv_double_slash_root
=yes ;;
7542 # Be optimistic and assume that / and // are the same when we
7544 gl_cv_double_slash_root
='unknown, assuming no' ;;
7547 set x
`ls -di / // 2>/dev/null`
7548 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
7549 gl_cv_double_slash_root
=no
7551 gl_cv_double_slash_root
=yes
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
7556 $as_echo "$gl_cv_double_slash_root" >&6; }
7557 if test "$gl_cv_double_slash_root" = yes; then
7559 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
7577 $as_echo_n "checking whether realpath works... " >&6; }
7578 if ${gl_cv_func_realpath_works+:} false
; then :
7579 $as_echo_n "(cached) " >&6
7584 if test "$cross_compiling" = yes; then :
7586 # Guess yes on glibc systems.
7587 *-gnu* | gnu
*) gl_cv_func_realpath_works
="guessing yes" ;;
7588 # If we don't know, assume the worst.
7589 *) gl_cv_func_realpath_works
="guessing no" ;;
7593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7599 #if defined __MACH__ && defined __APPLE__
7600 /* Avoid a crash on Mac OS X. */
7601 #include <mach/mach.h>
7602 #include <mach/mach_error.h>
7603 #include <mach/thread_status.h>
7604 #include <mach/exception.h>
7605 #include <mach/task.h>
7606 #include <pthread.h>
7607 /* The exception port on which our thread listens. */
7608 static mach_port_t our_exception_port;
7609 /* The main function of the thread listening for exceptions of type
7612 mach_exception_thread (void *arg)
7614 /* Buffer for a message to be received. */
7616 mach_msg_header_t head;
7617 mach_msg_body_t msgh_body;
7620 mach_msg_return_t retval;
7621 /* Wait for a message on the exception port. */
7622 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7623 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7624 if (retval != MACH_MSG_SUCCESS)
7631 mach_port_t self = mach_task_self ();
7632 /* Allocate a port on which the thread shall listen for exceptions. */
7633 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7635 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7636 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7637 MACH_MSG_TYPE_MAKE_SEND)
7639 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7641 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7642 /* Create the thread listening on the exception port. */
7643 pthread_attr_t attr;
7645 if (pthread_attr_init (&attr) == 0
7646 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7647 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7648 pthread_attr_destroy (&attr);
7649 /* Replace the exception port info for these exceptions with our own.
7650 Note that we replace the exception port for the entire task, not only
7651 for a particular thread. This has the effect that when our exception
7652 port gets the message, the thread specific exception port has already
7653 been asked, and we don't need to bother about it.
7654 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7655 task_set_exception_ports (self, mask, our_exception_port,
7656 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7661 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
7662 /* Avoid a crash on native Windows. */
7663 #define WIN32_LEAN_AND_MEAN
7664 #include <windows.h>
7665 #include <winerror.h>
7667 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
7669 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
7671 case EXCEPTION_ACCESS_VIOLATION:
7672 case EXCEPTION_IN_PAGE_ERROR:
7673 case EXCEPTION_STACK_OVERFLOW:
7674 case EXCEPTION_GUARD_PAGE:
7675 case EXCEPTION_PRIV_INSTRUCTION:
7676 case EXCEPTION_ILLEGAL_INSTRUCTION:
7677 case EXCEPTION_DATATYPE_MISALIGNMENT:
7678 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
7679 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
7682 return EXCEPTION_CONTINUE_SEARCH;
7687 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
7690 /* Avoid a crash on POSIX systems. */
7693 /* A POSIX signal handler. */
7695 exception_handler (int sig)
7703 signal (SIGSEGV, exception_handler);
7706 signal (SIGBUS, exception_handler);
7720 char *name = realpath ("conftest.a", NULL);
7721 if (!(name && *name == '/'))
7726 char *name = realpath ("conftest.b/../conftest.a", NULL);
7732 char *name = realpath ("conftest.a/", NULL);
7738 char *name1 = realpath (".", NULL);
7739 char *name2 = realpath ("conftest.d//./..", NULL);
7740 if (! name1 || ! name2 || strcmp (name1, name2))
7752 if ac_fn_c_try_run
"$LINENO"; then :
7753 gl_cv_func_realpath_works
=yes
7755 gl_cv_func_realpath_works
=no
7757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7758 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7761 rm -rf conftest.a conftest.d
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
7765 $as_echo "$gl_cv_func_realpath_works" >&6; }
7766 case "$gl_cv_func_realpath_works" in
7769 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
7812 GNULIB_EUIDACCESS
=0;
7820 GNULIB_GETDOMAINNAME
=0;
7821 GNULIB_GETDTABLESIZE
=0;
7823 GNULIB_GETHOSTNAME
=0;
7825 GNULIB_GETLOGIN_R
=0;
7826 GNULIB_GETPAGESIZE
=0;
7827 GNULIB_GETUSERSHELL
=0;
7828 GNULIB_GROUP_MEMBER
=0;
7840 GNULIB_READLINKAT
=0;
7842 GNULIB_SETHOSTNAME
=0;
7847 GNULIB_UNISTD_H_NONBLOCKING
=0;
7848 GNULIB_UNISTD_H_SIGPIPE
=0;
7863 HAVE_GETDTABLESIZE
=1;
7868 HAVE_GROUP_MEMBER
=1;
7884 HAVE_DECL_ENVIRON
=1;
7886 HAVE_DECL_FDATASYNC
=1;
7887 HAVE_DECL_GETDOMAINNAME
=1;
7888 HAVE_DECL_GETLOGIN_R
=1;
7889 HAVE_DECL_GETPAGESIZE
=1;
7890 HAVE_DECL_GETUSERSHELL
=1;
7891 HAVE_DECL_SETHOSTNAME
=1;
7892 HAVE_DECL_TTYNAME_R
=1;
7900 REPLACE_FTRUNCATE
=0;
7902 REPLACE_GETDOMAINNAME
=0;
7903 REPLACE_GETDTABLESIZE
=0;
7904 REPLACE_GETLOGIN_R
=0;
7905 REPLACE_GETGROUPS
=0;
7906 REPLACE_GETPAGESIZE
=0;
7916 REPLACE_READLINKAT
=0;
7920 REPLACE_SYMLINKAT
=0;
7921 REPLACE_TTYNAME_R
=0;
7926 UNISTD_H_HAVE_WINSOCK2_H
=0;
7927 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
=0;
7960 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7961 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=1
7963 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7966 HAVE_MSVC_INVALID_PARAMETER_HANDLER
=0
7994 HAVE_DECL_FDOPENDIR
=1;
8001 REPLACE_FDOPENDIR
=0;
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
8022 $as_echo_n "checking if environ is properly declared... " >&6; }
8023 if ${gt_cv_var_environ_declaration+:} false
; then :
8024 $as_echo_n "(cached) " >&6
8027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8032 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
8035 extern struct { int foo; } environ;
8044 if ac_fn_c_try_compile
"$LINENO"; then :
8045 gt_cv_var_environ_declaration
=no
8047 gt_cv_var_environ_declaration
=yes
8049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
8053 $as_echo "$gt_cv_var_environ_declaration" >&6; }
8054 if test $gt_cv_var_environ_declaration = yes; then
8056 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
8061 if test $gt_cv_var_environ_declaration != yes; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
8068 $as_echo_n "checking for complete errno.h... " >&6; }
8069 if ${gl_cv_header_errno_h_complete+:} false
; then :
8070 $as_echo_n "(cached) " >&6
8073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8077 #if !defined ETXTBSY
8086 #if !defined ENOLINK
8092 #if !defined EMULTIHOP
8095 #if !defined EBADMSG
8098 #if !defined EOVERFLOW
8101 #if !defined ENOTSUP
8104 #if !defined ENETRESET
8107 #if !defined ECONNABORTED
8116 #if !defined ECANCELED
8119 #if !defined EOWNERDEAD
8122 #if !defined ENOTRECOVERABLE
8130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8131 $EGREP "booboo" >/dev
/null
2>&1; then :
8132 gl_cv_header_errno_h_complete
=no
8134 gl_cv_header_errno_h_complete
=yes
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8141 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
8142 if test $gl_cv_header_errno_h_complete = yes; then
8153 if test $gl_cv_have_include_next = yes; then
8154 gl_cv_next_errno_h
='<'errno.h
'>'
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8157 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
8158 if ${gl_cv_next_errno_h+:} false
; then :
8159 $as_echo_n "(cached) " >&6
8164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8169 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8170 *) gl_absname_cpp
="$ac_cpp" ;;
8175 gl_dirsep_regex
='[/\\]'
8178 gl_dirsep_regex
='\/'
8181 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
8182 gl_header_literal_regex
=`echo 'errno.h' \
8183 | sed -e "$gl_make_literal_regex_sed"`
8184 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8185 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8191 gl_cv_absolute_errno_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8192 sed -n "$gl_absolute_header_sed"`
8194 gl_header
=$gl_cv_absolute_errno_h
8195 gl_cv_next_errno_h
='"'$gl_header'"'
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8200 $as_echo "$gl_cv_next_errno_h" >&6; }
8202 NEXT_ERRNO_H
=$gl_cv_next_errno_h
8204 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8206 gl_next_as_first_directive
='<'errno.h
'>'
8208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8209 gl_next_as_first_directive
=$gl_cv_next_errno_h
8211 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
=$gl_next_as_first_directive
8219 if test -n "$ERRNO_H"; then
8220 GL_GENERATE_ERRNO_H_TRUE
=
8221 GL_GENERATE_ERRNO_H_FALSE
='#'
8223 GL_GENERATE_ERRNO_H_TRUE
='#'
8224 GL_GENERATE_ERRNO_H_FALSE
=
8228 if test -n "$ERRNO_H"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8230 $as_echo_n "checking for EMULTIHOP value... " >&6; }
8231 if ${gl_cv_header_errno_h_EMULTIHOP+:} false
; then :
8232 $as_echo_n "(cached) " >&6
8235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245 $EGREP "yes" >/dev
/null
2>&1; then :
8246 gl_cv_header_errno_h_EMULTIHOP
=yes
8248 gl_cv_header_errno_h_EMULTIHOP
=no
8252 if test $gl_cv_header_errno_h_EMULTIHOP = no
; then
8253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8256 #define _XOPEN_SOURCE_EXTENDED 1
8263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8264 $EGREP "yes" >/dev
/null
2>&1; then :
8265 gl_cv_header_errno_h_EMULTIHOP
=hidden
8269 if test $gl_cv_header_errno_h_EMULTIHOP = hidden
; then
8270 if ac_fn_c_compute_int
"$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8271 #define _XOPEN_SOURCE_EXTENDED 1
8273 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8285 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8286 case $gl_cv_header_errno_h_EMULTIHOP in
8288 EMULTIHOP_HIDDEN
=0; EMULTIHOP_VALUE
=
8291 EMULTIHOP_HIDDEN
=1; EMULTIHOP_VALUE
="$gl_cv_header_errno_h_EMULTIHOP"
8299 if test -n "$ERRNO_H"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8301 $as_echo_n "checking for ENOLINK value... " >&6; }
8302 if ${gl_cv_header_errno_h_ENOLINK+:} false
; then :
8303 $as_echo_n "(cached) " >&6
8306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8316 $EGREP "yes" >/dev
/null
2>&1; then :
8317 gl_cv_header_errno_h_ENOLINK
=yes
8319 gl_cv_header_errno_h_ENOLINK
=no
8323 if test $gl_cv_header_errno_h_ENOLINK = no
; then
8324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8327 #define _XOPEN_SOURCE_EXTENDED 1
8334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8335 $EGREP "yes" >/dev
/null
2>&1; then :
8336 gl_cv_header_errno_h_ENOLINK
=hidden
8340 if test $gl_cv_header_errno_h_ENOLINK = hidden
; then
8341 if ac_fn_c_compute_int
"$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
8342 #define _XOPEN_SOURCE_EXTENDED 1
8344 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8356 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8357 case $gl_cv_header_errno_h_ENOLINK in
8359 ENOLINK_HIDDEN
=0; ENOLINK_VALUE
=
8362 ENOLINK_HIDDEN
=1; ENOLINK_VALUE
="$gl_cv_header_errno_h_ENOLINK"
8370 if test -n "$ERRNO_H"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8372 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8373 if ${gl_cv_header_errno_h_EOVERFLOW+:} false
; then :
8374 $as_echo_n "(cached) " >&6
8377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8387 $EGREP "yes" >/dev
/null
2>&1; then :
8388 gl_cv_header_errno_h_EOVERFLOW
=yes
8390 gl_cv_header_errno_h_EOVERFLOW
=no
8394 if test $gl_cv_header_errno_h_EOVERFLOW = no
; then
8395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8398 #define _XOPEN_SOURCE_EXTENDED 1
8405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406 $EGREP "yes" >/dev
/null
2>&1; then :
8407 gl_cv_header_errno_h_EOVERFLOW
=hidden
8411 if test $gl_cv_header_errno_h_EOVERFLOW = hidden
; then
8412 if ac_fn_c_compute_int
"$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
8413 #define _XOPEN_SOURCE_EXTENDED 1
8415 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8427 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8428 case $gl_cv_header_errno_h_EOVERFLOW in
8430 EOVERFLOW_HIDDEN
=0; EOVERFLOW_VALUE
=
8433 EOVERFLOW_HIDDEN
=1; EOVERFLOW_VALUE
="$gl_cv_header_errno_h_EOVERFLOW"
8443 $as_echo "#define HAVE_DECL_STRERROR_R 1" >>confdefs.h
8446 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
8449 $as_echo "#define STRERROR_R_CHAR_P 0" >>confdefs.h
8456 ac_fn_c_check_decl
"$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8457 if test "x$ac_cv_have_decl_fchdir" = xyes
; then :
8463 cat >>confdefs.h
<<_ACEOF
8464 #define HAVE_DECL_FCHDIR $ac_have_decl
8470 GNULIB_NONBLOCKING
=0;
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8507 $as_echo_n "checking for working fcntl.h... " >&6; }
8508 if ${gl_cv_header_working_fcntl_h+:} false
; then :
8509 $as_echo_n "(cached) " >&6
8511 if test "$cross_compiling" = yes; then :
8512 gl_cv_header_working_fcntl_h
=cross-compiling
8514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 #include <sys/types.h>
8517 #include <sys/stat.h>
8519 # include <unistd.h>
8520 #else /* on Windows with MSVC */
8522 # include <stdlib.h>
8523 # defined sleep(n) _sleep ((n) * 1000)
8530 #define O_NOFOLLOW 0
8532 static int const constants[] =
8534 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8535 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8542 int result = !constants;
8545 static char const sym[] = "conftest.sym";
8546 if (symlink ("/dev/null", sym) != 0)
8550 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8557 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8561 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8572 static char const file[] = "confdefs.h";
8573 int fd = open (file, O_RDONLY | O_NOATIME);
8579 if (fstat (fd, &st0) != 0)
8585 if (read (fd, &c, 1) != 1)
8589 if (close (fd) != 0)
8594 if (stat (file, &st1) != 0)
8597 if (st0.st_atime != st1.st_atime)
8609 if ac_fn_c_try_run
"$LINENO"; then :
8610 gl_cv_header_working_fcntl_h
=yes
8613 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
8614 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
8615 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8616 *) gl_cv_header_working_fcntl_h
='no';;
8619 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8620 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8625 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8627 case $gl_cv_header_working_fcntl_h in #(
8628 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
8632 cat >>confdefs.h
<<_ACEOF
8633 #define HAVE_WORKING_O_NOATIME $ac_val
8637 case $gl_cv_header_working_fcntl_h in #(
8638 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
8642 cat >>confdefs.h
<<_ACEOF
8643 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8647 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8648 if test "x$ac_cv_type_pid_t" = xyes
; then :
8652 cat >>confdefs.h
<<_ACEOF
8658 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8659 if test "x$ac_cv_type_mode_t" = xyes
; then :
8663 cat >>confdefs.h
<<_ACEOF
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
8682 $as_echo_n "checking for mbstate_t... " >&6; }
8683 if ${ac_cv_type_mbstate_t+:} false
; then :
8684 $as_echo_n "(cached) " >&6
8686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 $ac_includes_default
8689 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8691 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8692 included before <wchar.h>. */
8700 mbstate_t x; return sizeof x;
8705 if ac_fn_c_try_compile
"$LINENO"; then :
8706 ac_cv_type_mbstate_t
=yes
8708 ac_cv_type_mbstate_t
=no
8710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
8713 $as_echo "$ac_cv_type_mbstate_t" >&6; }
8714 if test $ac_cv_type_mbstate_t = yes; then
8716 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
8720 $as_echo "#define mbstate_t int" >>confdefs.h
8840 GNULIB_REMAINDERF
=0;
8841 GNULIB_REMAINDERL
=0;
8927 HAVE_DECL_COPYSIGNF
=1;
8944 HAVE_DECL_REMAINDER
=1;
8945 HAVE_DECL_REMAINDERL
=1;
9007 REPLACE_REMAINDER
=0;
9008 REPLACE_REMAINDERF
=0;
9009 REPLACE_REMAINDERL
=0;
9014 REPLACE_SIGNBIT_USING_GCC
=0;
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
9022 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
9023 if ${gl_cv_func_frexp_no_libm+:} false
; then :
9024 $as_echo_n "(cached) " >&6
9027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9034 int e; return frexp (x, &e) > 0;
9039 if ac_fn_c_try_link
"$LINENO"; then :
9040 gl_cv_func_frexp_no_libm
=yes
9042 gl_cv_func_frexp_no_libm
=no
9044 rm -f core conftest.err conftest.
$ac_objext \
9045 conftest
$ac_exeext conftest.
$ac_ext
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
9049 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
9052 ac_fn_c_check_decl
"$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
9053 if test "x$ac_cv_have_decl_alarm" = xyes
; then :
9059 cat >>confdefs.h
<<_ACEOF
9060 #define HAVE_DECL_ALARM $ac_have_decl
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9066 $as_echo_n "checking whether long double and double are the same... " >&6; }
9067 if ${gl_cv_long_double_equals_double+:} false
; then :
9068 $as_echo_n "(cached) " >&6
9070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9076 typedef int check[sizeof (long double) == sizeof (double)
9077 && LDBL_MANT_DIG == DBL_MANT_DIG
9078 && LDBL_MAX_EXP == DBL_MAX_EXP
9079 && LDBL_MIN_EXP == DBL_MIN_EXP
9086 if ac_fn_c_try_compile
"$LINENO"; then :
9087 gl_cv_long_double_equals_double
=yes
9089 gl_cv_long_double_equals_double
=no
9091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9095 $as_echo "$gl_cv_long_double_equals_double" >&6; }
9096 if test $gl_cv_long_double_equals_double = yes; then
9098 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9100 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=1
9102 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
=0
9139 REPLACE_UTIMENSAT
=0;
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9142 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9143 if ${ac_cv_header_stat_broken+:} false
; then :
9144 $as_echo_n "(cached) " >&6
9146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148 #include <sys/types.h>
9149 #include <sys/stat.h>
9151 #if defined S_ISBLK && defined S_IFDIR
9152 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9155 #if defined S_ISBLK && defined S_IFCHR
9156 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9159 #if defined S_ISLNK && defined S_IFREG
9160 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9163 #if defined S_ISSOCK && defined S_IFREG
9164 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9168 if ac_fn_c_try_compile
"$LINENO"; then :
9169 ac_cv_header_stat_broken
=no
9171 ac_cv_header_stat_broken
=yes
9173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9176 $as_echo "$ac_cv_header_stat_broken" >&6; }
9177 if test $ac_cv_header_stat_broken = yes; then
9179 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9193 $as_echo_n "checking for 64-bit off_t... " >&6; }
9194 if ${gl_cv_type_off_t_64+:} false
; then :
9195 $as_echo_n "(cached) " >&6
9197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9199 #include <sys/types.h>
9200 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9210 if ac_fn_c_try_compile
"$LINENO"; then :
9211 gl_cv_type_off_t_64
=yes
9213 gl_cv_type_off_t_64
=no
9215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9219 $as_echo "$gl_cv_type_off_t_64" >&6; }
9220 if test $gl_cv_type_off_t_64 = no
; then
9221 WINDOWS_64_BIT_OFF_T
=1
9223 WINDOWS_64_BIT_OFF_T
=0
9225 WINDOWS_64_BIT_ST_SIZE
=1
9228 WINDOWS_64_BIT_OFF_T
=0
9229 WINDOWS_64_BIT_ST_SIZE
=0
9253 if test $gl_cv_have_include_next = yes; then
9254 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
9257 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
9258 if ${gl_cv_next_sys_stat_h+:} false
; then :
9259 $as_echo_n "(cached) " >&6
9262 if test $ac_cv_header_sys_stat_h = yes; then
9267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 #include <sys/stat.h>
9272 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9273 *) gl_absname_cpp
="$ac_cpp" ;;
9278 gl_dirsep_regex
='[/\\]'
9281 gl_dirsep_regex
='\/'
9284 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9285 gl_header_literal_regex
=`echo 'sys/stat.h' \
9286 | sed -e "$gl_make_literal_regex_sed"`
9287 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9288 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9294 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9295 sed -n "$gl_absolute_header_sed"`
9297 gl_header
=$gl_cv_absolute_sys_stat_h
9298 gl_cv_next_sys_stat_h
='"'$gl_header'"'
9300 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
9306 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
9308 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
9310 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9312 gl_next_as_first_directive
='<'sys
/stat.h
'>'
9314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9315 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
9317 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
9329 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
9331 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
9335 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
9336 #include <sys/stat.h>
9338 if test "x$ac_cv_type_nlink_t" = xyes
; then :
9342 $as_echo "#define nlink_t int" >>confdefs.h
9348 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
9349 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9351 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9352 if eval \
${$as_gl_Symbol+:} false
; then :
9353 $as_echo_n "(cached) " >&6
9355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 #include <sys/stat.h>
9368 if ac_fn_c_try_compile
"$LINENO"; then :
9369 eval "$as_gl_Symbol=yes"
9371 eval "$as_gl_Symbol=no"
9373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9375 eval ac_res
=\$
$as_gl_Symbol
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9377 $as_echo "$ac_res" >&6; }
9378 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9379 cat >>confdefs.h
<<_ACEOF
9380 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9383 eval ac_cv_have_decl_
$gl_func=yes
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9390 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9391 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
9392 $as_echo_n "(cached) " >&6
9394 rm -f conftest.sym conftest.
file
9396 if test "$cross_compiling" = yes; then :
9399 # Guess yes on glibc systems.
9400 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing yes" ;;
9402 # If we don't know, assume the worst.
9403 gl_cv_func_lstat_dereferences_slashed_symlink
="guessing no" ;;
9407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 $ac_includes_default
9414 if (symlink ("conftest.file", "conftest.sym") != 0)
9416 /* Linux will dereference the symlink and fail, as required by
9417 POSIX. That is better in the sense that it means we will not
9418 have to compile and use the lstat wrapper. */
9419 return lstat ("conftest.sym/", &sbuf) == 0;
9425 if ac_fn_c_try_run
"$LINENO"; then :
9426 gl_cv_func_lstat_dereferences_slashed_symlink
=yes
9428 gl_cv_func_lstat_dereferences_slashed_symlink
=no
9430 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9431 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9434 rm -f conftest.sym conftest.
file
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9438 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9439 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9442 cat >>confdefs.h
<<_ACEOF
9443 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
9463 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
9464 if ${gl_cv_func_getcwd_null+:} false
; then :
9465 $as_echo_n "(cached) " >&6
9467 if test "$cross_compiling" = yes; then :
9469 # Guess yes on glibc systems.
9470 *-gnu*) gl_cv_func_getcwd_null
="guessing yes";;
9471 # Guess yes on Cygwin.
9472 cygwin
*) gl_cv_func_getcwd_null
="guessing yes";;
9473 # If we don't know, assume the worst.
9474 *) gl_cv_func_getcwd_null
="guessing no";;
9478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9481 # include <stdlib.h>
9483 # include <unistd.h>
9484 # else /* on Windows with MSVC */
9485 # include <direct.h>
9495 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9496 /* mingw cwd does not start with '/', but getcwd does allocate.
9497 However, mingw fails to honor non-zero size. */
9499 if (chdir ("/") != 0)
9503 char *f = getcwd (NULL, 0);
9519 if ac_fn_c_try_run
"$LINENO"; then :
9520 gl_cv_func_getcwd_null
=yes
9522 gl_cv_func_getcwd_null
=no
9524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9525 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
9530 $as_echo "$gl_cv_func_getcwd_null" >&6; }
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
9534 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
9535 if ${gl_cv_func_getcwd_posix_signature+:} false
; then :
9536 $as_echo_n "(cached) " >&6
9538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9548 char *getcwd (char *, size_t);
9555 if ac_fn_c_try_compile
"$LINENO"; then :
9556 gl_cv_func_getcwd_posix_signature
=yes
9558 gl_cv_func_getcwd_posix_signature
=no
9560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
9564 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
9567 ac_fn_c_check_decl
"$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
9568 if test "x$ac_cv_have_decl_getcwd" = xyes
; then :
9574 cat >>confdefs.h
<<_ACEOF
9575 #define HAVE_DECL_GETCWD $ac_have_decl
9585 ac_fn_c_check_decl
"$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
9586 if test "x$ac_cv_have_decl_getdtablesize" = xyes
; then :
9592 cat >>confdefs.h
<<_ACEOF
9593 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
9598 ac_fn_c_check_decl
"$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
9599 if test "x$ac_cv_have_decl_getlogin_r" = xyes
; then :
9605 cat >>confdefs.h
<<_ACEOF
9606 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
9616 ac_fn_c_check_decl
"$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
9617 if test "x$ac_cv_have_decl_getlogin" = xyes
; then :
9623 cat >>confdefs.h
<<_ACEOF
9624 #define HAVE_DECL_GETLOGIN $ac_have_decl
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9639 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9640 if ${ac_cv_c_restrict+:} false
; then :
9641 $as_echo_n "(cached) " >&6
9644 # The order here caters to the fact that C++ does not require restrict.
9645 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
9646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 typedef int *int_ptr;
9649 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9650 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9651 int bar (int ip[$ac_kw]) { return ip[0]; }
9659 return foo (t) + bar (t);
9665 if ac_fn_c_try_compile
"$LINENO"; then :
9666 ac_cv_c_restrict
=$ac_kw
9668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9669 test "$ac_cv_c_restrict" != no
&& break
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9674 $as_echo "$ac_cv_c_restrict" >&6; }
9676 case $ac_cv_c_restrict in
9678 no
) $as_echo "#define restrict /**/" >>confdefs.h
9680 *) cat >>confdefs.h
<<_ACEOF
9681 #define restrict $ac_cv_c_restrict
9687 GNULIB_GETTIMEOFDAY
=0;
9688 HAVE_GETTIMEOFDAY
=1;
9689 HAVE_STRUCT_TIMEVAL
=1;
9692 REPLACE_GETTIMEOFDAY
=0;
9693 REPLACE_STRUCT_TIMEVAL
=0;
9725 if test $gl_cv_have_include_next = yes; then
9726 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9729 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9730 if ${gl_cv_next_sys_time_h+:} false
; then :
9731 $as_echo_n "(cached) " >&6
9734 if test $ac_cv_header_sys_time_h = yes; then
9739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 #include <sys/time.h>
9744 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
9745 *) gl_absname_cpp
="$ac_cpp" ;;
9750 gl_dirsep_regex
='[/\\]'
9753 gl_dirsep_regex
='\/'
9756 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
9757 gl_header_literal_regex
=`echo 'sys/time.h' \
9758 | sed -e "$gl_make_literal_regex_sed"`
9759 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9760 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9766 gl_cv_absolute_sys_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9767 sed -n "$gl_absolute_header_sed"`
9769 gl_header
=$gl_cv_absolute_sys_time_h
9770 gl_cv_next_sys_time_h
='"'$gl_header'"'
9772 gl_cv_next_sys_time_h
='<'sys
/time.h
'>'
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9778 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9780 NEXT_SYS_TIME_H
=$gl_cv_next_sys_time_h
9782 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
9783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9784 gl_next_as_first_directive
='<'sys
/time.h
'>'
9786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9787 gl_next_as_first_directive
=$gl_cv_next_sys_time_h
9789 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
=$gl_next_as_first_directive
9795 if test $ac_cv_header_sys_time_h != yes; then
9809 if test $ac_cv_header_sys_socket_h != yes; then
9810 for ac_header
in winsock2.h
9812 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9813 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
9814 cat >>confdefs.h
<<_ACEOF
9815 #define HAVE_WINSOCK2_H 1
9823 if test "$ac_cv_header_winsock2_h" = yes; then
9825 UNISTD_H_HAVE_WINSOCK2_H
=1
9826 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9833 $as_echo_n "checking for struct timeval... " >&6; }
9834 if ${gl_cv_sys_struct_timeval+:} false
; then :
9835 $as_echo_n "(cached) " >&6
9837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9840 #include <sys/time.h>
9844 # include <winsock2.h>
9850 static struct timeval x; x.tv_sec = x.tv_usec;
9855 if ac_fn_c_try_compile
"$LINENO"; then :
9856 gl_cv_sys_struct_timeval
=yes
9858 gl_cv_sys_struct_timeval
=no
9860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9864 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9865 if test $gl_cv_sys_struct_timeval != yes; then
9866 HAVE_STRUCT_TIMEVAL
=0
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
9869 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
9870 if ${gl_cv_sys_struct_timeval_tv_sec+:} false
; then :
9871 $as_echo_n "(cached) " >&6
9873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9876 #include <sys/time.h>
9880 # include <winsock2.h>
9886 static struct timeval x;
9887 typedef int verify_tv_sec_type[
9888 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
9895 if ac_fn_c_try_compile
"$LINENO"; then :
9896 gl_cv_sys_struct_timeval_tv_sec
=yes
9898 gl_cv_sys_struct_timeval_tv_sec
=no
9900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
9904 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
9905 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
9906 REPLACE_STRUCT_TIMEVAL
=1
9911 for gl_func
in gettimeofday
; do
9912 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9914 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9915 if eval \
${$as_gl_Symbol+:} false
; then :
9916 $as_echo_n "(cached) " >&6
9918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9922 # include <sys/time.h>
9935 if ac_fn_c_try_compile
"$LINENO"; then :
9936 eval "$as_gl_Symbol=yes"
9938 eval "$as_gl_Symbol=no"
9940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9942 eval ac_res
=\$
$as_gl_Symbol
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9944 $as_echo "$ac_res" >&6; }
9945 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
9946 cat >>confdefs.h
<<_ACEOF
9947 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9950 eval ac_cv_have_decl_
$gl_func=yes
9983 GNULIB_GETPEERNAME
=0;
9984 GNULIB_GETSOCKNAME
=0;
9985 GNULIB_GETSOCKOPT
=0;
9991 GNULIB_SETSOCKOPT
=0;
9994 HAVE_STRUCT_SOCKADDR_STORAGE
=1;
9995 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=1;
10007 if test $ac_cv_header_sys_socket_h = no
; then
10008 for ac_header
in ws2tcpip.h
10010 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
10011 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
10012 cat >>confdefs.h
<<_ACEOF
10013 #define HAVE_WS2TCPIP_H 1
10029 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
10035 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
10036 if ${gl_cv_header_sys_socket_h_selfcontained+:} false
; then :
10037 $as_echo_n "(cached) " >&6
10040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 #include <sys/socket.h>
10051 if ac_fn_c_try_compile
"$LINENO"; then :
10052 gl_cv_header_sys_socket_h_selfcontained
=yes
10054 gl_cv_header_sys_socket_h_selfcontained
=no
10056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
10060 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
10061 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
10062 for ac_func
in shutdown
10064 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
10065 if test "x$ac_cv_func_shutdown" = xyes
; then :
10066 cat >>confdefs.h
<<_ACEOF
10067 #define HAVE_SHUTDOWN 1
10073 if test $ac_cv_func_shutdown = yes; then
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
10075 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
10076 if ${gl_cv_header_sys_socket_h_shut+:} false
; then :
10077 $as_echo_n "(cached) " >&6
10080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082 #include <sys/socket.h>
10086 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
10091 if ac_fn_c_try_compile
"$LINENO"; then :
10092 gl_cv_header_sys_socket_h_shut
=yes
10094 gl_cv_header_sys_socket_h_shut
=no
10096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
10100 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
10101 if test $gl_cv_header_sys_socket_h_shut = no
; then
10102 SYS_SOCKET_H
='sys/socket.h'
10106 # We need to check for ws2tcpip.h now.
10124 if test $gl_cv_have_include_next = yes; then
10125 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
10128 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
10129 if ${gl_cv_next_sys_socket_h+:} false
; then :
10130 $as_echo_n "(cached) " >&6
10133 if test $ac_cv_header_sys_socket_h = yes; then
10138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h. */
10140 #include <sys/socket.h>
10143 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10144 *) gl_absname_cpp
="$ac_cpp" ;;
10149 gl_dirsep_regex
='[/\\]'
10152 gl_dirsep_regex
='\/'
10155 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10156 gl_header_literal_regex
=`echo 'sys/socket.h' \
10157 | sed -e "$gl_make_literal_regex_sed"`
10158 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10159 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10165 gl_cv_absolute_sys_socket_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10166 sed -n "$gl_absolute_header_sed"`
10168 gl_header
=$gl_cv_absolute_sys_socket_h
10169 gl_cv_next_sys_socket_h
='"'$gl_header'"'
10171 gl_cv_next_sys_socket_h
='<'sys
/socket.h
'>'
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
10177 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
10179 NEXT_SYS_SOCKET_H
=$gl_cv_next_sys_socket_h
10181 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10183 gl_next_as_first_directive
='<'sys
/socket.h
'>'
10185 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10186 gl_next_as_first_directive
=$gl_cv_next_sys_socket_h
10188 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
=$gl_next_as_first_directive
10193 if test $ac_cv_header_sys_socket_h = yes; then
10194 HAVE_SYS_SOCKET_H
=1
10197 HAVE_SYS_SOCKET_H
=0
10198 if test $ac_cv_header_ws2tcpip_h = yes; then
10207 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
10208 /* sys/types.h is not needed according to POSIX, but the
10209 sys/socket.h in i386-unknown-freebsd4.10 and
10210 powerpc-apple-darwin5.5 required it. */
10211 #include <sys/types.h>
10212 #ifdef HAVE_SYS_SOCKET_H
10213 #include <sys/socket.h>
10215 #ifdef HAVE_WS2TCPIP_H
10216 #include <ws2tcpip.h>
10220 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
10222 cat >>confdefs.h
<<_ACEOF
10223 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10228 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
10229 /* sys/types.h is not needed according to POSIX, but the
10230 sys/socket.h in i386-unknown-freebsd4.10 and
10231 powerpc-apple-darwin5.5 required it. */
10232 #include <sys/types.h>
10233 #ifdef HAVE_SYS_SOCKET_H
10234 #include <sys/socket.h>
10236 #ifdef HAVE_WS2TCPIP_H
10237 #include <ws2tcpip.h>
10241 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
10243 cat >>confdefs.h
<<_ACEOF
10244 #define HAVE_SA_FAMILY_T 1
10250 if test $ac_cv_type_struct_sockaddr_storage = no
; then
10251 HAVE_STRUCT_SOCKADDR_STORAGE
=0
10253 if test $ac_cv_type_sa_family_t = no
; then
10256 if test $ac_cv_type_struct_sockaddr_storage != no
; then
10257 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
10258 #ifdef HAVE_SYS_SOCKET_H
10259 #include <sys/socket.h>
10261 #ifdef HAVE_WS2TCPIP_H
10262 #include <ws2tcpip.h>
10266 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
10268 cat >>confdefs.h
<<_ACEOF
10269 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10274 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
=0
10278 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 ||
test $HAVE_SA_FAMILY_T = 0 \
10279 ||
test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
10280 SYS_SOCKET_H
='sys/socket.h'
10292 if test $ac_cv_header_sys_socket_h != yes; then
10293 for ac_header
in winsock2.h
10295 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10296 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
10297 cat >>confdefs.h
<<_ACEOF
10298 #define HAVE_WINSOCK2_H 1
10306 if test "$ac_cv_header_winsock2_h" = yes; then
10308 UNISTD_H_HAVE_WINSOCK2_H
=1
10309 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
10317 for gl_func
in socket connect accept
bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4
; do
10318 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10320 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10321 if eval \
${$as_gl_Symbol+:} false
; then :
10322 $as_echo_n "(cached) " >&6
10324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10327 /* Some systems require prerequisite headers. */
10328 #include <sys/types.h>
10329 #include <sys/socket.h>
10340 if ac_fn_c_try_compile
"$LINENO"; then :
10341 eval "$as_gl_Symbol=yes"
10343 eval "$as_gl_Symbol=no"
10345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10347 eval ac_res
=\$
$as_gl_Symbol
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10349 $as_echo "$ac_res" >&6; }
10350 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
10351 cat >>confdefs.h
<<_ACEOF
10352 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10355 eval ac_cv_have_decl_
$gl_func=yes
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
10376 $as_echo_n "checking for IPv4 sockets... " >&6; }
10377 if ${gl_cv_socket_ipv4+:} false
; then :
10378 $as_echo_n "(cached) " >&6
10380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382 #include <sys/types.h>
10383 #ifdef HAVE_SYS_SOCKET_H
10384 #include <sys/socket.h>
10386 #ifdef HAVE_NETINET_IN_H
10387 #include <netinet/in.h>
10389 #ifdef HAVE_WINSOCK2_H
10390 #include <winsock2.h>
10395 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
10396 if (&x && &y && &z) return 0;
10401 if ac_fn_c_try_compile
"$LINENO"; then :
10402 gl_cv_socket_ipv4
=yes
10404 gl_cv_socket_ipv4
=no
10406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
10410 $as_echo "$gl_cv_socket_ipv4" >&6; }
10411 if test $gl_cv_socket_ipv4 = yes; then
10413 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
10418 $as_echo_n "checking for IPv6 sockets... " >&6; }
10419 if ${gl_cv_socket_ipv6+:} false
; then :
10420 $as_echo_n "(cached) " >&6
10422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 #include <sys/types.h>
10425 #ifdef HAVE_SYS_SOCKET_H
10426 #include <sys/socket.h>
10428 #ifdef HAVE_NETINET_IN_H
10429 #include <netinet/in.h>
10431 #ifdef HAVE_WINSOCK2_H
10432 #include <winsock2.h>
10434 #ifdef HAVE_WS2TCPIP_H
10435 #include <ws2tcpip.h>
10440 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
10441 if (&x && &y && &z) return 0;
10446 if ac_fn_c_try_compile
"$LINENO"; then :
10447 gl_cv_socket_ipv6
=yes
10449 gl_cv_socket_ipv6
=no
10451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
10455 $as_echo "$gl_cv_socket_ipv6" >&6; }
10456 if test $gl_cv_socket_ipv6 = yes; then
10458 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
10483 if test $gl_cv_have_include_next = yes; then
10484 gl_cv_next_limits_h
='<'limits.h
'>'
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
10487 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
10488 if ${gl_cv_next_limits_h+:} false
; then :
10489 $as_echo_n "(cached) " >&6
10492 if test $ac_cv_header_limits_h = yes; then
10497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10499 #include <limits.h>
10502 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10503 *) gl_absname_cpp
="$ac_cpp" ;;
10508 gl_dirsep_regex
='[/\\]'
10511 gl_dirsep_regex
='\/'
10514 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10515 gl_header_literal_regex
=`echo 'limits.h' \
10516 | sed -e "$gl_make_literal_regex_sed"`
10517 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10518 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10524 gl_cv_absolute_limits_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10525 sed -n "$gl_absolute_header_sed"`
10527 gl_header
=$gl_cv_absolute_limits_h
10528 gl_cv_next_limits_h
='"'$gl_header'"'
10530 gl_cv_next_limits_h
='<'limits.h
'>'
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
10536 $as_echo "$gl_cv_next_limits_h" >&6; }
10538 NEXT_LIMITS_H
=$gl_cv_next_limits_h
10540 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10541 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10542 gl_next_as_first_directive
='<'limits.h
'>'
10544 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10545 gl_next_as_first_directive
=$gl_cv_next_limits_h
10547 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
=$gl_next_as_first_directive
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
10554 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
10555 if ${gl_cv_header_limits_width+:} false
; then :
10556 $as_echo_n "(cached) " >&6
10558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10560 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10561 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10563 #include <limits.h>
10564 int ullw = ULLONG_WIDTH;
10573 if ac_fn_c_try_compile
"$LINENO"; then :
10574 gl_cv_header_limits_width
=yes
10576 gl_cv_header_limits_width
=no
10578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
10581 $as_echo "$gl_cv_header_limits_width" >&6; }
10582 if test "$gl_cv_header_limits_width" = yes; then
10588 if test -n "$LIMITS_H"; then
10589 GL_GENERATE_LIMITS_H_TRUE
=
10590 GL_GENERATE_LIMITS_H_FALSE
='#'
10592 GL_GENERATE_LIMITS_H_TRUE
='#'
10593 GL_GENERATE_LIMITS_H_FALSE
=
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10599 $as_echo_n "checking for unsigned long long int... " >&6; }
10600 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
10601 $as_echo_n "(cached) " >&6
10603 ac_cv_type_unsigned_long_long_int
=yes
10604 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10608 /* For now, do not test the preprocessor; as of 2007 there are too many
10609 implementations with broken preprocessors. Perhaps this can
10610 be revisited in 2012. In the meantime, code should not expect
10611 #if to work with literals wider than 32 bits. */
10612 /* Test literals. */
10613 long long int ll = 9223372036854775807ll;
10614 long long int nll = -9223372036854775807LL;
10615 unsigned long long int ull = 18446744073709551615ULL;
10616 /* Test constant expressions. */
10617 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10619 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10625 /* Test availability of runtime routines for shift and division. */
10626 long long int llmax = 9223372036854775807ll;
10627 unsigned long long int ullmax = 18446744073709551615ull;
10628 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10629 | (llmax / ll) | (llmax % ll)
10630 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10631 | (ullmax / ull) | (ullmax % ull));
10637 if ac_fn_c_try_link
"$LINENO"; then :
10640 ac_cv_type_unsigned_long_long_int
=no
10642 rm -f core conftest.err conftest.
$ac_objext \
10643 conftest
$ac_exeext conftest.
$ac_ext
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10647 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10648 if test $ac_cv_type_unsigned_long_long_int = yes; then
10650 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10657 $as_echo_n "checking for long long int... " >&6; }
10658 if ${ac_cv_type_long_long_int+:} false
; then :
10659 $as_echo_n "(cached) " >&6
10661 ac_cv_type_long_long_int
=yes
10662 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
10663 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
10664 if test $ac_cv_type_long_long_int = yes; then
10665 if test "$cross_compiling" = yes; then :
10668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670 #include <limits.h>
10673 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10674 # define LLONG_MAX (HALF - 1 + HALF)
10679 long long int n = 1;
10683 long long int m = n << i;
10686 if (LLONG_MAX / 2 < m)
10694 if ac_fn_c_try_run
"$LINENO"; then :
10697 ac_cv_type_long_long_int
=no
10699 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10700 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10707 $as_echo "$ac_cv_type_long_long_int" >&6; }
10708 if test $ac_cv_type_long_long_int = yes; then
10710 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10725 gl_cv_c_multiarch
=no
10726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10727 /* end confdefs.h. */
10728 #ifndef __APPLE_CC__
10729 not a universal capable compiler
10734 if ac_fn_c_try_compile
"$LINENO"; then :
10738 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10739 if test -n "$prev"; then
10741 i?
86 | x86_64 | ppc | ppc64
)
10742 if test -z "$arch" ||
test "$arch" = "$word"; then
10745 gl_cv_c_multiarch
=yes
10751 if test "x$word" = "x-arch"; then
10758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10759 if test $gl_cv_c_multiarch = yes; then
10760 APPLE_UNIVERSAL_BUILD
=1
10762 APPLE_UNIVERSAL_BUILD
=0
10771 if test $ac_cv_type_long_long_int = yes; then
10772 HAVE_LONG_LONG_INT
=1
10774 HAVE_LONG_LONG_INT
=0
10778 if test $ac_cv_type_unsigned_long_long_int = yes; then
10779 HAVE_UNSIGNED_LONG_LONG_INT
=1
10781 HAVE_UNSIGNED_LONG_LONG_INT
=0
10792 if test $ac_cv_header_wchar_h = yes; then
10799 if test $ac_cv_header_inttypes_h = yes; then
10806 if test $ac_cv_header_sys_types_h = yes; then
10828 if test $gl_cv_have_include_next = yes; then
10829 gl_cv_next_stdint_h
='<'stdint.h
'>'
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10832 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10833 if ${gl_cv_next_stdint_h+:} false
; then :
10834 $as_echo_n "(cached) " >&6
10837 if test $ac_cv_header_stdint_h = yes; then
10842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10844 #include <stdint.h>
10847 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
10848 *) gl_absname_cpp
="$ac_cpp" ;;
10853 gl_dirsep_regex
='[/\\]'
10856 gl_dirsep_regex
='\/'
10859 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
10860 gl_header_literal_regex
=`echo 'stdint.h' \
10861 | sed -e "$gl_make_literal_regex_sed"`
10862 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10863 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10869 gl_cv_absolute_stdint_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10870 sed -n "$gl_absolute_header_sed"`
10872 gl_header
=$gl_cv_absolute_stdint_h
10873 gl_cv_next_stdint_h
='"'$gl_header'"'
10875 gl_cv_next_stdint_h
='<'stdint.h
'>'
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10881 $as_echo "$gl_cv_next_stdint_h" >&6; }
10883 NEXT_STDINT_H
=$gl_cv_next_stdint_h
10885 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
10886 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10887 gl_next_as_first_directive
='<'stdint.h
'>'
10889 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10890 gl_next_as_first_directive
=$gl_cv_next_stdint_h
10892 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
10897 if test $ac_cv_header_stdint_h = yes; then
10904 if test $ac_cv_header_stdint_h = yes; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10906 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10907 if ${gl_cv_header_working_stdint_h+:} false
; then :
10908 $as_echo_n "(cached) " >&6
10910 gl_cv_header_working_stdint_h
=no
10911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10915 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10916 #define __STDC_CONSTANT_MACROS 1
10917 #define __STDC_LIMIT_MACROS 1
10918 #include <stdint.h>
10919 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10920 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10921 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10925 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10926 included before <wchar.h>. */
10927 #include <stddef.h>
10928 #include <signal.h>
10930 # include <stdio.h>
10932 # include <wchar.h>
10937 int8_t a1 = INT8_MAX;
10938 int8_t a1min = INT8_MIN;
10941 int16_t a2 = INT16_MAX;
10942 int16_t a2min = INT16_MIN;
10945 int32_t a3 = INT32_MAX;
10946 int32_t a3min = INT32_MIN;
10949 int64_t a4 = INT64_MAX;
10950 int64_t a4min = INT64_MIN;
10953 uint8_t b1 = UINT8_MAX;
10955 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10958 uint16_t b2 = UINT16_MAX;
10961 uint32_t b3 = UINT32_MAX;
10964 uint64_t b4 = UINT64_MAX;
10966 int_least8_t c1 = INT8_C (0x7f);
10967 int_least8_t c1max = INT_LEAST8_MAX;
10968 int_least8_t c1min = INT_LEAST8_MIN;
10969 int_least16_t c2 = INT16_C (0x7fff);
10970 int_least16_t c2max = INT_LEAST16_MAX;
10971 int_least16_t c2min = INT_LEAST16_MIN;
10972 int_least32_t c3 = INT32_C (0x7fffffff);
10973 int_least32_t c3max = INT_LEAST32_MAX;
10974 int_least32_t c3min = INT_LEAST32_MIN;
10975 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10976 int_least64_t c4max = INT_LEAST64_MAX;
10977 int_least64_t c4min = INT_LEAST64_MIN;
10978 uint_least8_t d1 = UINT8_C (0xff);
10979 uint_least8_t d1max = UINT_LEAST8_MAX;
10980 uint_least16_t d2 = UINT16_C (0xffff);
10981 uint_least16_t d2max = UINT_LEAST16_MAX;
10982 uint_least32_t d3 = UINT32_C (0xffffffff);
10983 uint_least32_t d3max = UINT_LEAST32_MAX;
10984 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10985 uint_least64_t d4max = UINT_LEAST64_MAX;
10986 int_fast8_t e1 = INT_FAST8_MAX;
10987 int_fast8_t e1min = INT_FAST8_MIN;
10988 int_fast16_t e2 = INT_FAST16_MAX;
10989 int_fast16_t e2min = INT_FAST16_MIN;
10990 int_fast32_t e3 = INT_FAST32_MAX;
10991 int_fast32_t e3min = INT_FAST32_MIN;
10992 int_fast64_t e4 = INT_FAST64_MAX;
10993 int_fast64_t e4min = INT_FAST64_MIN;
10994 uint_fast8_t f1 = UINT_FAST8_MAX;
10995 uint_fast16_t f2 = UINT_FAST16_MAX;
10996 uint_fast32_t f3 = UINT_FAST32_MAX;
10997 uint_fast64_t f4 = UINT_FAST64_MAX;
10999 intptr_t g = INTPTR_MAX;
11000 intptr_t gmin = INTPTR_MIN;
11003 uintptr_t h = UINTPTR_MAX;
11005 intmax_t i = INTMAX_MAX;
11006 uintmax_t j = UINTMAX_MAX;
11008 /* Check that SIZE_MAX has the correct type, if possible. */
11009 #if 201112 <= __STDC_VERSION__
11010 int k = _Generic (SIZE_MAX, size_t: 0);
11011 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
11012 || (0x5110 <= __SUNPRO_C && !__STDC__))
11014 extern __typeof__ (SIZE_MAX) k;
11017 #include <limits.h> /* for CHAR_BIT */
11018 #define TYPE_MINIMUM(t) \
11019 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
11020 #define TYPE_MAXIMUM(t) \
11021 ((t) ((t) 0 < (t) -1 \
11023 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
11026 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
11027 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
11029 /* Detect bug in FreeBSD 6.0 / ia64. */
11030 int check_SIG_ATOMIC:
11031 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
11032 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
11034 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
11036 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
11037 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
11039 /* Detect bug in mingw. */
11041 WINT_MIN == TYPE_MINIMUM (wint_t)
11042 && WINT_MAX == TYPE_MAXIMUM (wint_t)
11045 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
11047 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11048 int check_UINT16_C:
11049 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11051 /* Detect bugs in OpenBSD 3.9 stdint.h. */
11053 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11056 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11059 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11062 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11064 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11065 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11066 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11067 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11068 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11069 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11070 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11071 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11072 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11073 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11074 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
11085 if ac_fn_c_try_compile
"$LINENO"; then :
11086 if test "$cross_compiling" = yes; then :
11087 gl_cv_header_working_stdint_h
=yes
11090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11094 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11095 #define __STDC_CONSTANT_MACROS 1
11096 #define __STDC_LIMIT_MACROS 1
11097 #include <stdint.h>
11100 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11101 included before <wchar.h>. */
11102 #include <stddef.h>
11103 #include <signal.h>
11105 # include <stdio.h>
11107 # include <wchar.h>
11112 #include <string.h>
11113 #define MVAL(macro) MVAL1(macro)
11114 #define MVAL1(expression) #expression
11115 static const char *macro_values[] =
11149 for (mv = macro_values; *mv != NULL; mv++)
11151 const char *value = *mv;
11152 /* Test whether it looks like a cast expression. */
11153 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
11154 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
11155 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
11156 || strncmp (value, "((int)"/*)*/, 6) == 0
11157 || strncmp (value, "((signed short)"/*)*/, 15) == 0
11158 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
11159 return mv - macro_values + 1;
11167 if ac_fn_c_try_run
"$LINENO"; then :
11168 gl_cv_header_working_stdint_h
=yes
11170 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11171 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
11180 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
11183 HAVE_C99_STDINT_H
=0
11184 HAVE_SYS_BITYPES_H
=0
11185 HAVE_SYS_INTTYPES_H
=0
11187 if test "$gl_cv_header_working_stdint_h" = yes; then
11188 HAVE_C99_STDINT_H
=1
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
11190 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
11191 if ${gl_cv_header_stdint_predates_cxx11_h+:} false
; then :
11192 $as_echo_n "(cached) " >&6
11194 gl_cv_header_stdint_predates_cxx11_h
=yes
11195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11199 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11200 #include <stdint.h>
11203 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11204 included before <wchar.h>. */
11205 #include <stddef.h>
11206 #include <signal.h>
11208 # include <stdio.h>
11210 # include <wchar.h>
11214 intmax_t im = INTMAX_MAX;
11215 int32_t i32 = INT32_C (0x7fffffff);
11225 if ac_fn_c_try_compile
"$LINENO"; then :
11226 gl_cv_header_stdint_predates_cxx11_h
=no
11228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
11231 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
11233 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
11235 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
11238 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
11242 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
11243 if ${gl_cv_header_stdint_width+:} false
; then :
11244 $as_echo_n "(cached) " >&6
11246 gl_cv_header_stdint_width
=no
11247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11250 /* Work if build is not clean. */
11251 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
11252 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11253 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11255 #include <stdint.h>
11257 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11258 included before <wchar.h>. */
11259 #include <stddef.h>
11260 #include <signal.h>
11262 # include <stdio.h>
11264 # include <wchar.h>
11267 int iw = UINTMAX_WIDTH;
11277 if ac_fn_c_try_compile
"$LINENO"; then :
11278 gl_cv_header_stdint_width
=yes
11280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
11283 $as_echo "$gl_cv_header_stdint_width" >&6; }
11284 if test "$gl_cv_header_stdint_width" = yes; then
11288 for ac_header
in sys
/inttypes.h sys
/bitypes.h
11290 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11291 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11292 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11293 cat >>confdefs.h
<<_ACEOF
11294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11301 if test $ac_cv_header_sys_inttypes_h = yes; then
11302 HAVE_SYS_INTTYPES_H
=1
11304 if test $ac_cv_header_sys_bitypes_h = yes; then
11305 HAVE_SYS_BITYPES_H
=1
11309 if test $APPLE_UNIVERSAL_BUILD = 0; then
11312 for gltype
in ptrdiff_t size_t
; do
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11314 $as_echo_n "checking for bit size of $gltype... " >&6; }
11315 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11316 $as_echo_n "(cached) " >&6
11318 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11319 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11320 included before <wchar.h>. */
11321 #include <stddef.h>
11322 #include <signal.h>
11324 # include <stdio.h>
11326 # include <wchar.h>
11329 #include <limits.h>"; then :
11335 eval gl_cv_bitsizeof_
${gltype}=\
$result
11338 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11340 $as_echo "$ac_res" >&6; }
11341 eval result
=\
$gl_cv_bitsizeof_${gltype}
11342 if test $result = unknown
; then
11345 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11346 cat >>confdefs.h
<<_ACEOF
11347 #define BITSIZEOF_${GLTYPE} $result
11350 eval BITSIZEOF_
${GLTYPE}=\
$result
11357 for gltype
in sig_atomic_t wchar_t wint_t
; do
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11359 $as_echo_n "checking for bit size of $gltype... " >&6; }
11360 if eval \
${gl_cv_bitsizeof_${gltype}+:} false
; then :
11361 $as_echo_n "(cached) " >&6
11363 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11364 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11365 included before <wchar.h>. */
11366 #include <stddef.h>
11367 #include <signal.h>
11369 # include <stdio.h>
11371 # include <wchar.h>
11374 #include <limits.h>"; then :
11380 eval gl_cv_bitsizeof_
${gltype}=\
$result
11383 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11385 $as_echo "$ac_res" >&6; }
11386 eval result
=\
$gl_cv_bitsizeof_${gltype}
11387 if test $result = unknown
; then
11390 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11391 cat >>confdefs.h
<<_ACEOF
11392 #define BITSIZEOF_${GLTYPE} $result
11395 eval BITSIZEOF_
${GLTYPE}=\
$result
11401 for gltype
in sig_atomic_t wchar_t wint_t
; do
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11403 $as_echo_n "checking whether $gltype is signed... " >&6; }
11404 if eval \
${gl_cv_type_${gltype}_signed+:} false
; then :
11405 $as_echo_n "(cached) " >&6
11407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11410 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11411 included before <wchar.h>. */
11412 #include <stddef.h>
11413 #include <signal.h>
11415 # include <stdio.h>
11417 # include <wchar.h>
11420 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11429 if ac_fn_c_try_compile
"$LINENO"; then :
11434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11435 eval gl_cv_type_
${gltype}_signed
=\
$result
11438 eval ac_res
=\
$gl_cv_type_${gltype}_signed
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11440 $as_echo "$ac_res" >&6; }
11441 eval result
=\
$gl_cv_type_${gltype}_signed
11442 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11443 if test "$result" = yes; then
11444 cat >>confdefs.h
<<_ACEOF
11445 #define HAVE_SIGNED_${GLTYPE} 1
11448 eval HAVE_SIGNED_
${GLTYPE}=1
11450 eval HAVE_SIGNED_
${GLTYPE}=0
11455 gl_cv_type_ptrdiff_t_signed
=yes
11456 gl_cv_type_size_t_signed
=no
11457 if test $APPLE_UNIVERSAL_BUILD = 0; then
11460 for gltype
in ptrdiff_t size_t
; do
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11462 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11463 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11464 $as_echo_n "(cached) " >&6
11466 eval gl_cv_type_
${gltype}_suffix
=no
11467 eval result
=\
$gl_cv_type_${gltype}_signed
11468 if test "$result" = yes; then
11473 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11475 '') gltype1
='int';;
11476 l
) gltype1
='long int';;
11477 ll
) gltype1
='long long int';;
11478 i64
) gltype1
='__int64';;
11479 u
) gltype1
='unsigned int';;
11480 ul
) gltype1
='unsigned long int';;
11481 ull
) gltype1
='unsigned long long int';;
11482 ui64
)gltype1
='unsigned __int64';;
11484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11487 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11488 included before <wchar.h>. */
11489 #include <stddef.h>
11490 #include <signal.h>
11492 # include <stdio.h>
11494 # include <wchar.h>
11497 extern $gltype foo;
11498 extern $gltype1 foo;
11507 if ac_fn_c_try_compile
"$LINENO"; then :
11508 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11511 eval result
=\
$gl_cv_type_${gltype}_suffix
11512 test "$result" != no
&& break
11515 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11517 $as_echo "$ac_res" >&6; }
11518 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11519 eval result
=\
$gl_cv_type_${gltype}_suffix
11520 test "$result" = no
&& result
=
11521 eval ${GLTYPE}_SUFFIX
=\
$result
11522 cat >>confdefs.h
<<_ACEOF
11523 #define ${GLTYPE}_SUFFIX $result
11532 for gltype
in sig_atomic_t wchar_t wint_t
; do
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11534 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11535 if eval \
${gl_cv_type_${gltype}_suffix+:} false
; then :
11536 $as_echo_n "(cached) " >&6
11538 eval gl_cv_type_
${gltype}_suffix
=no
11539 eval result
=\
$gl_cv_type_${gltype}_signed
11540 if test "$result" = yes; then
11545 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
11547 '') gltype1
='int';;
11548 l
) gltype1
='long int';;
11549 ll
) gltype1
='long long int';;
11550 i64
) gltype1
='__int64';;
11551 u
) gltype1
='unsigned int';;
11552 ul
) gltype1
='unsigned long int';;
11553 ull
) gltype1
='unsigned long long int';;
11554 ui64
)gltype1
='unsigned __int64';;
11556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11559 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11560 included before <wchar.h>. */
11561 #include <stddef.h>
11562 #include <signal.h>
11564 # include <stdio.h>
11566 # include <wchar.h>
11569 extern $gltype foo;
11570 extern $gltype1 foo;
11579 if ac_fn_c_try_compile
"$LINENO"; then :
11580 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
11582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11583 eval result
=\
$gl_cv_type_${gltype}_suffix
11584 test "$result" != no
&& break
11587 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11589 $as_echo "$ac_res" >&6; }
11590 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11591 eval result
=\
$gl_cv_type_${gltype}_suffix
11592 test "$result" = no
&& result
=
11593 eval ${GLTYPE}_SUFFIX
=\
$result
11594 cat >>confdefs.h
<<_ACEOF
11595 #define ${GLTYPE}_SUFFIX $result
11602 if test $BITSIZEOF_WINT_T -lt 32; then
11603 BITSIZEOF_WINT_T
=32
11608 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
11610 if test -n "$LIMITS_H"; then
11611 GL_GENERATE_LIMITS_H_TRUE
=
11612 GL_GENERATE_LIMITS_H_FALSE
='#'
11614 GL_GENERATE_LIMITS_H_TRUE
='#'
11615 GL_GENERATE_LIMITS_H_FALSE
=
11623 if test -n "$STDINT_H"; then
11624 GL_GENERATE_STDINT_H_TRUE
=
11625 GL_GENERATE_STDINT_H_FALSE
='#'
11627 GL_GENERATE_STDINT_H_TRUE
='#'
11628 GL_GENERATE_STDINT_H_FALSE
=
11640 GNULIB_STRTOIMAX
=0;
11641 GNULIB_STRTOUMAX
=0;
11642 HAVE_DECL_IMAXABS
=1;
11643 HAVE_DECL_IMAXDIV
=1;
11644 HAVE_DECL_STRTOIMAX
=1;
11645 HAVE_DECL_STRTOUMAX
=1;
11646 REPLACE_STRTOIMAX
=0;
11647 REPLACE_STRTOUMAX
=0;
11648 INT32_MAX_LT_INTMAX_MAX
=1;
11649 INT64_MAX_EQ_LONG_MAX
='defined _LP64';
11650 PRI_MACROS_BROKEN
=0;
11651 PRIPTR_PREFIX
=__PRIPTR_PREFIX
;
11652 UINT32_MAX_LT_UINTMAX_MAX
=1;
11653 UINT64_MAX_EQ_ULONG_MAX
='defined _LP64';
11681 if test $gl_cv_have_include_next = yes; then
11682 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11685 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
11686 if ${gl_cv_next_inttypes_h+:} false
; then :
11687 $as_echo_n "(cached) " >&6
11690 if test $ac_cv_header_inttypes_h = yes; then
11695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11697 #include <inttypes.h>
11700 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
11701 *) gl_absname_cpp
="$ac_cpp" ;;
11706 gl_dirsep_regex
='[/\\]'
11709 gl_dirsep_regex
='\/'
11712 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
11713 gl_header_literal_regex
=`echo 'inttypes.h' \
11714 | sed -e "$gl_make_literal_regex_sed"`
11715 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11716 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11722 gl_cv_absolute_inttypes_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11723 sed -n "$gl_absolute_header_sed"`
11725 gl_header
=$gl_cv_absolute_inttypes_h
11726 gl_cv_next_inttypes_h
='"'$gl_header'"'
11728 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11734 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11736 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
11738 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
11739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11740 gl_next_as_first_directive
='<'inttypes.h
'>'
11742 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11743 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
11745 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
11754 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
11755 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11757 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11758 if eval \
${$as_gl_Symbol+:} false
; then :
11759 $as_echo_n "(cached) " >&6
11761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11763 #include <inttypes.h>
11774 if ac_fn_c_try_compile
"$LINENO"; then :
11775 eval "$as_gl_Symbol=yes"
11777 eval "$as_gl_Symbol=no"
11779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11781 eval ac_res
=\$
$as_gl_Symbol
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11783 $as_echo "$ac_res" >&6; }
11784 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
11785 cat >>confdefs.h
<<_ACEOF
11786 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11789 eval ac_cv_have_decl_
$gl_func=yes
11795 for ac_header
in inttypes.h
11797 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11798 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
11799 cat >>confdefs.h
<<_ACEOF
11800 #define HAVE_INTTYPES_H 1
11807 if test $ac_cv_header_inttypes_h = yes; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
11809 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
11810 if ${gt_cv_inttypes_pri_broken+:} false
; then :
11811 $as_echo_n "(cached) " >&6
11814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11817 #include <inttypes.h>
11830 if ac_fn_c_try_compile
"$LINENO"; then :
11831 gt_cv_inttypes_pri_broken
=no
11833 gt_cv_inttypes_pri_broken
=yes
11835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
11839 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11841 if test "$gt_cv_inttypes_pri_broken" = yes; then
11843 cat >>confdefs.h
<<_ACEOF
11844 #define PRI_MACROS_BROKEN 1
11847 PRI_MACROS_BROKEN
=1
11849 PRI_MACROS_BROKEN
=0
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
11855 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
11856 if ${gl_cv_cc_double_expbit0+:} false
; then :
11857 $as_echo_n "(cached) " >&6
11860 if test "$cross_compiling" = yes; then :
11862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11865 #if defined arm || defined __arm || defined __arm__
11870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11871 $EGREP "mixed_endianness" >/dev
/null
2>&1; then :
11872 gl_cv_cc_double_expbit0
="unknown"
11876 if ${ac_cv_c_bigendian+:} false
; then :
11877 $as_echo_n "(cached) " >&6
11879 ac_cv_c_bigendian
=unknown
11880 # See if we're dealing with a universal compiler.
11881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883 #ifndef __APPLE_CC__
11884 not a universal capable compiler
11889 if ac_fn_c_try_compile
"$LINENO"; then :
11891 # Check for potential -arch flags. It is not universal unless
11892 # there are at least two -arch flags with different values.
11895 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11896 if test -n "$ac_prev"; then
11898 i?
86 | x86_64 | ppc | ppc64
)
11899 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11902 ac_cv_c_bigendian
=universal
11908 elif test "x$ac_word" = "x-arch"; then
11913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11914 if test $ac_cv_c_bigendian = unknown
; then
11915 # See if sys/param.h defines the BYTE_ORDER macro.
11916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11917 /* end confdefs.h. */
11918 #include <sys/types.h>
11919 #include <sys/param.h>
11924 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11925 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11927 bogus endian macros
11934 if ac_fn_c_try_compile
"$LINENO"; then :
11935 # It does; now see whether it defined to BIG_ENDIAN or not.
11936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11938 #include <sys/types.h>
11939 #include <sys/param.h>
11944 #if BYTE_ORDER != BIG_ENDIAN
11952 if ac_fn_c_try_compile
"$LINENO"; then :
11953 ac_cv_c_bigendian
=yes
11955 ac_cv_c_bigendian
=no
11957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11961 if test $ac_cv_c_bigendian = unknown
; then
11962 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11965 #include <limits.h>
11970 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11971 bogus endian macros
11978 if ac_fn_c_try_compile
"$LINENO"; then :
11979 # It does; now see whether it defined to _BIG_ENDIAN or not.
11980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 #include <limits.h>
11987 #ifndef _BIG_ENDIAN
11995 if ac_fn_c_try_compile
"$LINENO"; then :
11996 ac_cv_c_bigendian
=yes
11998 ac_cv_c_bigendian
=no
12000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12004 if test $ac_cv_c_bigendian = unknown
; then
12005 # Compile a test program.
12006 if test "$cross_compiling" = yes; then :
12007 # Try to guess by grepping values from an object file.
12008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010 short int ascii_mm[] =
12011 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12012 short int ascii_ii[] =
12013 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12014 int use_ascii (int i) {
12015 return ascii_mm[i] + ascii_ii[i];
12017 short int ebcdic_ii[] =
12018 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12019 short int ebcdic_mm[] =
12020 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12021 int use_ebcdic (int i) {
12022 return ebcdic_mm[i] + ebcdic_ii[i];
12029 return use_ascii (foo) == use_ebcdic (foo);
12034 if ac_fn_c_try_compile
"$LINENO"; then :
12035 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12036 ac_cv_c_bigendian
=yes
12038 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12039 if test "$ac_cv_c_bigendian" = unknown
; then
12040 ac_cv_c_bigendian
=no
12042 # finding both strings is unlikely to happen, but who knows?
12043 ac_cv_c_bigendian
=unknown
12047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051 $ac_includes_default
12056 /* Are we little or big endian? From Harbison&Steele. */
12060 char c[sizeof (long int)];
12063 return u.c[sizeof (long int) - 1] == 1;
12069 if ac_fn_c_try_run
"$LINENO"; then :
12070 ac_cv_c_bigendian
=no
12072 ac_cv_c_bigendian
=yes
12074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12081 case $ac_cv_c_bigendian in #(
12083 gl_cv_cc_double_expbit0
="word 0 bit 20";; #(
12085 gl_cv_cc_double_expbit0
="word 1 bit 20" ;; #(
12088 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12092 gl_cv_cc_double_expbit0
="unknown" ;;
12101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h. */
12105 #include <stddef.h>
12107 #include <string.h>
12109 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12110 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
12111 static unsigned int ored_words[NWORDS];
12112 static unsigned int anded_words[NWORDS];
12113 static void add_to_ored_words (double x)
12117 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
12118 memset (&m, 0, sizeof (memory_double));
12120 for (i = 0; i < NWORDS; i++)
12122 ored_words[i] |= m.word[i];
12123 anded_words[i] &= m.word[i];
12129 FILE *fp = fopen ("conftest.out", "w");
12132 for (j = 0; j < NWORDS; j++)
12133 anded_words[j] = ~ (unsigned int) 0;
12134 add_to_ored_words (0.25);
12135 add_to_ored_words (0.5);
12136 add_to_ored_words (1.0);
12137 add_to_ored_words (2.0);
12138 add_to_ored_words (4.0);
12139 /* Remove bits that are common (e.g. if representation of the first mantissa
12140 bit is explicit). */
12141 for (j = 0; j < NWORDS; j++)
12142 ored_words[j] &= ~anded_words[j];
12143 /* Now find the nonzero word. */
12144 for (j = 0; j < NWORDS; j++)
12145 if (ored_words[j] != 0)
12150 for (i = j + 1; i < NWORDS; i++)
12151 if (ored_words[i] != 0)
12153 fprintf (fp, "unknown");
12154 return (fclose (fp) != 0);
12157 if ((ored_words[j] >> i) & 1)
12159 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12160 return (fclose (fp) != 0);
12163 fprintf (fp, "unknown");
12164 return (fclose (fp) != 0);
12168 if ac_fn_c_try_run
"$LINENO"; then :
12169 gl_cv_cc_double_expbit0
=`cat conftest.out`
12171 gl_cv_cc_double_expbit0
="unknown"
12173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
12181 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
12182 case "$gl_cv_cc_double_expbit0" in
12184 word
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12185 bit
=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
12187 cat >>confdefs.h
<<_ACEOF
12188 #define DBL_EXPBIT0_WORD $word
12192 cat >>confdefs.h
<<_ACEOF
12193 #define DBL_EXPBIT0_BIT $bit
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12201 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12202 if ${ac_cv_c_bigendian+:} false
; then :
12203 $as_echo_n "(cached) " >&6
12205 ac_cv_c_bigendian
=unknown
12206 # See if we're dealing with a universal compiler.
12207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h. */
12209 #ifndef __APPLE_CC__
12210 not a universal capable compiler
12215 if ac_fn_c_try_compile
"$LINENO"; then :
12217 # Check for potential -arch flags. It is not universal unless
12218 # there are at least two -arch flags with different values.
12221 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12222 if test -n "$ac_prev"; then
12224 i?
86 | x86_64 | ppc | ppc64
)
12225 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12228 ac_cv_c_bigendian
=universal
12234 elif test "x$ac_word" = "x-arch"; then
12239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12240 if test $ac_cv_c_bigendian = unknown
; then
12241 # See if sys/param.h defines the BYTE_ORDER macro.
12242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h. */
12244 #include <sys/types.h>
12245 #include <sys/param.h>
12250 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12251 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12253 bogus endian macros
12260 if ac_fn_c_try_compile
"$LINENO"; then :
12261 # It does; now see whether it defined to BIG_ENDIAN or not.
12262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264 #include <sys/types.h>
12265 #include <sys/param.h>
12270 #if BYTE_ORDER != BIG_ENDIAN
12278 if ac_fn_c_try_compile
"$LINENO"; then :
12279 ac_cv_c_bigendian
=yes
12281 ac_cv_c_bigendian
=no
12283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12287 if test $ac_cv_c_bigendian = unknown
; then
12288 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12291 #include <limits.h>
12296 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12297 bogus endian macros
12304 if ac_fn_c_try_compile
"$LINENO"; then :
12305 # It does; now see whether it defined to _BIG_ENDIAN or not.
12306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308 #include <limits.h>
12313 #ifndef _BIG_ENDIAN
12321 if ac_fn_c_try_compile
"$LINENO"; then :
12322 ac_cv_c_bigendian
=yes
12324 ac_cv_c_bigendian
=no
12326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12330 if test $ac_cv_c_bigendian = unknown
; then
12331 # Compile a test program.
12332 if test "$cross_compiling" = yes; then :
12333 # Try to guess by grepping values from an object file.
12334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336 short int ascii_mm[] =
12337 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12338 short int ascii_ii[] =
12339 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12340 int use_ascii (int i) {
12341 return ascii_mm[i] + ascii_ii[i];
12343 short int ebcdic_ii[] =
12344 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12345 short int ebcdic_mm[] =
12346 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12347 int use_ebcdic (int i) {
12348 return ebcdic_mm[i] + ebcdic_ii[i];
12355 return use_ascii (foo) == use_ebcdic (foo);
12360 if ac_fn_c_try_compile
"$LINENO"; then :
12361 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12362 ac_cv_c_bigendian
=yes
12364 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12365 if test "$ac_cv_c_bigendian" = unknown
; then
12366 ac_cv_c_bigendian
=no
12368 # finding both strings is unlikely to happen, but who knows?
12369 ac_cv_c_bigendian
=unknown
12373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12377 $ac_includes_default
12382 /* Are we little or big endian? From Harbison&Steele. */
12386 char c[sizeof (long int)];
12389 return u.c[sizeof (long int) - 1] == 1;
12395 if ac_fn_c_try_run
"$LINENO"; then :
12396 ac_cv_c_bigendian
=no
12398 ac_cv_c_bigendian
=yes
12400 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12401 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12407 $as_echo "$ac_cv_c_bigendian" >&6; }
12408 case $ac_cv_c_bigendian in #(
12410 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12416 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12420 as_fn_error $?
"unknown endianness
12421 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12427 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12428 if ${am_cv_langinfo_codeset+:} false
; then :
12429 $as_echo_n "(cached) " >&6
12431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433 #include <langinfo.h>
12437 char* cs = nl_langinfo(CODESET); return !cs;
12442 if ac_fn_c_try_link
"$LINENO"; then :
12443 am_cv_langinfo_codeset
=yes
12445 am_cv_langinfo_codeset
=no
12447 rm -f core conftest.err conftest.
$ac_objext \
12448 conftest
$ac_exeext conftest.
$ac_ext
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12452 $as_echo "$am_cv_langinfo_codeset" >&6; }
12453 if test $am_cv_langinfo_codeset = yes; then
12455 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12460 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12461 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
12467 cat >>confdefs.h
<<_ACEOF
12468 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
12474 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
12475 if ${ac_cv_gnu_library_2_1+:} false
; then :
12476 $as_echo_n "(cached) " >&6
12478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12481 #include <features.h>
12482 #ifdef __GNU_LIBRARY__
12483 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12493 $EGREP "Lucky" >/dev
/null
2>&1; then :
12494 ac_cv_gnu_library_2_1
=yes
12496 ac_cv_gnu_library_2_1
=no
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12504 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12506 GLIBC21
="$ac_cv_gnu_library_2_1"
12510 if test "X$prefix" = "XNONE"; then
12511 acl_final_prefix
="$ac_default_prefix"
12513 acl_final_prefix
="$prefix"
12515 if test "X$exec_prefix" = "XNONE"; then
12516 acl_final_exec_prefix
='${prefix}'
12518 acl_final_exec_prefix
="$exec_prefix"
12520 acl_save_prefix
="$prefix"
12521 prefix
="$acl_final_prefix"
12522 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
12523 prefix
="$acl_save_prefix"
12527 # Check whether --with-gnu-ld was given.
12528 if test "${with_gnu_ld+set}" = set; then :
12529 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12534 # Prepare PATH_SEPARATOR.
12535 # The user is always right.
12536 if test "${PATH_SEPARATOR+set}" != set; then
12537 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12538 # contains only /bin. Note that ksh looks also at the FPATH variable,
12539 # so we have to set that as well for the test.
12541 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
12542 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
12543 || PATH_SEPARATOR
=';'
12548 if test "$GCC" = yes; then
12549 # Check if gcc -print-prog-name=ld gives a path.
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12551 $as_echo_n "checking for ld used by $CC... " >&6; }
12554 # gcc leaves a trailing carriage return which upsets mingw
12555 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12557 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12560 # Accept absolute paths.
12562 re_direlt
='/[^/][^/]*/\.\./'
12563 # Canonicalize the pathname of ld
12564 ac_prog
=`echo "$ac_prog"| sed 's%\\\\%/%g'`
12565 while echo "$ac_prog" |
grep "$re_direlt" > /dev
/null
2>&1; do
12566 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
12568 test -z "$LD" && LD
="$ac_prog"
12571 # If it fails, then pretend we aren't using GCC.
12575 # If it is relative, then search for the first ld in PATH.
12576 with_gnu_ld
=unknown
12579 elif test "$with_gnu_ld" = yes; then
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12581 $as_echo_n "checking for GNU ld... " >&6; }
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12584 $as_echo_n "checking for non-GNU ld... " >&6; }
12586 if ${acl_cv_path_LD+:} false
; then :
12587 $as_echo_n "(cached) " >&6
12589 if test -z "$LD"; then
12590 acl_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12591 for ac_dir
in $PATH; do
12592 IFS
="$acl_save_ifs"
12593 test -z "$ac_dir" && ac_dir
=.
12594 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12595 acl_cv_path_LD
="$ac_dir/$ac_prog"
12596 # Check to see if the program is GNU ld. I'd rather use --version,
12597 # but apparently some variants of GNU ld only accept -v.
12598 # Break only if it was the GNU/non-GNU ld that we prefer.
12599 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
12600 *GNU
* |
*'with BFD'*)
12601 test "$with_gnu_ld" != no
&& break
12604 test "$with_gnu_ld" != yes && break
12609 IFS
="$acl_save_ifs"
12611 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
12615 LD
="$acl_cv_path_LD"
12616 if test -n "$LD"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12618 $as_echo "$LD" >&6; }
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12623 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12625 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12626 if ${acl_cv_prog_gnu_ld+:} false
; then :
12627 $as_echo_n "(cached) " >&6
12629 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12630 case `$LD -v 2>&1 </dev/null` in
12631 *GNU
* |
*'with BFD'*)
12632 acl_cv_prog_gnu_ld
=yes
12635 acl_cv_prog_gnu_ld
=no
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12640 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12641 with_gnu_ld
=$acl_cv_prog_gnu_ld
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12647 $as_echo_n "checking for shared library run path origin... " >&6; }
12648 if ${acl_cv_rpath+:} false
; then :
12649 $as_echo_n "(cached) " >&6
12652 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
12653 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12655 rm -f .
/conftest.sh
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12660 $as_echo "$acl_cv_rpath" >&6; }
12662 acl_libext
="$acl_cv_libext"
12663 acl_shlibext
="$acl_cv_shlibext"
12664 acl_libname_spec
="$acl_cv_libname_spec"
12665 acl_library_names_spec
="$acl_cv_library_names_spec"
12666 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
12667 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
12668 acl_hardcode_direct
="$acl_cv_hardcode_direct"
12669 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
12670 # Check whether --enable-rpath was given.
12671 if test "${enable_rpath+set}" = set; then :
12672 enableval
=$enable_rpath; :
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12685 $as_echo_n "checking for 64-bit host... " >&6; }
12686 if ${gl_cv_solaris_64bit+:} false
; then :
12687 $as_echo_n "(cached) " >&6
12689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12698 $EGREP "sixtyfour bits" >/dev
/null
2>&1; then :
12699 gl_cv_solaris_64bit
=yes
12701 gl_cv_solaris_64bit
=no
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12708 $as_echo "$gl_cv_solaris_64bit" >&6; }
12709 if test $gl_cv_solaris_64bit = yes; then
12710 acl_libdirstem
=lib
/64
12711 case "$host_cpu" in
12712 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
12713 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
12718 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12719 if test -n "$searchpath"; then
12720 acl_save_IFS
="${IFS= }"; IFS
=":"
12721 for searchdir
in $searchpath; do
12722 if test -d "$searchdir"; then
12723 case "$searchdir" in
12724 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
12726 # Better ignore directories of this form. They are misleading.
12728 *) searchdir
=`cd "$searchdir" && pwd`
12729 case "$searchdir" in
12730 */lib64
) acl_libdirstem
=lib64
;;
12735 IFS
="$acl_save_IFS"
12739 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
12743 gl_threads_api
=none
12748 if test "$gl_use_threads" != no
; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
12750 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
12751 if ${gl_cv_have_weak+:} false
; then :
12752 $as_echo_n "(cached) " >&6
12755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757 extern void xyzzy ();
12767 if ac_fn_c_try_link
"$LINENO"; then :
12768 gl_cv_have_weak
=maybe
12770 rm -f core conftest.err conftest.
$ac_objext \
12771 conftest
$ac_exeext conftest.
$ac_ext
12772 if test $gl_cv_have_weak = maybe
; then
12773 if test "$cross_compiling" = yes; then :
12774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12777 Extensible Linking Format
12781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12782 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
12783 gl_cv_have_weak
="guessing yes"
12785 gl_cv_have_weak
="guessing no"
12791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12798 return (fputs == NULL);
12801 if ac_fn_c_try_run
"$LINENO"; then :
12802 gl_cv_have_weak
=yes
12806 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12807 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
12814 $as_echo "$gl_cv_have_weak" >&6; }
12815 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
12816 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
12817 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
12818 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12819 if test "x$ac_cv_header_pthread_h" = xyes
; then :
12820 gl_have_pthread_h
=yes
12822 gl_have_pthread_h
=no
12826 if test "$gl_have_pthread_h" = yes; then
12827 # Other possible tests:
12828 # -lpthreads (FSU threads, PCthreads)
12831 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
12832 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
12833 # the second one only in libpthread, and lock.c needs it.
12835 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
12836 # needs -pthread for some reason. See:
12837 # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
12839 for gl_pthread
in '' '-pthread'; do
12840 LIBS
="$LIBS $gl_pthread"
12841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12843 #include <pthread.h>
12845 pthread_mutexattr_t ma;
12850 pthread_mutex_lock (&m);
12851 pthread_mutexattr_init (&ma);
12856 if ac_fn_c_try_link
"$LINENO"; then :
12857 gl_have_pthread
=yes
12858 LIBTHREAD
=$gl_pthread LTLIBTHREAD
=$gl_pthread
12859 LIBMULTITHREAD
=$gl_pthread LTLIBMULTITHREAD
=$gl_pthread
12861 rm -f core conftest.err conftest.
$ac_objext \
12862 conftest
$ac_exeext conftest.
$ac_ext
12864 test -n "$gl_have_pthread" && break
12867 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
12868 # since it is defined as a macro on OSF/1.)
12869 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
12870 # The program links fine without libpthread. But it may actually
12871 # need to link with libpthread in order to create multiple threads.
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
12873 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
12874 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
12875 $as_echo_n "(cached) " >&6
12877 ac_check_lib_save_LIBS
=$LIBS
12878 LIBS
="-lpthread $LIBS"
12879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12888 char pthread_kill ();
12892 return pthread_kill ();
12897 if ac_fn_c_try_link
"$LINENO"; then :
12898 ac_cv_lib_pthread_pthread_kill
=yes
12900 ac_cv_lib_pthread_pthread_kill
=no
12902 rm -f core conftest.err conftest.
$ac_objext \
12903 conftest
$ac_exeext conftest.
$ac_ext
12904 LIBS
=$ac_check_lib_save_LIBS
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
12907 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
12908 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
12909 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
12910 # On Solaris and HP-UX, most pthread functions exist also in libc.
12911 # Therefore pthread_in_use() needs to actually try to create a
12912 # thread: pthread_create from libc will fail, whereas
12913 # pthread_create will actually create a thread.
12917 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
12923 elif test -z "$gl_have_pthread"; then
12924 # Some library is needed. Try libpthread and libc_r.
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
12926 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
12927 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
12928 $as_echo_n "(cached) " >&6
12930 ac_check_lib_save_LIBS
=$LIBS
12931 LIBS
="-lpthread $LIBS"
12932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12933 /* end confdefs.h. */
12935 /* Override any GCC internal prototype to avoid an error.
12936 Use char because int might match the return type of a GCC
12937 builtin and then its argument prototype would still apply. */
12941 char pthread_kill ();
12945 return pthread_kill ();
12950 if ac_fn_c_try_link
"$LINENO"; then :
12951 ac_cv_lib_pthread_pthread_kill
=yes
12953 ac_cv_lib_pthread_pthread_kill
=no
12955 rm -f core conftest.err conftest.
$ac_objext \
12956 conftest
$ac_exeext conftest.
$ac_ext
12957 LIBS
=$ac_check_lib_save_LIBS
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
12960 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
12961 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
12962 gl_have_pthread
=yes
12963 LIBTHREAD
=-lpthread LTLIBTHREAD
=-lpthread
12964 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
12967 if test -z "$gl_have_pthread"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
12970 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
12971 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
12972 $as_echo_n "(cached) " >&6
12974 ac_check_lib_save_LIBS
=$LIBS
12976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12979 /* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12985 char pthread_kill ();
12989 return pthread_kill ();
12994 if ac_fn_c_try_link
"$LINENO"; then :
12995 ac_cv_lib_c_r_pthread_kill
=yes
12997 ac_cv_lib_c_r_pthread_kill
=no
12999 rm -f core conftest.err conftest.
$ac_objext \
13000 conftest
$ac_exeext conftest.
$ac_ext
13001 LIBS
=$ac_check_lib_save_LIBS
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
13004 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
13005 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
13006 gl_have_pthread
=yes
13007 LIBTHREAD
=-lc_r LTLIBTHREAD
=-lc_r
13008 LIBMULTITHREAD
=-lc_r LTLIBMULTITHREAD
=-lc_r
13013 if test -n "$gl_have_pthread"; then
13014 gl_threads_api
=posix
13016 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
13018 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
13019 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13021 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
13030 if test -z "$gl_have_pthread"; then
13031 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = solaris
; then
13032 gl_have_solaristhread
=
13033 gl_save_LIBS
="$LIBS"
13034 LIBS
="$LIBS -lthread"
13035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13038 #include <thread.h>
13049 if ac_fn_c_try_link
"$LINENO"; then :
13050 gl_have_solaristhread
=yes
13052 rm -f core conftest.err conftest.
$ac_objext \
13053 conftest
$ac_exeext conftest.
$ac_ext
13054 LIBS
="$gl_save_LIBS"
13055 if test -n "$gl_have_solaristhread"; then
13056 gl_threads_api
=solaris
13058 LTLIBTHREAD
=-lthread
13059 LIBMULTITHREAD
="$LIBTHREAD"
13060 LTLIBMULTITHREAD
="$LTLIBTHREAD"
13062 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
13064 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13066 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
13074 if test "$gl_use_threads" = pth
; then
13075 gl_save_CPPFLAGS
="$CPPFLAGS"
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
13082 $as_echo_n "checking how to link with libpth... " >&6; }
13083 if ${ac_cv_libpth_libs+:} false
; then :
13084 $as_echo_n "(cached) " >&6
13096 acl_save_prefix
="$prefix"
13097 prefix
="$acl_final_prefix"
13098 acl_save_exec_prefix
="$exec_prefix"
13099 exec_prefix
="$acl_final_exec_prefix"
13101 eval additional_includedir
=\"$includedir\"
13102 eval additional_libdir
=\"$libdir\"
13104 exec_prefix
="$acl_save_exec_prefix"
13105 prefix
="$acl_save_prefix"
13108 # Check whether --with-libpth-prefix was given.
13109 if test "${with_libpth_prefix+set}" = set; then :
13110 withval
=$with_libpth_prefix;
13111 if test "X$withval" = "Xno"; then
13114 if test "X$withval" = "X"; then
13116 acl_save_prefix
="$prefix"
13117 prefix
="$acl_final_prefix"
13118 acl_save_exec_prefix
="$exec_prefix"
13119 exec_prefix
="$acl_final_exec_prefix"
13121 eval additional_includedir
=\"$includedir\"
13122 eval additional_libdir
=\"$libdir\"
13124 exec_prefix
="$acl_save_exec_prefix"
13125 prefix
="$acl_save_prefix"
13128 additional_includedir
="$withval/include"
13129 additional_libdir
="$withval/$acl_libdirstem"
13130 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13131 && ! test -d "$withval/$acl_libdirstem"; then
13132 additional_libdir
="$withval/$acl_libdirstem2"
13146 names_already_handled
=
13147 names_next_round
='pth '
13148 while test -n "$names_next_round"; do
13149 names_this_round
="$names_next_round"
13151 for name
in $names_this_round; do
13153 for n
in $names_already_handled; do
13154 if test "$n" = "$name"; then
13155 already_handled
=yes
13159 if test -z "$already_handled"; then
13160 names_already_handled
="$names_already_handled $name"
13161 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13162 eval value
=\"\
$HAVE_LIB$uppername\"
13163 if test -n "$value"; then
13164 if test "$value" = yes; then
13165 eval value
=\"\
$LIB$uppername\"
13166 test -z "$value" || LIBPTH
="${LIBPTH}${LIBPTH:+ }$value"
13167 eval value
=\"\
$LTLIB$uppername\"
13168 test -z "$value" || LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$value"
13177 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
13178 if test -n "$acl_shlibext"; then
13179 shrext
=".$acl_shlibext" # typically: shrext=.so
13183 if test $use_additional = yes; then
13184 dir
="$additional_libdir"
13185 if test -n "$acl_shlibext"; then
13186 if test -f "$dir/$libname$shrext"; then
13188 found_so
="$dir/$libname$shrext"
13190 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13191 ver
=`(cd "$dir" && \
13192 for f in "$libname$shrext".*; do echo "$f"; done \
13193 | sed -e "s,^$libname$shrext\\\\.,," \
13194 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13195 | sed 1q ) 2>/dev/null`
13196 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13198 found_so
="$dir/$libname$shrext.$ver"
13201 eval library_names
=\"$acl_library_names_spec\"
13202 for f
in $library_names; do
13203 if test -f "$dir/$f"; then
13212 if test "X$found_dir" = "X"; then
13213 if test -f "$dir/$libname.$acl_libext"; then
13215 found_a
="$dir/$libname.$acl_libext"
13218 if test "X$found_dir" != "X"; then
13219 if test -f "$dir/$libname.la"; then
13220 found_la
="$dir/$libname.la"
13224 if test "X$found_dir" = "X"; then
13225 for x
in $LDFLAGS $LTLIBPTH; do
13227 acl_save_prefix
="$prefix"
13228 prefix
="$acl_final_prefix"
13229 acl_save_exec_prefix
="$exec_prefix"
13230 exec_prefix
="$acl_final_exec_prefix"
13232 exec_prefix
="$acl_save_exec_prefix"
13233 prefix
="$acl_save_prefix"
13237 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13238 if test -n "$acl_shlibext"; then
13239 if test -f "$dir/$libname$shrext"; then
13241 found_so
="$dir/$libname$shrext"
13243 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13244 ver
=`(cd "$dir" && \
13245 for f in "$libname$shrext".*; do echo "$f"; done \
13246 | sed -e "s,^$libname$shrext\\\\.,," \
13247 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13248 | sed 1q ) 2>/dev/null`
13249 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13251 found_so
="$dir/$libname$shrext.$ver"
13254 eval library_names
=\"$acl_library_names_spec\"
13255 for f
in $library_names; do
13256 if test -f "$dir/$f"; then
13265 if test "X$found_dir" = "X"; then
13266 if test -f "$dir/$libname.$acl_libext"; then
13268 found_a
="$dir/$libname.$acl_libext"
13271 if test "X$found_dir" != "X"; then
13272 if test -f "$dir/$libname.la"; then
13273 found_la
="$dir/$libname.la"
13278 if test "X$found_dir" != "X"; then
13283 if test "X$found_dir" != "X"; then
13284 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
13285 if test "X$found_so" != "X"; then
13286 if test "$enable_rpath" = no \
13287 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
13288 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13289 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13292 for x
in $ltrpathdirs; do
13293 if test "X$x" = "X$found_dir"; then
13298 if test -z "$haveit"; then
13299 ltrpathdirs
="$ltrpathdirs $found_dir"
13301 if test "$acl_hardcode_direct" = yes; then
13302 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13304 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
13305 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13307 for x
in $rpathdirs; do
13308 if test "X$x" = "X$found_dir"; then
13313 if test -z "$haveit"; then
13314 rpathdirs
="$rpathdirs $found_dir"
13318 for x
in $LDFLAGS $LIBPTH; do
13320 acl_save_prefix
="$prefix"
13321 prefix
="$acl_final_prefix"
13322 acl_save_exec_prefix
="$exec_prefix"
13323 exec_prefix
="$acl_final_exec_prefix"
13325 exec_prefix
="$acl_save_exec_prefix"
13326 prefix
="$acl_save_prefix"
13328 if test "X$x" = "X-L$found_dir"; then
13333 if test -z "$haveit"; then
13334 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir"
13336 if test "$acl_hardcode_minus_L" != no
; then
13337 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
13339 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
13345 if test "X$found_a" != "X"; then
13346 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_a"
13348 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
13351 additional_includedir
=
13352 case "$found_dir" in
13353 */$acl_libdirstem |
*/$acl_libdirstem/)
13354 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13355 if test "$name" = 'pth'; then
13356 LIBPTH_PREFIX
="$basedir"
13358 additional_includedir
="$basedir/include"
13360 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
13361 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13362 if test "$name" = 'pth'; then
13363 LIBPTH_PREFIX
="$basedir"
13365 additional_includedir
="$basedir/include"
13368 if test "X$additional_includedir" != "X"; then
13369 if test "X$additional_includedir" != "X/usr/include"; then
13371 if test "X$additional_includedir" = "X/usr/local/include"; then
13372 if test -n "$GCC"; then
13374 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
13378 if test -z "$haveit"; then
13379 for x
in $CPPFLAGS $INCPTH; do
13381 acl_save_prefix
="$prefix"
13382 prefix
="$acl_final_prefix"
13383 acl_save_exec_prefix
="$exec_prefix"
13384 exec_prefix
="$acl_final_exec_prefix"
13386 exec_prefix
="$acl_save_exec_prefix"
13387 prefix
="$acl_save_prefix"
13389 if test "X$x" = "X-I$additional_includedir"; then
13394 if test -z "$haveit"; then
13395 if test -d "$additional_includedir"; then
13396 INCPTH
="${INCPTH}${INCPTH:+ }-I$additional_includedir"
13402 if test -n "$found_la"; then
13403 save_libdir
="$libdir"
13404 case "$found_la" in
13405 */* |
*\\*) .
"$found_la" ;;
13406 *) .
"./$found_la" ;;
13408 libdir
="$save_libdir"
13409 for dep
in $dependency_libs; do
13412 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13413 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13414 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13416 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13417 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13418 if test -n "$GCC"; then
13420 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
13424 if test -z "$haveit"; then
13426 for x
in $LDFLAGS $LIBPTH; do
13428 acl_save_prefix
="$prefix"
13429 prefix
="$acl_final_prefix"
13430 acl_save_exec_prefix
="$exec_prefix"
13431 exec_prefix
="$acl_final_exec_prefix"
13433 exec_prefix
="$acl_save_exec_prefix"
13434 prefix
="$acl_save_prefix"
13436 if test "X$x" = "X-L$additional_libdir"; then
13441 if test -z "$haveit"; then
13442 if test -d "$additional_libdir"; then
13443 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
13447 for x
in $LDFLAGS $LTLIBPTH; do
13449 acl_save_prefix
="$prefix"
13450 prefix
="$acl_final_prefix"
13451 acl_save_exec_prefix
="$exec_prefix"
13452 exec_prefix
="$acl_final_exec_prefix"
13454 exec_prefix
="$acl_save_exec_prefix"
13455 prefix
="$acl_save_prefix"
13457 if test "X$x" = "X-L$additional_libdir"; then
13462 if test -z "$haveit"; then
13463 if test -d "$additional_libdir"; then
13464 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
13471 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13472 if test "$enable_rpath" != no
; then
13474 for x
in $rpathdirs; do
13475 if test "X$x" = "X$dir"; then
13480 if test -z "$haveit"; then
13481 rpathdirs
="$rpathdirs $dir"
13484 for x
in $ltrpathdirs; do
13485 if test "X$x" = "X$dir"; then
13490 if test -z "$haveit"; then
13491 ltrpathdirs
="$ltrpathdirs $dir"
13496 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13499 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13502 LIBPTH
="${LIBPTH}${LIBPTH:+ }$dep"
13503 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$dep"
13509 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
13510 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
13516 if test "X$rpathdirs" != "X"; then
13517 if test -n "$acl_hardcode_libdir_separator"; then
13519 for found_dir
in $rpathdirs; do
13520 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13522 acl_save_libdir
="$libdir"
13524 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
13525 libdir
="$acl_save_libdir"
13526 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
13528 for found_dir
in $rpathdirs; do
13529 acl_save_libdir
="$libdir"
13530 libdir
="$found_dir"
13531 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
13532 libdir
="$acl_save_libdir"
13533 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
13537 if test "X$ltrpathdirs" != "X"; then
13538 for found_dir
in $ltrpathdirs; do
13539 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
13548 ac_cv_libpth_libs
="$LIBPTH"
13549 ac_cv_libpth_ltlibs
="$LTLIBPTH"
13550 ac_cv_libpth_cppflags
="$INCPTH"
13551 ac_cv_libpth_prefix
="$LIBPTH_PREFIX"
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
13555 $as_echo "$ac_cv_libpth_libs" >&6; }
13556 LIBPTH
="$ac_cv_libpth_libs"
13557 LTLIBPTH
="$ac_cv_libpth_ltlibs"
13558 INCPTH
="$ac_cv_libpth_cppflags"
13559 LIBPTH_PREFIX
="$ac_cv_libpth_prefix"
13561 for element
in $INCPTH; do
13563 for x
in $CPPFLAGS; do
13565 acl_save_prefix
="$prefix"
13566 prefix
="$acl_final_prefix"
13567 acl_save_exec_prefix
="$exec_prefix"
13568 exec_prefix
="$acl_final_exec_prefix"
13570 exec_prefix
="$acl_save_exec_prefix"
13571 prefix
="$acl_save_prefix"
13573 if test "X$x" = "X$element"; then
13578 if test -z "$haveit"; then
13579 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
13591 gl_save_LIBS
="$LIBS"
13592 LIBS
="$LIBS $LIBPTH"
13593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13604 if ac_fn_c_try_link
"$LINENO"; then :
13607 rm -f core conftest.err conftest.
$ac_objext \
13608 conftest
$ac_exeext conftest.
$ac_ext
13609 LIBS
="$gl_save_LIBS"
13610 if test -n "$gl_have_pth"; then
13612 LIBTHREAD
="$LIBPTH"
13613 LTLIBTHREAD
="$LTLIBPTH"
13614 LIBMULTITHREAD
="$LIBTHREAD"
13615 LTLIBMULTITHREAD
="$LTLIBTHREAD"
13617 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
13619 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
13620 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
13622 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
13629 CPPFLAGS
="$gl_save_CPPFLAGS"
13632 if test -z "$gl_have_pthread"; then
13633 case "$gl_use_threads" in
13634 yes | windows | win32
) # The 'win32' is for backward compatibility.
13635 if { case "$host_os" in
13640 gl_threads_api
=windows
13642 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
13650 $as_echo_n "checking for multithread API to use... " >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
13652 $as_echo "$gl_threads_api" >&6; }
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
13669 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
13670 if ${gl_cv_func_malloc_posix+:} false
; then :
13671 $as_echo_n "(cached) " >&6
13674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13680 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
13688 if ac_fn_c_try_compile
"$LINENO"; then :
13689 gl_cv_func_malloc_posix
=yes
13691 gl_cv_func_malloc_posix
=no
13693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
13697 $as_echo "$gl_cv_func_malloc_posix" >&6; }
13701 for ac_header
in stdlib.h
13703 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13704 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
13705 cat >>confdefs.h
<<_ACEOF
13706 #define HAVE_STDLIB_H 1
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13714 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13715 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
13716 $as_echo_n "(cached) " >&6
13718 if test "$cross_compiling" = yes; then :
13720 # Guess yes on platforms where we know the result.
13721 *-gnu* | freebsd
* | netbsd
* | openbsd
* \
13722 | hpux
* | solaris
* | cygwin
* | mingw
*)
13723 ac_cv_func_malloc_0_nonnull
=yes ;;
13724 # If we don't know, assume the worst.
13725 *) ac_cv_func_malloc_0_nonnull
=no
;;
13729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13731 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13732 # include <stdlib.h>
13740 char *p = malloc (0);
13749 if ac_fn_c_try_run
"$LINENO"; then :
13750 ac_cv_func_malloc_0_nonnull
=yes
13752 ac_cv_func_malloc_0_nonnull
=no
13754 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13755 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13761 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13762 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13763 gl_cv_func_malloc_0_nonnull
=1
13765 gl_cv_func_malloc_0_nonnull
=0
13769 cat >>confdefs.h
<<_ACEOF
13770 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
13785 GNULIB_MBSRTOWCS
=0;
13786 GNULIB_MBSNRTOWCS
=0;
13788 GNULIB_WCSRTOMBS
=0;
13789 GNULIB_WCSNRTOMBS
=0;
13806 GNULIB_WCSCASECMP
=0;
13807 GNULIB_WCSNCASECMP
=0;
13844 HAVE_WCSNCASECMP
=1;
13857 HAVE_DECL_WCWIDTH
=1;
13858 REPLACE_MBSTATE_T
=0;
13864 REPLACE_MBSRTOWCS
=0;
13865 REPLACE_MBSNRTOWCS
=0;
13867 REPLACE_WCSRTOMBS
=0;
13868 REPLACE_WCSNRTOMBS
=0;
13870 REPLACE_WCSWIDTH
=0;
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
13886 $as_echo_n "checking for a traditional japanese locale... " >&6; }
13887 if ${gt_cv_locale_ja+:} false
; then :
13888 $as_echo_n "(cached) " >&6
13891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13894 #include <locale.h>
13896 #if HAVE_LANGINFO_CODESET
13897 # include <langinfo.h>
13899 #include <stdlib.h>
13900 #include <string.h>
13906 /* Check whether the given locale name is recognized by the system. */
13907 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
13908 /* On native Windows, setlocale(category, "") looks at the system settings,
13909 not at the environment variables. Also, when an encoding suffix such
13910 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13911 category of the locale to "C". */
13912 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13913 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13916 if (setlocale (LC_ALL, "") == NULL) return 1;
13918 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
13919 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
13920 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
13921 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
13922 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
13923 some unit tests fail.
13924 On MirBSD 10, when an unsupported locale is specified, setlocale()
13925 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
13926 #if HAVE_LANGINFO_CODESET
13928 const char *cs = nl_langinfo (CODESET);
13929 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
13930 || strcmp (cs, "UTF-8") == 0)
13935 /* On Cygwin, avoid locale names without encoding suffix, because the
13936 locale_charset() function relies on the encoding suffix. Note that
13937 LC_ALL is set on the command line. */
13938 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13940 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
13941 on Cygwin 1.5.x. */
13942 if (MB_CUR_MAX == 1)
13944 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
13945 This excludes the UTF-8 encoding (except on MirBSD). */
13946 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
13947 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
13948 for (p = buf; *p != '\0'; p++)
13949 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
13955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13956 (eval $ac_link) 2>&5
13958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13959 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
13961 # Handle native Windows specially, because there setlocale() interprets
13962 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
13963 # "fr" or "fra" as "French" or "French_France.1252",
13964 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13965 # "ja" as "Japanese" or "Japanese_Japan.932",
13968 # Note that on native Windows, the Japanese locale is
13969 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
13970 # cannot use it here.
13971 gt_cv_locale_ja
=none
13974 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13975 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13976 # configure script would override the LC_ALL setting. Likewise for
13977 # LC_CTYPE, which is also set at the beginning of the configure script.
13978 # Test for the AIX locale name.
13979 if (LC_ALL
=ja_JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13980 gt_cv_locale_ja
=ja_JP
13982 # Test for the locale name with explicit encoding suffix.
13983 if (LC_ALL
=ja_JP.EUC-JP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13984 gt_cv_locale_ja
=ja_JP.EUC-JP
13986 # Test for the HP-UX, OSF/1, NetBSD locale name.
13987 if (LC_ALL
=ja_JP.eucJP LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13988 gt_cv_locale_ja
=ja_JP.eucJP
13990 # Test for the IRIX, FreeBSD locale name.
13991 if (LC_ALL
=ja_JP.EUC LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13992 gt_cv_locale_ja
=ja_JP.EUC
13994 # Test for the Solaris 7 locale name.
13995 if (LC_ALL
=ja LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
13998 # Special test for NetBSD 1.6.
13999 if test -f /usr
/share
/locale
/ja_JP.eucJP
/LC_CTYPE
; then
14000 gt_cv_locale_ja
=ja_JP.eucJP
14003 gt_cv_locale_ja
=none
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
14017 $as_echo "$gt_cv_locale_ja" >&6; }
14018 LOCALE_JA
=$gt_cv_locale_ja
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
14025 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14026 if ${gt_cv_locale_zh_CN+:} false
; then :
14027 $as_echo_n "(cached) " >&6
14030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14033 #include <locale.h>
14034 #include <stdlib.h>
14036 #if HAVE_LANGINFO_CODESET
14037 # include <langinfo.h>
14039 #include <stdlib.h>
14040 #include <string.h>
14046 /* Check whether the given locale name is recognized by the system. */
14047 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14048 /* On native Windows, setlocale(category, "") looks at the system settings,
14049 not at the environment variables. Also, when an encoding suffix such
14050 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14051 category of the locale to "C". */
14052 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14053 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14056 if (setlocale (LC_ALL, "") == NULL) return 1;
14058 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14059 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14060 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14061 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14062 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14063 some unit tests fail.
14064 On MirBSD 10, when an unsupported locale is specified, setlocale()
14065 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14066 #if HAVE_LANGINFO_CODESET
14068 const char *cs = nl_langinfo (CODESET);
14069 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14070 || strcmp (cs, "UTF-8") == 0)
14075 /* On Cygwin, avoid locale names without encoding suffix, because the
14076 locale_charset() function relies on the encoding suffix. Note that
14077 LC_ALL is set on the command line. */
14078 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14080 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14081 This excludes the UTF-8 encoding (except on MirBSD). */
14082 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14083 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14084 for (p = buf; *p != '\0'; p++)
14085 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14087 /* Check whether a typical GB18030 multibyte sequence is recognized as a
14088 single wide character. This excludes the GB2312 and GBK encodings. */
14089 if (mblen ("\203\062\332\066", 5) != 4)
14095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14096 (eval $ac_link) 2>&5
14098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14099 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14101 # Handle native Windows specially, because there setlocale() interprets
14102 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14103 # "fr" or "fra" as "French" or "French_France.1252",
14104 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14105 # "ja" as "Japanese" or "Japanese_Japan.932",
14108 # Test for the hypothetical native Windows locale name.
14109 if (LC_ALL
=Chinese_China
.54936 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14110 gt_cv_locale_zh_CN
=Chinese_China
.54936
14113 gt_cv_locale_zh_CN
=none
14117 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
14118 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
14119 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
14120 gt_cv_locale_zh_CN
=none
14123 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14124 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14125 # configure script would override the LC_ALL setting. Likewise for
14126 # LC_CTYPE, which is also set at the beginning of the configure script.
14127 # Test for the locale name without encoding suffix.
14128 if (LC_ALL
=zh_CN LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14129 gt_cv_locale_zh_CN
=zh_CN
14131 # Test for the locale name with explicit encoding suffix.
14132 if (LC_ALL
=zh_CN.GB18030 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14133 gt_cv_locale_zh_CN
=zh_CN.GB18030
14136 gt_cv_locale_zh_CN
=none
14142 # If there was a link error, due to mblen(), the system is so old that
14143 # it certainly doesn't have a chinese locale.
14144 gt_cv_locale_zh_CN
=none
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
14150 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14151 LOCALE_ZH_CN
=$gt_cv_locale_zh_CN
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
14157 $as_echo_n "checking for a french Unicode locale... " >&6; }
14158 if ${gt_cv_locale_fr_utf8+:} false
; then :
14159 $as_echo_n "(cached) " >&6
14162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14165 #include <locale.h>
14167 #if HAVE_LANGINFO_CODESET
14168 # include <langinfo.h>
14170 #include <stdlib.h>
14171 #include <string.h>
14175 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
14176 imitates locale dependent behaviour by looking at the environment
14177 variables, and all locales use the UTF-8 encoding. */
14178 #if !(defined __BEOS__ || defined __HAIKU__)
14179 /* Check whether the given locale name is recognized by the system. */
14180 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14181 /* On native Windows, setlocale(category, "") looks at the system settings,
14182 not at the environment variables. Also, when an encoding suffix such
14183 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14184 category of the locale to "C". */
14185 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14186 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14189 if (setlocale (LC_ALL, "") == NULL) return 1;
14191 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14192 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14193 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14194 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14195 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14196 some unit tests fail. */
14197 # if HAVE_LANGINFO_CODESET
14199 const char *cs = nl_langinfo (CODESET);
14200 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14205 /* On Cygwin, avoid locale names without encoding suffix, because the
14206 locale_charset() function relies on the encoding suffix. Note that
14207 LC_ALL is set on the command line. */
14208 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14210 /* Check whether in the abbreviation of the second month, the second
14211 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14212 two bytes long, with UTF-8 encoding. */
14213 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14214 if (strftime (buf, sizeof (buf), "%b", &t) < 4
14215 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
14218 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14219 /* Check whether the decimal separator is a comma.
14220 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14221 are nl_langinfo(RADIXCHAR) are both ".". */
14222 if (localeconv () ->decimal_point[0] != ',') return 1;
14228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14229 (eval $ac_link) 2>&5
14231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14232 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14234 # Handle native Windows specially, because there setlocale() interprets
14235 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14236 # "fr" or "fra" as "French" or "French_France.1252",
14237 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14238 # "ja" as "Japanese" or "Japanese_Japan.932",
14241 # Test for the hypothetical native Windows locale name.
14242 if (LC_ALL
=French_France
.65001 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14243 gt_cv_locale_fr_utf8
=French_France
.65001
14246 gt_cv_locale_fr_utf8
=none
14250 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14251 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14252 # configure script would override the LC_ALL setting. Likewise for
14253 # LC_CTYPE, which is also set at the beginning of the configure script.
14254 # Test for the usual locale name.
14255 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14256 gt_cv_locale_fr_utf8
=fr_FR
14258 # Test for the locale name with explicit encoding suffix.
14259 if (LC_ALL
=fr_FR.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14260 gt_cv_locale_fr_utf8
=fr_FR.UTF-8
14262 # Test for the Solaris 7 locale name.
14263 if (LC_ALL
=fr.UTF-8 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14264 gt_cv_locale_fr_utf8
=fr.UTF-8
14267 gt_cv_locale_fr_utf8
=none
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
14278 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
14279 LOCALE_FR_UTF8
=$gt_cv_locale_fr_utf8
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
14286 $as_echo_n "checking for a traditional french locale... " >&6; }
14287 if ${gt_cv_locale_fr+:} false
; then :
14288 $as_echo_n "(cached) " >&6
14291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14294 #include <locale.h>
14296 #if HAVE_LANGINFO_CODESET
14297 # include <langinfo.h>
14299 #include <stdlib.h>
14300 #include <string.h>
14304 /* Check whether the given locale name is recognized by the system. */
14305 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
14306 /* On native Windows, setlocale(category, "") looks at the system settings,
14307 not at the environment variables. Also, when an encoding suffix such
14308 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
14309 category of the locale to "C". */
14310 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
14311 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
14314 if (setlocale (LC_ALL, "") == NULL) return 1;
14316 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14317 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14318 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14319 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14320 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14321 some unit tests fail.
14322 On MirBSD 10, when an unsupported locale is specified, setlocale()
14323 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
14324 #if HAVE_LANGINFO_CODESET
14326 const char *cs = nl_langinfo (CODESET);
14327 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
14328 || strcmp (cs, "UTF-8") == 0)
14333 /* On Cygwin, avoid locale names without encoding suffix, because the
14334 locale_charset() function relies on the encoding suffix. Note that
14335 LC_ALL is set on the command line. */
14336 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14338 /* Check whether in the abbreviation of the second month, the second
14339 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
14340 one byte long. This excludes the UTF-8 encoding. */
14341 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14342 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
14343 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
14344 /* Check whether the decimal separator is a comma.
14345 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
14346 are nl_langinfo(RADIXCHAR) are both ".". */
14347 if (localeconv () ->decimal_point[0] != ',') return 1;
14353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14354 (eval $ac_link) 2>&5
14356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14357 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
14359 # Handle native Windows specially, because there setlocale() interprets
14360 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
14361 # "fr" or "fra" as "French" or "French_France.1252",
14362 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
14363 # "ja" as "Japanese" or "Japanese_Japan.932",
14366 # Test for the native Windows locale name.
14367 if (LC_ALL
=French_France
.1252 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14368 gt_cv_locale_fr
=French_France
.1252
14371 gt_cv_locale_fr
=none
14375 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14376 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
14377 # configure script would override the LC_ALL setting. Likewise for
14378 # LC_CTYPE, which is also set at the beginning of the configure script.
14379 # Test for the usual locale name.
14380 if (LC_ALL
=fr_FR LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14381 gt_cv_locale_fr
=fr_FR
14383 # Test for the locale name with explicit encoding suffix.
14384 if (LC_ALL
=fr_FR.ISO-8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14385 gt_cv_locale_fr
=fr_FR.ISO-8859-1
14387 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
14388 if (LC_ALL
=fr_FR.ISO8859-1 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14389 gt_cv_locale_fr
=fr_FR.ISO8859-1
14391 # Test for the HP-UX locale name.
14392 if (LC_ALL
=fr_FR.iso88591 LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14393 gt_cv_locale_fr
=fr_FR.iso88591
14395 # Test for the Solaris 7 locale name.
14396 if (LC_ALL
=fr LC_TIME
= LC_CTYPE
= .
/conftest
; exit) 2>/dev
/null
; then
14400 gt_cv_locale_fr
=none
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
14413 $as_echo "$gt_cv_locale_fr" >&6; }
14414 LOCALE_FR
=$gt_cv_locale_fr
14434 GNULIB_RAWMEMCHR
=0;
14437 GNULIB_STRCHRNUL
=0;
14445 GNULIB_STRCASESTR
=0;
14452 GNULIB_MBSCASECMP
=0;
14453 GNULIB_MBSNCASECMP
=0;
14454 GNULIB_MBSPCASECMP
=0;
14455 GNULIB_MBSCASESTR
=0;
14462 GNULIB_STRERROR_R
=0;
14463 GNULIB_STRSIGNAL
=0;
14464 GNULIB_STRVERSCMP
=0;
14469 HAVE_DECL_MEMMEM
=1;
14471 HAVE_DECL_MEMRCHR
=1;
14476 HAVE_DECL_STRDUP
=1;
14477 HAVE_DECL_STRNDUP
=1;
14478 HAVE_DECL_STRNLEN
=1;
14482 HAVE_DECL_STRTOK_R
=1;
14483 HAVE_DECL_STRERROR_R
=1;
14484 HAVE_DECL_STRSIGNAL
=1;
14491 REPLACE_STRCASESTR
=0;
14492 REPLACE_STRCHRNUL
=0;
14493 REPLACE_STRERROR
=0;
14494 REPLACE_STRERROR_R
=0;
14498 REPLACE_STRSIGNAL
=0;
14499 REPLACE_STRTOK_R
=0;
14500 UNDEFINE_STRTOK_R
=0;
14506 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
14507 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
14508 # irrelevant for anonymous mappings.
14509 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
14510 if test "x$ac_cv_func_mmap" = xyes
; then :
14517 # Try to allow MAP_ANONYMOUS.
14518 gl_have_mmap_anonymous
=no
14519 if test $gl_have_mmap = yes; then
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14521 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
14522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14525 #include <sys/mman.h>
14526 #ifdef MAP_ANONYMOUS
14527 I cannot identify this map
14531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14532 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14533 gl_have_mmap_anonymous
=yes
14537 if test $gl_have_mmap_anonymous != yes; then
14538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14541 #include <sys/mman.h>
14543 I cannot identify this map
14547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14548 $EGREP "I cannot identify this map" >/dev
/null
2>&1; then :
14550 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14552 gl_have_mmap_anonymous
=yes
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14558 $as_echo "$gl_have_mmap_anonymous" >&6; }
14559 if test $gl_have_mmap_anonymous = yes; then
14561 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14583 if test $HAVE_MEMCHR = 1; then
14584 # Detect platform-specific bugs in some versions of glibc:
14585 # memchr should not dereference anything with length 0
14586 # http://bugzilla.redhat.com/499689
14587 # memchr should not dereference overestimated length after a match
14588 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14589 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
14590 # Assume that memchr works on platforms that lack mprotect.
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14592 $as_echo_n "checking whether memchr works... " >&6; }
14593 if ${gl_cv_func_memchr_works+:} false
; then :
14594 $as_echo_n "(cached) " >&6
14596 if test "$cross_compiling" = yes; then :
14597 gl_cv_func_memchr_works
="guessing no"
14599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14602 #include <string.h>
14603 #if HAVE_SYS_MMAN_H
14604 # include <fcntl.h>
14605 # include <unistd.h>
14606 # include <sys/types.h>
14607 # include <sys/mman.h>
14609 # define MAP_FILE 0
14618 char *fence = NULL;
14619 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14620 # if HAVE_MAP_ANONYMOUS
14621 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14623 # else /* !HAVE_MAP_ANONYMOUS */
14624 const int flags = MAP_FILE | MAP_PRIVATE;
14625 int fd = open ("/dev/zero", O_RDONLY, 0666);
14629 int pagesize = getpagesize ();
14631 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14633 if (two_pages != (char *)(-1)
14634 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14635 fence = two_pages + pagesize;
14640 if (memchr (fence, 0, 0))
14642 strcpy (fence - 9, "12345678");
14643 if (memchr (fence - 9, 0, 79) != fence - 1)
14645 if (memchr (fence - 1, 0, 3) != fence - 1)
14654 if ac_fn_c_try_run
"$LINENO"; then :
14655 gl_cv_func_memchr_works
=yes
14657 gl_cv_func_memchr_works
=no
14659 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14660 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14665 $as_echo "$gl_cv_func_memchr_works" >&6; }
14666 if test "$gl_cv_func_memchr_works" != yes; then
14672 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
14673 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
14679 cat >>confdefs.h
<<_ACEOF
14680 #define HAVE_DECL_MEMMEM $ac_have_decl
14688 for ac_func
in memmem
14690 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
14691 if test "x$ac_cv_func_memmem" = xyes
; then :
14692 cat >>confdefs.h
<<_ACEOF
14693 #define HAVE_MEMMEM 1
14699 if test $ac_cv_func_memmem = yes; then
14711 if test $ac_cv_have_decl_memmem = no
; then
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
14715 $as_echo_n "checking whether memmem works... " >&6; }
14716 if ${gl_cv_func_memmem_works_always+:} false
; then :
14717 $as_echo_n "(cached) " >&6
14719 if test "$cross_compiling" = yes; then :
14720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14723 #ifdef __GNU_LIBRARY__
14724 #include <features.h>
14725 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
14726 || __GLIBC_MINOR__ > 12)) \
14727 || (__GLIBC__ > 2)) \
14728 || defined __UCLIBC__
14731 #elif defined __CYGWIN__
14732 #include <cygwin/version.h>
14733 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14742 $EGREP "Lucky user" >/dev
/null
2>&1; then :
14743 gl_cv_func_memmem_works_always
="guessing yes"
14745 gl_cv_func_memmem_works_always
="guessing no"
14751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14754 #include <string.h> /* for memmem */
14755 #define P "_EF_BF_BD"
14756 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14757 #define NEEDLE P P P P P
14764 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
14766 /* Check for empty needle behavior. */
14768 const char *haystack = "AAA";
14769 if (memmem (haystack, 3, NULL, 0) != haystack)
14778 if ac_fn_c_try_run
"$LINENO"; then :
14779 gl_cv_func_memmem_works_always
=yes
14781 gl_cv_func_memmem_works_always
=no
14783 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14784 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
14790 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
14791 case "$gl_cv_func_memmem_works_always" in
14801 ac_fn_c_check_decl
"$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
14802 if test "x$ac_cv_have_decl_memrchr" = xyes
; then :
14808 cat >>confdefs.h
<<_ACEOF
14809 #define HAVE_DECL_MEMRCHR $ac_have_decl
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
14824 $as_echo_n "checking for promoted mode_t type... " >&6; }
14825 if ${gl_cv_promoted_mode_t+:} false
; then :
14826 $as_echo_n "(cached) " >&6
14829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14831 #include <sys/types.h>
14835 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
14840 if ac_fn_c_try_compile
"$LINENO"; then :
14841 gl_cv_promoted_mode_t
='int'
14843 gl_cv_promoted_mode_t
='mode_t'
14845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
14849 $as_echo "$gl_cv_promoted_mode_t" >&6; }
14851 cat >>confdefs.h
<<_ACEOF
14852 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
14870 GNULIB_FPRINTF_POSIX
=0;
14886 GNULIB_OBSTACK_PRINTF
=0;
14887 GNULIB_OBSTACK_PRINTF_POSIX
=0;
14892 GNULIB_PRINTF_POSIX
=0;
14901 GNULIB_SPRINTF_POSIX
=0;
14902 GNULIB_STDIO_H_NONBLOCKING
=0;
14903 GNULIB_STDIO_H_SIGPIPE
=0;
14905 GNULIB_VASPRINTF
=0;
14910 GNULIB_VFPRINTF_POSIX
=0;
14912 GNULIB_VPRINTF_POSIX
=0;
14913 GNULIB_VSNPRINTF
=0;
14914 GNULIB_VSPRINTF_POSIX
=0;
14915 HAVE_DECL_FPURGE
=1;
14916 HAVE_DECL_FSEEKO
=1;
14917 HAVE_DECL_FTELLO
=1;
14918 HAVE_DECL_GETDELIM
=1;
14919 HAVE_DECL_GETLINE
=1;
14920 HAVE_DECL_OBSTACK_PRINTF
=1;
14921 HAVE_DECL_SNPRINTF
=1;
14922 HAVE_DECL_VSNPRINTF
=1;
14943 REPLACE_GETDELIM
=0;
14945 REPLACE_OBSTACK_PRINTF
=0;
14951 REPLACE_RENAMEAT
=0;
14952 REPLACE_SNPRINTF
=0;
14954 REPLACE_STDIO_READ_FUNCS
=0;
14955 REPLACE_STDIO_WRITE_FUNCS
=0;
14957 REPLACE_VASPRINTF
=0;
14958 REPLACE_VDPRINTF
=0;
14959 REPLACE_VFPRINTF
=0;
14961 REPLACE_VSNPRINTF
=0;
14962 REPLACE_VSPRINTF
=0;
14995 ac_fn_c_check_decl
"$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
14996 if test "x$ac_cv_have_decl_setenv" = xyes
; then :
15002 cat >>confdefs.h
<<_ACEOF
15003 #define HAVE_DECL_SETENV $ac_have_decl
15021 if test $ac_cv_have_decl_setenv = no
; then
15041 for ac_header
in search.h
15043 ac_fn_c_check_header_mongrel
"$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
15044 if test "x$ac_cv_header_search_h" = xyes
; then :
15045 cat >>confdefs.h
<<_ACEOF
15046 #define HAVE_SEARCH_H 1
15053 for ac_func
in tsearch
15055 ac_fn_c_check_func
"$LINENO" "tsearch" "ac_cv_func_tsearch"
15056 if test "x$ac_cv_func_tsearch" = xyes
; then :
15057 cat >>confdefs.h
<<_ACEOF
15058 #define HAVE_TSEARCH 1
15067 GNULIB_PTHREAD_SIGMASK
=0;
15069 GNULIB_SIGNAL_H_SIGPIPE
=0;
15070 GNULIB_SIGPROCMASK
=0;
15071 GNULIB_SIGACTION
=0;
15072 HAVE_POSIX_SIGNALBLOCKING
=1;
15073 HAVE_PTHREAD_SIGMASK
=1;
15078 HAVE_STRUCT_SIGACTION_SA_SIGACTION
=1;
15080 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=1;
15082 HAVE_SIGHANDLER_T
=1;
15083 REPLACE_PTHREAD_SIGMASK
=0;
15087 ac_fn_c_check_type
"$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
15088 #include <signal.h>
15089 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
15090 #include <sys/types.h>
15093 if test "x$ac_cv_type_sigset_t" = xyes
; then :
15095 cat >>confdefs.h
<<_ACEOF
15096 #define HAVE_SIGSET_T 1
15099 gl_cv_type_sigset_t
=yes
15101 gl_cv_type_sigset_t
=no
15104 if test $gl_cv_type_sigset_t != yes; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15109 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15110 if ${ac_cv_type_uid_t+:} false
; then :
15111 $as_echo_n "(cached) " >&6
15113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15115 #include <sys/types.h>
15118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15119 $EGREP "uid_t" >/dev
/null
2>&1; then :
15120 ac_cv_type_uid_t
=yes
15122 ac_cv_type_uid_t
=no
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15128 $as_echo "$ac_cv_type_uid_t" >&6; }
15129 if test $ac_cv_type_uid_t = no
; then
15131 $as_echo "#define uid_t int" >>confdefs.h
15134 $as_echo "#define gid_t int" >>confdefs.h
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15139 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15140 if ${ac_cv_header_stdbool_h+:} false
; then :
15141 $as_echo_n "(cached) " >&6
15143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h. */
15146 #include <stdbool.h>
15151 typedef _Bool Bool;
15153 "error: bool is not defined"
15156 "error: false is not defined"
15159 "error: false is not 0"
15162 "error: true is not defined"
15165 "error: true is not 1"
15169 #ifndef __bool_true_false_are_defined
15170 "error: __bool_true_false_are_defined is not defined"
15173 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
15175 char a[true == 1 ? 1 : -1];
15176 char b[false == 0 ? 1 : -1];
15177 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15178 char d[(bool) 0.5 == true ? 1 : -1];
15179 /* See body of main program for 'e'. */
15180 char f[(Bool) 0.0 == false ? 1 : -1];
15182 char h[sizeof (Bool)];
15183 char i[sizeof s.t];
15184 enum { j = false, k = true, l = false * true, m = true * 256 };
15185 /* The following fails for
15186 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15188 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15189 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15190 /* Catch a bug in an HP-UX C compiler. See
15191 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15192 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15203 *pq |= q; *pq |= ! q;
15204 *qq |= q; *qq |= ! q;
15205 /* Refer to every declared value, to avoid compiler optimizations. */
15206 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15207 + !m + !n + !o + !p + !q + !pq + !qq);
15213 if ac_fn_c_try_compile
"$LINENO"; then :
15214 ac_cv_header_stdbool_h
=yes
15216 ac_cv_header_stdbool_h
=no
15218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15221 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15222 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15223 if test "x$ac_cv_type__Bool" = xyes
; then :
15225 cat >>confdefs.h
<<_ACEOF
15226 #define HAVE__BOOL 1
15235 HAVE_MAX_ALIGN_T
=1;
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
15240 $as_echo_n "checking for wchar_t... " >&6; }
15241 if ${gt_cv_c_wchar_t+:} false
; then :
15242 $as_echo_n "(cached) " >&6
15244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15246 #include <stddef.h>
15247 wchar_t foo = (wchar_t)'\0';
15256 if ac_fn_c_try_compile
"$LINENO"; then :
15257 gt_cv_c_wchar_t
=yes
15261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
15264 $as_echo "$gt_cv_c_wchar_t" >&6; }
15265 if test $gt_cv_c_wchar_t = yes; then
15267 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
15277 ac_fn_c_check_decl
"$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
15278 if test "x$ac_cv_have_decl_strdup" = xyes
; then :
15284 cat >>confdefs.h
<<_ACEOF
15285 #define HAVE_DECL_STRDUP $ac_have_decl
15290 REPLACE_STRERROR_0
=0
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15292 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
15293 if ${gl_cv_func_strerror_0_works+:} false
; then :
15294 $as_echo_n "(cached) " >&6
15296 if test "$cross_compiling" = yes; then :
15298 # Guess yes on glibc systems.
15299 *-gnu*) gl_cv_func_strerror_0_works
="guessing yes" ;;
15300 # If we don't know, assume the worst.
15301 *) gl_cv_func_strerror_0_works
="guessing no" ;;
15305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307 #include <string.h>
15316 str = strerror (0);
15317 if (!*str) result |= 1;
15318 if (errno) result |= 2;
15319 if (strstr (str, "nknown") || strstr (str, "ndefined"))
15326 if ac_fn_c_try_run
"$LINENO"; then :
15327 gl_cv_func_strerror_0_works
=yes
15329 gl_cv_func_strerror_0_works
=no
15331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
15338 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
15339 case "$gl_cv_func_strerror_0_works" in
15342 REPLACE_STRERROR_0
=1
15344 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
15358 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15359 if test "x$ac_cv_func_strerror_r" = xyes
; then :
15363 if test $ac_cv_func_strerror_r = yes; then
15364 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
15366 $as_echo_n "checking for strerror_r with POSIX signature... " >&6; }
15367 if ${gl_cv_func_strerror_r_posix_signature+:} false
; then :
15368 $as_echo_n "(cached) " >&6
15370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15372 #include <string.h>
15373 int strerror_r (int, char *, size_t);
15383 if ac_fn_c_try_compile
"$LINENO"; then :
15384 gl_cv_func_strerror_r_posix_signature
=yes
15386 gl_cv_func_strerror_r_posix_signature
=no
15388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
15392 $as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; }
15393 if test $gl_cv_func_strerror_r_posix_signature = yes; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
15395 $as_echo_n "checking whether strerror_r works... " >&6; }
15396 if ${gl_cv_func_strerror_r_works+:} false
; then :
15397 $as_echo_n "(cached) " >&6
15399 if test "$cross_compiling" = yes; then :
15403 aix
*) gl_cv_func_strerror_r_works
="guessing no";;
15404 # Guess no on HP-UX.
15405 hpux
*) gl_cv_func_strerror_r_works
="guessing no";;
15406 # Guess no on BSD variants.
15407 *bsd
*) gl_cv_func_strerror_r_works
="guessing no";;
15408 # Guess yes otherwise.
15409 *) gl_cv_func_strerror_r_works
="guessing yes";;
15413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15416 #include <string.h>
15423 if (strerror_r (EACCES, buf, 0) < 0)
15426 if (strerror_r (EACCES, buf, sizeof buf) != 0)
15428 strcpy (buf, "Unknown");
15429 if (strerror_r (0, buf, sizeof buf) != 0)
15433 if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
15437 if (strerror_r (-3, buf, sizeof buf) < 0)
15449 if ac_fn_c_try_run
"$LINENO"; then :
15450 gl_cv_func_strerror_r_works
=yes
15452 gl_cv_func_strerror_r_works
=no
15454 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15455 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
15461 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
15470 if test $ac_cv_func___xpg_strerror_r = yes; then
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
15472 $as_echo_n "checking whether __xpg_strerror_r works... " >&6; }
15473 if ${gl_cv_func_strerror_r_works+:} false
; then :
15474 $as_echo_n "(cached) " >&6
15476 if test "$cross_compiling" = yes; then :
15477 gl_cv_func_strerror_r_works
="guessing no"
15480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15483 #include <string.h>
15488 int __xpg_strerror_r(int, char *, size_t);
15494 char buf[256] = "^";
15496 char *str = strerror (-1);
15497 strcpy (copy, str);
15498 if (__xpg_strerror_r (-2, buf, 1) == 0)
15502 __xpg_strerror_r (-2, buf, 256);
15503 if (strcmp (str, copy))
15511 if ac_fn_c_try_run
"$LINENO"; then :
15512 gl_cv_func_strerror_r_works
=yes
15514 gl_cv_func_strerror_r_works
=no
15516 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15517 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
15523 $as_echo "$gl_cv_func_strerror_r_works" >&6; }
15550 if test $gl_cv_have_include_next = yes; then
15551 gl_cv_next_string_h
='<'string.h
'>'
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15554 $as_echo_n "checking absolute name of <string.h>... " >&6; }
15555 if ${gl_cv_next_string_h+:} false
; then :
15556 $as_echo_n "(cached) " >&6
15561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #include <string.h>
15566 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15567 *) gl_absname_cpp
="$ac_cpp" ;;
15572 gl_dirsep_regex
='[/\\]'
15575 gl_dirsep_regex
='\/'
15578 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15579 gl_header_literal_regex
=`echo 'string.h' \
15580 | sed -e "$gl_make_literal_regex_sed"`
15581 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15582 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15588 gl_cv_absolute_string_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15589 sed -n "$gl_absolute_header_sed"`
15591 gl_header
=$gl_cv_absolute_string_h
15592 gl_cv_next_string_h
='"'$gl_header'"'
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15597 $as_echo "$gl_cv_next_string_h" >&6; }
15599 NEXT_STRING_H
=$gl_cv_next_string_h
15601 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15602 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15603 gl_next_as_first_directive
='<'string.h
'>'
15605 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15606 gl_next_as_first_directive
=$gl_cv_next_string_h
15608 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
15615 for gl_func
in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp
; do
15616 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15618 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15619 if eval \
${$as_gl_Symbol+:} false
; then :
15620 $as_echo_n "(cached) " >&6
15622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624 #include <string.h>
15635 if ac_fn_c_try_compile
"$LINENO"; then :
15636 eval "$as_gl_Symbol=yes"
15638 eval "$as_gl_Symbol=no"
15640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15642 eval ac_res
=\$
$as_gl_Symbol
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15644 $as_echo "$ac_res" >&6; }
15645 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
15646 cat >>confdefs.h
<<_ACEOF
15647 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15650 eval ac_cv_have_decl_
$gl_func=yes
15658 if test "$gl_cv_func_memchr_works" != yes; then
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
15662 $as_echo_n "checking whether strstr works... " >&6; }
15663 if ${gl_cv_func_strstr_works_always+:} false
; then :
15664 $as_echo_n "(cached) " >&6
15666 if test "$cross_compiling" = yes; then :
15667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15670 #ifdef __GNU_LIBRARY__
15671 #include <features.h>
15672 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
15673 || defined __UCLIBC__
15676 #elif defined __CYGWIN__
15677 #include <cygwin/version.h>
15678 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15687 $EGREP "Lucky user" >/dev
/null
2>&1; then :
15688 gl_cv_func_strstr_works_always
="guessing yes"
15690 gl_cv_func_strstr_works_always
="guessing no"
15696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15699 #include <string.h> /* for strstr */
15700 #define P "_EF_BF_BD"
15701 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15702 #define NEEDLE P P P P P
15707 return !!strstr (HAYSTACK, NEEDLE);
15713 if ac_fn_c_try_run
"$LINENO"; then :
15714 gl_cv_func_strstr_works_always
=yes
15716 gl_cv_func_strstr_works_always
=no
15718 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15719 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
15725 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
15726 case "$gl_cv_func_strstr_works_always" in
15735 ac_fn_c_check_decl
"$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
15736 if test "x$ac_cv_have_decl_strtok_r" = xyes
; then :
15742 cat >>confdefs.h
<<_ACEOF
15743 #define HAVE_DECL_STRTOK_R $ac_have_decl
15765 if test $gl_cv_have_include_next = yes; then
15766 gl_cv_next_sys_types_h
='<'sys
/types.h
'>'
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
15769 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
15770 if ${gl_cv_next_sys_types_h+:} false
; then :
15771 $as_echo_n "(cached) " >&6
15776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 #include <sys/types.h>
15781 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
15782 *) gl_absname_cpp
="$ac_cpp" ;;
15787 gl_dirsep_regex
='[/\\]'
15790 gl_dirsep_regex
='\/'
15793 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
15794 gl_header_literal_regex
=`echo 'sys/types.h' \
15795 | sed -e "$gl_make_literal_regex_sed"`
15796 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15797 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15803 gl_cv_absolute_sys_types_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15804 sed -n "$gl_absolute_header_sed"`
15806 gl_header
=$gl_cv_absolute_sys_types_h
15807 gl_cv_next_sys_types_h
='"'$gl_header'"'
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
15812 $as_echo "$gl_cv_next_sys_types_h" >&6; }
15814 NEXT_SYS_TYPES_H
=$gl_cv_next_sys_types_h
15816 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
15817 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15818 gl_next_as_first_directive
='<'sys
/types.h
'>'
15820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15821 gl_next_as_first_directive
=$gl_cv_next_sys_types_h
15823 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
=$gl_next_as_first_directive
15844 GNULIB_NANOSLEEP
=0;
15849 HAVE_DECL_LOCALTIME_R
=1;
15853 REPLACE_LOCALTIME_R
=GNULIB_PORTCHECK
;
15854 REPLACE_MKTIME
=GNULIB_PORTCHECK
;
15855 REPLACE_NANOSLEEP
=GNULIB_PORTCHECK
;
15856 REPLACE_TIMEGM
=GNULIB_PORTCHECK
;
15858 : ${GNULIB_GETTIMEOFDAY=0};
15860 REPLACE_LOCALTIME
=0;
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15871 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15872 if ${gl_cv_sys_struct_timespec_in_time_h+:} false
; then :
15873 $as_echo_n "(cached) " >&6
15875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15876 /* end confdefs.h. */
15882 static struct timespec x; x.tv_sec = x.tv_nsec;
15887 if ac_fn_c_try_compile
"$LINENO"; then :
15888 gl_cv_sys_struct_timespec_in_time_h
=yes
15890 gl_cv_sys_struct_timespec_in_time_h
=no
15892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15895 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15897 TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15898 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=0
15899 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=0
15900 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=0
15901 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15902 TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15905 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15906 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false
; then :
15907 $as_echo_n "(cached) " >&6
15909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15910 /* end confdefs.h. */
15911 #include <sys/time.h>
15916 static struct timespec x; x.tv_sec = x.tv_nsec;
15921 if ac_fn_c_try_compile
"$LINENO"; then :
15922 gl_cv_sys_struct_timespec_in_sys_time_h
=yes
15924 gl_cv_sys_struct_timespec_in_sys_time_h
=no
15926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15929 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15930 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15931 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
=1
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15934 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15935 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false
; then :
15936 $as_echo_n "(cached) " >&6
15938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15940 #include <pthread.h>
15945 static struct timespec x; x.tv_sec = x.tv_nsec;
15950 if ac_fn_c_try_compile
"$LINENO"; then :
15951 gl_cv_sys_struct_timespec_in_pthread_h
=yes
15953 gl_cv_sys_struct_timespec_in_pthread_h
=no
15955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15958 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15959 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15960 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
=1
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
15963 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
15964 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false
; then :
15965 $as_echo_n "(cached) " >&6
15967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 #include <unistd.h>
15974 static struct timespec x; x.tv_sec = x.tv_nsec;
15979 if ac_fn_c_try_compile
"$LINENO"; then :
15980 gl_cv_sys_struct_timespec_in_unistd_h
=yes
15982 gl_cv_sys_struct_timespec_in_unistd_h
=no
15984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
15987 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
15988 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
15989 UNISTD_H_DEFINES_STRUCT_TIMESPEC
=1
16010 if test $gl_cv_have_include_next = yes; then
16011 gl_cv_next_time_h
='<'time.h
'>'
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16014 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16015 if ${gl_cv_next_time_h+:} false
; then :
16016 $as_echo_n "(cached) " >&6
16021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16026 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16027 *) gl_absname_cpp
="$ac_cpp" ;;
16032 gl_dirsep_regex
='[/\\]'
16035 gl_dirsep_regex
='\/'
16038 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16039 gl_header_literal_regex
=`echo 'time.h' \
16040 | sed -e "$gl_make_literal_regex_sed"`
16041 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16042 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16048 gl_cv_absolute_time_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16049 sed -n "$gl_absolute_header_sed"`
16051 gl_header
=$gl_cv_absolute_time_h
16052 gl_cv_next_time_h
='"'$gl_header'"'
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16057 $as_echo "$gl_cv_next_time_h" >&6; }
16059 NEXT_TIME_H
=$gl_cv_next_time_h
16061 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16062 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16063 gl_next_as_first_directive
='<'time.h
'>'
16065 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16066 gl_next_as_first_directive
=$gl_cv_next_time_h
16068 NEXT_AS_FIRST_DIRECTIVE_TIME_H
=$gl_next_as_first_directive
16086 ac_fn_c_check_decl
"$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
16087 if test "x$ac_cv_have_decl_unsetenv" = xyes
; then :
16093 cat >>confdefs.h
<<_ACEOF
16094 #define HAVE_DECL_UNSETENV $ac_have_decl
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
16100 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
16101 if ${gl_cv_header_wchar_h_correct_inline+:} false
; then :
16102 $as_echo_n "(cached) " >&6
16104 gl_cv_header_wchar_h_correct_inline
=yes
16105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16106 /* end confdefs.h. */
16108 #define wcstod renamed_wcstod
16109 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16111 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16112 included before <wchar.h>. */
16113 #include <stddef.h>
16117 extern int zero (void);
16118 int main () { return zero(); }
16121 save_ac_compile
="$ac_compile"
16122 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
16123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16124 (eval $ac_compile) 2>&5
16126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16127 test $ac_status = 0; }; then
16128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16129 /* end confdefs.h. */
16131 #define wcstod renamed_wcstod
16132 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16134 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16135 included before <wchar.h>. */
16136 #include <stddef.h>
16140 int zero (void) { return 0; }
16143 ac_compile
=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
16144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16145 (eval $ac_compile) 2>&5
16147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16148 test $ac_status = 0; }; then
16149 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
16152 gl_cv_header_wchar_h_correct_inline
=no
16156 ac_compile
="$save_ac_compile"
16157 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
16161 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
16162 if test $gl_cv_header_wchar_h_correct_inline = no
; then
16163 as_fn_error $?
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
16164 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
16165 C99 mode. You have four options:
16166 - Add the flag -fgnu89-inline to CC and reconfigure, or
16167 - Fix your include files, using parts of
16168 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
16169 - Use a gcc version older than 4.3, or
16170 - Don't use the flags -std=c99 or -std=gnu99.
16171 Configuration aborted." "$LINENO" 5
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
16176 $as_echo_n "checking for wint_t... " >&6; }
16177 if ${gt_cv_c_wint_t+:} false
; then :
16178 $as_echo_n "(cached) " >&6
16180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16183 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16185 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
16186 before <wchar.h>. */
16187 #include <stddef.h>
16191 wint_t foo = (wchar_t)'\0';
16200 if ac_fn_c_try_compile
"$LINENO"; then :
16205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
16208 $as_echo "$gt_cv_c_wint_t" >&6; }
16209 if test $gt_cv_c_wint_t = yes; then
16211 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
16220 GNULIB_TOWCTRANS
=0;
16224 REPLACE_ISWBLANK
=0;
16233 GL_COND_LIBTOOL_TRUE
=
16234 GL_COND_LIBTOOL_FALSE
='#'
16236 GL_COND_LIBTOOL_TRUE
='#'
16237 GL_COND_LIBTOOL_FALSE
=
16240 gl_cond_libtool
=false
16243 gl_m4_base
='import/m4'
16253 gl_source_base
='import'
16256 if test $ac_cv_func_alloca_works = no
; then
16260 # Define an additional variable used in the Makefile substitution.
16261 if test $ac_cv_working_alloca_h = yes; then
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16263 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
16264 if ${gl_cv_rpl_alloca+:} false
; then :
16265 $as_echo_n "(cached) " >&6
16268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16271 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16277 $EGREP "Need own alloca" >/dev
/null
2>&1; then :
16278 gl_cv_rpl_alloca
=yes
16280 gl_cv_rpl_alloca
=no
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16287 $as_echo "$gl_cv_rpl_alloca" >&6; }
16288 if test $gl_cv_rpl_alloca = yes; then
16290 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16300 if test -n "$ALLOCA_H"; then
16301 GL_GENERATE_ALLOCA_H_TRUE
=
16302 GL_GENERATE_ALLOCA_H_FALSE
='#'
16304 GL_GENERATE_ALLOCA_H_TRUE
='#'
16305 GL_GENERATE_ALLOCA_H_FALSE
=
16319 if test $ac_cv_header_arpa_inet_h = yes; then
16340 if test $gl_cv_have_include_next = yes; then
16341 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
16344 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
16345 if ${gl_cv_next_arpa_inet_h+:} false
; then :
16346 $as_echo_n "(cached) " >&6
16349 if test $ac_cv_header_arpa_inet_h = yes; then
16354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16356 #include <arpa/inet.h>
16359 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16360 *) gl_absname_cpp
="$ac_cpp" ;;
16365 gl_dirsep_regex
='[/\\]'
16368 gl_dirsep_regex
='\/'
16371 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16372 gl_header_literal_regex
=`echo 'arpa/inet.h' \
16373 | sed -e "$gl_make_literal_regex_sed"`
16374 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16375 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16381 gl_cv_absolute_arpa_inet_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16382 sed -n "$gl_absolute_header_sed"`
16384 gl_header
=$gl_cv_absolute_arpa_inet_h
16385 gl_cv_next_arpa_inet_h
='"'$gl_header'"'
16387 gl_cv_next_arpa_inet_h
='<'arpa
/inet.h
'>'
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
16393 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
16395 NEXT_ARPA_INET_H
=$gl_cv_next_arpa_inet_h
16397 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
16398 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16399 gl_next_as_first_directive
='<'arpa
/inet.h
'>'
16401 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16402 gl_next_as_first_directive
=$gl_cv_next_arpa_inet_h
16404 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
=$gl_next_as_first_directive
16413 for gl_func
in inet_ntop inet_pton
; do
16414 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16416 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16417 if eval \
${$as_gl_Symbol+:} false
; then :
16418 $as_echo_n "(cached) " >&6
16420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16423 /* On some systems, this header is not self-consistent. */
16424 #if !(defined __GLIBC__ || defined __UCLIBC__)
16425 # include <sys/socket.h>
16428 # include <netdb.h>
16430 #include <arpa/inet.h>
16441 if ac_fn_c_try_compile
"$LINENO"; then :
16442 eval "$as_gl_Symbol=yes"
16444 eval "$as_gl_Symbol=no"
16446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16448 eval ac_res
=\$
$as_gl_Symbol
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16450 $as_echo "$ac_res" >&6; }
16451 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
16452 cat >>confdefs.h
<<_ACEOF
16453 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16456 eval ac_cv_have_decl_
$gl_func=yes
16470 gl_LIBOBJS
="$gl_LIBOBJS openat-proc.$ac_objext"
16475 if test $ac_cv_func_canonicalize_file_name = no
; then
16476 HAVE_CANONICALIZE_FILE_NAME
=0
16477 if test $ac_cv_func_realpath = no
; then
16480 case "$gl_cv_func_realpath_works" in
16482 *) REPLACE_REALPATH
=1 ;;
16486 case "$gl_cv_func_realpath_works" in
16490 REPLACE_CANONICALIZE_FILE_NAME
=1
16496 if test $HAVE_CANONICALIZE_FILE_NAME = 0 ||
test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
16505 gl_LIBOBJS
="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
16510 cat >>confdefs.h
<<_ACEOF
16511 #define GNULIB_CANONICALIZE_LGPL 1
16520 GNULIB_CANONICALIZE_FILE_NAME
=1
16526 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
16541 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
16556 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
16563 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
16564 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false
; then :
16565 $as_echo_n "(cached) " >&6
16567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h. */
16570 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
16572 # include <unistd.h>
16574 #include <limits.h>
16575 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
16576 # include <sys/param.h>
16578 #if !defined PATH_MAX && defined MAXPATHLEN
16579 # define PATH_MAX MAXPATHLEN
16583 # define PATH_MAX 1024
16585 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16587 # define PATH_MAX 260
16591 have_arbitrary_file_name_length_limit
16594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16595 $EGREP "have_arbitrary_file_name_length_limit" >/dev
/null
2>&1; then :
16596 gl_cv_have_arbitrary_file_name_length_limit
=yes
16598 gl_cv_have_arbitrary_file_name_length_limit
=no
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
16604 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
16606 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
16615 gl_LIBOBJS
="$gl_LIBOBJS chdir-long.$ac_objext"
16621 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
16627 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
16641 if test $ac_cv_header_sys_socket_h != yes; then
16642 for ac_header
in winsock2.h
16644 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16645 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
16646 cat >>confdefs.h
<<_ACEOF
16647 #define HAVE_WINSOCK2_H 1
16655 if test "$ac_cv_header_winsock2_h" = yes; then
16657 UNISTD_H_HAVE_WINSOCK2_H
=1
16658 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
16664 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
16669 if test $REPLACE_CLOSE = 0; then
16679 if test $ac_cv_func_fchdir = no
; then
16683 if test $HAVE_FCHDIR = 0; then
16689 if test $REPLACE_CLOSE = 1; then
16698 gl_LIBOBJS
="$gl_LIBOBJS close.$ac_objext"
16712 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
16719 for ac_func
in closedir
16721 ac_fn_c_check_func
"$LINENO" "closedir" "ac_cv_func_closedir"
16722 if test "x$ac_cv_func_closedir" = xyes
; then :
16723 cat >>confdefs.h
<<_ACEOF
16724 #define HAVE_CLOSEDIR 1
16730 if test $ac_cv_func_closedir = no
; then
16743 if test $ac_cv_func_fchdir = no
; then
16747 if test $HAVE_FCHDIR = 0; then
16748 if test $HAVE_CLOSEDIR = 1; then
16753 case $host_os,$HAVE_CLOSEDIR in
16755 REPLACE_CLOSEDIR
=1;;
16758 if test $HAVE_CLOSEDIR = 0 ||
test $REPLACE_CLOSEDIR = 1; then
16767 gl_LIBOBJS
="$gl_LIBOBJS closedir.$ac_objext"
16781 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
16786 if test "x$datarootdir" = x
; then
16787 datarootdir
='${datadir}'
16790 if test "x$docdir" = x
; then
16791 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
16794 if test "x$htmldir" = x
; then
16795 htmldir
='${docdir}'
16798 if test "x$dvidir" = x
; then
16802 if test "x$pdfdir" = x
; then
16806 if test "x$psdir" = x
; then
16810 if test "x$lispdir" = x
; then
16811 lispdir
='${datarootdir}/emacs/site-lisp'
16814 if test "x$localedir" = x
; then
16815 localedir
='${datarootdir}/locale'
16818 if test "x$runstatedir" = x
; then
16819 runstatedir
='${localstatedir}/run'
16823 pkglibexecdir
='${libexecdir}/${PACKAGE}'
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
16827 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
16828 if ${gl_cv_struct_dirent_d_ino+:} false
; then :
16829 $as_echo_n "(cached) " >&6
16831 if test "$cross_compiling" = yes; then :
16833 # Guess yes on glibc systems with Linux kernel.
16834 linux
*-gnu*) gl_cv_struct_dirent_d_ino
="guessing yes" ;;
16835 # If we don't know, assume the worst.
16836 *) gl_cv_struct_dirent_d_ino
="guessing no" ;;
16840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16842 #include <sys/types.h>
16843 #include <sys/stat.h>
16844 #include <dirent.h>
16849 DIR *dp = opendir (".");
16857 if (lstat (e->d_name, &st) != 0)
16859 if (e->d_ino != st.st_ino)
16868 if ac_fn_c_try_run
"$LINENO"; then :
16869 gl_cv_struct_dirent_d_ino
=yes
16871 gl_cv_struct_dirent_d_ino
=no
16873 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16874 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
16879 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
16880 case "$gl_cv_struct_dirent_d_ino" in
16883 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
16890 $as_echo_n "checking for d_type member in directory struct... " >&6; }
16891 if ${gl_cv_struct_dirent_d_type+:} false
; then :
16892 $as_echo_n "(cached) " >&6
16894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16897 #include <sys/types.h>
16898 #include <dirent.h>
16903 struct dirent dp; dp.d_type = 0;
16908 if ac_fn_c_try_link
"$LINENO"; then :
16909 gl_cv_struct_dirent_d_type
=yes
16911 gl_cv_struct_dirent_d_type
=no
16913 rm -f core conftest.err conftest.
$ac_objext \
16914 conftest
$ac_exeext conftest.
$ac_ext
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
16919 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
16920 if test $gl_cv_struct_dirent_d_type = yes; then
16922 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
16945 if test $gl_cv_have_include_next = yes; then
16946 gl_cv_next_dirent_h
='<'dirent.h
'>'
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
16949 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
16950 if ${gl_cv_next_dirent_h+:} false
; then :
16951 $as_echo_n "(cached) " >&6
16954 if test $ac_cv_header_dirent_h = yes; then
16959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16960 /* end confdefs.h. */
16961 #include <dirent.h>
16964 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
16965 *) gl_absname_cpp
="$ac_cpp" ;;
16970 gl_dirsep_regex
='[/\\]'
16973 gl_dirsep_regex
='\/'
16976 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
16977 gl_header_literal_regex
=`echo 'dirent.h' \
16978 | sed -e "$gl_make_literal_regex_sed"`
16979 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16980 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16986 gl_cv_absolute_dirent_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16987 sed -n "$gl_absolute_header_sed"`
16989 gl_header
=$gl_cv_absolute_dirent_h
16990 gl_cv_next_dirent_h
='"'$gl_header'"'
16992 gl_cv_next_dirent_h
='<'dirent.h
'>'
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
16998 $as_echo "$gl_cv_next_dirent_h" >&6; }
17000 NEXT_DIRENT_H
=$gl_cv_next_dirent_h
17002 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17003 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17004 gl_next_as_first_directive
='<'dirent.h
'>'
17006 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17007 gl_next_as_first_directive
=$gl_cv_next_dirent_h
17009 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
=$gl_next_as_first_directive
17014 if test $ac_cv_header_dirent_h = yes; then
17022 for gl_func
in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir
; do
17023 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17025 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17026 if eval \
${$as_gl_Symbol+:} false
; then :
17027 $as_echo_n "(cached) " >&6
17029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17031 #include <dirent.h>
17042 if ac_fn_c_try_compile
"$LINENO"; then :
17043 eval "$as_gl_Symbol=yes"
17045 eval "$as_gl_Symbol=no"
17047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17049 eval ac_res
=\$
$as_gl_Symbol
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17051 $as_echo "$ac_res" >&6; }
17052 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
17053 cat >>confdefs.h
<<_ACEOF
17054 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17057 eval ac_cv_have_decl_
$gl_func=yes
17067 for ac_func
in dirfd
17069 ac_fn_c_check_func
"$LINENO" "dirfd" "ac_cv_func_dirfd"
17070 if test "x$ac_cv_func_dirfd" = xyes
; then :
17071 cat >>confdefs.h
<<_ACEOF
17072 #define HAVE_DIRFD 1
17078 ac_fn_c_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
17079 #include <dirent.h>
17081 if test "x$ac_cv_have_decl_dirfd" = xyes
; then :
17087 cat >>confdefs.h
<<_ACEOF
17088 #define HAVE_DECL_DIRFD $ac_have_decl
17091 if test $ac_cv_have_decl_dirfd = no
; then
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
17096 $as_echo_n "checking whether dirfd is a macro... " >&6; }
17097 if ${gl_cv_func_dirfd_macro+:} false
; then :
17098 $as_echo_n "(cached) " >&6
17100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17103 #include <sys/types.h>
17104 #include <dirent.h>
17106 dirent_header_defines_dirfd
17109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17110 $EGREP "dirent_header_defines_dirfd" >/dev
/null
2>&1; then :
17111 gl_cv_func_dirfd_macro
=yes
17113 gl_cv_func_dirfd_macro
=no
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
17119 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
17121 # Use the replacement if we have no function or macro with that name,
17122 # or if OS/2 kLIBC whose dirfd() does not work.
17123 # Replace only if the system declares dirfd already.
17124 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
17125 no
,no
,*,yes |
*,*,os2
*,yes)
17128 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
17132 if test $ac_cv_func_dirfd = no
&& test $gl_cv_func_dirfd_macro = no \
17133 ||
test $REPLACE_DIRFD = 1; then
17142 gl_LIBOBJS
="$gl_LIBOBJS dirfd.$ac_objext"
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
17146 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
17147 if ${gl_cv_sys_dir_fd_member_name+:} false
; then :
17148 $as_echo_n "(cached) " >&6
17151 dirfd_save_CFLAGS
=$CFLAGS
17152 for ac_expr
in d_fd dd_fd
; do
17154 CFLAGS
="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
17155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17158 #include <sys/types.h>
17159 #include <dirent.h>
17163 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
17168 if ac_fn_c_try_compile
"$LINENO"; then :
17172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17173 CFLAGS
=$dirfd_save_CFLAGS
17174 test "$dir_fd_found" = yes && break
17176 test "$dir_fd_found" = yes || ac_expr
=no_such_member
17178 gl_cv_sys_dir_fd_member_name
=$ac_expr
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
17183 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
17184 if test $gl_cv_sys_dir_fd_member_name != no_such_member
; then
17186 cat >>confdefs.h
<<_ACEOF
17187 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
17205 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17216 $as_echo_n "checking whether // is distinct from /... " >&6; }
17217 if ${gl_cv_double_slash_root+:} false
; then :
17218 $as_echo_n "(cached) " >&6
17220 if test x
"$cross_compiling" = xyes
; then
17221 # When cross-compiling, there is no way to tell whether // is special
17222 # short of a list of hosts. However, the only known hosts to date
17223 # that have a distinct // are Apollo DomainOS (too old to port to),
17224 # Cygwin, and z/OS. If anyone knows of another system for which // has
17225 # special semantics and is distinct from /, please report it to
17226 # <bug-gnulib@gnu.org>.
17228 *-cygwin | i370-ibm-openedition
)
17229 gl_cv_double_slash_root
=yes ;;
17231 # Be optimistic and assume that / and // are the same when we
17233 gl_cv_double_slash_root
='unknown, assuming no' ;;
17236 set x
`ls -di / // 2>/dev/null`
17237 if test "$2" = "$4" && wc //dev
/null
>/dev
/null
2>&1; then
17238 gl_cv_double_slash_root
=no
17240 gl_cv_double_slash_root
=yes
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17245 $as_echo "$gl_cv_double_slash_root" >&6; }
17246 if test "$gl_cv_double_slash_root" = yes; then
17248 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17255 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17268 if test $ac_cv_func_fchdir = no
; then
17272 if test $HAVE_FCHDIR = 0; then
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
17277 $as_echo_n "checking whether dup works... " >&6; }
17278 if ${gl_cv_func_dup_works+:} false
; then :
17279 $as_echo_n "(cached) " >&6
17281 if test "$cross_compiling" = yes; then :
17282 gl_cv_func_dup_works
='guessing yes'
17284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17285 /* end confdefs.h. */
17286 #include <unistd.h>
17292 /* On OS/2 kLIBC, dup does not work on a directory fd. */
17293 int fd = open (".", O_RDONLY);
17294 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
17301 if ac_fn_c_try_run
"$LINENO"; then :
17302 gl_cv_func_dup_works
=yes
17304 gl_cv_func_dup_works
=no
17306 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17307 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
17313 $as_echo "$gl_cv_func_dup_works" >&6; }
17314 case "$gl_cv_func_dup_works" in
17321 if test $REPLACE_DUP = 1; then
17330 gl_LIBOBJS
="$gl_LIBOBJS dup.$ac_objext"
17345 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
17354 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
17357 if test $HAVE_DUP2 = 1; then
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
17359 $as_echo_n "checking whether dup2 works... " >&6; }
17360 if ${gl_cv_func_dup2_works+:} false
; then :
17361 $as_echo_n "(cached) " >&6
17363 if test "$cross_compiling" = yes; then :
17365 mingw
*) # on this platform, dup2 always returns 0 for success
17366 gl_cv_func_dup2_works
="guessing no" ;;
17367 cygwin
*) # on cygwin 1.5.x, dup2(1,1) returns 0
17368 gl_cv_func_dup2_works
="guessing no" ;;
17370 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
17372 gl_cv_func_dup2_works
="guessing no" ;;
17373 haiku
*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
17374 gl_cv_func_dup2_works
="guessing no" ;;
17375 *-android*) # implemented using dup3(), which fails if oldfd == newfd
17376 gl_cv_func_dup2_works
="guessing no" ;;
17377 os2
*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
17378 gl_cv_func_dup2_works
="guessing no" ;;
17379 *) gl_cv_func_dup2_works
="guessing yes" ;;
17382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17383 /* end confdefs.h. */
17387 #include <limits.h>
17388 #include <sys/resource.h>
17389 #include <unistd.h>
17390 #ifndef RLIM_SAVED_CUR
17391 # define RLIM_SAVED_CUR RLIM_INFINITY
17393 #ifndef RLIM_SAVED_MAX
17394 # define RLIM_SAVED_MAX RLIM_INFINITY
17401 int bad_fd = INT_MAX;
17402 struct rlimit rlim;
17403 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
17404 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
17405 && rlim.rlim_cur != RLIM_INFINITY
17406 && rlim.rlim_cur != RLIM_SAVED_MAX
17407 && rlim.rlim_cur != RLIM_SAVED_CUR)
17408 bad_fd = rlim.rlim_cur;
17410 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
17413 if (dup2 (1, 1) != 1)
17416 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
17420 if (dup2 (0, 0) != -1)
17422 /* Many gnulib modules require POSIX conformance of EBADF. */
17423 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
17425 /* Flush out some cygwin core dumps. */
17426 if (dup2 (2, -1) != -1 || errno != EBADF)
17430 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
17432 int fd = open (".", O_RDONLY);
17435 else if (dup2 (fd, fd + 1) == -1)
17446 if ac_fn_c_try_run
"$LINENO"; then :
17447 gl_cv_func_dup2_works
=yes
17449 gl_cv_func_dup2_works
=no
17451 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17452 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
17458 $as_echo "$gl_cv_func_dup2_works" >&6; }
17459 case "$gl_cv_func_dup2_works" in
17463 for ac_func
in setdtablesize
17465 ac_fn_c_check_func
"$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
17466 if test "x$ac_cv_func_setdtablesize" = xyes
; then :
17467 cat >>confdefs.h
<<_ACEOF
17468 #define HAVE_SETDTABLESIZE 1
17487 if test $ac_cv_func_fchdir = no
; then
17491 if test $HAVE_FCHDIR = 0; then
17492 if test $HAVE_DUP2 = 1; then
17498 if test $HAVE_DUP2 = 0 ||
test $REPLACE_DUP2 = 1; then
17507 gl_LIBOBJS
="$gl_LIBOBJS dup2.$ac_objext"
17522 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
17538 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
17545 $as_echo_n "checking for error_at_line... " >&6; }
17546 if ${ac_cv_lib_error_at_line+:} false
; then :
17547 $as_echo_n "(cached) " >&6
17549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17550 /* end confdefs.h. */
17555 error_at_line (0, 0, "", 0, "an error occurred");
17560 if ac_fn_c_try_link
"$LINENO"; then :
17561 ac_cv_lib_error_at_line
=yes
17563 ac_cv_lib_error_at_line
=no
17565 rm -f core conftest.err conftest.
$ac_objext \
17566 conftest
$ac_exeext conftest.
$ac_ext
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
17569 $as_echo "$ac_cv_lib_error_at_line" >&6; }
17571 if test $ac_cv_lib_error_at_line = no
; then
17580 gl_LIBOBJS
="$gl_LIBOBJS error.$ac_objext"
17600 if test $ac_cv_have_decl_fchdir = no
; then
17605 if test $HAVE_FCHDIR = 0; then
17614 gl_LIBOBJS
="$gl_LIBOBJS fchdir.$ac_objext"
17618 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
17621 $as_echo_n "checking whether open can visit directories... " >&6; }
17622 if ${gl_cv_func_open_directory_works+:} false
; then :
17623 $as_echo_n "(cached) " >&6
17625 if test "$cross_compiling" = yes; then :
17627 # Guess yes on glibc systems.
17628 *-gnu*) gl_cv_func_open_directory_works
="guessing yes" ;;
17629 # If we don't know, assume the worst.
17630 *) gl_cv_func_open_directory_works
="guessing no" ;;
17634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17641 return open(".", O_RDONLY) < 0;
17646 if ac_fn_c_try_run
"$LINENO"; then :
17647 gl_cv_func_open_directory_works
=yes
17649 gl_cv_func_open_directory_works
=no
17651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
17657 $as_echo "$gl_cv_func_open_directory_works" >&6; }
17658 case "$gl_cv_func_open_directory_works" in
17662 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
17679 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
17694 if test $ac_cv_func_fcntl = no
; then
17704 if test $ac_cv_func_fcntl = no
; then
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
17712 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
17713 if ${gl_cv_func_fcntl_f_dupfd_works+:} false
; then :
17714 $as_echo_n "(cached) " >&6
17716 if test "$cross_compiling" = yes; then :
17718 aix
* | cygwin
* | haiku
*)
17719 gl_cv_func_fcntl_f_dupfd_works
="guessing no" ;;
17720 *) gl_cv_func_fcntl_f_dupfd_works
="guessing yes" ;;
17723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17727 #include <limits.h>
17728 #include <sys/resource.h>
17729 #include <unistd.h>
17730 #ifndef RLIM_SAVED_CUR
17731 # define RLIM_SAVED_CUR RLIM_INFINITY
17733 #ifndef RLIM_SAVED_MAX
17734 # define RLIM_SAVED_MAX RLIM_INFINITY
17741 int bad_fd = INT_MAX;
17742 struct rlimit rlim;
17743 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
17744 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
17745 && rlim.rlim_cur != RLIM_INFINITY
17746 && rlim.rlim_cur != RLIM_SAVED_MAX
17747 && rlim.rlim_cur != RLIM_SAVED_CUR)
17748 bad_fd = rlim.rlim_cur;
17749 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
17750 if (errno != EINVAL) result |= 2;
17751 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
17752 if (errno != EINVAL) result |= 8;
17753 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
17756 fd = open (".", O_RDONLY);
17759 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
17769 if ac_fn_c_try_run
"$LINENO"; then :
17770 gl_cv_func_fcntl_f_dupfd_works
=yes
17772 gl_cv_func_fcntl_f_dupfd_works
=no
17774 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17775 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
17780 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
17781 case $gl_cv_func_fcntl_f_dupfd_works in
17792 if test $ac_cv_func_fcntl = no
; then
17799 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
17804 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
17805 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false
; then :
17806 $as_echo_n "(cached) " >&6
17808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17812 #ifndef F_DUPFD_CLOEXEC
17824 if ac_fn_c_try_compile
"$LINENO"; then :
17825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17829 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
17830 it to support the semantics on older kernels that failed with EINVAL. */
17842 if ac_fn_c_try_compile
"$LINENO"; then :
17843 gl_cv_func_fcntl_f_dupfd_cloexec
=yes
17845 gl_cv_func_fcntl_f_dupfd_cloexec
="needs runtime check"
17847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17849 gl_cv_func_fcntl_f_dupfd_cloexec
=no
17851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
17854 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
17855 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
17865 if test $ac_cv_func_fcntl = no
; then
17883 if test $ac_cv_func_fchdir = no
; then
17887 if test $HAVE_FCHDIR = 0; then
17897 if test $ac_cv_func_fcntl = no
; then
17906 if test $HAVE_FCNTL = 0 ||
test $REPLACE_FCNTL = 1; then
17915 gl_LIBOBJS
="$gl_LIBOBJS fcntl.$ac_objext"
17929 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
17944 if test $gl_cv_have_include_next = yes; then
17945 gl_cv_next_fcntl_h
='<'fcntl.h
'>'
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
17948 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
17949 if ${gl_cv_next_fcntl_h+:} false
; then :
17950 $as_echo_n "(cached) " >&6
17955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17960 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
17961 *) gl_absname_cpp
="$ac_cpp" ;;
17966 gl_dirsep_regex
='[/\\]'
17969 gl_dirsep_regex
='\/'
17972 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
17973 gl_header_literal_regex
=`echo 'fcntl.h' \
17974 | sed -e "$gl_make_literal_regex_sed"`
17975 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17976 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17982 gl_cv_absolute_fcntl_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17983 sed -n "$gl_absolute_header_sed"`
17985 gl_header
=$gl_cv_absolute_fcntl_h
17986 gl_cv_next_fcntl_h
='"'$gl_header'"'
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
17991 $as_echo "$gl_cv_next_fcntl_h" >&6; }
17993 NEXT_FCNTL_H
=$gl_cv_next_fcntl_h
17995 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
17996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17997 gl_next_as_first_directive
='<'fcntl.h
'>'
17999 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18000 gl_next_as_first_directive
=$gl_cv_next_fcntl_h
18002 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
=$gl_next_as_first_directive
18013 for gl_func
in fcntl openat
; do
18014 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18016 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18017 if eval \
${$as_gl_Symbol+:} false
; then :
18018 $as_echo_n "(cached) " >&6
18020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18033 if ac_fn_c_try_compile
"$LINENO"; then :
18034 eval "$as_gl_Symbol=yes"
18036 eval "$as_gl_Symbol=no"
18038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18040 eval ac_res
=\$
$as_gl_Symbol
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18042 $as_echo "$ac_res" >&6; }
18043 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
18044 cat >>confdefs.h
<<_ACEOF
18045 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18048 eval ac_cv_have_decl_
$gl_func=yes
18058 ac_fn_c_check_decl
"$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
18059 #include <dirent.h>
18062 if test "x$ac_cv_have_decl_fdopendir" = xyes
; then :
18068 cat >>confdefs.h
<<_ACEOF
18069 #define HAVE_DECL_FDOPENDIR $ac_have_decl
18071 if test $ac_have_decl = 1; then :
18074 HAVE_DECL_FDOPENDIR
=0
18084 if test $ac_cv_func_fdopendir = no
; then
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
18088 $as_echo_n "checking whether fdopendir works... " >&6; }
18089 if ${gl_cv_func_fdopendir_works+:} false
; then :
18090 $as_echo_n "(cached) " >&6
18092 if test "$cross_compiling" = yes; then :
18094 # Guess yes on glibc systems.
18095 *-gnu*) gl_cv_func_fdopendir_works
="guessing yes" ;;
18096 # If we don't know, assume the worst.
18097 *) gl_cv_func_fdopendir_works
="guessing no" ;;
18101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18102 /* end confdefs.h. */
18104 #include <dirent.h>
18106 #include <unistd.h>
18107 #if !HAVE_DECL_FDOPENDIR
18109 # ifdef __cplusplus
18112 DIR *fdopendir (int);
18119 int fd = open ("conftest.c", O_RDONLY);
18120 if (fd < 0) result |= 1;
18121 if (fdopendir (fd)) result |= 2;
18122 if (close (fd)) result |= 4;
18128 if ac_fn_c_try_run
"$LINENO"; then :
18129 gl_cv_func_fdopendir_works
=yes
18131 gl_cv_func_fdopendir_works
=no
18133 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18134 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
18139 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
18140 case "$gl_cv_func_fdopendir_works" in
18143 REPLACE_FDOPENDIR
=1
18148 if test $HAVE_FDOPENDIR = 0 ||
test $REPLACE_FDOPENDIR = 1; then
18157 gl_LIBOBJS
="$gl_LIBOBJS fdopendir.$ac_objext"
18171 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
18177 cat >>confdefs.h
<<_ACEOF
18178 #define GNULIB_FDOPENDIR 1
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
18193 $as_echo_n "checking for flexible array member... " >&6; }
18194 if ${ac_cv_c_flexmember+:} false
; then :
18195 $as_echo_n "(cached) " >&6
18197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199 #include <stdlib.h>
18201 #include <stddef.h>
18202 struct s { int n; double d[]; };
18206 int m = getchar ();
18207 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
18208 nbytes += sizeof (struct s) - 1;
18209 nbytes -= nbytes % sizeof (struct s);
18210 struct s *p = malloc (nbytes);
18212 return p->d != (double *) NULL;
18217 if ac_fn_c_try_compile
"$LINENO"; then :
18218 ac_cv_c_flexmember
=yes
18220 ac_cv_c_flexmember
=no
18222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
18225 $as_echo "$ac_cv_c_flexmember" >&6; }
18226 if test $ac_cv_c_flexmember = yes; then
18228 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
18231 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
18239 REPLACE_FLOAT_LDBL
=0
18241 aix
* | beos
* | openbsd
* | mirbsd
* | irix
*)
18245 case "$host_cpu" in
18250 # On x86_64 systems, the C compiler may still be generating
18252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
18258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18259 $EGREP "yes" >/dev
/null
2>&1; then :
18270 case "$host_cpu" in
18278 aix
* | freebsd
* | linux
*)
18279 if test -n "$FLOAT_H"; then
18280 REPLACE_FLOAT_LDBL
=1
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
18287 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
18288 if ${gl_cv_func_itold_works+:} false
; then :
18289 $as_echo_n "(cached) " >&6
18292 if test "$cross_compiling" = yes; then :
18295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18297 #if defined __LP64__ || defined __arch64__
18301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18302 $EGREP "yes" >/dev
/null
2>&1; then :
18303 gl_cv_func_itold_works
="guessing no"
18305 gl_cv_func_itold_works
="guessing yes"
18310 *) gl_cv_func_itold_works
="guessing yes" ;;
18314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18318 volatile long double ld;
18327 if ac_fn_c_try_run
"$LINENO"; then :
18328 gl_cv_func_itold_works
=yes
18330 gl_cv_func_itold_works
=no
18332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
18339 $as_echo "$gl_cv_func_itold_works" >&6; }
18340 case "$gl_cv_func_itold_works" in
18347 if test -n "$FLOAT_H"; then
18356 if test $gl_cv_have_include_next = yes; then
18357 gl_cv_next_float_h
='<'float.h
'>'
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
18360 $as_echo_n "checking absolute name of <float.h>... " >&6; }
18361 if ${gl_cv_next_float_h+:} false
; then :
18362 $as_echo_n "(cached) " >&6
18367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18372 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
18373 *) gl_absname_cpp
="$ac_cpp" ;;
18378 gl_dirsep_regex
='[/\\]'
18381 gl_dirsep_regex
='\/'
18384 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
18385 gl_header_literal_regex
=`echo 'float.h' \
18386 | sed -e "$gl_make_literal_regex_sed"`
18387 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18388 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18394 gl_cv_absolute_float_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18395 sed -n "$gl_absolute_header_sed"`
18397 gl_header
=$gl_cv_absolute_float_h
18398 gl_cv_next_float_h
='"'$gl_header'"'
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
18403 $as_echo "$gl_cv_next_float_h" >&6; }
18405 NEXT_FLOAT_H
=$gl_cv_next_float_h
18407 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
18408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18409 gl_next_as_first_directive
='<'float.h
'>'
18411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18412 gl_next_as_first_directive
=$gl_cv_next_float_h
18414 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
=$gl_next_as_first_directive
18421 if test -n "$FLOAT_H"; then
18422 GL_GENERATE_FLOAT_H_TRUE
=
18423 GL_GENERATE_FLOAT_H_FALSE
='#'
18425 GL_GENERATE_FLOAT_H_TRUE
='#'
18426 GL_GENERATE_FLOAT_H_FALSE
=
18431 if test $REPLACE_FLOAT_LDBL = 1; then
18440 gl_LIBOBJS
="$gl_LIBOBJS float.$ac_objext"
18443 if test $REPLACE_ITOLD = 1; then
18452 gl_LIBOBJS
="$gl_LIBOBJS itold.$ac_objext"
18461 gl_fnmatch_required_lowercase
=`
18462 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
18464 gl_fnmatch_cache_var
="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
18466 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
18467 if eval \
${$gl_fnmatch_cache_var+:} false
; then :
18468 $as_echo_n "(cached) " >&6
18470 if test $gl_fnmatch_required = GNU
; then
18471 gl_fnmatch_gnu_start
=
18472 gl_fnmatch_gnu_end
=
18474 gl_fnmatch_gnu_start
='#if 0'
18475 gl_fnmatch_gnu_end
='#endif'
18477 if test "$cross_compiling" = yes; then :
18478 eval "$gl_fnmatch_cache_var=\"guessing no\""
18480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18482 #include <fnmatch.h>
18484 y (char const *pattern, char const *string, int flags)
18486 return fnmatch (pattern, string, flags) == 0;
18489 n (char const *pattern, char const *string, int flags)
18491 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
18497 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
18498 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
18499 static char const A_1[] = { 'A' - 1, 0 };
18500 static char const A01[] = { 'A' + 1, 0 };
18501 static char const a_1[] = { 'a' - 1, 0 };
18502 static char const a01[] = { 'a' + 1, 0 };
18503 static char const bs_1[] = { '\\\\' - 1, 0 };
18504 static char const bs01[] = { '\\\\' + 1, 0 };
18506 if (!n ("a*", "", 0))
18508 if (!y ("a*", "abc", 0))
18510 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
18512 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
18514 if (!y ("a\\\\bc", "abc", 0))
18516 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
18518 if (!y ("*x", ".x", 0))
18520 if (!n ("*x", ".x", FNM_PERIOD))
18522 if (!y (Apat, "\\\\", 0))
18524 if (!y (Apat, "A", 0))
18526 if (!y (apat, "\\\\", 0))
18528 if (!y (apat, "a", 0))
18530 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
18532 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
18534 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
18536 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
18538 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
18540 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
18542 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
18544 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
18546 $gl_fnmatch_gnu_start
18547 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
18549 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
18551 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
18553 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
18555 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
18557 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
18559 $gl_fnmatch_gnu_end
18566 if ac_fn_c_try_run
"$LINENO"; then :
18567 eval "$gl_fnmatch_cache_var=yes"
18569 eval "$gl_fnmatch_cache_var=no"
18571 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18572 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18577 eval ac_res
=\$
$gl_fnmatch_cache_var
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18579 $as_echo "$ac_res" >&6; }
18580 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
18581 if test "$gl_fnmatch_result" = yes; then
18582 rm -f "$gl_source_base/fnmatch.h"
18584 FNMATCH_H
=fnmatch.h
18587 if test -n "$FNMATCH_H"; then
18588 GL_GENERATE_FNMATCH_H_TRUE
=
18589 GL_GENERATE_FNMATCH_H_FALSE
='#'
18591 GL_GENERATE_FNMATCH_H_TRUE
='#'
18592 GL_GENERATE_FNMATCH_H_FALSE
=
18596 if test -n "$FNMATCH_H"; then
18605 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
18609 cat >>confdefs.h
<<_ACEOF
18610 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
18614 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
18616 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
18622 cat >>confdefs.h
<<_ACEOF
18623 #define HAVE_DECL_ISBLANK $ac_have_decl
18668 if test -n "$FNMATCH_H"; then
18677 gl_LIBOBJS
="$gl_LIBOBJS fnmatch.$ac_objext"
18681 cat >>confdefs.h
<<_ACEOF
18682 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
18686 ac_fn_c_check_decl
"$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
18688 if test "x$ac_cv_have_decl_isblank" = xyes
; then :
18694 cat >>confdefs.h
<<_ACEOF
18695 #define HAVE_DECL_ISBLANK $ac_have_decl
18739 if test $gl_cv_func_frexp_no_libm = no
; then
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
18741 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
18742 if ${gl_cv_func_frexp_in_libm+:} false
; then :
18743 $as_echo_n "(cached) " >&6
18748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18749 /* end confdefs.h. */
18755 int e; return frexp (x, &e) > 0;
18760 if ac_fn_c_try_link
"$LINENO"; then :
18761 gl_cv_func_frexp_in_libm
=yes
18763 gl_cv_func_frexp_in_libm
=no
18765 rm -f core conftest.err conftest.
$ac_objext \
18766 conftest
$ac_exeext conftest.
$ac_ext
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
18771 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
18772 if test $gl_cv_func_frexp_in_libm = yes; then
18776 if test $gl_cv_func_frexp_no_libm = yes \
18777 ||
test $gl_cv_func_frexp_in_libm = yes; then
18779 LIBS
="$LIBS $FREXP_LIBM"
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
18790 $as_echo_n "checking whether frexp works... " >&6; }
18791 if ${gl_cv_func_frexp_works+:} false
; then :
18792 $as_echo_n "(cached) " >&6
18795 if test "$cross_compiling" = yes; then :
18797 netbsd
* | irix
* | mingw
*) gl_cv_func_frexp_works
="guessing no";;
18798 *) gl_cv_func_frexp_works
="guessing yes";;
18802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18803 /* end confdefs.h. */
18807 #include <string.h>
18808 #if HAVE_DECL_ALARM
18809 # include <signal.h>
18810 # include <unistd.h>
18812 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
18813 ICC 10.0 has a bug when optimizing the expression -zero.
18814 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
18815 to PowerPC on Mac OS X 10.5. */
18816 #if defined __hpux || defined __sgi || defined __ICC
18818 compute_minus_zero (void)
18820 return -DBL_MIN * DBL_MIN;
18822 # define minus_zero compute_minus_zero ()
18824 double minus_zero = -0.0;
18832 #if HAVE_DECL_ALARM
18833 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
18834 number. Let the test fail in this case. */
18835 signal (SIGALRM, SIG_DFL);
18838 /* Test on denormalized numbers. */
18839 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
18844 double y = frexp (x, &exp);
18845 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
18846 On NetBSD: y = 0.75. Correct: y = 0.5. */
18850 /* Test on infinite numbers. */
18854 double y = frexp (x, &exp);
18858 /* Test on negative zero. */
18862 double y = frexp (x, &exp);
18863 if (memcmp (&y, &x, sizeof x))
18869 if ac_fn_c_try_run
"$LINENO"; then :
18870 gl_cv_func_frexp_works
=yes
18872 gl_cv_func_frexp_works
=no
18874 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18875 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
18881 $as_echo "$gl_cv_func_frexp_works" >&6; }
18884 case "$gl_cv_func_frexp_works" in
18885 *yes) gl_func_frexp
=yes ;;
18886 *) gl_func_frexp
=no
; REPLACE_FREXP
=1; FREXP_LIBM
= ;;
18891 if test $gl_func_frexp = yes; then
18893 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
18898 if test $gl_func_frexp != yes; then
18907 gl_LIBOBJS
="$gl_LIBOBJS frexp.$ac_objext"
18921 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
18931 ac_fn_c_check_decl
"$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
18933 if test "x$ac_cv_have_decl_frexpl" = xyes
; then :
18941 if test $HAVE_DECL_FREXPL = 1; then
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
18944 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
18945 if ${gl_cv_func_frexpl_no_libm+:} false
; then :
18946 $as_echo_n "(cached) " >&6
18949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18950 /* end confdefs.h. */
18956 int e; return frexpl (x, &e) > 0;
18961 if ac_fn_c_try_link
"$LINENO"; then :
18962 gl_cv_func_frexpl_no_libm
=yes
18964 gl_cv_func_frexpl_no_libm
=no
18966 rm -f core conftest.err conftest.
$ac_objext \
18967 conftest
$ac_exeext conftest.
$ac_ext
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
18971 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
18973 if test $gl_cv_func_frexpl_no_libm = no
; then
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
18975 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
18976 if ${gl_cv_func_frexpl_in_libm+:} false
; then :
18977 $as_echo_n "(cached) " >&6
18982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h. */
18989 int e; return frexpl (x, &e) > 0;
18994 if ac_fn_c_try_link
"$LINENO"; then :
18995 gl_cv_func_frexpl_in_libm
=yes
18997 gl_cv_func_frexpl_in_libm
=no
18999 rm -f core conftest.err conftest.
$ac_objext \
19000 conftest
$ac_exeext conftest.
$ac_ext
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
19005 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
19006 if test $gl_cv_func_frexpl_in_libm = yes; then
19010 if test $gl_cv_func_frexpl_no_libm = yes \
19011 ||
test $gl_cv_func_frexpl_in_libm = yes; then
19013 LIBS
="$LIBS $FREXPL_LIBM"
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
19017 $as_echo_n "checking whether frexpl works... " >&6; }
19018 if ${gl_cv_func_frexpl_works+:} false
; then :
19019 $as_echo_n "(cached) " >&6
19022 if test "$cross_compiling" = yes; then :
19025 aix | aix
[3-6]* | beos
* | darwin
* | irix
* | mingw
* | pw
*)
19026 gl_cv_func_frexpl_works
="guessing no";;
19027 *) gl_cv_func_frexpl_works
="guessing yes";;
19031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19032 /* end confdefs.h. */
19036 /* Override the values of <float.h>, like done in float.in.h. */
19037 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
19038 # undef LDBL_MIN_EXP
19039 # define LDBL_MIN_EXP (-16381)
19041 #if defined __i386__ && defined __FreeBSD__
19042 # undef LDBL_MIN_EXP
19043 # define LDBL_MIN_EXP (-16381)
19045 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
19046 # undef LDBL_MIN_EXP
19047 # define LDBL_MIN_EXP DBL_MIN_EXP
19049 #if defined __sgi && (LDBL_MANT_DIG >= 106)
19050 # if defined __GNUC__
19051 # undef LDBL_MIN_EXP
19052 # define LDBL_MIN_EXP DBL_MIN_EXP
19059 long double frexpl (long double, int *);
19063 volatile long double x;
19064 /* Test on finite numbers that fails on AIX 5.1. */
19072 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
19073 function returns an invalid (incorrectly normalized) value: it returns
19074 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
19075 but the correct result is
19076 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
19080 long double y = frexpl (x, &exp);
19081 if (!(exp == 1 && y == 0.505L))
19084 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
19085 LDBL_MAX_EXP = 16384.
19086 In the loop end test, we test x against Infinity, rather than comparing
19087 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
19090 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
19101 /* Test on denormalized numbers. */
19104 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
19109 long double y = frexpl (x, &exp);
19110 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
19111 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
19112 if (exp != LDBL_MIN_EXP - 1)
19116 /* Test on infinite numbers. */
19120 long double y = frexpl (x, &exp);
19127 if ac_fn_c_try_run
"$LINENO"; then :
19128 gl_cv_func_frexpl_works
=yes
19130 gl_cv_func_frexpl_works
=no
19132 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19133 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
19139 $as_echo "$gl_cv_func_frexpl_works" >&6; }
19142 case "$gl_cv_func_frexpl_works" in
19143 *yes) gl_func_frexpl
=yes ;;
19144 *) gl_func_frexpl
=no
; REPLACE_FREXPL
=1 ;;
19149 if test $gl_func_frexpl = yes; then
19151 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
19155 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19156 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
19158 FREXPL_LIBM
="$FREXP_LIBM"
19165 if test $HAVE_DECL_FREXPL = 0 ||
test $gl_func_frexpl = no
; then
19174 gl_LIBOBJS
="$gl_LIBOBJS frexpl.$ac_objext"
19188 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
19196 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19201 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
19215 if test $ac_cv_func_fchdir = no
; then
19219 if test $HAVE_FCHDIR = 0; then
19220 case "$gl_cv_func_open_directory_works" in
19229 if test $REPLACE_FSTAT = 1; then
19238 gl_LIBOBJS
="$gl_LIBOBJS fstat.$ac_objext"
19253 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
19269 if test $ac_cv_func_fstatat = no
; then
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
19273 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
19274 if ${gl_cv_func_fstatat_zero_flag+:} false
; then :
19275 $as_echo_n "(cached) " >&6
19277 if test "$cross_compiling" = yes; then :
19279 aix
*) gl_cv_func_fstatat_zero_flag
="guessing no";;
19280 *) gl_cv_func_fstatat_zero_flag
="guessing yes";;
19284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h. */
19288 #include <sys/stat.h>
19293 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
19297 if ac_fn_c_try_run
"$LINENO"; then :
19298 gl_cv_func_fstatat_zero_flag
=yes
19300 gl_cv_func_fstatat_zero_flag
=no
19302 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19303 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
19309 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
19311 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
19313 *) REPLACE_FSTATAT
=1
19314 case $gl_cv_func_fstatat_zero_flag in
19317 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
19325 if test $HAVE_FSTATAT = 0 ||
test $REPLACE_FSTATAT = 1; then
19334 gl_LIBOBJS
="$gl_LIBOBJS fstatat.$ac_objext"
19348 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
19360 gl_cv_func_getcwd_path_max
=yes
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
19381 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
19382 if ${gl_cv_func_getcwd_path_max+:} false
; then :
19383 $as_echo_n "(cached) " >&6
19385 # Arrange for deletion of the temporary directory this test creates.
19386 ac_clean_files
="$ac_clean_files confdir3"
19387 if test "$cross_compiling" = yes; then :
19388 # Cross-compilation guesses:
19390 aix
*) # On AIX, it has the AIX bug.
19391 gl_cv_func_getcwd_path_max
='no, it has the AIX bug' ;;
19392 gnu
*) # On Hurd, it is 'yes'.
19393 gl_cv_func_getcwd_path_max
=yes ;;
19394 linux
* | kfreebsd
*)
19395 # On older Linux+glibc it's 'no, but it is partly working',
19396 # on newer Linux+glibc it's 'yes'.
19397 # On Linux+musl libc, it's 'no, but it is partly working'.
19398 # On kFreeBSD+glibc, it's 'no, but it is partly working'.
19399 gl_cv_func_getcwd_path_max
='no, but it is partly working' ;;
19400 *) # If we don't know, assume the worst.
19401 gl_cv_func_getcwd_path_max
=no
;;
19405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19406 /* end confdefs.h. */
19409 #include <stdlib.h>
19411 # include <unistd.h>
19413 # include <direct.h>
19415 #include <string.h>
19416 #include <limits.h>
19417 #include <sys/stat.h>
19418 #include <sys/types.h>
19422 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19424 # include <unistd.h>
19426 #include <limits.h>
19427 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19428 # include <sys/param.h>
19430 #if !defined PATH_MAX && defined MAXPATHLEN
19431 # define PATH_MAX MAXPATHLEN
19435 # define PATH_MAX 1024
19437 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19439 # define PATH_MAX 260
19444 # define AT_FDCWD 0
19446 #ifdef ENAMETOOLONG
19447 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
19449 # define is_ENAMETOOLONG(x) 0
19452 /* Use the getcwd function, not any macro. */
19455 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19459 # define S_IRWXU 0700
19462 /* The length of this name must be 8. */
19463 #define DIR_NAME "confdir3"
19464 #define DIR_NAME_LEN 8
19465 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
19467 /* The length of "../". */
19468 #define DOTDOTSLASH_LEN 3
19470 /* Leftover bytes in the buffer, to work around library or OS bugs. */
19471 #define BUF_SLOP 20
19477 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
19478 at least not on a local file system. And if we were to start worrying
19479 about remote file systems, we'd have to enable the wrapper function
19480 all of the time, just to be safe. That's not worth the cost. */
19482 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
19483 - DIR_NAME_SIZE - BUF_SLOP) \
19485 /* FIXME: Assuming there's a system for which this is true,
19486 this should be done in a compile test. */
19489 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
19490 + DIR_NAME_SIZE + BUF_SLOP];
19491 char *cwd = getcwd (buf, PATH_MAX);
19492 size_t initial_cwd_len;
19495 size_t n_chdirs = 0;
19500 cwd_len = initial_cwd_len = strlen (cwd);
19504 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
19507 cwd_len += DIR_NAME_SIZE;
19508 /* If mkdir or chdir fails, it could be that this system cannot create
19509 any file with an absolute name longer than PATH_MAX, such as cygwin.
19510 If so, leave fail as 0, because the current working directory can't
19511 be too long for getcwd if it can't even be created. For other
19512 errors, be pessimistic and consider that as a failure, too. */
19513 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
19515 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19520 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
19524 c = getcwd (buf, PATH_MAX);
19525 if (!c && errno == ENOENT)
19535 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
19541 /* Our replacement needs to be able to stat() long ../../paths,
19542 so generate a path larger than PATH_MAX to check,
19543 avoiding the replacement if we can't stat(). */
19544 c = getcwd (buf, cwd_len + 1);
19545 if (c && !AT_FDCWD && stat (c, &sb) != 0 && is_ENAMETOOLONG (errno))
19552 if (dotdot_max <= cwd_len - initial_cwd_len)
19554 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
19556 c = getcwd (buf, cwd_len + 1);
19559 if (! (errno == ERANGE || errno == ENOENT
19560 || is_ENAMETOOLONG (errno)))
19565 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
19573 if (c && strlen (c) != cwd_len)
19581 /* Leaving behind such a deep directory is not polite.
19582 So clean up here, right away, even though the driving
19583 shell script would also clean up. */
19587 /* Try rmdir first, in case the chdir failed. */
19589 for (i = 0; i <= n_chdirs; i++)
19591 if (chdir ("..") < 0)
19593 if (rmdir (DIR_NAME) != 0)
19603 if ac_fn_c_try_run
"$LINENO"; then :
19604 gl_cv_func_getcwd_path_max
=yes
19607 10|
11|
12) gl_cv_func_getcwd_path_max
='no, but it is partly working';;
19608 31) gl_cv_func_getcwd_path_max
='no, it has the AIX bug';;
19609 32) gl_cv_func_getcwd_path_max
='yes, but with shorter paths';;
19610 *) gl_cv_func_getcwd_path_max
=no
;;
19613 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19614 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
19620 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
19622 case "$gl_cv_func_getcwd_null" in
19640 for ac_func
in getpagesize
19642 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19643 if test "x$ac_cv_func_getpagesize" = xyes
; then :
19644 cat >>confdefs.h
<<_ACEOF
19645 #define HAVE_GETPAGESIZE 1
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
19652 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
19653 if ${gl_cv_func_getcwd_abort_bug+:} false
; then :
19654 $as_echo_n "(cached) " >&6
19656 # Remove any remnants of a previous test.
19657 rm -rf confdir-14B---
19658 # Arrange for deletion of the temporary directory this test creates.
19659 ac_clean_files
="$ac_clean_files confdir-14B---"
19660 if test "$cross_compiling" = yes; then :
19661 gl_cv_func_getcwd_abort_bug
=yes
19663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19664 /* end confdefs.h. */
19667 #include <stdlib.h>
19669 # include <unistd.h>
19670 #else /* on Windows with MSVC */
19671 # include <direct.h>
19673 #include <string.h>
19674 #include <sys/stat.h>
19677 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19679 # include <unistd.h>
19681 #include <limits.h>
19682 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19683 # include <sys/param.h>
19685 #if !defined PATH_MAX && defined MAXPATHLEN
19686 # define PATH_MAX MAXPATHLEN
19690 # define PATH_MAX 1024
19692 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19694 # define PATH_MAX 260
19698 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
19702 # define S_IRWXU 0700
19705 /* FIXME: skip the run-test altogether on systems without getpagesize. */
19706 #if ! HAVE_GETPAGESIZE
19707 # define getpagesize() 0
19710 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
19711 the 16kB pagesize on ia64 linux. Those conditions make the code below
19712 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
19713 #define TARGET_LEN (5 * 1024)
19719 size_t initial_cwd_len;
19722 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
19723 this relatively expensive and invasive test if that's not true. */
19725 int bug_possible = PATH_MAX < getpagesize ();
19727 int bug_possible = 0;
19729 if (! bug_possible)
19732 cwd = getcwd (NULL, 0);
19736 initial_cwd_len = strlen (cwd);
19741 static char const dir_name[] = "confdir-14B---";
19742 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
19743 / sizeof dir_name);
19745 for (d = 0; d < desired_depth; d++)
19747 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
19749 if (! (errno == ERANGE || errno == ENAMETOOLONG
19750 || errno == ENOENT))
19751 fail = 3; /* Unable to construct deep hierarchy. */
19756 /* If libc has the bug in question, this invocation of getcwd
19757 results in a failed assertion. */
19758 cwd = getcwd (NULL, 0);
19760 fail = 4; /* getcwd didn't assert, but it failed for a long name
19761 where the answer could have been learned. */
19764 /* Call rmdir first, in case the above chdir failed. */
19768 if (chdir ("..") < 0)
19781 if ac_fn_c_try_run
"$LINENO"; then :
19782 gl_cv_func_getcwd_abort_bug
=no
19785 if test $ret -ge 128 ||
test $ret = 4; then
19786 gl_cv_func_getcwd_abort_bug
=yes
19788 gl_cv_func_getcwd_abort_bug
=no
19791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
19798 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
19799 if test $gl_cv_func_getcwd_abort_bug = yes; then :
19807 case "$gl_cv_func_getcwd_path_max" in
19808 "no"|
"no, it has the AIX bug") ;;
19811 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
19815 case "$gl_cv_func_getcwd_path_max" in
19816 "no, but it is partly working")
19818 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
19821 "yes, but with shorter paths")
19823 $as_echo "#define HAVE_GETCWD_SHORTER 1" >>confdefs.h
19828 if { case "$gl_cv_func_getcwd_null" in *yes) false
;; *) true
;; esac; } \
19829 ||
test $gl_cv_func_getcwd_posix_signature != yes \
19830 ||
{ case "$gl_cv_func_getcwd_path_max" in *yes*) false
;; *) true
;; esac; } \
19831 ||
test $gl_abort_bug = yes; then
19835 if test $REPLACE_GETCWD = 1; then
19844 gl_LIBOBJS
="$gl_LIBOBJS getcwd.$ac_objext"
19854 cat >>confdefs.h
<<_ACEOF
19855 #define GNULIB_GETCWD 1
19870 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
19879 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
19886 if test $REPLACE_GETCWD = 1; then
19895 gl_LIBOBJS
="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
19909 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
19930 if test $ac_cv_func_getdtablesize = yes &&
19931 test $ac_cv_have_decl_getdtablesize = yes; then
19932 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
19933 # up to an unchangeable hard limit; all other platforms correctly
19934 # require setrlimit before getdtablesize() can report a larger value.
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
19936 $as_echo_n "checking whether getdtablesize works... " >&6; }
19937 if ${gl_cv_func_getdtablesize_works+:} false
; then :
19938 $as_echo_n "(cached) " >&6
19940 if test "$cross_compiling" = yes; then :
19942 cygwin
*) # on cygwin 1.5.25, getdtablesize() automatically grows
19943 gl_cv_func_getdtablesize_works
="guessing no" ;;
19944 *) gl_cv_func_getdtablesize_works
="guessing yes" ;;
19947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19948 /* end confdefs.h. */
19950 #include <unistd.h>
19954 int size = getdtablesize();
19955 if (dup2 (0, getdtablesize()) != -1)
19957 if (size != getdtablesize())
19964 if ac_fn_c_try_run
"$LINENO"; then :
19965 gl_cv_func_getdtablesize_works
=yes
19967 gl_cv_func_getdtablesize_works
=no
19969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19970 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
19976 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
19977 case "$gl_cv_func_getdtablesize_works" in
19979 *) REPLACE_GETDTABLESIZE
=1 ;;
19982 HAVE_GETDTABLESIZE
=0
19985 if test $HAVE_GETDTABLESIZE = 0 ||
test $REPLACE_GETDTABLESIZE = 1; then
19994 gl_LIBOBJS
="$gl_LIBOBJS getdtablesize.$ac_objext"
20003 GNULIB_GETDTABLESIZE
=1
20009 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
20025 if test $ac_cv_have_decl_getlogin_r = no
; then
20026 HAVE_DECL_GETLOGIN_R
=0
20036 if test $ac_cv_func_getlogin_r = no
; then
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
20042 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
20043 if ${gl_cv_func_getlogin_r_works+:} false
; then :
20044 $as_echo_n "(cached) " >&6
20048 # Guess no on OSF/1.
20049 osf
*) gl_cv_func_getlogin_r_works
="guessing no" ;;
20050 # Guess yes otherwise.
20051 *) gl_cv_func_getlogin_r_works
="guessing yes" ;;
20053 if test "$cross_compiling" = yes; then :
20056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20057 /* end confdefs.h. */
20059 #include <stddef.h>
20060 #include <unistd.h>
20061 #if !HAVE_DECL_GETLOGIN_R
20063 # ifdef __cplusplus
20066 int getlogin_r (char *, size_t);
20074 if (getlogin_r (buf, 0) == 0)
20076 if (getlogin_r (buf, 1) == 0)
20081 if ac_fn_c_try_run
"$LINENO"; then :
20082 gl_cv_func_getlogin_r_works
=yes
20085 16 |
17) gl_cv_func_getlogin_r_works
=no
;;
20089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20090 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
20096 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
20097 case "$gl_cv_func_getlogin_r_works" in
20099 *) REPLACE_GETLOGIN_R
=1 ;;
20103 if test $HAVE_GETLOGIN_R = 0 ||
test $REPLACE_GETLOGIN_R = 1; then
20112 gl_LIBOBJS
="$gl_LIBOBJS getlogin_r.$ac_objext"
20129 GNULIB_GETLOGIN_R
=1
20135 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
20152 ac_fn_c_check_decl
"$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
20154 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
; then :
20160 cat >>confdefs.h
<<_ACEOF
20161 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
20163 if test $ac_have_decl = 1; then :
20167 ac_fn_c_check_decl
"$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
20169 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
; then :
20175 cat >>confdefs.h
<<_ACEOF
20176 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
20178 if test $ac_have_decl = 1; then :
20182 ac_fn_c_check_decl
"$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
20184 if test "x$ac_cv_have_decl___argv" = xyes
; then :
20190 cat >>confdefs.h
<<_ACEOF
20191 #define HAVE_DECL___ARGV $ac_have_decl
20193 if test $ac_have_decl = 1; then :
20198 # Incur the cost of this test only if none of the above worked.
20199 if test $ac_found = 0; then
20200 # On OpenBSD 5.1, using the global __progname variable appears to be
20201 # the only way to implement getprogname.
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
20203 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
20204 if ${gl_cv_var___progname+:} false
; then :
20205 $as_echo_n "(cached) " >&6
20208 gl_cv_var___progname
=
20209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20210 /* end confdefs.h. */
20211 extern char *__progname;
20215 return *__progname;
20221 if ac_fn_c_try_link
"$LINENO"; then :
20222 gl_cv_var___progname
=yes
20225 rm -f core conftest.err conftest.
$ac_objext \
20226 conftest
$ac_exeext conftest.
$ac_ext
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
20231 $as_echo "$gl_cv_var___progname" >&6; }
20232 if test "$gl_cv_var___progname" = yes; then
20234 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
20253 gl_gettimeofday_timezone
=void
20254 if test $ac_cv_func_gettimeofday != yes; then
20255 HAVE_GETTIMEOFDAY
=0
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
20261 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
20262 if ${gl_cv_func_gettimeofday_clobber+:} false
; then :
20263 $as_echo_n "(cached) " >&6
20265 if test "$cross_compiling" = yes; then :
20266 # When cross-compiling:
20268 # Guess all is fine on glibc systems.
20269 *-gnu*) gl_cv_func_gettimeofday_clobber
="guessing no" ;;
20270 # If we don't know, assume the worst.
20271 *) gl_cv_func_gettimeofday_clobber
="guessing yes" ;;
20275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h. */
20277 #include <string.h>
20278 #include <sys/time.h>
20280 #include <stdlib.h>
20288 struct tm saved_lt;
20290 lt = localtime (&t);
20292 gettimeofday (&tv, NULL);
20293 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
20299 if ac_fn_c_try_run
"$LINENO"; then :
20300 gl_cv_func_gettimeofday_clobber
=no
20302 gl_cv_func_gettimeofday_clobber
=yes
20304 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20305 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
20310 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
20312 case "$gl_cv_func_gettimeofday_clobber" in
20314 REPLACE_GETTIMEOFDAY
=1
20317 REPLACE_LOCALTIME
=1
20320 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
20326 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
20327 if ${gl_cv_func_gettimeofday_posix_signature+:} false
; then :
20328 $as_echo_n "(cached) " >&6
20330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20331 /* end confdefs.h. */
20332 #include <sys/time.h>
20334 int gettimeofday (struct timeval *restrict, void *restrict);
20339 /* glibc uses struct timezone * rather than the POSIX void *
20340 if _GNU_SOURCE is defined. However, since the only portable
20341 use of gettimeofday uses NULL as the second parameter, and
20342 since the glibc definition is actually more typesafe, it is
20343 not worth wrapping this to get a compliant signature. */
20344 int (*f) (struct timeval *restrict, void *restrict)
20347 return !(x | c.tv_sec | c.tv_usec);
20353 if ac_fn_c_try_compile
"$LINENO"; then :
20354 gl_cv_func_gettimeofday_posix_signature
=yes
20356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h. */
20358 #include <sys/time.h>
20359 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
20369 if ac_fn_c_try_compile
"$LINENO"; then :
20370 gl_cv_func_gettimeofday_posix_signature
=almost
20372 gl_cv_func_gettimeofday_posix_signature
=no
20374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
20379 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
20380 if test $gl_cv_func_gettimeofday_posix_signature = almost
; then
20381 gl_gettimeofday_timezone
='struct timezone'
20382 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
20383 REPLACE_GETTIMEOFDAY
=1
20385 if test $REPLACE_STRUCT_TIMEVAL = 1; then
20386 REPLACE_GETTIMEOFDAY
=1
20391 cat >>confdefs.h
<<_ACEOF
20392 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
20396 if test $HAVE_GETTIMEOFDAY = 0 ||
test $REPLACE_GETTIMEOFDAY = 1; then
20405 gl_LIBOBJS
="$gl_LIBOBJS gettimeofday.$ac_objext"
20408 for ac_header
in sys
/timeb.h
20410 ac_fn_c_check_header_mongrel
"$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
20411 if test "x$ac_cv_header_sys_timeb_h" = xyes
; then :
20412 cat >>confdefs.h
<<_ACEOF
20413 #define HAVE_SYS_TIMEB_H 1
20420 for ac_func
in _ftime
20422 ac_fn_c_check_func
"$LINENO" "_ftime" "ac_cv_func__ftime"
20423 if test "x$ac_cv_func__ftime" = xyes
; then :
20424 cat >>confdefs.h
<<_ACEOF
20425 #define HAVE__FTIME 1
20438 GNULIB_GETTIMEOFDAY
=1
20444 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
20449 for ac_header
in glob.h
20451 ac_fn_c_check_header_mongrel
"$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
20452 if test "x$ac_cv_header_glob_h" = xyes
; then :
20453 cat >>confdefs.h
<<_ACEOF
20454 #define HAVE_GLOB_H 1
20464 if test -z "$GLOB_H"; then
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
20466 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
20467 if ${gl_cv_gnu_glob_interface_version_1+:} false
; then :
20468 $as_echo_n "(cached) " >&6
20470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20471 /* end confdefs.h. */
20472 #include <gnu-versions.h>
20473 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
20475 if ac_fn_c_try_compile
"$LINENO"; then :
20476 gl_cv_gnu_glob_interface_version_1
=yes
20478 gl_cv_gnu_glob_interface_version_1
=no
20480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
20483 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
20485 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
20490 if test -z "$GLOB_H"; then
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
20492 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
20493 if ${gl_cv_glob_lists_symlinks+:} false
; then :
20494 $as_echo_n "(cached) " >&6
20496 if ln -s conf-doesntexist conf$$
-globtest 2>/dev
/null
; then
20497 gl_cv_glob_lists_symlinks
=maybe
20499 # If we can't make a symlink, then we cannot test this issue. Be
20500 # pessimistic about this.
20501 gl_cv_glob_lists_symlinks
=no
20504 if test $gl_cv_glob_lists_symlinks = maybe
; then
20505 if test "$cross_compiling" = yes; then :
20506 gl_cv_glob_lists_symlinks
=no
20508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h. */
20511 #include <stddef.h>
20517 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
20522 if ac_fn_c_try_run
"$LINENO"; then :
20523 gl_cv_glob_lists_symlinks
=yes
20525 gl_cv_glob_lists_symlinks
=no
20527 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20528 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
20534 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
20536 if test $gl_cv_glob_lists_symlinks = no
; then
20541 rm -f conf$$
-globtest
20544 if test -n "$GLOB_H"; then
20545 GL_GENERATE_GLOB_H_TRUE
=
20546 GL_GENERATE_GLOB_H_FALSE
='#'
20548 GL_GENERATE_GLOB_H_TRUE
='#'
20549 GL_GENERATE_GLOB_H_FALSE
=
20553 if test -n "$GLOB_H"; then
20562 gl_LIBOBJS
="$gl_LIBOBJS glob.$ac_objext"
20574 if test $ac_cv_header_sys_cdefs_h = yes; then
20616 if test $ac_cv_header_sys_socket_h != yes; then
20617 for ac_header
in winsock2.h
20619 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20620 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
20621 cat >>confdefs.h
<<_ACEOF
20622 #define HAVE_WINSOCK2_H 1
20630 if test "$ac_cv_header_winsock2_h" = yes; then
20632 UNISTD_H_HAVE_WINSOCK2_H
=1
20633 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
20639 if test $HAVE_WINSOCK2_H = 1; then
20640 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
20642 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
20648 cat >>confdefs.h
<<_ACEOF
20649 #define HAVE_DECL_INET_NTOP $ac_have_decl
20652 if test $ac_cv_have_decl_inet_ntop = yes; then
20653 REPLACE_INET_NTOP
=1
20654 INET_NTOP_LIB
="-lws2_32"
20656 HAVE_DECL_INET_NTOP
=0
20661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
20662 $as_echo_n "checking for library containing inet_ntop... " >&6; }
20663 if ${ac_cv_search_inet_ntop+:} false
; then :
20664 $as_echo_n "(cached) " >&6
20666 ac_func_search_save_LIBS
=$LIBS
20667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h. */
20670 /* Override any GCC internal prototype to avoid an error.
20671 Use char because int might match the return type of a GCC
20672 builtin and then its argument prototype would still apply. */
20680 return inet_ntop ();
20685 for ac_lib
in '' nsl resolv
; do
20686 if test -z "$ac_lib"; then
20687 ac_res
="none required"
20690 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
20692 if ac_fn_c_try_link
"$LINENO"; then :
20693 ac_cv_search_inet_ntop
=$ac_res
20695 rm -f core conftest.err conftest.
$ac_objext \
20697 if ${ac_cv_search_inet_ntop+:} false
; then :
20701 if ${ac_cv_search_inet_ntop+:} false
; then :
20704 ac_cv_search_inet_ntop
=no
20706 rm conftest.
$ac_ext
20707 LIBS
=$ac_func_search_save_LIBS
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
20710 $as_echo "$ac_cv_search_inet_ntop" >&6; }
20711 ac_res
=$ac_cv_search_inet_ntop
20712 if test "$ac_res" != no
; then :
20713 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
20716 for ac_func
in inet_ntop
20718 ac_fn_c_check_func
"$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
20719 if test "x$ac_cv_func_inet_ntop" = xyes
; then :
20720 cat >>confdefs.h
<<_ACEOF
20721 #define HAVE_INET_NTOP 1
20727 if test $ac_cv_func_inet_ntop = no
; then
20735 if test "$ac_cv_search_inet_ntop" != "no" \
20736 && test "$ac_cv_search_inet_ntop" != "none required"; then
20737 INET_NTOP_LIB
="$ac_cv_search_inet_ntop"
20747 ac_fn_c_check_decl
"$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
20749 # include <netdb.h>
20753 if test "x$ac_cv_have_decl_inet_ntop" = xyes
; then :
20759 cat >>confdefs.h
<<_ACEOF
20760 #define HAVE_DECL_INET_NTOP $ac_have_decl
20763 if test $ac_cv_have_decl_inet_ntop = no
; then
20764 HAVE_DECL_INET_NTOP
=0
20769 if test $HAVE_INET_NTOP = 0 ||
test $REPLACE_INET_NTOP = 1; then
20778 gl_LIBOBJS
="$gl_LIBOBJS inet_ntop.$ac_objext"
20800 if test -n "$STDINT_H"; then
20801 PRIPTR_PREFIX
='"l"'
20803 for glpfx
in '' l ll I64
; do
20805 '') gltype1
='int';;
20806 l
) gltype1
='long int';;
20807 ll
) gltype1
='long long int';;
20808 I64
) gltype1
='__int64';;
20810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20811 /* end confdefs.h. */
20812 #include <stdint.h>
20813 extern intptr_t foo;
20814 extern $gltype1 foo;
20823 if ac_fn_c_try_compile
"$LINENO"; then :
20824 PRIPTR_PREFIX
='"'$glpfx'"'
20826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20827 test -n "$PRIPTR_PREFIX" && break
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
20834 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
20835 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false
; then :
20836 $as_echo_n "(cached) " >&6
20838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h. */
20840 /* Work also in C++ mode. */
20841 #define __STDC_LIMIT_MACROS 1
20843 /* Work if build is not clean. */
20844 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20846 #include <limits.h>
20848 #include <stdint.h>
20851 #if defined INT32_MAX && defined INTMAX_MAX
20852 #define CONDITION (INT32_MAX < INTMAX_MAX)
20853 #elif HAVE_LONG_LONG_INT
20854 #define CONDITION (sizeof (int) < sizeof (long long int))
20856 #define CONDITION 0
20858 int test[CONDITION ? 1 : -1];
20867 if ac_fn_c_try_compile
"$LINENO"; then :
20868 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
20870 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
20872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
20875 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
20876 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
20877 INT32_MAX_LT_INTMAX_MAX
=1;
20879 INT32_MAX_LT_INTMAX_MAX
=0;
20883 if test $APPLE_UNIVERSAL_BUILD = 0; then
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
20886 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
20887 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false
; then :
20888 $as_echo_n "(cached) " >&6
20890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h. */
20892 /* Work also in C++ mode. */
20893 #define __STDC_LIMIT_MACROS 1
20895 /* Work if build is not clean. */
20896 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20898 #include <limits.h>
20900 #include <stdint.h>
20903 #if defined INT64_MAX
20904 #define CONDITION (INT64_MAX == LONG_MAX)
20905 #elif HAVE_LONG_LONG_INT
20906 #define CONDITION (sizeof (long long int) == sizeof (long int))
20908 #define CONDITION 0
20910 int test[CONDITION ? 1 : -1];
20919 if ac_fn_c_try_compile
"$LINENO"; then :
20920 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
20922 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
20924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
20927 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
20928 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
20929 INT64_MAX_EQ_LONG_MAX
=1;
20931 INT64_MAX_EQ_LONG_MAX
=0;
20936 INT64_MAX_EQ_LONG_MAX
=-1
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
20940 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
20941 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false
; then :
20942 $as_echo_n "(cached) " >&6
20944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20945 /* end confdefs.h. */
20946 /* Work also in C++ mode. */
20947 #define __STDC_LIMIT_MACROS 1
20949 /* Work if build is not clean. */
20950 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
20952 #include <limits.h>
20954 #include <stdint.h>
20957 #if defined UINT32_MAX && defined UINTMAX_MAX
20958 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
20959 #elif HAVE_LONG_LONG_INT
20960 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
20962 #define CONDITION 0
20964 int test[CONDITION ? 1 : -1];
20973 if ac_fn_c_try_compile
"$LINENO"; then :
20974 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
20976 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
20978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
20981 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
20982 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
20983 UINT32_MAX_LT_UINTMAX_MAX
=1;
20985 UINT32_MAX_LT_UINTMAX_MAX
=0;
20989 if test $APPLE_UNIVERSAL_BUILD = 0; then
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
20992 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
20993 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false
; then :
20994 $as_echo_n "(cached) " >&6
20996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20997 /* end confdefs.h. */
20998 /* Work also in C++ mode. */
20999 #define __STDC_LIMIT_MACROS 1
21001 /* Work if build is not clean. */
21002 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
21004 #include <limits.h>
21006 #include <stdint.h>
21009 #if defined UINT64_MAX
21010 #define CONDITION (UINT64_MAX == ULONG_MAX)
21011 #elif HAVE_LONG_LONG_INT
21012 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
21014 #define CONDITION 0
21016 int test[CONDITION ? 1 : -1];
21025 if ac_fn_c_try_compile
"$LINENO"; then :
21026 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
21028 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
21030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
21033 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
21034 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
21035 UINT64_MAX_EQ_ULONG_MAX
=1;
21037 UINT64_MAX_EQ_ULONG_MAX
=0;
21042 UINT64_MAX_EQ_ULONG_MAX
=-1
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
21050 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
21051 if ${gl_cv_func_isnand_no_libm+:} false
; then :
21052 $as_echo_n "(cached) " >&6
21055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21056 /* end confdefs.h. */
21060 # define isnand(x) __builtin_isnan ((double)(x))
21063 # define isnand(x) isnan ((double)(x))
21074 if ac_fn_c_try_link
"$LINENO"; then :
21075 gl_cv_func_isnand_no_libm
=yes
21077 gl_cv_func_isnand_no_libm
=no
21079 rm -f core conftest.err conftest.
$ac_objext \
21080 conftest
$ac_exeext conftest.
$ac_ext
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
21084 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
21086 gl_func_isnand_no_libm
=$gl_cv_func_isnand_no_libm
21087 if test $gl_cv_func_isnand_no_libm = yes; then
21089 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
21093 if test $gl_func_isnand_no_libm != yes; then
21102 gl_LIBOBJS
="$gl_LIBOBJS isnand.$ac_objext"
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
21111 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
21112 if ${gl_cv_func_isnanl_no_libm+:} false
; then :
21113 $as_echo_n "(cached) " >&6
21116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21117 /* end confdefs.h. */
21121 # define isnanl(x) __builtin_isnanl ((long double)(x))
21122 #elif defined isnan
21124 # define isnanl(x) isnan ((long double)(x))
21135 if ac_fn_c_try_link
"$LINENO"; then :
21136 gl_cv_func_isnanl_no_libm
=yes
21138 gl_cv_func_isnanl_no_libm
=no
21140 rm -f core conftest.err conftest.
$ac_objext \
21141 conftest
$ac_exeext conftest.
$ac_ext
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
21145 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
21147 gl_func_isnanl_no_libm
=$gl_cv_func_isnanl_no_libm
21148 if test $gl_func_isnanl_no_libm = yes; then
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
21154 $as_echo_n "checking whether isnanl works... " >&6; }
21155 if ${gl_cv_func_isnanl_works+:} false
; then :
21156 $as_echo_n "(cached) " >&6
21159 if test "$cross_compiling" = yes; then :
21160 gl_cv_func_isnanl_works
="guessing yes"
21162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21163 /* end confdefs.h. */
21166 #include <limits.h>
21170 # define isnanl(x) __builtin_isnanl ((long double)(x))
21171 #elif defined isnan
21173 # define isnanl(x) isnan ((long double)(x))
21176 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21177 typedef union { unsigned int word[NWORDS]; long double value; }
21178 memory_long_double;
21179 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
21180 runtime type conversion. */
21182 static long double NaNl ()
21185 return zero / zero;
21188 # define NaNl() (0.0L / 0.0L)
21194 if (!isnanl (NaNl ()))
21198 memory_long_double m;
21201 /* The isnanl function should be immune against changes in the sign bit and
21202 in the mantissa bits. The xor operation twiddles a bit that can only be
21203 a sign bit or a mantissa bit (since the exponent never extends to
21206 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
21207 for (i = 0; i < NWORDS; i++)
21209 if (!isnanl (m.value))
21213 #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
21214 /* Representation of an 80-bit 'long double' as an initializer for a sequence
21215 of 'unsigned int' words. */
21216 # ifdef WORDS_BIGENDIAN
21217 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21218 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
21219 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
21220 (unsigned int) (mantlo) << 16 \
21223 # define LDBL80_WORDS(exponent,manthi,mantlo) \
21224 { mantlo, manthi, exponent }
21227 static memory_long_double x =
21228 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
21229 if (!isnanl (x.value))
21233 /* Signalling NaN. */
21234 static memory_long_double x =
21235 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
21236 if (!isnanl (x.value))
21239 /* isnanl should return something even for noncanonical values. */
21240 { /* Pseudo-NaN. */
21241 static memory_long_double x =
21242 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
21243 if (isnanl (x.value) && !isnanl (x.value))
21246 { /* Pseudo-Infinity. */
21247 static memory_long_double x =
21248 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
21249 if (isnanl (x.value) && !isnanl (x.value))
21252 { /* Pseudo-Zero. */
21253 static memory_long_double x =
21254 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
21255 if (isnanl (x.value) && !isnanl (x.value))
21258 { /* Unnormalized number. */
21259 static memory_long_double x =
21260 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
21261 if (isnanl (x.value) && !isnanl (x.value))
21264 { /* Pseudo-Denormal. */
21265 static memory_long_double x =
21266 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
21267 if (isnanl (x.value) && !isnanl (x.value))
21275 if ac_fn_c_try_run
"$LINENO"; then :
21276 gl_cv_func_isnanl_works
=yes
21278 gl_cv_func_isnanl_works
=no
21280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
21287 $as_echo "$gl_cv_func_isnanl_works" >&6; }
21289 case "$gl_cv_func_isnanl_works" in
21291 *) gl_func_isnanl_no_libm
=no
;;
21294 if test $gl_func_isnanl_no_libm = yes; then
21296 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
21300 if test $gl_func_isnanl_no_libm != yes; then
21309 gl_LIBOBJS
="$gl_LIBOBJS isnanl.$ac_objext"
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
21315 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
21316 if ${gl_cv_cc_long_double_expbit0+:} false
; then :
21317 $as_echo_n "(cached) " >&6
21320 if test "$cross_compiling" = yes; then :
21322 gl_cv_cc_long_double_expbit0
="unknown"
21325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21326 /* end confdefs.h. */
21329 #include <stddef.h>
21331 #include <string.h>
21333 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
21334 typedef union { long double value; unsigned int word[NWORDS]; }
21335 memory_long_double;
21336 static unsigned int ored_words[NWORDS];
21337 static unsigned int anded_words[NWORDS];
21338 static void add_to_ored_words (long double x)
21340 memory_long_double m;
21342 /* Clear it first, in case
21343 sizeof (long double) < sizeof (memory_long_double). */
21344 memset (&m, 0, sizeof (memory_long_double));
21346 for (i = 0; i < NWORDS; i++)
21348 ored_words[i] |= m.word[i];
21349 anded_words[i] &= m.word[i];
21355 FILE *fp = fopen ("conftest.out", "w");
21358 for (j = 0; j < NWORDS; j++)
21359 anded_words[j] = ~ (unsigned int) 0;
21360 add_to_ored_words (0.25L);
21361 add_to_ored_words (0.5L);
21362 add_to_ored_words (1.0L);
21363 add_to_ored_words (2.0L);
21364 add_to_ored_words (4.0L);
21365 /* Remove bits that are common (e.g. if representation of the first mantissa
21366 bit is explicit). */
21367 for (j = 0; j < NWORDS; j++)
21368 ored_words[j] &= ~anded_words[j];
21369 /* Now find the nonzero word. */
21370 for (j = 0; j < NWORDS; j++)
21371 if (ored_words[j] != 0)
21376 for (i = j + 1; i < NWORDS; i++)
21377 if (ored_words[i] != 0)
21379 fprintf (fp, "unknown");
21380 return (fclose (fp) != 0);
21383 if ((ored_words[j] >> i) & 1)
21385 fprintf (fp, "word %d bit %d", (int) j, (int) i);
21386 return (fclose (fp) != 0);
21389 fprintf (fp, "unknown");
21390 return (fclose (fp) != 0);
21394 if ac_fn_c_try_run
"$LINENO"; then :
21395 gl_cv_cc_long_double_expbit0
=`cat conftest.out`
21397 gl_cv_cc_long_double_expbit0
="unknown"
21399 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21400 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
21407 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
21408 case "$gl_cv_cc_long_double_expbit0" in
21410 word
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
21411 bit
=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
21413 cat >>confdefs.h
<<_ACEOF
21414 #define LDBL_EXPBIT0_WORD $word
21418 cat >>confdefs.h
<<_ACEOF
21419 #define LDBL_EXPBIT0_BIT $bit
21444 LOCALCHARSET_TESTS_ENVIRONMENT
="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
21448 if test "$gl_threads_api" = posix
; then
21449 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
21450 # pthread_rwlock_* functions.
21451 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21453 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
21455 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21459 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21461 /* end confdefs.h. */
21463 #include <pthread.h>
21468 #if __FreeBSD__ == 4
21469 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21470 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
21471 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
21472 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
21474 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21482 if ac_fn_c_try_compile
"$LINENO"; then :
21484 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21493 cat >>confdefs.h
<<_ACEOF
21494 #define GNULIB_LOCK 1
21507 if test $ac_cv_func_lstat = yes; then
21509 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21518 if test $REPLACE_LSTAT = 1; then
21527 gl_LIBOBJS
="$gl_LIBOBJS lstat.$ac_objext"
21542 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
21549 if test $gl_cv_func_malloc_posix = yes; then
21551 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21557 if test $REPLACE_MALLOC = 1; then
21566 gl_LIBOBJS
="$gl_LIBOBJS malloc.$ac_objext"
21574 GNULIB_MALLOC_POSIX
=1
21580 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21605 if test $gl_cv_have_include_next = yes; then
21606 gl_cv_next_math_h
='<'math.h
'>'
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
21609 $as_echo_n "checking absolute name of <math.h>... " >&6; }
21610 if ${gl_cv_next_math_h+:} false
; then :
21611 $as_echo_n "(cached) " >&6
21614 if test $ac_cv_header_math_h = yes; then
21619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21620 /* end confdefs.h. */
21624 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
21625 *) gl_absname_cpp
="$ac_cpp" ;;
21630 gl_dirsep_regex
='[/\\]'
21633 gl_dirsep_regex
='\/'
21636 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
21637 gl_header_literal_regex
=`echo 'math.h' \
21638 | sed -e "$gl_make_literal_regex_sed"`
21639 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21640 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21646 gl_cv_absolute_math_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21647 sed -n "$gl_absolute_header_sed"`
21649 gl_header
=$gl_cv_absolute_math_h
21650 gl_cv_next_math_h
='"'$gl_header'"'
21652 gl_cv_next_math_h
='<'math.h
'>'
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
21658 $as_echo "$gl_cv_next_math_h" >&6; }
21660 NEXT_MATH_H
=$gl_cv_next_math_h
21662 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
21663 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21664 gl_next_as_first_directive
='<'math.h
'>'
21666 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21667 gl_next_as_first_directive
=$gl_cv_next_math_h
21669 NEXT_AS_FIRST_DIRECTIVE_MATH_H
=$gl_next_as_first_directive
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
21676 $as_echo_n "checking whether NAN macro works... " >&6; }
21677 if ${gl_cv_header_math_nan_works+:} false
; then :
21678 $as_echo_n "(cached) " >&6
21680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21681 /* end confdefs.h. */
21686 /* Solaris 10 has a broken definition of NAN. Other platforms
21687 fail to provide NAN, or provide it only in C99 mode; this
21688 test only needs to fail when NAN is provided but wrong. */
21698 if ac_fn_c_try_compile
"$LINENO"; then :
21699 gl_cv_header_math_nan_works
=yes
21701 gl_cv_header_math_nan_works
=no
21703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
21706 $as_echo "$gl_cv_header_math_nan_works" >&6; }
21707 if test $gl_cv_header_math_nan_works = no
; then
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
21711 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
21712 if ${gl_cv_header_math_huge_val_works+:} false
; then :
21713 $as_echo_n "(cached) " >&6
21715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21716 /* end confdefs.h. */
21721 /* Solaris 10 has a broken definition of HUGE_VAL. */
21722 double d = HUGE_VAL;
21728 if ac_fn_c_try_compile
"$LINENO"; then :
21729 gl_cv_header_math_huge_val_works
=yes
21731 gl_cv_header_math_huge_val_works
=no
21733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
21736 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
21737 if test $gl_cv_header_math_huge_val_works = no
; then
21742 for gl_func
in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl
; do
21743 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21745 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21746 if eval \
${$as_gl_Symbol+:} false
; then :
21747 $as_echo_n "(cached) " >&6
21749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21750 /* end confdefs.h. */
21761 if ac_fn_c_try_compile
"$LINENO"; then :
21762 eval "$as_gl_Symbol=yes"
21764 eval "$as_gl_Symbol=no"
21766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21768 eval ac_res
=\$
$as_gl_Symbol
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21770 $as_echo "$ac_res" >&6; }
21771 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
21772 cat >>confdefs.h
<<_ACEOF
21773 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21776 eval ac_cv_have_decl_
$gl_func=yes
21803 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
21808 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
21809 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
21810 $as_echo_n "(cached) " >&6
21814 # Guess no on AIX and OSF/1.
21815 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
21816 # Guess yes otherwise.
21817 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
21819 if test $LOCALE_JA != none
; then
21820 if test "$cross_compiling" = yes; then :
21823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21824 /* end confdefs.h. */
21826 #include <locale.h>
21827 #include <string.h>
21828 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21830 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21831 included before <wchar.h>. */
21832 #include <stddef.h>
21838 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
21840 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
21844 memset (&state, '\0', sizeof (mbstate_t));
21845 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
21846 if (mbsinit (&state))
21852 if ac_fn_c_try_run
"$LINENO"; then :
21853 gl_cv_func_mbrtowc_incomplete_state
=yes
21855 gl_cv_func_mbrtowc_incomplete_state
=no
21857 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21858 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
21865 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
21871 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
21872 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
21873 $as_echo_n "(cached) " >&6
21877 # Guess no on Solaris 8.
21878 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
21879 # Guess yes otherwise.
21880 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
21882 if test $LOCALE_ZH_CN != none
; then
21883 if test "$cross_compiling" = yes; then :
21886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21887 /* end confdefs.h. */
21889 #include <locale.h>
21890 #include <stdlib.h>
21891 #include <string.h>
21892 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21894 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21895 included before <wchar.h>. */
21896 #include <stddef.h>
21902 /* This fails on Solaris 8:
21903 mbrtowc returns 2, and sets wc to 0x00F0.
21904 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
21905 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
21907 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
21911 memset (&state, '\0', sizeof (mbstate_t));
21912 if (mbrtowc (&wc, input + 3, 6, &state) != 4
21913 && mbtowc (&wc, input + 3, 6) == 4)
21919 if ac_fn_c_try_run
"$LINENO"; then :
21920 gl_cv_func_mbrtowc_sanitycheck
=yes
21922 gl_cv_func_mbrtowc_sanitycheck
=no
21924 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21925 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
21932 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
21934 REPLACE_MBSTATE_T
=0
21935 case "$gl_cv_func_mbrtowc_incomplete_state" in
21937 *) REPLACE_MBSTATE_T
=1 ;;
21939 case "$gl_cv_func_mbrtowc_sanitycheck" in
21941 *) REPLACE_MBSTATE_T
=1 ;;
21944 REPLACE_MBSTATE_T
=1
21955 if test $ac_cv_func_mbrtowc = no
; then
21957 ac_fn_c_check_decl
"$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
21958 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21960 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21961 included before <wchar.h>. */
21962 #include <stddef.h>
21968 if test "x$ac_cv_have_decl_mbrtowc" = xyes
; then :
21974 cat >>confdefs.h
<<_ACEOF
21975 #define HAVE_DECL_MBRTOWC $ac_have_decl
21978 if test $ac_cv_have_decl_mbrtowc = yes; then
21982 if test $REPLACE_MBSTATE_T = 1; then
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
21989 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
21990 if ${gl_cv_func_mbrtowc_null_arg1+:} false
; then :
21991 $as_echo_n "(cached) " >&6
21995 # Guess no on Solaris.
21996 solaris
*) gl_cv_func_mbrtowc_null_arg1
="guessing no" ;;
21997 # Guess yes otherwise.
21998 *) gl_cv_func_mbrtowc_null_arg1
="guessing yes" ;;
22000 if test $LOCALE_FR_UTF8 != none
; then
22001 if test "$cross_compiling" = yes; then :
22004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22005 /* end confdefs.h. */
22007 #include <locale.h>
22008 #include <stdlib.h>
22009 #include <string.h>
22010 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22012 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22013 included before <wchar.h>. */
22014 #include <stddef.h>
22022 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22024 char input[] = "\303\237er";
22029 memset (&state, '\0', sizeof (mbstate_t));
22030 wc = (wchar_t) 0xBADFACE;
22031 ret = mbrtowc (&wc, input, 5, &state);
22034 if (!mbsinit (&state))
22037 memset (&state, '\0', sizeof (mbstate_t));
22038 ret = mbrtowc (NULL, input, 5, &state);
22039 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
22041 if (!mbsinit (&state))
22047 if ac_fn_c_try_run
"$LINENO"; then :
22048 gl_cv_func_mbrtowc_null_arg1
=yes
22050 gl_cv_func_mbrtowc_null_arg1
=no
22052 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22053 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
22060 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
22066 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
22067 if ${gl_cv_func_mbrtowc_null_arg2+:} false
; then :
22068 $as_echo_n "(cached) " >&6
22072 # Guess no on OSF/1.
22073 osf
*) gl_cv_func_mbrtowc_null_arg2
="guessing no" ;;
22074 # Guess yes otherwise.
22075 *) gl_cv_func_mbrtowc_null_arg2
="guessing yes" ;;
22077 if test $LOCALE_FR_UTF8 != none
; then
22078 if test "$cross_compiling" = yes; then :
22081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h. */
22084 #include <locale.h>
22085 #include <string.h>
22086 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22088 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22089 included before <wchar.h>. */
22090 #include <stddef.h>
22096 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22102 memset (&state, '\0', sizeof (mbstate_t));
22103 wc = (wchar_t) 0xBADFACE;
22104 mbrtowc (&wc, NULL, 5, &state);
22105 /* Check that wc was not modified. */
22106 if (wc != (wchar_t) 0xBADFACE)
22112 if ac_fn_c_try_run
"$LINENO"; then :
22113 gl_cv_func_mbrtowc_null_arg2
=yes
22115 gl_cv_func_mbrtowc_null_arg2
=no
22117 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22118 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
22125 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
22133 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
22134 if ${gl_cv_func_mbrtowc_retval+:} false
; then :
22135 $as_echo_n "(cached) " >&6
22139 # Guess no on HP-UX, Solaris, native Windows.
22140 hpux
* | solaris
* | mingw
*) gl_cv_func_mbrtowc_retval
="guessing no" ;;
22141 # Guess yes otherwise.
22142 *) gl_cv_func_mbrtowc_retval
="guessing yes" ;;
22144 if test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none \
22145 ||
{ case "$host_os" in mingw
*) true
;; *) false
;; esac; }; then
22146 if test "$cross_compiling" = yes; then :
22149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22150 /* end confdefs.h. */
22152 #include <locale.h>
22153 #include <string.h>
22154 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22156 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22157 included before <wchar.h>. */
22158 #include <stddef.h>
22165 int found_some_locale = 0;
22166 /* This fails on Solaris. */
22167 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
22169 char input[] = "B\303\274\303\237er"; /* "Büßer" */
22173 memset (&state, '\0', sizeof (mbstate_t));
22174 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22177 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
22180 found_some_locale = 1;
22182 /* This fails on HP-UX 11.11. */
22183 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22185 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22189 memset (&state, '\0', sizeof (mbstate_t));
22190 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22193 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
22196 found_some_locale = 1;
22198 /* This fails on native Windows. */
22199 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
22201 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
22205 memset (&state, '\0', sizeof (mbstate_t));
22206 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22209 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22212 found_some_locale = 1;
22214 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
22216 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
22220 memset (&state, '\0', sizeof (mbstate_t));
22221 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22224 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22227 found_some_locale = 1;
22229 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
22231 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
22235 memset (&state, '\0', sizeof (mbstate_t));
22236 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
22239 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
22242 found_some_locale = 1;
22244 return (found_some_locale ? result : 77);
22247 if ac_fn_c_try_run
"$LINENO"; then :
22248 gl_cv_func_mbrtowc_retval
=yes
22250 if test $?
!= 77; then
22251 gl_cv_func_mbrtowc_retval
=no
22255 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22256 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
22263 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
22269 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
22270 if ${gl_cv_func_mbrtowc_nul_retval+:} false
; then :
22271 $as_echo_n "(cached) " >&6
22275 # Guess no on Solaris 8 and 9.
22276 solaris2.
[89]) gl_cv_func_mbrtowc_nul_retval
="guessing no" ;;
22277 # Guess yes otherwise.
22278 *) gl_cv_func_mbrtowc_nul_retval
="guessing yes" ;;
22280 if test $LOCALE_ZH_CN != none
; then
22281 if test "$cross_compiling" = yes; then :
22284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22285 /* end confdefs.h. */
22287 #include <locale.h>
22288 #include <string.h>
22289 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22291 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22292 included before <wchar.h>. */
22293 #include <stddef.h>
22299 /* This fails on Solaris 8 and 9. */
22300 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22305 memset (&state, '\0', sizeof (mbstate_t));
22306 if (mbrtowc (&wc, "", 1, &state) != 0)
22312 if ac_fn_c_try_run
"$LINENO"; then :
22313 gl_cv_func_mbrtowc_nul_retval
=yes
22315 gl_cv_func_mbrtowc_nul_retval
=no
22317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22318 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
22325 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
22330 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
22331 if ${gl_cv_func_mbrtowc_empty_input+:} false
; then :
22332 $as_echo_n "(cached) " >&6
22336 # Guess no on AIX and glibc systems.
22338 gl_cv_func_mbrtowc_empty_input
="guessing no" ;;
22339 *) gl_cv_func_mbrtowc_empty_input
="guessing yes" ;;
22341 if test "$cross_compiling" = yes; then :
22344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22345 /* end confdefs.h. */
22349 static mbstate_t mbs;
22353 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
22356 if ac_fn_c_try_run
"$LINENO"; then :
22357 gl_cv_func_mbrtowc_empty_input
=yes
22359 gl_cv_func_mbrtowc_empty_input
=no
22361 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22362 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
22368 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
22372 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
22373 if ${gl_cv_C_locale_sans_EILSEQ+:} false
; then :
22374 $as_echo_n "(cached) " >&6
22377 gl_cv_C_locale_sans_EILSEQ
="guessing no"
22379 if test "$cross_compiling" = yes; then :
22382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22383 /* end confdefs.h. */
22384 #include <limits.h>
22385 #include <locale.h>
22393 char *locale = setlocale (LC_ALL, "C");
22396 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
22400 mbstate_t mbs = { 0, };
22401 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
22411 if ac_fn_c_try_run
"$LINENO"; then :
22412 gl_cv_C_locale_sans_EILSEQ
=yes
22414 gl_cv_C_locale_sans_EILSEQ
=no
22416 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22417 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
22422 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
22424 case "$gl_cv_func_mbrtowc_null_arg1" in
22427 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
22432 case "$gl_cv_func_mbrtowc_null_arg2" in
22435 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
22440 case "$gl_cv_func_mbrtowc_retval" in
22443 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
22448 case "$gl_cv_func_mbrtowc_nul_retval" in
22451 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
22456 case "$gl_cv_func_mbrtowc_empty_input" in
22459 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
22464 case $gl_cv_C_locale_sans_EILSEQ in
22467 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
22475 if test $HAVE_MBRTOWC = 0 ||
test $REPLACE_MBRTOWC = 1; then
22484 gl_LIBOBJS
="$gl_LIBOBJS mbrtowc.$ac_objext"
22501 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
22528 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22533 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22534 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
22535 $as_echo_n "(cached) " >&6
22539 # Guess no on AIX and OSF/1.
22540 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
22541 # Guess yes otherwise.
22542 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
22544 if test $LOCALE_JA != none
; then
22545 if test "$cross_compiling" = yes; then :
22548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22549 /* end confdefs.h. */
22551 #include <locale.h>
22552 #include <string.h>
22553 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22555 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22556 included before <wchar.h>. */
22557 #include <stddef.h>
22563 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22565 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22569 memset (&state, '\0', sizeof (mbstate_t));
22570 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22571 if (mbsinit (&state))
22577 if ac_fn_c_try_run
"$LINENO"; then :
22578 gl_cv_func_mbrtowc_incomplete_state
=yes
22580 gl_cv_func_mbrtowc_incomplete_state
=no
22582 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22583 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22590 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22596 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22597 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22598 $as_echo_n "(cached) " >&6
22602 # Guess no on Solaris 8.
22603 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22604 # Guess yes otherwise.
22605 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22607 if test $LOCALE_ZH_CN != none
; then
22608 if test "$cross_compiling" = yes; then :
22611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22612 /* end confdefs.h. */
22614 #include <locale.h>
22615 #include <stdlib.h>
22616 #include <string.h>
22617 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22619 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22620 included before <wchar.h>. */
22621 #include <stddef.h>
22627 /* This fails on Solaris 8:
22628 mbrtowc returns 2, and sets wc to 0x00F0.
22629 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22630 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22632 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22636 memset (&state, '\0', sizeof (mbstate_t));
22637 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22638 && mbtowc (&wc, input + 3, 6) == 4)
22644 if ac_fn_c_try_run
"$LINENO"; then :
22645 gl_cv_func_mbrtowc_sanitycheck
=yes
22647 gl_cv_func_mbrtowc_sanitycheck
=no
22649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22650 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22657 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22659 REPLACE_MBSTATE_T
=0
22660 case "$gl_cv_func_mbrtowc_incomplete_state" in
22662 *) REPLACE_MBSTATE_T
=1 ;;
22664 case "$gl_cv_func_mbrtowc_sanitycheck" in
22666 *) REPLACE_MBSTATE_T
=1 ;;
22669 REPLACE_MBSTATE_T
=1
22680 if test $ac_cv_func_mbsinit = no
; then
22682 ac_fn_c_check_decl
"$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
22683 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22685 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22686 included before <wchar.h>. */
22687 #include <stddef.h>
22693 if test "x$ac_cv_have_decl_mbsinit" = xyes
; then :
22699 cat >>confdefs.h
<<_ACEOF
22700 #define HAVE_DECL_MBSINIT $ac_have_decl
22703 if test $ac_cv_have_decl_mbsinit = yes; then
22707 if test $REPLACE_MBSTATE_T = 1; then
22711 mingw
*) REPLACE_MBSINIT
=1 ;;
22716 if test $HAVE_MBSINIT = 0 ||
test $REPLACE_MBSINIT = 1; then
22725 gl_LIBOBJS
="$gl_LIBOBJS mbsinit.$ac_objext"
22742 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
22768 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
22773 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
22774 if ${gl_cv_func_mbrtowc_incomplete_state+:} false
; then :
22775 $as_echo_n "(cached) " >&6
22779 # Guess no on AIX and OSF/1.
22780 aix
* | osf
*) gl_cv_func_mbrtowc_incomplete_state
="guessing no" ;;
22781 # Guess yes otherwise.
22782 *) gl_cv_func_mbrtowc_incomplete_state
="guessing yes" ;;
22784 if test $LOCALE_JA != none
; then
22785 if test "$cross_compiling" = yes; then :
22788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22789 /* end confdefs.h. */
22791 #include <locale.h>
22792 #include <string.h>
22793 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22795 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22796 included before <wchar.h>. */
22797 #include <stddef.h>
22803 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
22805 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
22809 memset (&state, '\0', sizeof (mbstate_t));
22810 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
22811 if (mbsinit (&state))
22817 if ac_fn_c_try_run
"$LINENO"; then :
22818 gl_cv_func_mbrtowc_incomplete_state
=yes
22820 gl_cv_func_mbrtowc_incomplete_state
=no
22822 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22823 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
22830 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
22836 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
22837 if ${gl_cv_func_mbrtowc_sanitycheck+:} false
; then :
22838 $as_echo_n "(cached) " >&6
22842 # Guess no on Solaris 8.
22843 solaris2.8
) gl_cv_func_mbrtowc_sanitycheck
="guessing no" ;;
22844 # Guess yes otherwise.
22845 *) gl_cv_func_mbrtowc_sanitycheck
="guessing yes" ;;
22847 if test $LOCALE_ZH_CN != none
; then
22848 if test "$cross_compiling" = yes; then :
22851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22852 /* end confdefs.h. */
22854 #include <locale.h>
22855 #include <stdlib.h>
22856 #include <string.h>
22857 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22859 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22860 included before <wchar.h>. */
22861 #include <stddef.h>
22867 /* This fails on Solaris 8:
22868 mbrtowc returns 2, and sets wc to 0x00F0.
22869 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
22870 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
22872 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
22876 memset (&state, '\0', sizeof (mbstate_t));
22877 if (mbrtowc (&wc, input + 3, 6, &state) != 4
22878 && mbtowc (&wc, input + 3, 6) == 4)
22884 if ac_fn_c_try_run
"$LINENO"; then :
22885 gl_cv_func_mbrtowc_sanitycheck
=yes
22887 gl_cv_func_mbrtowc_sanitycheck
=no
22889 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22890 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
22897 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
22899 REPLACE_MBSTATE_T
=0
22900 case "$gl_cv_func_mbrtowc_incomplete_state" in
22902 *) REPLACE_MBSTATE_T
=1 ;;
22904 case "$gl_cv_func_mbrtowc_sanitycheck" in
22906 *) REPLACE_MBSTATE_T
=1 ;;
22909 REPLACE_MBSTATE_T
=1
22920 if test $ac_cv_func_mbsrtowcs = no
; then
22922 ac_fn_c_check_decl
"$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
22923 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22925 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22926 included before <wchar.h>. */
22927 #include <stddef.h>
22933 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes
; then :
22939 cat >>confdefs.h
<<_ACEOF
22940 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
22943 if test $ac_cv_have_decl_mbsrtowcs = yes; then
22944 REPLACE_MBSRTOWCS
=1
22947 if test $REPLACE_MBSTATE_T = 1; then
22948 REPLACE_MBSRTOWCS
=1
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
22957 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
22958 if ${gl_cv_func_mbsrtowcs_works+:} false
; then :
22959 $as_echo_n "(cached) " >&6
22963 # Guess no on HP-UX, Solaris, mingw.
22964 hpux
* | solaris
* | mingw
*) gl_cv_func_mbsrtowcs_works
="guessing no" ;;
22965 # Guess yes otherwise.
22966 *) gl_cv_func_mbsrtowcs_works
="guessing yes" ;;
22968 if test $LOCALE_FR != none ||
test $LOCALE_FR_UTF8 != none ||
test $LOCALE_JA != none ||
test $LOCALE_ZH_CN != none
; then
22969 if test "$cross_compiling" = yes; then :
22972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22973 /* end confdefs.h. */
22975 #include <locale.h>
22976 #include <string.h>
22977 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22979 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22980 included before <wchar.h>. */
22981 #include <stddef.h>
22988 /* Test whether the function supports a NULL destination argument.
22989 This fails on native Windows. */
22990 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
22992 const char input[] = "\337er";
22993 const char *src = input;
22996 memset (&state, '\0', sizeof (mbstate_t));
22997 if (mbsrtowcs (NULL, &src, 1, &state) != 3
23001 /* Test whether the function works when started with a conversion state
23002 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
23003 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
23005 const char input[] = "B\303\274\303\237er";
23008 memset (&state, '\0', sizeof (mbstate_t));
23009 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
23010 if (!mbsinit (&state))
23012 const char *src = input + 2;
23013 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
23017 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
23019 const char input[] = "<\306\374\313\334\270\354>";
23022 memset (&state, '\0', sizeof (mbstate_t));
23023 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
23024 if (!mbsinit (&state))
23026 const char *src = input + 4;
23027 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
23031 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
23033 const char input[] = "B\250\271\201\060\211\070er";
23036 memset (&state, '\0', sizeof (mbstate_t));
23037 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
23038 if (!mbsinit (&state))
23040 const char *src = input + 2;
23041 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
23048 if ac_fn_c_try_run
"$LINENO"; then :
23049 gl_cv_func_mbsrtowcs_works
=yes
23051 gl_cv_func_mbsrtowcs_works
=no
23053 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23054 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
23061 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
23063 case "$gl_cv_func_mbsrtowcs_works" in
23065 *) REPLACE_MBSRTOWCS
=1 ;;
23070 if test $HAVE_MBSRTOWCS = 0 ||
test $REPLACE_MBSRTOWCS = 1; then
23079 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs.$ac_objext"
23089 gl_LIBOBJS
="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
23106 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
23111 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
23120 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
23123 for ac_header
in bp-sym.h
23125 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
23126 if test "x$ac_cv_header_bp_sym_h" = xyes
; then :
23127 cat >>confdefs.h
<<_ACEOF
23128 #define HAVE_BP_SYM_H 1
23148 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
23154 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
23155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
23156 $as_echo_n "checking whether memmem works in linear time... " >&6; }
23157 if ${gl_cv_func_memmem_works_fast+:} false
; then :
23158 $as_echo_n "(cached) " >&6
23160 if test "$cross_compiling" = yes; then :
23161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23162 /* end confdefs.h. */
23164 #include <features.h>
23165 #ifdef __GNU_LIBRARY__
23166 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
23167 && !defined __UCLIBC__
23172 #include <cygwin/version.h>
23173 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
23179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23180 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23181 gl_cv_func_memmem_works_fast
="guessing yes"
23183 gl_cv_func_memmem_works_fast
="guessing no"
23189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23190 /* end confdefs.h. */
23192 #include <signal.h> /* for signal */
23193 #include <string.h> /* for memmem */
23194 #include <stdlib.h> /* for malloc */
23195 #include <unistd.h> /* for alarm */
23196 static void quit (int sig) { _exit (sig + 128); }
23203 size_t m = 1000000;
23204 char *haystack = (char *) malloc (2 * m + 1);
23205 char *needle = (char *) malloc (m + 1);
23206 /* Failure to compile this test due to missing alarm is okay,
23207 since all such platforms (mingw) also lack memmem. */
23208 signal (SIGALRM, quit);
23210 /* Check for quadratic performance. */
23211 if (haystack && needle)
23213 memset (haystack, 'A', 2 * m);
23214 haystack[2 * m] = 'B';
23215 memset (needle, 'A', m);
23217 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
23226 if ac_fn_c_try_run
"$LINENO"; then :
23227 gl_cv_func_memmem_works_fast
=yes
23229 gl_cv_func_memmem_works_fast
=no
23231 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23232 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
23238 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
23239 case "$gl_cv_func_memmem_works_fast" in
23247 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
23256 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
23263 for ac_func
in memmem
23265 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
23266 if test "x$ac_cv_func_memmem" = xyes
; then :
23267 cat >>confdefs.h
<<_ACEOF
23268 #define HAVE_MEMMEM 1
23274 if test $ac_cv_func_memmem = yes; then
23286 if test $ac_cv_have_decl_memmem = no
; then
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
23290 $as_echo_n "checking whether memmem works... " >&6; }
23291 if ${gl_cv_func_memmem_works_always+:} false
; then :
23292 $as_echo_n "(cached) " >&6
23294 if test "$cross_compiling" = yes; then :
23295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23296 /* end confdefs.h. */
23298 #ifdef __GNU_LIBRARY__
23299 #include <features.h>
23300 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
23301 || __GLIBC_MINOR__ > 12)) \
23302 || (__GLIBC__ > 2)) \
23303 || defined __UCLIBC__
23306 #elif defined __CYGWIN__
23307 #include <cygwin/version.h>
23308 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
23316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23317 $EGREP "Lucky user" >/dev
/null
2>&1; then :
23318 gl_cv_func_memmem_works_always
="guessing yes"
23320 gl_cv_func_memmem_works_always
="guessing no"
23326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23327 /* end confdefs.h. */
23329 #include <string.h> /* for memmem */
23330 #define P "_EF_BF_BD"
23331 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
23332 #define NEEDLE P P P P P
23339 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
23341 /* Check for empty needle behavior. */
23343 const char *haystack = "AAA";
23344 if (memmem (haystack, 3, NULL, 0) != haystack)
23353 if ac_fn_c_try_run
"$LINENO"; then :
23354 gl_cv_func_memmem_works_always
=yes
23356 gl_cv_func_memmem_works_always
=no
23358 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23359 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
23365 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
23366 case "$gl_cv_func_memmem_works_always" in
23375 if test $HAVE_MEMMEM = 0 ||
test $REPLACE_MEMMEM = 1; then
23384 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
23398 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
23408 for ac_func
in mempcpy
23410 ac_fn_c_check_func
"$LINENO" "mempcpy" "ac_cv_func_mempcpy"
23411 if test "x$ac_cv_func_mempcpy" = xyes
; then :
23412 cat >>confdefs.h
<<_ACEOF
23413 #define HAVE_MEMPCPY 1
23419 if test $ac_cv_func_mempcpy = no
; then
23423 if test $HAVE_MEMPCPY = 0; then
23432 gl_LIBOBJS
="$gl_LIBOBJS mempcpy.$ac_objext"
23449 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
23464 if test $ac_cv_have_decl_memrchr = no
; then
23465 HAVE_DECL_MEMRCHR
=0
23468 for ac_func
in memrchr
23470 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
23471 if test "x$ac_cv_func_memrchr" = xyes
; then :
23472 cat >>confdefs.h
<<_ACEOF
23473 #define HAVE_MEMRCHR 1
23480 if test $ac_cv_func_memrchr = no
; then
23489 gl_LIBOBJS
="$gl_LIBOBJS memrchr.$ac_objext"
23504 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
23517 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
23518 if ${gl_cv_func_mkdir_trailing_slash_works+:} false
; then :
23519 $as_echo_n "(cached) " >&6
23521 rm -rf conftest.dir
23522 if test "$cross_compiling" = yes; then :
23524 # Guess yes on glibc systems.
23525 *-gnu*) gl_cv_func_mkdir_trailing_slash_works
="guessing yes" ;;
23526 # If we don't know, assume the worst.
23527 *) gl_cv_func_mkdir_trailing_slash_works
="guessing no" ;;
23531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23532 /* end confdefs.h. */
23534 # include <sys/types.h>
23535 # include <sys/stat.h>
23540 return mkdir ("conftest.dir/", 0700);
23545 if ac_fn_c_try_run
"$LINENO"; then :
23546 gl_cv_func_mkdir_trailing_slash_works
=yes
23548 gl_cv_func_mkdir_trailing_slash_works
=no
23550 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23551 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23554 rm -rf conftest.dir
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
23559 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
23560 case "$gl_cv_func_mkdir_trailing_slash_works" in
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
23568 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
23569 if ${gl_cv_func_mkdir_trailing_dot_works+:} false
; then :
23570 $as_echo_n "(cached) " >&6
23572 rm -rf conftest.dir
23573 if test "$cross_compiling" = yes; then :
23575 # Guess yes on glibc systems.
23576 *-gnu*) gl_cv_func_mkdir_trailing_dot_works
="guessing yes" ;;
23577 # If we don't know, assume the worst.
23578 *) gl_cv_func_mkdir_trailing_dot_works
="guessing no" ;;
23582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23583 /* end confdefs.h. */
23585 # include <sys/types.h>
23586 # include <sys/stat.h>
23591 return !mkdir ("conftest.dir/./", 0700);
23596 if ac_fn_c_try_run
"$LINENO"; then :
23597 gl_cv_func_mkdir_trailing_dot_works
=yes
23599 gl_cv_func_mkdir_trailing_dot_works
=no
23601 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23602 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23605 rm -rf conftest.dir
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
23610 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
23611 case "$gl_cv_func_mkdir_trailing_dot_works" in
23616 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
23621 if test $REPLACE_MKDIR = 1; then
23630 gl_LIBOBJS
="$gl_LIBOBJS mkdir.$ac_objext"
23635 for ac_func
in mkdtemp
23637 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
23638 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
23639 cat >>confdefs.h
<<_ACEOF
23640 #define HAVE_MKDTEMP 1
23646 if test $ac_cv_func_mkdtemp = no
; then
23650 if test $HAVE_MKDTEMP = 0; then
23659 gl_LIBOBJS
="$gl_LIBOBJS mkdtemp.$ac_objext"
23675 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
23691 if test $ac_cv_func_mkostemp != yes; then
23695 if test $HAVE_MKOSTEMP = 0; then
23704 gl_LIBOBJS
="$gl_LIBOBJS mkostemp.$ac_objext"
23711 cat >>confdefs.h
<<_ACEOF
23712 #define GNULIB_MKOSTEMP 1
23727 $as_echo "#define GNULIB_TEST_MKOSTEMP 1" >>confdefs.h
23732 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23741 gl_LIBOBJS
="$gl_LIBOBJS msvc-inval.$ac_objext"
23745 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23754 gl_LIBOBJS
="$gl_LIBOBJS msvc-nothrow.$ac_objext"
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
23760 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
23761 if ${gl_cv_header_netinet_in_h_selfcontained+:} false
; then :
23762 $as_echo_n "(cached) " >&6
23765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23766 /* end confdefs.h. */
23767 #include <netinet/in.h>
23776 if ac_fn_c_try_compile
"$LINENO"; then :
23777 gl_cv_header_netinet_in_h_selfcontained
=yes
23779 gl_cv_header_netinet_in_h_selfcontained
=no
23781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
23785 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
23786 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
23789 NETINET_IN_H
='netinet/in.h'
23790 for ac_header
in netinet
/in.h
23792 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23793 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
23794 cat >>confdefs.h
<<_ACEOF
23795 #define HAVE_NETINET_IN_H 1
23817 if test $gl_cv_have_include_next = yes; then
23818 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
23821 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
23822 if ${gl_cv_next_netinet_in_h+:} false
; then :
23823 $as_echo_n "(cached) " >&6
23826 if test $ac_cv_header_netinet_in_h = yes; then
23831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23832 /* end confdefs.h. */
23833 #include <netinet/in.h>
23836 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
23837 *) gl_absname_cpp
="$ac_cpp" ;;
23842 gl_dirsep_regex
='[/\\]'
23845 gl_dirsep_regex
='\/'
23848 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
23849 gl_header_literal_regex
=`echo 'netinet/in.h' \
23850 | sed -e "$gl_make_literal_regex_sed"`
23851 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23852 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23858 gl_cv_absolute_netinet_in_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23859 sed -n "$gl_absolute_header_sed"`
23861 gl_header
=$gl_cv_absolute_netinet_in_h
23862 gl_cv_next_netinet_in_h
='"'$gl_header'"'
23864 gl_cv_next_netinet_in_h
='<'netinet
/in.h
'>'
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
23870 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
23872 NEXT_NETINET_IN_H
=$gl_cv_next_netinet_in_h
23874 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
23875 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23876 gl_next_as_first_directive
='<'netinet
/in.h
'>'
23878 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23879 gl_next_as_first_directive
=$gl_cv_next_netinet_in_h
23881 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
=$gl_next_as_first_directive
23886 if test $ac_cv_header_netinet_in_h = yes; then
23887 HAVE_NETINET_IN_H
=1
23889 HAVE_NETINET_IN_H
=0
23894 if test -n "$NETINET_IN_H"; then
23895 GL_GENERATE_NETINET_IN_H_TRUE
=
23896 GL_GENERATE_NETINET_IN_H_FALSE
='#'
23898 GL_GENERATE_NETINET_IN_H_TRUE
='#'
23899 GL_GENERATE_NETINET_IN_H_FALSE
=
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
23919 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
23920 if ${gl_cv_func_open_slash+:} false
; then :
23921 $as_echo_n "(cached) " >&6
23923 # Assume that if we have lstat, we can also check symlinks.
23924 if test $ac_cv_func_lstat = yes; then
23926 ln -s conftest.tmp conftest.lnk
23928 if test "$cross_compiling" = yes; then :
23931 freebsd
* | aix
* | hpux
* | solaris2.
[0-9] | solaris2.
[0-9].
*)
23932 gl_cv_func_open_slash
="guessing no" ;;
23934 gl_cv_func_open_slash
="guessing yes" ;;
23938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23939 /* end confdefs.h. */
23943 # include <unistd.h>
23949 if (open ("conftest.lnk/", O_RDONLY) != -1)
23952 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
23957 if ac_fn_c_try_run
"$LINENO"; then :
23958 gl_cv_func_open_slash
=yes
23960 gl_cv_func_open_slash
=no
23962 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23963 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23966 rm -f conftest.sl conftest.tmp conftest.lnk
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
23970 $as_echo "$gl_cv_func_open_slash" >&6; }
23971 case "$gl_cv_func_open_slash" in
23974 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
23982 if test $REPLACE_OPEN = 0; then
23992 if test $ac_cv_func_fchdir = no
; then
23996 if test $HAVE_FCHDIR = 0; then
24003 if test $REPLACE_OPEN = 1; then
24012 gl_LIBOBJS
="$gl_LIBOBJS open.$ac_objext"
24030 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
24045 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
24049 # Solaris 9 has *at functions, but uniformly mishandles trailing
24050 # slash in all of them.
24058 if test $HAVE_OPENAT = 0 ||
test $REPLACE_OPENAT = 1; then
24067 gl_LIBOBJS
="$gl_LIBOBJS openat.$ac_objext"
24076 cat >>confdefs.h
<<_ACEOF
24077 #define GNULIB_OPENAT 1
24091 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
24098 for ac_func
in opendir
24100 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
24101 if test "x$ac_cv_func_opendir" = xyes
; then :
24102 cat >>confdefs.h
<<_ACEOF
24103 #define HAVE_OPENDIR 1
24109 if test $ac_cv_func_opendir = no
; then
24122 if test $ac_cv_func_fchdir = no
; then
24126 if test $HAVE_FCHDIR = 0; then
24127 if test $HAVE_OPENDIR = 1; then
24132 case $host_os,$HAVE_OPENDIR in
24134 REPLACE_OPENDIR
=1;;
24137 if test $HAVE_OPENDIR = 0 ||
test $REPLACE_OPENDIR = 1; then
24146 gl_LIBOBJS
="$gl_LIBOBJS opendir.$ac_objext"
24160 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
24177 for ac_func
in rawmemchr
24179 ac_fn_c_check_func
"$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
24180 if test "x$ac_cv_func_rawmemchr" = xyes
; then :
24181 cat >>confdefs.h
<<_ACEOF
24182 #define HAVE_RAWMEMCHR 1
24188 if test $ac_cv_func_rawmemchr = no
; then
24192 if test $HAVE_RAWMEMCHR = 0; then
24201 gl_LIBOBJS
="$gl_LIBOBJS rawmemchr.$ac_objext"
24216 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
24223 for ac_func
in readdir
24225 ac_fn_c_check_func
"$LINENO" "readdir" "ac_cv_func_readdir"
24226 if test "x$ac_cv_func_readdir" = xyes
; then :
24227 cat >>confdefs.h
<<_ACEOF
24228 #define HAVE_READDIR 1
24234 if test $ac_cv_func_readdir = no
; then
24238 if test $HAVE_READDIR = 0; then
24247 gl_LIBOBJS
="$gl_LIBOBJS readdir.$ac_objext"
24261 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
24274 if test $ac_cv_func_readlink = no
; then
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
24278 $as_echo_n "checking whether readlink signature is correct... " >&6; }
24279 if ${gl_cv_decl_readlink_works+:} false
; then :
24280 $as_echo_n "(cached) " >&6
24282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24283 /* end confdefs.h. */
24284 #include <unistd.h>
24285 /* Cause compilation failure if original declaration has wrong type. */
24286 ssize_t readlink (const char *, char *, size_t);
24295 if ac_fn_c_try_compile
"$LINENO"; then :
24296 gl_cv_decl_readlink_works
=yes
24298 gl_cv_decl_readlink_works
=no
24300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
24303 $as_echo "$gl_cv_decl_readlink_works" >&6; }
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
24305 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
24306 if ${gl_cv_func_readlink_works+:} false
; then :
24307 $as_echo_n "(cached) " >&6
24309 # We have readlink, so assume ln -s works.
24310 ln -s conftest.no-such conftest.link
24311 ln -s conftest.link conftest.lnk2
24312 if test "$cross_compiling" = yes; then :
24314 # Guess yes on glibc systems.
24315 *-gnu*) gl_cv_func_readlink_works
="guessing yes" ;;
24316 # If we don't know, assume the worst.
24317 *) gl_cv_func_readlink_works
="guessing no" ;;
24321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h. */
24323 #include <unistd.h>
24329 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
24334 if ac_fn_c_try_run
"$LINENO"; then :
24335 gl_cv_func_readlink_works
=yes
24337 gl_cv_func_readlink_works
=no
24339 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24340 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24343 rm -f conftest.link conftest.lnk2
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
24346 $as_echo "$gl_cv_func_readlink_works" >&6; }
24347 case "$gl_cv_func_readlink_works" in
24349 if test "$gl_cv_decl_readlink_works" != yes; then
24355 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
24362 if test $HAVE_READLINK = 0 ||
test $REPLACE_READLINK = 1; then
24371 gl_LIBOBJS
="$gl_LIBOBJS readlink.$ac_objext"
24388 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
24395 if test $gl_cv_func_malloc_posix = yes; then
24397 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
24403 if test $REPLACE_REALLOC = 1; then
24412 gl_LIBOBJS
="$gl_LIBOBJS realloc.$ac_objext"
24420 GNULIB_REALLOC_POSIX
=1
24426 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
24442 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
24443 if ${gl_cv_func_rename_slash_dst_works+:} false
; then :
24444 $as_echo_n "(cached) " >&6
24446 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
24447 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
24448 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
24449 # Assume that if we have lstat, we can also check symlinks.
24450 if test $ac_cv_func_lstat = yes; then
24451 ln -s conftest.f conftest.lnk
24453 if test "$cross_compiling" = yes; then :
24455 # Guess yes on glibc systems.
24456 *-gnu*) gl_cv_func_rename_slash_dst_works
="guessing yes" ;;
24457 # If we don't know, assume the worst.
24458 *) gl_cv_func_rename_slash_dst_works
="guessing no" ;;
24462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24463 /* end confdefs.h. */
24465 # include <stdio.h>
24466 # include <stdlib.h>
24472 if (rename ("conftest.f1", "conftest.f2/") == 0)
24474 if (rename ("conftest.d1", "conftest.d2/") != 0)
24477 if (rename ("conftest.f", "conftest.lnk/") == 0)
24486 if ac_fn_c_try_run
"$LINENO"; then :
24487 gl_cv_func_rename_slash_dst_works
=yes
24489 gl_cv_func_rename_slash_dst_works
=no
24491 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24492 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24495 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
24499 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
24500 case "$gl_cv_func_rename_slash_dst_works" in
24505 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
24511 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
24512 if ${gl_cv_func_rename_slash_src_works+:} false
; then :
24513 $as_echo_n "(cached) " >&6
24515 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
24516 touch conftest.f
&& touch conftest.f1
&& mkdir conftest.d1 ||
24517 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
24518 # Assume that if we have lstat, we can also check symlinks.
24519 if test $ac_cv_func_lstat = yes; then
24520 ln -s conftest.f conftest.lnk
24522 if test "$cross_compiling" = yes; then :
24524 # Guess yes on glibc systems.
24525 *-gnu*) gl_cv_func_rename_slash_src_works
="guessing yes" ;;
24526 # If we don't know, assume the worst.
24527 *) gl_cv_func_rename_slash_src_works
="guessing no" ;;
24531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24532 /* end confdefs.h. */
24534 # include <stdio.h>
24535 # include <stdlib.h>
24541 if (rename ("conftest.f1/", "conftest.d3") == 0)
24543 if (rename ("conftest.d1/", "conftest.d2") != 0)
24546 if (rename ("conftest.lnk/", "conftest.f") == 0)
24555 if ac_fn_c_try_run
"$LINENO"; then :
24556 gl_cv_func_rename_slash_src_works
=yes
24558 gl_cv_func_rename_slash_src_works
=no
24560 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24561 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24564 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
24568 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
24569 case "$gl_cv_func_rename_slash_src_works" in
24574 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
24587 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
24588 if ${gl_cv_func_rename_link_works+:} false
; then :
24589 $as_echo_n "(cached) " >&6
24591 if test $ac_cv_func_link = yes; then
24592 rm -rf conftest.f conftest.f1
24593 if touch conftest.f
&& ln conftest.f conftest.f1
&&
24594 set x
`ls -i conftest.f conftest.f1` && test "" = ""; then
24595 if test "$cross_compiling" = yes; then :
24597 # Guess yes on glibc systems.
24598 *-gnu*) gl_cv_func_rename_link_works
="guessing yes" ;;
24599 # If we don't know, assume the worst.
24600 *) gl_cv_func_rename_link_works
="guessing no" ;;
24604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24605 /* end confdefs.h. */
24607 # include <stdio.h>
24608 # include <stdlib.h>
24609 # include <unistd.h>
24615 if (rename ("conftest.f", "conftest.f1"))
24617 if (unlink ("conftest.f1"))
24619 if (rename ("conftest.f", "conftest.f"))
24621 if (rename ("conftest.f1", "conftest.f1") == 0)
24629 if ac_fn_c_try_run
"$LINENO"; then :
24630 gl_cv_func_rename_link_works
=yes
24632 gl_cv_func_rename_link_works
=no
24634 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24635 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24639 gl_cv_func_rename_link_works
="guessing no"
24641 rm -rf conftest.f conftest.f1
24643 gl_cv_func_rename_link_works
=yes
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
24648 $as_echo "$gl_cv_func_rename_link_works" >&6; }
24649 case "$gl_cv_func_rename_link_works" in
24654 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
24660 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
24661 if ${gl_cv_func_rename_dest_works+:} false
; then :
24662 $as_echo_n "(cached) " >&6
24664 rm -rf conftest.f conftest.d1 conftest.d2
24665 touch conftest.f
&& mkdir conftest.d1 conftest.d2 ||
24666 as_fn_error $?
"cannot create temporary files" "$LINENO" 5
24667 if test "$cross_compiling" = yes; then :
24669 # Guess yes on glibc systems.
24670 *-gnu*) gl_cv_func_rename_dest_works
="guessing yes" ;;
24671 # If we don't know, assume the worst.
24672 *) gl_cv_func_rename_dest_works
="guessing no" ;;
24676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24677 /* end confdefs.h. */
24679 # include <stdio.h>
24680 # include <stdlib.h>
24686 if (rename ("conftest.d1", "conftest.d2") != 0)
24688 if (rename ("conftest.d2", "conftest.f") == 0)
24696 if ac_fn_c_try_run
"$LINENO"; then :
24697 gl_cv_func_rename_dest_works
=yes
24699 gl_cv_func_rename_dest_works
=no
24701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24702 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24705 rm -rf conftest.f conftest.d1 conftest.d2
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
24709 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
24710 case "$gl_cv_func_rename_dest_works" in
24715 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
24720 if test $REPLACE_RENAME = 1; then
24729 gl_LIBOBJS
="$gl_LIBOBJS rename.$ac_objext"
24743 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
24750 for ac_func
in rewinddir
24752 ac_fn_c_check_func
"$LINENO" "rewinddir" "ac_cv_func_rewinddir"
24753 if test "x$ac_cv_func_rewinddir" = xyes
; then :
24754 cat >>confdefs.h
<<_ACEOF
24755 #define HAVE_REWINDDIR 1
24761 if test $ac_cv_func_rewinddir = no
; then
24765 if test $HAVE_REWINDDIR = 0; then
24774 gl_LIBOBJS
="$gl_LIBOBJS rewinddir.$ac_objext"
24788 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
24802 $as_echo_n "checking whether rmdir works... " >&6; }
24803 if ${gl_cv_func_rmdir_works+:} false
; then :
24804 $as_echo_n "(cached) " >&6
24807 touch conftest.
file
24808 if test "$cross_compiling" = yes; then :
24810 # Guess yes on glibc systems.
24811 *-gnu*) gl_cv_func_rmdir_works
="guessing yes" ;;
24812 # If we don't know, assume the worst.
24813 *) gl_cv_func_rmdir_works
="guessing no" ;;
24817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24818 /* end confdefs.h. */
24822 # include <unistd.h>
24823 #else /* on Windows with MSVC */
24824 # include <direct.h>
24831 if (!rmdir ("conftest.file/"))
24833 else if (errno != ENOTDIR)
24835 if (!rmdir ("conftest.dir/./"))
24843 if ac_fn_c_try_run
"$LINENO"; then :
24844 gl_cv_func_rmdir_works
=yes
24846 gl_cv_func_rmdir_works
=no
24848 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24849 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24852 rm -rf conftest.dir conftest.
file
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
24855 $as_echo "$gl_cv_func_rmdir_works" >&6; }
24856 case "$gl_cv_func_rmdir_works" in
24863 if test $REPLACE_RMDIR = 1; then
24872 gl_LIBOBJS
="$gl_LIBOBJS rmdir.$ac_objext"
24886 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
24910 if test $ac_cv_func_secure_getenv = no
; then
24911 HAVE_SECURE_GETENV
=0
24914 if test $HAVE_SECURE_GETENV = 0; then
24923 gl_LIBOBJS
="$gl_LIBOBJS secure_getenv.$ac_objext"
24926 for ac_func
in __secure_getenv
24928 ac_fn_c_check_func
"$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
24929 if test "x$ac_cv_func___secure_getenv" = xyes
; then :
24930 cat >>confdefs.h
<<_ACEOF
24931 #define HAVE___SECURE_GETENV 1
24937 if test $ac_cv_func___secure_getenv = no
; then
24938 for ac_func
in issetugid
24940 ac_fn_c_check_func
"$LINENO" "issetugid" "ac_cv_func_issetugid"
24941 if test "x$ac_cv_func_issetugid" = xyes
; then :
24942 cat >>confdefs.h
<<_ACEOF
24943 #define HAVE_ISSETUGID 1
24973 GNULIB_SECURE_GETENV
=1
24979 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
24985 if test $ac_cv_func_setenv = no
; then
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
24989 $as_echo_n "checking whether setenv validates arguments... " >&6; }
24990 if ${gl_cv_func_setenv_works+:} false
; then :
24991 $as_echo_n "(cached) " >&6
24993 if test "$cross_compiling" = yes; then :
24995 # Guess yes on glibc systems.
24996 *-gnu*) gl_cv_func_setenv_works
="guessing yes" ;;
24997 # If we don't know, assume the worst.
24998 *) gl_cv_func_setenv_works
="guessing no" ;;
25002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25003 /* end confdefs.h. */
25005 #include <stdlib.h>
25007 #include <string.h>
25015 if (setenv ("", "", 0) != -1)
25017 else if (errno != EINVAL)
25021 if (setenv ("a", "=", 1) != 0)
25023 else if (strcmp (getenv ("a"), "=") != 0)
25032 if ac_fn_c_try_run
"$LINENO"; then :
25033 gl_cv_func_setenv_works
=yes
25035 gl_cv_func_setenv_works
=no
25037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
25043 $as_echo "$gl_cv_func_setenv_works" >&6; }
25044 case "$gl_cv_func_setenv_works" in
25052 if test $HAVE_SETENV = 0 ||
test $REPLACE_SETENV = 1; then
25061 gl_LIBOBJS
="$gl_LIBOBJS setenv.$ac_objext"
25075 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
25090 if test $gl_cv_have_include_next = yes; then
25091 gl_cv_next_signal_h
='<'signal.h
'>'
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25094 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25095 if ${gl_cv_next_signal_h+:} false
; then :
25096 $as_echo_n "(cached) " >&6
25101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25102 /* end confdefs.h. */
25103 #include <signal.h>
25106 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25107 *) gl_absname_cpp
="$ac_cpp" ;;
25112 gl_dirsep_regex
='[/\\]'
25115 gl_dirsep_regex
='\/'
25118 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25119 gl_header_literal_regex
=`echo 'signal.h' \
25120 | sed -e "$gl_make_literal_regex_sed"`
25121 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25122 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25128 gl_cv_absolute_signal_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25129 sed -n "$gl_absolute_header_sed"`
25131 gl_header
=$gl_cv_absolute_signal_h
25132 gl_cv_next_signal_h
='"'$gl_header'"'
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25137 $as_echo "$gl_cv_next_signal_h" >&6; }
25139 NEXT_SIGNAL_H
=$gl_cv_next_signal_h
25141 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25142 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25143 gl_next_as_first_directive
='<'signal.h
'>'
25145 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25146 gl_next_as_first_directive
=$gl_cv_next_signal_h
25148 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
=$gl_next_as_first_directive
25154 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25155 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25156 ac_fn_c_check_type
"$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25157 #include <signal.h>
25160 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
; then :
25163 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
=0
25172 ac_fn_c_check_type
"$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25173 #include <signal.h>
25176 if test "x$ac_cv_type_sighandler_t" = xyes
; then :
25179 HAVE_SIGHANDLER_T
=0
25184 for gl_func
in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask
; do
25185 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25187 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25188 if eval \
${$as_gl_Symbol+:} false
; then :
25189 $as_echo_n "(cached) " >&6
25191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25192 /* end confdefs.h. */
25193 #include <signal.h>
25204 if ac_fn_c_try_compile
"$LINENO"; then :
25205 eval "$as_gl_Symbol=yes"
25207 eval "$as_gl_Symbol=no"
25209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25211 eval ac_res
=\$
$as_gl_Symbol
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25213 $as_echo "$ac_res" >&6; }
25214 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25215 cat >>confdefs.h
<<_ACEOF
25216 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25219 eval ac_cv_have_decl_
$gl_func=yes
25224 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25225 /* <sys/types.h> is not needed according to POSIX, but the
25226 <sys/socket.h> in i386-unknown-freebsd4.10 and
25227 powerpc-apple-darwin5.5 required it. */
25228 #include <sys/types.h>
25229 #if HAVE_SYS_SOCKET_H
25230 # include <sys/socket.h>
25231 #elif HAVE_WS2TCPIP_H
25232 # include <ws2tcpip.h>
25236 if test "x$ac_cv_type_socklen_t" = xyes
; then :
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25240 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25241 if ${gl_cv_socklen_t_equiv+:} false
; then :
25242 $as_echo_n "(cached) " >&6
25244 # Systems have either "struct sockaddr *" or
25245 # "void *" as the second argument to getpeername
25246 gl_cv_socklen_t_equiv
=
25247 for arg2
in "struct sockaddr" void
; do
25248 for t
in int size_t
"unsigned int" "long int" "unsigned long int"; do
25249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25250 /* end confdefs.h. */
25251 #include <sys/types.h>
25252 #include <sys/socket.h>
25254 int getpeername (int, $arg2 *, $t *);
25259 getpeername (0, 0, &len);
25264 if ac_fn_c_try_compile
"$LINENO"; then :
25265 gl_cv_socklen_t_equiv
="$t"
25267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25268 test "$gl_cv_socklen_t_equiv" != "" && break
25270 test "$gl_cv_socklen_t_equiv" != "" && break
25275 if test "$gl_cv_socklen_t_equiv" = ""; then
25276 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25279 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25281 cat >>confdefs.h
<<_ACEOF
25282 #define socklen_t $gl_cv_socklen_t_equiv
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25289 $as_echo_n "checking for ssize_t... " >&6; }
25290 if ${gt_cv_ssize_t+:} false
; then :
25291 $as_echo_n "(cached) " >&6
25293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25294 /* end confdefs.h. */
25295 #include <sys/types.h>
25299 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25305 if ac_fn_c_try_compile
"$LINENO"; then :
25310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25313 $as_echo "$gt_cv_ssize_t" >&6; }
25314 if test $gt_cv_ssize_t = no
; then
25316 $as_echo "#define ssize_t int" >>confdefs.h
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
25330 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
25331 if ${gl_cv_func_stat_dir_slash+:} false
; then :
25332 $as_echo_n "(cached) " >&6
25334 if test "$cross_compiling" = yes; then :
25336 mingw
*) gl_cv_func_stat_dir_slash
="guessing no";;
25337 *) gl_cv_func_stat_dir_slash
="guessing yes";;
25340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25341 /* end confdefs.h. */
25342 #include <sys/stat.h>
25347 struct stat st; return stat (".", &st) != stat ("./", &st);
25352 if ac_fn_c_try_run
"$LINENO"; then :
25353 gl_cv_func_stat_dir_slash
=yes
25355 gl_cv_func_stat_dir_slash
=no
25357 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25358 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
25363 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25365 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25366 if ${gl_cv_func_stat_file_slash+:} false
; then :
25367 $as_echo_n "(cached) " >&6
25370 # Assume that if we have lstat, we can also check symlinks.
25371 if test $ac_cv_func_lstat = yes; then
25372 ln -s conftest.tmp conftest.lnk
25374 if test "$cross_compiling" = yes; then :
25376 # Guess yes on glibc systems.
25377 *-gnu*) gl_cv_func_stat_file_slash
="guessing yes" ;;
25378 # If we don't know, assume the worst.
25379 *) gl_cv_func_stat_file_slash
="guessing no" ;;
25383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25384 /* end confdefs.h. */
25385 #include <sys/stat.h>
25392 if (!stat ("conftest.tmp/", &st))
25395 if (!stat ("conftest.lnk/", &st))
25404 if ac_fn_c_try_run
"$LINENO"; then :
25405 gl_cv_func_stat_file_slash
=yes
25407 gl_cv_func_stat_file_slash
=no
25409 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25410 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25413 rm -f conftest.tmp conftest.lnk
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25416 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25417 case $gl_cv_func_stat_dir_slash in
25418 *no
) REPLACE_STAT
=1
25420 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
25423 case $gl_cv_func_stat_file_slash in
25424 *no
) REPLACE_STAT
=1
25426 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25430 if test $REPLACE_STAT = 1; then
25439 gl_LIBOBJS
="$gl_LIBOBJS stat.$ac_objext"
25454 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25460 $as_echo_n "checking for working stdalign.h... " >&6; }
25461 if ${gl_cv_header_working_stdalign_h+:} false
; then :
25462 $as_echo_n "(cached) " >&6
25464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25465 /* end confdefs.h. */
25466 #include <stdalign.h>
25467 #include <stddef.h>
25469 /* Test that alignof yields a result consistent with offsetof.
25470 This catches GCC bug 52023
25471 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25473 template <class t> struct alignof_helper { char a; t b; };
25474 # define ao(type) offsetof (alignof_helper<type>, b)
25476 # define ao(type) offsetof (struct { char a; type b; }, b)
25478 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25479 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25480 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25482 /* Test _Alignas only on platforms where gnulib can help. */
25484 ((defined __cplusplus && 201103 <= __cplusplus) \
25485 || (defined __APPLE__ && defined __MACH__ \
25486 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
25488 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
25489 || __ICC || 0x5110 <= __SUNPRO_C \
25490 || 1300 <= _MSC_VER)
25491 struct alignas_test { char c; char alignas (8) alignas_8; };
25492 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
25504 if ac_fn_c_try_compile
"$LINENO"; then :
25505 gl_cv_header_working_stdalign_h
=yes
25507 gl_cv_header_working_stdalign_h
=no
25509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25512 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25514 if test $gl_cv_header_working_stdalign_h = yes; then
25517 STDALIGN_H
='stdalign.h'
25521 if test -n "$STDALIGN_H"; then
25522 GL_GENERATE_STDALIGN_H_TRUE
=
25523 GL_GENERATE_STDALIGN_H_FALSE
='#'
25525 GL_GENERATE_STDALIGN_H_TRUE
='#'
25526 GL_GENERATE_STDALIGN_H_FALSE
=
25533 # Define two additional variables used in the Makefile substitution.
25535 if test "$ac_cv_header_stdbool_h" = yes; then
25538 STDBOOL_H
='stdbool.h'
25541 if test -n "$STDBOOL_H"; then
25542 GL_GENERATE_STDBOOL_H_TRUE
=
25543 GL_GENERATE_STDBOOL_H_FALSE
='#'
25545 GL_GENERATE_STDBOOL_H_TRUE
='#'
25546 GL_GENERATE_STDBOOL_H_FALSE
=
25550 if test "$ac_cv_type__Bool" = yes; then
25561 ac_fn_c_check_type
"$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
25564 if test "x$ac_cv_type_max_align_t" = xyes
; then :
25567 HAVE_MAX_ALIGN_T
=0; STDDEF_H
=stddef.h
25570 if test $gt_cv_c_wchar_t = no
; then
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25575 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25576 if ${gl_cv_decl_null_works+:} false
; then :
25577 $as_echo_n "(cached) " >&6
25579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25580 /* end confdefs.h. */
25581 #include <stddef.h>
25582 int test[2 * (sizeof NULL == sizeof (void *)) -1];
25592 if ac_fn_c_try_compile
"$LINENO"; then :
25593 gl_cv_decl_null_works
=yes
25595 gl_cv_decl_null_works
=no
25597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25600 $as_echo "$gl_cv_decl_null_works" >&6; }
25601 if test $gl_cv_decl_null_works = no
; then
25606 if test -n "$STDDEF_H"; then
25607 GL_GENERATE_STDDEF_H_TRUE
=
25608 GL_GENERATE_STDDEF_H_FALSE
='#'
25610 GL_GENERATE_STDDEF_H_TRUE
='#'
25611 GL_GENERATE_STDDEF_H_FALSE
=
25614 if test -n "$STDDEF_H"; then
25623 if test $gl_cv_have_include_next = yes; then
25624 gl_cv_next_stddef_h
='<'stddef.h
'>'
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25627 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25628 if ${gl_cv_next_stddef_h+:} false
; then :
25629 $as_echo_n "(cached) " >&6
25634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25635 /* end confdefs.h. */
25636 #include <stddef.h>
25639 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25640 *) gl_absname_cpp
="$ac_cpp" ;;
25645 gl_dirsep_regex
='[/\\]'
25648 gl_dirsep_regex
='\/'
25651 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25652 gl_header_literal_regex
=`echo 'stddef.h' \
25653 | sed -e "$gl_make_literal_regex_sed"`
25654 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25655 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25661 gl_cv_absolute_stddef_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25662 sed -n "$gl_absolute_header_sed"`
25664 gl_header
=$gl_cv_absolute_stddef_h
25665 gl_cv_next_stddef_h
='"'$gl_header'"'
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25670 $as_echo "$gl_cv_next_stddef_h" >&6; }
25672 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
25674 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25675 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25676 gl_next_as_first_directive
='<'stddef.h
'>'
25678 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25679 gl_next_as_first_directive
=$gl_cv_next_stddef_h
25681 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
25691 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
25702 if test $gl_cv_have_include_next = yes; then
25703 gl_cv_next_stdio_h
='<'stdio.h
'>'
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25706 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25707 if ${gl_cv_next_stdio_h+:} false
; then :
25708 $as_echo_n "(cached) " >&6
25713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25714 /* end confdefs.h. */
25718 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25719 *) gl_absname_cpp
="$ac_cpp" ;;
25724 gl_dirsep_regex
='[/\\]'
25727 gl_dirsep_regex
='\/'
25730 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25731 gl_header_literal_regex
=`echo 'stdio.h' \
25732 | sed -e "$gl_make_literal_regex_sed"`
25733 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25734 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25740 gl_cv_absolute_stdio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25741 sed -n "$gl_absolute_header_sed"`
25743 gl_header
=$gl_cv_absolute_stdio_h
25744 gl_cv_next_stdio_h
='"'$gl_header'"'
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
25749 $as_echo "$gl_cv_next_stdio_h" >&6; }
25751 NEXT_STDIO_H
=$gl_cv_next_stdio_h
25753 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25754 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25755 gl_next_as_first_directive
='<'stdio.h
'>'
25757 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25758 gl_next_as_first_directive
=$gl_cv_next_stdio_h
25760 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
=$gl_next_as_first_directive
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
25767 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
25768 if ${gl_cv_func_printf_attribute_flavor+:} false
; then :
25769 $as_echo_n "(cached) " >&6
25771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25772 /* end confdefs.h. */
25774 #define __STDC_FORMAT_MACROS 1
25776 #include <inttypes.h>
25777 /* For non-mingw systems, compilation will trivially succeed.
25778 For mingw, compilation will succeed for older mingw (system
25779 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
25780 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
25781 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
25782 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
25793 if ac_fn_c_try_compile
"$LINENO"; then :
25794 gl_cv_func_printf_attribute_flavor
=system
25796 gl_cv_func_printf_attribute_flavor
=gnu
25798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
25801 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
25802 if test "$gl_cv_func_printf_attribute_flavor" = gnu
; then
25804 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
25811 cat >>confdefs.h
<<_ACEOF
25812 #define GNULIB_FSCANF 1
25819 cat >>confdefs.h
<<_ACEOF
25820 #define GNULIB_SCANF 1
25845 for gl_func
in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf
; do
25846 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25848 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25849 if eval \
${$as_gl_Symbol+:} false
; then :
25850 $as_echo_n "(cached) " >&6
25852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25853 /* end confdefs.h. */
25865 if ac_fn_c_try_compile
"$LINENO"; then :
25866 eval "$as_gl_Symbol=yes"
25868 eval "$as_gl_Symbol=no"
25870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25872 eval ac_res
=\$
$as_gl_Symbol
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25874 $as_echo "$ac_res" >&6; }
25875 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25876 cat >>confdefs.h
<<_ACEOF
25877 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25880 eval ac_cv_have_decl_
$gl_func=yes
25895 if test $gl_cv_have_include_next = yes; then
25896 gl_cv_next_stdlib_h
='<'stdlib.h
'>'
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
25899 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
25900 if ${gl_cv_next_stdlib_h+:} false
; then :
25901 $as_echo_n "(cached) " >&6
25906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25907 /* end confdefs.h. */
25908 #include <stdlib.h>
25911 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
25912 *) gl_absname_cpp
="$ac_cpp" ;;
25917 gl_dirsep_regex
='[/\\]'
25920 gl_dirsep_regex
='\/'
25923 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
25924 gl_header_literal_regex
=`echo 'stdlib.h' \
25925 | sed -e "$gl_make_literal_regex_sed"`
25926 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25927 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25933 gl_cv_absolute_stdlib_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25934 sed -n "$gl_absolute_header_sed"`
25936 gl_header
=$gl_cv_absolute_stdlib_h
25937 gl_cv_next_stdlib_h
='"'$gl_header'"'
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
25942 $as_echo "$gl_cv_next_stdlib_h" >&6; }
25944 NEXT_STDLIB_H
=$gl_cv_next_stdlib_h
25946 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
25947 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25948 gl_next_as_first_directive
='<'stdlib.h
'>'
25950 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25951 gl_next_as_first_directive
=$gl_cv_next_stdlib_h
25953 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
=$gl_next_as_first_directive
25960 for gl_func
in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r qsort_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv
; do
25961 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25963 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25964 if eval \
${$as_gl_Symbol+:} false
; then :
25965 $as_echo_n "(cached) " >&6
25967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25968 /* end confdefs.h. */
25969 #include <stdlib.h>
25970 #if HAVE_SYS_LOADAVG_H
25971 # include <sys/loadavg.h>
25974 # include <random.h>
25986 if ac_fn_c_try_compile
"$LINENO"; then :
25987 eval "$as_gl_Symbol=yes"
25989 eval "$as_gl_Symbol=no"
25991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25993 eval ac_res
=\$
$as_gl_Symbol
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25995 $as_echo "$ac_res" >&6; }
25996 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
25997 cat >>confdefs.h
<<_ACEOF
25998 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26001 eval ac_cv_have_decl_
$gl_func=yes
26010 for ac_func
in strchrnul
26012 ac_fn_c_check_func
"$LINENO" "strchrnul" "ac_cv_func_strchrnul"
26013 if test "x$ac_cv_func_strchrnul" = xyes
; then :
26014 cat >>confdefs.h
<<_ACEOF
26015 #define HAVE_STRCHRNUL 1
26021 if test $ac_cv_func_strchrnul = no
; then
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
26025 $as_echo_n "checking whether strchrnul works... " >&6; }
26026 if ${gl_cv_func_strchrnul_works+:} false
; then :
26027 $as_echo_n "(cached) " >&6
26029 if test "$cross_compiling" = yes; then :
26030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26031 /* end confdefs.h. */
26033 #if defined __CYGWIN__
26034 #include <cygwin/version.h>
26035 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
26043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26044 $EGREP "Lucky user" >/dev
/null
2>&1; then :
26045 gl_cv_func_strchrnul_works
="guessing yes"
26047 gl_cv_func_strchrnul_works
="guessing no"
26053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26054 /* end confdefs.h. */
26056 #include <string.h> /* for strchrnul */
26061 const char *buf = "a";
26062 return strchrnul (buf, 'b') != buf + 1;
26068 if ac_fn_c_try_run
"$LINENO"; then :
26069 gl_cv_func_strchrnul_works
=yes
26071 gl_cv_func_strchrnul_works
=no
26073 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26074 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
26080 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
26081 case "$gl_cv_func_strchrnul_works" in
26083 *) REPLACE_STRCHRNUL
=1 ;;
26087 if test $HAVE_STRCHRNUL = 0 ||
test $REPLACE_STRCHRNUL = 1; then
26096 gl_LIBOBJS
="$gl_LIBOBJS strchrnul.$ac_objext"
26111 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
26125 if test $ac_cv_func_strdup = yes; then
26126 if test $gl_cv_func_malloc_posix != yes; then
26137 if test $ac_cv_have_decl_strdup = no
; then
26141 if test $ac_cv_func_strdup = no ||
test $REPLACE_STRDUP = 1; then
26150 gl_LIBOBJS
="$gl_LIBOBJS strdup.$ac_objext"
26165 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
26176 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
26178 $as_echo_n "checking for working strerror function... " >&6; }
26179 if ${gl_cv_func_working_strerror+:} false
; then :
26180 $as_echo_n "(cached) " >&6
26182 if test "$cross_compiling" = yes; then :
26184 # Guess yes on glibc systems.
26185 *-gnu*) gl_cv_func_working_strerror
="guessing yes" ;;
26186 # If we don't know, assume the worst.
26187 *) gl_cv_func_working_strerror
="guessing no" ;;
26191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26192 /* end confdefs.h. */
26193 #include <string.h>
26198 if (!*strerror (-2)) return 1;
26203 if ac_fn_c_try_run
"$LINENO"; then :
26204 gl_cv_func_working_strerror
=yes
26206 gl_cv_func_working_strerror
=no
26208 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26209 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
26215 $as_echo "$gl_cv_func_working_strerror" >&6; }
26216 case "$gl_cv_func_working_strerror" in
26223 case "$gl_cv_func_strerror_r_works" in
26224 *no
) REPLACE_STRERROR
=1 ;;
26231 if test $REPLACE_STRERROR = 1; then
26240 gl_LIBOBJS
="$gl_LIBOBJS strerror.$ac_objext"
26245 cat >>confdefs.h
<<_ACEOF
26246 #define GNULIB_STRERROR 1
26261 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
26267 if test -n "$ERRNO_H" ||
test $REPLACE_STRERROR_0 = 1; then
26276 gl_LIBOBJS
="$gl_LIBOBJS strerror-override.$ac_objext"
26288 if test $ac_cv_header_sys_socket_h != yes; then
26289 for ac_header
in winsock2.h
26291 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26292 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
26293 cat >>confdefs.h
<<_ACEOF
26294 #define HAVE_WINSOCK2_H 1
26302 if test "$ac_cv_header_winsock2_h" = yes; then
26304 UNISTD_H_HAVE_WINSOCK2_H
=1
26305 SYS_IOCTL_H_HAVE_WINSOCK2_H
=1
26318 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26319 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
26320 HAVE_DECL_STRERROR_R
=1
26322 HAVE_DECL_STRERROR_R
=0
26326 cat >>confdefs.h
<<_ACEOF
26327 #define HAVE_DECL_STRERROR_R_ORIG $HAVE_DECL_STRERROR_R
26331 if test $ac_cv_func_strerror_r = yes; then
26332 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26333 if test $gl_cv_func_strerror_r_posix_signature = yes; then
26334 case "$gl_cv_func_strerror_r_works" in
26335 *no
) REPLACE_STRERROR_R
=1 ;;
26338 REPLACE_STRERROR_R
=1
26341 REPLACE_STRERROR_R
=1
26345 # Overwrite the findings of AC_FUNC_STRERROR_R (for code that uses that).
26348 if test $HAVE_DECL_STRERROR_R = 0 ||
test $REPLACE_STRERROR_R = 1; then
26357 gl_LIBOBJS
="$gl_LIBOBJS strerror_r.$ac_objext"
26388 GNULIB_STRERROR_R
=1
26394 $as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
26403 if test $REPLACE_STRSTR = 0; then
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
26405 $as_echo_n "checking whether strstr works in linear time... " >&6; }
26406 if ${gl_cv_func_strstr_linear+:} false
; then :
26407 $as_echo_n "(cached) " >&6
26409 if test "$cross_compiling" = yes; then :
26410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26411 /* end confdefs.h. */
26413 #include <features.h>
26414 #ifdef __GNU_LIBRARY__
26415 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
26416 && !(defined __i386__ || defined __x86_64__) \
26417 && !defined __UCLIBC__
26422 #include <cygwin/version.h>
26423 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
26429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26430 $EGREP "Lucky user" >/dev
/null
2>&1; then :
26431 gl_cv_func_strstr_linear
="guessing yes"
26433 gl_cv_func_strstr_linear
="guessing no"
26439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26440 /* end confdefs.h. */
26443 /* z/OS does not deliver signals while strstr() is running (thanks to
26444 restrictions on its LE runtime), which prevents us from limiting the
26445 running time of this test. */
26446 # error "This test does not work properly on z/OS"
26448 #include <signal.h> /* for signal */
26449 #include <string.h> /* for strstr */
26450 #include <stdlib.h> /* for malloc */
26451 #include <unistd.h> /* for alarm */
26452 static void quit (int sig) { _exit (sig + 128); }
26459 size_t m = 1000000;
26460 char *haystack = (char *) malloc (2 * m + 2);
26461 char *needle = (char *) malloc (m + 2);
26462 /* Failure to compile this test due to missing alarm is okay,
26463 since all such platforms (mingw) also have quadratic strstr. */
26464 signal (SIGALRM, quit);
26466 /* Check for quadratic performance. */
26467 if (haystack && needle)
26469 memset (haystack, 'A', 2 * m);
26470 haystack[2 * m] = 'B';
26471 haystack[2 * m + 1] = 0;
26472 memset (needle, 'A', m);
26475 if (!strstr (haystack, needle))
26484 if ac_fn_c_try_run
"$LINENO"; then :
26485 gl_cv_func_strstr_linear
=yes
26487 gl_cv_func_strstr_linear
=no
26489 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26490 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
26496 $as_echo "$gl_cv_func_strstr_linear" >&6; }
26497 case "$gl_cv_func_strstr_linear" in
26505 if test $REPLACE_STRSTR = 1; then
26514 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
26520 if test "$gl_cv_func_memchr_works" != yes; then
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
26524 $as_echo_n "checking whether strstr works... " >&6; }
26525 if ${gl_cv_func_strstr_works_always+:} false
; then :
26526 $as_echo_n "(cached) " >&6
26528 if test "$cross_compiling" = yes; then :
26529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26530 /* end confdefs.h. */
26532 #ifdef __GNU_LIBRARY__
26533 #include <features.h>
26534 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
26535 || defined __UCLIBC__
26538 #elif defined __CYGWIN__
26539 #include <cygwin/version.h>
26540 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
26548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26549 $EGREP "Lucky user" >/dev
/null
2>&1; then :
26550 gl_cv_func_strstr_works_always
="guessing yes"
26552 gl_cv_func_strstr_works_always
="guessing no"
26558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26559 /* end confdefs.h. */
26561 #include <string.h> /* for strstr */
26562 #define P "_EF_BF_BD"
26563 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
26564 #define NEEDLE P P P P P
26569 return !!strstr (HAYSTACK, NEEDLE);
26575 if ac_fn_c_try_run
"$LINENO"; then :
26576 gl_cv_func_strstr_works_always
=yes
26578 gl_cv_func_strstr_works_always
=no
26580 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26581 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
26587 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
26588 case "$gl_cv_func_strstr_works_always" in
26596 if test $REPLACE_STRSTR = 1; then
26605 gl_LIBOBJS
="$gl_LIBOBJS strstr.$ac_objext"
26619 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
26627 for ac_func
in strtok_r
26629 ac_fn_c_check_func
"$LINENO" "strtok_r" "ac_cv_func_strtok_r"
26630 if test "x$ac_cv_func_strtok_r" = xyes
; then :
26631 cat >>confdefs.h
<<_ACEOF
26632 #define HAVE_STRTOK_R 1
26638 if test $ac_cv_func_strtok_r = yes; then
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
26641 $as_echo_n "checking whether strtok_r works... " >&6; }
26642 if ${gl_cv_func_strtok_r_works+:} false
; then :
26643 $as_echo_n "(cached) " >&6
26645 if test "$cross_compiling" = yes; then :
26648 # Guess no on glibc systems.
26649 *-gnu*) gl_cv_func_strtok_r_works
="guessing no";;
26650 *) gl_cv_func_strtok_r_works
="guessing yes";;
26654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26655 /* end confdefs.h. */
26657 #ifndef __OPTIMIZE__
26658 # define __OPTIMIZE__ 1
26660 #undef __OPTIMIZE_SIZE__
26661 #undef __NO_INLINE__
26662 #include <stdlib.h>
26663 #include <string.h>
26668 static const char dummy[] = "\177\01a";
26669 char delimiters[] = "xxxxxxxx";
26670 char *save_ptr = (char *) dummy;
26671 strtok_r (delimiters, "x", &save_ptr);
26672 strtok_r (NULL, "x", &save_ptr);
26680 if ac_fn_c_try_run
"$LINENO"; then :
26681 gl_cv_func_strtok_r_works
=yes
26683 gl_cv_func_strtok_r_works
=no
26685 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
26686 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
26692 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
26693 case "$gl_cv_func_strtok_r_works" in
26695 UNDEFINE_STRTOK_R
=1
26708 if test $ac_cv_have_decl_strtok_r = no
; then
26709 HAVE_DECL_STRTOK_R
=0
26712 if test $HAVE_STRTOK_R = 0 ||
test $REPLACE_STRTOK_R = 1; then
26721 gl_LIBOBJS
="$gl_LIBOBJS strtok_r.$ac_objext"
26738 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
26764 if test $gl_cv_have_include_next = yes; then
26765 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26768 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26769 if ${gl_cv_next_sys_stat_h+:} false
; then :
26770 $as_echo_n "(cached) " >&6
26773 if test $ac_cv_header_sys_stat_h = yes; then
26778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26779 /* end confdefs.h. */
26780 #include <sys/stat.h>
26783 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26784 *) gl_absname_cpp
="$ac_cpp" ;;
26789 gl_dirsep_regex
='[/\\]'
26792 gl_dirsep_regex
='\/'
26795 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26796 gl_header_literal_regex
=`echo 'sys/stat.h' \
26797 | sed -e "$gl_make_literal_regex_sed"`
26798 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26799 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26805 gl_cv_absolute_sys_stat_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26806 sed -n "$gl_absolute_header_sed"`
26808 gl_header
=$gl_cv_absolute_sys_stat_h
26809 gl_cv_next_sys_stat_h
='"'$gl_header'"'
26811 gl_cv_next_sys_stat_h
='<'sys
/stat.h
'>'
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26817 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26819 NEXT_SYS_STAT_H
=$gl_cv_next_sys_stat_h
26821 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26822 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26823 gl_next_as_first_directive
='<'sys
/stat.h
'>'
26825 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26826 gl_next_as_first_directive
=$gl_cv_next_sys_stat_h
26828 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
=$gl_next_as_first_directive
26840 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
26842 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
26846 ac_fn_c_check_type
"$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26847 #include <sys/stat.h>
26849 if test "x$ac_cv_type_nlink_t" = xyes
; then :
26853 $as_echo "#define nlink_t int" >>confdefs.h
26859 for gl_func
in fchmodat fstat fstatat futimens lchmod lstat mkdirat
mkfifo mkfifoat mknod mknodat stat utimensat
; do
26860 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26862 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26863 if eval \
${$as_gl_Symbol+:} false
; then :
26864 $as_echo_n "(cached) " >&6
26866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26867 /* end confdefs.h. */
26868 #include <sys/stat.h>
26879 if ac_fn_c_try_compile
"$LINENO"; then :
26880 eval "$as_gl_Symbol=yes"
26882 eval "$as_gl_Symbol=no"
26884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26886 eval ac_res
=\$
$as_gl_Symbol
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26888 $as_echo "$ac_res" >&6; }
26889 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
26890 cat >>confdefs.h
<<_ACEOF
26891 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26894 eval ac_cv_have_decl_
$gl_func=yes
26923 if test $gl_cv_have_include_next = yes; then
26924 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
26927 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
26928 if ${gl_cv_next_sys_uio_h+:} false
; then :
26929 $as_echo_n "(cached) " >&6
26932 if test $ac_cv_header_sys_uio_h = yes; then
26937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26938 /* end confdefs.h. */
26939 #include <sys/uio.h>
26942 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
26943 *) gl_absname_cpp
="$ac_cpp" ;;
26948 gl_dirsep_regex
='[/\\]'
26951 gl_dirsep_regex
='\/'
26954 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
26955 gl_header_literal_regex
=`echo 'sys/uio.h' \
26956 | sed -e "$gl_make_literal_regex_sed"`
26957 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26958 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26964 gl_cv_absolute_sys_uio_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26965 sed -n "$gl_absolute_header_sed"`
26967 gl_header
=$gl_cv_absolute_sys_uio_h
26968 gl_cv_next_sys_uio_h
='"'$gl_header'"'
26970 gl_cv_next_sys_uio_h
='<'sys
/uio.h
'>'
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
26976 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
26978 NEXT_SYS_UIO_H
=$gl_cv_next_sys_uio_h
26980 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
26981 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26982 gl_next_as_first_directive
='<'sys
/uio.h
'>'
26984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26985 gl_next_as_first_directive
=$gl_cv_next_sys_uio_h
26987 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
=$gl_next_as_first_directive
26992 if test $ac_cv_header_sys_uio_h = yes; then
27018 ac_fn_c_check_decl
"$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27020 if test "x$ac_cv_have_decl_localtime_r" = xyes
; then :
27026 cat >>confdefs.h
<<_ACEOF
27027 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27030 if test $ac_cv_have_decl_localtime_r = no
; then
27031 HAVE_DECL_LOCALTIME_R
=0
27041 if test $ac_cv_func_localtime_r = yes; then
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27044 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27045 if ${gl_cv_time_r_posix+:} false
; then :
27046 $as_echo_n "(cached) " >&6
27048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27049 /* end confdefs.h. */
27054 /* We don't need to append 'restrict's to the argument types,
27055 even though the POSIX signature has the 'restrict's,
27056 since C99 says they can't affect type compatibility. */
27057 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27059 /* Check the return type is a pointer.
27060 On HP-UX 10 it is 'int'. */
27061 *localtime_r (0, 0);
27067 if ac_fn_c_try_compile
"$LINENO"; then :
27068 gl_cv_time_r_posix
=yes
27070 gl_cv_time_r_posix
=no
27072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27076 $as_echo "$gl_cv_time_r_posix" >&6; }
27077 if test $gl_cv_time_r_posix = yes; then
27078 REPLACE_LOCALTIME_R
=0
27080 REPLACE_LOCALTIME_R
=1
27086 if test $HAVE_LOCALTIME_R = 0 ||
test $REPLACE_LOCALTIME_R = 1; then
27095 gl_LIBOBJS
="$gl_LIBOBJS time_r.$ac_objext"
27112 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
27134 if test $gl_cv_have_include_next = yes; then
27135 gl_cv_next_unistd_h
='<'unistd.h
'>'
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27138 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27139 if ${gl_cv_next_unistd_h+:} false
; then :
27140 $as_echo_n "(cached) " >&6
27143 if test $ac_cv_header_unistd_h = yes; then
27148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27149 /* end confdefs.h. */
27150 #include <unistd.h>
27153 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27154 *) gl_absname_cpp
="$ac_cpp" ;;
27159 gl_dirsep_regex
='[/\\]'
27162 gl_dirsep_regex
='\/'
27165 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27166 gl_header_literal_regex
=`echo 'unistd.h' \
27167 | sed -e "$gl_make_literal_regex_sed"`
27168 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27169 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27175 gl_cv_absolute_unistd_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27176 sed -n "$gl_absolute_header_sed"`
27178 gl_header
=$gl_cv_absolute_unistd_h
27179 gl_cv_next_unistd_h
='"'$gl_header'"'
27181 gl_cv_next_unistd_h
='<'unistd.h
'>'
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27187 $as_echo "$gl_cv_next_unistd_h" >&6; }
27189 NEXT_UNISTD_H
=$gl_cv_next_unistd_h
27191 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27193 gl_next_as_first_directive
='<'unistd.h
'>'
27195 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27196 gl_next_as_first_directive
=$gl_cv_next_unistd_h
27198 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
=$gl_next_as_first_directive
27203 if test $ac_cv_header_unistd_h = yes; then
27215 for gl_func
in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat
rmdir sethostname
sleep symlink symlinkat ttyname_r unlink unlinkat
usleep; do
27216 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27218 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27219 if eval \
${$as_gl_Symbol+:} false
; then :
27220 $as_echo_n "(cached) " >&6
27222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27223 /* end confdefs.h. */
27226 # include <unistd.h>
27228 /* Some systems declare various items in the wrong headers. */
27229 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27230 # include <fcntl.h>
27231 # include <stdio.h>
27232 # include <stdlib.h>
27233 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
27247 if ac_fn_c_try_compile
"$LINENO"; then :
27248 eval "$as_gl_Symbol=yes"
27250 eval "$as_gl_Symbol=no"
27252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27254 eval ac_res
=\$
$as_gl_Symbol
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27256 $as_echo "$ac_res" >&6; }
27257 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
27258 cat >>confdefs.h
<<_ACEOF
27259 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27262 eval ac_cv_have_decl_
$gl_func=yes
27285 if test $ac_cv_have_decl_unsetenv = no
; then
27286 HAVE_DECL_UNSETENV
=0
27288 for ac_func
in unsetenv
27290 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27291 if test "x$ac_cv_func_unsetenv" = xyes
; then :
27292 cat >>confdefs.h
<<_ACEOF
27293 #define HAVE_UNSETENV 1
27299 if test $ac_cv_func_unsetenv = no
; then
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27304 $as_echo_n "checking for unsetenv() return type... " >&6; }
27305 if ${gt_cv_func_unsetenv_ret+:} false
; then :
27306 $as_echo_n "(cached) " >&6
27308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27309 /* end confdefs.h. */
27312 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27313 #include <stdlib.h>
27318 int unsetenv (const char *name);
27328 if ac_fn_c_try_compile
"$LINENO"; then :
27329 gt_cv_func_unsetenv_ret
='int'
27331 gt_cv_func_unsetenv_ret
='void'
27333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27336 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27337 if test $gt_cv_func_unsetenv_ret = 'void'; then
27339 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27345 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27346 if ${gl_cv_func_unsetenv_works+:} false
; then :
27347 $as_echo_n "(cached) " >&6
27349 if test "$cross_compiling" = yes; then :
27351 # Guess yes on glibc systems.
27352 *-gnu*) gl_cv_func_unsetenv_works
="guessing yes" ;;
27353 # If we don't know, assume the worst.
27354 *) gl_cv_func_unsetenv_works
="guessing no" ;;
27358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27359 /* end confdefs.h. */
27361 #include <stdlib.h>
27363 extern char **environ;
27369 char entry1[] = "a=1";
27370 char entry2[] = "b=2";
27371 char *env[] = { entry1, entry2, NULL };
27372 if (putenv ((char *) "a=1")) return 1;
27373 if (putenv (entry2)) return 2;
27376 if (getenv ("a")) return 3;
27377 if (!unsetenv ("") || errno != EINVAL) return 4;
27380 if (!getenv ("a")) return 5;
27383 if (getenv ("a")) return 6;
27389 if ac_fn_c_try_run
"$LINENO"; then :
27390 gl_cv_func_unsetenv_works
=yes
27392 gl_cv_func_unsetenv_works
=no
27394 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27395 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27400 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27401 case "$gl_cv_func_unsetenv_works" in
27409 if test $HAVE_UNSETENV = 0 ||
test $REPLACE_UNSETENV = 1; then
27418 gl_LIBOBJS
="$gl_LIBOBJS unsetenv.$ac_objext"
27442 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
27464 if test $gl_cv_have_include_next = yes; then
27465 gl_cv_next_wchar_h
='<'wchar.h
'>'
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
27468 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
27469 if ${gl_cv_next_wchar_h+:} false
; then :
27470 $as_echo_n "(cached) " >&6
27473 if test $ac_cv_header_wchar_h = yes; then
27478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27479 /* end confdefs.h. */
27483 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27484 *) gl_absname_cpp
="$ac_cpp" ;;
27489 gl_dirsep_regex
='[/\\]'
27492 gl_dirsep_regex
='\/'
27495 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27496 gl_header_literal_regex
=`echo 'wchar.h' \
27497 | sed -e "$gl_make_literal_regex_sed"`
27498 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27499 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27505 gl_cv_absolute_wchar_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27506 sed -n "$gl_absolute_header_sed"`
27508 gl_header
=$gl_cv_absolute_wchar_h
27509 gl_cv_next_wchar_h
='"'$gl_header'"'
27511 gl_cv_next_wchar_h
='<'wchar.h
'>'
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
27517 $as_echo "$gl_cv_next_wchar_h" >&6; }
27519 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
27521 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27522 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27523 gl_next_as_first_directive
='<'wchar.h
'>'
27525 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27526 gl_next_as_first_directive
=$gl_cv_next_wchar_h
27528 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
27533 if test $ac_cv_header_wchar_h = yes; then
27543 if test $gt_cv_c_wint_t = yes; then
27551 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth
; do
27552 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27554 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27555 if eval \
${$as_gl_Symbol+:} false
; then :
27556 $as_echo_n "(cached) " >&6
27558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27559 /* end confdefs.h. */
27561 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27563 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27564 included before <wchar.h>. */
27565 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27566 # include <stddef.h>
27567 # include <stdio.h>
27581 if ac_fn_c_try_compile
"$LINENO"; then :
27582 eval "$as_gl_Symbol=yes"
27584 eval "$as_gl_Symbol=no"
27586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27588 eval ac_res
=\$
$as_gl_Symbol
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27590 $as_echo "$ac_res" >&6; }
27591 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
27592 cat >>confdefs.h
<<_ACEOF
27593 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27596 eval ac_cv_have_decl_
$gl_func=yes
27612 if test $ac_cv_func_iswcntrl = yes; then
27620 if test $gt_cv_c_wint_t = yes; then
27642 if test $gl_cv_have_include_next = yes; then
27643 gl_cv_next_wctype_h
='<'wctype.h
'>'
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
27646 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
27647 if ${gl_cv_next_wctype_h+:} false
; then :
27648 $as_echo_n "(cached) " >&6
27651 if test $ac_cv_header_wctype_h = yes; then
27656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27657 /* end confdefs.h. */
27658 #include <wctype.h>
27661 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
27662 *) gl_absname_cpp
="$ac_cpp" ;;
27667 gl_dirsep_regex
='[/\\]'
27670 gl_dirsep_regex
='\/'
27673 gl_make_literal_regex_sed
='s,[]$^\\.*/[],\\&,g'
27674 gl_header_literal_regex
=`echo 'wctype.h' \
27675 | sed -e "$gl_make_literal_regex_sed"`
27676 gl_absolute_header_sed
="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27677 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27683 gl_cv_absolute_wctype_h
=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27684 sed -n "$gl_absolute_header_sed"`
27686 gl_header
=$gl_cv_absolute_wctype_h
27687 gl_cv_next_wctype_h
='"'$gl_header'"'
27689 gl_cv_next_wctype_h
='<'wctype.h
'>'
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
27695 $as_echo "$gl_cv_next_wctype_h" >&6; }
27697 NEXT_WCTYPE_H
=$gl_cv_next_wctype_h
27699 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
27700 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27701 gl_next_as_first_directive
='<'wctype.h
'>'
27703 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27704 gl_next_as_first_directive
=$gl_cv_next_wctype_h
27706 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
=$gl_next_as_first_directive
27711 if test $ac_cv_header_wctype_h = yes; then
27712 if test $ac_cv_func_iswcntrl = yes; then
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
27714 $as_echo_n "checking whether iswcntrl works... " >&6; }
27715 if ${gl_cv_func_iswcntrl_works+:} false
; then :
27716 $as_echo_n "(cached) " >&6
27719 if test "$cross_compiling" = yes; then :
27720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27721 /* end confdefs.h. */
27722 #include <stdlib.h>
27723 #if __GNU_LIBRARY__ == 1
27724 Linux libc5 i18n is broken.
27734 if ac_fn_c_try_compile
"$LINENO"; then :
27735 gl_cv_func_iswcntrl_works
="guessing yes"
27737 gl_cv_func_iswcntrl_works
="guessing no"
27739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27743 /* end confdefs.h. */
27745 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27746 included before <wchar.h>.
27747 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27748 must be included before <wchar.h>. */
27749 #include <stddef.h>
27753 #include <wctype.h>
27754 int main () { return iswprint ('x') == 0; }
27757 if ac_fn_c_try_run
"$LINENO"; then :
27758 gl_cv_func_iswcntrl_works
=yes
27760 gl_cv_func_iswcntrl_works
=no
27762 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27763 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
27769 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
27777 case "$gl_cv_func_iswcntrl_works" in
27778 *yes) REPLACE_ISWCNTRL
=0 ;;
27779 *) REPLACE_ISWCNTRL
=1 ;;
27783 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_ISWCNTRL = 1; then
27787 if test $REPLACE_ISWCNTRL = 1; then
27790 for ac_func
in towlower
27792 ac_fn_c_check_func
"$LINENO" "towlower" "ac_cv_func_towlower"
27793 if test "x$ac_cv_func_towlower" = xyes
; then :
27794 cat >>confdefs.h
<<_ACEOF
27795 #define HAVE_TOWLOWER 1
27801 if test $ac_cv_func_towlower = yes; then
27804 ac_fn_c_check_decl
"$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27805 included before <wchar.h>.
27806 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27807 must be included before <wchar.h>. */
27808 #include <stddef.h>
27813 # include <wctype.h>
27817 if test "x$ac_cv_have_decl_towlower" = xyes
; then :
27823 cat >>confdefs.h
<<_ACEOF
27824 #define HAVE_DECL_TOWLOWER $ac_have_decl
27827 if test $ac_cv_have_decl_towlower = yes; then
27836 if test $HAVE_ISWCNTRL = 0 ||
test $REPLACE_TOWLOWER = 1; then
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
27841 $as_echo_n "checking for wctype_t... " >&6; }
27842 if ${gl_cv_type_wctype_t+:} false
; then :
27843 $as_echo_n "(cached) " >&6
27845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27846 /* end confdefs.h. */
27847 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27848 included before <wchar.h>.
27849 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27850 must be included before <wchar.h>. */
27851 #include <stddef.h>
27856 # include <wctype.h>
27868 if ac_fn_c_try_compile
"$LINENO"; then :
27869 gl_cv_type_wctype_t
=yes
27871 gl_cv_type_wctype_t
=no
27873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
27877 $as_echo "$gl_cv_type_wctype_t" >&6; }
27878 if test $gl_cv_type_wctype_t = no
; then
27882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
27883 $as_echo_n "checking for wctrans_t... " >&6; }
27884 if ${gl_cv_type_wctrans_t+:} false
; then :
27885 $as_echo_n "(cached) " >&6
27887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27888 /* end confdefs.h. */
27889 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
27890 included before <wchar.h>.
27891 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
27892 must be included before <wchar.h>. */
27893 #include <stddef.h>
27897 #include <wctype.h>
27908 if ac_fn_c_try_compile
"$LINENO"; then :
27909 gl_cv_type_wctrans_t
=yes
27911 gl_cv_type_wctrans_t
=no
27913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
27917 $as_echo "$gl_cv_type_wctrans_t" >&6; }
27918 if test $gl_cv_type_wctrans_t = no
; then
27923 for gl_func
in wctype iswctype wctrans towctrans
; do
27924 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27926 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27927 if eval \
${$as_gl_Symbol+:} false
; then :
27928 $as_echo_n "(cached) " >&6
27930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27931 /* end confdefs.h. */
27933 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27935 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27936 included before <wchar.h>. */
27937 #if !(defined __GLIBC__ && !defined __UCLIBC__)
27938 # include <stddef.h>
27939 # include <stdio.h>
27941 # include <wchar.h>
27943 #include <wctype.h>
27954 if ac_fn_c_try_compile
"$LINENO"; then :
27955 eval "$as_gl_Symbol=yes"
27957 eval "$as_gl_Symbol=no"
27959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27961 eval ac_res
=\$
$as_gl_Symbol
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27963 $as_echo "$ac_res" >&6; }
27964 if eval test \"x\$
"$as_gl_Symbol"\" = x
"yes"; then :
27965 cat >>confdefs.h
<<_ACEOF
27966 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27969 eval ac_cv_have_decl_
$gl_func=yes
27974 # End of code from modules
27995 gl_source_base
='tests'
27996 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
27998 gl_module_indicator_condition
=$gltests_WITNESS
28008 LIBGNU_LIBDEPS
="$gl_libdeps"
28010 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
28014 am__api_version
='1.15'
28016 # Find a good install program. We prefer a C program (faster),
28017 # so one script is as good as another. But avoid the broken or
28018 # incompatible versions:
28019 # SysV /etc/install, /usr/sbin/install
28020 # SunOS /usr/etc/install
28021 # IRIX /sbin/install
28023 # AmigaOS /C/install, which installs bootblocks on floppy discs
28024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
28025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
28026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
28027 # OS/2's system install, which has a completely different semantic
28028 # ./install, which can be erroneously created by make from ./install.sh.
28029 # Reject install programs that cannot install multiple files.
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
28031 $as_echo_n "checking for a BSD-compatible install... " >&6; }
28032 if test -z "$INSTALL"; then
28033 if ${ac_cv_path_install+:} false
; then :
28034 $as_echo_n "(cached) " >&6
28036 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28037 for as_dir
in $PATH
28040 test -z "$as_dir" && as_dir
=.
28041 # Account for people who put trailing slashes in PATH elements.
28042 case $as_dir/ in #((
28043 .
/ | .
// |
/[cC
]/* | \
28044 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
28045 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
28048 # OSF1 and SCO ODT 3.0 have their own names for install.
28049 # Don't use installbsd from OSF since it installs stuff as root
28051 for ac_prog
in ginstall scoinst
install; do
28052 for ac_exec_ext
in '' $ac_executable_extensions; do
28053 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
28054 if test $ac_prog = install &&
28055 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
28056 # AIX install. It has an incompatible calling convention.
28058 elif test $ac_prog = install &&
28059 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
28060 # program-specific install script used by HP pwplus--don't use.
28063 rm -rf conftest.one conftest.two conftest.dir
28064 echo one
> conftest.one
28065 echo two
> conftest.two
28067 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
28068 test -s conftest.one
&& test -s conftest.two
&&
28069 test -s conftest.dir
/conftest.one
&&
28070 test -s conftest.dir
/conftest.two
28072 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
28085 rm -rf conftest.one conftest.two conftest.dir
28088 if test "${ac_cv_path_install+set}" = set; then
28089 INSTALL
=$ac_cv_path_install
28091 # As a last resort, use the slow shell script. Don't cache a
28092 # value for INSTALL within a source directory, because that will
28093 # break other packages using the cache if that directory is
28094 # removed, or if the value is a relative name.
28095 INSTALL
=$ac_install_sh
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
28099 $as_echo "$INSTALL" >&6; }
28101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
28102 # It thinks the first close brace ends the variable substitution.
28103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
28105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
28107 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
28109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
28110 $as_echo_n "checking whether build environment is sane... " >&6; }
28111 # Reject unsafe characters in $srcdir or the absolute working directory
28112 # name. Accept space and tab only in the latter.
28116 *[\\\"\
#\$\&\'\`$am_lf]*)
28117 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
28120 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
28121 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
28124 # Do 'set' in a subshell so we don't clobber the current shell's
28125 # arguments. Must try -L first in case configure is actually a
28126 # symlink; some systems play weird games with the mod time of symlinks
28127 # (eg FreeBSD returns the mod time of the symlink's containing
28131 for am_try
in 1 2; do
28132 echo "timestamp, slept: $am_has_slept" > conftest.
file
28133 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
28134 if test "$*" = "X"; then
28136 set X
`ls -t "$srcdir/configure" conftest.file`
28138 if test "$*" != "X $srcdir/configure conftest.file" \
28139 && test "$*" != "X conftest.file $srcdir/configure"; then
28141 # If neither matched, then we have a broken ls. This can happen
28142 # if, for instance, CONFIG_SHELL is bash and it inherits a
28143 # broken ls alias from the environment. This has actually
28144 # happened. Such a system could not be considered "sane".
28145 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
28146 alias in your environment" "$LINENO" 5
28148 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
28155 test "$2" = conftest.
file
28161 as_fn_error $?
"newly created file is older than distributed files!
28162 Check your system clock" "$LINENO" 5
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28165 $as_echo "yes" >&6; }
28166 # If we didn't sleep, we still need to ensure time stamps of config.status and
28167 # generated files are strictly newer.
28169 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
28174 rm -f conftest.
file
28176 test "$program_prefix" != NONE
&&
28177 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
28178 # Use a double $ so make ignores it.
28179 test "$program_suffix" != NONE
&&
28180 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
28181 # Double any \ or $.
28182 # By default was `s,x,x', remove it if useless.
28183 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
28184 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
28186 if test x
"${MISSING+set}" != xset
; then
28187 case $am_aux_dir in
28189 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
28191 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
28194 # Use eval to expand $SHELL
28195 if eval "$MISSING --is-lightweight"; then
28196 am_missing_run
="$MISSING "
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
28200 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
28203 if test x
"${install_sh+set}" != xset
; then
28204 case $am_aux_dir in
28206 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
28208 install_sh
="\${SHELL} $am_aux_dir/install-sh"
28212 # Installed binaries are usually stripped using 'strip' when the user
28213 # run "make install-strip". However 'strip' might not be the right
28214 # tool to use in cross-compilation environments, therefore Automake
28215 # will honor the 'STRIP' environment variable to overrule this program.
28216 if test "$cross_compiling" != no
; then
28217 if test -n "$ac_tool_prefix"; then
28218 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
28219 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28221 $as_echo_n "checking for $ac_word... " >&6; }
28222 if ${ac_cv_prog_STRIP+:} false
; then :
28223 $as_echo_n "(cached) " >&6
28225 if test -n "$STRIP"; then
28226 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
28228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28229 for as_dir
in $PATH
28232 test -z "$as_dir" && as_dir
=.
28233 for ac_exec_ext
in '' $ac_executable_extensions; do
28234 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28235 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
28236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28245 STRIP
=$ac_cv_prog_STRIP
28246 if test -n "$STRIP"; then
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
28248 $as_echo "$STRIP" >&6; }
28250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28251 $as_echo "no" >&6; }
28256 if test -z "$ac_cv_prog_STRIP"; then
28258 # Extract the first word of "strip", so it can be a program name with args.
28259 set dummy strip
; ac_word
=$2
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28261 $as_echo_n "checking for $ac_word... " >&6; }
28262 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
28263 $as_echo_n "(cached) " >&6
28265 if test -n "$ac_ct_STRIP"; then
28266 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
28268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28269 for as_dir
in $PATH
28272 test -z "$as_dir" && as_dir
=.
28273 for ac_exec_ext
in '' $ac_executable_extensions; do
28274 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28275 ac_cv_prog_ac_ct_STRIP
="strip"
28276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28285 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
28286 if test -n "$ac_ct_STRIP"; then
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
28288 $as_echo "$ac_ct_STRIP" >&6; }
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28291 $as_echo "no" >&6; }
28294 if test "x$ac_ct_STRIP" = x
; then
28297 case $cross_compiling:$ac_tool_warned in
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28301 ac_tool_warned
=yes ;;
28306 STRIP
="$ac_cv_prog_STRIP"
28310 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
28312 for ac_prog
in gawk mawk nawk
awk
28314 # Extract the first word of "$ac_prog", so it can be a program name with args.
28315 set dummy
$ac_prog; ac_word
=$2
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28317 $as_echo_n "checking for $ac_word... " >&6; }
28318 if ${ac_cv_prog_AWK+:} false
; then :
28319 $as_echo_n "(cached) " >&6
28321 if test -n "$AWK"; then
28322 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
28324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28325 for as_dir
in $PATH
28328 test -z "$as_dir" && as_dir
=.
28329 for ac_exec_ext
in '' $ac_executable_extensions; do
28330 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
28331 ac_cv_prog_AWK
="$ac_prog"
28332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28341 AWK
=$ac_cv_prog_AWK
28342 if test -n "$AWK"; then
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
28344 $as_echo "$AWK" >&6; }
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28347 $as_echo "no" >&6; }
28351 test -n "$AWK" && break
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
28355 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28357 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
28358 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
28359 $as_echo_n "(cached) " >&6
28361 cat >conftest.
make <<\_ACEOF
28364 @
echo '@@@%%%=$(MAKE)=@@@%%%'
28366 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
28367 case `${MAKE-make} -f conftest.make 2>/dev/null` in
28368 *@@@
%%%=?
*=@@@
%%%*)
28369 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
28371 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
28373 rm -f conftest.
make
28375 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28377 $as_echo "yes" >&6; }
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28381 $as_echo "no" >&6; }
28382 SET_MAKE
="MAKE=${MAKE-make}"
28385 rm -rf .tst
2>/dev
/null
28386 mkdir .tst
2>/dev
/null
28387 if test -d .tst
; then
28392 rmdir .tst
2>/dev
/null
28394 DEPDIR
="${am__leading_dot}deps"
28396 ac_config_commands
="$ac_config_commands depfiles"
28399 am_make
=${MAKE-make}
28400 cat > confinc
<< 'END'
28402 @
echo this is the am__doit target
28405 # If we don't find an include directive, just comment out the code.
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
28407 $as_echo_n "checking for style of include used by $am_make... " >&6; }
28411 # First try GNU make style include.
28412 echo "include confinc" > confmf
28413 # Ignore all kinds of additional output from 'make'.
28414 case `$am_make -s -f confmf 2> /dev/null` in #(
28415 *the\ am__doit\ target
*)
28416 am__include
=include
28421 # Now try BSD make style include.
28422 if test "$am__include" = "#"; then
28423 echo '.include "confinc"' > confmf
28424 case `$am_make -s -f confmf 2> /dev/null` in #(
28425 *the\ am__doit\ target
*)
28426 am__include
=.include
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
28435 $as_echo "$_am_result" >&6; }
28436 rm -f confinc confmf
28438 # Check whether --enable-dependency-tracking was given.
28439 if test "${enable_dependency_tracking+set}" = set; then :
28440 enableval
=$enable_dependency_tracking;
28443 if test "x$enable_dependency_tracking" != xno
; then
28444 am_depcomp
="$ac_aux_dir/depcomp"
28448 if test "x$enable_dependency_tracking" != xno; then
28457 # Check whether --enable-silent-rules was given.
28458 if test "${enable_silent_rules+set}" = set; then :
28459 enableval
=$enable_silent_rules;
28462 case $enable_silent_rules in # (((
28463 yes) AM_DEFAULT_VERBOSITY
=0;;
28464 no
) AM_DEFAULT_VERBOSITY
=1;;
28465 *) AM_DEFAULT_VERBOSITY
=1;;
28467 am_make
=${MAKE-make}
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
28469 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
28470 if ${am_cv_make_support_nested_variables+:} false
; then :
28471 $as_echo_n "(cached) " >&6
28473 if $as_echo 'TRUE=$(BAR$(V))
28479 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
28480 am_cv_make_support_nested_variables
=yes
28482 am_cv_make_support_nested_variables
=no
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
28486 $as_echo "$am_cv_make_support_nested_variables" >&6; }
28487 if test $am_cv_make_support_nested_variables = yes; then
28489 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
28491 AM_V
=$AM_DEFAULT_VERBOSITY
28492 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
28496 if test "`cd $srcdir && pwd`" != "`pwd`"; then
28497 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
28498 # is not polluted with repeated "-I."
28499 am__isrc
=' -I$(srcdir)'
28500 # test to see if srcdir already configured
28501 if test -f $srcdir/config.status
; then
28502 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
28506 # test whether we have cygpath
28507 if test -z "$CYGPATH_W"; then
28508 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
28509 CYGPATH_W
='cygpath -w'
28516 # Define the identity of the package.
28518 VERSION
='UNUSED-VERSION'
28521 # Some tools Automake needs.
28523 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
28526 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
28529 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
28532 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
28535 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
28537 # For better backward compatibility. To be removed once Automake 1.9.x
28538 # dies out for good. For more background, see:
28539 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
28540 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
28541 mkdir_p
='$(MKDIR_P)'
28543 # We need awk for the "check" target (and possibly the TAP driver). The
28544 # system "awk" is bad on some platforms.
28545 # Always define AMTAR for backward compatibility. Yes, it's still used
28546 # in the wild :-( We should find a proper way to deprecate it ...
28547 AMTAR
='$${TAR-tar}'
28550 # We'll loop over all known methods to create a tar archive until one works.
28551 _am_tools
='gnutar pax cpio none'
28553 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
28559 depcc
="$CC" am_compiler_list
=
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
28562 $as_echo_n "checking dependency style of $depcc... " >&6; }
28563 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
28564 $as_echo_n "(cached) " >&6
28566 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
28567 # We make a subdir and do the tests there. Otherwise we can end up
28568 # making bogus files that we don't know about and never remove. For
28569 # instance it was reported that on HP-UX the gcc test will end up
28570 # making a dummy file named 'D' -- because '-MD' means "put the output
28572 rm -rf conftest.dir
28574 # Copy depcomp to subdir because otherwise we won't find it if we're
28575 # using a relative directory.
28576 cp "$am_depcomp" conftest.dir
28578 # We will build objects and dependencies in a subdirectory because
28579 # it helps to detect inapplicable dependency modes. For instance
28580 # both Tru64's cc and ICC support -MD to output dependencies as a
28581 # side effect of compilation, but ICC will put the dependencies in
28582 # the current directory while Tru64 will put them in the object
28586 am_cv_CC_dependencies_compiler_type
=none
28587 if test "$am_compiler_list" = ""; then
28588 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
28590 am__universal
=false
28591 case " $depcc " in #(
28592 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
28595 for depmode
in $am_compiler_list; do
28596 # Setup a source with many dependencies, because some compilers
28597 # like to wrap large dependency lists on column 80 (with \), and
28598 # we should not choose a depcomp mode which is confused by this.
28600 # We need to recreate these files for each test, as the compiler may
28601 # overwrite some of them when testing with obscure command lines.
28602 # This happens at least with the AIX C compiler.
28604 for i
in 1 2 3 4 5 6; do
28605 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
28606 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
28607 # Solaris 10 /bin/sh.
28608 echo '/* dummy */' > sub
/conftst
$i.h
28610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
28612 # We check with '-c' and '-o' for the sake of the "dashmstdout"
28613 # mode. It turns out that the SunPro C++ compiler does not properly
28614 # handle '-M -o', and we need to detect this. Also, some Intel
28615 # versions had trouble with output in subdirs.
28616 am__obj
=sub
/conftest.
${OBJEXT-o}
28617 am__minus_obj
="-o $am__obj"
28620 # This depmode causes a compiler race in universal mode.
28621 test "$am__universal" = false ||
continue
28624 # After this tag, mechanisms are not by side-effect, so they'll
28625 # only be used when explicitly requested.
28626 if test "x$enable_dependency_tracking" = xyes
; then
28632 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
28633 # This compiler won't grok '-c -o', but also, the minuso test has
28634 # not run yet. These depmodes are late enough in the game, and
28635 # so weak that their functioning should not be impacted.
28636 am__obj
=conftest.
${OBJEXT-o}
28641 if depmode
=$depmode \
28642 source=sub
/conftest.c object
=$am__obj \
28643 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
28644 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
28645 >/dev
/null
2>conftest.err
&&
28646 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
28647 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
28648 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
28649 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
28650 # icc doesn't choke on unknown options, it will just issue warnings
28651 # or remarks (even with -Werror). So we grep stderr for any message
28652 # that says an option was ignored or not supported.
28653 # When given -MP, icc 7.0 and 7.1 complain thusly:
28654 # icc: Command line warning: ignoring option '-M'; no argument required
28655 # The diagnosis changed in icc 8.0:
28656 # icc: Command line remark: option '-MP' not supported
28657 if (grep 'ignoring option' conftest.err ||
28658 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
28659 am_cv_CC_dependencies_compiler_type
=$depmode
28666 rm -rf conftest.dir
28668 am_cv_CC_dependencies_compiler_type
=none
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
28673 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
28674 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
28677 test "x$enable_dependency_tracking" != xno \
28678 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
28679 am__fastdepCC_TRUE
=
28680 am__fastdepCC_FALSE
='#'
28682 am__fastdepCC_TRUE
='#'
28683 am__fastdepCC_FALSE
=
28688 # POSIX will say in a future version that running "rm -f" with no argument
28689 # is OK; and we want to be able to make that assumption in our Makefile
28690 # recipes. So use an aggressive probe to check that the usage we want is
28691 # actually supported "in the wild" to an acceptable degree.
28692 # See automake bug#10828.
28693 # To make any issue more visible, cause the running configure to be aborted
28694 # by default if the 'rm' program in use doesn't match our expectations; the
28695 # user can still override this though.
28696 if rm -f && rm -fr && rm -rf; then : OK
; else
28700 Your 'rm' program seems unable to run without file operands specified
28701 on the command line, even when the '-f' option is present. This is contrary
28702 to the behaviour of most rm programs out there, and not conforming with
28703 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
28705 Please tell bug-automake@gnu.org about your system, including the value
28706 of your $PATH and any error possibly output before this message. This
28707 can help us improve future automake versions.
28710 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
28711 echo 'Configuration will proceed anyway, since you have set the' >&2
28712 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
28716 Aborting the configuration process, to ensure you take notice of the issue.
28718 You can download and install GNU coreutils to get an 'rm' implementation
28719 that behaves properly: <http://www.gnu.org/software/coreutils/>.
28721 If you want to complete the configuration process using your problematic
28722 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
28723 to "yes", and re-run configure.
28726 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
28731 # Check whether --enable-silent-rules was given.
28732 if test "${enable_silent_rules+set}" = set; then :
28733 enableval
=$enable_silent_rules;
28736 case $enable_silent_rules in # (((
28737 yes) AM_DEFAULT_VERBOSITY
=0;;
28738 no
) AM_DEFAULT_VERBOSITY
=1;;
28739 *) AM_DEFAULT_VERBOSITY
=0;;
28741 am_make
=${MAKE-make}
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
28743 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
28744 if ${am_cv_make_support_nested_variables+:} false
; then :
28745 $as_echo_n "(cached) " >&6
28747 if $as_echo 'TRUE=$(BAR$(V))
28753 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
28754 am_cv_make_support_nested_variables
=yes
28756 am_cv_make_support_nested_variables
=no
28759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
28760 $as_echo "$am_cv_make_support_nested_variables" >&6; }
28761 if test $am_cv_make_support_nested_variables = yes; then
28763 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
28765 AM_V
=$AM_DEFAULT_VERBOSITY
28766 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
28771 # --------------------- #
28772 # Checks for programs. #
28773 # --------------------- #
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
28777 $as_echo_n "checking whether ln -s works... " >&6; }
28779 if test "$LN_S" = "ln -s"; then
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28781 $as_echo "yes" >&6; }
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
28784 $as_echo "no, using $LN_S" >&6; }
28787 if test -n "$ac_tool_prefix"; then
28788 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
28789 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
28790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28791 $as_echo_n "checking for $ac_word... " >&6; }
28792 if ${ac_cv_prog_RANLIB+:} false; then :
28793 $as_echo_n "(cached) " >&6
28795 if test -n "$RANLIB"; then
28796 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
28798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28799 for as_dir in $PATH
28802 test -z "$as_dir" && as_dir=.
28803 for ac_exec_ext in '' $ac_executable_extensions; do
28804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28805 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
28806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28815 RANLIB=$ac_cv_prog_RANLIB
28816 if test -n "$RANLIB"; then
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
28818 $as_echo "$RANLIB" >&6; }
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28821 $as_echo "no" >&6; }
28826 if test -z "$ac_cv_prog_RANLIB"; then
28827 ac_ct_RANLIB=$RANLIB
28828 # Extract the first word of "ranlib", so it can be a program name with args.
28829 set dummy ranlib; ac_word=$2
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28831 $as_echo_n "checking for $ac_word... " >&6; }
28832 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
28833 $as_echo_n "(cached) " >&6
28835 if test -n "$ac_ct_RANLIB"; then
28836 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
28838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28839 for as_dir in $PATH
28842 test -z "$as_dir" && as_dir=.
28843 for ac_exec_ext in '' $ac_executable_extensions; do
28844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28845 ac_cv_prog_ac_ct_RANLIB="ranlib"
28846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28855 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
28856 if test -n "$ac_ct_RANLIB"; then
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
28858 $as_echo "$ac_ct_RANLIB" >&6; }
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28861 $as_echo "no" >&6; }
28864 if test "x$ac_ct_RANLIB" = x; then
28867 case $cross_compiling:$ac_tool_warned in
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28871 ac_tool_warned=yes ;;
28873 RANLIB=$ac_ct_RANLIB
28876 RANLIB="$ac_cv_prog_RANLIB"
28880 if test -n "$ac_tool_prefix"; then
28881 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
28882 set dummy ${ac_tool_prefix}ar; ac_word=$2
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28884 $as_echo_n "checking for $ac_word... " >&6; }
28885 if ${ac_cv_prog_AR+:} false; then :
28886 $as_echo_n "(cached) " >&6
28888 if test -n "$AR"; then
28889 ac_cv_prog_AR="$AR" # Let the user override the test.
28891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28892 for as_dir in $PATH
28895 test -z "$as_dir" && as_dir=.
28896 for ac_exec_ext in '' $ac_executable_extensions; do
28897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28898 ac_cv_prog_AR="${ac_tool_prefix}ar"
28899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28909 if test -n "$AR"; then
28910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
28911 $as_echo "$AR" >&6; }
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28914 $as_echo "no" >&6; }
28919 if test -z "$ac_cv_prog_AR"; then
28921 # Extract the first word of "ar", so it can be a program name with args.
28922 set dummy ar; ac_word=$2
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28924 $as_echo_n "checking for $ac_word... " >&6; }
28925 if ${ac_cv_prog_ac_ct_AR+:} false; then :
28926 $as_echo_n "(cached) " >&6
28928 if test -n "$ac_ct_AR"; then
28929 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
28931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28932 for as_dir in $PATH
28935 test -z "$as_dir" && as_dir=.
28936 for ac_exec_ext in '' $ac_executable_extensions; do
28937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28938 ac_cv_prog_ac_ct_AR="ar"
28939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28948 ac_ct_AR=$ac_cv_prog_ac_ct_AR
28949 if test -n "$ac_ct_AR"; then
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
28951 $as_echo "$ac_ct_AR" >&6; }
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28954 $as_echo "no" >&6; }
28957 if test "x$ac_ct_AR" = x; then
28960 case $cross_compiling:$ac_tool_warned in
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28964 ac_tool_warned=yes ;;
28969 AR="$ac_cv_prog_AR"
28973 # ---------------------- #
28974 # Checks for libraries. #
28975 # ---------------------- #
28977 ac_config_files="$ac_config_files Makefile import/Makefile"
28979 ac_config_commands="$ac_config_commands default"
28981 cat >confcache <<\_ACEOF
28982 # This file is a shell script that caches the results of configure
28983 # tests run on this system so they can be shared between configure
28984 # scripts and configure runs, see configure's option
--config-cache.
28985 # It is not useful on other systems. If it contains results you don't
28986 # want to keep, you may remove or edit it.
28988 # config.status only pays attention to the cache file if you give it
28989 # the --recheck option to rerun configure.
28991 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28993 # following values.
28997 # The following way of writing the cache mishandles newlines in values,
28998 # but we know of no workaround that is simple, portable, and efficient.
28999 # So, we kill variables containing newlines.
29000 # Ultrix sh set writes to stderr and can't be redirected directly,
29001 # and sets the high bit in the cache file unless we assign to the vars.
29003 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29004 eval ac_val
=\$
$ac_var
29008 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29012 _ | IFS | as_nl
) ;; #(
29013 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29014 *) { eval $ac_var=; unset $ac_var;} ;;
29020 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29021 *${as_nl}ac_space
=\
*)
29022 # `set' does not quote correctly, so add quotes: double-quote
29023 # substitution turns \\\\ into \\, and sed turns \\ into \.
29026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29029 # `set' quotes correctly as required by POSIX, so do not add quotes.
29030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29039 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29041 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29043 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29044 if test -w "$cache_file"; then
29045 if test "x$cache_file" != "x/dev/null"; then
29046 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29047 $as_echo "$as_me: updating cache $cache_file" >&6;}
29048 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
29049 cat confcache
>"$cache_file"
29051 case $cache_file in #(
29053 mv -f confcache
"$cache_file"$$
&&
29054 mv -f "$cache_file"$$
"$cache_file" ;; #(
29056 mv -f confcache
"$cache_file" ;;
29061 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29062 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29067 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29068 # Let make expand exec_prefix.
29069 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29071 DEFS
=-DHAVE_CONFIG_H
29075 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29076 # 1. Remove the extension, and $U if already installed.
29077 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29078 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29079 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29080 # will be set to the directory where LIBOBJS objects are built.
29081 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29082 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29084 LIBOBJS
=$ac_libobjs
29086 LTLIBOBJS
=$ac_ltlibobjs
29089 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29090 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
29091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29093 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29094 as_fn_error $?
"conditional \"GL_COND_LIBTOOL\" was never defined.
29095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29097 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29098 as_fn_error $?
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29101 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29102 as_fn_error $?
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29105 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
29106 as_fn_error $?
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
29107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29109 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
29110 as_fn_error $?
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
29111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29113 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
29114 as_fn_error $?
"conditional \"GL_GENERATE_GLOB_H\" was never defined.
29115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29117 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
29118 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
29119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29121 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
29122 as_fn_error $?
"conditional \"GL_GENERATE_LIMITS_H\" was never defined.
29123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29125 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29126 as_fn_error $?
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
29127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29131 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
29132 as_fn_error $?
"conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
29133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29135 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29136 as_fn_error $?
"conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29139 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29140 as_fn_error $?
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29143 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29144 as_fn_error $?
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29150 if test -n "$gl_LIBOBJS"; then
29151 # Remove the extension.
29152 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29153 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29154 gl_libobjs
="$gl_libobjs $i.$ac_objext"
29155 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
29158 gl_LIBOBJS
=$gl_libobjs
29160 gl_LTLIBOBJS
=$gl_ltlibobjs
29166 if test -n "$gltests_LIBOBJS"; then
29167 # Remove the extension.
29168 sed_drop_objext
='s/\.o$//;s/\.obj$//'
29169 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29170 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
29171 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
29174 gltests_LIBOBJS
=$gltests_libobjs
29176 gltests_LTLIBOBJS
=$gltests_ltlibobjs
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
29180 $as_echo_n "checking that generated files are newer than configure... " >&6; }
29181 if test -n "$am_sleep_pid"; then
29182 # Hide warnings about reused PIDs.
29183 wait $am_sleep_pid 2>/dev
/null
29185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
29186 $as_echo "done" >&6; }
29187 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29188 as_fn_error $?
"conditional \"AMDEP\" was never defined.
29189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29191 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29192 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
29193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29195 if test -n "$EXEEXT"; then
29197 am__EXEEXT_FALSE
='#'
29199 am__EXEEXT_TRUE
='#'
29204 : "${CONFIG_STATUS=./config.status}"
29206 ac_clean_files_save
=$ac_clean_files
29207 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29209 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29211 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29213 # Generated by $as_me.
29214 # Run this file to recreate the current configuration.
29215 # Compiler output produced by configure, useful for debugging
29216 # configure, is in config.log if it exists.
29219 ac_cs_recheck=false
29222 SHELL=\${CONFIG_SHELL-$SHELL}
29225 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29226 ## -------------------- ##
29227 ## M4sh Initialization. ##
29228 ## -------------------- ##
29230 # Be more Bourne compatible
29231 DUALCASE
=1; export DUALCASE
# for MKS sh
29232 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29235 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29236 # is contrary to our usage. Disable this feature.
29237 alias -g '${1+"$@"}'='"$@"'
29238 setopt NO_GLOB_SUBST
29240 case `(set -o) 2>/dev/null` in #(
29252 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29253 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29254 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29255 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29256 # Prefer a ksh shell builtin over an external printf program on Solaris,
29257 # but without wasting forks for bash or zsh.
29258 if test -z "$BASH_VERSION$ZSH_VERSION" \
29259 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29260 as_echo='print
-r --'
29261 as_echo_n='print
-rn --'
29262 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29263 as_echo='printf %s
\n'
29264 as_echo_n='printf %s
'
29266 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29267 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29268 as_echo_n='/usr
/ucb
/echo -n'
29270 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29271 as_echo_n_body='eval
29275 expr "X$arg" : "X\\(.*\\)$as_nl";
29276 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29278 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29280 export as_echo_n_body
29281 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29283 export as_echo_body
29284 as_echo='sh
-c $as_echo_body as_echo
'
29287 # The user is always right.
29288 if test "${PATH_SEPARATOR+set}" != set; then
29290 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29291 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29298 # We need space, tab and new line, in precisely that order. Quoting is
29299 # there to prevent editors from complaining about space-tab.
29300 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29301 # splitting by setting IFS to empty value.)
29304 # Find who we are. Look in the path if we contain no directory separator.
29307 *[\\/]* ) as_myself=$0 ;;
29308 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29309 for as_dir in $PATH
29312 test -z "$as_dir" && as_dir=.
29313 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29319 # We did not find ourselves, most probably we were run as `sh COMMAND'
29320 # in which case we are not to be found in the path.
29321 if test "x$as_myself" = x
; then
29324 if test ! -f "$as_myself"; then
29325 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29329 # Unset variables that we do not need and which cause bugs (e.g. in
29330 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29331 # suppresses any "Segmentation fault" message there. '((' could
29332 # trigger a bug in pdksh 5.2.14.
29333 for as_var
in BASH_ENV ENV MAIL MAILPATH
29334 do eval test x\
${$as_var+set} = xset \
29335 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29348 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29351 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29352 # ----------------------------------------
29353 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29354 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29355 # script with STATUS, using 1 if that was 0.
29358 as_status
=$1; test $as_status -eq 0 && as_status
=1
29360 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29361 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29363 $as_echo "$as_me: error: $2" >&2
29364 as_fn_exit
$as_status
29368 # as_fn_set_status STATUS
29369 # -----------------------
29370 # Set $? to STATUS, without forking.
29371 as_fn_set_status
()
29374 } # as_fn_set_status
29376 # as_fn_exit STATUS
29377 # -----------------
29378 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29382 as_fn_set_status
$1
29388 # Portably unset VAR.
29391 { eval $1=; unset $1;}
29393 as_unset
=as_fn_unset
29394 # as_fn_append VAR VALUE
29395 # ----------------------
29396 # Append the text in VALUE to the end of the definition contained in VAR. Take
29397 # advantage of any shell optimizations that allow amortized linear growth over
29398 # repeated appends, instead of the typical quadratic growth present in naive
29400 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29401 eval 'as_fn_append ()
29412 # as_fn_arith ARG...
29413 # ------------------
29414 # Perform arithmetic evaluation on the ARGs, and store the result in the
29415 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29416 # must be portable across $(()) and expr.
29417 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29418 eval 'as_fn_arith ()
29425 as_val
=`expr "$@" || test $? -eq 1`
29430 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29431 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29437 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29438 as_basename
=basename
29443 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29449 as_me
=`$as_basename -- "$0" ||
29450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29451 X"$0" : 'X\(//\)$' \| \
29452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29454 sed '/^.*\/\([^/][^/]*\)\/*$/{
29468 # Avoid depending upon Character Ranges.
29469 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29470 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29471 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29472 as_cr_digits
='0123456789'
29473 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29475 ECHO_C
= ECHO_N
= ECHO_T
=
29476 case `echo -n x` in #(((((
29478 case `echo 'xy\c'` in
29479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29481 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29488 rm -f conf$$ conf$$.exe conf$$.
file
29489 if test -d conf$$.dir
; then
29490 rm -f conf$$.dir
/conf$$.
file
29493 mkdir conf$$.dir
2>/dev
/null
29495 if (echo >conf$$.
file) 2>/dev
/null
; then
29496 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29498 # ... but there are two gotchas:
29499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29501 # In both cases, we have to default to `cp -pR'.
29502 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29504 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29512 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29513 rmdir conf$$.dir
2>/dev
/null
29518 # Create "$as_dir" as a directory, including parents if necessary.
29523 -*) as_dir
=.
/$as_dir;;
29525 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29529 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29530 *) as_qdir
=$as_dir;;
29532 as_dirs
="'$as_qdir' $as_dirs"
29533 as_dir
=`$as_dirname -- "$as_dir" ||
29534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29535 X"$as_dir" : 'X\(//\)[^/]' \| \
29536 X"$as_dir" : 'X\(//\)$' \| \
29537 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29538 $as_echo X"$as_dir" |
29539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29543 /^X\(\/\/\)[^/].*/{
29556 test -d "$as_dir" && break
29558 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29559 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
29563 if mkdir
-p .
2>/dev
/null
; then
29564 as_mkdir_p
='mkdir -p "$as_dir"'
29566 test -d .
/-p && rmdir .
/-p
29571 # as_fn_executable_p FILE
29572 # -----------------------
29573 # Test if FILE is an executable regular file.
29574 as_fn_executable_p
()
29576 test -f "$1" && test -x "$1"
29577 } # as_fn_executable_p
29578 as_test_x
='test -x'
29579 as_executable_p
=as_fn_executable_p
29581 # Sed expression to map a string onto a valid CPP name.
29582 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29584 # Sed expression to map a string onto a valid variable name.
29585 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29589 ## ----------------------------------- ##
29590 ## Main body of $CONFIG_STATUS script. ##
29591 ## ----------------------------------- ##
29593 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29596 # Save the log message, to keep $0 and so on meaningful, and to
29597 # report actual input values of CONFIG_FILES etc. instead of their
29598 # values after options handling.
29600 This file was extended by libgnu $as_me UNUSED-VERSION, which was
29601 generated by GNU Autoconf 2.69. Invocation command line was
29603 CONFIG_FILES = $CONFIG_FILES
29604 CONFIG_HEADERS = $CONFIG_HEADERS
29605 CONFIG_LINKS = $CONFIG_LINKS
29606 CONFIG_COMMANDS = $CONFIG_COMMANDS
29609 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29614 case $ac_config_files in *"
29615 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29618 case $ac_config_headers in *"
29619 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29624 # Files that config.status was made for.
29625 config_files="$ac_config_files"
29626 config_headers="$ac_config_headers"
29627 config_commands="$ac_config_commands"
29631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29633 \`$as_me' instantiates files and other configuration actions
29634 from templates according to the current configuration. Unless the files
29635 and actions are specified as TAGs, all are instantiated by default.
29637 Usage: $0 [OPTION]... [TAG]...
29639 -h, --help print this help, then exit
29640 -V, --version print version number and configuration settings, then exit
29641 --config print configuration, then exit
29642 -q, --quiet, --silent
29643 do not print progress messages
29644 -d, --debug don't remove temporary files
29645 --recheck update $as_me by reconfiguring in the same conditions
29646 --file=FILE[:TEMPLATE]
29647 instantiate the configuration file FILE
29648 --header=FILE[:TEMPLATE]
29649 instantiate the configuration header FILE
29651 Configuration files:
29654 Configuration headers:
29657 Configuration commands:
29660 Report bugs to the package provider."
29663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29664 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29666 libgnu config.status UNUSED-VERSION
29667 configured by $0, generated by GNU Autoconf 2.69,
29668 with options \\"\$ac_cs_config\\"
29670 Copyright (C) 2012 Free Software Foundation, Inc.
29671 This config.status script is free software; the Free Software Foundation
29672 gives unlimited permission to copy, distribute and modify it."
29679 test -n "\$AWK" || AWK=awk
29682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29683 # The default lists apply if the user does not specify any file.
29689 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29690 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29694 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29706 # Handling of the options.
29707 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29709 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29710 $as_echo "$ac_cs_version"; exit ;;
29711 --config |
--confi |
--conf |
--con |
--co |
--c )
29712 $as_echo "$ac_cs_config"; exit ;;
29713 --debug |
--debu |
--deb |
--de |
--d |
-d )
29715 --file |
--fil |
--fi |
--f )
29718 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29719 '') as_fn_error $?
"missing file argument" ;;
29721 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29722 ac_need_defaults
=false
;;
29723 --header |
--heade |
--head |
--hea )
29726 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29728 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29729 ac_need_defaults
=false
;;
29731 # Conflict between --help and --header
29732 as_fn_error $?
"ambiguous option: \`$1'
29733 Try \`$0 --help' for more information.";;
29734 --help |
--hel |
-h )
29735 $as_echo "$ac_cs_usage"; exit ;;
29736 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29737 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29740 # This is an error.
29741 -*) as_fn_error $?
"unrecognized option: \`$1'
29742 Try \`$0 --help' for more information." ;;
29744 *) as_fn_append ac_config_targets
" $1"
29745 ac_need_defaults
=false
;;
29751 ac_configure_extra_args
=
29753 if $ac_cs_silent; then
29755 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29760 if \$ac_cs_recheck; then
29761 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29763 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29764 CONFIG_SHELL='$SHELL'
29765 export CONFIG_SHELL
29770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29774 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29775 ## Running $as_me. ##
29781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29785 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29791 # Handling of arguments.
29792 for ac_config_target
in $ac_config_targets
29794 case $ac_config_target in
29795 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
29796 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
29797 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
29798 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
29799 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29801 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29806 # If the user did not use the arguments to specify the items to instantiate,
29807 # then the envvar interface is used. Set only those that are not.
29808 # We use the long form for the default assignment because of an extremely
29809 # bizarre bug on SunOS 4.1.3.
29810 if $ac_need_defaults; then
29811 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29812 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29813 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29816 # Have a temporary directory for convenience. Make it in the build tree
29817 # simply because there is no reason against having it here, and in addition,
29818 # creating and moving files from /tmp can sometimes cause problems.
29819 # Hook for its removal unless debugging.
29820 # Note that there is a small window in which the directory will not be cleaned:
29821 # after its creation but before its name has been assigned to `$tmp'.
29825 trap 'exit_status=$?
29826 : "${ac_tmp:=$tmp}"
29827 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29829 trap 'as_fn_exit 1' 1 2 13 15
29831 # Create a (secure) tmp directory for tmp files.
29834 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29838 tmp
=.
/conf$$
-$RANDOM
29839 (umask 077 && mkdir
"$tmp")
29840 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
29843 # Set up the scripts for CONFIG_FILES section.
29844 # No need to generate them if there are no CONFIG_FILES.
29845 # This happens for instance with `./config.status config.h'.
29846 if test -n "$CONFIG_FILES"; then
29849 ac_cr
=`echo X | tr X '\015'`
29850 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29851 # But we know of no other shell where ac_cr would be empty at this
29852 # point, so we can use a bashism as a fallback.
29853 if test "x$ac_cr" = x
; then
29854 eval ac_cr
=\$
\'\\r
\'
29856 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29857 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29860 ac_cs_awk_cr
=$ac_cr
29863 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29868 echo "cat >conf$$subs.awk <<_ACEOF" &&
29869 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29871 } >conf$$subs.sh ||
29872 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29873 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29875 for ac_last_try in false false false false false :; do
29876 . ./conf$$subs.sh ||
29877 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29879 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29880 if test $ac_delim_n = $ac_delim_num; then
29882 elif $ac_last_try; then
29883 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
29885 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29888 rm -f conf$$subs.sh
29890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29891 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
29895 s/^/S["/; s
/!.
*/"]=/
29905 s/\(.\{148\}\)..*/\1/
29907 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29912 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29919 s/\(.\{148\}\)..*/\1/
29921 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29925 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29930 ' <conf$$subs.awk | sed '
29935 ' >>$CONFIG_STATUS || ac_write_fail=1
29936 rm -f conf$$subs.awk
29937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29939 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
29940 for (key in S) S_is_set[key] = 1
29946 nfields = split(line, field, "@
")
29948 len = length(field[1])
29949 for (i = 2; i < nfields; i++) {
29951 keylen = length(key)
29952 if (S_is_set[key]) {
29954 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29955 len += length(value) + length(field[++i])
29966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29967 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29968 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29971 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
29972 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
29975 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29976 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
29977 # trailing colons and then remove the whole line if VPATH becomes empty
29978 # (actually we leave an empty line to preserve line numbers).
29979 if test "x
$srcdir" = x.; then
29980 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29999 fi # test -n "$CONFIG_FILES"
30001 # Set up the scripts for CONFIG_HEADERS section.
30002 # No need to generate them if there are no CONFIG_HEADERS.
30003 # This happens for instance with `./config.status Makefile'.
30004 if test -n "$CONFIG_HEADERS"; then
30005 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
30009 # Transform confdefs.h into an awk script `defines.awk', embedded as
30010 # here-document in config.status, that substitutes the proper values into
30011 # config.h.in to produce config.h.
30013 # Create a delimiter string that does not exist in confdefs.h, to ease
30014 # handling of long lines.
30016 for ac_last_try in false false :; do
30017 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
30018 if test -z "$ac_tt"; then
30020 elif $ac_last_try; then
30021 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
30023 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30027 # For the awk script, D is an array of macro values keyed by name,
30028 # likewise P contains macro parameters if any. Preserve backslash
30029 # newline sequences.
30031 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30033 s/.\{148\}/&'"$ac_delim"'/g
30036 s/^[ ]*#[ ]*define[ ][ ]*/ /
30043 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30045 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30049 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30050 D["\
1"]=" \
3\\\\\\n
"\\/p
30052 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30057 s/.\{148\}/&'"$ac_delim"'/g
30062 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30065 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30067 ' <confdefs.h | sed '
30068 s/'"$ac_delim"'/"\\\
30069 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30072 for (key in D) D_is_set[key] = 1
30075 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30077 split(line, arg, " ")
30078 if (arg[1] == "#") {
30082 defundef
= substr
(arg
[1], 2)
30085 split(mac1
, mac2
, "(") #)
30087 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30088 if (D_is_set
[macro
]) {
30089 # Preserve the white space surrounding the "#".
30090 print prefix
"define", macro P
[macro
] D
[macro
]
30093 # Replace #undef with comments. This is necessary, for example,
30094 # in the case of _POSIX_SOURCE, which is predefined and required
30095 # on some systems where configure will not decide to define it.
30096 if (defundef
== "undef") {
30097 print
"/*", prefix defundef
, macro
, "*/"
30105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30106 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
30107 fi # test -n "$CONFIG_HEADERS"
30110 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30115 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30117 case $ac_mode$ac_tag in
30119 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30120 :[FH
]-) ac_tag
=-:-;;
30121 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30138 -) ac_f
="$ac_tmp/stdin";;
30139 *) # Look for the file first in the build tree, then in the source tree
30140 # (if the path is not absolute). The absolute path cannot be DOS-style,
30141 # because $ac_f cannot contain `:'.
30145 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30147 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30149 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30150 as_fn_append ac_file_inputs
" '$ac_f'"
30153 # Let's still pretend it is `configure' which instantiates (i.e., don't
30154 # use $as_me), people would be surprised to read:
30155 # /* config.h. Generated by config.status. */
30156 configure_input
='Generated from '`
30157 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30159 if test x
"$ac_file" != x-
; then
30160 configure_input
="$ac_file. $configure_input"
30161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30162 $as_echo "$as_me: creating $ac_file" >&6;}
30164 # Neutralize special characters interpreted by sed in replacement strings.
30165 case $configure_input in #(
30166 *\
&* |
*\|
* |
*\\* )
30167 ac_sed_conf_input
=`$as_echo "$configure_input" |
30168 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30169 *) ac_sed_conf_input
=$configure_input;;
30173 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
30174 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
30179 ac_dir
=`$as_dirname -- "$ac_file" ||
30180 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30181 X"$ac_file" : 'X\(//\)[^/]' \| \
30182 X"$ac_file" : 'X\(//\)$' \| \
30183 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30184 $as_echo X"$ac_file" |
30185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30189 /^X\(\/\/\)[^/].*/{
30202 as_dir
="$ac_dir"; as_fn_mkdir_p
30206 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30208 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30209 # A ".." for each directory in $ac_dir_suffix.
30210 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30211 case $ac_top_builddir_sub in
30212 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30213 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30216 ac_abs_top_builddir
=$ac_pwd
30217 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30218 # for backward compatibility:
30219 ac_top_builddir
=$ac_top_build_prefix
30222 .
) # We are building in place.
30224 ac_top_srcdir
=$ac_top_builddir_sub
30225 ac_abs_top_srcdir
=$ac_pwd ;;
30226 [\\/]* | ?
:[\\/]* ) # Absolute name.
30227 ac_srcdir
=$srcdir$ac_dir_suffix;
30228 ac_top_srcdir
=$srcdir
30229 ac_abs_top_srcdir
=$srcdir ;;
30230 *) # Relative name.
30231 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30232 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30233 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30235 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30245 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
30246 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
30248 ac_MKDIR_P
=$MKDIR_P
30250 [\\/$
]* | ?
:[\\/]* ) ;;
30251 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30256 # If the template does not know about datarootdir, expand it.
30257 # FIXME: This hack should be removed a few years after 2.60.
30258 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30269 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30270 *datarootdir
*) ac_datarootdir_seen
=yes;;
30271 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30273 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30276 ac_datarootdir_hack='
30277 s&@datadir@&$datadir&g
30278 s&@docdir@&$docdir&g
30279 s&@infodir@&$infodir&g
30280 s&@localedir@&$localedir&g
30281 s&@mandir@&$mandir&g
30282 s&\\\${datarootdir}&$datarootdir&g' ;;
30286 # Neutralize VPATH when `$srcdir' = `.'.
30287 # Shell code in configure.ac might set extrasub.
30288 # FIXME: do we really want to maintain this feature?
30289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30290 ac_sed_extra="$ac_vpsub
30293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30295 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30296 s|@configure_input@|
$ac_sed_conf_input|
;t t
30297 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30298 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30299 s
&@srcdir@
&$ac_srcdir&;t t
30300 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30301 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30302 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30303 s
&@builddir@
&$ac_builddir&;t t
30304 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30305 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30306 s
&@INSTALL@
&$ac_INSTALL&;t t
30307 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30308 $ac_datarootdir_hack
30310 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
30311 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
30313 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30314 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
30315 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30316 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
30317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30318 which seems to be undefined. Please make sure it is defined" >&5
30319 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30320 which seems to be undefined. Please make sure it is defined" >&2;}
30322 rm -f "$ac_tmp/stdin"
30324 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30325 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30327 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30333 if test x"$ac_file" != x-; then
30335 $as_echo "/* $configure_input */" \
30336 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30337 } >"$ac_tmp/config.h" \
30338 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30339 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30340 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30341 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30344 mv "$ac_tmp/config.h" "$ac_file" \
30345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30348 $as_echo "/* $configure_input */" \
30349 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30350 || as_fn_error $? "could not create -" "$LINENO" 5
30352 # Compute "$ac_file"'s index
in $config_headers.
30355 for _am_header
in $config_headers :; do
30356 case $_am_header in
30357 $_am_arg |
$_am_arg:* )
30360 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
30363 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30364 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30365 X"$_am_arg" : 'X\(//\)[^/]' \| \
30366 X"$_am_arg" : 'X\(//\)$' \| \
30367 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30368 $as_echo X"$_am_arg" |
30369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30373 /^X\(\/\/\)[^/].*/{
30385 s/.*/./; q'`/stamp-h
$_am_stamp_count
30388 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30389 $as_echo "$as_me: executing $ac_file commands" >&6;}
30394 case $ac_file$ac_mode in
30395 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
30396 # Older Autoconf quotes --file arguments for eval, but not when files
30397 # are listed without --file. Let's play safe and only enable the eval
30398 # if we detect the quoting.
30399 case $CONFIG_FILES in
30400 *\'*) eval set x
"$CONFIG_FILES" ;;
30401 *) set x
$CONFIG_FILES ;;
30406 # Strip MF so we end up with the name of the file.
30407 mf
=`echo "$mf" | sed -e 's/:.*$//'`
30408 # Check whether this is an Automake generated Makefile or not.
30409 # We used to match only the files named 'Makefile.in', but
30410 # some people rename them; so instead we look at the file content.
30411 # Grep'ing the first line is not enough: some people post-process
30412 # each Makefile.in and add a new line on top of each file to say so.
30413 # Grep'ing the whole file is not good either: AIX grep has a line
30414 # limit of 2048, but all sed's we know have understand at least 4000.
30415 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
30416 dirpart
=`$as_dirname -- "$mf" ||
30417 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30418 X"$mf" : 'X\(//\)[^/]' \| \
30419 X"$mf" : 'X\(//\)$' \| \
30420 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30426 /^X\(\/\/\)[^/].*/{
30442 # Extract the definition of DEPDIR, am__include, and am__quote
30443 # from the Makefile without running 'make'.
30444 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
30445 test -z "$DEPDIR" && continue
30446 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
30447 test -z "$am__include" && continue
30448 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
30449 # Find all dependency output files, they are included files with
30450 # $(DEPDIR) in their names. We invoke sed twice because it is the
30451 # simplest approach to changing $(DEPDIR) to its actual value in the
30453 for file in `sed -n "
30454 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30455 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
30456 # Make sure the directory exists.
30457 test -f "$dirpart/$file" && continue
30458 fdir
=`$as_dirname -- "$file" ||
30459 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30460 X"$file" : 'X\(//\)[^/]' \| \
30461 X"$file" : 'X\(//\)$' \| \
30462 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30463 $as_echo X"$file" |
30464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30468 /^X\(\/\/\)[^/].*/{
30481 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
30482 # echo "creating $dirpart/$file"
30483 echo '# dummy' > "$dirpart/$file"
30489 case x
$CONFIG_HEADERS in
30490 xconfig.h
:config.
in)
30501 ac_clean_files
=$ac_clean_files_save
30503 test $ac_write_fail = 0 ||
30504 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
30507 # configure is writing to config.log, and then calls config.status.
30508 # config.status does its own redirection, appending to config.log.
30509 # Unfortunately, on DOS this fails, as config.log is still kept open
30510 # by configure, so config.status won't be able to write to it; its
30511 # output is simply discarded. So we exec the FD to /dev/null,
30512 # effectively closing config.log, so it can be properly (re)opened and
30513 # appended to by config.status. When coming back to configure, we
30514 # need to make the FD available again.
30515 if test "$no_create" != yes; then
30517 ac_config_status_args
=
30518 test "$silent" = yes &&
30519 ac_config_status_args
="$ac_config_status_args --quiet"
30521 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30523 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30524 # would make configure fail if this is the last instruction.
30525 $ac_cs_success || as_fn_exit
1
30527 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30529 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}